@wildix/xbees-conversations-client 1.2.3 → 1.2.4
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 +61 -60
- package/dist-cjs/protocols/Aws_restJson1.js +2 -2
- package/dist-es/models/models_0.js +59 -58
- package/dist-es/protocols/Aws_restJson1.js +2 -2
- package/dist-types/commands/AddChannelMemberCommand.d.ts +1 -0
- package/dist-types/commands/AddChannelMembersCommand.d.ts +1 -0
- package/dist-types/commands/AssignChannelCommand.d.ts +1 -0
- package/dist-types/commands/CreateGroupChannelCommand.d.ts +2 -2
- package/dist-types/commands/CreateKiteChannelCommand.d.ts +3 -1
- package/dist-types/commands/DescribeEventCommand.d.ts +10 -10
- package/dist-types/commands/GetChannelCommand.d.ts +1 -1
- package/dist-types/commands/GetChannelMemberCommand.d.ts +1 -0
- package/dist-types/commands/GetMessageCommand.d.ts +3 -1
- package/dist-types/commands/GetOrCreateDirectChannelCommand.d.ts +1 -1
- package/dist-types/commands/GetOrCreateSmsChannelCommand.d.ts +2 -1
- package/dist-types/commands/GetOrCreateTelephonyChannelCommand.d.ts +1 -1
- package/dist-types/commands/GetOrCreateWhatsAppChannelCommand.d.ts +2 -1
- package/dist-types/commands/InviteCommand.d.ts +1 -0
- package/dist-types/commands/JoinChannelCommand.d.ts +1 -1
- package/dist-types/commands/ListChannelMembersCommand.d.ts +1 -0
- package/dist-types/commands/ListChannelMembersReadStatusCommand.d.ts +1 -0
- package/dist-types/commands/ListChannelsCommand.d.ts +1 -1
- package/dist-types/commands/ListMessageReactionsCommand.d.ts +1 -0
- package/dist-types/commands/ListMessagesCommand.d.ts +3 -1
- package/dist-types/commands/ListPinnedMessagesCommand.d.ts +3 -1
- package/dist-types/commands/PartialUpdateChannelCommand.d.ts +2 -2
- package/dist-types/commands/PartialUpdateMessageCommand.d.ts +5 -1
- package/dist-types/commands/QueryChannelsCommand.d.ts +1 -1
- package/dist-types/commands/SendGiphyCommand.d.ts +3 -1
- package/dist-types/commands/SendMessageCommand.d.ts +5 -1
- package/dist-types/commands/SendSystemMessageCommand.d.ts +3 -1
- package/dist-types/commands/UpdateChannelCommand.d.ts +2 -2
- package/dist-types/commands/UpdateMessageCommand.d.ts +5 -1
- package/dist-types/models/models_0.d.ts +351 -343
- package/package.json +1 -1
|
@@ -71,26 +71,14 @@ export interface TemplateWithParameters {
|
|
|
71
71
|
* @public
|
|
72
72
|
* @enum
|
|
73
73
|
*/
|
|
74
|
-
export declare const
|
|
75
|
-
readonly
|
|
76
|
-
readonly
|
|
77
|
-
readonly WIZY_RECORDING: "wizyconfRecordings";
|
|
74
|
+
export declare const ChannelAccess: {
|
|
75
|
+
readonly PRIVATE: "private";
|
|
76
|
+
readonly PUBLIC: "public";
|
|
78
77
|
};
|
|
79
78
|
/**
|
|
80
79
|
* @public
|
|
81
80
|
*/
|
|
82
|
-
export type
|
|
83
|
-
/**
|
|
84
|
-
* @public
|
|
85
|
-
*/
|
|
86
|
-
export declare class FileNotFoundException extends __BaseException {
|
|
87
|
-
readonly name: "FileNotFoundException";
|
|
88
|
-
readonly $fault: "client";
|
|
89
|
-
/**
|
|
90
|
-
* @internal
|
|
91
|
-
*/
|
|
92
|
-
constructor(opts: __ExceptionOptionType<FileNotFoundException, __BaseException>);
|
|
93
|
-
}
|
|
81
|
+
export type ChannelAccess = typeof ChannelAccess[keyof typeof ChannelAccess];
|
|
94
82
|
/**
|
|
95
83
|
* @public
|
|
96
84
|
*/
|
|
@@ -109,6 +97,7 @@ export interface User {
|
|
|
109
97
|
pbxExtension?: string | undefined;
|
|
110
98
|
pbxSerial?: string | undefined;
|
|
111
99
|
pbxUserId?: string | undefined;
|
|
100
|
+
pbxGroupId?: string | undefined;
|
|
112
101
|
createdAt?: string | undefined;
|
|
113
102
|
updatedAt?: string | undefined;
|
|
114
103
|
}
|
|
@@ -124,6 +113,142 @@ export declare const ChannelType: {
|
|
|
124
113
|
* @public
|
|
125
114
|
*/
|
|
126
115
|
export type ChannelType = typeof ChannelType[keyof typeof ChannelType];
|
|
116
|
+
/**
|
|
117
|
+
* @public
|
|
118
|
+
* @enum
|
|
119
|
+
*/
|
|
120
|
+
export declare const ChannelContextEventAttendeeStatus: {
|
|
121
|
+
readonly ACCEPTED: "accepted";
|
|
122
|
+
readonly DECLINED: "declined";
|
|
123
|
+
readonly NONE: "none";
|
|
124
|
+
readonly TENTATIVE: "tentative";
|
|
125
|
+
};
|
|
126
|
+
/**
|
|
127
|
+
* @public
|
|
128
|
+
*/
|
|
129
|
+
export type ChannelContextEventAttendeeStatus = typeof ChannelContextEventAttendeeStatus[keyof typeof ChannelContextEventAttendeeStatus];
|
|
130
|
+
/**
|
|
131
|
+
* @public
|
|
132
|
+
*/
|
|
133
|
+
export interface ChannelContextEventAttendee {
|
|
134
|
+
email: string;
|
|
135
|
+
name?: string | undefined;
|
|
136
|
+
status: ChannelContextEventAttendeeStatus;
|
|
137
|
+
}
|
|
138
|
+
/**
|
|
139
|
+
* @public
|
|
140
|
+
*/
|
|
141
|
+
export interface ChannelContextEvent {
|
|
142
|
+
id?: string | undefined;
|
|
143
|
+
owner?: string | undefined;
|
|
144
|
+
start?: string | undefined;
|
|
145
|
+
end?: string | undefined;
|
|
146
|
+
summary?: string | undefined;
|
|
147
|
+
attendees?: (ChannelContextEventAttendee)[] | undefined;
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
* @public
|
|
151
|
+
*/
|
|
152
|
+
export interface ChannelContextPushToTalk {
|
|
153
|
+
/**
|
|
154
|
+
* A unique identifier of x-hoppers broadcast conference. If present x-hoppers application will use broadcast and push-to-talk functionality for the channel.
|
|
155
|
+
* @public
|
|
156
|
+
*/
|
|
157
|
+
broadcastId?: string | undefined;
|
|
158
|
+
}
|
|
159
|
+
/**
|
|
160
|
+
* @public
|
|
161
|
+
* @enum
|
|
162
|
+
*/
|
|
163
|
+
export declare const ChannelContextSource: {
|
|
164
|
+
readonly KITE: "kite";
|
|
165
|
+
};
|
|
166
|
+
/**
|
|
167
|
+
* @public
|
|
168
|
+
*/
|
|
169
|
+
export type ChannelContextSource = typeof ChannelContextSource[keyof typeof ChannelContextSource];
|
|
170
|
+
/**
|
|
171
|
+
* @public
|
|
172
|
+
*/
|
|
173
|
+
export interface ChannelContext {
|
|
174
|
+
source?: ChannelContextSource | undefined;
|
|
175
|
+
target?: string | undefined;
|
|
176
|
+
events?: (ChannelContextEvent)[] | undefined;
|
|
177
|
+
ptt?: ChannelContextPushToTalk | undefined;
|
|
178
|
+
}
|
|
179
|
+
/**
|
|
180
|
+
* @public
|
|
181
|
+
* @enum
|
|
182
|
+
*/
|
|
183
|
+
export declare const ChannelWhatsAppStatus: {
|
|
184
|
+
readonly CHANNEL_CLOSED: "24h_channel_closed";
|
|
185
|
+
};
|
|
186
|
+
/**
|
|
187
|
+
* @public
|
|
188
|
+
*/
|
|
189
|
+
export type ChannelWhatsAppStatus = typeof ChannelWhatsAppStatus[keyof typeof ChannelWhatsAppStatus];
|
|
190
|
+
/**
|
|
191
|
+
* @public
|
|
192
|
+
*/
|
|
193
|
+
export interface Channel {
|
|
194
|
+
subject?: string | undefined;
|
|
195
|
+
description?: string | undefined;
|
|
196
|
+
/**
|
|
197
|
+
* Picture URL
|
|
198
|
+
* @public
|
|
199
|
+
*/
|
|
200
|
+
picture?: string | undefined;
|
|
201
|
+
/**
|
|
202
|
+
* Picture dominant color represented by a hex value.
|
|
203
|
+
* @public
|
|
204
|
+
*/
|
|
205
|
+
pictureColor?: string | undefined;
|
|
206
|
+
access?: ChannelAccess | undefined;
|
|
207
|
+
company?: string | undefined;
|
|
208
|
+
context?: ChannelContext | undefined;
|
|
209
|
+
kite?: boolean | undefined;
|
|
210
|
+
kiteTarget?: string | undefined;
|
|
211
|
+
kiteVariant?: string | undefined;
|
|
212
|
+
kiteAssign?: string | undefined;
|
|
213
|
+
kiteServiceName?: string | undefined;
|
|
214
|
+
kiteDefaultSubject?: string | undefined;
|
|
215
|
+
service?: string | undefined;
|
|
216
|
+
serviceTitle?: string | undefined;
|
|
217
|
+
serviceRecipient?: string | undefined;
|
|
218
|
+
assignee?: User | undefined;
|
|
219
|
+
telephony?: boolean | undefined;
|
|
220
|
+
sms?: boolean | undefined;
|
|
221
|
+
mms?: boolean | undefined;
|
|
222
|
+
whatsapp?: boolean | undefined;
|
|
223
|
+
whatsappStatus?: ChannelWhatsAppStatus | undefined;
|
|
224
|
+
broadcast?: boolean | undefined;
|
|
225
|
+
external?: boolean | undefined;
|
|
226
|
+
autoRecord?: boolean | undefined;
|
|
227
|
+
transcriptionLanguage?: string | undefined;
|
|
228
|
+
channelId: string;
|
|
229
|
+
channelType: ChannelType;
|
|
230
|
+
memberCount: number;
|
|
231
|
+
createdAt: string;
|
|
232
|
+
createdBy: string;
|
|
233
|
+
updatedAt?: string | undefined;
|
|
234
|
+
}
|
|
235
|
+
/**
|
|
236
|
+
* @public
|
|
237
|
+
*/
|
|
238
|
+
export interface MessageAttachment {
|
|
239
|
+
id: string;
|
|
240
|
+
/**
|
|
241
|
+
* This *is* documentation about the field. Describe here what fsId and how to get it.
|
|
242
|
+
* @public
|
|
243
|
+
*/
|
|
244
|
+
fsId: string;
|
|
245
|
+
mime?: string | undefined;
|
|
246
|
+
name: string;
|
|
247
|
+
size: number;
|
|
248
|
+
width?: number | undefined;
|
|
249
|
+
height?: number | undefined;
|
|
250
|
+
thumbnail?: string | undefined;
|
|
251
|
+
}
|
|
127
252
|
/**
|
|
128
253
|
* @public
|
|
129
254
|
*/
|
|
@@ -235,6 +360,182 @@ export declare namespace ActionElement {
|
|
|
235
360
|
}
|
|
236
361
|
const visit: <T>(value: ActionElement, visitor: Visitor<T>) => T;
|
|
237
362
|
}
|
|
363
|
+
/**
|
|
364
|
+
* @public
|
|
365
|
+
*/
|
|
366
|
+
export interface MessageTemplateConfig {
|
|
367
|
+
whatsapp?: TemplateWithParameters | undefined;
|
|
368
|
+
}
|
|
369
|
+
/**
|
|
370
|
+
* @public
|
|
371
|
+
*/
|
|
372
|
+
export type Element = Element.ActionsMember | Element.TemplateMember | Element.$UnknownMember;
|
|
373
|
+
/**
|
|
374
|
+
* @public
|
|
375
|
+
*/
|
|
376
|
+
export declare namespace Element {
|
|
377
|
+
interface TemplateMember {
|
|
378
|
+
template: MessageTemplateConfig;
|
|
379
|
+
actions?: never;
|
|
380
|
+
$unknown?: never;
|
|
381
|
+
}
|
|
382
|
+
interface ActionsMember {
|
|
383
|
+
template?: never;
|
|
384
|
+
actions: (ActionElement)[];
|
|
385
|
+
$unknown?: never;
|
|
386
|
+
}
|
|
387
|
+
/**
|
|
388
|
+
* @public
|
|
389
|
+
*/
|
|
390
|
+
interface $UnknownMember {
|
|
391
|
+
template?: never;
|
|
392
|
+
actions?: never;
|
|
393
|
+
$unknown: [string, any];
|
|
394
|
+
}
|
|
395
|
+
interface Visitor<T> {
|
|
396
|
+
template: (value: MessageTemplateConfig) => T;
|
|
397
|
+
actions: (value: (ActionElement)[]) => T;
|
|
398
|
+
_: (name: string, value: any) => T;
|
|
399
|
+
}
|
|
400
|
+
const visit: <T>(value: Element, visitor: Visitor<T>) => T;
|
|
401
|
+
}
|
|
402
|
+
/**
|
|
403
|
+
* @public
|
|
404
|
+
*/
|
|
405
|
+
export interface MessageForward {
|
|
406
|
+
forwardCompany?: string | undefined;
|
|
407
|
+
forwardDate: string;
|
|
408
|
+
forwardEmail?: string | undefined;
|
|
409
|
+
forwardName?: string | undefined;
|
|
410
|
+
messageId: string;
|
|
411
|
+
channelId: string;
|
|
412
|
+
}
|
|
413
|
+
/**
|
|
414
|
+
* @public
|
|
415
|
+
*/
|
|
416
|
+
export interface MessageGiphy {
|
|
417
|
+
id: string;
|
|
418
|
+
size: string;
|
|
419
|
+
url: string;
|
|
420
|
+
height: string;
|
|
421
|
+
width: string;
|
|
422
|
+
}
|
|
423
|
+
/**
|
|
424
|
+
* @public
|
|
425
|
+
*/
|
|
426
|
+
export interface Reaction {
|
|
427
|
+
type?: string | undefined;
|
|
428
|
+
userId?: string | undefined;
|
|
429
|
+
messageId?: string | undefined;
|
|
430
|
+
user?: User | undefined;
|
|
431
|
+
}
|
|
432
|
+
/**
|
|
433
|
+
* @public
|
|
434
|
+
*/
|
|
435
|
+
export interface MessageQuote {
|
|
436
|
+
messageId: string;
|
|
437
|
+
channelId: string;
|
|
438
|
+
user: User;
|
|
439
|
+
text?: string | undefined;
|
|
440
|
+
attachments?: (MessageAttachment)[] | undefined;
|
|
441
|
+
forward?: MessageForward | undefined;
|
|
442
|
+
mentions?: (User)[] | undefined;
|
|
443
|
+
giphy?: MessageGiphy | undefined;
|
|
444
|
+
createdAt: string;
|
|
445
|
+
updatedAt?: string | undefined;
|
|
446
|
+
}
|
|
447
|
+
/**
|
|
448
|
+
* @public
|
|
449
|
+
* @enum
|
|
450
|
+
*/
|
|
451
|
+
export declare const MessageSmsStatus: {
|
|
452
|
+
readonly DELIVERED: "delivered";
|
|
453
|
+
readonly ERROR: "error";
|
|
454
|
+
readonly SENT: "sent";
|
|
455
|
+
readonly TRYING: "trying";
|
|
456
|
+
};
|
|
457
|
+
/**
|
|
458
|
+
* @public
|
|
459
|
+
*/
|
|
460
|
+
export type MessageSmsStatus = typeof MessageSmsStatus[keyof typeof MessageSmsStatus];
|
|
461
|
+
/**
|
|
462
|
+
* @public
|
|
463
|
+
* @enum
|
|
464
|
+
*/
|
|
465
|
+
export declare const MessageType: {
|
|
466
|
+
readonly DELETED: "deleted";
|
|
467
|
+
readonly REGULAR: "regular";
|
|
468
|
+
readonly SYSTEM: "system";
|
|
469
|
+
};
|
|
470
|
+
/**
|
|
471
|
+
* @public
|
|
472
|
+
*/
|
|
473
|
+
export type MessageType = typeof MessageType[keyof typeof MessageType];
|
|
474
|
+
/**
|
|
475
|
+
* @public
|
|
476
|
+
* @enum
|
|
477
|
+
*/
|
|
478
|
+
export declare const MessageWhatsAppStatus: {
|
|
479
|
+
readonly DELIVERED: "delivered";
|
|
480
|
+
readonly ERROR: "error";
|
|
481
|
+
readonly SENT: "sent";
|
|
482
|
+
readonly TRYING: "trying";
|
|
483
|
+
};
|
|
484
|
+
/**
|
|
485
|
+
* @public
|
|
486
|
+
*/
|
|
487
|
+
export type MessageWhatsAppStatus = typeof MessageWhatsAppStatus[keyof typeof MessageWhatsAppStatus];
|
|
488
|
+
/**
|
|
489
|
+
* @public
|
|
490
|
+
*/
|
|
491
|
+
export interface Message {
|
|
492
|
+
text?: string | undefined;
|
|
493
|
+
elements?: (Element)[] | undefined;
|
|
494
|
+
attachments?: (MessageAttachment)[] | undefined;
|
|
495
|
+
quote?: MessageQuote | undefined;
|
|
496
|
+
forward?: MessageForward | undefined;
|
|
497
|
+
whatsapp?: boolean | undefined;
|
|
498
|
+
whatsappStatus?: MessageWhatsAppStatus | undefined;
|
|
499
|
+
sms?: boolean | undefined;
|
|
500
|
+
smsStatus?: MessageSmsStatus | undefined;
|
|
501
|
+
type: MessageType;
|
|
502
|
+
giphy?: MessageGiphy | undefined;
|
|
503
|
+
silent?: boolean | undefined;
|
|
504
|
+
event?: string | undefined;
|
|
505
|
+
messageId: string;
|
|
506
|
+
channelId: string;
|
|
507
|
+
user: User;
|
|
508
|
+
edit?: boolean | undefined;
|
|
509
|
+
mentions?: (User)[] | undefined;
|
|
510
|
+
latestReactions?: (Reaction)[] | undefined;
|
|
511
|
+
reactionCounts?: Record<string, number> | undefined;
|
|
512
|
+
createdAt: string;
|
|
513
|
+
updatedAt?: string | undefined;
|
|
514
|
+
}
|
|
515
|
+
/**
|
|
516
|
+
* @public
|
|
517
|
+
* @enum
|
|
518
|
+
*/
|
|
519
|
+
export declare const ConversationFileCategory: {
|
|
520
|
+
readonly GENERAL: "channels";
|
|
521
|
+
readonly RECORDING: "recordings";
|
|
522
|
+
readonly WIZY_RECORDING: "wizyconfRecordings";
|
|
523
|
+
};
|
|
524
|
+
/**
|
|
525
|
+
* @public
|
|
526
|
+
*/
|
|
527
|
+
export type ConversationFileCategory = typeof ConversationFileCategory[keyof typeof ConversationFileCategory];
|
|
528
|
+
/**
|
|
529
|
+
* @public
|
|
530
|
+
*/
|
|
531
|
+
export declare class FileNotFoundException extends __BaseException {
|
|
532
|
+
readonly name: "FileNotFoundException";
|
|
533
|
+
readonly $fault: "client";
|
|
534
|
+
/**
|
|
535
|
+
* @internal
|
|
536
|
+
*/
|
|
537
|
+
constructor(opts: __ExceptionOptionType<FileNotFoundException, __BaseException>);
|
|
538
|
+
}
|
|
238
539
|
/**
|
|
239
540
|
* @public
|
|
240
541
|
*/
|
|
@@ -547,185 +848,53 @@ export interface AssignChannelInput {
|
|
|
547
848
|
/**
|
|
548
849
|
* A user that should be assigned to the channel. If service was specified than this field can be optional.
|
|
549
850
|
* @public
|
|
550
|
-
*/
|
|
551
|
-
assignee?: AssignChannelAssigneeRequest | undefined;
|
|
552
|
-
/**
|
|
553
|
-
* Indicates when agents from specified service should be added or removed from the conversation. Default is `ADAPTIVE`. This is applicable only if the service is included in the request.
|
|
554
|
-
* @public
|
|
555
|
-
*/
|
|
556
|
-
variant?: AssignChannelVariant | undefined;
|
|
557
|
-
}
|
|
558
|
-
/**
|
|
559
|
-
* @public
|
|
560
|
-
*/
|
|
561
|
-
export interface ServicePbx {
|
|
562
|
-
domain: string;
|
|
563
|
-
port: number;
|
|
564
|
-
}
|
|
565
|
-
/**
|
|
566
|
-
* @public
|
|
567
|
-
*/
|
|
568
|
-
export interface ServiceSettings {
|
|
569
|
-
phoneNumber?: string | undefined;
|
|
570
|
-
messagingNumber?: string | undefined;
|
|
571
|
-
}
|
|
572
|
-
/**
|
|
573
|
-
* @public
|
|
574
|
-
*/
|
|
575
|
-
export interface Service {
|
|
576
|
-
id: number;
|
|
577
|
-
uri: string;
|
|
578
|
-
title: string;
|
|
579
|
-
settings: ServiceSettings;
|
|
580
|
-
extensions: (string)[];
|
|
581
|
-
pbx: ServicePbx;
|
|
582
|
-
}
|
|
583
|
-
/**
|
|
584
|
-
* @public
|
|
585
|
-
*/
|
|
586
|
-
export interface AssignChannelOutput {
|
|
587
|
-
/**
|
|
588
|
-
* A user that assigned to the channel if specified in the request, otherwise previously assigned user or undefined.
|
|
589
|
-
* @public
|
|
590
|
-
*/
|
|
591
|
-
assignee?: User | undefined;
|
|
592
|
-
/**
|
|
593
|
-
* A service that assigned to the channel if specified in the request, otherwise previously assigned service or undefined.
|
|
594
|
-
* @public
|
|
595
|
-
*/
|
|
596
|
-
service?: Service | undefined;
|
|
597
|
-
}
|
|
598
|
-
/**
|
|
599
|
-
* @public
|
|
600
|
-
* @enum
|
|
601
|
-
*/
|
|
602
|
-
export declare const ChannelAccess: {
|
|
603
|
-
readonly PRIVATE: "private";
|
|
604
|
-
readonly PUBLIC: "public";
|
|
605
|
-
};
|
|
606
|
-
/**
|
|
607
|
-
* @public
|
|
608
|
-
*/
|
|
609
|
-
export type ChannelAccess = typeof ChannelAccess[keyof typeof ChannelAccess];
|
|
610
|
-
/**
|
|
611
|
-
* @public
|
|
612
|
-
* @enum
|
|
613
|
-
*/
|
|
614
|
-
export declare const ChannelContextEventAttendeeStatus: {
|
|
615
|
-
readonly ACCEPTED: "accepted";
|
|
616
|
-
readonly DECLINED: "declined";
|
|
617
|
-
readonly NONE: "none";
|
|
618
|
-
readonly TENTATIVE: "tentative";
|
|
619
|
-
};
|
|
620
|
-
/**
|
|
621
|
-
* @public
|
|
622
|
-
*/
|
|
623
|
-
export type ChannelContextEventAttendeeStatus = typeof ChannelContextEventAttendeeStatus[keyof typeof ChannelContextEventAttendeeStatus];
|
|
624
|
-
/**
|
|
625
|
-
* @public
|
|
626
|
-
*/
|
|
627
|
-
export interface ChannelContextEventAttendee {
|
|
628
|
-
email: string;
|
|
629
|
-
name?: string | undefined;
|
|
630
|
-
status: ChannelContextEventAttendeeStatus;
|
|
631
|
-
}
|
|
632
|
-
/**
|
|
633
|
-
* @public
|
|
634
|
-
*/
|
|
635
|
-
export interface ChannelContextEvent {
|
|
636
|
-
id?: string | undefined;
|
|
637
|
-
owner?: string | undefined;
|
|
638
|
-
start?: string | undefined;
|
|
639
|
-
end?: string | undefined;
|
|
640
|
-
summary?: string | undefined;
|
|
641
|
-
attendees?: (ChannelContextEventAttendee)[] | undefined;
|
|
642
|
-
}
|
|
643
|
-
/**
|
|
644
|
-
* @public
|
|
645
|
-
*/
|
|
646
|
-
export interface ChannelContextPushToTalk {
|
|
851
|
+
*/
|
|
852
|
+
assignee?: AssignChannelAssigneeRequest | undefined;
|
|
647
853
|
/**
|
|
648
|
-
*
|
|
854
|
+
* Indicates when agents from specified service should be added or removed from the conversation. Default is `ADAPTIVE`. This is applicable only if the service is included in the request.
|
|
649
855
|
* @public
|
|
650
856
|
*/
|
|
651
|
-
|
|
857
|
+
variant?: AssignChannelVariant | undefined;
|
|
652
858
|
}
|
|
653
|
-
/**
|
|
654
|
-
* @public
|
|
655
|
-
* @enum
|
|
656
|
-
*/
|
|
657
|
-
export declare const ChannelContextSource: {
|
|
658
|
-
readonly KITE: "kite";
|
|
659
|
-
};
|
|
660
|
-
/**
|
|
661
|
-
* @public
|
|
662
|
-
*/
|
|
663
|
-
export type ChannelContextSource = typeof ChannelContextSource[keyof typeof ChannelContextSource];
|
|
664
859
|
/**
|
|
665
860
|
* @public
|
|
666
861
|
*/
|
|
667
|
-
export interface
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
events?: (ChannelContextEvent)[] | undefined;
|
|
671
|
-
ptt?: ChannelContextPushToTalk | undefined;
|
|
862
|
+
export interface ServicePbx {
|
|
863
|
+
domain: string;
|
|
864
|
+
port: number;
|
|
672
865
|
}
|
|
673
866
|
/**
|
|
674
867
|
* @public
|
|
675
|
-
* @enum
|
|
676
868
|
*/
|
|
677
|
-
export
|
|
678
|
-
|
|
679
|
-
|
|
869
|
+
export interface ServiceSettings {
|
|
870
|
+
phoneNumber?: string | undefined;
|
|
871
|
+
messagingNumber?: string | undefined;
|
|
872
|
+
}
|
|
680
873
|
/**
|
|
681
874
|
* @public
|
|
682
875
|
*/
|
|
683
|
-
export
|
|
876
|
+
export interface Service {
|
|
877
|
+
id: number;
|
|
878
|
+
uri: string;
|
|
879
|
+
title: string;
|
|
880
|
+
settings: ServiceSettings;
|
|
881
|
+
extensions: (string)[];
|
|
882
|
+
pbx: ServicePbx;
|
|
883
|
+
}
|
|
684
884
|
/**
|
|
685
885
|
* @public
|
|
686
886
|
*/
|
|
687
|
-
export interface
|
|
688
|
-
subject?: string | undefined;
|
|
689
|
-
description?: string | undefined;
|
|
887
|
+
export interface AssignChannelOutput {
|
|
690
888
|
/**
|
|
691
|
-
*
|
|
889
|
+
* A user that assigned to the channel if specified in the request, otherwise previously assigned user or undefined.
|
|
692
890
|
* @public
|
|
693
891
|
*/
|
|
694
|
-
|
|
892
|
+
assignee?: User | undefined;
|
|
695
893
|
/**
|
|
696
|
-
*
|
|
894
|
+
* A service that assigned to the channel if specified in the request, otherwise previously assigned service or undefined.
|
|
697
895
|
* @public
|
|
698
896
|
*/
|
|
699
|
-
|
|
700
|
-
access?: ChannelAccess | undefined;
|
|
701
|
-
company?: string | undefined;
|
|
702
|
-
context?: ChannelContext | undefined;
|
|
703
|
-
kite?: boolean | undefined;
|
|
704
|
-
kiteTarget?: string | undefined;
|
|
705
|
-
kiteVariant?: string | undefined;
|
|
706
|
-
kiteAssign?: string | undefined;
|
|
707
|
-
kiteServiceName?: string | undefined;
|
|
708
|
-
kiteDefaultSubject?: string | undefined;
|
|
709
|
-
service?: string | undefined;
|
|
710
|
-
serviceTitle?: string | undefined;
|
|
711
|
-
serviceRecipient?: string | undefined;
|
|
712
|
-
assignee?: User | undefined;
|
|
713
|
-
telephony?: boolean | undefined;
|
|
714
|
-
sms?: boolean | undefined;
|
|
715
|
-
mms?: boolean | undefined;
|
|
716
|
-
whatsapp?: boolean | undefined;
|
|
717
|
-
whatsappStatus?: ChannelWhatsAppStatus | undefined;
|
|
718
|
-
broadcast?: boolean | undefined;
|
|
719
|
-
external?: boolean | undefined;
|
|
720
|
-
autoRecord?: boolean | undefined;
|
|
721
|
-
transcriptionLanguage?: string | undefined;
|
|
722
|
-
wizyGuestViewOnly?: boolean | undefined;
|
|
723
|
-
channelId: string;
|
|
724
|
-
channelType: ChannelType;
|
|
725
|
-
memberCount: number;
|
|
726
|
-
createdAt: string;
|
|
727
|
-
createdBy: string;
|
|
728
|
-
updatedAt?: string | undefined;
|
|
897
|
+
service?: Service | undefined;
|
|
729
898
|
}
|
|
730
899
|
/**
|
|
731
900
|
* @public
|
|
@@ -824,7 +993,6 @@ export interface CreateGroupChannelInput {
|
|
|
824
993
|
assignee?: User | undefined;
|
|
825
994
|
autoRecord?: boolean | undefined;
|
|
826
995
|
transcriptionLanguage?: string | undefined;
|
|
827
|
-
wizyGuestViewOnly?: boolean | undefined;
|
|
828
996
|
/**
|
|
829
997
|
* The unique identifier of the user when a service token is used.
|
|
830
998
|
* @public
|
|
@@ -896,126 +1064,6 @@ export declare class TagsLimitReachedException extends __BaseException {
|
|
|
896
1064
|
*/
|
|
897
1065
|
constructor(opts: __ExceptionOptionType<TagsLimitReachedException, __BaseException>);
|
|
898
1066
|
}
|
|
899
|
-
/**
|
|
900
|
-
* @public
|
|
901
|
-
*/
|
|
902
|
-
export interface MessageAttachment {
|
|
903
|
-
id: string;
|
|
904
|
-
/**
|
|
905
|
-
* This *is* documentation about the field. Describe here what fsId and how to get it.
|
|
906
|
-
* @public
|
|
907
|
-
*/
|
|
908
|
-
fsId: string;
|
|
909
|
-
mime?: string | undefined;
|
|
910
|
-
name: string;
|
|
911
|
-
size: number;
|
|
912
|
-
width?: number | undefined;
|
|
913
|
-
height?: number | undefined;
|
|
914
|
-
thumbnail?: string | undefined;
|
|
915
|
-
}
|
|
916
|
-
/**
|
|
917
|
-
* @public
|
|
918
|
-
*/
|
|
919
|
-
export interface MessageTemplateConfig {
|
|
920
|
-
whatsapp?: TemplateWithParameters | undefined;
|
|
921
|
-
}
|
|
922
|
-
/**
|
|
923
|
-
* @public
|
|
924
|
-
*/
|
|
925
|
-
export type Element = Element.ActionsMember | Element.TemplateMember | Element.$UnknownMember;
|
|
926
|
-
/**
|
|
927
|
-
* @public
|
|
928
|
-
*/
|
|
929
|
-
export declare namespace Element {
|
|
930
|
-
interface TemplateMember {
|
|
931
|
-
template: MessageTemplateConfig;
|
|
932
|
-
actions?: never;
|
|
933
|
-
$unknown?: never;
|
|
934
|
-
}
|
|
935
|
-
interface ActionsMember {
|
|
936
|
-
template?: never;
|
|
937
|
-
actions: (ActionElement)[];
|
|
938
|
-
$unknown?: never;
|
|
939
|
-
}
|
|
940
|
-
/**
|
|
941
|
-
* @public
|
|
942
|
-
*/
|
|
943
|
-
interface $UnknownMember {
|
|
944
|
-
template?: never;
|
|
945
|
-
actions?: never;
|
|
946
|
-
$unknown: [string, any];
|
|
947
|
-
}
|
|
948
|
-
interface Visitor<T> {
|
|
949
|
-
template: (value: MessageTemplateConfig) => T;
|
|
950
|
-
actions: (value: (ActionElement)[]) => T;
|
|
951
|
-
_: (name: string, value: any) => T;
|
|
952
|
-
}
|
|
953
|
-
const visit: <T>(value: Element, visitor: Visitor<T>) => T;
|
|
954
|
-
}
|
|
955
|
-
/**
|
|
956
|
-
* @public
|
|
957
|
-
*/
|
|
958
|
-
export interface MessageForward {
|
|
959
|
-
forwardCompany?: string | undefined;
|
|
960
|
-
forwardDate: string;
|
|
961
|
-
forwardEmail?: string | undefined;
|
|
962
|
-
forwardName?: string | undefined;
|
|
963
|
-
messageId: string;
|
|
964
|
-
channelId: string;
|
|
965
|
-
}
|
|
966
|
-
/**
|
|
967
|
-
* @public
|
|
968
|
-
*/
|
|
969
|
-
export interface MessageGiphy {
|
|
970
|
-
id: string;
|
|
971
|
-
size: string;
|
|
972
|
-
url: string;
|
|
973
|
-
height: string;
|
|
974
|
-
width: string;
|
|
975
|
-
}
|
|
976
|
-
/**
|
|
977
|
-
* @public
|
|
978
|
-
*/
|
|
979
|
-
export interface MessageQuote {
|
|
980
|
-
messageId: string;
|
|
981
|
-
channelId: string;
|
|
982
|
-
user: User;
|
|
983
|
-
text?: string | undefined;
|
|
984
|
-
attachments?: (MessageAttachment)[] | undefined;
|
|
985
|
-
forward?: MessageForward | undefined;
|
|
986
|
-
mentions?: (User)[] | undefined;
|
|
987
|
-
giphy?: MessageGiphy | undefined;
|
|
988
|
-
createdAt: string;
|
|
989
|
-
updatedAt?: string | undefined;
|
|
990
|
-
}
|
|
991
|
-
/**
|
|
992
|
-
* @public
|
|
993
|
-
* @enum
|
|
994
|
-
*/
|
|
995
|
-
export declare const MessageSmsStatus: {
|
|
996
|
-
readonly DELIVERED: "delivered";
|
|
997
|
-
readonly ERROR: "error";
|
|
998
|
-
readonly SENT: "sent";
|
|
999
|
-
readonly TRYING: "trying";
|
|
1000
|
-
};
|
|
1001
|
-
/**
|
|
1002
|
-
* @public
|
|
1003
|
-
*/
|
|
1004
|
-
export type MessageSmsStatus = typeof MessageSmsStatus[keyof typeof MessageSmsStatus];
|
|
1005
|
-
/**
|
|
1006
|
-
* @public
|
|
1007
|
-
* @enum
|
|
1008
|
-
*/
|
|
1009
|
-
export declare const MessageWhatsAppStatus: {
|
|
1010
|
-
readonly DELIVERED: "delivered";
|
|
1011
|
-
readonly ERROR: "error";
|
|
1012
|
-
readonly SENT: "sent";
|
|
1013
|
-
readonly TRYING: "trying";
|
|
1014
|
-
};
|
|
1015
|
-
/**
|
|
1016
|
-
* @public
|
|
1017
|
-
*/
|
|
1018
|
-
export type MessageWhatsAppStatus = typeof MessageWhatsAppStatus[keyof typeof MessageWhatsAppStatus];
|
|
1019
1067
|
/**
|
|
1020
1068
|
* @public
|
|
1021
1069
|
*/
|
|
@@ -1306,54 +1354,6 @@ export interface DeleteMessageReactionOutput {
|
|
|
1306
1354
|
*/
|
|
1307
1355
|
export interface DescribeEventInput {
|
|
1308
1356
|
}
|
|
1309
|
-
/**
|
|
1310
|
-
* @public
|
|
1311
|
-
*/
|
|
1312
|
-
export interface Reaction {
|
|
1313
|
-
type?: string | undefined;
|
|
1314
|
-
userId?: string | undefined;
|
|
1315
|
-
messageId?: string | undefined;
|
|
1316
|
-
user?: User | undefined;
|
|
1317
|
-
}
|
|
1318
|
-
/**
|
|
1319
|
-
* @public
|
|
1320
|
-
* @enum
|
|
1321
|
-
*/
|
|
1322
|
-
export declare const MessageType: {
|
|
1323
|
-
readonly REGULAR: "regular";
|
|
1324
|
-
readonly SYSTEM: "system";
|
|
1325
|
-
};
|
|
1326
|
-
/**
|
|
1327
|
-
* @public
|
|
1328
|
-
*/
|
|
1329
|
-
export type MessageType = typeof MessageType[keyof typeof MessageType];
|
|
1330
|
-
/**
|
|
1331
|
-
* @public
|
|
1332
|
-
*/
|
|
1333
|
-
export interface Message {
|
|
1334
|
-
text?: string | undefined;
|
|
1335
|
-
elements?: (Element)[] | undefined;
|
|
1336
|
-
attachments?: (MessageAttachment)[] | undefined;
|
|
1337
|
-
quote?: MessageQuote | undefined;
|
|
1338
|
-
forward?: MessageForward | undefined;
|
|
1339
|
-
whatsapp?: boolean | undefined;
|
|
1340
|
-
whatsappStatus?: MessageWhatsAppStatus | undefined;
|
|
1341
|
-
sms?: boolean | undefined;
|
|
1342
|
-
smsStatus?: MessageSmsStatus | undefined;
|
|
1343
|
-
type: MessageType;
|
|
1344
|
-
giphy?: MessageGiphy | undefined;
|
|
1345
|
-
silent?: boolean | undefined;
|
|
1346
|
-
event?: string | undefined;
|
|
1347
|
-
messageId: string;
|
|
1348
|
-
channelId: string;
|
|
1349
|
-
user: User;
|
|
1350
|
-
edit?: boolean | undefined;
|
|
1351
|
-
mentions?: (User)[] | undefined;
|
|
1352
|
-
latestReactions?: (Reaction)[] | undefined;
|
|
1353
|
-
reactionCounts?: Record<string, number> | undefined;
|
|
1354
|
-
createdAt: string;
|
|
1355
|
-
updatedAt?: string | undefined;
|
|
1356
|
-
}
|
|
1357
1357
|
/**
|
|
1358
1358
|
* @public
|
|
1359
1359
|
*/
|
|
@@ -1826,6 +1826,11 @@ export interface GetOrCreateSmsChannelInput {
|
|
|
1826
1826
|
* @public
|
|
1827
1827
|
*/
|
|
1828
1828
|
recipientNumber?: string | undefined;
|
|
1829
|
+
/**
|
|
1830
|
+
* Indicates if the channel is outgoing. It's prevents applying routing settings for the channel. This parameter will be reset to false after 48 hours. Default is false.
|
|
1831
|
+
* @public
|
|
1832
|
+
*/
|
|
1833
|
+
outgoing?: boolean | undefined;
|
|
1829
1834
|
}
|
|
1830
1835
|
/**
|
|
1831
1836
|
* @public
|
|
@@ -1888,6 +1893,11 @@ export interface GetOrCreateWhatsAppChannelInput {
|
|
|
1888
1893
|
* @public
|
|
1889
1894
|
*/
|
|
1890
1895
|
recipientNumber?: string | undefined;
|
|
1896
|
+
/**
|
|
1897
|
+
* Indicates if the channel is outgoing. It's prevents applying routing settings for the channel. This parameter will be reset to false after 48 hours. Default is false.
|
|
1898
|
+
* @public
|
|
1899
|
+
*/
|
|
1900
|
+
outgoing?: boolean | undefined;
|
|
1891
1901
|
}
|
|
1892
1902
|
/**
|
|
1893
1903
|
* @public
|
|
@@ -2501,7 +2511,6 @@ export interface PartialUpdateChannelSetOptions {
|
|
|
2501
2511
|
assignee?: User | undefined;
|
|
2502
2512
|
autoRecord?: boolean | undefined;
|
|
2503
2513
|
transcriptionLanguage?: string | undefined;
|
|
2504
|
-
wizyGuestViewOnly?: boolean | undefined;
|
|
2505
2514
|
}
|
|
2506
2515
|
/**
|
|
2507
2516
|
* @public
|
|
@@ -3258,7 +3267,6 @@ export interface UpdateChannelInput {
|
|
|
3258
3267
|
assignee?: User | undefined;
|
|
3259
3268
|
autoRecord?: boolean | undefined;
|
|
3260
3269
|
transcriptionLanguage?: string | undefined;
|
|
3261
|
-
wizyGuestViewOnly?: boolean | undefined;
|
|
3262
3270
|
/**
|
|
3263
3271
|
* The unique identifier of the channel to be updated.
|
|
3264
3272
|
* @public
|