@wildix/wda-stream-client 1.1.38 → 1.1.39

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.
@@ -5,6 +5,7 @@ const WdaStreamClient_1 = require("./WdaStreamClient");
5
5
  const ConsumeEventCommand_1 = require("./commands/ConsumeEventCommand");
6
6
  const DescribeEventCommand_1 = require("./commands/DescribeEventCommand");
7
7
  const GetConferenceIdCommand_1 = require("./commands/GetConferenceIdCommand");
8
+ const GetOngoingCallCommand_1 = require("./commands/GetOngoingCallCommand");
8
9
  const QueryConversationsCommand_1 = require("./commands/QueryConversationsCommand");
9
10
  const QueryPresenceCommand_1 = require("./commands/QueryPresenceCommand");
10
11
  const QueryPresencesCommand_1 = require("./commands/QueryPresencesCommand");
@@ -14,6 +15,7 @@ const commands = {
14
15
  ConsumeEventCommand: ConsumeEventCommand_1.ConsumeEventCommand,
15
16
  DescribeEventCommand: DescribeEventCommand_1.DescribeEventCommand,
16
17
  GetConferenceIdCommand: GetConferenceIdCommand_1.GetConferenceIdCommand,
18
+ GetOngoingCallCommand: GetOngoingCallCommand_1.GetOngoingCallCommand,
17
19
  QueryConversationsCommand: QueryConversationsCommand_1.QueryConversationsCommand,
18
20
  QueryPresenceCommand: QueryPresenceCommand_1.QueryPresenceCommand,
19
21
  QueryPresencesCommand: QueryPresencesCommand_1.QueryPresencesCommand,
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetOngoingCallCommand = 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
+ class GetOngoingCallCommand extends smithy_client_1.Command.classBuilder()
9
+ .m(function (Command, cs, config, o) {
10
+ return [
11
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
12
+ ];
13
+ })
14
+ .s("WdaStream", "GetOngoingCall", {})
15
+ .n("WdaStreamClient", "GetOngoingCallCommand")
16
+ .f(void 0, void 0)
17
+ .ser(Aws_restJson1_1.se_GetOngoingCallCommand)
18
+ .de(Aws_restJson1_1.de_GetOngoingCallCommand)
19
+ .build() {
20
+ }
21
+ exports.GetOngoingCallCommand = GetOngoingCallCommand;
@@ -4,6 +4,7 @@ const tslib_1 = require("tslib");
4
4
  tslib_1.__exportStar(require("./ConsumeEventCommand"), exports);
5
5
  tslib_1.__exportStar(require("./DescribeEventCommand"), exports);
6
6
  tslib_1.__exportStar(require("./GetConferenceIdCommand"), exports);
7
+ tslib_1.__exportStar(require("./GetOngoingCallCommand"), exports);
7
8
  tslib_1.__exportStar(require("./QueryConversationsCommand"), exports);
8
9
  tslib_1.__exportStar(require("./QueryPresenceCommand"), exports);
9
10
  tslib_1.__exportStar(require("./QueryPresencesCommand"), exports);
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.de_UpdatePresenceLastSeenCommand = exports.de_QueryPresencesCommand = exports.de_QueryPresenceCommand = exports.de_QueryConversationsCommand = exports.de_GetConferenceIdCommand = exports.de_DescribeEventCommand = exports.de_ConsumeEventCommand = exports.se_UpdatePresenceLastSeenCommand = exports.se_QueryPresencesCommand = exports.se_QueryPresenceCommand = exports.se_QueryConversationsCommand = exports.se_GetConferenceIdCommand = exports.se_DescribeEventCommand = exports.se_ConsumeEventCommand = void 0;
3
+ exports.de_UpdatePresenceLastSeenCommand = exports.de_QueryPresencesCommand = exports.de_QueryPresenceCommand = exports.de_QueryConversationsCommand = exports.de_GetOngoingCallCommand = exports.de_GetConferenceIdCommand = exports.de_DescribeEventCommand = exports.de_ConsumeEventCommand = exports.se_UpdatePresenceLastSeenCommand = exports.se_QueryPresencesCommand = exports.se_QueryPresenceCommand = exports.se_QueryConversationsCommand = exports.se_GetOngoingCallCommand = 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 core_1 = require("@aws-sdk/core");
@@ -60,6 +60,22 @@ const se_GetConferenceIdCommand = async (input, context) => {
60
60
  return b.build();
61
61
  };
62
62
  exports.se_GetConferenceIdCommand = se_GetConferenceIdCommand;
63
+ const se_GetOngoingCallCommand = async (input, context) => {
64
+ const b = (0, core_2.requestBuilder)(input, context);
65
+ const headers = {};
66
+ b.bp("/v2/stream/calls/{callId}");
67
+ b.p('callId', () => input.callId, '{callId}', false);
68
+ const query = (0, smithy_client_1.map)({
69
+ [_c]: [, input[_c]],
70
+ });
71
+ let body;
72
+ b.m("GET")
73
+ .h(headers)
74
+ .q(query)
75
+ .b(body);
76
+ return b.build();
77
+ };
78
+ exports.se_GetOngoingCallCommand = se_GetOngoingCallCommand;
63
79
  const se_QueryConversationsCommand = async (input, context) => {
64
80
  const b = (0, core_2.requestBuilder)(input, context);
65
81
  const headers = {
@@ -236,6 +252,23 @@ const de_GetConferenceIdCommand = async (output, context) => {
236
252
  return contents;
237
253
  };
238
254
  exports.de_GetConferenceIdCommand = de_GetConferenceIdCommand;
255
+ const de_GetOngoingCallCommand = async (output, context) => {
256
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
257
+ return de_CommandError(output, context);
258
+ }
259
+ const contents = (0, smithy_client_1.map)({
260
+ $metadata: deserializeMetadata(output),
261
+ });
262
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
263
+ const doc = (0, smithy_client_1.take)(data, {
264
+ 'company': smithy_client_1.expectString,
265
+ 'flows': smithy_client_1._json,
266
+ 'transcriptions': smithy_client_1._json,
267
+ });
268
+ Object.assign(contents, doc);
269
+ return contents;
270
+ };
271
+ exports.de_GetOngoingCallCommand = de_GetOngoingCallCommand;
239
272
  const de_QueryConversationsCommand = async (output, context) => {
240
273
  if (output.statusCode !== 200 && output.statusCode >= 300) {
241
274
  return de_CommandError(output, context);
@@ -2,6 +2,7 @@ import { WdaStreamClient, } from "./WdaStreamClient";
2
2
  import { ConsumeEventCommand, } from "./commands/ConsumeEventCommand";
3
3
  import { DescribeEventCommand, } from "./commands/DescribeEventCommand";
4
4
  import { GetConferenceIdCommand, } from "./commands/GetConferenceIdCommand";
5
+ import { GetOngoingCallCommand, } from "./commands/GetOngoingCallCommand";
5
6
  import { QueryConversationsCommand, } from "./commands/QueryConversationsCommand";
6
7
  import { QueryPresenceCommand, } from "./commands/QueryPresenceCommand";
7
8
  import { QueryPresencesCommand, } from "./commands/QueryPresencesCommand";
@@ -11,6 +12,7 @@ const commands = {
11
12
  ConsumeEventCommand,
12
13
  DescribeEventCommand,
13
14
  GetConferenceIdCommand,
15
+ GetOngoingCallCommand,
14
16
  QueryConversationsCommand,
15
17
  QueryPresenceCommand,
16
18
  QueryPresencesCommand,
@@ -0,0 +1,17 @@
1
+ import { de_GetOngoingCallCommand, se_GetOngoingCallCommand, } from "../protocols/Aws_restJson1";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ export { $Command };
5
+ export class GetOngoingCallCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("WdaStream", "GetOngoingCall", {})
12
+ .n("WdaStreamClient", "GetOngoingCallCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_GetOngoingCallCommand)
15
+ .de(de_GetOngoingCallCommand)
16
+ .build() {
17
+ }
@@ -1,6 +1,7 @@
1
1
  export * from "./ConsumeEventCommand";
2
2
  export * from "./DescribeEventCommand";
3
3
  export * from "./GetConferenceIdCommand";
4
+ export * from "./GetOngoingCallCommand";
4
5
  export * from "./QueryConversationsCommand";
5
6
  export * from "./QueryPresenceCommand";
6
7
  export * from "./QueryPresencesCommand";
@@ -54,6 +54,21 @@ export const se_GetConferenceIdCommand = async (input, context) => {
54
54
  .b(body);
55
55
  return b.build();
56
56
  };
57
+ export const se_GetOngoingCallCommand = async (input, context) => {
58
+ const b = rb(input, context);
59
+ const headers = {};
60
+ b.bp("/v2/stream/calls/{callId}");
61
+ b.p('callId', () => input.callId, '{callId}', false);
62
+ const query = map({
63
+ [_c]: [, input[_c]],
64
+ });
65
+ let body;
66
+ b.m("GET")
67
+ .h(headers)
68
+ .q(query)
69
+ .b(body);
70
+ return b.build();
71
+ };
57
72
  export const se_QueryConversationsCommand = async (input, context) => {
58
73
  const b = rb(input, context);
59
74
  const headers = {
@@ -223,6 +238,22 @@ export const de_GetConferenceIdCommand = async (output, context) => {
223
238
  Object.assign(contents, doc);
224
239
  return contents;
225
240
  };
241
+ export const de_GetOngoingCallCommand = async (output, context) => {
242
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
243
+ return de_CommandError(output, context);
244
+ }
245
+ const contents = map({
246
+ $metadata: deserializeMetadata(output),
247
+ });
248
+ const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
249
+ const doc = take(data, {
250
+ 'company': __expectString,
251
+ 'flows': _json,
252
+ 'transcriptions': _json,
253
+ });
254
+ Object.assign(contents, doc);
255
+ return contents;
256
+ };
226
257
  export const de_QueryConversationsCommand = async (output, context) => {
227
258
  if (output.statusCode !== 200 && output.statusCode >= 300) {
228
259
  return de_CommandError(output, context);
@@ -2,6 +2,7 @@ import { WdaStreamClient } from "./WdaStreamClient";
2
2
  import { ConsumeEventCommandInput, ConsumeEventCommandOutput } from "./commands/ConsumeEventCommand";
3
3
  import { DescribeEventCommandInput, DescribeEventCommandOutput } from "./commands/DescribeEventCommand";
4
4
  import { GetConferenceIdCommandInput, GetConferenceIdCommandOutput } from "./commands/GetConferenceIdCommand";
5
+ import { GetOngoingCallCommandInput, GetOngoingCallCommandOutput } from "./commands/GetOngoingCallCommand";
5
6
  import { QueryConversationsCommandInput, QueryConversationsCommandOutput } from "./commands/QueryConversationsCommand";
6
7
  import { QueryPresenceCommandInput, QueryPresenceCommandOutput } from "./commands/QueryPresenceCommand";
7
8
  import { QueryPresencesCommandInput, QueryPresencesCommandOutput } from "./commands/QueryPresencesCommand";
@@ -27,6 +28,12 @@ export interface WdaStream {
27
28
  getConferenceId(args: GetConferenceIdCommandInput, options?: __HttpHandlerOptions): Promise<GetConferenceIdCommandOutput>;
28
29
  getConferenceId(args: GetConferenceIdCommandInput, cb: (err: any, data?: GetConferenceIdCommandOutput) => void): void;
29
30
  getConferenceId(args: GetConferenceIdCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetConferenceIdCommandOutput) => void): void;
31
+ /**
32
+ * @see {@link GetOngoingCallCommand}
33
+ */
34
+ getOngoingCall(args: GetOngoingCallCommandInput, options?: __HttpHandlerOptions): Promise<GetOngoingCallCommandOutput>;
35
+ getOngoingCall(args: GetOngoingCallCommandInput, cb: (err: any, data?: GetOngoingCallCommandOutput) => void): void;
36
+ getOngoingCall(args: GetOngoingCallCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetOngoingCallCommandOutput) => void): void;
30
37
  /**
31
38
  * @see {@link QueryConversationsCommand}
32
39
  */
@@ -1,6 +1,7 @@
1
1
  import { ConsumeEventCommandInput, ConsumeEventCommandOutput } from "./commands/ConsumeEventCommand";
2
2
  import { DescribeEventCommandInput, DescribeEventCommandOutput } from "./commands/DescribeEventCommand";
3
3
  import { GetConferenceIdCommandInput, GetConferenceIdCommandOutput } from "./commands/GetConferenceIdCommand";
4
+ import { GetOngoingCallCommandInput, GetOngoingCallCommandOutput } from "./commands/GetOngoingCallCommand";
4
5
  import { QueryConversationsCommandInput, QueryConversationsCommandOutput } from "./commands/QueryConversationsCommand";
5
6
  import { QueryPresenceCommandInput, QueryPresenceCommandOutput } from "./commands/QueryPresenceCommand";
6
7
  import { QueryPresencesCommandInput, QueryPresencesCommandOutput } from "./commands/QueryPresencesCommand";
@@ -16,11 +17,11 @@ export { __Client };
16
17
  /**
17
18
  * @public
18
19
  */
19
- export type ServiceInputTypes = ConsumeEventCommandInput | DescribeEventCommandInput | GetConferenceIdCommandInput | QueryConversationsCommandInput | QueryPresenceCommandInput | QueryPresencesCommandInput | UpdatePresenceLastSeenCommandInput;
20
+ export type ServiceInputTypes = ConsumeEventCommandInput | DescribeEventCommandInput | GetConferenceIdCommandInput | GetOngoingCallCommandInput | QueryConversationsCommandInput | QueryPresenceCommandInput | QueryPresencesCommandInput | UpdatePresenceLastSeenCommandInput;
20
21
  /**
21
22
  * @public
22
23
  */
23
- export type ServiceOutputTypes = ConsumeEventCommandOutput | DescribeEventCommandOutput | GetConferenceIdCommandOutput | QueryConversationsCommandOutput | QueryPresenceCommandOutput | QueryPresencesCommandOutput | UpdatePresenceLastSeenCommandOutput;
24
+ export type ServiceOutputTypes = ConsumeEventCommandOutput | DescribeEventCommandOutput | GetConferenceIdCommandOutput | GetOngoingCallCommandOutput | QueryConversationsCommandOutput | QueryPresenceCommandOutput | QueryPresencesCommandOutput | UpdatePresenceLastSeenCommandOutput;
24
25
  /**
25
26
  * @public
26
27
  */
@@ -0,0 +1,297 @@
1
+ import { ServiceInputTypes, ServiceOutputTypes, WdaStreamClientResolvedConfig } from "../WdaStreamClient";
2
+ import { GetOngoingCallInput, GetOngoingCallOutput } from "../models/models_0";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link GetOngoingCallCommand}.
14
+ */
15
+ export interface GetOngoingCallCommandInput extends GetOngoingCallInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link GetOngoingCallCommand}.
21
+ */
22
+ export interface GetOngoingCallCommandOutput extends GetOngoingCallOutput, __MetadataBearer {
23
+ }
24
+ declare const GetOngoingCallCommand_base: {
25
+ new (input: GetOngoingCallCommandInput): import("@smithy/smithy-client").CommandImpl<GetOngoingCallCommandInput, GetOngoingCallCommandOutput, WdaStreamClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: GetOngoingCallCommandInput): import("@smithy/smithy-client").CommandImpl<GetOngoingCallCommandInput, GetOngoingCallCommandOutput, WdaStreamClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * Retrieves information for ongoing call.
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { WdaStreamClient, GetOngoingCallCommand } from "@wildix/wda-stream-client"; // ES Modules import
35
+ * // const { WdaStreamClient, GetOngoingCallCommand } = require("@wildix/wda-stream-client"); // CommonJS import
36
+ * const client = new WdaStreamClient(config);
37
+ * const input = { // GetOngoingCallInput
38
+ * company: "STRING_VALUE",
39
+ * callId: "STRING_VALUE", // required
40
+ * };
41
+ * const command = new GetOngoingCallCommand(input);
42
+ * const response = await client.send(command);
43
+ * // { // GetOngoingCallOutput
44
+ * // company: "STRING_VALUE", // required
45
+ * // flows: [ // CallAnalyticsLiveProgressEventFlowList // required
46
+ * // { // CallAnalyticsLiveProgressEventFlow
47
+ * // flowIndex: Number("int"), // required
48
+ * // startTime: Number("long"), // required
49
+ * // endTime: Number("long"), // required
50
+ * // connectTime: Number("long"),
51
+ * // talkTime: Number("long"),
52
+ * // waitTime: Number("long"),
53
+ * // queueTime: Number("long"),
54
+ * // holdTime: Number("long"),
55
+ * // duration: Number("long"), // required
56
+ * // caller: { // CallParticipant
57
+ * // type: "REMOTE" || "LOCAL", // required
58
+ * // phone: "STRING_VALUE",
59
+ * // name: "STRING_VALUE",
60
+ * // company: "STRING_VALUE",
61
+ * // email: "STRING_VALUE",
62
+ * // userId: "STRING_VALUE",
63
+ * // userExtension: "STRING_VALUE",
64
+ * // userDepartment: "STRING_VALUE",
65
+ * // groupId: "STRING_VALUE",
66
+ * // groupName: "STRING_VALUE",
67
+ * // userAgent: "STRING_VALUE",
68
+ * // userDevice: "COLLABORATION_WEB" || "COLLABORATION_IOS" || "COLLABORATION_ANDROID" || "XBEES_WEB" || "XBEES_IOS" || "XBEES_ANDROID" || "WILDIX_PHONE" || "WILDIX_DEVICE" || "VOICEBOT" || "UNKNOWN",
69
+ * // role: "CLIENT" || "AGENT", // required
70
+ * // license: "STRING_VALUE",
71
+ * // sipCallId: "STRING_VALUE",
72
+ * // publicAddress: "STRING_VALUE",
73
+ * // privateAddress: "STRING_VALUE",
74
+ * // location: "STRING_VALUE",
75
+ * // },
76
+ * // callee: {
77
+ * // type: "REMOTE" || "LOCAL", // required
78
+ * // phone: "STRING_VALUE",
79
+ * // name: "STRING_VALUE",
80
+ * // company: "STRING_VALUE",
81
+ * // email: "STRING_VALUE",
82
+ * // userId: "STRING_VALUE",
83
+ * // userExtension: "STRING_VALUE",
84
+ * // userDepartment: "STRING_VALUE",
85
+ * // groupId: "STRING_VALUE",
86
+ * // groupName: "STRING_VALUE",
87
+ * // userAgent: "STRING_VALUE",
88
+ * // userDevice: "COLLABORATION_WEB" || "COLLABORATION_IOS" || "COLLABORATION_ANDROID" || "XBEES_WEB" || "XBEES_IOS" || "XBEES_ANDROID" || "WILDIX_PHONE" || "WILDIX_DEVICE" || "VOICEBOT" || "UNKNOWN",
89
+ * // role: "CLIENT" || "AGENT", // required
90
+ * // license: "STRING_VALUE",
91
+ * // sipCallId: "STRING_VALUE",
92
+ * // publicAddress: "STRING_VALUE",
93
+ * // privateAddress: "STRING_VALUE",
94
+ * // location: "STRING_VALUE",
95
+ * // },
96
+ * // service: "STRING_VALUE",
97
+ * // serviceNumber: "STRING_VALUE",
98
+ * // destination: "STRING_VALUE",
99
+ * // direction: "INTERNAL" || "INBOUND" || "OUTBOUND" || "UNDEFINED",
100
+ * // trunkName: "STRING_VALUE",
101
+ * // trunkDirection: "STRING_VALUE",
102
+ * // queueName: "STRING_VALUE",
103
+ * // queueId: "STRING_VALUE",
104
+ * // tags: [ // CallFlowTags
105
+ * // "STRING_VALUE",
106
+ * // ],
107
+ * // flags: [ // CallFlowFlags
108
+ * // "STRING_VALUE",
109
+ * // ],
110
+ * // callerMos: "STRING_VALUE",
111
+ * // calleeMos: "STRING_VALUE",
112
+ * // xhoppersConfId: "STRING_VALUE",
113
+ * // recordings: [ // CallFlowRecordings
114
+ * // "STRING_VALUE",
115
+ * // ],
116
+ * // recordingsData: [ // CallFlowRecordingsData
117
+ * // { // CallFlowRecording
118
+ * // fileName: "STRING_VALUE", // required
119
+ * // start: Number("long"), // required
120
+ * // end: Number("long"), // required
121
+ * // owner: "callee" || "caller" || "system", // required
122
+ * // url: "STRING_VALUE", // required
123
+ * // pauses: [ // CallRecordPausesList // required
124
+ * // { // CallRecordPause
125
+ * // start: Number("long"),
126
+ * // end: Number("long"),
127
+ * // reason: "pause" || "hold",
128
+ * // },
129
+ * // ],
130
+ * // },
131
+ * // ],
132
+ * // mergeWith: "STRING_VALUE",
133
+ * // splitReason: "STRING_VALUE",
134
+ * // splitTransferType: "STRING_VALUE",
135
+ * // remotePhone: "STRING_VALUE",
136
+ * // remotePhoneCountryCode: Number("int"),
137
+ * // remotePhoneCountryCodeStr: "STRING_VALUE",
138
+ * // remotePhoneLocation: "STRING_VALUE",
139
+ * // callStatus: "COMPLETED" || "MISSED",
140
+ * // transcriptionStatus: "AVAILABLE" || "POST_TRANSCRIPTION" || "UNAVAILABLE",
141
+ * // transcriptionLanguage: "STRING_VALUE",
142
+ * // transcriptionSeconds: Number("int"),
143
+ * // attachment: "STRING_VALUE",
144
+ * // attachmentType: "VOICEMAIL" || "FAX",
145
+ * // attachmentDestinations: [ // CallFlowAttachmentDestinationList
146
+ * // { // CallFlowAttachmentDestination
147
+ * // phone: "STRING_VALUE",
148
+ * // name: "STRING_VALUE",
149
+ * // email: "STRING_VALUE",
150
+ * // userId: "STRING_VALUE",
151
+ * // userExtension: "STRING_VALUE",
152
+ * // userDepartment: "STRING_VALUE",
153
+ * // groupId: "STRING_VALUE",
154
+ * // groupName: "STRING_VALUE",
155
+ * // },
156
+ * // ],
157
+ * // attachments: [ // CallFlowAttachments
158
+ * // { // CallFlowAttachment Union: only one key present
159
+ * // recording: {
160
+ * // fileName: "STRING_VALUE", // required
161
+ * // start: Number("long"), // required
162
+ * // end: Number("long"), // required
163
+ * // owner: "callee" || "caller" || "system", // required
164
+ * // url: "STRING_VALUE", // required
165
+ * // pauses: [ // required
166
+ * // {
167
+ * // start: Number("long"),
168
+ * // end: Number("long"),
169
+ * // reason: "pause" || "hold",
170
+ * // },
171
+ * // ],
172
+ * // },
173
+ * // fax: { // CallFlowFax
174
+ * // url: "STRING_VALUE", // required
175
+ * // status: "ok" || "error",
176
+ * // destinations: [
177
+ * // {
178
+ * // phone: "STRING_VALUE",
179
+ * // name: "STRING_VALUE",
180
+ * // email: "STRING_VALUE",
181
+ * // userId: "STRING_VALUE",
182
+ * // userExtension: "STRING_VALUE",
183
+ * // userDepartment: "STRING_VALUE",
184
+ * // groupId: "STRING_VALUE",
185
+ * // groupName: "STRING_VALUE",
186
+ * // },
187
+ * // ],
188
+ * // owner: "callee" || "caller" || "system",
189
+ * // error: "STRING_VALUE",
190
+ * // },
191
+ * // voicemail: { // CallFlowVoicemail
192
+ * // url: "STRING_VALUE", // required
193
+ * // destinations: [
194
+ * // {
195
+ * // phone: "STRING_VALUE",
196
+ * // name: "STRING_VALUE",
197
+ * // email: "STRING_VALUE",
198
+ * // userId: "STRING_VALUE",
199
+ * // userExtension: "STRING_VALUE",
200
+ * // userDepartment: "STRING_VALUE",
201
+ * // groupId: "STRING_VALUE",
202
+ * // groupName: "STRING_VALUE",
203
+ * // },
204
+ * // ],
205
+ * // owner: "callee" || "caller" || "system",
206
+ * // },
207
+ * // },
208
+ * // ],
209
+ * // notifications: { // CallFlowNotifications
210
+ * // destinations: "<CallFlowAttachmentDestinationList>",
211
+ * // type: [ // NotificationsType
212
+ * // "STRING_VALUE",
213
+ * // ],
214
+ * // },
215
+ * // status: "CONNECTING" || "TALKING" || "HOLD", // required
216
+ * // statusChangeDate: "STRING_VALUE", // required
217
+ * // },
218
+ * // ],
219
+ * // transcriptions: [ // CallAnalyticsLiveTranscriptionEventList
220
+ * // { // CallAnalyticsLiveTranscriptionEvent
221
+ * // id: "STRING_VALUE", // required
222
+ * // pbx: "STRING_VALUE", // required
223
+ * // time: Number("long"), // required
224
+ * // company: "STRING_VALUE", // required
225
+ * // licenses: [ // LicensesList // required
226
+ * // "x-bees" || "uc",
227
+ * // ],
228
+ * // event: "chat" || "chat_transcription" || "chat_complete" || "chat_interrupted" || "chat_missed" || "call_cost" || "call" || "call_complete" || "call_interrupted" || "call_transcription" || "conference" || "conference_complete" || "conference_interrupted" || "conference_transcription" || "conference_join" || "conference_leave", // required
229
+ * // flowIndex: Number("int"), // required
230
+ * // flowStartTime: Number("long"), // required
231
+ * // callStartTime: Number("long"), // required
232
+ * // chunk: { // CallTranscriptionChunk
233
+ * // id: "STRING_VALUE", // required
234
+ * // time: Number("long"), // required
235
+ * // speaker: "callee" || "caller", // required
236
+ * // text: "STRING_VALUE", // required
237
+ * // language: "STRING_VALUE",
238
+ * // isFinal: true || false, // required
239
+ * // start: Number("long"), // required
240
+ * // end: Number("long"), // required
241
+ * // sentiment: "STRING_VALUE",
242
+ * // },
243
+ * // participant: {
244
+ * // type: "REMOTE" || "LOCAL", // required
245
+ * // phone: "STRING_VALUE",
246
+ * // name: "STRING_VALUE",
247
+ * // company: "STRING_VALUE",
248
+ * // email: "STRING_VALUE",
249
+ * // userId: "STRING_VALUE",
250
+ * // userExtension: "STRING_VALUE",
251
+ * // userDepartment: "STRING_VALUE",
252
+ * // groupId: "STRING_VALUE",
253
+ * // groupName: "STRING_VALUE",
254
+ * // userAgent: "STRING_VALUE",
255
+ * // userDevice: "COLLABORATION_WEB" || "COLLABORATION_IOS" || "COLLABORATION_ANDROID" || "XBEES_WEB" || "XBEES_IOS" || "XBEES_ANDROID" || "WILDIX_PHONE" || "WILDIX_DEVICE" || "VOICEBOT" || "UNKNOWN",
256
+ * // role: "CLIENT" || "AGENT", // required
257
+ * // license: "STRING_VALUE",
258
+ * // sipCallId: "STRING_VALUE",
259
+ * // publicAddress: "STRING_VALUE",
260
+ * // privateAddress: "STRING_VALUE",
261
+ * // location: "STRING_VALUE",
262
+ * // },
263
+ * // },
264
+ * // ],
265
+ * // };
266
+ *
267
+ * ```
268
+ *
269
+ * @param GetOngoingCallCommandInput - {@link GetOngoingCallCommandInput}
270
+ * @returns {@link GetOngoingCallCommandOutput}
271
+ * @see {@link GetOngoingCallCommandInput} for command's `input` shape.
272
+ * @see {@link GetOngoingCallCommandOutput} for command's `response` shape.
273
+ * @see {@link WdaStreamClientResolvedConfig | config} for WdaStreamClient's `config` shape.
274
+ *
275
+ * @throws {@link ValidationException} (client fault)
276
+ *
277
+ * @throws {@link MatchNotFoundException} (client fault)
278
+ *
279
+ * @throws {@link WdaStreamServiceException}
280
+ * <p>Base exception class for all service exceptions from WdaStream service.</p>
281
+ *
282
+ *
283
+ * @public
284
+ */
285
+ export declare class GetOngoingCallCommand extends GetOngoingCallCommand_base {
286
+ /** @internal type navigation helper, not in runtime. */
287
+ protected static __types: {
288
+ api: {
289
+ input: GetOngoingCallInput;
290
+ output: GetOngoingCallOutput;
291
+ };
292
+ sdk: {
293
+ input: GetOngoingCallCommandInput;
294
+ output: GetOngoingCallCommandOutput;
295
+ };
296
+ };
297
+ }
@@ -1,6 +1,7 @@
1
1
  export * from "./ConsumeEventCommand";
2
2
  export * from "./DescribeEventCommand";
3
3
  export * from "./GetConferenceIdCommand";
4
+ export * from "./GetOngoingCallCommand";
4
5
  export * from "./QueryConversationsCommand";
5
6
  export * from "./QueryPresenceCommand";
6
7
  export * from "./QueryPresencesCommand";
@@ -5123,6 +5123,21 @@ export declare class MatchNotFoundException extends __BaseException {
5123
5123
  */
5124
5124
  constructor(opts: __ExceptionOptionType<MatchNotFoundException, __BaseException>);
5125
5125
  }
5126
+ /**
5127
+ * @public
5128
+ */
5129
+ export interface GetOngoingCallInput {
5130
+ company?: string | undefined;
5131
+ callId: string;
5132
+ }
5133
+ /**
5134
+ * @public
5135
+ */
5136
+ export interface GetOngoingCallOutput {
5137
+ company: string;
5138
+ flows: (CallAnalyticsLiveProgressEventFlow)[];
5139
+ transcriptions?: (CallAnalyticsLiveTranscriptionEvent)[] | undefined;
5140
+ }
5126
5141
  /**
5127
5142
  * @public
5128
5143
  * @enum
@@ -1,6 +1,7 @@
1
1
  import { ConsumeEventCommandInput, ConsumeEventCommandOutput } from "../commands/ConsumeEventCommand";
2
2
  import { DescribeEventCommandInput, DescribeEventCommandOutput } from "../commands/DescribeEventCommand";
3
3
  import { GetConferenceIdCommandInput, GetConferenceIdCommandOutput } from "../commands/GetConferenceIdCommand";
4
+ import { GetOngoingCallCommandInput, GetOngoingCallCommandOutput } from "../commands/GetOngoingCallCommand";
4
5
  import { QueryConversationsCommandInput, QueryConversationsCommandOutput } from "../commands/QueryConversationsCommand";
5
6
  import { QueryPresenceCommandInput, QueryPresenceCommandOutput } from "../commands/QueryPresenceCommand";
6
7
  import { QueryPresencesCommandInput, QueryPresencesCommandOutput } from "../commands/QueryPresencesCommand";
@@ -19,6 +20,10 @@ export declare const se_DescribeEventCommand: (input: DescribeEventCommandInput,
19
20
  * serializeAws_restJson1GetConferenceIdCommand
20
21
  */
21
22
  export declare const se_GetConferenceIdCommand: (input: GetConferenceIdCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
23
+ /**
24
+ * serializeAws_restJson1GetOngoingCallCommand
25
+ */
26
+ export declare const se_GetOngoingCallCommand: (input: GetOngoingCallCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
22
27
  /**
23
28
  * serializeAws_restJson1QueryConversationsCommand
24
29
  */
@@ -47,6 +52,10 @@ export declare const de_DescribeEventCommand: (output: __HttpResponse, context:
47
52
  * deserializeAws_restJson1GetConferenceIdCommand
48
53
  */
49
54
  export declare const de_GetConferenceIdCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetConferenceIdCommandOutput>;
55
+ /**
56
+ * deserializeAws_restJson1GetOngoingCallCommand
57
+ */
58
+ export declare const de_GetOngoingCallCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetOngoingCallCommandOutput>;
50
59
  /**
51
60
  * deserializeAws_restJson1QueryConversationsCommand
52
61
  */
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.1.38",
4
+ "version": "1.1.39",
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",