@wildix/wda-history-client 1.0.2 → 1.0.3
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/models/models_0.js +134 -1
- package/dist-cjs/protocols/Aws_restJson1.js +125 -4
- package/dist-es/models/models_0.js +128 -0
- package/dist-es/protocols/Aws_restJson1.js +127 -6
- package/dist-types/commands/GetCallCommand.d.ts +105 -1
- package/dist-types/commands/GetCallTranscriptionCommand.d.ts +29 -1
- package/dist-types/commands/GetConferenceCommand.d.ts +48 -1
- package/dist-types/commands/GetConferenceTranscriptionCommand.d.ts +29 -1
- package/dist-types/models/models_0.d.ts +443 -0
- package/package.json +1 -1
|
@@ -1,7 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ValidationException = void 0;
|
|
3
|
+
exports.ConferenceTranscriptionNotFoundException = exports.ConferenceTranscriptionStatus = exports.ConferenceParticipantType = exports.ConferenceParticipantRole = exports.ConferenceDirection = exports.ConferenceNotFoundException = exports.CallTranscriptionSpeaker = exports.CallTranscriptionNotFoundException = exports.License = exports.CallFlowTranscriptionStatus = exports.CallDirection = exports.ConversationStatus = exports.CallDevice = exports.CallParticipantType = exports.CallParticipantRole = exports.CallFlowAttachmentType = exports.CallEndBy = exports.CallNotFoundException = exports.ValidationException = exports.ForbiddenException = void 0;
|
|
4
4
|
const WdaHistoryServiceException_1 = require("./WdaHistoryServiceException");
|
|
5
|
+
class ForbiddenException extends WdaHistoryServiceException_1.WdaHistoryServiceException {
|
|
6
|
+
constructor(opts) {
|
|
7
|
+
super({
|
|
8
|
+
name: "ForbiddenException",
|
|
9
|
+
$fault: "client",
|
|
10
|
+
...opts
|
|
11
|
+
});
|
|
12
|
+
this.name = "ForbiddenException";
|
|
13
|
+
this.$fault = "client";
|
|
14
|
+
Object.setPrototypeOf(this, ForbiddenException.prototype);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
exports.ForbiddenException = ForbiddenException;
|
|
5
18
|
class ValidationException extends WdaHistoryServiceException_1.WdaHistoryServiceException {
|
|
6
19
|
constructor(opts) {
|
|
7
20
|
super({
|
|
@@ -15,3 +28,123 @@ class ValidationException extends WdaHistoryServiceException_1.WdaHistoryService
|
|
|
15
28
|
}
|
|
16
29
|
}
|
|
17
30
|
exports.ValidationException = ValidationException;
|
|
31
|
+
class CallNotFoundException extends WdaHistoryServiceException_1.WdaHistoryServiceException {
|
|
32
|
+
constructor(opts) {
|
|
33
|
+
super({
|
|
34
|
+
name: "CallNotFoundException",
|
|
35
|
+
$fault: "client",
|
|
36
|
+
...opts
|
|
37
|
+
});
|
|
38
|
+
this.name = "CallNotFoundException";
|
|
39
|
+
this.$fault = "client";
|
|
40
|
+
Object.setPrototypeOf(this, CallNotFoundException.prototype);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
exports.CallNotFoundException = CallNotFoundException;
|
|
44
|
+
exports.CallEndBy = {
|
|
45
|
+
CALLEE: "CALLEE",
|
|
46
|
+
CALLER: "CALLER",
|
|
47
|
+
};
|
|
48
|
+
exports.CallFlowAttachmentType = {
|
|
49
|
+
FAX: "FAX",
|
|
50
|
+
VOICEMAIL: "VOICEMAIL",
|
|
51
|
+
};
|
|
52
|
+
exports.CallParticipantRole = {
|
|
53
|
+
AGENT: "AGENT",
|
|
54
|
+
CLIENT: "CLIENT",
|
|
55
|
+
};
|
|
56
|
+
exports.CallParticipantType = {
|
|
57
|
+
LOCAL: "LOCAL",
|
|
58
|
+
REMOTE: "REMOTE",
|
|
59
|
+
};
|
|
60
|
+
exports.CallDevice = {
|
|
61
|
+
COLLABORATION_ANDROID: "COLLABORATION_ANDROID",
|
|
62
|
+
COLLABORATION_IOS: "COLLABORATION_IOS",
|
|
63
|
+
COLLABORATION_WEB: "COLLABORATION_WEB",
|
|
64
|
+
UNKNOWN: "UNKNOWN",
|
|
65
|
+
WILDIX_DEVICE: "WILDIX_DEVICE",
|
|
66
|
+
WILDIX_PHONE: "WILDIX_PHONE",
|
|
67
|
+
XBEES_ANDROID: "XBEES_ANDROID",
|
|
68
|
+
XBEES_IOS: "XBEES_IOS",
|
|
69
|
+
XBEES_WEB: "XBEES_WEB",
|
|
70
|
+
};
|
|
71
|
+
exports.ConversationStatus = {
|
|
72
|
+
COMPLETED: "COMPLETED",
|
|
73
|
+
MISSED: "MISSED",
|
|
74
|
+
};
|
|
75
|
+
exports.CallDirection = {
|
|
76
|
+
INBOUND: "INBOUND",
|
|
77
|
+
INTERNAL: "INTERNAL",
|
|
78
|
+
OUTBOUND: "OUTBOUND",
|
|
79
|
+
UNDEFINED: "UNDEFINED",
|
|
80
|
+
};
|
|
81
|
+
exports.CallFlowTranscriptionStatus = {
|
|
82
|
+
AVAILABLE: "AVAILABLE",
|
|
83
|
+
UNAVAILABLE: "UNAVAILABLE",
|
|
84
|
+
};
|
|
85
|
+
exports.License = {
|
|
86
|
+
XBEES: "x-bees",
|
|
87
|
+
};
|
|
88
|
+
class CallTranscriptionNotFoundException extends WdaHistoryServiceException_1.WdaHistoryServiceException {
|
|
89
|
+
constructor(opts) {
|
|
90
|
+
super({
|
|
91
|
+
name: "CallTranscriptionNotFoundException",
|
|
92
|
+
$fault: "client",
|
|
93
|
+
...opts
|
|
94
|
+
});
|
|
95
|
+
this.name = "CallTranscriptionNotFoundException";
|
|
96
|
+
this.$fault = "client";
|
|
97
|
+
Object.setPrototypeOf(this, CallTranscriptionNotFoundException.prototype);
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
exports.CallTranscriptionNotFoundException = CallTranscriptionNotFoundException;
|
|
101
|
+
exports.CallTranscriptionSpeaker = {
|
|
102
|
+
CALLEE: "callee",
|
|
103
|
+
CALLER: "caller",
|
|
104
|
+
};
|
|
105
|
+
class ConferenceNotFoundException extends WdaHistoryServiceException_1.WdaHistoryServiceException {
|
|
106
|
+
constructor(opts) {
|
|
107
|
+
super({
|
|
108
|
+
name: "ConferenceNotFoundException",
|
|
109
|
+
$fault: "client",
|
|
110
|
+
...opts
|
|
111
|
+
});
|
|
112
|
+
this.name = "ConferenceNotFoundException";
|
|
113
|
+
this.$fault = "client";
|
|
114
|
+
Object.setPrototypeOf(this, ConferenceNotFoundException.prototype);
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
exports.ConferenceNotFoundException = ConferenceNotFoundException;
|
|
118
|
+
exports.ConferenceDirection = {
|
|
119
|
+
INBOUND: "INBOUND",
|
|
120
|
+
INTERNAL: "INTERNAL",
|
|
121
|
+
OUTBOUND: "OUTBOUND",
|
|
122
|
+
};
|
|
123
|
+
exports.ConferenceParticipantRole = {
|
|
124
|
+
AGENT: "AGENT",
|
|
125
|
+
CLIENT: "CLIENT",
|
|
126
|
+
};
|
|
127
|
+
exports.ConferenceParticipantType = {
|
|
128
|
+
EXTERNAL: "EXTERNAL",
|
|
129
|
+
EXTERNAL_DIAL_IN: "EXTERNAL_DIAL_IN",
|
|
130
|
+
PBX: "PBX",
|
|
131
|
+
PBX_SIP: "PBX_SIP",
|
|
132
|
+
XBS: "XBS",
|
|
133
|
+
};
|
|
134
|
+
exports.ConferenceTranscriptionStatus = {
|
|
135
|
+
AVAILABLE: "AVAILABLE",
|
|
136
|
+
UNAVAILABLE: "UNAVAILABLE",
|
|
137
|
+
};
|
|
138
|
+
class ConferenceTranscriptionNotFoundException extends WdaHistoryServiceException_1.WdaHistoryServiceException {
|
|
139
|
+
constructor(opts) {
|
|
140
|
+
super({
|
|
141
|
+
name: "ConferenceTranscriptionNotFoundException",
|
|
142
|
+
$fault: "client",
|
|
143
|
+
...opts
|
|
144
|
+
});
|
|
145
|
+
this.name = "ConferenceTranscriptionNotFoundException";
|
|
146
|
+
this.$fault = "client";
|
|
147
|
+
Object.setPrototypeOf(this, ConferenceTranscriptionNotFoundException.prototype);
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
exports.ConferenceTranscriptionNotFoundException = ConferenceTranscriptionNotFoundException;
|
|
@@ -10,6 +10,9 @@ const se_GetCallCommand = async (input, context) => {
|
|
|
10
10
|
const headers = {};
|
|
11
11
|
let resolvedPath = `${basePath?.endsWith('/') ? basePath.slice(0, -1) : (basePath || '')}` + "/v2/history/calls/{callId}";
|
|
12
12
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, 'callId', () => input.callId, '{callId}', false);
|
|
13
|
+
const query = (0, smithy_client_1.map)({
|
|
14
|
+
"company": [, input.company],
|
|
15
|
+
});
|
|
13
16
|
let body;
|
|
14
17
|
return new protocol_http_1.HttpRequest({
|
|
15
18
|
protocol,
|
|
@@ -18,6 +21,7 @@ const se_GetCallCommand = async (input, context) => {
|
|
|
18
21
|
method: "GET",
|
|
19
22
|
headers,
|
|
20
23
|
path: resolvedPath,
|
|
24
|
+
query,
|
|
21
25
|
body,
|
|
22
26
|
});
|
|
23
27
|
};
|
|
@@ -27,6 +31,9 @@ const se_GetCallTranscriptionCommand = async (input, context) => {
|
|
|
27
31
|
const headers = {};
|
|
28
32
|
let resolvedPath = `${basePath?.endsWith('/') ? basePath.slice(0, -1) : (basePath || '')}` + "/v2/history/calls/{callId}/transcription";
|
|
29
33
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, 'callId', () => input.callId, '{callId}', false);
|
|
34
|
+
const query = (0, smithy_client_1.map)({
|
|
35
|
+
"company": [, input.company],
|
|
36
|
+
});
|
|
30
37
|
let body;
|
|
31
38
|
return new protocol_http_1.HttpRequest({
|
|
32
39
|
protocol,
|
|
@@ -35,6 +42,7 @@ const se_GetCallTranscriptionCommand = async (input, context) => {
|
|
|
35
42
|
method: "GET",
|
|
36
43
|
headers,
|
|
37
44
|
path: resolvedPath,
|
|
45
|
+
query,
|
|
38
46
|
body,
|
|
39
47
|
});
|
|
40
48
|
};
|
|
@@ -44,6 +52,9 @@ const se_GetConferenceCommand = async (input, context) => {
|
|
|
44
52
|
const headers = {};
|
|
45
53
|
let resolvedPath = `${basePath?.endsWith('/') ? basePath.slice(0, -1) : (basePath || '')}` + "/v2/history/conferences/{conferenceId}";
|
|
46
54
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, 'conferenceId', () => input.conferenceId, '{conferenceId}', false);
|
|
55
|
+
const query = (0, smithy_client_1.map)({
|
|
56
|
+
"company": [, input.company],
|
|
57
|
+
});
|
|
47
58
|
let body;
|
|
48
59
|
return new protocol_http_1.HttpRequest({
|
|
49
60
|
protocol,
|
|
@@ -52,6 +63,7 @@ const se_GetConferenceCommand = async (input, context) => {
|
|
|
52
63
|
method: "GET",
|
|
53
64
|
headers,
|
|
54
65
|
path: resolvedPath,
|
|
66
|
+
query,
|
|
55
67
|
body,
|
|
56
68
|
});
|
|
57
69
|
};
|
|
@@ -61,6 +73,9 @@ const se_GetConferenceTranscriptionCommand = async (input, context) => {
|
|
|
61
73
|
const headers = {};
|
|
62
74
|
let resolvedPath = `${basePath?.endsWith('/') ? basePath.slice(0, -1) : (basePath || '')}` + "/v2/history/conferences/{conferenceId}/transcription";
|
|
63
75
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, 'conferenceId', () => input.conferenceId, '{conferenceId}', false);
|
|
76
|
+
const query = (0, smithy_client_1.map)({
|
|
77
|
+
"company": [, input.company],
|
|
78
|
+
});
|
|
64
79
|
let body;
|
|
65
80
|
return new protocol_http_1.HttpRequest({
|
|
66
81
|
protocol,
|
|
@@ -69,6 +84,7 @@ const se_GetConferenceTranscriptionCommand = async (input, context) => {
|
|
|
69
84
|
method: "GET",
|
|
70
85
|
headers,
|
|
71
86
|
path: resolvedPath,
|
|
87
|
+
query,
|
|
72
88
|
body,
|
|
73
89
|
});
|
|
74
90
|
};
|
|
@@ -80,7 +96,11 @@ const de_GetCallCommand = async (output, context) => {
|
|
|
80
96
|
const contents = (0, smithy_client_1.map)({
|
|
81
97
|
$metadata: deserializeMetadata(output),
|
|
82
98
|
});
|
|
83
|
-
|
|
99
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await parseBody(output.body, context))), "body");
|
|
100
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
101
|
+
'call': smithy_client_1._json,
|
|
102
|
+
});
|
|
103
|
+
Object.assign(contents, doc);
|
|
84
104
|
return contents;
|
|
85
105
|
};
|
|
86
106
|
exports.de_GetCallCommand = de_GetCallCommand;
|
|
@@ -91,6 +111,12 @@ const de_GetCallCommandError = async (output, context) => {
|
|
|
91
111
|
};
|
|
92
112
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
93
113
|
switch (errorCode) {
|
|
114
|
+
case "CallNotFoundException":
|
|
115
|
+
case "wildix.wda.history#CallNotFoundException":
|
|
116
|
+
throw await de_CallNotFoundExceptionRes(parsedOutput, context);
|
|
117
|
+
case "ForbiddenException":
|
|
118
|
+
case "smithy.framework#ForbiddenException":
|
|
119
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
94
120
|
case "ValidationException":
|
|
95
121
|
case "smithy.framework#ValidationException":
|
|
96
122
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
@@ -110,7 +136,11 @@ const de_GetCallTranscriptionCommand = async (output, context) => {
|
|
|
110
136
|
const contents = (0, smithy_client_1.map)({
|
|
111
137
|
$metadata: deserializeMetadata(output),
|
|
112
138
|
});
|
|
113
|
-
|
|
139
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await parseBody(output.body, context))), "body");
|
|
140
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
141
|
+
'transcription': smithy_client_1._json,
|
|
142
|
+
});
|
|
143
|
+
Object.assign(contents, doc);
|
|
114
144
|
return contents;
|
|
115
145
|
};
|
|
116
146
|
exports.de_GetCallTranscriptionCommand = de_GetCallTranscriptionCommand;
|
|
@@ -121,6 +151,12 @@ const de_GetCallTranscriptionCommandError = async (output, context) => {
|
|
|
121
151
|
};
|
|
122
152
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
123
153
|
switch (errorCode) {
|
|
154
|
+
case "CallTranscriptionNotFoundException":
|
|
155
|
+
case "wildix.wda.history#CallTranscriptionNotFoundException":
|
|
156
|
+
throw await de_CallTranscriptionNotFoundExceptionRes(parsedOutput, context);
|
|
157
|
+
case "ForbiddenException":
|
|
158
|
+
case "smithy.framework#ForbiddenException":
|
|
159
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
124
160
|
case "ValidationException":
|
|
125
161
|
case "smithy.framework#ValidationException":
|
|
126
162
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
@@ -140,7 +176,11 @@ const de_GetConferenceCommand = async (output, context) => {
|
|
|
140
176
|
const contents = (0, smithy_client_1.map)({
|
|
141
177
|
$metadata: deserializeMetadata(output),
|
|
142
178
|
});
|
|
143
|
-
|
|
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
|
+
'conference': smithy_client_1._json,
|
|
182
|
+
});
|
|
183
|
+
Object.assign(contents, doc);
|
|
144
184
|
return contents;
|
|
145
185
|
};
|
|
146
186
|
exports.de_GetConferenceCommand = de_GetConferenceCommand;
|
|
@@ -151,6 +191,12 @@ const de_GetConferenceCommandError = async (output, context) => {
|
|
|
151
191
|
};
|
|
152
192
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
153
193
|
switch (errorCode) {
|
|
194
|
+
case "ConferenceNotFoundException":
|
|
195
|
+
case "wildix.wda.history#ConferenceNotFoundException":
|
|
196
|
+
throw await de_ConferenceNotFoundExceptionRes(parsedOutput, context);
|
|
197
|
+
case "ForbiddenException":
|
|
198
|
+
case "smithy.framework#ForbiddenException":
|
|
199
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
154
200
|
case "ValidationException":
|
|
155
201
|
case "smithy.framework#ValidationException":
|
|
156
202
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
@@ -170,7 +216,11 @@ const de_GetConferenceTranscriptionCommand = async (output, context) => {
|
|
|
170
216
|
const contents = (0, smithy_client_1.map)({
|
|
171
217
|
$metadata: deserializeMetadata(output),
|
|
172
218
|
});
|
|
173
|
-
|
|
219
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await parseBody(output.body, context))), "body");
|
|
220
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
221
|
+
'transcription': smithy_client_1._json,
|
|
222
|
+
});
|
|
223
|
+
Object.assign(contents, doc);
|
|
174
224
|
return contents;
|
|
175
225
|
};
|
|
176
226
|
exports.de_GetConferenceTranscriptionCommand = de_GetConferenceTranscriptionCommand;
|
|
@@ -181,6 +231,12 @@ const de_GetConferenceTranscriptionCommandError = async (output, context) => {
|
|
|
181
231
|
};
|
|
182
232
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
183
233
|
switch (errorCode) {
|
|
234
|
+
case "ConferenceTranscriptionNotFoundException":
|
|
235
|
+
case "wildix.wda.history#ConferenceTranscriptionNotFoundException":
|
|
236
|
+
throw await de_ConferenceTranscriptionNotFoundExceptionRes(parsedOutput, context);
|
|
237
|
+
case "ForbiddenException":
|
|
238
|
+
case "smithy.framework#ForbiddenException":
|
|
239
|
+
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
184
240
|
case "ValidationException":
|
|
185
241
|
case "smithy.framework#ValidationException":
|
|
186
242
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
@@ -194,6 +250,19 @@ const de_GetConferenceTranscriptionCommandError = async (output, context) => {
|
|
|
194
250
|
}
|
|
195
251
|
};
|
|
196
252
|
const throwDefaultError = (0, smithy_client_1.withBaseException)(WdaHistoryServiceException_1.WdaHistoryServiceException);
|
|
253
|
+
const de_ForbiddenExceptionRes = async (parsedOutput, context) => {
|
|
254
|
+
const contents = (0, smithy_client_1.map)({});
|
|
255
|
+
const data = parsedOutput.body;
|
|
256
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
257
|
+
'message': smithy_client_1.expectString,
|
|
258
|
+
});
|
|
259
|
+
Object.assign(contents, doc);
|
|
260
|
+
const exception = new models_0_1.ForbiddenException({
|
|
261
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
262
|
+
...contents
|
|
263
|
+
});
|
|
264
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
265
|
+
};
|
|
197
266
|
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
198
267
|
const contents = (0, smithy_client_1.map)({});
|
|
199
268
|
const data = parsedOutput.body;
|
|
@@ -207,6 +276,58 @@ const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
|
207
276
|
});
|
|
208
277
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
209
278
|
};
|
|
279
|
+
const de_CallNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
280
|
+
const contents = (0, smithy_client_1.map)({});
|
|
281
|
+
const data = parsedOutput.body;
|
|
282
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
283
|
+
'message': smithy_client_1.expectString,
|
|
284
|
+
});
|
|
285
|
+
Object.assign(contents, doc);
|
|
286
|
+
const exception = new models_0_1.CallNotFoundException({
|
|
287
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
288
|
+
...contents
|
|
289
|
+
});
|
|
290
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
291
|
+
};
|
|
292
|
+
const de_CallTranscriptionNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
293
|
+
const contents = (0, smithy_client_1.map)({});
|
|
294
|
+
const data = parsedOutput.body;
|
|
295
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
296
|
+
'message': smithy_client_1.expectString,
|
|
297
|
+
});
|
|
298
|
+
Object.assign(contents, doc);
|
|
299
|
+
const exception = new models_0_1.CallTranscriptionNotFoundException({
|
|
300
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
301
|
+
...contents
|
|
302
|
+
});
|
|
303
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
304
|
+
};
|
|
305
|
+
const de_ConferenceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
306
|
+
const contents = (0, smithy_client_1.map)({});
|
|
307
|
+
const data = parsedOutput.body;
|
|
308
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
309
|
+
'message': smithy_client_1.expectString,
|
|
310
|
+
});
|
|
311
|
+
Object.assign(contents, doc);
|
|
312
|
+
const exception = new models_0_1.ConferenceNotFoundException({
|
|
313
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
314
|
+
...contents
|
|
315
|
+
});
|
|
316
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
317
|
+
};
|
|
318
|
+
const de_ConferenceTranscriptionNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
319
|
+
const contents = (0, smithy_client_1.map)({});
|
|
320
|
+
const data = parsedOutput.body;
|
|
321
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
322
|
+
'message': smithy_client_1.expectString,
|
|
323
|
+
});
|
|
324
|
+
Object.assign(contents, doc);
|
|
325
|
+
const exception = new models_0_1.ConferenceTranscriptionNotFoundException({
|
|
326
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
327
|
+
...contents
|
|
328
|
+
});
|
|
329
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
330
|
+
};
|
|
210
331
|
const deserializeMetadata = (output) => ({
|
|
211
332
|
httpStatusCode: output.statusCode,
|
|
212
333
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
@@ -1,4 +1,16 @@
|
|
|
1
1
|
import { WdaHistoryServiceException as __BaseException } from "./WdaHistoryServiceException";
|
|
2
|
+
export class ForbiddenException extends __BaseException {
|
|
3
|
+
constructor(opts) {
|
|
4
|
+
super({
|
|
5
|
+
name: "ForbiddenException",
|
|
6
|
+
$fault: "client",
|
|
7
|
+
...opts
|
|
8
|
+
});
|
|
9
|
+
this.name = "ForbiddenException";
|
|
10
|
+
this.$fault = "client";
|
|
11
|
+
Object.setPrototypeOf(this, ForbiddenException.prototype);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
2
14
|
export class ValidationException extends __BaseException {
|
|
3
15
|
constructor(opts) {
|
|
4
16
|
super({
|
|
@@ -11,3 +23,119 @@ export class ValidationException extends __BaseException {
|
|
|
11
23
|
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
12
24
|
}
|
|
13
25
|
}
|
|
26
|
+
export class CallNotFoundException extends __BaseException {
|
|
27
|
+
constructor(opts) {
|
|
28
|
+
super({
|
|
29
|
+
name: "CallNotFoundException",
|
|
30
|
+
$fault: "client",
|
|
31
|
+
...opts
|
|
32
|
+
});
|
|
33
|
+
this.name = "CallNotFoundException";
|
|
34
|
+
this.$fault = "client";
|
|
35
|
+
Object.setPrototypeOf(this, CallNotFoundException.prototype);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
export const CallEndBy = {
|
|
39
|
+
CALLEE: "CALLEE",
|
|
40
|
+
CALLER: "CALLER",
|
|
41
|
+
};
|
|
42
|
+
export const CallFlowAttachmentType = {
|
|
43
|
+
FAX: "FAX",
|
|
44
|
+
VOICEMAIL: "VOICEMAIL",
|
|
45
|
+
};
|
|
46
|
+
export const CallParticipantRole = {
|
|
47
|
+
AGENT: "AGENT",
|
|
48
|
+
CLIENT: "CLIENT",
|
|
49
|
+
};
|
|
50
|
+
export const CallParticipantType = {
|
|
51
|
+
LOCAL: "LOCAL",
|
|
52
|
+
REMOTE: "REMOTE",
|
|
53
|
+
};
|
|
54
|
+
export const CallDevice = {
|
|
55
|
+
COLLABORATION_ANDROID: "COLLABORATION_ANDROID",
|
|
56
|
+
COLLABORATION_IOS: "COLLABORATION_IOS",
|
|
57
|
+
COLLABORATION_WEB: "COLLABORATION_WEB",
|
|
58
|
+
UNKNOWN: "UNKNOWN",
|
|
59
|
+
WILDIX_DEVICE: "WILDIX_DEVICE",
|
|
60
|
+
WILDIX_PHONE: "WILDIX_PHONE",
|
|
61
|
+
XBEES_ANDROID: "XBEES_ANDROID",
|
|
62
|
+
XBEES_IOS: "XBEES_IOS",
|
|
63
|
+
XBEES_WEB: "XBEES_WEB",
|
|
64
|
+
};
|
|
65
|
+
export const ConversationStatus = {
|
|
66
|
+
COMPLETED: "COMPLETED",
|
|
67
|
+
MISSED: "MISSED",
|
|
68
|
+
};
|
|
69
|
+
export const CallDirection = {
|
|
70
|
+
INBOUND: "INBOUND",
|
|
71
|
+
INTERNAL: "INTERNAL",
|
|
72
|
+
OUTBOUND: "OUTBOUND",
|
|
73
|
+
UNDEFINED: "UNDEFINED",
|
|
74
|
+
};
|
|
75
|
+
export const CallFlowTranscriptionStatus = {
|
|
76
|
+
AVAILABLE: "AVAILABLE",
|
|
77
|
+
UNAVAILABLE: "UNAVAILABLE",
|
|
78
|
+
};
|
|
79
|
+
export const License = {
|
|
80
|
+
XBEES: "x-bees",
|
|
81
|
+
};
|
|
82
|
+
export class CallTranscriptionNotFoundException extends __BaseException {
|
|
83
|
+
constructor(opts) {
|
|
84
|
+
super({
|
|
85
|
+
name: "CallTranscriptionNotFoundException",
|
|
86
|
+
$fault: "client",
|
|
87
|
+
...opts
|
|
88
|
+
});
|
|
89
|
+
this.name = "CallTranscriptionNotFoundException";
|
|
90
|
+
this.$fault = "client";
|
|
91
|
+
Object.setPrototypeOf(this, CallTranscriptionNotFoundException.prototype);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
export const CallTranscriptionSpeaker = {
|
|
95
|
+
CALLEE: "callee",
|
|
96
|
+
CALLER: "caller",
|
|
97
|
+
};
|
|
98
|
+
export class ConferenceNotFoundException extends __BaseException {
|
|
99
|
+
constructor(opts) {
|
|
100
|
+
super({
|
|
101
|
+
name: "ConferenceNotFoundException",
|
|
102
|
+
$fault: "client",
|
|
103
|
+
...opts
|
|
104
|
+
});
|
|
105
|
+
this.name = "ConferenceNotFoundException";
|
|
106
|
+
this.$fault = "client";
|
|
107
|
+
Object.setPrototypeOf(this, ConferenceNotFoundException.prototype);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
export const ConferenceDirection = {
|
|
111
|
+
INBOUND: "INBOUND",
|
|
112
|
+
INTERNAL: "INTERNAL",
|
|
113
|
+
OUTBOUND: "OUTBOUND",
|
|
114
|
+
};
|
|
115
|
+
export const ConferenceParticipantRole = {
|
|
116
|
+
AGENT: "AGENT",
|
|
117
|
+
CLIENT: "CLIENT",
|
|
118
|
+
};
|
|
119
|
+
export const ConferenceParticipantType = {
|
|
120
|
+
EXTERNAL: "EXTERNAL",
|
|
121
|
+
EXTERNAL_DIAL_IN: "EXTERNAL_DIAL_IN",
|
|
122
|
+
PBX: "PBX",
|
|
123
|
+
PBX_SIP: "PBX_SIP",
|
|
124
|
+
XBS: "XBS",
|
|
125
|
+
};
|
|
126
|
+
export const ConferenceTranscriptionStatus = {
|
|
127
|
+
AVAILABLE: "AVAILABLE",
|
|
128
|
+
UNAVAILABLE: "UNAVAILABLE",
|
|
129
|
+
};
|
|
130
|
+
export class ConferenceTranscriptionNotFoundException extends __BaseException {
|
|
131
|
+
constructor(opts) {
|
|
132
|
+
super({
|
|
133
|
+
name: "ConferenceTranscriptionNotFoundException",
|
|
134
|
+
$fault: "client",
|
|
135
|
+
...opts
|
|
136
|
+
});
|
|
137
|
+
this.name = "ConferenceTranscriptionNotFoundException";
|
|
138
|
+
this.$fault = "client";
|
|
139
|
+
Object.setPrototypeOf(this, ConferenceTranscriptionNotFoundException.prototype);
|
|
140
|
+
}
|
|
141
|
+
}
|