@wildix/wda-stream-client 1.0.7 → 1.0.8
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/WdaStream.js +2 -0
- package/dist-cjs/commands/GetConferenceIdCommand.js +41 -0
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/models/models_0.js +14 -1
- package/dist-cjs/protocols/Aws_restJson1.js +75 -1
- package/dist-es/WdaStream.js +2 -0
- package/dist-es/commands/GetConferenceIdCommand.js +37 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/models_0.js +12 -0
- package/dist-es/protocols/Aws_restJson1.js +74 -2
- package/dist-types/WdaStream.d.ts +7 -0
- package/dist-types/WdaStreamClient.d.ts +3 -2
- package/dist-types/commands/GetConferenceIdCommand.d.ts +78 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +24 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +9 -0
- package/package.json +1 -1
package/dist-cjs/WdaStream.js
CHANGED
|
@@ -4,11 +4,13 @@ exports.WdaStream = void 0;
|
|
|
4
4
|
const WdaStreamClient_1 = require("./WdaStreamClient");
|
|
5
5
|
const ConsumeEventCommand_1 = require("./commands/ConsumeEventCommand");
|
|
6
6
|
const DescribeEventCommand_1 = require("./commands/DescribeEventCommand");
|
|
7
|
+
const GetConferenceIdCommand_1 = require("./commands/GetConferenceIdCommand");
|
|
7
8
|
const GetConversationsCommand_1 = require("./commands/GetConversationsCommand");
|
|
8
9
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
9
10
|
const commands = {
|
|
10
11
|
ConsumeEventCommand: ConsumeEventCommand_1.ConsumeEventCommand,
|
|
11
12
|
DescribeEventCommand: DescribeEventCommand_1.DescribeEventCommand,
|
|
13
|
+
GetConferenceIdCommand: GetConferenceIdCommand_1.GetConferenceIdCommand,
|
|
12
14
|
GetConversationsCommand: GetConversationsCommand_1.GetConversationsCommand,
|
|
13
15
|
};
|
|
14
16
|
class WdaStream extends WdaStreamClient_1.WdaStreamClient {
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetConferenceIdCommand = exports.$Command = void 0;
|
|
4
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
const types_1 = require("@smithy/types");
|
|
9
|
+
class GetConferenceIdCommand extends smithy_client_1.Command {
|
|
10
|
+
constructor(input) {
|
|
11
|
+
super();
|
|
12
|
+
this.input = input;
|
|
13
|
+
}
|
|
14
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
15
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
16
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
17
|
+
const { logger } = configuration;
|
|
18
|
+
const clientName = "WdaStreamClient";
|
|
19
|
+
const commandName = "GetConferenceIdCommand";
|
|
20
|
+
const handlerExecutionContext = {
|
|
21
|
+
logger,
|
|
22
|
+
clientName,
|
|
23
|
+
commandName,
|
|
24
|
+
inputFilterSensitiveLog: (_) => _,
|
|
25
|
+
outputFilterSensitiveLog: (_) => _,
|
|
26
|
+
[types_1.SMITHY_CONTEXT_KEY]: {
|
|
27
|
+
service: "WdaStream",
|
|
28
|
+
operation: "GetConferenceId",
|
|
29
|
+
},
|
|
30
|
+
};
|
|
31
|
+
const { requestHandler } = configuration;
|
|
32
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
33
|
+
}
|
|
34
|
+
serialize(input, context) {
|
|
35
|
+
return (0, Aws_restJson1_1.se_GetConferenceIdCommand)(input, context);
|
|
36
|
+
}
|
|
37
|
+
deserialize(output, context) {
|
|
38
|
+
return (0, Aws_restJson1_1.de_GetConferenceIdCommand)(output, context);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
exports.GetConferenceIdCommand = GetConferenceIdCommand;
|
|
@@ -3,4 +3,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
tslib_1.__exportStar(require("./ConsumeEventCommand"), exports);
|
|
5
5
|
tslib_1.__exportStar(require("./DescribeEventCommand"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./GetConferenceIdCommand"), exports);
|
|
6
7
|
tslib_1.__exportStar(require("./GetConversationsCommand"), exports);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ConsumeEventInputEvent = exports.SmsStatus = exports.SmsChannelType = exports.SmsConsumeEventType = exports.ChatConsumeEventType = exports.ChatTag = exports.ChatStatus = exports.ChatParticipantType = exports.ChatParticipantRole = exports.ChatDirection = exports.ChannelType = exports.CallFlowConsumeStatus = exports.CallEndConsume = exports.CallFlowAttachmentConsumeType = exports.CallFlowStatus = exports.LiveEventType = exports.CallConsumeEventType = exports.ConferenceTranscriptionStatus = exports.ConferenceParticipantType = exports.ConferenceParticipantRole = exports.ConferenceDirection = exports.CallTranscriptionSpeaker = exports.License = exports.CallFlowTranscriptionStatus = exports.CallDirection = exports.ConversationStatus = exports.CallDevice = exports.CallParticipantType = exports.CallParticipantRole = exports.CallFlowAttachmentType = exports.CallEndBy = exports.ValidationException = exports.ForbiddenException = void 0;
|
|
3
|
+
exports.MatchNotFoundException = exports.ConsumeEventInputEvent = exports.SmsStatus = exports.SmsChannelType = exports.SmsConsumeEventType = exports.ChatConsumeEventType = exports.ChatTag = exports.ChatStatus = exports.ChatParticipantType = exports.ChatParticipantRole = exports.ChatDirection = exports.ChannelType = exports.CallFlowConsumeStatus = exports.CallEndConsume = exports.CallFlowAttachmentConsumeType = exports.CallFlowStatus = exports.LiveEventType = exports.CallConsumeEventType = exports.ConferenceTranscriptionStatus = exports.ConferenceParticipantType = exports.ConferenceParticipantRole = exports.ConferenceDirection = exports.CallTranscriptionSpeaker = exports.License = exports.CallFlowTranscriptionStatus = exports.CallDirection = exports.ConversationStatus = exports.CallDevice = exports.CallParticipantType = exports.CallParticipantRole = exports.CallFlowAttachmentType = exports.CallEndBy = exports.ValidationException = exports.ForbiddenException = void 0;
|
|
4
4
|
const WdaStreamServiceException_1 = require("./WdaStreamServiceException");
|
|
5
5
|
class ForbiddenException extends WdaStreamServiceException_1.WdaStreamServiceException {
|
|
6
6
|
constructor(opts) {
|
|
@@ -225,3 +225,16 @@ var ConsumeEventInputEvent;
|
|
|
225
225
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
226
226
|
};
|
|
227
227
|
})(ConsumeEventInputEvent = exports.ConsumeEventInputEvent || (exports.ConsumeEventInputEvent = {}));
|
|
228
|
+
class MatchNotFoundException extends WdaStreamServiceException_1.WdaStreamServiceException {
|
|
229
|
+
constructor(opts) {
|
|
230
|
+
super({
|
|
231
|
+
name: "MatchNotFoundException",
|
|
232
|
+
$fault: "client",
|
|
233
|
+
...opts
|
|
234
|
+
});
|
|
235
|
+
this.name = "MatchNotFoundException";
|
|
236
|
+
this.$fault = "client";
|
|
237
|
+
Object.setPrototypeOf(this, MatchNotFoundException.prototype);
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
exports.MatchNotFoundException = MatchNotFoundException;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.de_GetConversationsCommand = exports.de_DescribeEventCommand = exports.de_ConsumeEventCommand = exports.se_GetConversationsCommand = exports.se_DescribeEventCommand = exports.se_ConsumeEventCommand = void 0;
|
|
3
|
+
exports.de_GetConversationsCommand = exports.de_GetConferenceIdCommand = exports.de_DescribeEventCommand = exports.de_ConsumeEventCommand = exports.se_GetConversationsCommand = exports.se_GetConferenceIdCommand = exports.se_DescribeEventCommand = exports.se_ConsumeEventCommand = void 0;
|
|
4
4
|
const WdaStreamServiceException_1 = require("../models/WdaStreamServiceException");
|
|
5
5
|
const models_0_1 = require("../models/models_0");
|
|
6
6
|
const protocol_http_1 = require("@smithy/protocol-http");
|
|
@@ -48,6 +48,27 @@ const se_DescribeEventCommand = async (input, context) => {
|
|
|
48
48
|
});
|
|
49
49
|
};
|
|
50
50
|
exports.se_DescribeEventCommand = se_DescribeEventCommand;
|
|
51
|
+
const se_GetConferenceIdCommand = async (input, context) => {
|
|
52
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
53
|
+
const headers = {};
|
|
54
|
+
let resolvedPath = `${basePath?.endsWith('/') ? basePath.slice(0, -1) : (basePath || '')}` + "/v2/stream/conferences/match/{channelId}";
|
|
55
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, 'channelId', () => input.channelId, '{channelId}', false);
|
|
56
|
+
const query = (0, smithy_client_1.map)({
|
|
57
|
+
"company": [, input.company],
|
|
58
|
+
});
|
|
59
|
+
let body;
|
|
60
|
+
return new protocol_http_1.HttpRequest({
|
|
61
|
+
protocol,
|
|
62
|
+
hostname,
|
|
63
|
+
port,
|
|
64
|
+
method: "GET",
|
|
65
|
+
headers,
|
|
66
|
+
path: resolvedPath,
|
|
67
|
+
query,
|
|
68
|
+
body,
|
|
69
|
+
});
|
|
70
|
+
};
|
|
71
|
+
exports.se_GetConferenceIdCommand = se_GetConferenceIdCommand;
|
|
51
72
|
const se_GetConversationsCommand = async (input, context) => {
|
|
52
73
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
53
74
|
const headers = {};
|
|
@@ -148,6 +169,46 @@ const de_DescribeEventCommandError = async (output, context) => {
|
|
|
148
169
|
});
|
|
149
170
|
}
|
|
150
171
|
};
|
|
172
|
+
const de_GetConferenceIdCommand = async (output, context) => {
|
|
173
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
174
|
+
return de_GetConferenceIdCommandError(output, context);
|
|
175
|
+
}
|
|
176
|
+
const contents = (0, smithy_client_1.map)({
|
|
177
|
+
$metadata: deserializeMetadata(output),
|
|
178
|
+
});
|
|
179
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await parseBody(output.body, context))), "body");
|
|
180
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
181
|
+
'id': smithy_client_1.expectString,
|
|
182
|
+
});
|
|
183
|
+
Object.assign(contents, doc);
|
|
184
|
+
return contents;
|
|
185
|
+
};
|
|
186
|
+
exports.de_GetConferenceIdCommand = de_GetConferenceIdCommand;
|
|
187
|
+
const de_GetConferenceIdCommandError = async (output, context) => {
|
|
188
|
+
const parsedOutput = {
|
|
189
|
+
...output,
|
|
190
|
+
body: await parseErrorBody(output.body, context)
|
|
191
|
+
};
|
|
192
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
193
|
+
switch (errorCode) {
|
|
194
|
+
case "ForbiddenException":
|
|
195
|
+
case "smithy.framework#ForbiddenException":
|
|
196
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
197
|
+
case "MatchNotFoundException":
|
|
198
|
+
case "wildix.wda.stream#MatchNotFoundException":
|
|
199
|
+
throw await de_MatchNotFoundExceptionRes(parsedOutput, context);
|
|
200
|
+
case "ValidationException":
|
|
201
|
+
case "smithy.framework#ValidationException":
|
|
202
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
203
|
+
default:
|
|
204
|
+
const parsedBody = parsedOutput.body;
|
|
205
|
+
return throwDefaultError({
|
|
206
|
+
output,
|
|
207
|
+
parsedBody,
|
|
208
|
+
errorCode
|
|
209
|
+
});
|
|
210
|
+
}
|
|
211
|
+
};
|
|
151
212
|
const de_GetConversationsCommand = async (output, context) => {
|
|
152
213
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
153
214
|
return de_GetConversationsCommandError(output, context);
|
|
@@ -214,6 +275,19 @@ const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
|
214
275
|
});
|
|
215
276
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
216
277
|
};
|
|
278
|
+
const de_MatchNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
279
|
+
const contents = (0, smithy_client_1.map)({});
|
|
280
|
+
const data = parsedOutput.body;
|
|
281
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
282
|
+
'message': smithy_client_1.expectString,
|
|
283
|
+
});
|
|
284
|
+
Object.assign(contents, doc);
|
|
285
|
+
const exception = new models_0_1.MatchNotFoundException({
|
|
286
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
287
|
+
...contents
|
|
288
|
+
});
|
|
289
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
290
|
+
};
|
|
217
291
|
const deserializeMetadata = (output) => ({
|
|
218
292
|
httpStatusCode: output.statusCode,
|
|
219
293
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
package/dist-es/WdaStream.js
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { WdaStreamClient, } from "./WdaStreamClient";
|
|
2
2
|
import { ConsumeEventCommand, } from "./commands/ConsumeEventCommand";
|
|
3
3
|
import { DescribeEventCommand, } from "./commands/DescribeEventCommand";
|
|
4
|
+
import { GetConferenceIdCommand, } from "./commands/GetConferenceIdCommand";
|
|
4
5
|
import { GetConversationsCommand, } from "./commands/GetConversationsCommand";
|
|
5
6
|
import { createAggregatedClient } from "@smithy/smithy-client";
|
|
6
7
|
const commands = {
|
|
7
8
|
ConsumeEventCommand,
|
|
8
9
|
DescribeEventCommand,
|
|
10
|
+
GetConferenceIdCommand,
|
|
9
11
|
GetConversationsCommand,
|
|
10
12
|
};
|
|
11
13
|
export class WdaStream extends WdaStreamClient {
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { de_GetConferenceIdCommand, se_GetConferenceIdCommand, } from "../protocols/Aws_restJson1";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { SMITHY_CONTEXT_KEY, } from "@smithy/types";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class GetConferenceIdCommand extends $Command {
|
|
7
|
+
constructor(input) {
|
|
8
|
+
super();
|
|
9
|
+
this.input = input;
|
|
10
|
+
}
|
|
11
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
12
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
13
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
14
|
+
const { logger } = configuration;
|
|
15
|
+
const clientName = "WdaStreamClient";
|
|
16
|
+
const commandName = "GetConferenceIdCommand";
|
|
17
|
+
const handlerExecutionContext = {
|
|
18
|
+
logger,
|
|
19
|
+
clientName,
|
|
20
|
+
commandName,
|
|
21
|
+
inputFilterSensitiveLog: (_) => _,
|
|
22
|
+
outputFilterSensitiveLog: (_) => _,
|
|
23
|
+
[SMITHY_CONTEXT_KEY]: {
|
|
24
|
+
service: "WdaStream",
|
|
25
|
+
operation: "GetConferenceId",
|
|
26
|
+
},
|
|
27
|
+
};
|
|
28
|
+
const { requestHandler } = configuration;
|
|
29
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
30
|
+
}
|
|
31
|
+
serialize(input, context) {
|
|
32
|
+
return se_GetConferenceIdCommand(input, context);
|
|
33
|
+
}
|
|
34
|
+
deserialize(output, context) {
|
|
35
|
+
return de_GetConferenceIdCommand(output, context);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -220,3 +220,15 @@ export var ConsumeEventInputEvent;
|
|
|
220
220
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
221
221
|
};
|
|
222
222
|
})(ConsumeEventInputEvent || (ConsumeEventInputEvent = {}));
|
|
223
|
+
export class MatchNotFoundException extends __BaseException {
|
|
224
|
+
constructor(opts) {
|
|
225
|
+
super({
|
|
226
|
+
name: "MatchNotFoundException",
|
|
227
|
+
$fault: "client",
|
|
228
|
+
...opts
|
|
229
|
+
});
|
|
230
|
+
this.name = "MatchNotFoundException";
|
|
231
|
+
this.$fault = "client";
|
|
232
|
+
Object.setPrototypeOf(this, MatchNotFoundException.prototype);
|
|
233
|
+
}
|
|
234
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { WdaStreamServiceException as __BaseException } from "../models/WdaStreamServiceException";
|
|
2
|
-
import { ForbiddenException, ValidationException, } from "../models/models_0";
|
|
2
|
+
import { ForbiddenException, MatchNotFoundException, ValidationException, } from "../models/models_0";
|
|
3
3
|
import { HttpRequest as __HttpRequest, } from "@smithy/protocol-http";
|
|
4
|
-
import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, _json, collectBody, map, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
|
+
import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, resolvedPath as __resolvedPath, _json, collectBody, map, take, withBaseException, } from "@smithy/smithy-client";
|
|
5
5
|
export const se_ConsumeEventCommand = async (input, context) => {
|
|
6
6
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
7
7
|
const headers = {
|
|
@@ -43,6 +43,26 @@ export const se_DescribeEventCommand = async (input, context) => {
|
|
|
43
43
|
body,
|
|
44
44
|
});
|
|
45
45
|
};
|
|
46
|
+
export const se_GetConferenceIdCommand = async (input, context) => {
|
|
47
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
48
|
+
const headers = {};
|
|
49
|
+
let resolvedPath = `${basePath?.endsWith('/') ? basePath.slice(0, -1) : (basePath || '')}` + "/v2/stream/conferences/match/{channelId}";
|
|
50
|
+
resolvedPath = __resolvedPath(resolvedPath, input, 'channelId', () => input.channelId, '{channelId}', false);
|
|
51
|
+
const query = map({
|
|
52
|
+
"company": [, input.company],
|
|
53
|
+
});
|
|
54
|
+
let body;
|
|
55
|
+
return new __HttpRequest({
|
|
56
|
+
protocol,
|
|
57
|
+
hostname,
|
|
58
|
+
port,
|
|
59
|
+
method: "GET",
|
|
60
|
+
headers,
|
|
61
|
+
path: resolvedPath,
|
|
62
|
+
query,
|
|
63
|
+
body,
|
|
64
|
+
});
|
|
65
|
+
};
|
|
46
66
|
export const se_GetConversationsCommand = async (input, context) => {
|
|
47
67
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
48
68
|
const headers = {};
|
|
@@ -140,6 +160,45 @@ const de_DescribeEventCommandError = async (output, context) => {
|
|
|
140
160
|
});
|
|
141
161
|
}
|
|
142
162
|
};
|
|
163
|
+
export const de_GetConferenceIdCommand = async (output, context) => {
|
|
164
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
165
|
+
return de_GetConferenceIdCommandError(output, context);
|
|
166
|
+
}
|
|
167
|
+
const contents = map({
|
|
168
|
+
$metadata: deserializeMetadata(output),
|
|
169
|
+
});
|
|
170
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
171
|
+
const doc = take(data, {
|
|
172
|
+
'id': __expectString,
|
|
173
|
+
});
|
|
174
|
+
Object.assign(contents, doc);
|
|
175
|
+
return contents;
|
|
176
|
+
};
|
|
177
|
+
const de_GetConferenceIdCommandError = async (output, context) => {
|
|
178
|
+
const parsedOutput = {
|
|
179
|
+
...output,
|
|
180
|
+
body: await parseErrorBody(output.body, context)
|
|
181
|
+
};
|
|
182
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
183
|
+
switch (errorCode) {
|
|
184
|
+
case "ForbiddenException":
|
|
185
|
+
case "smithy.framework#ForbiddenException":
|
|
186
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
187
|
+
case "MatchNotFoundException":
|
|
188
|
+
case "wildix.wda.stream#MatchNotFoundException":
|
|
189
|
+
throw await de_MatchNotFoundExceptionRes(parsedOutput, context);
|
|
190
|
+
case "ValidationException":
|
|
191
|
+
case "smithy.framework#ValidationException":
|
|
192
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
193
|
+
default:
|
|
194
|
+
const parsedBody = parsedOutput.body;
|
|
195
|
+
return throwDefaultError({
|
|
196
|
+
output,
|
|
197
|
+
parsedBody,
|
|
198
|
+
errorCode
|
|
199
|
+
});
|
|
200
|
+
}
|
|
201
|
+
};
|
|
143
202
|
export const de_GetConversationsCommand = async (output, context) => {
|
|
144
203
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
145
204
|
return de_GetConversationsCommandError(output, context);
|
|
@@ -205,6 +264,19 @@ const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
|
205
264
|
});
|
|
206
265
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
207
266
|
};
|
|
267
|
+
const de_MatchNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
268
|
+
const contents = map({});
|
|
269
|
+
const data = parsedOutput.body;
|
|
270
|
+
const doc = take(data, {
|
|
271
|
+
'message': __expectString,
|
|
272
|
+
});
|
|
273
|
+
Object.assign(contents, doc);
|
|
274
|
+
const exception = new MatchNotFoundException({
|
|
275
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
276
|
+
...contents
|
|
277
|
+
});
|
|
278
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
279
|
+
};
|
|
208
280
|
const deserializeMetadata = (output) => ({
|
|
209
281
|
httpStatusCode: output.statusCode,
|
|
210
282
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { WdaStreamClient } from "./WdaStreamClient";
|
|
2
2
|
import { ConsumeEventCommandInput, ConsumeEventCommandOutput } from "./commands/ConsumeEventCommand";
|
|
3
3
|
import { DescribeEventCommandInput, DescribeEventCommandOutput } from "./commands/DescribeEventCommand";
|
|
4
|
+
import { GetConferenceIdCommandInput, GetConferenceIdCommandOutput } from "./commands/GetConferenceIdCommand";
|
|
4
5
|
import { GetConversationsCommandInput, GetConversationsCommandOutput } from "./commands/GetConversationsCommand";
|
|
5
6
|
import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
|
|
6
7
|
export interface WdaStream {
|
|
@@ -16,6 +17,12 @@ export interface WdaStream {
|
|
|
16
17
|
describeEvent(args: DescribeEventCommandInput, options?: __HttpHandlerOptions): Promise<DescribeEventCommandOutput>;
|
|
17
18
|
describeEvent(args: DescribeEventCommandInput, cb: (err: any, data?: DescribeEventCommandOutput) => void): void;
|
|
18
19
|
describeEvent(args: DescribeEventCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeEventCommandOutput) => void): void;
|
|
20
|
+
/**
|
|
21
|
+
* @see {@link GetConferenceIdCommand}
|
|
22
|
+
*/
|
|
23
|
+
getConferenceId(args: GetConferenceIdCommandInput, options?: __HttpHandlerOptions): Promise<GetConferenceIdCommandOutput>;
|
|
24
|
+
getConferenceId(args: GetConferenceIdCommandInput, cb: (err: any, data?: GetConferenceIdCommandOutput) => void): void;
|
|
25
|
+
getConferenceId(args: GetConferenceIdCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetConferenceIdCommandOutput) => void): void;
|
|
19
26
|
/**
|
|
20
27
|
* @see {@link GetConversationsCommand}
|
|
21
28
|
*/
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ConsumeEventCommandInput, ConsumeEventCommandOutput } from "./commands/ConsumeEventCommand";
|
|
2
2
|
import { DescribeEventCommandInput, DescribeEventCommandOutput } from "./commands/DescribeEventCommand";
|
|
3
|
+
import { GetConferenceIdCommandInput, GetConferenceIdCommandOutput } from "./commands/GetConferenceIdCommand";
|
|
3
4
|
import { GetConversationsCommandInput, GetConversationsCommandOutput } from "./commands/GetConversationsCommand";
|
|
4
5
|
import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
|
|
5
6
|
import { HttpHandler as __HttpHandler } from "@smithy/protocol-http";
|
|
@@ -10,11 +11,11 @@ export { __Client };
|
|
|
10
11
|
/**
|
|
11
12
|
* @public
|
|
12
13
|
*/
|
|
13
|
-
export type ServiceInputTypes = ConsumeEventCommandInput | DescribeEventCommandInput | GetConversationsCommandInput;
|
|
14
|
+
export type ServiceInputTypes = ConsumeEventCommandInput | DescribeEventCommandInput | GetConferenceIdCommandInput | GetConversationsCommandInput;
|
|
14
15
|
/**
|
|
15
16
|
* @public
|
|
16
17
|
*/
|
|
17
|
-
export type ServiceOutputTypes = ConsumeEventCommandOutput | DescribeEventCommandOutput | GetConversationsCommandOutput;
|
|
18
|
+
export type ServiceOutputTypes = ConsumeEventCommandOutput | DescribeEventCommandOutput | GetConferenceIdCommandOutput | GetConversationsCommandOutput;
|
|
18
19
|
/**
|
|
19
20
|
* @public
|
|
20
21
|
*/
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { ServiceInputTypes, ServiceOutputTypes, WdaStreamClientResolvedConfig } from "../WdaStreamClient";
|
|
2
|
+
import { GetConferenceIdInput, GetConferenceIdOutput } from "../models/models_0";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { Handler, MiddlewareStack, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export { __MetadataBearer, $Command };
|
|
9
|
+
/**
|
|
10
|
+
* @public
|
|
11
|
+
*
|
|
12
|
+
* The input for {@link GetConferenceIdCommand}.
|
|
13
|
+
*/
|
|
14
|
+
export interface GetConferenceIdCommandInput extends GetConferenceIdInput {
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* @public
|
|
18
|
+
*
|
|
19
|
+
* The output of {@link GetConferenceIdCommand}.
|
|
20
|
+
*/
|
|
21
|
+
export interface GetConferenceIdCommandOutput extends GetConferenceIdOutput, __MetadataBearer {
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* @public
|
|
25
|
+
* Retrieves ID for ongoing conference using a room token.
|
|
26
|
+
* @example
|
|
27
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
28
|
+
* ```javascript
|
|
29
|
+
* import { WdaStreamClient, GetConferenceIdCommand } from "@wildix/wda-stream-client"; // ES Modules import
|
|
30
|
+
* // const { WdaStreamClient, GetConferenceIdCommand } = require("@wildix/wda-stream-client"); // CommonJS import
|
|
31
|
+
* const client = new WdaStreamClient(config);
|
|
32
|
+
* const input = { // GetConferenceIdInput
|
|
33
|
+
* company: "STRING_VALUE",
|
|
34
|
+
* channelId: "STRING_VALUE", // required
|
|
35
|
+
* };
|
|
36
|
+
* const command = new GetConferenceIdCommand(input);
|
|
37
|
+
* const response = await client.send(command);
|
|
38
|
+
* // { // GetConferenceIdOutput
|
|
39
|
+
* // id: "STRING_VALUE", // required
|
|
40
|
+
* // };
|
|
41
|
+
*
|
|
42
|
+
* ```
|
|
43
|
+
*
|
|
44
|
+
* @param GetConferenceIdCommandInput - {@link GetConferenceIdCommandInput}
|
|
45
|
+
* @returns {@link GetConferenceIdCommandOutput}
|
|
46
|
+
* @see {@link GetConferenceIdCommandInput} for command's `input` shape.
|
|
47
|
+
* @see {@link GetConferenceIdCommandOutput} for command's `response` shape.
|
|
48
|
+
* @see {@link WdaStreamClientResolvedConfig | config} for WdaStreamClient's `config` shape.
|
|
49
|
+
*
|
|
50
|
+
* @throws {@link ForbiddenException} (client fault)
|
|
51
|
+
*
|
|
52
|
+
* @throws {@link MatchNotFoundException} (client fault)
|
|
53
|
+
*
|
|
54
|
+
* @throws {@link ValidationException} (client fault)
|
|
55
|
+
*
|
|
56
|
+
* @throws {@link WdaStreamServiceException}
|
|
57
|
+
* <p>Base exception class for all service exceptions from WdaStream service.</p>
|
|
58
|
+
*
|
|
59
|
+
*/
|
|
60
|
+
export declare class GetConferenceIdCommand extends $Command<GetConferenceIdCommandInput, GetConferenceIdCommandOutput, WdaStreamClientResolvedConfig> {
|
|
61
|
+
readonly input: GetConferenceIdCommandInput;
|
|
62
|
+
/**
|
|
63
|
+
* @public
|
|
64
|
+
*/
|
|
65
|
+
constructor(input: GetConferenceIdCommandInput);
|
|
66
|
+
/**
|
|
67
|
+
* @internal
|
|
68
|
+
*/
|
|
69
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: WdaStreamClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetConferenceIdCommandInput, GetConferenceIdCommandOutput>;
|
|
70
|
+
/**
|
|
71
|
+
* @internal
|
|
72
|
+
*/
|
|
73
|
+
private serialize;
|
|
74
|
+
/**
|
|
75
|
+
* @internal
|
|
76
|
+
*/
|
|
77
|
+
private deserialize;
|
|
78
|
+
}
|
|
@@ -1584,6 +1584,30 @@ export interface DescribeEventOutput {
|
|
|
1584
1584
|
ConferenceAnalyticsRecordEvent?: ConferenceAnalyticsRecordEvent;
|
|
1585
1585
|
ConferenceAnalyticsTranscriptionRecordEvent?: ConferenceAnalyticsTranscriptionRecordEvent;
|
|
1586
1586
|
}
|
|
1587
|
+
/**
|
|
1588
|
+
* @public
|
|
1589
|
+
*/
|
|
1590
|
+
export interface GetConferenceIdInput {
|
|
1591
|
+
company?: string;
|
|
1592
|
+
channelId: string;
|
|
1593
|
+
}
|
|
1594
|
+
/**
|
|
1595
|
+
* @public
|
|
1596
|
+
*/
|
|
1597
|
+
export interface GetConferenceIdOutput {
|
|
1598
|
+
id: string;
|
|
1599
|
+
}
|
|
1600
|
+
/**
|
|
1601
|
+
* @public
|
|
1602
|
+
*/
|
|
1603
|
+
export declare class MatchNotFoundException extends __BaseException {
|
|
1604
|
+
readonly name: "MatchNotFoundException";
|
|
1605
|
+
readonly $fault: "client";
|
|
1606
|
+
/**
|
|
1607
|
+
* @internal
|
|
1608
|
+
*/
|
|
1609
|
+
constructor(opts: __ExceptionOptionType<MatchNotFoundException, __BaseException>);
|
|
1610
|
+
}
|
|
1587
1611
|
/**
|
|
1588
1612
|
* @public
|
|
1589
1613
|
*/
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ConsumeEventCommandInput, ConsumeEventCommandOutput } from "../commands/ConsumeEventCommand";
|
|
2
2
|
import { DescribeEventCommandInput, DescribeEventCommandOutput } from "../commands/DescribeEventCommand";
|
|
3
|
+
import { GetConferenceIdCommandInput, GetConferenceIdCommandOutput } from "../commands/GetConferenceIdCommand";
|
|
3
4
|
import { GetConversationsCommandInput, GetConversationsCommandOutput } from "../commands/GetConversationsCommand";
|
|
4
5
|
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
|
|
5
6
|
import { SerdeContext as __SerdeContext } from "@smithy/types";
|
|
@@ -11,6 +12,10 @@ export declare const se_ConsumeEventCommand: (input: ConsumeEventCommandInput, c
|
|
|
11
12
|
* serializeAws_restJson1DescribeEventCommand
|
|
12
13
|
*/
|
|
13
14
|
export declare const se_DescribeEventCommand: (input: DescribeEventCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
15
|
+
/**
|
|
16
|
+
* serializeAws_restJson1GetConferenceIdCommand
|
|
17
|
+
*/
|
|
18
|
+
export declare const se_GetConferenceIdCommand: (input: GetConferenceIdCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
14
19
|
/**
|
|
15
20
|
* serializeAws_restJson1GetConversationsCommand
|
|
16
21
|
*/
|
|
@@ -23,6 +28,10 @@ export declare const de_ConsumeEventCommand: (output: __HttpResponse, context: _
|
|
|
23
28
|
* deserializeAws_restJson1DescribeEventCommand
|
|
24
29
|
*/
|
|
25
30
|
export declare const de_DescribeEventCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DescribeEventCommandOutput>;
|
|
31
|
+
/**
|
|
32
|
+
* deserializeAws_restJson1GetConferenceIdCommand
|
|
33
|
+
*/
|
|
34
|
+
export declare const de_GetConferenceIdCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetConferenceIdCommandOutput>;
|
|
26
35
|
/**
|
|
27
36
|
* deserializeAws_restJson1GetConversationsCommand
|
|
28
37
|
*/
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wildix/wda-stream-client",
|
|
3
3
|
"description": "@wildix/wda-stream-client client",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.8",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|