@aws-sdk/client-ivschat 3.899.0 → 3.906.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/dist-cjs/index.js +1326 -1536
- package/package.json +37 -37
package/dist-cjs/index.js
CHANGED
|
@@ -1,1592 +1,1382 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var middlewareHostHeader = require('@aws-sdk/middleware-host-header');
|
|
4
|
+
var middlewareLogger = require('@aws-sdk/middleware-logger');
|
|
5
|
+
var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detection');
|
|
6
|
+
var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
|
|
7
|
+
var configResolver = require('@smithy/config-resolver');
|
|
8
|
+
var core = require('@smithy/core');
|
|
9
|
+
var middlewareContentLength = require('@smithy/middleware-content-length');
|
|
10
|
+
var middlewareEndpoint = require('@smithy/middleware-endpoint');
|
|
11
|
+
var middlewareRetry = require('@smithy/middleware-retry');
|
|
12
|
+
var smithyClient = require('@smithy/smithy-client');
|
|
13
|
+
var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
|
|
14
|
+
var runtimeConfig = require('./runtimeConfig');
|
|
15
|
+
var regionConfigResolver = require('@aws-sdk/region-config-resolver');
|
|
16
|
+
var protocolHttp = require('@smithy/protocol-http');
|
|
17
|
+
var middlewareSerde = require('@smithy/middleware-serde');
|
|
18
|
+
var core$1 = require('@aws-sdk/core');
|
|
19
|
+
|
|
20
|
+
const resolveClientEndpointParameters = (options) => {
|
|
21
|
+
return Object.assign(options, {
|
|
22
|
+
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
23
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
24
|
+
defaultSigningName: "ivschat",
|
|
25
|
+
});
|
|
10
26
|
};
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
17
|
-
return to;
|
|
27
|
+
const commonParams = {
|
|
28
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
29
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
30
|
+
Region: { type: "builtInParams", name: "region" },
|
|
31
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
18
32
|
};
|
|
19
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
-
|
|
21
|
-
// src/index.ts
|
|
22
|
-
var index_exports = {};
|
|
23
|
-
__export(index_exports, {
|
|
24
|
-
AccessDeniedException: () => AccessDeniedException,
|
|
25
|
-
ChatTokenCapability: () => ChatTokenCapability,
|
|
26
|
-
ConflictException: () => ConflictException,
|
|
27
|
-
CreateChatTokenCommand: () => CreateChatTokenCommand,
|
|
28
|
-
CreateChatTokenRequestFilterSensitiveLog: () => CreateChatTokenRequestFilterSensitiveLog,
|
|
29
|
-
CreateChatTokenResponseFilterSensitiveLog: () => CreateChatTokenResponseFilterSensitiveLog,
|
|
30
|
-
CreateLoggingConfigurationCommand: () => CreateLoggingConfigurationCommand,
|
|
31
|
-
CreateLoggingConfigurationState: () => CreateLoggingConfigurationState,
|
|
32
|
-
CreateRoomCommand: () => CreateRoomCommand,
|
|
33
|
-
DeleteLoggingConfigurationCommand: () => DeleteLoggingConfigurationCommand,
|
|
34
|
-
DeleteMessageCommand: () => DeleteMessageCommand,
|
|
35
|
-
DeleteRoomCommand: () => DeleteRoomCommand,
|
|
36
|
-
DestinationConfiguration: () => DestinationConfiguration,
|
|
37
|
-
DisconnectUserCommand: () => DisconnectUserCommand,
|
|
38
|
-
DisconnectUserRequestFilterSensitiveLog: () => DisconnectUserRequestFilterSensitiveLog,
|
|
39
|
-
FallbackResult: () => FallbackResult,
|
|
40
|
-
GetLoggingConfigurationCommand: () => GetLoggingConfigurationCommand,
|
|
41
|
-
GetRoomCommand: () => GetRoomCommand,
|
|
42
|
-
InternalServerException: () => InternalServerException,
|
|
43
|
-
Ivschat: () => Ivschat,
|
|
44
|
-
IvschatClient: () => IvschatClient,
|
|
45
|
-
IvschatServiceException: () => IvschatServiceException,
|
|
46
|
-
ListLoggingConfigurationsCommand: () => ListLoggingConfigurationsCommand,
|
|
47
|
-
ListRoomsCommand: () => ListRoomsCommand,
|
|
48
|
-
ListTagsForResourceCommand: () => ListTagsForResourceCommand,
|
|
49
|
-
LoggingConfigurationState: () => LoggingConfigurationState,
|
|
50
|
-
PendingVerification: () => PendingVerification,
|
|
51
|
-
ResourceNotFoundException: () => ResourceNotFoundException,
|
|
52
|
-
ResourceType: () => ResourceType,
|
|
53
|
-
SendEventCommand: () => SendEventCommand,
|
|
54
|
-
ServiceQuotaExceededException: () => ServiceQuotaExceededException,
|
|
55
|
-
TagResourceCommand: () => TagResourceCommand,
|
|
56
|
-
ThrottlingException: () => ThrottlingException,
|
|
57
|
-
UntagResourceCommand: () => UntagResourceCommand,
|
|
58
|
-
UpdateLoggingConfigurationCommand: () => UpdateLoggingConfigurationCommand,
|
|
59
|
-
UpdateLoggingConfigurationState: () => UpdateLoggingConfigurationState,
|
|
60
|
-
UpdateRoomCommand: () => UpdateRoomCommand,
|
|
61
|
-
ValidationException: () => ValidationException,
|
|
62
|
-
ValidationExceptionReason: () => ValidationExceptionReason,
|
|
63
|
-
__Client: () => import_smithy_client.Client,
|
|
64
|
-
paginateListLoggingConfigurations: () => paginateListLoggingConfigurations,
|
|
65
|
-
paginateListRooms: () => paginateListRooms
|
|
66
|
-
});
|
|
67
|
-
module.exports = __toCommonJS(index_exports);
|
|
68
33
|
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
34
|
+
const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
35
|
+
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
36
|
+
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
37
|
+
let _credentials = runtimeConfig.credentials;
|
|
38
|
+
return {
|
|
39
|
+
setHttpAuthScheme(httpAuthScheme) {
|
|
40
|
+
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
|
41
|
+
if (index === -1) {
|
|
42
|
+
_httpAuthSchemes.push(httpAuthScheme);
|
|
43
|
+
}
|
|
44
|
+
else {
|
|
45
|
+
_httpAuthSchemes.splice(index, 1, httpAuthScheme);
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
httpAuthSchemes() {
|
|
49
|
+
return _httpAuthSchemes;
|
|
50
|
+
},
|
|
51
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
|
|
52
|
+
_httpAuthSchemeProvider = httpAuthSchemeProvider;
|
|
53
|
+
},
|
|
54
|
+
httpAuthSchemeProvider() {
|
|
55
|
+
return _httpAuthSchemeProvider;
|
|
56
|
+
},
|
|
57
|
+
setCredentials(credentials) {
|
|
58
|
+
_credentials = credentials;
|
|
59
|
+
},
|
|
60
|
+
credentials() {
|
|
61
|
+
return _credentials;
|
|
62
|
+
},
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
const resolveHttpAuthRuntimeConfig = (config) => {
|
|
66
|
+
return {
|
|
67
|
+
httpAuthSchemes: config.httpAuthSchemes(),
|
|
68
|
+
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
69
|
+
credentials: config.credentials(),
|
|
70
|
+
};
|
|
95
71
|
};
|
|
96
72
|
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
var import_protocol_http = require("@smithy/protocol-http");
|
|
103
|
-
var import_smithy_client = require("@smithy/smithy-client");
|
|
73
|
+
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
74
|
+
const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig), smithyClient.getDefaultExtensionConfiguration(runtimeConfig), protocolHttp.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
75
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
76
|
+
return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration), smithyClient.resolveDefaultRuntimeConfig(extensionConfiguration), protocolHttp.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
77
|
+
};
|
|
104
78
|
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
79
|
+
class IvschatClient extends smithyClient.Client {
|
|
80
|
+
config;
|
|
81
|
+
constructor(...[configuration]) {
|
|
82
|
+
const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {});
|
|
83
|
+
super(_config_0);
|
|
84
|
+
this.initConfig = _config_0;
|
|
85
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
86
|
+
const _config_2 = middlewareUserAgent.resolveUserAgentConfig(_config_1);
|
|
87
|
+
const _config_3 = middlewareRetry.resolveRetryConfig(_config_2);
|
|
88
|
+
const _config_4 = configResolver.resolveRegionConfig(_config_3);
|
|
89
|
+
const _config_5 = middlewareHostHeader.resolveHostHeaderConfig(_config_4);
|
|
90
|
+
const _config_6 = middlewareEndpoint.resolveEndpointConfig(_config_5);
|
|
91
|
+
const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
|
|
92
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
93
|
+
this.config = _config_8;
|
|
94
|
+
this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
|
|
95
|
+
this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
|
|
96
|
+
this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
|
|
97
|
+
this.middlewareStack.use(middlewareHostHeader.getHostHeaderPlugin(this.config));
|
|
98
|
+
this.middlewareStack.use(middlewareLogger.getLoggerPlugin(this.config));
|
|
99
|
+
this.middlewareStack.use(middlewareRecursionDetection.getRecursionDetectionPlugin(this.config));
|
|
100
|
+
this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
|
101
|
+
httpAuthSchemeParametersProvider: httpAuthSchemeProvider.defaultIvschatHttpAuthSchemeParametersProvider,
|
|
102
|
+
identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({
|
|
103
|
+
"aws.auth#sigv4": config.credentials,
|
|
104
|
+
}),
|
|
105
|
+
}));
|
|
106
|
+
this.middlewareStack.use(core.getHttpSigningPlugin(this.config));
|
|
133
107
|
}
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
httpAuthSchemes: config.httpAuthSchemes(),
|
|
139
|
-
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
140
|
-
credentials: config.credentials()
|
|
141
|
-
};
|
|
142
|
-
}, "resolveHttpAuthRuntimeConfig");
|
|
143
|
-
|
|
144
|
-
// src/runtimeExtensions.ts
|
|
145
|
-
var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
|
|
146
|
-
const extensionConfiguration = Object.assign(
|
|
147
|
-
(0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig),
|
|
148
|
-
(0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig),
|
|
149
|
-
(0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig),
|
|
150
|
-
getHttpAuthExtensionConfiguration(runtimeConfig)
|
|
151
|
-
);
|
|
152
|
-
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
153
|
-
return Object.assign(
|
|
154
|
-
runtimeConfig,
|
|
155
|
-
(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
156
|
-
(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
157
|
-
(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
|
|
158
|
-
resolveHttpAuthRuntimeConfig(extensionConfiguration)
|
|
159
|
-
);
|
|
160
|
-
}, "resolveRuntimeExtensions");
|
|
108
|
+
destroy() {
|
|
109
|
+
super.destroy();
|
|
110
|
+
}
|
|
111
|
+
}
|
|
161
112
|
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
|
|
186
|
-
this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
|
|
187
|
-
this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
|
|
188
|
-
this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
|
|
189
|
-
this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
|
|
190
|
-
this.middlewareStack.use(
|
|
191
|
-
(0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
|
|
192
|
-
httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultIvschatHttpAuthSchemeParametersProvider,
|
|
193
|
-
identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core.DefaultIdentityProviderConfig({
|
|
194
|
-
"aws.auth#sigv4": config.credentials
|
|
195
|
-
}), "identityProviderConfigProvider")
|
|
196
|
-
})
|
|
197
|
-
);
|
|
198
|
-
this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
|
|
199
|
-
}
|
|
200
|
-
/**
|
|
201
|
-
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
202
|
-
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
203
|
-
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
204
|
-
*/
|
|
205
|
-
destroy() {
|
|
206
|
-
super.destroy();
|
|
207
|
-
}
|
|
113
|
+
class IvschatServiceException extends smithyClient.ServiceException {
|
|
114
|
+
constructor(options) {
|
|
115
|
+
super(options);
|
|
116
|
+
Object.setPrototypeOf(this, IvschatServiceException.prototype);
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
class AccessDeniedException extends IvschatServiceException {
|
|
121
|
+
name = "AccessDeniedException";
|
|
122
|
+
$fault = "client";
|
|
123
|
+
constructor(opts) {
|
|
124
|
+
super({
|
|
125
|
+
name: "AccessDeniedException",
|
|
126
|
+
$fault: "client",
|
|
127
|
+
...opts,
|
|
128
|
+
});
|
|
129
|
+
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
const ChatTokenCapability = {
|
|
133
|
+
DELETE_MESSAGE: "DELETE_MESSAGE",
|
|
134
|
+
DISCONNECT_USER: "DISCONNECT_USER",
|
|
135
|
+
SEND_MESSAGE: "SEND_MESSAGE",
|
|
208
136
|
};
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
137
|
+
class PendingVerification extends IvschatServiceException {
|
|
138
|
+
name = "PendingVerification";
|
|
139
|
+
$fault = "client";
|
|
140
|
+
constructor(opts) {
|
|
141
|
+
super({
|
|
142
|
+
name: "PendingVerification",
|
|
143
|
+
$fault: "client",
|
|
144
|
+
...opts,
|
|
145
|
+
});
|
|
146
|
+
Object.setPrototypeOf(this, PendingVerification.prototype);
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
const ResourceType = {
|
|
150
|
+
ROOM: "ROOM",
|
|
151
|
+
};
|
|
152
|
+
class ResourceNotFoundException extends IvschatServiceException {
|
|
153
|
+
name = "ResourceNotFoundException";
|
|
154
|
+
$fault = "client";
|
|
155
|
+
resourceId;
|
|
156
|
+
resourceType;
|
|
157
|
+
constructor(opts) {
|
|
158
|
+
super({
|
|
159
|
+
name: "ResourceNotFoundException",
|
|
160
|
+
$fault: "client",
|
|
161
|
+
...opts,
|
|
162
|
+
});
|
|
163
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
164
|
+
this.resourceId = opts.resourceId;
|
|
165
|
+
this.resourceType = opts.resourceType;
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
const ValidationExceptionReason = {
|
|
169
|
+
FIELD_VALIDATION_FAILED: "FIELD_VALIDATION_FAILED",
|
|
170
|
+
OTHER: "OTHER",
|
|
171
|
+
UNKNOWN_OPERATION: "UNKNOWN_OPERATION",
|
|
234
172
|
};
|
|
173
|
+
class ValidationException extends IvschatServiceException {
|
|
174
|
+
name = "ValidationException";
|
|
175
|
+
$fault = "client";
|
|
176
|
+
reason;
|
|
177
|
+
fieldList;
|
|
178
|
+
constructor(opts) {
|
|
179
|
+
super({
|
|
180
|
+
name: "ValidationException",
|
|
181
|
+
$fault: "client",
|
|
182
|
+
...opts,
|
|
183
|
+
});
|
|
184
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
185
|
+
this.reason = opts.reason;
|
|
186
|
+
this.fieldList = opts.fieldList;
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
class ConflictException extends IvschatServiceException {
|
|
190
|
+
name = "ConflictException";
|
|
191
|
+
$fault = "client";
|
|
192
|
+
resourceId;
|
|
193
|
+
resourceType;
|
|
194
|
+
constructor(opts) {
|
|
195
|
+
super({
|
|
196
|
+
name: "ConflictException",
|
|
197
|
+
$fault: "client",
|
|
198
|
+
...opts,
|
|
199
|
+
});
|
|
200
|
+
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
201
|
+
this.resourceId = opts.resourceId;
|
|
202
|
+
this.resourceType = opts.resourceType;
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
exports.DestinationConfiguration = void 0;
|
|
206
|
+
(function (DestinationConfiguration) {
|
|
207
|
+
DestinationConfiguration.visit = (value, visitor) => {
|
|
208
|
+
if (value.s3 !== undefined)
|
|
209
|
+
return visitor.s3(value.s3);
|
|
210
|
+
if (value.cloudWatchLogs !== undefined)
|
|
211
|
+
return visitor.cloudWatchLogs(value.cloudWatchLogs);
|
|
212
|
+
if (value.firehose !== undefined)
|
|
213
|
+
return visitor.firehose(value.firehose);
|
|
214
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
215
|
+
};
|
|
216
|
+
})(exports.DestinationConfiguration || (exports.DestinationConfiguration = {}));
|
|
217
|
+
const CreateLoggingConfigurationState = {
|
|
218
|
+
ACTIVE: "ACTIVE",
|
|
219
|
+
};
|
|
220
|
+
class ServiceQuotaExceededException extends IvschatServiceException {
|
|
221
|
+
name = "ServiceQuotaExceededException";
|
|
222
|
+
$fault = "client";
|
|
223
|
+
resourceId;
|
|
224
|
+
resourceType;
|
|
225
|
+
limit;
|
|
226
|
+
constructor(opts) {
|
|
227
|
+
super({
|
|
228
|
+
name: "ServiceQuotaExceededException",
|
|
229
|
+
$fault: "client",
|
|
230
|
+
...opts,
|
|
231
|
+
});
|
|
232
|
+
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
233
|
+
this.resourceId = opts.resourceId;
|
|
234
|
+
this.resourceType = opts.resourceType;
|
|
235
|
+
this.limit = opts.limit;
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
const FallbackResult = {
|
|
239
|
+
ALLOW: "ALLOW",
|
|
240
|
+
DENY: "DENY",
|
|
241
|
+
};
|
|
242
|
+
class ThrottlingException extends IvschatServiceException {
|
|
243
|
+
name = "ThrottlingException";
|
|
244
|
+
$fault = "client";
|
|
245
|
+
resourceId;
|
|
246
|
+
resourceType;
|
|
247
|
+
limit;
|
|
248
|
+
constructor(opts) {
|
|
249
|
+
super({
|
|
250
|
+
name: "ThrottlingException",
|
|
251
|
+
$fault: "client",
|
|
252
|
+
...opts,
|
|
253
|
+
});
|
|
254
|
+
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
255
|
+
this.resourceId = opts.resourceId;
|
|
256
|
+
this.resourceType = opts.resourceType;
|
|
257
|
+
this.limit = opts.limit;
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
const LoggingConfigurationState = {
|
|
261
|
+
ACTIVE: "ACTIVE",
|
|
262
|
+
CREATE_FAILED: "CREATE_FAILED",
|
|
263
|
+
CREATING: "CREATING",
|
|
264
|
+
DELETE_FAILED: "DELETE_FAILED",
|
|
265
|
+
DELETING: "DELETING",
|
|
266
|
+
UPDATE_FAILED: "UPDATE_FAILED",
|
|
267
|
+
UPDATING: "UPDATING",
|
|
268
|
+
};
|
|
269
|
+
class InternalServerException extends IvschatServiceException {
|
|
270
|
+
name = "InternalServerException";
|
|
271
|
+
$fault = "server";
|
|
272
|
+
constructor(opts) {
|
|
273
|
+
super({
|
|
274
|
+
name: "InternalServerException",
|
|
275
|
+
$fault: "server",
|
|
276
|
+
...opts,
|
|
277
|
+
});
|
|
278
|
+
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
const UpdateLoggingConfigurationState = {
|
|
282
|
+
ACTIVE: "ACTIVE",
|
|
283
|
+
};
|
|
284
|
+
const CreateChatTokenRequestFilterSensitiveLog = (obj) => ({
|
|
285
|
+
...obj,
|
|
286
|
+
...(obj.userId && { userId: smithyClient.SENSITIVE_STRING }),
|
|
287
|
+
...(obj.attributes && { attributes: smithyClient.SENSITIVE_STRING }),
|
|
288
|
+
});
|
|
289
|
+
const CreateChatTokenResponseFilterSensitiveLog = (obj) => ({
|
|
290
|
+
...obj,
|
|
291
|
+
...(obj.token && { token: smithyClient.SENSITIVE_STRING }),
|
|
292
|
+
});
|
|
293
|
+
const DisconnectUserRequestFilterSensitiveLog = (obj) => ({
|
|
294
|
+
...obj,
|
|
295
|
+
...(obj.userId && { userId: smithyClient.SENSITIVE_STRING }),
|
|
296
|
+
});
|
|
235
297
|
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
298
|
+
const se_CreateChatTokenCommand = async (input, context) => {
|
|
299
|
+
const b = core.requestBuilder(input, context);
|
|
300
|
+
const headers = {
|
|
301
|
+
"content-type": "application/json",
|
|
302
|
+
};
|
|
303
|
+
b.bp("/CreateChatToken");
|
|
304
|
+
let body;
|
|
305
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
306
|
+
attributes: (_) => smithyClient._json(_),
|
|
307
|
+
capabilities: (_) => smithyClient._json(_),
|
|
308
|
+
roomIdentifier: [],
|
|
309
|
+
sessionDurationInMinutes: [],
|
|
310
|
+
userId: [],
|
|
311
|
+
}));
|
|
312
|
+
b.m("POST").h(headers).b(body);
|
|
313
|
+
return b.build();
|
|
314
|
+
};
|
|
315
|
+
const se_CreateLoggingConfigurationCommand = async (input, context) => {
|
|
316
|
+
const b = core.requestBuilder(input, context);
|
|
317
|
+
const headers = {
|
|
318
|
+
"content-type": "application/json",
|
|
319
|
+
};
|
|
320
|
+
b.bp("/CreateLoggingConfiguration");
|
|
321
|
+
let body;
|
|
322
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
323
|
+
destinationConfiguration: (_) => smithyClient._json(_),
|
|
324
|
+
name: [],
|
|
325
|
+
tags: (_) => smithyClient._json(_),
|
|
326
|
+
}));
|
|
327
|
+
b.m("POST").h(headers).b(body);
|
|
328
|
+
return b.build();
|
|
329
|
+
};
|
|
330
|
+
const se_CreateRoomCommand = async (input, context) => {
|
|
331
|
+
const b = core.requestBuilder(input, context);
|
|
332
|
+
const headers = {
|
|
333
|
+
"content-type": "application/json",
|
|
334
|
+
};
|
|
335
|
+
b.bp("/CreateRoom");
|
|
336
|
+
let body;
|
|
337
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
338
|
+
loggingConfigurationIdentifiers: (_) => smithyClient._json(_),
|
|
339
|
+
maximumMessageLength: [],
|
|
340
|
+
maximumMessageRatePerSecond: [],
|
|
341
|
+
messageReviewHandler: (_) => smithyClient._json(_),
|
|
342
|
+
name: [],
|
|
343
|
+
tags: (_) => smithyClient._json(_),
|
|
344
|
+
}));
|
|
345
|
+
b.m("POST").h(headers).b(body);
|
|
346
|
+
return b.build();
|
|
347
|
+
};
|
|
348
|
+
const se_DeleteLoggingConfigurationCommand = async (input, context) => {
|
|
349
|
+
const b = core.requestBuilder(input, context);
|
|
350
|
+
const headers = {
|
|
351
|
+
"content-type": "application/json",
|
|
352
|
+
};
|
|
353
|
+
b.bp("/DeleteLoggingConfiguration");
|
|
354
|
+
let body;
|
|
355
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
356
|
+
identifier: [],
|
|
357
|
+
}));
|
|
358
|
+
b.m("POST").h(headers).b(body);
|
|
359
|
+
return b.build();
|
|
360
|
+
};
|
|
361
|
+
const se_DeleteMessageCommand = async (input, context) => {
|
|
362
|
+
const b = core.requestBuilder(input, context);
|
|
363
|
+
const headers = {
|
|
364
|
+
"content-type": "application/json",
|
|
365
|
+
};
|
|
366
|
+
b.bp("/DeleteMessage");
|
|
367
|
+
let body;
|
|
368
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
369
|
+
id: [],
|
|
370
|
+
reason: [],
|
|
371
|
+
roomIdentifier: [],
|
|
372
|
+
}));
|
|
373
|
+
b.m("POST").h(headers).b(body);
|
|
374
|
+
return b.build();
|
|
375
|
+
};
|
|
376
|
+
const se_DeleteRoomCommand = async (input, context) => {
|
|
377
|
+
const b = core.requestBuilder(input, context);
|
|
378
|
+
const headers = {
|
|
379
|
+
"content-type": "application/json",
|
|
380
|
+
};
|
|
381
|
+
b.bp("/DeleteRoom");
|
|
382
|
+
let body;
|
|
383
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
384
|
+
identifier: [],
|
|
385
|
+
}));
|
|
386
|
+
b.m("POST").h(headers).b(body);
|
|
387
|
+
return b.build();
|
|
388
|
+
};
|
|
389
|
+
const se_DisconnectUserCommand = async (input, context) => {
|
|
390
|
+
const b = core.requestBuilder(input, context);
|
|
391
|
+
const headers = {
|
|
392
|
+
"content-type": "application/json",
|
|
393
|
+
};
|
|
394
|
+
b.bp("/DisconnectUser");
|
|
395
|
+
let body;
|
|
396
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
397
|
+
reason: [],
|
|
398
|
+
roomIdentifier: [],
|
|
399
|
+
userId: [],
|
|
400
|
+
}));
|
|
401
|
+
b.m("POST").h(headers).b(body);
|
|
402
|
+
return b.build();
|
|
403
|
+
};
|
|
404
|
+
const se_GetLoggingConfigurationCommand = async (input, context) => {
|
|
405
|
+
const b = core.requestBuilder(input, context);
|
|
406
|
+
const headers = {
|
|
407
|
+
"content-type": "application/json",
|
|
408
|
+
};
|
|
409
|
+
b.bp("/GetLoggingConfiguration");
|
|
410
|
+
let body;
|
|
411
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
412
|
+
identifier: [],
|
|
413
|
+
}));
|
|
414
|
+
b.m("POST").h(headers).b(body);
|
|
415
|
+
return b.build();
|
|
416
|
+
};
|
|
417
|
+
const se_GetRoomCommand = async (input, context) => {
|
|
418
|
+
const b = core.requestBuilder(input, context);
|
|
419
|
+
const headers = {
|
|
420
|
+
"content-type": "application/json",
|
|
421
|
+
};
|
|
422
|
+
b.bp("/GetRoom");
|
|
423
|
+
let body;
|
|
424
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
425
|
+
identifier: [],
|
|
426
|
+
}));
|
|
427
|
+
b.m("POST").h(headers).b(body);
|
|
428
|
+
return b.build();
|
|
429
|
+
};
|
|
430
|
+
const se_ListLoggingConfigurationsCommand = async (input, context) => {
|
|
431
|
+
const b = core.requestBuilder(input, context);
|
|
432
|
+
const headers = {
|
|
433
|
+
"content-type": "application/json",
|
|
434
|
+
};
|
|
435
|
+
b.bp("/ListLoggingConfigurations");
|
|
436
|
+
let body;
|
|
437
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
438
|
+
maxResults: [],
|
|
439
|
+
nextToken: [],
|
|
440
|
+
}));
|
|
441
|
+
b.m("POST").h(headers).b(body);
|
|
442
|
+
return b.build();
|
|
443
|
+
};
|
|
444
|
+
const se_ListRoomsCommand = async (input, context) => {
|
|
445
|
+
const b = core.requestBuilder(input, context);
|
|
446
|
+
const headers = {
|
|
447
|
+
"content-type": "application/json",
|
|
448
|
+
};
|
|
449
|
+
b.bp("/ListRooms");
|
|
450
|
+
let body;
|
|
451
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
452
|
+
loggingConfigurationIdentifier: [],
|
|
453
|
+
maxResults: [],
|
|
454
|
+
messageReviewHandlerUri: [],
|
|
455
|
+
name: [],
|
|
456
|
+
nextToken: [],
|
|
457
|
+
}));
|
|
458
|
+
b.m("POST").h(headers).b(body);
|
|
459
|
+
return b.build();
|
|
254
460
|
};
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
461
|
+
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
462
|
+
const b = core.requestBuilder(input, context);
|
|
463
|
+
const headers = {};
|
|
464
|
+
b.bp("/tags/{resourceArn}");
|
|
465
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
466
|
+
let body;
|
|
467
|
+
b.m("GET").h(headers).b(body);
|
|
468
|
+
return b.build();
|
|
259
469
|
};
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
470
|
+
const se_SendEventCommand = async (input, context) => {
|
|
471
|
+
const b = core.requestBuilder(input, context);
|
|
472
|
+
const headers = {
|
|
473
|
+
"content-type": "application/json",
|
|
474
|
+
};
|
|
475
|
+
b.bp("/SendEvent");
|
|
476
|
+
let body;
|
|
477
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
478
|
+
attributes: (_) => smithyClient._json(_),
|
|
479
|
+
eventName: [],
|
|
480
|
+
roomIdentifier: [],
|
|
481
|
+
}));
|
|
482
|
+
b.m("POST").h(headers).b(body);
|
|
483
|
+
return b.build();
|
|
484
|
+
};
|
|
485
|
+
const se_TagResourceCommand = async (input, context) => {
|
|
486
|
+
const b = core.requestBuilder(input, context);
|
|
487
|
+
const headers = {
|
|
488
|
+
"content-type": "application/json",
|
|
489
|
+
};
|
|
490
|
+
b.bp("/tags/{resourceArn}");
|
|
491
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
492
|
+
let body;
|
|
493
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
494
|
+
tags: (_) => smithyClient._json(_),
|
|
495
|
+
}));
|
|
496
|
+
b.m("POST").h(headers).b(body);
|
|
497
|
+
return b.build();
|
|
498
|
+
};
|
|
499
|
+
const se_UntagResourceCommand = async (input, context) => {
|
|
500
|
+
const b = core.requestBuilder(input, context);
|
|
501
|
+
const headers = {};
|
|
502
|
+
b.bp("/tags/{resourceArn}");
|
|
503
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
504
|
+
const query = smithyClient.map({
|
|
505
|
+
[_tK]: [smithyClient.expectNonNull(input.tagKeys, `tagKeys`) != null, () => input[_tK] || []],
|
|
274
506
|
});
|
|
275
|
-
|
|
276
|
-
|
|
507
|
+
let body;
|
|
508
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
509
|
+
return b.build();
|
|
510
|
+
};
|
|
511
|
+
const se_UpdateLoggingConfigurationCommand = async (input, context) => {
|
|
512
|
+
const b = core.requestBuilder(input, context);
|
|
513
|
+
const headers = {
|
|
514
|
+
"content-type": "application/json",
|
|
515
|
+
};
|
|
516
|
+
b.bp("/UpdateLoggingConfiguration");
|
|
517
|
+
let body;
|
|
518
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
519
|
+
destinationConfiguration: (_) => smithyClient._json(_),
|
|
520
|
+
identifier: [],
|
|
521
|
+
name: [],
|
|
522
|
+
}));
|
|
523
|
+
b.m("POST").h(headers).b(body);
|
|
524
|
+
return b.build();
|
|
277
525
|
};
|
|
278
|
-
|
|
279
|
-
|
|
526
|
+
const se_UpdateRoomCommand = async (input, context) => {
|
|
527
|
+
const b = core.requestBuilder(input, context);
|
|
528
|
+
const headers = {
|
|
529
|
+
"content-type": "application/json",
|
|
530
|
+
};
|
|
531
|
+
b.bp("/UpdateRoom");
|
|
532
|
+
let body;
|
|
533
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
534
|
+
identifier: [],
|
|
535
|
+
loggingConfigurationIdentifiers: (_) => smithyClient._json(_),
|
|
536
|
+
maximumMessageLength: [],
|
|
537
|
+
maximumMessageRatePerSecond: [],
|
|
538
|
+
messageReviewHandler: (_) => smithyClient._json(_),
|
|
539
|
+
name: [],
|
|
540
|
+
}));
|
|
541
|
+
b.m("POST").h(headers).b(body);
|
|
542
|
+
return b.build();
|
|
280
543
|
};
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
* <p/>
|
|
294
|
-
* @public
|
|
295
|
-
*/
|
|
296
|
-
resourceType;
|
|
297
|
-
/**
|
|
298
|
-
* @internal
|
|
299
|
-
*/
|
|
300
|
-
constructor(opts) {
|
|
301
|
-
super({
|
|
302
|
-
name: "ResourceNotFoundException",
|
|
303
|
-
$fault: "client",
|
|
304
|
-
...opts
|
|
544
|
+
const de_CreateChatTokenCommand = async (output, context) => {
|
|
545
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
546
|
+
return de_CommandError(output, context);
|
|
547
|
+
}
|
|
548
|
+
const contents = smithyClient.map({
|
|
549
|
+
$metadata: deserializeMetadata(output),
|
|
550
|
+
});
|
|
551
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
552
|
+
const doc = smithyClient.take(data, {
|
|
553
|
+
sessionExpirationTime: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
|
|
554
|
+
token: smithyClient.expectString,
|
|
555
|
+
tokenExpirationTime: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
|
|
305
556
|
});
|
|
306
|
-
Object.
|
|
307
|
-
|
|
308
|
-
this.resourceType = opts.resourceType;
|
|
309
|
-
}
|
|
557
|
+
Object.assign(contents, doc);
|
|
558
|
+
return contents;
|
|
310
559
|
};
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
560
|
+
const de_CreateLoggingConfigurationCommand = async (output, context) => {
|
|
561
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
562
|
+
return de_CommandError(output, context);
|
|
563
|
+
}
|
|
564
|
+
const contents = smithyClient.map({
|
|
565
|
+
$metadata: deserializeMetadata(output),
|
|
566
|
+
});
|
|
567
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
568
|
+
const doc = smithyClient.take(data, {
|
|
569
|
+
arn: smithyClient.expectString,
|
|
570
|
+
createTime: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
|
|
571
|
+
destinationConfiguration: (_) => smithyClient._json(core$1.awsExpectUnion(_)),
|
|
572
|
+
id: smithyClient.expectString,
|
|
573
|
+
name: smithyClient.expectString,
|
|
574
|
+
state: smithyClient.expectString,
|
|
575
|
+
tags: smithyClient._json,
|
|
576
|
+
updateTime: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
|
|
577
|
+
});
|
|
578
|
+
Object.assign(contents, doc);
|
|
579
|
+
return contents;
|
|
315
580
|
};
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
/**
|
|
323
|
-
* <p/>
|
|
324
|
-
* @public
|
|
325
|
-
*/
|
|
326
|
-
reason;
|
|
327
|
-
/**
|
|
328
|
-
* <p/>
|
|
329
|
-
* @public
|
|
330
|
-
*/
|
|
331
|
-
fieldList;
|
|
332
|
-
/**
|
|
333
|
-
* @internal
|
|
334
|
-
*/
|
|
335
|
-
constructor(opts) {
|
|
336
|
-
super({
|
|
337
|
-
name: "ValidationException",
|
|
338
|
-
$fault: "client",
|
|
339
|
-
...opts
|
|
581
|
+
const de_CreateRoomCommand = async (output, context) => {
|
|
582
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
583
|
+
return de_CommandError(output, context);
|
|
584
|
+
}
|
|
585
|
+
const contents = smithyClient.map({
|
|
586
|
+
$metadata: deserializeMetadata(output),
|
|
340
587
|
});
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
588
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
589
|
+
const doc = smithyClient.take(data, {
|
|
590
|
+
arn: smithyClient.expectString,
|
|
591
|
+
createTime: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
|
|
592
|
+
id: smithyClient.expectString,
|
|
593
|
+
loggingConfigurationIdentifiers: smithyClient._json,
|
|
594
|
+
maximumMessageLength: smithyClient.expectInt32,
|
|
595
|
+
maximumMessageRatePerSecond: smithyClient.expectInt32,
|
|
596
|
+
messageReviewHandler: smithyClient._json,
|
|
597
|
+
name: smithyClient.expectString,
|
|
598
|
+
tags: smithyClient._json,
|
|
599
|
+
updateTime: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
|
|
600
|
+
});
|
|
601
|
+
Object.assign(contents, doc);
|
|
602
|
+
return contents;
|
|
345
603
|
};
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
/**
|
|
353
|
-
* <p/>
|
|
354
|
-
* @public
|
|
355
|
-
*/
|
|
356
|
-
resourceId;
|
|
357
|
-
/**
|
|
358
|
-
* <p/>
|
|
359
|
-
* @public
|
|
360
|
-
*/
|
|
361
|
-
resourceType;
|
|
362
|
-
/**
|
|
363
|
-
* @internal
|
|
364
|
-
*/
|
|
365
|
-
constructor(opts) {
|
|
366
|
-
super({
|
|
367
|
-
name: "ConflictException",
|
|
368
|
-
$fault: "client",
|
|
369
|
-
...opts
|
|
604
|
+
const de_DeleteLoggingConfigurationCommand = async (output, context) => {
|
|
605
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
606
|
+
return de_CommandError(output, context);
|
|
607
|
+
}
|
|
608
|
+
const contents = smithyClient.map({
|
|
609
|
+
$metadata: deserializeMetadata(output),
|
|
370
610
|
});
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
this.resourceType = opts.resourceType;
|
|
374
|
-
}
|
|
611
|
+
await smithyClient.collectBody(output.body, context);
|
|
612
|
+
return contents;
|
|
375
613
|
};
|
|
376
|
-
|
|
377
|
-
(
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
614
|
+
const de_DeleteMessageCommand = async (output, context) => {
|
|
615
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
616
|
+
return de_CommandError(output, context);
|
|
617
|
+
}
|
|
618
|
+
const contents = smithyClient.map({
|
|
619
|
+
$metadata: deserializeMetadata(output),
|
|
620
|
+
});
|
|
621
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
622
|
+
const doc = smithyClient.take(data, {
|
|
623
|
+
id: smithyClient.expectString,
|
|
624
|
+
});
|
|
625
|
+
Object.assign(contents, doc);
|
|
626
|
+
return contents;
|
|
387
627
|
};
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
/**
|
|
395
|
-
* <p/>
|
|
396
|
-
* @public
|
|
397
|
-
*/
|
|
398
|
-
resourceId;
|
|
399
|
-
/**
|
|
400
|
-
* <p/>
|
|
401
|
-
* @public
|
|
402
|
-
*/
|
|
403
|
-
resourceType;
|
|
404
|
-
/**
|
|
405
|
-
* <p/>
|
|
406
|
-
* @public
|
|
407
|
-
*/
|
|
408
|
-
limit;
|
|
409
|
-
/**
|
|
410
|
-
* @internal
|
|
411
|
-
*/
|
|
412
|
-
constructor(opts) {
|
|
413
|
-
super({
|
|
414
|
-
name: "ServiceQuotaExceededException",
|
|
415
|
-
$fault: "client",
|
|
416
|
-
...opts
|
|
628
|
+
const de_DeleteRoomCommand = async (output, context) => {
|
|
629
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
630
|
+
return de_CommandError(output, context);
|
|
631
|
+
}
|
|
632
|
+
const contents = smithyClient.map({
|
|
633
|
+
$metadata: deserializeMetadata(output),
|
|
417
634
|
});
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
this.resourceType = opts.resourceType;
|
|
421
|
-
this.limit = opts.limit;
|
|
422
|
-
}
|
|
635
|
+
await smithyClient.collectBody(output.body, context);
|
|
636
|
+
return contents;
|
|
423
637
|
};
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
638
|
+
const de_DisconnectUserCommand = async (output, context) => {
|
|
639
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
640
|
+
return de_CommandError(output, context);
|
|
641
|
+
}
|
|
642
|
+
const contents = smithyClient.map({
|
|
643
|
+
$metadata: deserializeMetadata(output),
|
|
644
|
+
});
|
|
645
|
+
await smithyClient.collectBody(output.body, context);
|
|
646
|
+
return contents;
|
|
427
647
|
};
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
/**
|
|
435
|
-
* <p/>
|
|
436
|
-
* @public
|
|
437
|
-
*/
|
|
438
|
-
resourceId;
|
|
439
|
-
/**
|
|
440
|
-
* <p/>
|
|
441
|
-
* @public
|
|
442
|
-
*/
|
|
443
|
-
resourceType;
|
|
444
|
-
/**
|
|
445
|
-
* <p/>
|
|
446
|
-
* @public
|
|
447
|
-
*/
|
|
448
|
-
limit;
|
|
449
|
-
/**
|
|
450
|
-
* @internal
|
|
451
|
-
*/
|
|
452
|
-
constructor(opts) {
|
|
453
|
-
super({
|
|
454
|
-
name: "ThrottlingException",
|
|
455
|
-
$fault: "client",
|
|
456
|
-
...opts
|
|
648
|
+
const de_GetLoggingConfigurationCommand = async (output, context) => {
|
|
649
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
650
|
+
return de_CommandError(output, context);
|
|
651
|
+
}
|
|
652
|
+
const contents = smithyClient.map({
|
|
653
|
+
$metadata: deserializeMetadata(output),
|
|
457
654
|
});
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
655
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
656
|
+
const doc = smithyClient.take(data, {
|
|
657
|
+
arn: smithyClient.expectString,
|
|
658
|
+
createTime: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
|
|
659
|
+
destinationConfiguration: (_) => smithyClient._json(core$1.awsExpectUnion(_)),
|
|
660
|
+
id: smithyClient.expectString,
|
|
661
|
+
name: smithyClient.expectString,
|
|
662
|
+
state: smithyClient.expectString,
|
|
663
|
+
tags: smithyClient._json,
|
|
664
|
+
updateTime: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
|
|
665
|
+
});
|
|
666
|
+
Object.assign(contents, doc);
|
|
667
|
+
return contents;
|
|
463
668
|
};
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
669
|
+
const de_GetRoomCommand = async (output, context) => {
|
|
670
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
671
|
+
return de_CommandError(output, context);
|
|
672
|
+
}
|
|
673
|
+
const contents = smithyClient.map({
|
|
674
|
+
$metadata: deserializeMetadata(output),
|
|
675
|
+
});
|
|
676
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
677
|
+
const doc = smithyClient.take(data, {
|
|
678
|
+
arn: smithyClient.expectString,
|
|
679
|
+
createTime: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
|
|
680
|
+
id: smithyClient.expectString,
|
|
681
|
+
loggingConfigurationIdentifiers: smithyClient._json,
|
|
682
|
+
maximumMessageLength: smithyClient.expectInt32,
|
|
683
|
+
maximumMessageRatePerSecond: smithyClient.expectInt32,
|
|
684
|
+
messageReviewHandler: smithyClient._json,
|
|
685
|
+
name: smithyClient.expectString,
|
|
686
|
+
tags: smithyClient._json,
|
|
687
|
+
updateTime: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
|
|
688
|
+
});
|
|
689
|
+
Object.assign(contents, doc);
|
|
690
|
+
return contents;
|
|
472
691
|
};
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
/**
|
|
480
|
-
* @internal
|
|
481
|
-
*/
|
|
482
|
-
constructor(opts) {
|
|
483
|
-
super({
|
|
484
|
-
name: "InternalServerException",
|
|
485
|
-
$fault: "server",
|
|
486
|
-
...opts
|
|
692
|
+
const de_ListLoggingConfigurationsCommand = async (output, context) => {
|
|
693
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
694
|
+
return de_CommandError(output, context);
|
|
695
|
+
}
|
|
696
|
+
const contents = smithyClient.map({
|
|
697
|
+
$metadata: deserializeMetadata(output),
|
|
487
698
|
});
|
|
488
|
-
|
|
489
|
-
|
|
699
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
700
|
+
const doc = smithyClient.take(data, {
|
|
701
|
+
loggingConfigurations: (_) => de_LoggingConfigurationList(_),
|
|
702
|
+
nextToken: smithyClient.expectString,
|
|
703
|
+
});
|
|
704
|
+
Object.assign(contents, doc);
|
|
705
|
+
return contents;
|
|
490
706
|
};
|
|
491
|
-
|
|
492
|
-
|
|
707
|
+
const de_ListRoomsCommand = async (output, context) => {
|
|
708
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
709
|
+
return de_CommandError(output, context);
|
|
710
|
+
}
|
|
711
|
+
const contents = smithyClient.map({
|
|
712
|
+
$metadata: deserializeMetadata(output),
|
|
713
|
+
});
|
|
714
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
715
|
+
const doc = smithyClient.take(data, {
|
|
716
|
+
nextToken: smithyClient.expectString,
|
|
717
|
+
rooms: (_) => de_RoomList(_),
|
|
718
|
+
});
|
|
719
|
+
Object.assign(contents, doc);
|
|
720
|
+
return contents;
|
|
493
721
|
};
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
// src/protocols/Aws_restJson1.ts
|
|
509
|
-
var import_core2 = require("@aws-sdk/core");
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
var se_CreateChatTokenCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
513
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
514
|
-
const headers = {
|
|
515
|
-
"content-type": "application/json"
|
|
516
|
-
};
|
|
517
|
-
b.bp("/CreateChatToken");
|
|
518
|
-
let body;
|
|
519
|
-
body = JSON.stringify(
|
|
520
|
-
(0, import_smithy_client.take)(input, {
|
|
521
|
-
attributes: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "attributes"),
|
|
522
|
-
capabilities: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "capabilities"),
|
|
523
|
-
roomIdentifier: [],
|
|
524
|
-
sessionDurationInMinutes: [],
|
|
525
|
-
userId: []
|
|
526
|
-
})
|
|
527
|
-
);
|
|
528
|
-
b.m("POST").h(headers).b(body);
|
|
529
|
-
return b.build();
|
|
530
|
-
}, "se_CreateChatTokenCommand");
|
|
531
|
-
var se_CreateLoggingConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
532
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
533
|
-
const headers = {
|
|
534
|
-
"content-type": "application/json"
|
|
535
|
-
};
|
|
536
|
-
b.bp("/CreateLoggingConfiguration");
|
|
537
|
-
let body;
|
|
538
|
-
body = JSON.stringify(
|
|
539
|
-
(0, import_smithy_client.take)(input, {
|
|
540
|
-
destinationConfiguration: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "destinationConfiguration"),
|
|
541
|
-
name: [],
|
|
542
|
-
tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "tags")
|
|
543
|
-
})
|
|
544
|
-
);
|
|
545
|
-
b.m("POST").h(headers).b(body);
|
|
546
|
-
return b.build();
|
|
547
|
-
}, "se_CreateLoggingConfigurationCommand");
|
|
548
|
-
var se_CreateRoomCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
549
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
550
|
-
const headers = {
|
|
551
|
-
"content-type": "application/json"
|
|
552
|
-
};
|
|
553
|
-
b.bp("/CreateRoom");
|
|
554
|
-
let body;
|
|
555
|
-
body = JSON.stringify(
|
|
556
|
-
(0, import_smithy_client.take)(input, {
|
|
557
|
-
loggingConfigurationIdentifiers: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "loggingConfigurationIdentifiers"),
|
|
558
|
-
maximumMessageLength: [],
|
|
559
|
-
maximumMessageRatePerSecond: [],
|
|
560
|
-
messageReviewHandler: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "messageReviewHandler"),
|
|
561
|
-
name: [],
|
|
562
|
-
tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "tags")
|
|
563
|
-
})
|
|
564
|
-
);
|
|
565
|
-
b.m("POST").h(headers).b(body);
|
|
566
|
-
return b.build();
|
|
567
|
-
}, "se_CreateRoomCommand");
|
|
568
|
-
var se_DeleteLoggingConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
569
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
570
|
-
const headers = {
|
|
571
|
-
"content-type": "application/json"
|
|
572
|
-
};
|
|
573
|
-
b.bp("/DeleteLoggingConfiguration");
|
|
574
|
-
let body;
|
|
575
|
-
body = JSON.stringify(
|
|
576
|
-
(0, import_smithy_client.take)(input, {
|
|
577
|
-
identifier: []
|
|
578
|
-
})
|
|
579
|
-
);
|
|
580
|
-
b.m("POST").h(headers).b(body);
|
|
581
|
-
return b.build();
|
|
582
|
-
}, "se_DeleteLoggingConfigurationCommand");
|
|
583
|
-
var se_DeleteMessageCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
584
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
585
|
-
const headers = {
|
|
586
|
-
"content-type": "application/json"
|
|
587
|
-
};
|
|
588
|
-
b.bp("/DeleteMessage");
|
|
589
|
-
let body;
|
|
590
|
-
body = JSON.stringify(
|
|
591
|
-
(0, import_smithy_client.take)(input, {
|
|
592
|
-
id: [],
|
|
593
|
-
reason: [],
|
|
594
|
-
roomIdentifier: []
|
|
595
|
-
})
|
|
596
|
-
);
|
|
597
|
-
b.m("POST").h(headers).b(body);
|
|
598
|
-
return b.build();
|
|
599
|
-
}, "se_DeleteMessageCommand");
|
|
600
|
-
var se_DeleteRoomCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
601
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
602
|
-
const headers = {
|
|
603
|
-
"content-type": "application/json"
|
|
604
|
-
};
|
|
605
|
-
b.bp("/DeleteRoom");
|
|
606
|
-
let body;
|
|
607
|
-
body = JSON.stringify(
|
|
608
|
-
(0, import_smithy_client.take)(input, {
|
|
609
|
-
identifier: []
|
|
610
|
-
})
|
|
611
|
-
);
|
|
612
|
-
b.m("POST").h(headers).b(body);
|
|
613
|
-
return b.build();
|
|
614
|
-
}, "se_DeleteRoomCommand");
|
|
615
|
-
var se_DisconnectUserCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
616
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
617
|
-
const headers = {
|
|
618
|
-
"content-type": "application/json"
|
|
619
|
-
};
|
|
620
|
-
b.bp("/DisconnectUser");
|
|
621
|
-
let body;
|
|
622
|
-
body = JSON.stringify(
|
|
623
|
-
(0, import_smithy_client.take)(input, {
|
|
624
|
-
reason: [],
|
|
625
|
-
roomIdentifier: [],
|
|
626
|
-
userId: []
|
|
627
|
-
})
|
|
628
|
-
);
|
|
629
|
-
b.m("POST").h(headers).b(body);
|
|
630
|
-
return b.build();
|
|
631
|
-
}, "se_DisconnectUserCommand");
|
|
632
|
-
var se_GetLoggingConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
633
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
634
|
-
const headers = {
|
|
635
|
-
"content-type": "application/json"
|
|
636
|
-
};
|
|
637
|
-
b.bp("/GetLoggingConfiguration");
|
|
638
|
-
let body;
|
|
639
|
-
body = JSON.stringify(
|
|
640
|
-
(0, import_smithy_client.take)(input, {
|
|
641
|
-
identifier: []
|
|
642
|
-
})
|
|
643
|
-
);
|
|
644
|
-
b.m("POST").h(headers).b(body);
|
|
645
|
-
return b.build();
|
|
646
|
-
}, "se_GetLoggingConfigurationCommand");
|
|
647
|
-
var se_GetRoomCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
648
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
649
|
-
const headers = {
|
|
650
|
-
"content-type": "application/json"
|
|
651
|
-
};
|
|
652
|
-
b.bp("/GetRoom");
|
|
653
|
-
let body;
|
|
654
|
-
body = JSON.stringify(
|
|
655
|
-
(0, import_smithy_client.take)(input, {
|
|
656
|
-
identifier: []
|
|
657
|
-
})
|
|
658
|
-
);
|
|
659
|
-
b.m("POST").h(headers).b(body);
|
|
660
|
-
return b.build();
|
|
661
|
-
}, "se_GetRoomCommand");
|
|
662
|
-
var se_ListLoggingConfigurationsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
663
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
664
|
-
const headers = {
|
|
665
|
-
"content-type": "application/json"
|
|
666
|
-
};
|
|
667
|
-
b.bp("/ListLoggingConfigurations");
|
|
668
|
-
let body;
|
|
669
|
-
body = JSON.stringify(
|
|
670
|
-
(0, import_smithy_client.take)(input, {
|
|
671
|
-
maxResults: [],
|
|
672
|
-
nextToken: []
|
|
673
|
-
})
|
|
674
|
-
);
|
|
675
|
-
b.m("POST").h(headers).b(body);
|
|
676
|
-
return b.build();
|
|
677
|
-
}, "se_ListLoggingConfigurationsCommand");
|
|
678
|
-
var se_ListRoomsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
679
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
680
|
-
const headers = {
|
|
681
|
-
"content-type": "application/json"
|
|
682
|
-
};
|
|
683
|
-
b.bp("/ListRooms");
|
|
684
|
-
let body;
|
|
685
|
-
body = JSON.stringify(
|
|
686
|
-
(0, import_smithy_client.take)(input, {
|
|
687
|
-
loggingConfigurationIdentifier: [],
|
|
688
|
-
maxResults: [],
|
|
689
|
-
messageReviewHandlerUri: [],
|
|
690
|
-
name: [],
|
|
691
|
-
nextToken: []
|
|
692
|
-
})
|
|
693
|
-
);
|
|
694
|
-
b.m("POST").h(headers).b(body);
|
|
695
|
-
return b.build();
|
|
696
|
-
}, "se_ListRoomsCommand");
|
|
697
|
-
var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
698
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
699
|
-
const headers = {};
|
|
700
|
-
b.bp("/tags/{resourceArn}");
|
|
701
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
702
|
-
let body;
|
|
703
|
-
b.m("GET").h(headers).b(body);
|
|
704
|
-
return b.build();
|
|
705
|
-
}, "se_ListTagsForResourceCommand");
|
|
706
|
-
var se_SendEventCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
707
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
708
|
-
const headers = {
|
|
709
|
-
"content-type": "application/json"
|
|
710
|
-
};
|
|
711
|
-
b.bp("/SendEvent");
|
|
712
|
-
let body;
|
|
713
|
-
body = JSON.stringify(
|
|
714
|
-
(0, import_smithy_client.take)(input, {
|
|
715
|
-
attributes: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "attributes"),
|
|
716
|
-
eventName: [],
|
|
717
|
-
roomIdentifier: []
|
|
718
|
-
})
|
|
719
|
-
);
|
|
720
|
-
b.m("POST").h(headers).b(body);
|
|
721
|
-
return b.build();
|
|
722
|
-
}, "se_SendEventCommand");
|
|
723
|
-
var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
724
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
725
|
-
const headers = {
|
|
726
|
-
"content-type": "application/json"
|
|
727
|
-
};
|
|
728
|
-
b.bp("/tags/{resourceArn}");
|
|
729
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
730
|
-
let body;
|
|
731
|
-
body = JSON.stringify(
|
|
732
|
-
(0, import_smithy_client.take)(input, {
|
|
733
|
-
tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "tags")
|
|
734
|
-
})
|
|
735
|
-
);
|
|
736
|
-
b.m("POST").h(headers).b(body);
|
|
737
|
-
return b.build();
|
|
738
|
-
}, "se_TagResourceCommand");
|
|
739
|
-
var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
740
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
741
|
-
const headers = {};
|
|
742
|
-
b.bp("/tags/{resourceArn}");
|
|
743
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
744
|
-
const query = (0, import_smithy_client.map)({
|
|
745
|
-
[_tK]: [(0, import_smithy_client.expectNonNull)(input.tagKeys, `tagKeys`) != null, () => input[_tK] || []]
|
|
746
|
-
});
|
|
747
|
-
let body;
|
|
748
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
749
|
-
return b.build();
|
|
750
|
-
}, "se_UntagResourceCommand");
|
|
751
|
-
var se_UpdateLoggingConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
752
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
753
|
-
const headers = {
|
|
754
|
-
"content-type": "application/json"
|
|
755
|
-
};
|
|
756
|
-
b.bp("/UpdateLoggingConfiguration");
|
|
757
|
-
let body;
|
|
758
|
-
body = JSON.stringify(
|
|
759
|
-
(0, import_smithy_client.take)(input, {
|
|
760
|
-
destinationConfiguration: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "destinationConfiguration"),
|
|
761
|
-
identifier: [],
|
|
762
|
-
name: []
|
|
763
|
-
})
|
|
764
|
-
);
|
|
765
|
-
b.m("POST").h(headers).b(body);
|
|
766
|
-
return b.build();
|
|
767
|
-
}, "se_UpdateLoggingConfigurationCommand");
|
|
768
|
-
var se_UpdateRoomCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
769
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
770
|
-
const headers = {
|
|
771
|
-
"content-type": "application/json"
|
|
772
|
-
};
|
|
773
|
-
b.bp("/UpdateRoom");
|
|
774
|
-
let body;
|
|
775
|
-
body = JSON.stringify(
|
|
776
|
-
(0, import_smithy_client.take)(input, {
|
|
777
|
-
identifier: [],
|
|
778
|
-
loggingConfigurationIdentifiers: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "loggingConfigurationIdentifiers"),
|
|
779
|
-
maximumMessageLength: [],
|
|
780
|
-
maximumMessageRatePerSecond: [],
|
|
781
|
-
messageReviewHandler: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "messageReviewHandler"),
|
|
782
|
-
name: []
|
|
783
|
-
})
|
|
784
|
-
);
|
|
785
|
-
b.m("POST").h(headers).b(body);
|
|
786
|
-
return b.build();
|
|
787
|
-
}, "se_UpdateRoomCommand");
|
|
788
|
-
var de_CreateChatTokenCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
789
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
790
|
-
return de_CommandError(output, context);
|
|
791
|
-
}
|
|
792
|
-
const contents = (0, import_smithy_client.map)({
|
|
793
|
-
$metadata: deserializeMetadata(output)
|
|
794
|
-
});
|
|
795
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
796
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
797
|
-
sessionExpirationTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "sessionExpirationTime"),
|
|
798
|
-
token: import_smithy_client.expectString,
|
|
799
|
-
tokenExpirationTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "tokenExpirationTime")
|
|
800
|
-
});
|
|
801
|
-
Object.assign(contents, doc);
|
|
802
|
-
return contents;
|
|
803
|
-
}, "de_CreateChatTokenCommand");
|
|
804
|
-
var de_CreateLoggingConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
805
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
806
|
-
return de_CommandError(output, context);
|
|
807
|
-
}
|
|
808
|
-
const contents = (0, import_smithy_client.map)({
|
|
809
|
-
$metadata: deserializeMetadata(output)
|
|
810
|
-
});
|
|
811
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
812
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
813
|
-
arn: import_smithy_client.expectString,
|
|
814
|
-
createTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "createTime"),
|
|
815
|
-
destinationConfiguration: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)((0, import_core2.awsExpectUnion)(_)), "destinationConfiguration"),
|
|
816
|
-
id: import_smithy_client.expectString,
|
|
817
|
-
name: import_smithy_client.expectString,
|
|
818
|
-
state: import_smithy_client.expectString,
|
|
819
|
-
tags: import_smithy_client._json,
|
|
820
|
-
updateTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "updateTime")
|
|
821
|
-
});
|
|
822
|
-
Object.assign(contents, doc);
|
|
823
|
-
return contents;
|
|
824
|
-
}, "de_CreateLoggingConfigurationCommand");
|
|
825
|
-
var de_CreateRoomCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
826
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
827
|
-
return de_CommandError(output, context);
|
|
828
|
-
}
|
|
829
|
-
const contents = (0, import_smithy_client.map)({
|
|
830
|
-
$metadata: deserializeMetadata(output)
|
|
831
|
-
});
|
|
832
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
833
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
834
|
-
arn: import_smithy_client.expectString,
|
|
835
|
-
createTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "createTime"),
|
|
836
|
-
id: import_smithy_client.expectString,
|
|
837
|
-
loggingConfigurationIdentifiers: import_smithy_client._json,
|
|
838
|
-
maximumMessageLength: import_smithy_client.expectInt32,
|
|
839
|
-
maximumMessageRatePerSecond: import_smithy_client.expectInt32,
|
|
840
|
-
messageReviewHandler: import_smithy_client._json,
|
|
841
|
-
name: import_smithy_client.expectString,
|
|
842
|
-
tags: import_smithy_client._json,
|
|
843
|
-
updateTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "updateTime")
|
|
844
|
-
});
|
|
845
|
-
Object.assign(contents, doc);
|
|
846
|
-
return contents;
|
|
847
|
-
}, "de_CreateRoomCommand");
|
|
848
|
-
var de_DeleteLoggingConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
849
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
850
|
-
return de_CommandError(output, context);
|
|
851
|
-
}
|
|
852
|
-
const contents = (0, import_smithy_client.map)({
|
|
853
|
-
$metadata: deserializeMetadata(output)
|
|
854
|
-
});
|
|
855
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
856
|
-
return contents;
|
|
857
|
-
}, "de_DeleteLoggingConfigurationCommand");
|
|
858
|
-
var de_DeleteMessageCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
859
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
860
|
-
return de_CommandError(output, context);
|
|
861
|
-
}
|
|
862
|
-
const contents = (0, import_smithy_client.map)({
|
|
863
|
-
$metadata: deserializeMetadata(output)
|
|
864
|
-
});
|
|
865
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
866
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
867
|
-
id: import_smithy_client.expectString
|
|
868
|
-
});
|
|
869
|
-
Object.assign(contents, doc);
|
|
870
|
-
return contents;
|
|
871
|
-
}, "de_DeleteMessageCommand");
|
|
872
|
-
var de_DeleteRoomCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
873
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
874
|
-
return de_CommandError(output, context);
|
|
875
|
-
}
|
|
876
|
-
const contents = (0, import_smithy_client.map)({
|
|
877
|
-
$metadata: deserializeMetadata(output)
|
|
878
|
-
});
|
|
879
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
880
|
-
return contents;
|
|
881
|
-
}, "de_DeleteRoomCommand");
|
|
882
|
-
var de_DisconnectUserCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
883
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
884
|
-
return de_CommandError(output, context);
|
|
885
|
-
}
|
|
886
|
-
const contents = (0, import_smithy_client.map)({
|
|
887
|
-
$metadata: deserializeMetadata(output)
|
|
888
|
-
});
|
|
889
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
890
|
-
return contents;
|
|
891
|
-
}, "de_DisconnectUserCommand");
|
|
892
|
-
var de_GetLoggingConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
893
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
894
|
-
return de_CommandError(output, context);
|
|
895
|
-
}
|
|
896
|
-
const contents = (0, import_smithy_client.map)({
|
|
897
|
-
$metadata: deserializeMetadata(output)
|
|
898
|
-
});
|
|
899
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
900
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
901
|
-
arn: import_smithy_client.expectString,
|
|
902
|
-
createTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "createTime"),
|
|
903
|
-
destinationConfiguration: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)((0, import_core2.awsExpectUnion)(_)), "destinationConfiguration"),
|
|
904
|
-
id: import_smithy_client.expectString,
|
|
905
|
-
name: import_smithy_client.expectString,
|
|
906
|
-
state: import_smithy_client.expectString,
|
|
907
|
-
tags: import_smithy_client._json,
|
|
908
|
-
updateTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "updateTime")
|
|
909
|
-
});
|
|
910
|
-
Object.assign(contents, doc);
|
|
911
|
-
return contents;
|
|
912
|
-
}, "de_GetLoggingConfigurationCommand");
|
|
913
|
-
var de_GetRoomCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
914
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
915
|
-
return de_CommandError(output, context);
|
|
916
|
-
}
|
|
917
|
-
const contents = (0, import_smithy_client.map)({
|
|
918
|
-
$metadata: deserializeMetadata(output)
|
|
919
|
-
});
|
|
920
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
921
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
922
|
-
arn: import_smithy_client.expectString,
|
|
923
|
-
createTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "createTime"),
|
|
924
|
-
id: import_smithy_client.expectString,
|
|
925
|
-
loggingConfigurationIdentifiers: import_smithy_client._json,
|
|
926
|
-
maximumMessageLength: import_smithy_client.expectInt32,
|
|
927
|
-
maximumMessageRatePerSecond: import_smithy_client.expectInt32,
|
|
928
|
-
messageReviewHandler: import_smithy_client._json,
|
|
929
|
-
name: import_smithy_client.expectString,
|
|
930
|
-
tags: import_smithy_client._json,
|
|
931
|
-
updateTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "updateTime")
|
|
932
|
-
});
|
|
933
|
-
Object.assign(contents, doc);
|
|
934
|
-
return contents;
|
|
935
|
-
}, "de_GetRoomCommand");
|
|
936
|
-
var de_ListLoggingConfigurationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
937
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
938
|
-
return de_CommandError(output, context);
|
|
939
|
-
}
|
|
940
|
-
const contents = (0, import_smithy_client.map)({
|
|
941
|
-
$metadata: deserializeMetadata(output)
|
|
942
|
-
});
|
|
943
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
944
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
945
|
-
loggingConfigurations: /* @__PURE__ */ __name((_) => de_LoggingConfigurationList(_, context), "loggingConfigurations"),
|
|
946
|
-
nextToken: import_smithy_client.expectString
|
|
947
|
-
});
|
|
948
|
-
Object.assign(contents, doc);
|
|
949
|
-
return contents;
|
|
950
|
-
}, "de_ListLoggingConfigurationsCommand");
|
|
951
|
-
var de_ListRoomsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
952
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
953
|
-
return de_CommandError(output, context);
|
|
954
|
-
}
|
|
955
|
-
const contents = (0, import_smithy_client.map)({
|
|
956
|
-
$metadata: deserializeMetadata(output)
|
|
957
|
-
});
|
|
958
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
959
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
960
|
-
nextToken: import_smithy_client.expectString,
|
|
961
|
-
rooms: /* @__PURE__ */ __name((_) => de_RoomList(_, context), "rooms")
|
|
962
|
-
});
|
|
963
|
-
Object.assign(contents, doc);
|
|
964
|
-
return contents;
|
|
965
|
-
}, "de_ListRoomsCommand");
|
|
966
|
-
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
967
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
968
|
-
return de_CommandError(output, context);
|
|
969
|
-
}
|
|
970
|
-
const contents = (0, import_smithy_client.map)({
|
|
971
|
-
$metadata: deserializeMetadata(output)
|
|
972
|
-
});
|
|
973
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
974
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
975
|
-
tags: import_smithy_client._json
|
|
976
|
-
});
|
|
977
|
-
Object.assign(contents, doc);
|
|
978
|
-
return contents;
|
|
979
|
-
}, "de_ListTagsForResourceCommand");
|
|
980
|
-
var de_SendEventCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
981
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
982
|
-
return de_CommandError(output, context);
|
|
983
|
-
}
|
|
984
|
-
const contents = (0, import_smithy_client.map)({
|
|
985
|
-
$metadata: deserializeMetadata(output)
|
|
986
|
-
});
|
|
987
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
988
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
989
|
-
id: import_smithy_client.expectString
|
|
990
|
-
});
|
|
991
|
-
Object.assign(contents, doc);
|
|
992
|
-
return contents;
|
|
993
|
-
}, "de_SendEventCommand");
|
|
994
|
-
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
995
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
996
|
-
return de_CommandError(output, context);
|
|
997
|
-
}
|
|
998
|
-
const contents = (0, import_smithy_client.map)({
|
|
999
|
-
$metadata: deserializeMetadata(output)
|
|
1000
|
-
});
|
|
1001
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1002
|
-
return contents;
|
|
1003
|
-
}, "de_TagResourceCommand");
|
|
1004
|
-
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1005
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1006
|
-
return de_CommandError(output, context);
|
|
1007
|
-
}
|
|
1008
|
-
const contents = (0, import_smithy_client.map)({
|
|
1009
|
-
$metadata: deserializeMetadata(output)
|
|
1010
|
-
});
|
|
1011
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1012
|
-
return contents;
|
|
1013
|
-
}, "de_UntagResourceCommand");
|
|
1014
|
-
var de_UpdateLoggingConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1015
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1016
|
-
return de_CommandError(output, context);
|
|
1017
|
-
}
|
|
1018
|
-
const contents = (0, import_smithy_client.map)({
|
|
1019
|
-
$metadata: deserializeMetadata(output)
|
|
1020
|
-
});
|
|
1021
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1022
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1023
|
-
arn: import_smithy_client.expectString,
|
|
1024
|
-
createTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "createTime"),
|
|
1025
|
-
destinationConfiguration: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)((0, import_core2.awsExpectUnion)(_)), "destinationConfiguration"),
|
|
1026
|
-
id: import_smithy_client.expectString,
|
|
1027
|
-
name: import_smithy_client.expectString,
|
|
1028
|
-
state: import_smithy_client.expectString,
|
|
1029
|
-
tags: import_smithy_client._json,
|
|
1030
|
-
updateTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "updateTime")
|
|
1031
|
-
});
|
|
1032
|
-
Object.assign(contents, doc);
|
|
1033
|
-
return contents;
|
|
1034
|
-
}, "de_UpdateLoggingConfigurationCommand");
|
|
1035
|
-
var de_UpdateRoomCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1036
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1037
|
-
return de_CommandError(output, context);
|
|
1038
|
-
}
|
|
1039
|
-
const contents = (0, import_smithy_client.map)({
|
|
1040
|
-
$metadata: deserializeMetadata(output)
|
|
1041
|
-
});
|
|
1042
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1043
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1044
|
-
arn: import_smithy_client.expectString,
|
|
1045
|
-
createTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "createTime"),
|
|
1046
|
-
id: import_smithy_client.expectString,
|
|
1047
|
-
loggingConfigurationIdentifiers: import_smithy_client._json,
|
|
1048
|
-
maximumMessageLength: import_smithy_client.expectInt32,
|
|
1049
|
-
maximumMessageRatePerSecond: import_smithy_client.expectInt32,
|
|
1050
|
-
messageReviewHandler: import_smithy_client._json,
|
|
1051
|
-
name: import_smithy_client.expectString,
|
|
1052
|
-
tags: import_smithy_client._json,
|
|
1053
|
-
updateTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "updateTime")
|
|
1054
|
-
});
|
|
1055
|
-
Object.assign(contents, doc);
|
|
1056
|
-
return contents;
|
|
1057
|
-
}, "de_UpdateRoomCommand");
|
|
1058
|
-
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1059
|
-
const parsedOutput = {
|
|
1060
|
-
...output,
|
|
1061
|
-
body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
|
|
1062
|
-
};
|
|
1063
|
-
const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
1064
|
-
switch (errorCode) {
|
|
1065
|
-
case "AccessDeniedException":
|
|
1066
|
-
case "com.amazonaws.ivschat#AccessDeniedException":
|
|
1067
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1068
|
-
case "PendingVerification":
|
|
1069
|
-
case "com.amazonaws.ivschat#PendingVerification":
|
|
1070
|
-
throw await de_PendingVerificationRes(parsedOutput, context);
|
|
1071
|
-
case "ResourceNotFoundException":
|
|
1072
|
-
case "com.amazonaws.ivschat#ResourceNotFoundException":
|
|
1073
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1074
|
-
case "ValidationException":
|
|
1075
|
-
case "com.amazonaws.ivschat#ValidationException":
|
|
1076
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1077
|
-
case "ConflictException":
|
|
1078
|
-
case "com.amazonaws.ivschat#ConflictException":
|
|
1079
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1080
|
-
case "ServiceQuotaExceededException":
|
|
1081
|
-
case "com.amazonaws.ivschat#ServiceQuotaExceededException":
|
|
1082
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1083
|
-
case "ThrottlingException":
|
|
1084
|
-
case "com.amazonaws.ivschat#ThrottlingException":
|
|
1085
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1086
|
-
case "InternalServerException":
|
|
1087
|
-
case "com.amazonaws.ivschat#InternalServerException":
|
|
1088
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1089
|
-
default:
|
|
1090
|
-
const parsedBody = parsedOutput.body;
|
|
1091
|
-
return throwDefaultError({
|
|
1092
|
-
output,
|
|
1093
|
-
parsedBody,
|
|
1094
|
-
errorCode
|
|
1095
|
-
});
|
|
1096
|
-
}
|
|
1097
|
-
}, "de_CommandError");
|
|
1098
|
-
var throwDefaultError = (0, import_smithy_client.withBaseException)(IvschatServiceException);
|
|
1099
|
-
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1100
|
-
const contents = (0, import_smithy_client.map)({});
|
|
1101
|
-
const data = parsedOutput.body;
|
|
1102
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1103
|
-
message: import_smithy_client.expectString
|
|
1104
|
-
});
|
|
1105
|
-
Object.assign(contents, doc);
|
|
1106
|
-
const exception = new AccessDeniedException({
|
|
1107
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1108
|
-
...contents
|
|
1109
|
-
});
|
|
1110
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1111
|
-
}, "de_AccessDeniedExceptionRes");
|
|
1112
|
-
var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1113
|
-
const contents = (0, import_smithy_client.map)({});
|
|
1114
|
-
const data = parsedOutput.body;
|
|
1115
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1116
|
-
message: import_smithy_client.expectString,
|
|
1117
|
-
resourceId: import_smithy_client.expectString,
|
|
1118
|
-
resourceType: import_smithy_client.expectString
|
|
1119
|
-
});
|
|
1120
|
-
Object.assign(contents, doc);
|
|
1121
|
-
const exception = new ConflictException({
|
|
1122
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1123
|
-
...contents
|
|
1124
|
-
});
|
|
1125
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1126
|
-
}, "de_ConflictExceptionRes");
|
|
1127
|
-
var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1128
|
-
const contents = (0, import_smithy_client.map)({});
|
|
1129
|
-
const data = parsedOutput.body;
|
|
1130
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1131
|
-
message: import_smithy_client.expectString
|
|
1132
|
-
});
|
|
1133
|
-
Object.assign(contents, doc);
|
|
1134
|
-
const exception = new InternalServerException({
|
|
1135
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1136
|
-
...contents
|
|
1137
|
-
});
|
|
1138
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1139
|
-
}, "de_InternalServerExceptionRes");
|
|
1140
|
-
var de_PendingVerificationRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1141
|
-
const contents = (0, import_smithy_client.map)({});
|
|
1142
|
-
const data = parsedOutput.body;
|
|
1143
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1144
|
-
message: import_smithy_client.expectString
|
|
1145
|
-
});
|
|
1146
|
-
Object.assign(contents, doc);
|
|
1147
|
-
const exception = new PendingVerification({
|
|
1148
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1149
|
-
...contents
|
|
1150
|
-
});
|
|
1151
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1152
|
-
}, "de_PendingVerificationRes");
|
|
1153
|
-
var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1154
|
-
const contents = (0, import_smithy_client.map)({});
|
|
1155
|
-
const data = parsedOutput.body;
|
|
1156
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1157
|
-
message: import_smithy_client.expectString,
|
|
1158
|
-
resourceId: import_smithy_client.expectString,
|
|
1159
|
-
resourceType: import_smithy_client.expectString
|
|
1160
|
-
});
|
|
1161
|
-
Object.assign(contents, doc);
|
|
1162
|
-
const exception = new ResourceNotFoundException({
|
|
1163
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1164
|
-
...contents
|
|
1165
|
-
});
|
|
1166
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1167
|
-
}, "de_ResourceNotFoundExceptionRes");
|
|
1168
|
-
var de_ServiceQuotaExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1169
|
-
const contents = (0, import_smithy_client.map)({});
|
|
1170
|
-
const data = parsedOutput.body;
|
|
1171
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1172
|
-
limit: import_smithy_client.expectInt32,
|
|
1173
|
-
message: import_smithy_client.expectString,
|
|
1174
|
-
resourceId: import_smithy_client.expectString,
|
|
1175
|
-
resourceType: import_smithy_client.expectString
|
|
1176
|
-
});
|
|
1177
|
-
Object.assign(contents, doc);
|
|
1178
|
-
const exception = new ServiceQuotaExceededException({
|
|
1179
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1180
|
-
...contents
|
|
1181
|
-
});
|
|
1182
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1183
|
-
}, "de_ServiceQuotaExceededExceptionRes");
|
|
1184
|
-
var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1185
|
-
const contents = (0, import_smithy_client.map)({});
|
|
1186
|
-
const data = parsedOutput.body;
|
|
1187
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1188
|
-
limit: import_smithy_client.expectInt32,
|
|
1189
|
-
message: import_smithy_client.expectString,
|
|
1190
|
-
resourceId: import_smithy_client.expectString,
|
|
1191
|
-
resourceType: import_smithy_client.expectString
|
|
1192
|
-
});
|
|
1193
|
-
Object.assign(contents, doc);
|
|
1194
|
-
const exception = new ThrottlingException({
|
|
1195
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1196
|
-
...contents
|
|
1197
|
-
});
|
|
1198
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1199
|
-
}, "de_ThrottlingExceptionRes");
|
|
1200
|
-
var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1201
|
-
const contents = (0, import_smithy_client.map)({});
|
|
1202
|
-
const data = parsedOutput.body;
|
|
1203
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1204
|
-
fieldList: import_smithy_client._json,
|
|
1205
|
-
message: import_smithy_client.expectString,
|
|
1206
|
-
reason: import_smithy_client.expectString
|
|
1207
|
-
});
|
|
1208
|
-
Object.assign(contents, doc);
|
|
1209
|
-
const exception = new ValidationException({
|
|
1210
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1211
|
-
...contents
|
|
1212
|
-
});
|
|
1213
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1214
|
-
}, "de_ValidationExceptionRes");
|
|
1215
|
-
var de_LoggingConfigurationList = /* @__PURE__ */ __name((output, context) => {
|
|
1216
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1217
|
-
return de_LoggingConfigurationSummary(entry, context);
|
|
1218
|
-
});
|
|
1219
|
-
return retVal;
|
|
1220
|
-
}, "de_LoggingConfigurationList");
|
|
1221
|
-
var de_LoggingConfigurationSummary = /* @__PURE__ */ __name((output, context) => {
|
|
1222
|
-
return (0, import_smithy_client.take)(output, {
|
|
1223
|
-
arn: import_smithy_client.expectString,
|
|
1224
|
-
createTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "createTime"),
|
|
1225
|
-
destinationConfiguration: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)((0, import_core2.awsExpectUnion)(_)), "destinationConfiguration"),
|
|
1226
|
-
id: import_smithy_client.expectString,
|
|
1227
|
-
name: import_smithy_client.expectString,
|
|
1228
|
-
state: import_smithy_client.expectString,
|
|
1229
|
-
tags: import_smithy_client._json,
|
|
1230
|
-
updateTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "updateTime")
|
|
1231
|
-
});
|
|
1232
|
-
}, "de_LoggingConfigurationSummary");
|
|
1233
|
-
var de_RoomList = /* @__PURE__ */ __name((output, context) => {
|
|
1234
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1235
|
-
return de_RoomSummary(entry, context);
|
|
1236
|
-
});
|
|
1237
|
-
return retVal;
|
|
1238
|
-
}, "de_RoomList");
|
|
1239
|
-
var de_RoomSummary = /* @__PURE__ */ __name((output, context) => {
|
|
1240
|
-
return (0, import_smithy_client.take)(output, {
|
|
1241
|
-
arn: import_smithy_client.expectString,
|
|
1242
|
-
createTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "createTime"),
|
|
1243
|
-
id: import_smithy_client.expectString,
|
|
1244
|
-
loggingConfigurationIdentifiers: import_smithy_client._json,
|
|
1245
|
-
messageReviewHandler: import_smithy_client._json,
|
|
1246
|
-
name: import_smithy_client.expectString,
|
|
1247
|
-
tags: import_smithy_client._json,
|
|
1248
|
-
updateTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "updateTime")
|
|
1249
|
-
});
|
|
1250
|
-
}, "de_RoomSummary");
|
|
1251
|
-
var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
1252
|
-
httpStatusCode: output.statusCode,
|
|
1253
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1254
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1255
|
-
cfId: output.headers["x-amz-cf-id"]
|
|
1256
|
-
}), "deserializeMetadata");
|
|
1257
|
-
var _tK = "tagKeys";
|
|
1258
|
-
|
|
1259
|
-
// src/commands/CreateChatTokenCommand.ts
|
|
1260
|
-
var CreateChatTokenCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1261
|
-
return [
|
|
1262
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1263
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1264
|
-
];
|
|
1265
|
-
}).s("AmazonInteractiveVideoServiceChat", "CreateChatToken", {}).n("IvschatClient", "CreateChatTokenCommand").f(CreateChatTokenRequestFilterSensitiveLog, CreateChatTokenResponseFilterSensitiveLog).ser(se_CreateChatTokenCommand).de(de_CreateChatTokenCommand).build() {
|
|
1266
|
-
static {
|
|
1267
|
-
__name(this, "CreateChatTokenCommand");
|
|
1268
|
-
}
|
|
722
|
+
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
723
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
724
|
+
return de_CommandError(output, context);
|
|
725
|
+
}
|
|
726
|
+
const contents = smithyClient.map({
|
|
727
|
+
$metadata: deserializeMetadata(output),
|
|
728
|
+
});
|
|
729
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
730
|
+
const doc = smithyClient.take(data, {
|
|
731
|
+
tags: smithyClient._json,
|
|
732
|
+
});
|
|
733
|
+
Object.assign(contents, doc);
|
|
734
|
+
return contents;
|
|
1269
735
|
};
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
(
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
})
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
}
|
|
736
|
+
const de_SendEventCommand = async (output, context) => {
|
|
737
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
738
|
+
return de_CommandError(output, context);
|
|
739
|
+
}
|
|
740
|
+
const contents = smithyClient.map({
|
|
741
|
+
$metadata: deserializeMetadata(output),
|
|
742
|
+
});
|
|
743
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
744
|
+
const doc = smithyClient.take(data, {
|
|
745
|
+
id: smithyClient.expectString,
|
|
746
|
+
});
|
|
747
|
+
Object.assign(contents, doc);
|
|
748
|
+
return contents;
|
|
1284
749
|
};
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
];
|
|
1295
|
-
}).s("AmazonInteractiveVideoServiceChat", "CreateRoom", {}).n("IvschatClient", "CreateRoomCommand").f(void 0, void 0).ser(se_CreateRoomCommand).de(de_CreateRoomCommand).build() {
|
|
1296
|
-
static {
|
|
1297
|
-
__name(this, "CreateRoomCommand");
|
|
1298
|
-
}
|
|
750
|
+
const de_TagResourceCommand = async (output, context) => {
|
|
751
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
752
|
+
return de_CommandError(output, context);
|
|
753
|
+
}
|
|
754
|
+
const contents = smithyClient.map({
|
|
755
|
+
$metadata: deserializeMetadata(output),
|
|
756
|
+
});
|
|
757
|
+
await smithyClient.collectBody(output.body, context);
|
|
758
|
+
return contents;
|
|
1299
759
|
};
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
];
|
|
1310
|
-
}).s("AmazonInteractiveVideoServiceChat", "DeleteLoggingConfiguration", {}).n("IvschatClient", "DeleteLoggingConfigurationCommand").f(void 0, void 0).ser(se_DeleteLoggingConfigurationCommand).de(de_DeleteLoggingConfigurationCommand).build() {
|
|
1311
|
-
static {
|
|
1312
|
-
__name(this, "DeleteLoggingConfigurationCommand");
|
|
1313
|
-
}
|
|
760
|
+
const de_UntagResourceCommand = async (output, context) => {
|
|
761
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
762
|
+
return de_CommandError(output, context);
|
|
763
|
+
}
|
|
764
|
+
const contents = smithyClient.map({
|
|
765
|
+
$metadata: deserializeMetadata(output),
|
|
766
|
+
});
|
|
767
|
+
await smithyClient.collectBody(output.body, context);
|
|
768
|
+
return contents;
|
|
1314
769
|
};
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
(
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
770
|
+
const de_UpdateLoggingConfigurationCommand = async (output, context) => {
|
|
771
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
772
|
+
return de_CommandError(output, context);
|
|
773
|
+
}
|
|
774
|
+
const contents = smithyClient.map({
|
|
775
|
+
$metadata: deserializeMetadata(output),
|
|
776
|
+
});
|
|
777
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
778
|
+
const doc = smithyClient.take(data, {
|
|
779
|
+
arn: smithyClient.expectString,
|
|
780
|
+
createTime: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
|
|
781
|
+
destinationConfiguration: (_) => smithyClient._json(core$1.awsExpectUnion(_)),
|
|
782
|
+
id: smithyClient.expectString,
|
|
783
|
+
name: smithyClient.expectString,
|
|
784
|
+
state: smithyClient.expectString,
|
|
785
|
+
tags: smithyClient._json,
|
|
786
|
+
updateTime: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
|
|
787
|
+
});
|
|
788
|
+
Object.assign(contents, doc);
|
|
789
|
+
return contents;
|
|
1329
790
|
};
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
(
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
791
|
+
const de_UpdateRoomCommand = async (output, context) => {
|
|
792
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
793
|
+
return de_CommandError(output, context);
|
|
794
|
+
}
|
|
795
|
+
const contents = smithyClient.map({
|
|
796
|
+
$metadata: deserializeMetadata(output),
|
|
797
|
+
});
|
|
798
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
799
|
+
const doc = smithyClient.take(data, {
|
|
800
|
+
arn: smithyClient.expectString,
|
|
801
|
+
createTime: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
|
|
802
|
+
id: smithyClient.expectString,
|
|
803
|
+
loggingConfigurationIdentifiers: smithyClient._json,
|
|
804
|
+
maximumMessageLength: smithyClient.expectInt32,
|
|
805
|
+
maximumMessageRatePerSecond: smithyClient.expectInt32,
|
|
806
|
+
messageReviewHandler: smithyClient._json,
|
|
807
|
+
name: smithyClient.expectString,
|
|
808
|
+
tags: smithyClient._json,
|
|
809
|
+
updateTime: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
|
|
810
|
+
});
|
|
811
|
+
Object.assign(contents, doc);
|
|
812
|
+
return contents;
|
|
1344
813
|
};
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
814
|
+
const de_CommandError = async (output, context) => {
|
|
815
|
+
const parsedOutput = {
|
|
816
|
+
...output,
|
|
817
|
+
body: await core$1.parseJsonErrorBody(output.body, context),
|
|
818
|
+
};
|
|
819
|
+
const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
|
|
820
|
+
switch (errorCode) {
|
|
821
|
+
case "AccessDeniedException":
|
|
822
|
+
case "com.amazonaws.ivschat#AccessDeniedException":
|
|
823
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput);
|
|
824
|
+
case "PendingVerification":
|
|
825
|
+
case "com.amazonaws.ivschat#PendingVerification":
|
|
826
|
+
throw await de_PendingVerificationRes(parsedOutput);
|
|
827
|
+
case "ResourceNotFoundException":
|
|
828
|
+
case "com.amazonaws.ivschat#ResourceNotFoundException":
|
|
829
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput);
|
|
830
|
+
case "ValidationException":
|
|
831
|
+
case "com.amazonaws.ivschat#ValidationException":
|
|
832
|
+
throw await de_ValidationExceptionRes(parsedOutput);
|
|
833
|
+
case "ConflictException":
|
|
834
|
+
case "com.amazonaws.ivschat#ConflictException":
|
|
835
|
+
throw await de_ConflictExceptionRes(parsedOutput);
|
|
836
|
+
case "ServiceQuotaExceededException":
|
|
837
|
+
case "com.amazonaws.ivschat#ServiceQuotaExceededException":
|
|
838
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput);
|
|
839
|
+
case "ThrottlingException":
|
|
840
|
+
case "com.amazonaws.ivschat#ThrottlingException":
|
|
841
|
+
throw await de_ThrottlingExceptionRes(parsedOutput);
|
|
842
|
+
case "InternalServerException":
|
|
843
|
+
case "com.amazonaws.ivschat#InternalServerException":
|
|
844
|
+
throw await de_InternalServerExceptionRes(parsedOutput);
|
|
845
|
+
default:
|
|
846
|
+
const parsedBody = parsedOutput.body;
|
|
847
|
+
return throwDefaultError({
|
|
848
|
+
output,
|
|
849
|
+
parsedBody,
|
|
850
|
+
errorCode,
|
|
851
|
+
});
|
|
852
|
+
}
|
|
1359
853
|
};
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
}
|
|
854
|
+
const throwDefaultError = smithyClient.withBaseException(IvschatServiceException);
|
|
855
|
+
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
856
|
+
const contents = smithyClient.map({});
|
|
857
|
+
const data = parsedOutput.body;
|
|
858
|
+
const doc = smithyClient.take(data, {
|
|
859
|
+
message: smithyClient.expectString,
|
|
860
|
+
});
|
|
861
|
+
Object.assign(contents, doc);
|
|
862
|
+
const exception = new AccessDeniedException({
|
|
863
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
864
|
+
...contents,
|
|
865
|
+
});
|
|
866
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
1374
867
|
};
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
868
|
+
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
869
|
+
const contents = smithyClient.map({});
|
|
870
|
+
const data = parsedOutput.body;
|
|
871
|
+
const doc = smithyClient.take(data, {
|
|
872
|
+
message: smithyClient.expectString,
|
|
873
|
+
resourceId: smithyClient.expectString,
|
|
874
|
+
resourceType: smithyClient.expectString,
|
|
875
|
+
});
|
|
876
|
+
Object.assign(contents, doc);
|
|
877
|
+
const exception = new ConflictException({
|
|
878
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
879
|
+
...contents,
|
|
880
|
+
});
|
|
881
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
1389
882
|
};
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
})
|
|
1401
|
-
|
|
1402
|
-
__name(this, "ListLoggingConfigurationsCommand");
|
|
1403
|
-
}
|
|
883
|
+
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
884
|
+
const contents = smithyClient.map({});
|
|
885
|
+
const data = parsedOutput.body;
|
|
886
|
+
const doc = smithyClient.take(data, {
|
|
887
|
+
message: smithyClient.expectString,
|
|
888
|
+
});
|
|
889
|
+
Object.assign(contents, doc);
|
|
890
|
+
const exception = new InternalServerException({
|
|
891
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
892
|
+
...contents,
|
|
893
|
+
});
|
|
894
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
1404
895
|
};
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
})
|
|
1416
|
-
|
|
1417
|
-
__name(this, "ListRoomsCommand");
|
|
1418
|
-
}
|
|
896
|
+
const de_PendingVerificationRes = async (parsedOutput, context) => {
|
|
897
|
+
const contents = smithyClient.map({});
|
|
898
|
+
const data = parsedOutput.body;
|
|
899
|
+
const doc = smithyClient.take(data, {
|
|
900
|
+
message: smithyClient.expectString,
|
|
901
|
+
});
|
|
902
|
+
Object.assign(contents, doc);
|
|
903
|
+
const exception = new PendingVerification({
|
|
904
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
905
|
+
...contents,
|
|
906
|
+
});
|
|
907
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
1419
908
|
};
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
909
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
910
|
+
const contents = smithyClient.map({});
|
|
911
|
+
const data = parsedOutput.body;
|
|
912
|
+
const doc = smithyClient.take(data, {
|
|
913
|
+
message: smithyClient.expectString,
|
|
914
|
+
resourceId: smithyClient.expectString,
|
|
915
|
+
resourceType: smithyClient.expectString,
|
|
916
|
+
});
|
|
917
|
+
Object.assign(contents, doc);
|
|
918
|
+
const exception = new ResourceNotFoundException({
|
|
919
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
920
|
+
...contents,
|
|
921
|
+
});
|
|
922
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
1434
923
|
};
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
924
|
+
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
925
|
+
const contents = smithyClient.map({});
|
|
926
|
+
const data = parsedOutput.body;
|
|
927
|
+
const doc = smithyClient.take(data, {
|
|
928
|
+
limit: smithyClient.expectInt32,
|
|
929
|
+
message: smithyClient.expectString,
|
|
930
|
+
resourceId: smithyClient.expectString,
|
|
931
|
+
resourceType: smithyClient.expectString,
|
|
932
|
+
});
|
|
933
|
+
Object.assign(contents, doc);
|
|
934
|
+
const exception = new ServiceQuotaExceededException({
|
|
935
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
936
|
+
...contents,
|
|
937
|
+
});
|
|
938
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
1449
939
|
};
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
940
|
+
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
941
|
+
const contents = smithyClient.map({});
|
|
942
|
+
const data = parsedOutput.body;
|
|
943
|
+
const doc = smithyClient.take(data, {
|
|
944
|
+
limit: smithyClient.expectInt32,
|
|
945
|
+
message: smithyClient.expectString,
|
|
946
|
+
resourceId: smithyClient.expectString,
|
|
947
|
+
resourceType: smithyClient.expectString,
|
|
948
|
+
});
|
|
949
|
+
Object.assign(contents, doc);
|
|
950
|
+
const exception = new ThrottlingException({
|
|
951
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
952
|
+
...contents,
|
|
953
|
+
});
|
|
954
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
1464
955
|
};
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
956
|
+
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
957
|
+
const contents = smithyClient.map({});
|
|
958
|
+
const data = parsedOutput.body;
|
|
959
|
+
const doc = smithyClient.take(data, {
|
|
960
|
+
fieldList: smithyClient._json,
|
|
961
|
+
message: smithyClient.expectString,
|
|
962
|
+
reason: smithyClient.expectString,
|
|
963
|
+
});
|
|
964
|
+
Object.assign(contents, doc);
|
|
965
|
+
const exception = new ValidationException({
|
|
966
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
967
|
+
...contents,
|
|
968
|
+
});
|
|
969
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
1479
970
|
};
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1488
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1489
|
-
];
|
|
1490
|
-
}).s("AmazonInteractiveVideoServiceChat", "UpdateLoggingConfiguration", {}).n("IvschatClient", "UpdateLoggingConfigurationCommand").f(void 0, void 0).ser(se_UpdateLoggingConfigurationCommand).de(de_UpdateLoggingConfigurationCommand).build() {
|
|
1491
|
-
static {
|
|
1492
|
-
__name(this, "UpdateLoggingConfigurationCommand");
|
|
1493
|
-
}
|
|
971
|
+
const de_LoggingConfigurationList = (output, context) => {
|
|
972
|
+
const retVal = (output || [])
|
|
973
|
+
.filter((e) => e != null)
|
|
974
|
+
.map((entry) => {
|
|
975
|
+
return de_LoggingConfigurationSummary(entry);
|
|
976
|
+
});
|
|
977
|
+
return retVal;
|
|
1494
978
|
};
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
})
|
|
1506
|
-
static {
|
|
1507
|
-
__name(this, "UpdateRoomCommand");
|
|
1508
|
-
}
|
|
979
|
+
const de_LoggingConfigurationSummary = (output, context) => {
|
|
980
|
+
return smithyClient.take(output, {
|
|
981
|
+
arn: smithyClient.expectString,
|
|
982
|
+
createTime: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
|
|
983
|
+
destinationConfiguration: (_) => smithyClient._json(core$1.awsExpectUnion(_)),
|
|
984
|
+
id: smithyClient.expectString,
|
|
985
|
+
name: smithyClient.expectString,
|
|
986
|
+
state: smithyClient.expectString,
|
|
987
|
+
tags: smithyClient._json,
|
|
988
|
+
updateTime: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
|
|
989
|
+
});
|
|
1509
990
|
};
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
DeleteMessageCommand,
|
|
1518
|
-
DeleteRoomCommand,
|
|
1519
|
-
DisconnectUserCommand,
|
|
1520
|
-
GetLoggingConfigurationCommand,
|
|
1521
|
-
GetRoomCommand,
|
|
1522
|
-
ListLoggingConfigurationsCommand,
|
|
1523
|
-
ListRoomsCommand,
|
|
1524
|
-
ListTagsForResourceCommand,
|
|
1525
|
-
SendEventCommand,
|
|
1526
|
-
TagResourceCommand,
|
|
1527
|
-
UntagResourceCommand,
|
|
1528
|
-
UpdateLoggingConfigurationCommand,
|
|
1529
|
-
UpdateRoomCommand
|
|
991
|
+
const de_RoomList = (output, context) => {
|
|
992
|
+
const retVal = (output || [])
|
|
993
|
+
.filter((e) => e != null)
|
|
994
|
+
.map((entry) => {
|
|
995
|
+
return de_RoomSummary(entry);
|
|
996
|
+
});
|
|
997
|
+
return retVal;
|
|
1530
998
|
};
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
999
|
+
const de_RoomSummary = (output, context) => {
|
|
1000
|
+
return smithyClient.take(output, {
|
|
1001
|
+
arn: smithyClient.expectString,
|
|
1002
|
+
createTime: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
|
|
1003
|
+
id: smithyClient.expectString,
|
|
1004
|
+
loggingConfigurationIdentifiers: smithyClient._json,
|
|
1005
|
+
messageReviewHandler: smithyClient._json,
|
|
1006
|
+
name: smithyClient.expectString,
|
|
1007
|
+
tags: smithyClient._json,
|
|
1008
|
+
updateTime: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
|
|
1009
|
+
});
|
|
1535
1010
|
};
|
|
1536
|
-
(
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1011
|
+
const deserializeMetadata = (output) => ({
|
|
1012
|
+
httpStatusCode: output.statusCode,
|
|
1013
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1014
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1015
|
+
cfId: output.headers["x-amz-cf-id"],
|
|
1016
|
+
});
|
|
1017
|
+
const _tK = "tagKeys";
|
|
1018
|
+
|
|
1019
|
+
class CreateChatTokenCommand extends smithyClient.Command
|
|
1020
|
+
.classBuilder()
|
|
1021
|
+
.ep(commonParams)
|
|
1022
|
+
.m(function (Command, cs, config, o) {
|
|
1023
|
+
return [
|
|
1024
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1025
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1026
|
+
];
|
|
1027
|
+
})
|
|
1028
|
+
.s("AmazonInteractiveVideoServiceChat", "CreateChatToken", {})
|
|
1029
|
+
.n("IvschatClient", "CreateChatTokenCommand")
|
|
1030
|
+
.f(CreateChatTokenRequestFilterSensitiveLog, CreateChatTokenResponseFilterSensitiveLog)
|
|
1031
|
+
.ser(se_CreateChatTokenCommand)
|
|
1032
|
+
.de(de_CreateChatTokenCommand)
|
|
1033
|
+
.build() {
|
|
1034
|
+
}
|
|
1035
|
+
|
|
1036
|
+
class CreateLoggingConfigurationCommand extends smithyClient.Command
|
|
1037
|
+
.classBuilder()
|
|
1038
|
+
.ep(commonParams)
|
|
1039
|
+
.m(function (Command, cs, config, o) {
|
|
1040
|
+
return [
|
|
1041
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1042
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1043
|
+
];
|
|
1044
|
+
})
|
|
1045
|
+
.s("AmazonInteractiveVideoServiceChat", "CreateLoggingConfiguration", {})
|
|
1046
|
+
.n("IvschatClient", "CreateLoggingConfigurationCommand")
|
|
1047
|
+
.f(void 0, void 0)
|
|
1048
|
+
.ser(se_CreateLoggingConfigurationCommand)
|
|
1049
|
+
.de(de_CreateLoggingConfigurationCommand)
|
|
1050
|
+
.build() {
|
|
1051
|
+
}
|
|
1052
|
+
|
|
1053
|
+
class CreateRoomCommand extends smithyClient.Command
|
|
1054
|
+
.classBuilder()
|
|
1055
|
+
.ep(commonParams)
|
|
1056
|
+
.m(function (Command, cs, config, o) {
|
|
1057
|
+
return [
|
|
1058
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1059
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1060
|
+
];
|
|
1061
|
+
})
|
|
1062
|
+
.s("AmazonInteractiveVideoServiceChat", "CreateRoom", {})
|
|
1063
|
+
.n("IvschatClient", "CreateRoomCommand")
|
|
1064
|
+
.f(void 0, void 0)
|
|
1065
|
+
.ser(se_CreateRoomCommand)
|
|
1066
|
+
.de(de_CreateRoomCommand)
|
|
1067
|
+
.build() {
|
|
1068
|
+
}
|
|
1069
|
+
|
|
1070
|
+
class DeleteLoggingConfigurationCommand extends smithyClient.Command
|
|
1071
|
+
.classBuilder()
|
|
1072
|
+
.ep(commonParams)
|
|
1073
|
+
.m(function (Command, cs, config, o) {
|
|
1074
|
+
return [
|
|
1075
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1076
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1077
|
+
];
|
|
1078
|
+
})
|
|
1079
|
+
.s("AmazonInteractiveVideoServiceChat", "DeleteLoggingConfiguration", {})
|
|
1080
|
+
.n("IvschatClient", "DeleteLoggingConfigurationCommand")
|
|
1081
|
+
.f(void 0, void 0)
|
|
1082
|
+
.ser(se_DeleteLoggingConfigurationCommand)
|
|
1083
|
+
.de(de_DeleteLoggingConfigurationCommand)
|
|
1084
|
+
.build() {
|
|
1085
|
+
}
|
|
1086
|
+
|
|
1087
|
+
class DeleteMessageCommand extends smithyClient.Command
|
|
1088
|
+
.classBuilder()
|
|
1089
|
+
.ep(commonParams)
|
|
1090
|
+
.m(function (Command, cs, config, o) {
|
|
1091
|
+
return [
|
|
1092
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1093
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1094
|
+
];
|
|
1095
|
+
})
|
|
1096
|
+
.s("AmazonInteractiveVideoServiceChat", "DeleteMessage", {})
|
|
1097
|
+
.n("IvschatClient", "DeleteMessageCommand")
|
|
1098
|
+
.f(void 0, void 0)
|
|
1099
|
+
.ser(se_DeleteMessageCommand)
|
|
1100
|
+
.de(de_DeleteMessageCommand)
|
|
1101
|
+
.build() {
|
|
1102
|
+
}
|
|
1103
|
+
|
|
1104
|
+
class DeleteRoomCommand extends smithyClient.Command
|
|
1105
|
+
.classBuilder()
|
|
1106
|
+
.ep(commonParams)
|
|
1107
|
+
.m(function (Command, cs, config, o) {
|
|
1108
|
+
return [
|
|
1109
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1110
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1111
|
+
];
|
|
1112
|
+
})
|
|
1113
|
+
.s("AmazonInteractiveVideoServiceChat", "DeleteRoom", {})
|
|
1114
|
+
.n("IvschatClient", "DeleteRoomCommand")
|
|
1115
|
+
.f(void 0, void 0)
|
|
1116
|
+
.ser(se_DeleteRoomCommand)
|
|
1117
|
+
.de(de_DeleteRoomCommand)
|
|
1118
|
+
.build() {
|
|
1119
|
+
}
|
|
1120
|
+
|
|
1121
|
+
class DisconnectUserCommand extends smithyClient.Command
|
|
1122
|
+
.classBuilder()
|
|
1123
|
+
.ep(commonParams)
|
|
1124
|
+
.m(function (Command, cs, config, o) {
|
|
1125
|
+
return [
|
|
1126
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1127
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1128
|
+
];
|
|
1129
|
+
})
|
|
1130
|
+
.s("AmazonInteractiveVideoServiceChat", "DisconnectUser", {})
|
|
1131
|
+
.n("IvschatClient", "DisconnectUserCommand")
|
|
1132
|
+
.f(DisconnectUserRequestFilterSensitiveLog, void 0)
|
|
1133
|
+
.ser(se_DisconnectUserCommand)
|
|
1134
|
+
.de(de_DisconnectUserCommand)
|
|
1135
|
+
.build() {
|
|
1136
|
+
}
|
|
1137
|
+
|
|
1138
|
+
class GetLoggingConfigurationCommand extends smithyClient.Command
|
|
1139
|
+
.classBuilder()
|
|
1140
|
+
.ep(commonParams)
|
|
1141
|
+
.m(function (Command, cs, config, o) {
|
|
1142
|
+
return [
|
|
1143
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1144
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1145
|
+
];
|
|
1146
|
+
})
|
|
1147
|
+
.s("AmazonInteractiveVideoServiceChat", "GetLoggingConfiguration", {})
|
|
1148
|
+
.n("IvschatClient", "GetLoggingConfigurationCommand")
|
|
1149
|
+
.f(void 0, void 0)
|
|
1150
|
+
.ser(se_GetLoggingConfigurationCommand)
|
|
1151
|
+
.de(de_GetLoggingConfigurationCommand)
|
|
1152
|
+
.build() {
|
|
1153
|
+
}
|
|
1154
|
+
|
|
1155
|
+
class GetRoomCommand extends smithyClient.Command
|
|
1156
|
+
.classBuilder()
|
|
1157
|
+
.ep(commonParams)
|
|
1158
|
+
.m(function (Command, cs, config, o) {
|
|
1159
|
+
return [
|
|
1160
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1161
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1162
|
+
];
|
|
1163
|
+
})
|
|
1164
|
+
.s("AmazonInteractiveVideoServiceChat", "GetRoom", {})
|
|
1165
|
+
.n("IvschatClient", "GetRoomCommand")
|
|
1166
|
+
.f(void 0, void 0)
|
|
1167
|
+
.ser(se_GetRoomCommand)
|
|
1168
|
+
.de(de_GetRoomCommand)
|
|
1169
|
+
.build() {
|
|
1170
|
+
}
|
|
1171
|
+
|
|
1172
|
+
class ListLoggingConfigurationsCommand extends smithyClient.Command
|
|
1173
|
+
.classBuilder()
|
|
1174
|
+
.ep(commonParams)
|
|
1175
|
+
.m(function (Command, cs, config, o) {
|
|
1176
|
+
return [
|
|
1177
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1178
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1179
|
+
];
|
|
1180
|
+
})
|
|
1181
|
+
.s("AmazonInteractiveVideoServiceChat", "ListLoggingConfigurations", {})
|
|
1182
|
+
.n("IvschatClient", "ListLoggingConfigurationsCommand")
|
|
1183
|
+
.f(void 0, void 0)
|
|
1184
|
+
.ser(se_ListLoggingConfigurationsCommand)
|
|
1185
|
+
.de(de_ListLoggingConfigurationsCommand)
|
|
1186
|
+
.build() {
|
|
1187
|
+
}
|
|
1188
|
+
|
|
1189
|
+
class ListRoomsCommand extends smithyClient.Command
|
|
1190
|
+
.classBuilder()
|
|
1191
|
+
.ep(commonParams)
|
|
1192
|
+
.m(function (Command, cs, config, o) {
|
|
1193
|
+
return [
|
|
1194
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1195
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1196
|
+
];
|
|
1197
|
+
})
|
|
1198
|
+
.s("AmazonInteractiveVideoServiceChat", "ListRooms", {})
|
|
1199
|
+
.n("IvschatClient", "ListRoomsCommand")
|
|
1200
|
+
.f(void 0, void 0)
|
|
1201
|
+
.ser(se_ListRoomsCommand)
|
|
1202
|
+
.de(de_ListRoomsCommand)
|
|
1203
|
+
.build() {
|
|
1204
|
+
}
|
|
1205
|
+
|
|
1206
|
+
class ListTagsForResourceCommand extends smithyClient.Command
|
|
1207
|
+
.classBuilder()
|
|
1208
|
+
.ep(commonParams)
|
|
1209
|
+
.m(function (Command, cs, config, o) {
|
|
1210
|
+
return [
|
|
1211
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1212
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1213
|
+
];
|
|
1214
|
+
})
|
|
1215
|
+
.s("AmazonInteractiveVideoServiceChat", "ListTagsForResource", {})
|
|
1216
|
+
.n("IvschatClient", "ListTagsForResourceCommand")
|
|
1217
|
+
.f(void 0, void 0)
|
|
1218
|
+
.ser(se_ListTagsForResourceCommand)
|
|
1219
|
+
.de(de_ListTagsForResourceCommand)
|
|
1220
|
+
.build() {
|
|
1221
|
+
}
|
|
1222
|
+
|
|
1223
|
+
class SendEventCommand extends smithyClient.Command
|
|
1224
|
+
.classBuilder()
|
|
1225
|
+
.ep(commonParams)
|
|
1226
|
+
.m(function (Command, cs, config, o) {
|
|
1227
|
+
return [
|
|
1228
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1229
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1230
|
+
];
|
|
1231
|
+
})
|
|
1232
|
+
.s("AmazonInteractiveVideoServiceChat", "SendEvent", {})
|
|
1233
|
+
.n("IvschatClient", "SendEventCommand")
|
|
1234
|
+
.f(void 0, void 0)
|
|
1235
|
+
.ser(se_SendEventCommand)
|
|
1236
|
+
.de(de_SendEventCommand)
|
|
1237
|
+
.build() {
|
|
1238
|
+
}
|
|
1239
|
+
|
|
1240
|
+
class TagResourceCommand extends smithyClient.Command
|
|
1241
|
+
.classBuilder()
|
|
1242
|
+
.ep(commonParams)
|
|
1243
|
+
.m(function (Command, cs, config, o) {
|
|
1244
|
+
return [
|
|
1245
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1246
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1247
|
+
];
|
|
1248
|
+
})
|
|
1249
|
+
.s("AmazonInteractiveVideoServiceChat", "TagResource", {})
|
|
1250
|
+
.n("IvschatClient", "TagResourceCommand")
|
|
1251
|
+
.f(void 0, void 0)
|
|
1252
|
+
.ser(se_TagResourceCommand)
|
|
1253
|
+
.de(de_TagResourceCommand)
|
|
1254
|
+
.build() {
|
|
1255
|
+
}
|
|
1256
|
+
|
|
1257
|
+
class UntagResourceCommand extends smithyClient.Command
|
|
1258
|
+
.classBuilder()
|
|
1259
|
+
.ep(commonParams)
|
|
1260
|
+
.m(function (Command, cs, config, o) {
|
|
1261
|
+
return [
|
|
1262
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1263
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1264
|
+
];
|
|
1265
|
+
})
|
|
1266
|
+
.s("AmazonInteractiveVideoServiceChat", "UntagResource", {})
|
|
1267
|
+
.n("IvschatClient", "UntagResourceCommand")
|
|
1268
|
+
.f(void 0, void 0)
|
|
1269
|
+
.ser(se_UntagResourceCommand)
|
|
1270
|
+
.de(de_UntagResourceCommand)
|
|
1271
|
+
.build() {
|
|
1272
|
+
}
|
|
1273
|
+
|
|
1274
|
+
class UpdateLoggingConfigurationCommand extends smithyClient.Command
|
|
1275
|
+
.classBuilder()
|
|
1276
|
+
.ep(commonParams)
|
|
1277
|
+
.m(function (Command, cs, config, o) {
|
|
1278
|
+
return [
|
|
1279
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1280
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1281
|
+
];
|
|
1282
|
+
})
|
|
1283
|
+
.s("AmazonInteractiveVideoServiceChat", "UpdateLoggingConfiguration", {})
|
|
1284
|
+
.n("IvschatClient", "UpdateLoggingConfigurationCommand")
|
|
1285
|
+
.f(void 0, void 0)
|
|
1286
|
+
.ser(se_UpdateLoggingConfigurationCommand)
|
|
1287
|
+
.de(de_UpdateLoggingConfigurationCommand)
|
|
1288
|
+
.build() {
|
|
1289
|
+
}
|
|
1290
|
+
|
|
1291
|
+
class UpdateRoomCommand extends smithyClient.Command
|
|
1292
|
+
.classBuilder()
|
|
1293
|
+
.ep(commonParams)
|
|
1294
|
+
.m(function (Command, cs, config, o) {
|
|
1295
|
+
return [
|
|
1296
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1297
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1298
|
+
];
|
|
1299
|
+
})
|
|
1300
|
+
.s("AmazonInteractiveVideoServiceChat", "UpdateRoom", {})
|
|
1301
|
+
.n("IvschatClient", "UpdateRoomCommand")
|
|
1302
|
+
.f(void 0, void 0)
|
|
1303
|
+
.ser(se_UpdateRoomCommand)
|
|
1304
|
+
.de(de_UpdateRoomCommand)
|
|
1305
|
+
.build() {
|
|
1306
|
+
}
|
|
1307
|
+
|
|
1308
|
+
const commands = {
|
|
1309
|
+
CreateChatTokenCommand,
|
|
1310
|
+
CreateLoggingConfigurationCommand,
|
|
1311
|
+
CreateRoomCommand,
|
|
1312
|
+
DeleteLoggingConfigurationCommand,
|
|
1313
|
+
DeleteMessageCommand,
|
|
1314
|
+
DeleteRoomCommand,
|
|
1315
|
+
DisconnectUserCommand,
|
|
1316
|
+
GetLoggingConfigurationCommand,
|
|
1317
|
+
GetRoomCommand,
|
|
1318
|
+
ListLoggingConfigurationsCommand,
|
|
1319
|
+
ListRoomsCommand,
|
|
1320
|
+
ListTagsForResourceCommand,
|
|
1321
|
+
SendEventCommand,
|
|
1322
|
+
TagResourceCommand,
|
|
1323
|
+
UntagResourceCommand,
|
|
1324
|
+
UpdateLoggingConfigurationCommand,
|
|
1325
|
+
UpdateRoomCommand,
|
|
1326
|
+
};
|
|
1327
|
+
class Ivschat extends IvschatClient {
|
|
1328
|
+
}
|
|
1329
|
+
smithyClient.createAggregatedClient(commands, Ivschat);
|
|
1541
1330
|
|
|
1542
|
-
|
|
1331
|
+
const paginateListLoggingConfigurations = core.createPaginator(IvschatClient, ListLoggingConfigurationsCommand, "nextToken", "nextToken", "maxResults");
|
|
1543
1332
|
|
|
1544
|
-
|
|
1545
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
1333
|
+
const paginateListRooms = core.createPaginator(IvschatClient, ListRoomsCommand, "nextToken", "nextToken", "maxResults");
|
|
1546
1334
|
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
IvschatClient,
|
|
1551
|
-
Ivschat,
|
|
1552
|
-
$Command,
|
|
1553
|
-
CreateChatTokenCommand,
|
|
1554
|
-
CreateLoggingConfigurationCommand,
|
|
1555
|
-
CreateRoomCommand,
|
|
1556
|
-
DeleteLoggingConfigurationCommand,
|
|
1557
|
-
DeleteMessageCommand,
|
|
1558
|
-
DeleteRoomCommand,
|
|
1559
|
-
DisconnectUserCommand,
|
|
1560
|
-
GetLoggingConfigurationCommand,
|
|
1561
|
-
GetRoomCommand,
|
|
1562
|
-
ListLoggingConfigurationsCommand,
|
|
1563
|
-
ListRoomsCommand,
|
|
1564
|
-
ListTagsForResourceCommand,
|
|
1565
|
-
SendEventCommand,
|
|
1566
|
-
TagResourceCommand,
|
|
1567
|
-
UntagResourceCommand,
|
|
1568
|
-
UpdateLoggingConfigurationCommand,
|
|
1569
|
-
UpdateRoomCommand,
|
|
1570
|
-
paginateListLoggingConfigurations,
|
|
1571
|
-
paginateListRooms,
|
|
1572
|
-
AccessDeniedException,
|
|
1573
|
-
ChatTokenCapability,
|
|
1574
|
-
PendingVerification,
|
|
1575
|
-
ResourceType,
|
|
1576
|
-
ResourceNotFoundException,
|
|
1577
|
-
ValidationExceptionReason,
|
|
1578
|
-
ValidationException,
|
|
1579
|
-
ConflictException,
|
|
1580
|
-
DestinationConfiguration,
|
|
1581
|
-
CreateLoggingConfigurationState,
|
|
1582
|
-
ServiceQuotaExceededException,
|
|
1583
|
-
FallbackResult,
|
|
1584
|
-
ThrottlingException,
|
|
1585
|
-
LoggingConfigurationState,
|
|
1586
|
-
InternalServerException,
|
|
1587
|
-
UpdateLoggingConfigurationState,
|
|
1588
|
-
CreateChatTokenRequestFilterSensitiveLog,
|
|
1589
|
-
CreateChatTokenResponseFilterSensitiveLog,
|
|
1590
|
-
DisconnectUserRequestFilterSensitiveLog
|
|
1335
|
+
Object.defineProperty(exports, "$Command", {
|
|
1336
|
+
enumerable: true,
|
|
1337
|
+
get: function () { return smithyClient.Command; }
|
|
1591
1338
|
});
|
|
1592
|
-
|
|
1339
|
+
Object.defineProperty(exports, "__Client", {
|
|
1340
|
+
enumerable: true,
|
|
1341
|
+
get: function () { return smithyClient.Client; }
|
|
1342
|
+
});
|
|
1343
|
+
exports.AccessDeniedException = AccessDeniedException;
|
|
1344
|
+
exports.ChatTokenCapability = ChatTokenCapability;
|
|
1345
|
+
exports.ConflictException = ConflictException;
|
|
1346
|
+
exports.CreateChatTokenCommand = CreateChatTokenCommand;
|
|
1347
|
+
exports.CreateChatTokenRequestFilterSensitiveLog = CreateChatTokenRequestFilterSensitiveLog;
|
|
1348
|
+
exports.CreateChatTokenResponseFilterSensitiveLog = CreateChatTokenResponseFilterSensitiveLog;
|
|
1349
|
+
exports.CreateLoggingConfigurationCommand = CreateLoggingConfigurationCommand;
|
|
1350
|
+
exports.CreateLoggingConfigurationState = CreateLoggingConfigurationState;
|
|
1351
|
+
exports.CreateRoomCommand = CreateRoomCommand;
|
|
1352
|
+
exports.DeleteLoggingConfigurationCommand = DeleteLoggingConfigurationCommand;
|
|
1353
|
+
exports.DeleteMessageCommand = DeleteMessageCommand;
|
|
1354
|
+
exports.DeleteRoomCommand = DeleteRoomCommand;
|
|
1355
|
+
exports.DisconnectUserCommand = DisconnectUserCommand;
|
|
1356
|
+
exports.DisconnectUserRequestFilterSensitiveLog = DisconnectUserRequestFilterSensitiveLog;
|
|
1357
|
+
exports.FallbackResult = FallbackResult;
|
|
1358
|
+
exports.GetLoggingConfigurationCommand = GetLoggingConfigurationCommand;
|
|
1359
|
+
exports.GetRoomCommand = GetRoomCommand;
|
|
1360
|
+
exports.InternalServerException = InternalServerException;
|
|
1361
|
+
exports.Ivschat = Ivschat;
|
|
1362
|
+
exports.IvschatClient = IvschatClient;
|
|
1363
|
+
exports.IvschatServiceException = IvschatServiceException;
|
|
1364
|
+
exports.ListLoggingConfigurationsCommand = ListLoggingConfigurationsCommand;
|
|
1365
|
+
exports.ListRoomsCommand = ListRoomsCommand;
|
|
1366
|
+
exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
|
|
1367
|
+
exports.LoggingConfigurationState = LoggingConfigurationState;
|
|
1368
|
+
exports.PendingVerification = PendingVerification;
|
|
1369
|
+
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
1370
|
+
exports.ResourceType = ResourceType;
|
|
1371
|
+
exports.SendEventCommand = SendEventCommand;
|
|
1372
|
+
exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
|
|
1373
|
+
exports.TagResourceCommand = TagResourceCommand;
|
|
1374
|
+
exports.ThrottlingException = ThrottlingException;
|
|
1375
|
+
exports.UntagResourceCommand = UntagResourceCommand;
|
|
1376
|
+
exports.UpdateLoggingConfigurationCommand = UpdateLoggingConfigurationCommand;
|
|
1377
|
+
exports.UpdateLoggingConfigurationState = UpdateLoggingConfigurationState;
|
|
1378
|
+
exports.UpdateRoomCommand = UpdateRoomCommand;
|
|
1379
|
+
exports.ValidationException = ValidationException;
|
|
1380
|
+
exports.ValidationExceptionReason = ValidationExceptionReason;
|
|
1381
|
+
exports.paginateListLoggingConfigurations = paginateListLoggingConfigurations;
|
|
1382
|
+
exports.paginateListRooms = paginateListRooms;
|