@wildix/wda-stream-client 1.0.1
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 +17 -0
- package/dist-cjs/WdaStreamClient.js +35 -0
- package/dist-cjs/commands/ConsumeEventCommand.js +41 -0
- package/dist-cjs/commands/DescribeEventCommand.js +41 -0
- package/dist-cjs/commands/GetOngoingConversationsCommand.js +41 -0
- package/dist-cjs/commands/index.js +6 -0
- package/dist-cjs/extensionConfiguration.js +2 -0
- package/dist-cjs/index.js +10 -0
- package/dist-cjs/models/WdaStreamServiceException.js +12 -0
- package/dist-cjs/models/index.js +4 -0
- package/dist-cjs/models/models_0.js +170 -0
- package/dist-cjs/protocols/Aws_restJson1.js +262 -0
- package/dist-cjs/runtimeConfig.browser.js +28 -0
- package/dist-cjs/runtimeConfig.js +32 -0
- package/dist-cjs/runtimeConfig.native.js +15 -0
- package/dist-cjs/runtimeConfig.shared.js +19 -0
- package/dist-cjs/runtimeExtensions.js +19 -0
- package/dist-es/WdaStream.js +13 -0
- package/dist-es/WdaStreamClient.js +31 -0
- package/dist-es/commands/ConsumeEventCommand.js +37 -0
- package/dist-es/commands/DescribeEventCommand.js +37 -0
- package/dist-es/commands/GetOngoingConversationsCommand.js +37 -0
- package/dist-es/commands/index.js +3 -0
- package/dist-es/extensionConfiguration.js +1 -0
- package/dist-es/index.js +5 -0
- package/dist-es/models/WdaStreamServiceException.js +8 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +165 -0
- package/dist-es/protocols/Aws_restJson1.js +253 -0
- package/dist-es/runtimeConfig.browser.js +24 -0
- package/dist-es/runtimeConfig.js +28 -0
- package/dist-es/runtimeConfig.native.js +11 -0
- package/dist-es/runtimeConfig.shared.js +15 -0
- package/dist-es/runtimeExtensions.js +15 -0
- package/dist-types/WdaStream.d.ts +30 -0
- package/dist-types/WdaStreamClient.d.ts +139 -0
- package/dist-types/commands/ConsumeEventCommand.d.ts +219 -0
- package/dist-types/commands/DescribeEventCommand.d.ts +327 -0
- package/dist-types/commands/GetOngoingConversationsCommand.d.ts +275 -0
- package/dist-types/commands/index.d.ts +3 -0
- package/dist-types/extensionConfiguration.d.ts +7 -0
- package/dist-types/index.d.ts +5 -0
- package/dist-types/models/WdaStreamServiceException.d.ts +13 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +857 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +29 -0
- package/dist-types/runtimeConfig.browser.d.ts +29 -0
- package/dist-types/runtimeConfig.d.ts +29 -0
- package/dist-types/runtimeConfig.native.d.ts +28 -0
- package/dist-types/runtimeConfig.shared.d.ts +15 -0
- package/dist-types/runtimeExtensions.d.ts +17 -0
- package/package.json +77 -0
|
@@ -0,0 +1,275 @@
|
|
|
1
|
+
import { ServiceInputTypes, ServiceOutputTypes, WdaStreamClientResolvedConfig } from "../WdaStreamClient";
|
|
2
|
+
import { GetOngoingConversationsInput, GetOngoingConversationsOutput } 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 GetOngoingConversationsCommand}.
|
|
13
|
+
*/
|
|
14
|
+
export interface GetOngoingConversationsCommandInput extends GetOngoingConversationsInput {
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* @public
|
|
18
|
+
*
|
|
19
|
+
* The output of {@link GetOngoingConversationsCommand}.
|
|
20
|
+
*/
|
|
21
|
+
export interface GetOngoingConversationsCommandOutput extends GetOngoingConversationsOutput, __MetadataBearer {
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* @public
|
|
25
|
+
*
|
|
26
|
+
* <p>Retrieves ongoing conversations.</p>
|
|
27
|
+
* <p>Once the conversation ends the item would be dissapeared from the list.</p>
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
31
|
+
* ```javascript
|
|
32
|
+
* import { WdaStreamClient, GetOngoingConversationsCommand } from "@wildix/wda-stream-client"; // ES Modules import
|
|
33
|
+
* // const { WdaStreamClient, GetOngoingConversationsCommand } = require("@wildix/wda-stream-client"); // CommonJS import
|
|
34
|
+
* const client = new WdaStreamClient(config);
|
|
35
|
+
* const input = { // GetOngoingConversationsInput
|
|
36
|
+
* company: "STRING_VALUE",
|
|
37
|
+
* };
|
|
38
|
+
* const command = new GetOngoingConversationsCommand(input);
|
|
39
|
+
* const response = await client.send(command);
|
|
40
|
+
* // { // GetOngoingConversationsOutput
|
|
41
|
+
* // calls: [ // GetOngoingConversationsCallsList // required
|
|
42
|
+
* // { // CallAnalyticsLiveProgressEvent
|
|
43
|
+
* // id: "STRING_VALUE", // required
|
|
44
|
+
* // pbx: "STRING_VALUE", // required
|
|
45
|
+
* // time: Number("long"), // required
|
|
46
|
+
* // company: "STRING_VALUE", // required
|
|
47
|
+
* // licenses: [ // LicensesList // required
|
|
48
|
+
* // "x-bees",
|
|
49
|
+
* // ],
|
|
50
|
+
* // event: "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
|
|
51
|
+
* // start: "STRING_VALUE", // required
|
|
52
|
+
* // flows: [ // CallAnalyticsLiveProgressEventFlowList // required
|
|
53
|
+
* // { // CallAnalyticsLiveProgressEventFlow
|
|
54
|
+
* // status: "CONNECTING" || "TALKING" || "HOLD", // required
|
|
55
|
+
* // statusChangeDate: "STRING_VALUE", // required
|
|
56
|
+
* // startTime: Number("long"), // required
|
|
57
|
+
* // connectTime: Number("long"),
|
|
58
|
+
* // talkTime: Number("long"),
|
|
59
|
+
* // waitTime: Number("long"),
|
|
60
|
+
* // caller: { // CallParticipant
|
|
61
|
+
* // type: "REMOTE" || "LOCAL", // required
|
|
62
|
+
* // phone: "STRING_VALUE",
|
|
63
|
+
* // name: "STRING_VALUE",
|
|
64
|
+
* // company: "STRING_VALUE",
|
|
65
|
+
* // email: "STRING_VALUE",
|
|
66
|
+
* // userId: "STRING_VALUE",
|
|
67
|
+
* // userExtension: "STRING_VALUE",
|
|
68
|
+
* // userDepartment: "STRING_VALUE",
|
|
69
|
+
* // groupId: "STRING_VALUE",
|
|
70
|
+
* // groupName: "STRING_VALUE",
|
|
71
|
+
* // userAgent: "STRING_VALUE",
|
|
72
|
+
* // userDevice: "COLLABORATION_WEB" || "COLLABORATION_IOS" || "COLLABORATION_ANDROID" || "XBEES_WEB" || "XBEES_IOS" || "XBEES_ANDROID" || "WILDIX_PHONE" || "WILDIX_DEVICE" || "UNKNOWN",
|
|
73
|
+
* // role: "CLIENT" || "AGENT", // required
|
|
74
|
+
* // license: "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" || "UNKNOWN",
|
|
89
|
+
* // role: "CLIENT" || "AGENT", // required
|
|
90
|
+
* // license: "STRING_VALUE",
|
|
91
|
+
* // },
|
|
92
|
+
* // service: "STRING_VALUE",
|
|
93
|
+
* // serviceNumber: "STRING_VALUE",
|
|
94
|
+
* // destination: "STRING_VALUE",
|
|
95
|
+
* // direction: "INTERNAL" || "INBOUND" || "OUTBOUND" || "UNDEFINED",
|
|
96
|
+
* // trunkName: "STRING_VALUE",
|
|
97
|
+
* // trunkDirection: "STRING_VALUE",
|
|
98
|
+
* // queueName: "STRING_VALUE",
|
|
99
|
+
* // queueId: "STRING_VALUE",
|
|
100
|
+
* // tags: [ // CallFlowTags
|
|
101
|
+
* // "STRING_VALUE",
|
|
102
|
+
* // ],
|
|
103
|
+
* // flags: [ // CallFlowFlags
|
|
104
|
+
* // "STRING_VALUE",
|
|
105
|
+
* // ],
|
|
106
|
+
* // callerMos: "STRING_VALUE",
|
|
107
|
+
* // calleeMos: "STRING_VALUE",
|
|
108
|
+
* // xhoppersConfId: "STRING_VALUE",
|
|
109
|
+
* // recordings: [ // CallFlowRecordings
|
|
110
|
+
* // "STRING_VALUE",
|
|
111
|
+
* // ],
|
|
112
|
+
* // mergeWith: "STRING_VALUE",
|
|
113
|
+
* // splitReason: "STRING_VALUE",
|
|
114
|
+
* // splitTransferType: "STRING_VALUE",
|
|
115
|
+
* // remotePhone: "STRING_VALUE",
|
|
116
|
+
* // remotePhoneCountryCode: Number("int"),
|
|
117
|
+
* // remotePhoneCountryCodeStr: "STRING_VALUE",
|
|
118
|
+
* // remotePhoneLocation: "STRING_VALUE",
|
|
119
|
+
* // callStatus: "COMPLETED" || "MISSED",
|
|
120
|
+
* // transcriptionStatus: "AVAILABLE" || "UNAVAILABLE", // required
|
|
121
|
+
* // attachment: "STRING_VALUE",
|
|
122
|
+
* // attachmentType: "VOICEMAIL" || "FAX",
|
|
123
|
+
* // attachmentDestinations: [ // CallFlowAttachmentDestinationList
|
|
124
|
+
* // { // CallFlowAttachmentDestination
|
|
125
|
+
* // phone: "STRING_VALUE",
|
|
126
|
+
* // name: "STRING_VALUE",
|
|
127
|
+
* // email: "STRING_VALUE",
|
|
128
|
+
* // userId: "STRING_VALUE",
|
|
129
|
+
* // userExtension: "STRING_VALUE",
|
|
130
|
+
* // userDepartment: "STRING_VALUE",
|
|
131
|
+
* // groupId: "STRING_VALUE",
|
|
132
|
+
* // groupName: "STRING_VALUE",
|
|
133
|
+
* // },
|
|
134
|
+
* // ],
|
|
135
|
+
* // },
|
|
136
|
+
* // ],
|
|
137
|
+
* // },
|
|
138
|
+
* // ],
|
|
139
|
+
* // conferences: [ // GetOngoingConversationsConferencesList // required
|
|
140
|
+
* // { // ConferenceAnalyticsLiveProgressEvent
|
|
141
|
+
* // id: "STRING_VALUE", // required
|
|
142
|
+
* // time: Number("long"), // required
|
|
143
|
+
* // company: "STRING_VALUE", // required
|
|
144
|
+
* // event: "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
|
|
145
|
+
* // start: "STRING_VALUE", // required
|
|
146
|
+
* // subject: "STRING_VALUE", // required
|
|
147
|
+
* // participants: [ // ConferenceParticipantsList // required
|
|
148
|
+
* // { // ConferenceParticipant
|
|
149
|
+
* // type: "EXTERNAL" || "EXTERNAL_DIAL_IN" || "PBX" || "PBX_SIP" || "XBS", // required
|
|
150
|
+
* // role: "CLIENT" || "AGENT",
|
|
151
|
+
* // jid: "STRING_VALUE",
|
|
152
|
+
* // name: "STRING_VALUE",
|
|
153
|
+
* // email: "STRING_VALUE",
|
|
154
|
+
* // phone: "STRING_VALUE",
|
|
155
|
+
* // department: "STRING_VALUE",
|
|
156
|
+
* // company: "STRING_VALUE",
|
|
157
|
+
* // pbxSerial: "STRING_VALUE",
|
|
158
|
+
* // pbxExtension: "STRING_VALUE",
|
|
159
|
+
* // xbsId: "STRING_VALUE",
|
|
160
|
+
* // },
|
|
161
|
+
* // ],
|
|
162
|
+
* // transcriptionStatus: "AVAILABLE" || "UNAVAILABLE", // required
|
|
163
|
+
* // },
|
|
164
|
+
* // ],
|
|
165
|
+
* // chats: [ // GetOngoingConversationsChatsList // required
|
|
166
|
+
* // { // ChatAnalyticsLiveProgressEvent
|
|
167
|
+
* // id: "STRING_VALUE", // required
|
|
168
|
+
* // time: Number("long"), // required
|
|
169
|
+
* // company: "STRING_VALUE", // required
|
|
170
|
+
* // event: "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
|
|
171
|
+
* // start: "STRING_VALUE", // required
|
|
172
|
+
* // channelId: "STRING_VALUE", // required
|
|
173
|
+
* // channelType: "direct" || "group", // required
|
|
174
|
+
* // subject: "STRING_VALUE", // required
|
|
175
|
+
* // service: "STRING_VALUE",
|
|
176
|
+
* // serviceTitle: "STRING_VALUE",
|
|
177
|
+
* // participants: [ // ChatParticipantList // required
|
|
178
|
+
* // { // ChatParticipant
|
|
179
|
+
* // id: "STRING_VALUE", // required
|
|
180
|
+
* // name: "STRING_VALUE",
|
|
181
|
+
* // email: "STRING_VALUE",
|
|
182
|
+
* // phone: "STRING_VALUE",
|
|
183
|
+
* // picture: "STRING_VALUE",
|
|
184
|
+
* // company: "STRING_VALUE",
|
|
185
|
+
* // pbxDomain: "STRING_VALUE",
|
|
186
|
+
* // pbxPort: "STRING_VALUE",
|
|
187
|
+
* // pbxExtension: "STRING_VALUE",
|
|
188
|
+
* // pbxSerial: "STRING_VALUE",
|
|
189
|
+
* // pbxUserId: "STRING_VALUE",
|
|
190
|
+
* // createdAt: "STRING_VALUE",
|
|
191
|
+
* // updatedAt: "STRING_VALUE",
|
|
192
|
+
* // type: "REMOTE" || "LOCAL", // required
|
|
193
|
+
* // role: "CLIENT" || "AGENT", // required
|
|
194
|
+
* // },
|
|
195
|
+
* // ],
|
|
196
|
+
* // agents: [ // ChatUserList // required
|
|
197
|
+
* // { // User
|
|
198
|
+
* // id: "STRING_VALUE", // required
|
|
199
|
+
* // name: "STRING_VALUE",
|
|
200
|
+
* // email: "STRING_VALUE",
|
|
201
|
+
* // phone: "STRING_VALUE",
|
|
202
|
+
* // picture: "STRING_VALUE",
|
|
203
|
+
* // company: "STRING_VALUE",
|
|
204
|
+
* // pbxDomain: "STRING_VALUE",
|
|
205
|
+
* // pbxPort: "STRING_VALUE",
|
|
206
|
+
* // pbxExtension: "STRING_VALUE",
|
|
207
|
+
* // pbxSerial: "STRING_VALUE",
|
|
208
|
+
* // pbxUserId: "STRING_VALUE",
|
|
209
|
+
* // createdAt: "STRING_VALUE",
|
|
210
|
+
* // updatedAt: "STRING_VALUE",
|
|
211
|
+
* // },
|
|
212
|
+
* // ],
|
|
213
|
+
* // agentsCount: Number("int"), // required
|
|
214
|
+
* // customers: [ // required
|
|
215
|
+
* // {
|
|
216
|
+
* // id: "STRING_VALUE", // required
|
|
217
|
+
* // name: "STRING_VALUE",
|
|
218
|
+
* // email: "STRING_VALUE",
|
|
219
|
+
* // phone: "STRING_VALUE",
|
|
220
|
+
* // picture: "STRING_VALUE",
|
|
221
|
+
* // company: "STRING_VALUE",
|
|
222
|
+
* // pbxDomain: "STRING_VALUE",
|
|
223
|
+
* // pbxPort: "STRING_VALUE",
|
|
224
|
+
* // pbxExtension: "STRING_VALUE",
|
|
225
|
+
* // pbxSerial: "STRING_VALUE",
|
|
226
|
+
* // pbxUserId: "STRING_VALUE",
|
|
227
|
+
* // createdAt: "STRING_VALUE",
|
|
228
|
+
* // updatedAt: "STRING_VALUE",
|
|
229
|
+
* // },
|
|
230
|
+
* // ],
|
|
231
|
+
* // customersCount: Number("int"), // required
|
|
232
|
+
* // tags: [ // ChatTags
|
|
233
|
+
* // "sms" || "telephony",
|
|
234
|
+
* // ],
|
|
235
|
+
* // direction: "INTERNAL" || "INBOUND" || "OUTBOUND", // required
|
|
236
|
+
* // status: "WAITFIRSTREPLY" || "WAITREPLYFROMGUEST" || "WAITREPLYFROMAGENT" || "COMPLETED" || "MISSED", // required
|
|
237
|
+
* // },
|
|
238
|
+
* // ],
|
|
239
|
+
* // };
|
|
240
|
+
*
|
|
241
|
+
* ```
|
|
242
|
+
*
|
|
243
|
+
* @param GetOngoingConversationsCommandInput - {@link GetOngoingConversationsCommandInput}
|
|
244
|
+
* @returns {@link GetOngoingConversationsCommandOutput}
|
|
245
|
+
* @see {@link GetOngoingConversationsCommandInput} for command's `input` shape.
|
|
246
|
+
* @see {@link GetOngoingConversationsCommandOutput} for command's `response` shape.
|
|
247
|
+
* @see {@link WdaStreamClientResolvedConfig | config} for WdaStreamClient's `config` shape.
|
|
248
|
+
*
|
|
249
|
+
* @throws {@link ForbiddenException} (client fault)
|
|
250
|
+
*
|
|
251
|
+
* @throws {@link ValidationException} (client fault)
|
|
252
|
+
*
|
|
253
|
+
* @throws {@link WdaStreamServiceException}
|
|
254
|
+
* <p>Base exception class for all service exceptions from WdaStream service.</p>
|
|
255
|
+
*
|
|
256
|
+
*/
|
|
257
|
+
export declare class GetOngoingConversationsCommand extends $Command<GetOngoingConversationsCommandInput, GetOngoingConversationsCommandOutput, WdaStreamClientResolvedConfig> {
|
|
258
|
+
readonly input: GetOngoingConversationsCommandInput;
|
|
259
|
+
/**
|
|
260
|
+
* @public
|
|
261
|
+
*/
|
|
262
|
+
constructor(input: GetOngoingConversationsCommandInput);
|
|
263
|
+
/**
|
|
264
|
+
* @internal
|
|
265
|
+
*/
|
|
266
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: WdaStreamClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetOngoingConversationsCommandInput, GetOngoingConversationsCommandOutput>;
|
|
267
|
+
/**
|
|
268
|
+
* @internal
|
|
269
|
+
*/
|
|
270
|
+
private serialize;
|
|
271
|
+
/**
|
|
272
|
+
* @internal
|
|
273
|
+
*/
|
|
274
|
+
private deserialize;
|
|
275
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { HttpHandlerExtensionConfiguration } from "@smithy/protocol-http";
|
|
2
|
+
import { DefaultExtensionConfiguration } from "@smithy/types";
|
|
3
|
+
/**
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
6
|
+
export interface WdaStreamExtensionConfiguration extends HttpHandlerExtensionConfiguration, DefaultExtensionConfiguration {
|
|
7
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@smithy/smithy-client";
|
|
2
|
+
export { __ServiceException, __ServiceExceptionOptions };
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
*
|
|
6
|
+
* Base exception class for all service exceptions from WdaStream service.
|
|
7
|
+
*/
|
|
8
|
+
export declare class WdaStreamServiceException extends __ServiceException {
|
|
9
|
+
/**
|
|
10
|
+
* @internal
|
|
11
|
+
*/
|
|
12
|
+
constructor(options: __ServiceExceptionOptions);
|
|
13
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./models_0";
|