@wildix/wda-stream-client 1.0.7 → 1.0.9
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 +21 -8
- 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 +19 -7
- 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/DescribeEventCommand.d.ts +10 -4
- package/dist-types/commands/GetConferenceIdCommand.d.ts +78 -0
- package/dist-types/commands/GetConversationsCommand.d.ts +2 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +107 -77
- 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.
|
|
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.CallEndBy = exports.CallFlowStatus = exports.LiveEventType = exports.CallConsumeEventType = exports.ConferenceTranscriptionStatus = exports.ConferenceParticipantType = exports.ConferenceParticipantRole = exports.ConferenceDirection = exports.CallTranscriptionSpeaker = exports.CallFlowTranscriptionStatus = exports.License = exports.CallDirection = exports.ConversationStatus = exports.CallDevice = exports.CallParticipantType = exports.CallParticipantRole = exports.CallFlowAttachmentType = 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) {
|
|
@@ -28,10 +28,6 @@ class ValidationException extends WdaStreamServiceException_1.WdaStreamServiceEx
|
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
30
|
exports.ValidationException = ValidationException;
|
|
31
|
-
exports.CallEndBy = {
|
|
32
|
-
CALLEE: "CALLEE",
|
|
33
|
-
CALLER: "CALLER",
|
|
34
|
-
};
|
|
35
31
|
exports.CallFlowAttachmentType = {
|
|
36
32
|
FAX: "FAX",
|
|
37
33
|
VOICEMAIL: "VOICEMAIL",
|
|
@@ -65,13 +61,13 @@ exports.CallDirection = {
|
|
|
65
61
|
OUTBOUND: "OUTBOUND",
|
|
66
62
|
UNDEFINED: "UNDEFINED",
|
|
67
63
|
};
|
|
64
|
+
exports.License = {
|
|
65
|
+
XBEES: "x-bees",
|
|
66
|
+
};
|
|
68
67
|
exports.CallFlowTranscriptionStatus = {
|
|
69
68
|
AVAILABLE: "AVAILABLE",
|
|
70
69
|
UNAVAILABLE: "UNAVAILABLE",
|
|
71
70
|
};
|
|
72
|
-
exports.License = {
|
|
73
|
-
XBEES: "x-bees",
|
|
74
|
-
};
|
|
75
71
|
exports.CallTranscriptionSpeaker = {
|
|
76
72
|
CALLEE: "callee",
|
|
77
73
|
CALLER: "caller",
|
|
@@ -130,6 +126,10 @@ exports.CallFlowStatus = {
|
|
|
130
126
|
HOLD: "HOLD",
|
|
131
127
|
TALKING: "TALKING",
|
|
132
128
|
};
|
|
129
|
+
exports.CallEndBy = {
|
|
130
|
+
CALLEE: "CALLEE",
|
|
131
|
+
CALLER: "CALLER",
|
|
132
|
+
};
|
|
133
133
|
exports.CallFlowAttachmentConsumeType = {
|
|
134
134
|
FAX: "fax",
|
|
135
135
|
VOICEMAIL: "voicemail",
|
|
@@ -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
|
+
}
|
|
@@ -23,10 +23,6 @@ export class ValidationException extends __BaseException {
|
|
|
23
23
|
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
|
-
export const CallEndBy = {
|
|
27
|
-
CALLEE: "CALLEE",
|
|
28
|
-
CALLER: "CALLER",
|
|
29
|
-
};
|
|
30
26
|
export const CallFlowAttachmentType = {
|
|
31
27
|
FAX: "FAX",
|
|
32
28
|
VOICEMAIL: "VOICEMAIL",
|
|
@@ -60,13 +56,13 @@ export const CallDirection = {
|
|
|
60
56
|
OUTBOUND: "OUTBOUND",
|
|
61
57
|
UNDEFINED: "UNDEFINED",
|
|
62
58
|
};
|
|
59
|
+
export const License = {
|
|
60
|
+
XBEES: "x-bees",
|
|
61
|
+
};
|
|
63
62
|
export const CallFlowTranscriptionStatus = {
|
|
64
63
|
AVAILABLE: "AVAILABLE",
|
|
65
64
|
UNAVAILABLE: "UNAVAILABLE",
|
|
66
65
|
};
|
|
67
|
-
export const License = {
|
|
68
|
-
XBEES: "x-bees",
|
|
69
|
-
};
|
|
70
66
|
export const CallTranscriptionSpeaker = {
|
|
71
67
|
CALLEE: "callee",
|
|
72
68
|
CALLER: "caller",
|
|
@@ -125,6 +121,10 @@ export const CallFlowStatus = {
|
|
|
125
121
|
HOLD: "HOLD",
|
|
126
122
|
TALKING: "TALKING",
|
|
127
123
|
};
|
|
124
|
+
export const CallEndBy = {
|
|
125
|
+
CALLEE: "CALLEE",
|
|
126
|
+
CALLER: "CALLER",
|
|
127
|
+
};
|
|
128
128
|
export const CallFlowAttachmentConsumeType = {
|
|
129
129
|
FAX: "fax",
|
|
130
130
|
VOICEMAIL: "voicemail",
|
|
@@ -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
|
*/
|
|
@@ -72,7 +72,9 @@ export interface DescribeEventCommandOutput extends DescribeEventOutput, __Metad
|
|
|
72
72
|
* // start: "STRING_VALUE", // required
|
|
73
73
|
* // flows: [ // CallAnalyticsLiveProgressEventFlowList // required
|
|
74
74
|
* // { // CallAnalyticsLiveProgressEventFlow
|
|
75
|
+
* // flowIndex: Number("int"), // required
|
|
75
76
|
* // startTime: Number("long"), // required
|
|
77
|
+
* // endTime: Number("long"),
|
|
76
78
|
* // connectTime: Number("long"),
|
|
77
79
|
* // talkTime: Number("long"),
|
|
78
80
|
* // waitTime: Number("long"),
|
|
@@ -231,7 +233,9 @@ export interface DescribeEventCommandOutput extends DescribeEventOutput, __Metad
|
|
|
231
233
|
* // licenses: "<LicensesList>", // required
|
|
232
234
|
* // flows: [ // CallAnalyticsRecordEventFlowsList // required
|
|
233
235
|
* // { // CallAnalyticsRecordEventFlow
|
|
236
|
+
* // flowIndex: Number("int"), // required
|
|
234
237
|
* // startTime: Number("long"), // required
|
|
238
|
+
* // endTime: Number("long"),
|
|
235
239
|
* // connectTime: Number("long"),
|
|
236
240
|
* // talkTime: Number("long"),
|
|
237
241
|
* // waitTime: Number("long"),
|
|
@@ -318,7 +322,8 @@ export interface DescribeEventCommandOutput extends DescribeEventOutput, __Metad
|
|
|
318
322
|
* // totalConnectTime: Number("int"), // required
|
|
319
323
|
* // totalTalkTime: Number("int"), // required
|
|
320
324
|
* // totalWaitTime: Number("int"), // required
|
|
321
|
-
* // type: "
|
|
325
|
+
* // type: "chat" || "chat_complete" || "chat_interrupted" || "chat_missed" || "call" || "call_complete" || "call_interrupted" || "call_transcription" || "call_transcription_complete" || "conference" || "conference_complete" || "conference_interrupted" || "conference_transcription" || "conference_transcription_complete", // required
|
|
326
|
+
* // complete: true || false, // required
|
|
322
327
|
* // },
|
|
323
328
|
* // CallAnalyticsTranscriptionRecordEvent: { // CallAnalyticsTranscriptionRecordEvent
|
|
324
329
|
* // id: "STRING_VALUE", // required
|
|
@@ -343,7 +348,8 @@ export interface DescribeEventCommandOutput extends DescribeEventOutput, __Metad
|
|
|
343
348
|
* // },
|
|
344
349
|
* // },
|
|
345
350
|
* // ],
|
|
346
|
-
* // type: "
|
|
351
|
+
* // type: "chat" || "chat_complete" || "chat_interrupted" || "chat_missed" || "call" || "call_complete" || "call_interrupted" || "call_transcription" || "call_transcription_complete" || "conference" || "conference_complete" || "conference_interrupted" || "conference_transcription" || "conference_transcription_complete", // required
|
|
352
|
+
* // complete: true || false, // required
|
|
347
353
|
* // },
|
|
348
354
|
* // ConferenceAnalyticsLiveProgressEvent: { // ConferenceAnalyticsLiveProgressEvent
|
|
349
355
|
* // id: "STRING_VALUE", // required
|
|
@@ -444,7 +450,7 @@ export interface DescribeEventCommandOutput extends DescribeEventOutput, __Metad
|
|
|
444
450
|
* // },
|
|
445
451
|
* // ],
|
|
446
452
|
* // transcriptionStatus: "AVAILABLE" || "UNAVAILABLE", // required
|
|
447
|
-
* // type: "
|
|
453
|
+
* // type: "chat" || "chat_complete" || "chat_interrupted" || "chat_missed" || "call" || "call_complete" || "call_interrupted" || "call_transcription" || "call_transcription_complete" || "conference" || "conference_complete" || "conference_interrupted" || "conference_transcription" || "conference_transcription_complete", // required
|
|
448
454
|
* // transcriptions: "STRING_VALUE",
|
|
449
455
|
* // },
|
|
450
456
|
* // ConferenceAnalyticsTranscriptionRecordEvent: { // ConferenceAnalyticsTranscriptionRecordEvent
|
|
@@ -467,7 +473,7 @@ export interface DescribeEventCommandOutput extends DescribeEventOutput, __Metad
|
|
|
467
473
|
* // },
|
|
468
474
|
* // },
|
|
469
475
|
* // ],
|
|
470
|
-
* // type: "
|
|
476
|
+
* // type: "chat" || "chat_complete" || "chat_interrupted" || "chat_missed" || "call" || "call_complete" || "call_interrupted" || "call_transcription" || "call_transcription_complete" || "conference" || "conference_complete" || "conference_interrupted" || "conference_transcription" || "conference_transcription_complete", // required
|
|
471
477
|
* // subject: "STRING_VALUE",
|
|
472
478
|
* // participants: { // ConferenceParticipantsMap
|
|
473
479
|
* // "<keys>": "<ConferenceParticipant>",
|
|
@@ -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
|
+
}
|
|
@@ -51,7 +51,9 @@ export interface GetConversationsCommandOutput extends GetConversationsOutput, _
|
|
|
51
51
|
* // start: "STRING_VALUE", // required
|
|
52
52
|
* // flows: [ // CallAnalyticsLiveProgressEventFlowList // required
|
|
53
53
|
* // { // CallAnalyticsLiveProgressEventFlow
|
|
54
|
+
* // flowIndex: Number("int"), // required
|
|
54
55
|
* // startTime: Number("long"), // required
|
|
56
|
+
* // endTime: Number("long"),
|
|
55
57
|
* // connectTime: Number("long"),
|
|
56
58
|
* // talkTime: Number("long"),
|
|
57
59
|
* // waitTime: Number("long"),
|
|
@@ -22,18 +22,6 @@ export declare class ValidationException extends __BaseException {
|
|
|
22
22
|
*/
|
|
23
23
|
constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
|
|
24
24
|
}
|
|
25
|
-
/**
|
|
26
|
-
* @public
|
|
27
|
-
* @enum
|
|
28
|
-
*/
|
|
29
|
-
export declare const CallEndBy: {
|
|
30
|
-
readonly CALLEE: "CALLEE";
|
|
31
|
-
readonly CALLER: "CALLER";
|
|
32
|
-
};
|
|
33
|
-
/**
|
|
34
|
-
* @public
|
|
35
|
-
*/
|
|
36
|
-
export type CallEndBy = typeof CallEndBy[keyof typeof CallEndBy];
|
|
37
25
|
/**
|
|
38
26
|
* @public
|
|
39
27
|
*/
|
|
@@ -151,62 +139,25 @@ export type CallDirection = typeof CallDirection[keyof typeof CallDirection];
|
|
|
151
139
|
* @public
|
|
152
140
|
* @enum
|
|
153
141
|
*/
|
|
154
|
-
export declare const
|
|
155
|
-
readonly
|
|
156
|
-
readonly UNAVAILABLE: "UNAVAILABLE";
|
|
142
|
+
export declare const License: {
|
|
143
|
+
readonly XBEES: "x-bees";
|
|
157
144
|
};
|
|
158
145
|
/**
|
|
159
146
|
* @public
|
|
160
147
|
*/
|
|
161
|
-
export type
|
|
162
|
-
/**
|
|
163
|
-
* @public
|
|
164
|
-
*/
|
|
165
|
-
export interface CallAnalyticsRecordEventFlow {
|
|
166
|
-
startTime: number;
|
|
167
|
-
connectTime?: number;
|
|
168
|
-
talkTime?: number;
|
|
169
|
-
waitTime?: number;
|
|
170
|
-
caller?: CallParticipant;
|
|
171
|
-
callee?: CallParticipant;
|
|
172
|
-
service?: string;
|
|
173
|
-
serviceNumber?: string;
|
|
174
|
-
destination?: string;
|
|
175
|
-
direction?: CallDirection | string;
|
|
176
|
-
trunkName?: string;
|
|
177
|
-
trunkDirection?: string;
|
|
178
|
-
queueName?: string;
|
|
179
|
-
queueId?: string;
|
|
180
|
-
tags?: (string)[];
|
|
181
|
-
flags?: (string)[];
|
|
182
|
-
callerMos?: string;
|
|
183
|
-
calleeMos?: string;
|
|
184
|
-
xhoppersConfId?: string;
|
|
185
|
-
recordings?: (string)[];
|
|
186
|
-
mergeWith?: string;
|
|
187
|
-
splitReason?: string;
|
|
188
|
-
splitTransferType?: string;
|
|
189
|
-
remotePhone?: string;
|
|
190
|
-
remotePhoneCountryCode?: number;
|
|
191
|
-
remotePhoneCountryCodeStr?: string;
|
|
192
|
-
remotePhoneLocation?: string;
|
|
193
|
-
callStatus?: ConversationStatus | string;
|
|
194
|
-
transcriptionStatus: CallFlowTranscriptionStatus | string;
|
|
195
|
-
attachment?: string;
|
|
196
|
-
attachmentType?: CallFlowAttachmentType | string;
|
|
197
|
-
attachmentDestinations?: (CallFlowAttachmentDestination)[];
|
|
198
|
-
}
|
|
148
|
+
export type License = typeof License[keyof typeof License];
|
|
199
149
|
/**
|
|
200
150
|
* @public
|
|
201
151
|
* @enum
|
|
202
152
|
*/
|
|
203
|
-
export declare const
|
|
204
|
-
readonly
|
|
153
|
+
export declare const CallFlowTranscriptionStatus: {
|
|
154
|
+
readonly AVAILABLE: "AVAILABLE";
|
|
155
|
+
readonly UNAVAILABLE: "UNAVAILABLE";
|
|
205
156
|
};
|
|
206
157
|
/**
|
|
207
158
|
* @public
|
|
208
159
|
*/
|
|
209
|
-
export type
|
|
160
|
+
export type CallFlowTranscriptionStatus = typeof CallFlowTranscriptionStatus[keyof typeof CallFlowTranscriptionStatus];
|
|
210
161
|
/**
|
|
211
162
|
* @public
|
|
212
163
|
* @enum
|
|
@@ -230,15 +181,6 @@ export interface CallTranscriptionChunk {
|
|
|
230
181
|
language?: string;
|
|
231
182
|
isFinal: boolean;
|
|
232
183
|
}
|
|
233
|
-
/**
|
|
234
|
-
* @public
|
|
235
|
-
*/
|
|
236
|
-
export interface CallTranscription {
|
|
237
|
-
flowIndex: number;
|
|
238
|
-
flowStartTime: number;
|
|
239
|
-
callStartTime: number;
|
|
240
|
-
chunks: Record<string, CallTranscriptionChunk>;
|
|
241
|
-
}
|
|
242
184
|
/**
|
|
243
185
|
* @public
|
|
244
186
|
* @enum
|
|
@@ -340,14 +282,6 @@ export interface ConferenceTranscriptionChunk {
|
|
|
340
282
|
language?: string;
|
|
341
283
|
isFinal: boolean;
|
|
342
284
|
}
|
|
343
|
-
/**
|
|
344
|
-
* @public
|
|
345
|
-
*/
|
|
346
|
-
export interface ConferenceTranscription {
|
|
347
|
-
start: number;
|
|
348
|
-
end: number;
|
|
349
|
-
chunks: Record<string, ConferenceTranscriptionChunk>;
|
|
350
|
-
}
|
|
351
285
|
/**
|
|
352
286
|
* @public
|
|
353
287
|
*/
|
|
@@ -483,7 +417,9 @@ export type CallFlowStatus = typeof CallFlowStatus[keyof typeof CallFlowStatus];
|
|
|
483
417
|
* @public
|
|
484
418
|
*/
|
|
485
419
|
export interface CallAnalyticsLiveProgressEventFlow {
|
|
420
|
+
flowIndex: number;
|
|
486
421
|
startTime: number;
|
|
422
|
+
endTime?: number;
|
|
487
423
|
connectTime?: number;
|
|
488
424
|
talkTime?: number;
|
|
489
425
|
waitTime?: number;
|
|
@@ -562,6 +498,57 @@ export interface CallAnalyticsLiveTranscriptionEvent {
|
|
|
562
498
|
chunk: CallTranscriptionChunk;
|
|
563
499
|
participant: CallParticipant;
|
|
564
500
|
}
|
|
501
|
+
/**
|
|
502
|
+
* @public
|
|
503
|
+
* @enum
|
|
504
|
+
*/
|
|
505
|
+
export declare const CallEndBy: {
|
|
506
|
+
readonly CALLEE: "CALLEE";
|
|
507
|
+
readonly CALLER: "CALLER";
|
|
508
|
+
};
|
|
509
|
+
/**
|
|
510
|
+
* @public
|
|
511
|
+
*/
|
|
512
|
+
export type CallEndBy = typeof CallEndBy[keyof typeof CallEndBy];
|
|
513
|
+
/**
|
|
514
|
+
* @public
|
|
515
|
+
*/
|
|
516
|
+
export interface CallAnalyticsRecordEventFlow {
|
|
517
|
+
flowIndex: number;
|
|
518
|
+
startTime: number;
|
|
519
|
+
endTime?: number;
|
|
520
|
+
connectTime?: number;
|
|
521
|
+
talkTime?: number;
|
|
522
|
+
waitTime?: number;
|
|
523
|
+
caller?: CallParticipant;
|
|
524
|
+
callee?: CallParticipant;
|
|
525
|
+
service?: string;
|
|
526
|
+
serviceNumber?: string;
|
|
527
|
+
destination?: string;
|
|
528
|
+
direction?: CallDirection | string;
|
|
529
|
+
trunkName?: string;
|
|
530
|
+
trunkDirection?: string;
|
|
531
|
+
queueName?: string;
|
|
532
|
+
queueId?: string;
|
|
533
|
+
tags?: (string)[];
|
|
534
|
+
flags?: (string)[];
|
|
535
|
+
callerMos?: string;
|
|
536
|
+
calleeMos?: string;
|
|
537
|
+
xhoppersConfId?: string;
|
|
538
|
+
recordings?: (string)[];
|
|
539
|
+
mergeWith?: string;
|
|
540
|
+
splitReason?: string;
|
|
541
|
+
splitTransferType?: string;
|
|
542
|
+
remotePhone?: string;
|
|
543
|
+
remotePhoneCountryCode?: number;
|
|
544
|
+
remotePhoneCountryCodeStr?: string;
|
|
545
|
+
remotePhoneLocation?: string;
|
|
546
|
+
callStatus?: ConversationStatus | string;
|
|
547
|
+
transcriptionStatus: CallFlowTranscriptionStatus | string;
|
|
548
|
+
attachment?: string;
|
|
549
|
+
attachmentType?: CallFlowAttachmentType | string;
|
|
550
|
+
attachmentDestinations?: (CallFlowAttachmentDestination)[];
|
|
551
|
+
}
|
|
565
552
|
/**
|
|
566
553
|
* @public
|
|
567
554
|
*/
|
|
@@ -578,7 +565,17 @@ export interface CallAnalyticsRecordEvent {
|
|
|
578
565
|
totalConnectTime: number;
|
|
579
566
|
totalTalkTime: number;
|
|
580
567
|
totalWaitTime: number;
|
|
581
|
-
type
|
|
568
|
+
type: LiveEventType | string;
|
|
569
|
+
complete: boolean;
|
|
570
|
+
}
|
|
571
|
+
/**
|
|
572
|
+
* @public
|
|
573
|
+
*/
|
|
574
|
+
export interface CallTranscription {
|
|
575
|
+
flowIndex: number;
|
|
576
|
+
flowStartTime: number;
|
|
577
|
+
callStartTime: number;
|
|
578
|
+
chunks: Record<string, CallTranscriptionChunk>;
|
|
582
579
|
}
|
|
583
580
|
/**
|
|
584
581
|
* @public
|
|
@@ -590,7 +587,8 @@ export interface CallAnalyticsTranscriptionRecordEvent {
|
|
|
590
587
|
company: string;
|
|
591
588
|
licenses: (License | string)[];
|
|
592
589
|
transcriptions: (CallTranscription)[];
|
|
593
|
-
type
|
|
590
|
+
type: LiveEventType | string;
|
|
591
|
+
complete: boolean;
|
|
594
592
|
}
|
|
595
593
|
/**
|
|
596
594
|
* @public
|
|
@@ -1111,9 +1109,17 @@ export interface ConferenceAnalyticsRecordEvent {
|
|
|
1111
1109
|
participants: (ConferenceAnalyticsRecordParticipant)[];
|
|
1112
1110
|
recordings?: (ConferenceRecording)[];
|
|
1113
1111
|
transcriptionStatus: ConferenceTranscriptionStatus | string;
|
|
1114
|
-
type
|
|
1112
|
+
type: LiveEventType | string;
|
|
1115
1113
|
transcriptions?: string;
|
|
1116
1114
|
}
|
|
1115
|
+
/**
|
|
1116
|
+
* @public
|
|
1117
|
+
*/
|
|
1118
|
+
export interface ConferenceTranscription {
|
|
1119
|
+
start: number;
|
|
1120
|
+
end: number;
|
|
1121
|
+
chunks: Record<string, ConferenceTranscriptionChunk>;
|
|
1122
|
+
}
|
|
1117
1123
|
/**
|
|
1118
1124
|
* @public
|
|
1119
1125
|
*/
|
|
@@ -1122,7 +1128,7 @@ export interface ConferenceAnalyticsTranscriptionRecordEvent {
|
|
|
1122
1128
|
time: number;
|
|
1123
1129
|
company: string;
|
|
1124
1130
|
transcriptions: (ConferenceTranscription)[];
|
|
1125
|
-
type
|
|
1131
|
+
type: LiveEventType | string;
|
|
1126
1132
|
subject?: string;
|
|
1127
1133
|
participants?: Record<string, ConferenceParticipant>;
|
|
1128
1134
|
}
|
|
@@ -1584,6 +1590,30 @@ export interface DescribeEventOutput {
|
|
|
1584
1590
|
ConferenceAnalyticsRecordEvent?: ConferenceAnalyticsRecordEvent;
|
|
1585
1591
|
ConferenceAnalyticsTranscriptionRecordEvent?: ConferenceAnalyticsTranscriptionRecordEvent;
|
|
1586
1592
|
}
|
|
1593
|
+
/**
|
|
1594
|
+
* @public
|
|
1595
|
+
*/
|
|
1596
|
+
export interface GetConferenceIdInput {
|
|
1597
|
+
company?: string;
|
|
1598
|
+
channelId: string;
|
|
1599
|
+
}
|
|
1600
|
+
/**
|
|
1601
|
+
* @public
|
|
1602
|
+
*/
|
|
1603
|
+
export interface GetConferenceIdOutput {
|
|
1604
|
+
id: string;
|
|
1605
|
+
}
|
|
1606
|
+
/**
|
|
1607
|
+
* @public
|
|
1608
|
+
*/
|
|
1609
|
+
export declare class MatchNotFoundException extends __BaseException {
|
|
1610
|
+
readonly name: "MatchNotFoundException";
|
|
1611
|
+
readonly $fault: "client";
|
|
1612
|
+
/**
|
|
1613
|
+
* @internal
|
|
1614
|
+
*/
|
|
1615
|
+
constructor(opts: __ExceptionOptionType<MatchNotFoundException, __BaseException>);
|
|
1616
|
+
}
|
|
1587
1617
|
/**
|
|
1588
1618
|
* @public
|
|
1589
1619
|
*/
|
|
@@ -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.9",
|
|
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",
|