@wildix/xbees-conversations-client 1.0.45 → 1.0.47

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.
@@ -4,6 +4,7 @@ exports.Conversations = void 0;
4
4
  const ConversationsClient_1 = require("./ConversationsClient");
5
5
  const AddChannelMemberCommand_1 = require("./commands/AddChannelMemberCommand");
6
6
  const AddChannelMembersCommand_1 = require("./commands/AddChannelMembersCommand");
7
+ const AssignChannelCommand_1 = require("./commands/AssignChannelCommand");
7
8
  const CreateGroupChannelCommand_1 = require("./commands/CreateGroupChannelCommand");
8
9
  const DeleteChannelCommand_1 = require("./commands/DeleteChannelCommand");
9
10
  const DeleteChannelMemberCommand_1 = require("./commands/DeleteChannelMemberCommand");
@@ -40,14 +41,15 @@ const UpdateMessageCommand_1 = require("./commands/UpdateMessageCommand");
40
41
  const UploadFileCommand_1 = require("./commands/UploadFileCommand");
41
42
  const smithy_client_1 = require("@smithy/smithy-client");
42
43
  const commands = {
43
- DescribeEventCommand: DescribeEventCommand_1.DescribeEventCommand,
44
44
  AddChannelMemberCommand: AddChannelMemberCommand_1.AddChannelMemberCommand,
45
45
  AddChannelMembersCommand: AddChannelMembersCommand_1.AddChannelMembersCommand,
46
+ AssignChannelCommand: AssignChannelCommand_1.AssignChannelCommand,
46
47
  CreateGroupChannelCommand: CreateGroupChannelCommand_1.CreateGroupChannelCommand,
47
48
  DeleteChannelCommand: DeleteChannelCommand_1.DeleteChannelCommand,
48
49
  DeleteChannelMemberCommand: DeleteChannelMemberCommand_1.DeleteChannelMemberCommand,
49
50
  DeleteMessageCommand: DeleteMessageCommand_1.DeleteMessageCommand,
50
51
  DeleteMessageReactionCommand: DeleteMessageReactionCommand_1.DeleteMessageReactionCommand,
52
+ DescribeEventCommand: DescribeEventCommand_1.DescribeEventCommand,
51
53
  GetChannelCommand: GetChannelCommand_1.GetChannelCommand,
52
54
  GetChannelMemberCommand: GetChannelMemberCommand_1.GetChannelMemberCommand,
53
55
  GetDirectChannelIdCommand: GetDirectChannelIdCommand_1.GetDirectChannelIdCommand,
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AssignChannelCommand = 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 AssignChannelCommand 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("Conversations", "AssignChannel", {})
15
+ .n("ConversationsClient", "AssignChannelCommand")
16
+ .f(void 0, void 0)
17
+ .ser(Aws_restJson1_1.se_AssignChannelCommand)
18
+ .de(Aws_restJson1_1.de_AssignChannelCommand)
19
+ .build() {
20
+ }
21
+ exports.AssignChannelCommand = AssignChannelCommand;
@@ -1,14 +1,15 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
- tslib_1.__exportStar(require("./DescribeEventCommand"), exports);
5
4
  tslib_1.__exportStar(require("./AddChannelMemberCommand"), exports);
6
5
  tslib_1.__exportStar(require("./AddChannelMembersCommand"), exports);
6
+ tslib_1.__exportStar(require("./AssignChannelCommand"), exports);
7
7
  tslib_1.__exportStar(require("./CreateGroupChannelCommand"), exports);
8
8
  tslib_1.__exportStar(require("./DeleteChannelCommand"), exports);
9
9
  tslib_1.__exportStar(require("./DeleteChannelMemberCommand"), exports);
10
10
  tslib_1.__exportStar(require("./DeleteMessageCommand"), exports);
11
11
  tslib_1.__exportStar(require("./DeleteMessageReactionCommand"), exports);
12
+ tslib_1.__exportStar(require("./DescribeEventCommand"), exports);
12
13
  tslib_1.__exportStar(require("./GetChannelCommand"), exports);
13
14
  tslib_1.__exportStar(require("./GetChannelMemberCommand"), exports);
14
15
  tslib_1.__exportStar(require("./GetDirectChannelIdCommand"), exports);
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ReactionType = exports.MessageNotFoundException = exports.MemberNotFoundException = exports.ConversationFileCategory = exports.ChannelAlreadyExistException = exports.ChannelContextSource = exports.ChannelContextEventAttendeeStatus = exports.ChannelAccess = exports.MemberAlreadyExistException = exports.ChannelNotFoundException = exports.ChannelMemberRole = exports.WebsocketTopic = exports.WebsocketEvent = exports.WebhookEventType = exports.PresenceEventType = exports.PresenceAnalyticsEventType = exports.SmsStatus = exports.SmsChannelType = exports.SmsConsumeEventType = exports.ConferenceEventType = exports.ChatEventType = exports.ChatTag = exports.ChatStatus = exports.ChatParticipantType = exports.ChatParticipantRole = exports.ChatDirection = exports.ChannelType = exports.CallEventType = exports.CallEndBy = exports.CallFlowStatus = exports.CallAnalyticsLiveProgressEventTrigger = exports.LiveEventType = exports.ConferenceTranscriptionStatus = exports.ConferenceParticipantType = exports.ConferenceParticipantRole = exports.PbxLicenseType = exports.ConferenceDirection = exports.CallTranscriptionSpeaker = exports.CallFlowTranscriptionStatus = exports.CallRecordPauseReason = exports.CallRecordOwner = exports.License = exports.CallDirection = exports.ConversationStatus = exports.CallDevice = exports.CallParticipantType = exports.CallParticipantRole = exports.CallFlowAttachmentType = exports.ForbiddenException = exports.ValidationException = void 0;
4
- exports.ConversationsServiceException = exports.MessageUnsetFields = exports.GroupChannelUnsetOptions = exports.MessageType = exports.MessageSmsStatus = exports.FileNotFoundException = void 0;
3
+ exports.ConversationsServiceException = exports.MessageUnsetFields = exports.GroupChannelUnsetOptions = exports.FileNotFoundException = exports.MessageType = exports.MessageSmsStatus = exports.WebhookEventType = exports.ReactionType = exports.MessageNotFoundException = exports.MemberNotFoundException = exports.ConversationFileCategory = exports.ChannelAlreadyExistException = exports.ChannelContextSource = exports.ChannelContextEventAttendeeStatus = exports.ChannelAccess = exports.AssignChannelServiceRequest = exports.AssignChannelAssigneeRequest = exports.MemberAlreadyExistException = exports.ChannelNotFoundException = exports.ChannelMemberRole = exports.ChannelType = exports.ForbiddenException = exports.ValidationException = void 0;
5
4
  const ConversationsServiceException_1 = require("./ConversationsServiceException");
6
5
  class ValidationException extends ConversationsServiceException_1.ConversationsServiceException {
7
6
  constructor(opts) {
@@ -29,236 +28,10 @@ class ForbiddenException extends ConversationsServiceException_1.ConversationsSe
29
28
  }
30
29
  }
31
30
  exports.ForbiddenException = ForbiddenException;
32
- exports.CallFlowAttachmentType = {
33
- FAX: "FAX",
34
- VOICEMAIL: "VOICEMAIL",
35
- };
36
- exports.CallParticipantRole = {
37
- AGENT: "AGENT",
38
- CLIENT: "CLIENT",
39
- };
40
- exports.CallParticipantType = {
41
- LOCAL: "LOCAL",
42
- REMOTE: "REMOTE",
43
- };
44
- exports.CallDevice = {
45
- COLLABORATION_ANDROID: "COLLABORATION_ANDROID",
46
- COLLABORATION_IOS: "COLLABORATION_IOS",
47
- COLLABORATION_WEB: "COLLABORATION_WEB",
48
- UNKNOWN: "UNKNOWN",
49
- WILDIX_DEVICE: "WILDIX_DEVICE",
50
- WILDIX_PHONE: "WILDIX_PHONE",
51
- XBEES_ANDROID: "XBEES_ANDROID",
52
- XBEES_IOS: "XBEES_IOS",
53
- XBEES_WEB: "XBEES_WEB",
54
- };
55
- exports.ConversationStatus = {
56
- COMPLETED: "COMPLETED",
57
- MISSED: "MISSED",
58
- };
59
- exports.CallDirection = {
60
- INBOUND: "INBOUND",
61
- INTERNAL: "INTERNAL",
62
- OUTBOUND: "OUTBOUND",
63
- UNDEFINED: "UNDEFINED",
64
- };
65
- exports.License = {
66
- XBEES: "x-bees",
67
- };
68
- exports.CallRecordOwner = {
69
- CALLEE: "callee",
70
- CALLER: "caller",
71
- SYSTEM: "system",
72
- };
73
- exports.CallRecordPauseReason = {
74
- HOLD: "hold",
75
- PAUSE: "pause",
76
- };
77
- exports.CallFlowTranscriptionStatus = {
78
- AVAILABLE: "AVAILABLE",
79
- UNAVAILABLE: "UNAVAILABLE",
80
- };
81
- exports.CallTranscriptionSpeaker = {
82
- CALLEE: "callee",
83
- CALLER: "caller",
84
- };
85
- exports.ConferenceDirection = {
86
- INBOUND: "INBOUND",
87
- INTERNAL: "INTERNAL",
88
- OUTBOUND: "OUTBOUND",
89
- };
90
- exports.PbxLicenseType = {
91
- BASIC: "basic",
92
- BUSINESS: "business",
93
- ESSENTIAL: "essential",
94
- PREMIUM: "premium",
95
- WIZYCONF: "wizyconf",
96
- };
97
- exports.ConferenceParticipantRole = {
98
- AGENT: "AGENT",
99
- CLIENT: "CLIENT",
100
- };
101
- exports.ConferenceParticipantType = {
102
- EXTERNAL: "EXTERNAL",
103
- EXTERNAL_DIAL_IN: "EXTERNAL_DIAL_IN",
104
- PBX: "PBX",
105
- PBX_SIP: "PBX_SIP",
106
- XBS: "XBS",
107
- };
108
- exports.ConferenceTranscriptionStatus = {
109
- AVAILABLE: "AVAILABLE",
110
- UNAVAILABLE: "UNAVAILABLE",
111
- };
112
- exports.LiveEventType = {
113
- CALL: "call",
114
- CALL_COMPLETE: "call_complete",
115
- CALL_INTERRUPTED: "call_interrupted",
116
- CALL_TRANSCRIPTION: "call_transcription",
117
- CHAT: "chat",
118
- CHAT_COMPLETE: "chat_complete",
119
- CHAT_COST: "call_cost",
120
- CHAT_INTERRUPTED: "chat_interrupted",
121
- CHAT_MISSED: "chat_missed",
122
- CONFERENCE: "conference",
123
- CONFERENCE_COMPLETE: "conference_complete",
124
- CONFERENCE_INTERRUPTED: "conference_interrupted",
125
- CONFERENCE_JOIN: "conference_join",
126
- CONFERENCE_LEAVE: "conference_leave",
127
- CONFERENCE_TRANSCRIPTION: "conference_transcription",
128
- };
129
- exports.CallAnalyticsLiveProgressEventTrigger = {
130
- AGENTS_CANCEL: "call.agents_cancel",
131
- AGENTS_START: "call.agents_start",
132
- ATTACHMENT: "call.attachment",
133
- RECORD_START: "call.record_start",
134
- RECORD_STOP: "call.record_stop",
135
- SPLIT: "call.split",
136
- START: "call.start",
137
- TRANSCRIPTION: "call.transcription",
138
- UPDATE: "call.update",
139
- };
140
- exports.CallFlowStatus = {
141
- CONNECTING: "CONNECTING",
142
- HOLD: "HOLD",
143
- TALKING: "TALKING",
144
- };
145
- exports.CallEndBy = {
146
- CALLEE: "CALLEE",
147
- CALLER: "CALLER",
148
- };
149
- exports.CallEventType = {
150
- COST_RECORD_EVENT: "CallAnalyticsCostRecordEvent",
151
- LIVE_COMPLETE_EVENT: "CallAnalyticsLiveCompleteEvent",
152
- LIVE_INTERRUPTED_EVENT: "CallAnalyticsLiveInterruptedEvent",
153
- LIVE_PROGRESS_EVENT: "CallAnalyticsLiveProgressEvent",
154
- LIVE_TRANSCRIPTION_EVENT: "CallAnalyticsLiveTranscriptionEvent",
155
- RECORD_EVENT: "CallAnalyticsRecordEvent",
156
- TRANSCRIPTION_RECORD_EVENT: "CallAnalyticsTranscriptionRecordEvent",
157
- };
158
31
  exports.ChannelType = {
159
32
  DIRECT: "direct",
160
33
  GROUP: "group",
161
34
  };
162
- exports.ChatDirection = {
163
- INBOUND: "INBOUND",
164
- INTERNAL: "INTERNAL",
165
- OUTBOUND: "OUTBOUND",
166
- };
167
- exports.ChatParticipantRole = {
168
- AGENT: "AGENT",
169
- CLIENT: "CLIENT",
170
- };
171
- exports.ChatParticipantType = {
172
- LOCAL: "LOCAL",
173
- REMOTE: "REMOTE",
174
- };
175
- exports.ChatStatus = {
176
- COMPLETED: "COMPLETED",
177
- MISSED: "MISSED",
178
- WAITFIRSTREPLY: "WAITFIRSTREPLY",
179
- WAITREPLYFROMAGENT: "WAITREPLYFROMAGENT",
180
- WAITREPLYFROMGUEST: "WAITREPLYFROMGUEST",
181
- };
182
- exports.ChatTag = {
183
- SMS: "sms",
184
- TELEPHONY: "telephony",
185
- };
186
- exports.ChatEventType = {
187
- LIVE_COMPLETE_EVENT: "ChatAnalyticsLiveCompleteEvent",
188
- LIVE_INTERRUPTED_EVENT: "ChatAnalyticsLiveInterruptedEvent",
189
- LIVE_MISSED_EVENT: "ChatAnalyticsLiveMissedEvent",
190
- LIVE_PROGRESS_EVENT: "ChatAnalyticsLiveProgressEvent",
191
- MANAGER_MISSED_EVENT: "ChatAnalyticsManagerMissedEvent",
192
- RECORD_EVENT: "ChatAnalyticsRecordEvent",
193
- };
194
- exports.ConferenceEventType = {
195
- LIVE_COMPLETE_EVENT: "ConferenceAnalyticsLiveCompleteEvent",
196
- LIVE_INTERRUPTED_EVENT: "ConferenceAnalyticsLiveInterruptedEvent",
197
- LIVE_JOIN_EVENT: "ConferenceAnalyticsLiveJoinEvent",
198
- LIVE_LEAVE_EVENT: "ConferenceAnalyticsLiveLeaveEvent",
199
- LIVE_PROGRESS_EVENT: "ConferenceAnalyticsLiveProgressEvent",
200
- LIVE_TRANSCRIPTION_EVENT: "ConferenceAnalyticsLiveTranscriptionEvent",
201
- RECORD_EVENT: "ConferenceAnalyticsRecordEvent",
202
- TRANSCRIPTION_RECORD_EVENT: "ConferenceAnalyticsTranscriptionRecordEvent",
203
- };
204
- exports.SmsConsumeEventType = {
205
- SMS_INBOUND: "SMS.INBOUND",
206
- SMS_STATUS: "SMS.STATUS",
207
- };
208
- exports.SmsChannelType = {
209
- ONE_WAY: "1-way-sms",
210
- TWO_WAY: "2-way-sms",
211
- };
212
- exports.SmsStatus = {
213
- DELIVERED: "delivered",
214
- ERROR: "error",
215
- SENT: "sent",
216
- TRYING: "trying",
217
- };
218
- exports.PresenceAnalyticsEventType = {
219
- PRESENCE: "PRESENCE",
220
- PRESENCE_TELEPHONY: "PRESENCE_TELEPHONY",
221
- };
222
- exports.PresenceEventType = {
223
- CONFERENCE_EVENT: "PresenceAnalyticsConferenceEvent",
224
- STATUS_EVENT: "PresenceAnalyticsStatusEvent",
225
- TELEPHONY_EVENT: "PresenceAnalyticsTelephonyEvent",
226
- };
227
- exports.WebhookEventType = {
228
- CALL_COMPLETED: "call:completed",
229
- CALL_LIVE_COMPLETED: "call:live:completed",
230
- CALL_LIVE_INTERRUPTED: "call:live:interrupted",
231
- CALL_LIVE_PROGRESS: "call:live:progress",
232
- CALL_LIVE_TRANSCRIPTION: "call:live:transcription",
233
- CHAT_COMPLETED: "chat:completed",
234
- CHAT_LIVE_COMPLETED: "chat:live:completed",
235
- CHAT_LIVE_INTERRUPTED: "chat:live:interrupted",
236
- CHAT_LIVE_PROGRESS: "chat:live:progress",
237
- CHAT_MANAGER_MISSED: "chat:manager:missed",
238
- CONFERENCE_COMPLETED: "conference:completed",
239
- CONFERENCE_LIVE_COMPLETED: "conference:live:completed",
240
- CONFERENCE_LIVE_INTERRUPTED: "conference:live:interrupted",
241
- CONFERENCE_LIVE_JOIN: "conference:live:join",
242
- CONFERENCE_LIVE_LEAVE: "conference:live:leave",
243
- CONFERENCE_LIVE_PROGRESS: "conference:live:progress",
244
- CONFERENCE_LIVE_TRANSCRIPTION: "conference:live:transcription",
245
- OLD_CALL_END: "call:end",
246
- OLD_CALL_START: "call:start",
247
- OLD_CALL_UPDATE: "call:update",
248
- PRESENCE_CONFERENCE: "presence:conference",
249
- PRESENCE_TELEPHONY: "presence:telephony",
250
- PRESENCE_USER: "presence:user",
251
- };
252
- exports.WebsocketEvent = {
253
- AUTHORIZED: "authorized",
254
- BROADCAST: "broadcast",
255
- SUBSCRIBED: "subscribed",
256
- };
257
- exports.WebsocketTopic = {
258
- CONVERSATIONS: "conversations",
259
- PRESENCE: "presence",
260
- TRANSCRIPTIONS: "transcriptions",
261
- };
262
35
  exports.ChannelMemberRole = {
263
36
  MEMBER: "member",
264
37
  SUPERVISOR: "supervisor",
@@ -289,6 +62,28 @@ class MemberAlreadyExistException extends ConversationsServiceException_1.Conver
289
62
  }
290
63
  }
291
64
  exports.MemberAlreadyExistException = MemberAlreadyExistException;
65
+ var AssignChannelAssigneeRequest;
66
+ (function (AssignChannelAssigneeRequest) {
67
+ AssignChannelAssigneeRequest.visit = (value, visitor) => {
68
+ if (value.id !== undefined)
69
+ return visitor.id(value.id);
70
+ if (value.email !== undefined)
71
+ return visitor.email(value.email);
72
+ return visitor._(value.$unknown[0], value.$unknown[1]);
73
+ };
74
+ })(AssignChannelAssigneeRequest = exports.AssignChannelAssigneeRequest || (exports.AssignChannelAssigneeRequest = {}));
75
+ var AssignChannelServiceRequest;
76
+ (function (AssignChannelServiceRequest) {
77
+ AssignChannelServiceRequest.visit = (value, visitor) => {
78
+ if (value.uri !== undefined)
79
+ return visitor.uri(value.uri);
80
+ if (value.id !== undefined)
81
+ return visitor.id(value.id);
82
+ if (value.name !== undefined)
83
+ return visitor.name(value.name);
84
+ return visitor._(value.$unknown[0], value.$unknown[1]);
85
+ };
86
+ })(AssignChannelServiceRequest = exports.AssignChannelServiceRequest || (exports.AssignChannelServiceRequest = {}));
292
87
  exports.ChannelAccess = {
293
88
  PRIVATE: "private",
294
89
  PUBLIC: "public",
@@ -356,6 +151,27 @@ exports.ReactionType = {
356
151
  THUMBSUP: "thumbsup",
357
152
  WHITE_CHECK_MARK: "white_check_mark",
358
153
  };
154
+ exports.WebhookEventType = {
155
+ CHANNEL_CREATED: "chat:channel:created",
156
+ CHANNEL_UPDATED: "chat:channel:updated",
157
+ MEMBER_ADDED: "chat:member:added",
158
+ MEMBER_REMOVED: "chat:member:removed",
159
+ MESSAGE_DELETED: "chat:message:deleted",
160
+ MESSAGE_NEW: "chat:message:new",
161
+ MESSAGE_UPDATED: "chat:message:updated",
162
+ REACTION_DELETED: "chat:reaction:deleted",
163
+ REACTION_NEW: "chat:reaction:new",
164
+ };
165
+ exports.MessageSmsStatus = {
166
+ DELIVERED: "delivered",
167
+ ERROR: "error",
168
+ SENT: "sent",
169
+ TRYING: "trying",
170
+ };
171
+ exports.MessageType = {
172
+ REGULAR: "regular",
173
+ SYSTEM: "system",
174
+ };
359
175
  class FileNotFoundException extends ConversationsServiceException_1.ConversationsServiceException {
360
176
  constructor(opts) {
361
177
  super({
@@ -369,15 +185,6 @@ class FileNotFoundException extends ConversationsServiceException_1.Conversation
369
185
  }
370
186
  }
371
187
  exports.FileNotFoundException = FileNotFoundException;
372
- exports.MessageSmsStatus = {
373
- DELIVERED: "delivered",
374
- ERROR: "error",
375
- SENT: "sent",
376
- TRYING: "trying",
377
- };
378
- exports.MessageType = {
379
- REGULAR: "regular",
380
- };
381
188
  exports.GroupChannelUnsetOptions = {
382
189
  ACCESS: "access",
383
190
  BROADCAST: "broadcast",