@wildix/xbees-conversations-client 1.2.2 → 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.
Files changed (33) hide show
  1. package/dist-cjs/models/models_0.js +61 -60
  2. package/dist-es/models/models_0.js +59 -58
  3. package/dist-types/commands/AddChannelMemberCommand.d.ts +1 -0
  4. package/dist-types/commands/AddChannelMembersCommand.d.ts +1 -0
  5. package/dist-types/commands/AssignChannelCommand.d.ts +1 -0
  6. package/dist-types/commands/CreateGroupChannelCommand.d.ts +2 -0
  7. package/dist-types/commands/CreateKiteChannelCommand.d.ts +3 -0
  8. package/dist-types/commands/DescribeEventCommand.d.ts +10 -5
  9. package/dist-types/commands/GetChannelCommand.d.ts +1 -0
  10. package/dist-types/commands/GetChannelMemberCommand.d.ts +1 -0
  11. package/dist-types/commands/GetMessageCommand.d.ts +3 -1
  12. package/dist-types/commands/GetOrCreateDirectChannelCommand.d.ts +1 -0
  13. package/dist-types/commands/GetOrCreateSmsChannelCommand.d.ts +1 -0
  14. package/dist-types/commands/GetOrCreateTelephonyChannelCommand.d.ts +1 -0
  15. package/dist-types/commands/GetOrCreateWhatsAppChannelCommand.d.ts +1 -0
  16. package/dist-types/commands/InviteCommand.d.ts +1 -0
  17. package/dist-types/commands/JoinChannelCommand.d.ts +1 -0
  18. package/dist-types/commands/ListChannelMembersCommand.d.ts +1 -0
  19. package/dist-types/commands/ListChannelMembersReadStatusCommand.d.ts +1 -0
  20. package/dist-types/commands/ListChannelsCommand.d.ts +1 -0
  21. package/dist-types/commands/ListMessageReactionsCommand.d.ts +1 -0
  22. package/dist-types/commands/ListMessagesCommand.d.ts +3 -1
  23. package/dist-types/commands/ListPinnedMessagesCommand.d.ts +3 -1
  24. package/dist-types/commands/PartialUpdateChannelCommand.d.ts +2 -0
  25. package/dist-types/commands/PartialUpdateMessageCommand.d.ts +5 -1
  26. package/dist-types/commands/QueryChannelsCommand.d.ts +1 -0
  27. package/dist-types/commands/SendGiphyCommand.d.ts +3 -1
  28. package/dist-types/commands/SendMessageCommand.d.ts +5 -1
  29. package/dist-types/commands/SendSystemMessageCommand.d.ts +3 -1
  30. package/dist-types/commands/UpdateChannelCommand.d.ts +2 -0
  31. package/dist-types/commands/UpdateMessageCommand.d.ts +5 -1
  32. package/dist-types/models/models_0.d.ts +347 -345
  33. package/package.json +1 -1
@@ -71,26 +71,14 @@ export interface TemplateWithParameters {
71
71
  * @public
72
72
  * @enum
73
73
  */
74
- export declare const ConversationFileCategory: {
75
- readonly GENERAL: "channels";
76
- readonly RECORDING: "recordings";
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 ConversationFileCategory = typeof ConversationFileCategory[keyof typeof ConversationFileCategory];
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
  */
@@ -541,190 +842,59 @@ export interface AssignChannelInput {
541
842
  silent?: boolean | undefined;
542
843
  /**
543
844
  * Service information to assign to. If service is not empty than `addAgentFromService` option could be used.
544
- * @public
545
- */
546
- service?: AssignChannelServiceRequest | undefined;
547
- /**
548
- * A user that should be assigned to the channel. If service was specified than this field can be optional.
549
- * @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 {
845
+ * @public
846
+ */
847
+ service?: AssignChannelServiceRequest | undefined;
647
848
  /**
648
- * A unique identifier of x-hoppers broadcast conference. If present x-hoppers application will use broadcast and push-to-talk functionality for the channel.
849
+ * A user that should be assigned to the channel. If service was specified than this field can be optional.
649
850
  * @public
650
851
  */
651
- broadcastId?: string | undefined;
852
+ assignee?: AssignChannelAssigneeRequest | undefined;
853
+ /**
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.
855
+ * @public
856
+ */
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 ChannelContext {
668
- source?: ChannelContextSource | undefined;
669
- target?: string | undefined;
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 declare const ChannelWhatsAppStatus: {
678
- readonly CHANNEL_CLOSED: "24h_channel_closed";
679
- };
869
+ export interface ServiceSettings {
870
+ phoneNumber?: string | undefined;
871
+ messagingNumber?: string | undefined;
872
+ }
680
873
  /**
681
874
  * @public
682
875
  */
683
- export type ChannelWhatsAppStatus = typeof ChannelWhatsAppStatus[keyof typeof ChannelWhatsAppStatus];
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 Channel {
688
- subject?: string | undefined;
689
- description?: string | undefined;
887
+ export interface AssignChannelOutput {
690
888
  /**
691
- * Picture URL
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
- picture?: string | undefined;
892
+ assignee?: User | undefined;
695
893
  /**
696
- * Picture dominant color represented by a hex value.
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
- pictureColor?: string | undefined;
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
- channelId: string;
723
- channelType: ChannelType;
724
- memberCount: number;
725
- createdAt: string;
726
- createdBy: string;
727
- updatedAt?: string | undefined;
897
+ service?: Service | undefined;
728
898
  }
729
899
  /**
730
900
  * @public
@@ -894,126 +1064,6 @@ export declare class TagsLimitReachedException extends __BaseException {
894
1064
  */
895
1065
  constructor(opts: __ExceptionOptionType<TagsLimitReachedException, __BaseException>);
896
1066
  }
897
- /**
898
- * @public
899
- */
900
- export interface MessageAttachment {
901
- id: string;
902
- /**
903
- * This *is* documentation about the field. Describe here what fsId and how to get it.
904
- * @public
905
- */
906
- fsId: string;
907
- mime?: string | undefined;
908
- name: string;
909
- size: number;
910
- width?: number | undefined;
911
- height?: number | undefined;
912
- thumbnail?: string | undefined;
913
- }
914
- /**
915
- * @public
916
- */
917
- export interface MessageTemplateConfig {
918
- whatsapp?: TemplateWithParameters | undefined;
919
- }
920
- /**
921
- * @public
922
- */
923
- export type Element = Element.ActionsMember | Element.TemplateMember | Element.$UnknownMember;
924
- /**
925
- * @public
926
- */
927
- export declare namespace Element {
928
- interface TemplateMember {
929
- template: MessageTemplateConfig;
930
- actions?: never;
931
- $unknown?: never;
932
- }
933
- interface ActionsMember {
934
- template?: never;
935
- actions: (ActionElement)[];
936
- $unknown?: never;
937
- }
938
- /**
939
- * @public
940
- */
941
- interface $UnknownMember {
942
- template?: never;
943
- actions?: never;
944
- $unknown: [string, any];
945
- }
946
- interface Visitor<T> {
947
- template: (value: MessageTemplateConfig) => T;
948
- actions: (value: (ActionElement)[]) => T;
949
- _: (name: string, value: any) => T;
950
- }
951
- const visit: <T>(value: Element, visitor: Visitor<T>) => T;
952
- }
953
- /**
954
- * @public
955
- */
956
- export interface MessageForward {
957
- forwardCompany?: string | undefined;
958
- forwardDate: string;
959
- forwardEmail?: string | undefined;
960
- forwardName?: string | undefined;
961
- messageId: string;
962
- channelId: string;
963
- }
964
- /**
965
- * @public
966
- */
967
- export interface MessageGiphy {
968
- id: string;
969
- size: string;
970
- url: string;
971
- height: string;
972
- width: string;
973
- }
974
- /**
975
- * @public
976
- */
977
- export interface MessageQuote {
978
- messageId: string;
979
- channelId: string;
980
- user: User;
981
- text?: string | undefined;
982
- attachments?: (MessageAttachment)[] | undefined;
983
- forward?: MessageForward | undefined;
984
- mentions?: (User)[] | undefined;
985
- giphy?: MessageGiphy | undefined;
986
- createdAt: string;
987
- updatedAt?: string | undefined;
988
- }
989
- /**
990
- * @public
991
- * @enum
992
- */
993
- export declare const MessageSmsStatus: {
994
- readonly DELIVERED: "delivered";
995
- readonly ERROR: "error";
996
- readonly SENT: "sent";
997
- readonly TRYING: "trying";
998
- };
999
- /**
1000
- * @public
1001
- */
1002
- export type MessageSmsStatus = typeof MessageSmsStatus[keyof typeof MessageSmsStatus];
1003
- /**
1004
- * @public
1005
- * @enum
1006
- */
1007
- export declare const MessageWhatsAppStatus: {
1008
- readonly DELIVERED: "delivered";
1009
- readonly ERROR: "error";
1010
- readonly SENT: "sent";
1011
- readonly TRYING: "trying";
1012
- };
1013
- /**
1014
- * @public
1015
- */
1016
- export type MessageWhatsAppStatus = typeof MessageWhatsAppStatus[keyof typeof MessageWhatsAppStatus];
1017
1067
  /**
1018
1068
  * @public
1019
1069
  */
@@ -1304,54 +1354,6 @@ export interface DeleteMessageReactionOutput {
1304
1354
  */
1305
1355
  export interface DescribeEventInput {
1306
1356
  }
1307
- /**
1308
- * @public
1309
- */
1310
- export interface Reaction {
1311
- type?: string | undefined;
1312
- userId?: string | undefined;
1313
- messageId?: string | undefined;
1314
- user?: User | undefined;
1315
- }
1316
- /**
1317
- * @public
1318
- * @enum
1319
- */
1320
- export declare const MessageType: {
1321
- readonly REGULAR: "regular";
1322
- readonly SYSTEM: "system";
1323
- };
1324
- /**
1325
- * @public
1326
- */
1327
- export type MessageType = typeof MessageType[keyof typeof MessageType];
1328
- /**
1329
- * @public
1330
- */
1331
- export interface Message {
1332
- text?: string | undefined;
1333
- elements?: (Element)[] | undefined;
1334
- attachments?: (MessageAttachment)[] | undefined;
1335
- quote?: MessageQuote | undefined;
1336
- forward?: MessageForward | undefined;
1337
- whatsapp?: boolean | undefined;
1338
- whatsappStatus?: MessageWhatsAppStatus | undefined;
1339
- sms?: boolean | undefined;
1340
- smsStatus?: MessageSmsStatus | undefined;
1341
- type: MessageType;
1342
- giphy?: MessageGiphy | undefined;
1343
- silent?: boolean | undefined;
1344
- event?: string | undefined;
1345
- messageId: string;
1346
- channelId: string;
1347
- user: User;
1348
- edit?: boolean | undefined;
1349
- mentions?: (User)[] | undefined;
1350
- latestReactions?: (Reaction)[] | undefined;
1351
- reactionCounts?: Record<string, number> | undefined;
1352
- createdAt: string;
1353
- updatedAt?: string | undefined;
1354
- }
1355
1357
  /**
1356
1358
  * @public
1357
1359
  */