@wildix/wda-history-client 1.2.11 → 1.2.12
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 +8 -6
- package/dist-es/models/models_0.js +7 -5
- package/dist-types/commands/GetCallCommand.d.ts +23 -26
- package/dist-types/commands/QueryConversationsCommand.d.ts +23 -26
- package/dist-types/commands/QueryUserCallsCommand.d.ts +23 -26
- package/dist-types/commands/UpdateCallCommand.d.ts +23 -26
- package/dist-types/models/models_0.d.ts +54 -14
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ConversationUserDirection = exports.ConversationFlag = exports.ConversationDirection = exports.Conversation = exports.ConferenceTranscriptionNotFoundException = exports.ConferenceTranscriptionStatus = exports.ConferenceParticipantType = exports.ConferenceParticipantRole = exports.PbxLicenseType = exports.ConferenceDirection = exports.ConferenceNotFoundException = exports.MessageWhatsAppStatus = exports.MessageType = exports.MessageSmsStatus = exports.Element = exports.ActionElement = exports.ButtonVariant = exports.ButtonHandler = exports.ChatTranscriptionNotFoundException = exports.ChatTag = exports.ChatStatus = exports.ChatParticipantType = exports.ChatParticipantRole = exports.ChatDirection = exports.ChannelWhatsAppStatus = exports.ChannelContextSource = exports.ChannelContextEventAttendeeStatus = exports.ChannelType = exports.ChannelAccess = exports.ChatNotFoundException = exports.CallTranscriptionNotFoundException = exports.CallTranscriptionSpeaker = exports.RecordType = exports.
|
|
3
|
+
exports.ConversationUserDirection = exports.ConversationFlag = exports.ConversationDirection = exports.Conversation = exports.ConferenceTranscriptionNotFoundException = exports.ConferenceTranscriptionStatus = exports.ConferenceParticipantType = exports.ConferenceParticipantRole = exports.PbxLicenseType = exports.ConferenceDirection = exports.ConferenceNotFoundException = exports.MessageWhatsAppStatus = exports.MessageType = exports.MessageSmsStatus = exports.Element = exports.ActionElement = exports.ButtonVariant = exports.ButtonHandler = exports.ChatTranscriptionNotFoundException = exports.ChatTag = exports.ChatStatus = exports.ChatParticipantType = exports.ChatParticipantRole = exports.ChatDirection = exports.ChannelWhatsAppStatus = exports.ChannelContextSource = exports.ChannelContextEventAttendeeStatus = exports.ChannelType = exports.ChannelAccess = exports.ChatNotFoundException = exports.CallTranscriptionNotFoundException = exports.CallTranscriptionSpeaker = exports.RecordType = exports.License = exports.CallDevice = exports.CallParticipantType = exports.CallParticipantRole = exports.CallFlowAttachmentType = exports.CallFlowAttachment = exports.CallFlowTranscriptionStatus = exports.CallRecordPauseReason = exports.CallFlowAttachmentStatus = exports.CallRecordOwner = exports.CallNotFoundException = exports.ConversationStatus = exports.CallDirection = exports.ValidationException = exports.ForbiddenException = void 0;
|
|
4
4
|
const WdaHistoryServiceException_1 = require("./WdaHistoryServiceException");
|
|
5
5
|
class ForbiddenException extends WdaHistoryServiceException_1.WdaHistoryServiceException {
|
|
6
6
|
name = "ForbiddenException";
|
|
@@ -64,6 +64,11 @@ exports.CallRecordPauseReason = {
|
|
|
64
64
|
HOLD: "hold",
|
|
65
65
|
PAUSE: "pause",
|
|
66
66
|
};
|
|
67
|
+
exports.CallFlowTranscriptionStatus = {
|
|
68
|
+
AVAILABLE: "AVAILABLE",
|
|
69
|
+
POST_TRANSCRIPTION: "POST_TRANSCRIPTION",
|
|
70
|
+
UNAVAILABLE: "UNAVAILABLE",
|
|
71
|
+
};
|
|
67
72
|
var CallFlowAttachment;
|
|
68
73
|
(function (CallFlowAttachment) {
|
|
69
74
|
CallFlowAttachment.visit = (value, visitor) => {
|
|
@@ -73,6 +78,8 @@ var CallFlowAttachment;
|
|
|
73
78
|
return visitor.fax(value.fax);
|
|
74
79
|
if (value.voicemail !== undefined)
|
|
75
80
|
return visitor.voicemail(value.voicemail);
|
|
81
|
+
if (value.transcription !== undefined)
|
|
82
|
+
return visitor.transcription(value.transcription);
|
|
76
83
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
77
84
|
};
|
|
78
85
|
})(CallFlowAttachment || (exports.CallFlowAttachment = CallFlowAttachment = {}));
|
|
@@ -104,11 +111,6 @@ exports.License = {
|
|
|
104
111
|
UC: "uc",
|
|
105
112
|
XBEES: "x-bees",
|
|
106
113
|
};
|
|
107
|
-
exports.CallFlowTranscriptionStatus = {
|
|
108
|
-
AVAILABLE: "AVAILABLE",
|
|
109
|
-
POST_TRANSCRIPTION: "POST_TRANSCRIPTION",
|
|
110
|
-
UNAVAILABLE: "UNAVAILABLE",
|
|
111
|
-
};
|
|
112
114
|
exports.RecordType = {
|
|
113
115
|
CALL: "call",
|
|
114
116
|
CALL_TRANSCRIPTION: "call_transcription",
|
|
@@ -58,6 +58,11 @@ export const CallRecordPauseReason = {
|
|
|
58
58
|
HOLD: "hold",
|
|
59
59
|
PAUSE: "pause",
|
|
60
60
|
};
|
|
61
|
+
export const CallFlowTranscriptionStatus = {
|
|
62
|
+
AVAILABLE: "AVAILABLE",
|
|
63
|
+
POST_TRANSCRIPTION: "POST_TRANSCRIPTION",
|
|
64
|
+
UNAVAILABLE: "UNAVAILABLE",
|
|
65
|
+
};
|
|
61
66
|
export var CallFlowAttachment;
|
|
62
67
|
(function (CallFlowAttachment) {
|
|
63
68
|
CallFlowAttachment.visit = (value, visitor) => {
|
|
@@ -67,6 +72,8 @@ export var CallFlowAttachment;
|
|
|
67
72
|
return visitor.fax(value.fax);
|
|
68
73
|
if (value.voicemail !== undefined)
|
|
69
74
|
return visitor.voicemail(value.voicemail);
|
|
75
|
+
if (value.transcription !== undefined)
|
|
76
|
+
return visitor.transcription(value.transcription);
|
|
70
77
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
71
78
|
};
|
|
72
79
|
})(CallFlowAttachment || (CallFlowAttachment = {}));
|
|
@@ -98,11 +105,6 @@ export const License = {
|
|
|
98
105
|
UC: "uc",
|
|
99
106
|
XBEES: "x-bees",
|
|
100
107
|
};
|
|
101
|
-
export const CallFlowTranscriptionStatus = {
|
|
102
|
-
AVAILABLE: "AVAILABLE",
|
|
103
|
-
POST_TRANSCRIPTION: "POST_TRANSCRIPTION",
|
|
104
|
-
UNAVAILABLE: "UNAVAILABLE",
|
|
105
|
-
};
|
|
106
108
|
export const RecordType = {
|
|
107
109
|
CALL: "call",
|
|
108
110
|
CALL_TRANSCRIPTION: "call_transcription",
|
|
@@ -126,6 +126,18 @@ declare const GetCallCommand_base: {
|
|
|
126
126
|
* // reason: "pause" || "hold",
|
|
127
127
|
* // },
|
|
128
128
|
* // ],
|
|
129
|
+
* // destinations: [ // CallFlowAttachmentDestinationList
|
|
130
|
+
* // { // CallFlowAttachmentDestination
|
|
131
|
+
* // phone: "STRING_VALUE",
|
|
132
|
+
* // name: "STRING_VALUE",
|
|
133
|
+
* // email: "STRING_VALUE",
|
|
134
|
+
* // userId: "STRING_VALUE",
|
|
135
|
+
* // userExtension: "STRING_VALUE",
|
|
136
|
+
* // userDepartment: "STRING_VALUE",
|
|
137
|
+
* // groupId: "STRING_VALUE",
|
|
138
|
+
* // groupName: "STRING_VALUE",
|
|
139
|
+
* // },
|
|
140
|
+
* // ],
|
|
129
141
|
* // },
|
|
130
142
|
* // ],
|
|
131
143
|
* // mergeWith: "STRING_VALUE",
|
|
@@ -141,8 +153,8 @@ declare const GetCallCommand_base: {
|
|
|
141
153
|
* // transcriptionSeconds: Number("int"),
|
|
142
154
|
* // attachment: "STRING_VALUE",
|
|
143
155
|
* // attachmentType: "VOICEMAIL" || "FAX",
|
|
144
|
-
* // attachmentDestinations: [
|
|
145
|
-
* // {
|
|
156
|
+
* // attachmentDestinations: [
|
|
157
|
+
* // {
|
|
146
158
|
* // phone: "STRING_VALUE",
|
|
147
159
|
* // name: "STRING_VALUE",
|
|
148
160
|
* // email: "STRING_VALUE",
|
|
@@ -168,41 +180,26 @@ declare const GetCallCommand_base: {
|
|
|
168
180
|
* // reason: "pause" || "hold",
|
|
169
181
|
* // },
|
|
170
182
|
* // ],
|
|
183
|
+
* // destinations: "<CallFlowAttachmentDestinationList>",
|
|
171
184
|
* // },
|
|
172
185
|
* // fax: { // CallFlowFax
|
|
173
186
|
* // url: "STRING_VALUE", // required
|
|
174
187
|
* // status: "ok" || "error",
|
|
175
|
-
* // destinations:
|
|
176
|
-
* // {
|
|
177
|
-
* // phone: "STRING_VALUE",
|
|
178
|
-
* // name: "STRING_VALUE",
|
|
179
|
-
* // email: "STRING_VALUE",
|
|
180
|
-
* // userId: "STRING_VALUE",
|
|
181
|
-
* // userExtension: "STRING_VALUE",
|
|
182
|
-
* // userDepartment: "STRING_VALUE",
|
|
183
|
-
* // groupId: "STRING_VALUE",
|
|
184
|
-
* // groupName: "STRING_VALUE",
|
|
185
|
-
* // },
|
|
186
|
-
* // ],
|
|
188
|
+
* // destinations: "<CallFlowAttachmentDestinationList>",
|
|
187
189
|
* // owner: "callee" || "caller" || "system",
|
|
188
190
|
* // error: "STRING_VALUE",
|
|
189
191
|
* // },
|
|
190
192
|
* // voicemail: { // CallFlowVoicemail
|
|
191
193
|
* // url: "STRING_VALUE", // required
|
|
192
|
-
* // destinations:
|
|
193
|
-
* // {
|
|
194
|
-
* // phone: "STRING_VALUE",
|
|
195
|
-
* // name: "STRING_VALUE",
|
|
196
|
-
* // email: "STRING_VALUE",
|
|
197
|
-
* // userId: "STRING_VALUE",
|
|
198
|
-
* // userExtension: "STRING_VALUE",
|
|
199
|
-
* // userDepartment: "STRING_VALUE",
|
|
200
|
-
* // groupId: "STRING_VALUE",
|
|
201
|
-
* // groupName: "STRING_VALUE",
|
|
202
|
-
* // },
|
|
203
|
-
* // ],
|
|
194
|
+
* // destinations: "<CallFlowAttachmentDestinationList>",
|
|
204
195
|
* // owner: "callee" || "caller" || "system",
|
|
205
196
|
* // },
|
|
197
|
+
* // transcription: { // CallFlowTranscription
|
|
198
|
+
* // destinations: "<CallFlowAttachmentDestinationList>",
|
|
199
|
+
* // status: "AVAILABLE" || "POST_TRANSCRIPTION" || "UNAVAILABLE",
|
|
200
|
+
* // language: "STRING_VALUE",
|
|
201
|
+
* // seconds: Number("int"),
|
|
202
|
+
* // },
|
|
206
203
|
* // },
|
|
207
204
|
* // ],
|
|
208
205
|
* // id: "STRING_VALUE", // required
|
|
@@ -143,6 +143,18 @@ declare const QueryConversationsCommand_base: {
|
|
|
143
143
|
* // reason: "pause" || "hold",
|
|
144
144
|
* // },
|
|
145
145
|
* // ],
|
|
146
|
+
* // destinations: [ // CallFlowAttachmentDestinationList
|
|
147
|
+
* // { // CallFlowAttachmentDestination
|
|
148
|
+
* // phone: "STRING_VALUE",
|
|
149
|
+
* // name: "STRING_VALUE",
|
|
150
|
+
* // email: "STRING_VALUE",
|
|
151
|
+
* // userId: "STRING_VALUE",
|
|
152
|
+
* // userExtension: "STRING_VALUE",
|
|
153
|
+
* // userDepartment: "STRING_VALUE",
|
|
154
|
+
* // groupId: "STRING_VALUE",
|
|
155
|
+
* // groupName: "STRING_VALUE",
|
|
156
|
+
* // },
|
|
157
|
+
* // ],
|
|
146
158
|
* // },
|
|
147
159
|
* // ],
|
|
148
160
|
* // mergeWith: "STRING_VALUE",
|
|
@@ -158,8 +170,8 @@ declare const QueryConversationsCommand_base: {
|
|
|
158
170
|
* // transcriptionSeconds: Number("int"),
|
|
159
171
|
* // attachment: "STRING_VALUE",
|
|
160
172
|
* // attachmentType: "VOICEMAIL" || "FAX",
|
|
161
|
-
* // attachmentDestinations: [
|
|
162
|
-
* // {
|
|
173
|
+
* // attachmentDestinations: [
|
|
174
|
+
* // {
|
|
163
175
|
* // phone: "STRING_VALUE",
|
|
164
176
|
* // name: "STRING_VALUE",
|
|
165
177
|
* // email: "STRING_VALUE",
|
|
@@ -185,41 +197,26 @@ declare const QueryConversationsCommand_base: {
|
|
|
185
197
|
* // reason: "pause" || "hold",
|
|
186
198
|
* // },
|
|
187
199
|
* // ],
|
|
200
|
+
* // destinations: "<CallFlowAttachmentDestinationList>",
|
|
188
201
|
* // },
|
|
189
202
|
* // fax: { // CallFlowFax
|
|
190
203
|
* // url: "STRING_VALUE", // required
|
|
191
204
|
* // status: "ok" || "error",
|
|
192
|
-
* // destinations:
|
|
193
|
-
* // {
|
|
194
|
-
* // phone: "STRING_VALUE",
|
|
195
|
-
* // name: "STRING_VALUE",
|
|
196
|
-
* // email: "STRING_VALUE",
|
|
197
|
-
* // userId: "STRING_VALUE",
|
|
198
|
-
* // userExtension: "STRING_VALUE",
|
|
199
|
-
* // userDepartment: "STRING_VALUE",
|
|
200
|
-
* // groupId: "STRING_VALUE",
|
|
201
|
-
* // groupName: "STRING_VALUE",
|
|
202
|
-
* // },
|
|
203
|
-
* // ],
|
|
205
|
+
* // destinations: "<CallFlowAttachmentDestinationList>",
|
|
204
206
|
* // owner: "callee" || "caller" || "system",
|
|
205
207
|
* // error: "STRING_VALUE",
|
|
206
208
|
* // },
|
|
207
209
|
* // voicemail: { // CallFlowVoicemail
|
|
208
210
|
* // url: "STRING_VALUE", // required
|
|
209
|
-
* // destinations:
|
|
210
|
-
* // {
|
|
211
|
-
* // phone: "STRING_VALUE",
|
|
212
|
-
* // name: "STRING_VALUE",
|
|
213
|
-
* // email: "STRING_VALUE",
|
|
214
|
-
* // userId: "STRING_VALUE",
|
|
215
|
-
* // userExtension: "STRING_VALUE",
|
|
216
|
-
* // userDepartment: "STRING_VALUE",
|
|
217
|
-
* // groupId: "STRING_VALUE",
|
|
218
|
-
* // groupName: "STRING_VALUE",
|
|
219
|
-
* // },
|
|
220
|
-
* // ],
|
|
211
|
+
* // destinations: "<CallFlowAttachmentDestinationList>",
|
|
221
212
|
* // owner: "callee" || "caller" || "system",
|
|
222
213
|
* // },
|
|
214
|
+
* // transcription: { // CallFlowTranscription
|
|
215
|
+
* // destinations: "<CallFlowAttachmentDestinationList>",
|
|
216
|
+
* // status: "AVAILABLE" || "POST_TRANSCRIPTION" || "UNAVAILABLE",
|
|
217
|
+
* // language: "STRING_VALUE",
|
|
218
|
+
* // seconds: Number("int"),
|
|
219
|
+
* // },
|
|
223
220
|
* // },
|
|
224
221
|
* // ],
|
|
225
222
|
* // id: "STRING_VALUE", // required
|
|
@@ -143,6 +143,18 @@ declare const QueryUserCallsCommand_base: {
|
|
|
143
143
|
* // reason: "pause" || "hold",
|
|
144
144
|
* // },
|
|
145
145
|
* // ],
|
|
146
|
+
* // destinations: [ // CallFlowAttachmentDestinationList
|
|
147
|
+
* // { // CallFlowAttachmentDestination
|
|
148
|
+
* // phone: "STRING_VALUE",
|
|
149
|
+
* // name: "STRING_VALUE",
|
|
150
|
+
* // email: "STRING_VALUE",
|
|
151
|
+
* // userId: "STRING_VALUE",
|
|
152
|
+
* // userExtension: "STRING_VALUE",
|
|
153
|
+
* // userDepartment: "STRING_VALUE",
|
|
154
|
+
* // groupId: "STRING_VALUE",
|
|
155
|
+
* // groupName: "STRING_VALUE",
|
|
156
|
+
* // },
|
|
157
|
+
* // ],
|
|
146
158
|
* // },
|
|
147
159
|
* // ],
|
|
148
160
|
* // mergeWith: "STRING_VALUE",
|
|
@@ -158,8 +170,8 @@ declare const QueryUserCallsCommand_base: {
|
|
|
158
170
|
* // transcriptionSeconds: Number("int"),
|
|
159
171
|
* // attachment: "STRING_VALUE",
|
|
160
172
|
* // attachmentType: "VOICEMAIL" || "FAX",
|
|
161
|
-
* // attachmentDestinations: [
|
|
162
|
-
* // {
|
|
173
|
+
* // attachmentDestinations: [
|
|
174
|
+
* // {
|
|
163
175
|
* // phone: "STRING_VALUE",
|
|
164
176
|
* // name: "STRING_VALUE",
|
|
165
177
|
* // email: "STRING_VALUE",
|
|
@@ -185,41 +197,26 @@ declare const QueryUserCallsCommand_base: {
|
|
|
185
197
|
* // reason: "pause" || "hold",
|
|
186
198
|
* // },
|
|
187
199
|
* // ],
|
|
200
|
+
* // destinations: "<CallFlowAttachmentDestinationList>",
|
|
188
201
|
* // },
|
|
189
202
|
* // fax: { // CallFlowFax
|
|
190
203
|
* // url: "STRING_VALUE", // required
|
|
191
204
|
* // status: "ok" || "error",
|
|
192
|
-
* // destinations:
|
|
193
|
-
* // {
|
|
194
|
-
* // phone: "STRING_VALUE",
|
|
195
|
-
* // name: "STRING_VALUE",
|
|
196
|
-
* // email: "STRING_VALUE",
|
|
197
|
-
* // userId: "STRING_VALUE",
|
|
198
|
-
* // userExtension: "STRING_VALUE",
|
|
199
|
-
* // userDepartment: "STRING_VALUE",
|
|
200
|
-
* // groupId: "STRING_VALUE",
|
|
201
|
-
* // groupName: "STRING_VALUE",
|
|
202
|
-
* // },
|
|
203
|
-
* // ],
|
|
205
|
+
* // destinations: "<CallFlowAttachmentDestinationList>",
|
|
204
206
|
* // owner: "callee" || "caller" || "system",
|
|
205
207
|
* // error: "STRING_VALUE",
|
|
206
208
|
* // },
|
|
207
209
|
* // voicemail: { // CallFlowVoicemail
|
|
208
210
|
* // url: "STRING_VALUE", // required
|
|
209
|
-
* // destinations:
|
|
210
|
-
* // {
|
|
211
|
-
* // phone: "STRING_VALUE",
|
|
212
|
-
* // name: "STRING_VALUE",
|
|
213
|
-
* // email: "STRING_VALUE",
|
|
214
|
-
* // userId: "STRING_VALUE",
|
|
215
|
-
* // userExtension: "STRING_VALUE",
|
|
216
|
-
* // userDepartment: "STRING_VALUE",
|
|
217
|
-
* // groupId: "STRING_VALUE",
|
|
218
|
-
* // groupName: "STRING_VALUE",
|
|
219
|
-
* // },
|
|
220
|
-
* // ],
|
|
211
|
+
* // destinations: "<CallFlowAttachmentDestinationList>",
|
|
221
212
|
* // owner: "callee" || "caller" || "system",
|
|
222
213
|
* // },
|
|
214
|
+
* // transcription: { // CallFlowTranscription
|
|
215
|
+
* // destinations: "<CallFlowAttachmentDestinationList>",
|
|
216
|
+
* // status: "AVAILABLE" || "POST_TRANSCRIPTION" || "UNAVAILABLE",
|
|
217
|
+
* // language: "STRING_VALUE",
|
|
218
|
+
* // seconds: Number("int"),
|
|
219
|
+
* // },
|
|
223
220
|
* // },
|
|
224
221
|
* // ],
|
|
225
222
|
* // id: "STRING_VALUE", // required
|
|
@@ -129,6 +129,18 @@ declare const UpdateCallCommand_base: {
|
|
|
129
129
|
* // reason: "pause" || "hold",
|
|
130
130
|
* // },
|
|
131
131
|
* // ],
|
|
132
|
+
* // destinations: [ // CallFlowAttachmentDestinationList
|
|
133
|
+
* // { // CallFlowAttachmentDestination
|
|
134
|
+
* // phone: "STRING_VALUE",
|
|
135
|
+
* // name: "STRING_VALUE",
|
|
136
|
+
* // email: "STRING_VALUE",
|
|
137
|
+
* // userId: "STRING_VALUE",
|
|
138
|
+
* // userExtension: "STRING_VALUE",
|
|
139
|
+
* // userDepartment: "STRING_VALUE",
|
|
140
|
+
* // groupId: "STRING_VALUE",
|
|
141
|
+
* // groupName: "STRING_VALUE",
|
|
142
|
+
* // },
|
|
143
|
+
* // ],
|
|
132
144
|
* // },
|
|
133
145
|
* // ],
|
|
134
146
|
* // mergeWith: "STRING_VALUE",
|
|
@@ -144,8 +156,8 @@ declare const UpdateCallCommand_base: {
|
|
|
144
156
|
* // transcriptionSeconds: Number("int"),
|
|
145
157
|
* // attachment: "STRING_VALUE",
|
|
146
158
|
* // attachmentType: "VOICEMAIL" || "FAX",
|
|
147
|
-
* // attachmentDestinations: [
|
|
148
|
-
* // {
|
|
159
|
+
* // attachmentDestinations: [
|
|
160
|
+
* // {
|
|
149
161
|
* // phone: "STRING_VALUE",
|
|
150
162
|
* // name: "STRING_VALUE",
|
|
151
163
|
* // email: "STRING_VALUE",
|
|
@@ -171,41 +183,26 @@ declare const UpdateCallCommand_base: {
|
|
|
171
183
|
* // reason: "pause" || "hold",
|
|
172
184
|
* // },
|
|
173
185
|
* // ],
|
|
186
|
+
* // destinations: "<CallFlowAttachmentDestinationList>",
|
|
174
187
|
* // },
|
|
175
188
|
* // fax: { // CallFlowFax
|
|
176
189
|
* // url: "STRING_VALUE", // required
|
|
177
190
|
* // status: "ok" || "error",
|
|
178
|
-
* // destinations:
|
|
179
|
-
* // {
|
|
180
|
-
* // phone: "STRING_VALUE",
|
|
181
|
-
* // name: "STRING_VALUE",
|
|
182
|
-
* // email: "STRING_VALUE",
|
|
183
|
-
* // userId: "STRING_VALUE",
|
|
184
|
-
* // userExtension: "STRING_VALUE",
|
|
185
|
-
* // userDepartment: "STRING_VALUE",
|
|
186
|
-
* // groupId: "STRING_VALUE",
|
|
187
|
-
* // groupName: "STRING_VALUE",
|
|
188
|
-
* // },
|
|
189
|
-
* // ],
|
|
191
|
+
* // destinations: "<CallFlowAttachmentDestinationList>",
|
|
190
192
|
* // owner: "callee" || "caller" || "system",
|
|
191
193
|
* // error: "STRING_VALUE",
|
|
192
194
|
* // },
|
|
193
195
|
* // voicemail: { // CallFlowVoicemail
|
|
194
196
|
* // url: "STRING_VALUE", // required
|
|
195
|
-
* // destinations:
|
|
196
|
-
* // {
|
|
197
|
-
* // phone: "STRING_VALUE",
|
|
198
|
-
* // name: "STRING_VALUE",
|
|
199
|
-
* // email: "STRING_VALUE",
|
|
200
|
-
* // userId: "STRING_VALUE",
|
|
201
|
-
* // userExtension: "STRING_VALUE",
|
|
202
|
-
* // userDepartment: "STRING_VALUE",
|
|
203
|
-
* // groupId: "STRING_VALUE",
|
|
204
|
-
* // groupName: "STRING_VALUE",
|
|
205
|
-
* // },
|
|
206
|
-
* // ],
|
|
197
|
+
* // destinations: "<CallFlowAttachmentDestinationList>",
|
|
207
198
|
* // owner: "callee" || "caller" || "system",
|
|
208
199
|
* // },
|
|
200
|
+
* // transcription: { // CallFlowTranscription
|
|
201
|
+
* // destinations: "<CallFlowAttachmentDestinationList>",
|
|
202
|
+
* // status: "AVAILABLE" || "POST_TRANSCRIPTION" || "UNAVAILABLE",
|
|
203
|
+
* // language: "STRING_VALUE",
|
|
204
|
+
* // seconds: Number("int"),
|
|
205
|
+
* // },
|
|
209
206
|
* // },
|
|
210
207
|
* // ],
|
|
211
208
|
* // id: "STRING_VALUE", // required
|
|
@@ -159,6 +159,29 @@ export interface CallFlowRecording {
|
|
|
159
159
|
owner: CallRecordOwner;
|
|
160
160
|
url: string;
|
|
161
161
|
pauses: (CallRecordPause)[];
|
|
162
|
+
destinations?: (CallFlowAttachmentDestination)[] | undefined;
|
|
163
|
+
}
|
|
164
|
+
/**
|
|
165
|
+
* @public
|
|
166
|
+
* @enum
|
|
167
|
+
*/
|
|
168
|
+
export declare const CallFlowTranscriptionStatus: {
|
|
169
|
+
readonly AVAILABLE: "AVAILABLE";
|
|
170
|
+
readonly POST_TRANSCRIPTION: "POST_TRANSCRIPTION";
|
|
171
|
+
readonly UNAVAILABLE: "UNAVAILABLE";
|
|
172
|
+
};
|
|
173
|
+
/**
|
|
174
|
+
* @public
|
|
175
|
+
*/
|
|
176
|
+
export type CallFlowTranscriptionStatus = typeof CallFlowTranscriptionStatus[keyof typeof CallFlowTranscriptionStatus];
|
|
177
|
+
/**
|
|
178
|
+
* @public
|
|
179
|
+
*/
|
|
180
|
+
export interface CallFlowTranscription {
|
|
181
|
+
destinations?: (CallFlowAttachmentDestination)[] | undefined;
|
|
182
|
+
status?: CallFlowTranscriptionStatus | undefined;
|
|
183
|
+
language?: string | undefined;
|
|
184
|
+
seconds?: number | undefined;
|
|
162
185
|
}
|
|
163
186
|
/**
|
|
164
187
|
* @public
|
|
@@ -171,7 +194,7 @@ export interface CallFlowVoicemail {
|
|
|
171
194
|
/**
|
|
172
195
|
* @public
|
|
173
196
|
*/
|
|
174
|
-
export type CallFlowAttachment = CallFlowAttachment.FaxMember | CallFlowAttachment.RecordingMember | CallFlowAttachment.VoicemailMember | CallFlowAttachment.$UnknownMember;
|
|
197
|
+
export type CallFlowAttachment = CallFlowAttachment.FaxMember | CallFlowAttachment.RecordingMember | CallFlowAttachment.TranscriptionMember | CallFlowAttachment.VoicemailMember | CallFlowAttachment.$UnknownMember;
|
|
175
198
|
/**
|
|
176
199
|
* @public
|
|
177
200
|
*/
|
|
@@ -180,18 +203,28 @@ export declare namespace CallFlowAttachment {
|
|
|
180
203
|
recording: CallFlowRecording;
|
|
181
204
|
fax?: never;
|
|
182
205
|
voicemail?: never;
|
|
206
|
+
transcription?: never;
|
|
183
207
|
$unknown?: never;
|
|
184
208
|
}
|
|
185
209
|
interface FaxMember {
|
|
186
210
|
recording?: never;
|
|
187
211
|
fax: CallFlowFax;
|
|
188
212
|
voicemail?: never;
|
|
213
|
+
transcription?: never;
|
|
189
214
|
$unknown?: never;
|
|
190
215
|
}
|
|
191
216
|
interface VoicemailMember {
|
|
192
217
|
recording?: never;
|
|
193
218
|
fax?: never;
|
|
194
219
|
voicemail: CallFlowVoicemail;
|
|
220
|
+
transcription?: never;
|
|
221
|
+
$unknown?: never;
|
|
222
|
+
}
|
|
223
|
+
interface TranscriptionMember {
|
|
224
|
+
recording?: never;
|
|
225
|
+
fax?: never;
|
|
226
|
+
voicemail?: never;
|
|
227
|
+
transcription: CallFlowTranscription;
|
|
195
228
|
$unknown?: never;
|
|
196
229
|
}
|
|
197
230
|
/**
|
|
@@ -201,12 +234,14 @@ export declare namespace CallFlowAttachment {
|
|
|
201
234
|
recording?: never;
|
|
202
235
|
fax?: never;
|
|
203
236
|
voicemail?: never;
|
|
237
|
+
transcription?: never;
|
|
204
238
|
$unknown: [string, any];
|
|
205
239
|
}
|
|
206
240
|
interface Visitor<T> {
|
|
207
241
|
recording: (value: CallFlowRecording) => T;
|
|
208
242
|
fax: (value: CallFlowFax) => T;
|
|
209
243
|
voicemail: (value: CallFlowVoicemail) => T;
|
|
244
|
+
transcription: (value: CallFlowTranscription) => T;
|
|
210
245
|
_: (name: string, value: any) => T;
|
|
211
246
|
}
|
|
212
247
|
const visit: <T>(value: CallFlowAttachment, visitor: Visitor<T>) => T;
|
|
@@ -318,19 +353,6 @@ export declare const License: {
|
|
|
318
353
|
* @public
|
|
319
354
|
*/
|
|
320
355
|
export type License = typeof License[keyof typeof License];
|
|
321
|
-
/**
|
|
322
|
-
* @public
|
|
323
|
-
* @enum
|
|
324
|
-
*/
|
|
325
|
-
export declare const CallFlowTranscriptionStatus: {
|
|
326
|
-
readonly AVAILABLE: "AVAILABLE";
|
|
327
|
-
readonly POST_TRANSCRIPTION: "POST_TRANSCRIPTION";
|
|
328
|
-
readonly UNAVAILABLE: "UNAVAILABLE";
|
|
329
|
-
};
|
|
330
|
-
/**
|
|
331
|
-
* @public
|
|
332
|
-
*/
|
|
333
|
-
export type CallFlowTranscriptionStatus = typeof CallFlowTranscriptionStatus[keyof typeof CallFlowTranscriptionStatus];
|
|
334
356
|
/**
|
|
335
357
|
* @public
|
|
336
358
|
* @enum
|
|
@@ -421,8 +443,26 @@ export interface CallRecord {
|
|
|
421
443
|
remotePhoneCountryCodeStr?: string | undefined;
|
|
422
444
|
remotePhoneLocation?: string | undefined;
|
|
423
445
|
callStatus?: ConversationStatus | undefined;
|
|
446
|
+
/**
|
|
447
|
+
* Please use `attachments.transcription.status` instead.
|
|
448
|
+
*
|
|
449
|
+
* @deprecated
|
|
450
|
+
* @public
|
|
451
|
+
*/
|
|
424
452
|
transcriptionStatus?: CallFlowTranscriptionStatus | undefined;
|
|
453
|
+
/**
|
|
454
|
+
* Please use `attachments.transcription.language` instead.
|
|
455
|
+
*
|
|
456
|
+
* @deprecated
|
|
457
|
+
* @public
|
|
458
|
+
*/
|
|
425
459
|
transcriptionLanguage?: string | undefined;
|
|
460
|
+
/**
|
|
461
|
+
* Please use `attachments.transcription.seconds` instead.
|
|
462
|
+
*
|
|
463
|
+
* @deprecated
|
|
464
|
+
* @public
|
|
465
|
+
*/
|
|
426
466
|
transcriptionSeconds?: number | undefined;
|
|
427
467
|
/**
|
|
428
468
|
* Consider to use `attachments` instead.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wildix/wda-history-client",
|
|
3
3
|
"description": "@wildix/wda-history-client client",
|
|
4
|
-
"version": "1.2.
|
|
4
|
+
"version": "1.2.12",
|
|
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",
|