@wildix/xbees-conversations-client 1.2.3 → 1.2.5

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 (35) hide show
  1. package/dist-cjs/models/models_0.js +61 -60
  2. package/dist-cjs/protocols/Aws_restJson1.js +2 -0
  3. package/dist-es/models/models_0.js +59 -58
  4. package/dist-es/protocols/Aws_restJson1.js +2 -0
  5. package/dist-types/commands/AddChannelMemberCommand.d.ts +1 -0
  6. package/dist-types/commands/AddChannelMembersCommand.d.ts +1 -0
  7. package/dist-types/commands/AssignChannelCommand.d.ts +1 -0
  8. package/dist-types/commands/CreateGroupChannelCommand.d.ts +2 -0
  9. package/dist-types/commands/CreateKiteChannelCommand.d.ts +3 -0
  10. package/dist-types/commands/DescribeEventCommand.d.ts +10 -5
  11. package/dist-types/commands/GetChannelCommand.d.ts +1 -0
  12. package/dist-types/commands/GetChannelMemberCommand.d.ts +1 -0
  13. package/dist-types/commands/GetMessageCommand.d.ts +3 -1
  14. package/dist-types/commands/GetOrCreateDirectChannelCommand.d.ts +1 -0
  15. package/dist-types/commands/GetOrCreateSmsChannelCommand.d.ts +2 -0
  16. package/dist-types/commands/GetOrCreateTelephonyChannelCommand.d.ts +1 -0
  17. package/dist-types/commands/GetOrCreateWhatsAppChannelCommand.d.ts +2 -0
  18. package/dist-types/commands/InviteCommand.d.ts +1 -0
  19. package/dist-types/commands/JoinChannelCommand.d.ts +1 -0
  20. package/dist-types/commands/ListChannelMembersCommand.d.ts +1 -0
  21. package/dist-types/commands/ListChannelMembersReadStatusCommand.d.ts +1 -0
  22. package/dist-types/commands/ListChannelsCommand.d.ts +1 -0
  23. package/dist-types/commands/ListMessageReactionsCommand.d.ts +1 -0
  24. package/dist-types/commands/ListMessagesCommand.d.ts +3 -1
  25. package/dist-types/commands/ListPinnedMessagesCommand.d.ts +3 -1
  26. package/dist-types/commands/PartialUpdateChannelCommand.d.ts +2 -0
  27. package/dist-types/commands/PartialUpdateMessageCommand.d.ts +5 -1
  28. package/dist-types/commands/QueryChannelsCommand.d.ts +1 -0
  29. package/dist-types/commands/SendGiphyCommand.d.ts +3 -1
  30. package/dist-types/commands/SendMessageCommand.d.ts +5 -1
  31. package/dist-types/commands/SendSystemMessageCommand.d.ts +3 -1
  32. package/dist-types/commands/UpdateChannelCommand.d.ts +2 -0
  33. package/dist-types/commands/UpdateMessageCommand.d.ts +5 -1
  34. package/dist-types/models/models_0.d.ts +351 -339
  35. 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,143 @@ 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
+ wizyGuestViewOnly?: boolean | undefined;
229
+ channelId: string;
230
+ channelType: ChannelType;
231
+ memberCount: number;
232
+ createdAt: string;
233
+ createdBy: string;
234
+ updatedAt?: string | undefined;
235
+ }
236
+ /**
237
+ * @public
238
+ */
239
+ export interface MessageAttachment {
240
+ id: string;
241
+ /**
242
+ * This *is* documentation about the field. Describe here what fsId and how to get it.
243
+ * @public
244
+ */
245
+ fsId: string;
246
+ mime?: string | undefined;
247
+ name: string;
248
+ size: number;
249
+ width?: number | undefined;
250
+ height?: number | undefined;
251
+ thumbnail?: string | undefined;
252
+ }
127
253
  /**
128
254
  * @public
129
255
  */
@@ -235,6 +361,182 @@ export declare namespace ActionElement {
235
361
  }
236
362
  const visit: <T>(value: ActionElement, visitor: Visitor<T>) => T;
237
363
  }
364
+ /**
365
+ * @public
366
+ */
367
+ export interface MessageTemplateConfig {
368
+ whatsapp?: TemplateWithParameters | undefined;
369
+ }
370
+ /**
371
+ * @public
372
+ */
373
+ export type Element = Element.ActionsMember | Element.TemplateMember | Element.$UnknownMember;
374
+ /**
375
+ * @public
376
+ */
377
+ export declare namespace Element {
378
+ interface TemplateMember {
379
+ template: MessageTemplateConfig;
380
+ actions?: never;
381
+ $unknown?: never;
382
+ }
383
+ interface ActionsMember {
384
+ template?: never;
385
+ actions: (ActionElement)[];
386
+ $unknown?: never;
387
+ }
388
+ /**
389
+ * @public
390
+ */
391
+ interface $UnknownMember {
392
+ template?: never;
393
+ actions?: never;
394
+ $unknown: [string, any];
395
+ }
396
+ interface Visitor<T> {
397
+ template: (value: MessageTemplateConfig) => T;
398
+ actions: (value: (ActionElement)[]) => T;
399
+ _: (name: string, value: any) => T;
400
+ }
401
+ const visit: <T>(value: Element, visitor: Visitor<T>) => T;
402
+ }
403
+ /**
404
+ * @public
405
+ */
406
+ export interface MessageForward {
407
+ forwardCompany?: string | undefined;
408
+ forwardDate: string;
409
+ forwardEmail?: string | undefined;
410
+ forwardName?: string | undefined;
411
+ messageId: string;
412
+ channelId: string;
413
+ }
414
+ /**
415
+ * @public
416
+ */
417
+ export interface MessageGiphy {
418
+ id: string;
419
+ size: string;
420
+ url: string;
421
+ height: string;
422
+ width: string;
423
+ }
424
+ /**
425
+ * @public
426
+ */
427
+ export interface Reaction {
428
+ type?: string | undefined;
429
+ userId?: string | undefined;
430
+ messageId?: string | undefined;
431
+ user?: User | undefined;
432
+ }
433
+ /**
434
+ * @public
435
+ */
436
+ export interface MessageQuote {
437
+ messageId: string;
438
+ channelId: string;
439
+ user: User;
440
+ text?: string | undefined;
441
+ attachments?: (MessageAttachment)[] | undefined;
442
+ forward?: MessageForward | undefined;
443
+ mentions?: (User)[] | undefined;
444
+ giphy?: MessageGiphy | undefined;
445
+ createdAt: string;
446
+ updatedAt?: string | undefined;
447
+ }
448
+ /**
449
+ * @public
450
+ * @enum
451
+ */
452
+ export declare const MessageSmsStatus: {
453
+ readonly DELIVERED: "delivered";
454
+ readonly ERROR: "error";
455
+ readonly SENT: "sent";
456
+ readonly TRYING: "trying";
457
+ };
458
+ /**
459
+ * @public
460
+ */
461
+ export type MessageSmsStatus = typeof MessageSmsStatus[keyof typeof MessageSmsStatus];
462
+ /**
463
+ * @public
464
+ * @enum
465
+ */
466
+ export declare const MessageType: {
467
+ readonly DELETED: "deleted";
468
+ readonly REGULAR: "regular";
469
+ readonly SYSTEM: "system";
470
+ };
471
+ /**
472
+ * @public
473
+ */
474
+ export type MessageType = typeof MessageType[keyof typeof MessageType];
475
+ /**
476
+ * @public
477
+ * @enum
478
+ */
479
+ export declare const MessageWhatsAppStatus: {
480
+ readonly DELIVERED: "delivered";
481
+ readonly ERROR: "error";
482
+ readonly SENT: "sent";
483
+ readonly TRYING: "trying";
484
+ };
485
+ /**
486
+ * @public
487
+ */
488
+ export type MessageWhatsAppStatus = typeof MessageWhatsAppStatus[keyof typeof MessageWhatsAppStatus];
489
+ /**
490
+ * @public
491
+ */
492
+ export interface Message {
493
+ text?: string | undefined;
494
+ elements?: (Element)[] | undefined;
495
+ attachments?: (MessageAttachment)[] | undefined;
496
+ quote?: MessageQuote | undefined;
497
+ forward?: MessageForward | undefined;
498
+ whatsapp?: boolean | undefined;
499
+ whatsappStatus?: MessageWhatsAppStatus | undefined;
500
+ sms?: boolean | undefined;
501
+ smsStatus?: MessageSmsStatus | undefined;
502
+ type: MessageType;
503
+ giphy?: MessageGiphy | undefined;
504
+ silent?: boolean | undefined;
505
+ event?: string | undefined;
506
+ messageId: string;
507
+ channelId: string;
508
+ user: User;
509
+ edit?: boolean | undefined;
510
+ mentions?: (User)[] | undefined;
511
+ latestReactions?: (Reaction)[] | undefined;
512
+ reactionCounts?: Record<string, number> | undefined;
513
+ createdAt: string;
514
+ updatedAt?: string | undefined;
515
+ }
516
+ /**
517
+ * @public
518
+ * @enum
519
+ */
520
+ export declare const ConversationFileCategory: {
521
+ readonly GENERAL: "channels";
522
+ readonly RECORDING: "recordings";
523
+ readonly WIZY_RECORDING: "wizyconfRecordings";
524
+ };
525
+ /**
526
+ * @public
527
+ */
528
+ export type ConversationFileCategory = typeof ConversationFileCategory[keyof typeof ConversationFileCategory];
529
+ /**
530
+ * @public
531
+ */
532
+ export declare class FileNotFoundException extends __BaseException {
533
+ readonly name: "FileNotFoundException";
534
+ readonly $fault: "client";
535
+ /**
536
+ * @internal
537
+ */
538
+ constructor(opts: __ExceptionOptionType<FileNotFoundException, __BaseException>);
539
+ }
238
540
  /**
239
541
  * @public
240
542
  */
@@ -548,184 +850,52 @@ export interface AssignChannelInput {
548
850
  * A user that should be assigned to the channel. If service was specified than this field can be optional.
549
851
  * @public
550
852
  */
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 {
853
+ assignee?: AssignChannelAssigneeRequest | undefined;
647
854
  /**
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.
855
+ * 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
856
  * @public
650
857
  */
651
- broadcastId?: string | undefined;
858
+ variant?: AssignChannelVariant | undefined;
652
859
  }
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
860
  /**
665
861
  * @public
666
862
  */
667
- export interface ChannelContext {
668
- source?: ChannelContextSource | undefined;
669
- target?: string | undefined;
670
- events?: (ChannelContextEvent)[] | undefined;
671
- ptt?: ChannelContextPushToTalk | undefined;
863
+ export interface ServicePbx {
864
+ domain: string;
865
+ port: number;
672
866
  }
673
867
  /**
674
868
  * @public
675
- * @enum
676
869
  */
677
- export declare const ChannelWhatsAppStatus: {
678
- readonly CHANNEL_CLOSED: "24h_channel_closed";
679
- };
870
+ export interface ServiceSettings {
871
+ phoneNumber?: string | undefined;
872
+ messagingNumber?: string | undefined;
873
+ }
680
874
  /**
681
875
  * @public
682
876
  */
683
- export type ChannelWhatsAppStatus = typeof ChannelWhatsAppStatus[keyof typeof ChannelWhatsAppStatus];
877
+ export interface Service {
878
+ id: number;
879
+ uri: string;
880
+ title: string;
881
+ settings: ServiceSettings;
882
+ extensions: (string)[];
883
+ pbx: ServicePbx;
884
+ }
684
885
  /**
685
886
  * @public
686
887
  */
687
- export interface Channel {
688
- subject?: string | undefined;
689
- description?: string | undefined;
888
+ export interface AssignChannelOutput {
690
889
  /**
691
- * Picture URL
890
+ * A user that assigned to the channel if specified in the request, otherwise previously assigned user or undefined.
692
891
  * @public
693
892
  */
694
- picture?: string | undefined;
893
+ assignee?: User | undefined;
695
894
  /**
696
- * Picture dominant color represented by a hex value.
895
+ * A service that assigned to the channel if specified in the request, otherwise previously assigned service or undefined.
697
896
  * @public
698
897
  */
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
- wizyGuestViewOnly?: boolean | undefined;
723
- channelId: string;
724
- channelType: ChannelType;
725
- memberCount: number;
726
- createdAt: string;
727
- createdBy: string;
728
- updatedAt?: string | undefined;
898
+ service?: Service | undefined;
729
899
  }
730
900
  /**
731
901
  * @public
@@ -896,126 +1066,6 @@ export declare class TagsLimitReachedException extends __BaseException {
896
1066
  */
897
1067
  constructor(opts: __ExceptionOptionType<TagsLimitReachedException, __BaseException>);
898
1068
  }
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
1069
  /**
1020
1070
  * @public
1021
1071
  */
@@ -1306,54 +1356,6 @@ export interface DeleteMessageReactionOutput {
1306
1356
  */
1307
1357
  export interface DescribeEventInput {
1308
1358
  }
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
1359
  /**
1358
1360
  * @public
1359
1361
  */
@@ -1826,6 +1828,11 @@ export interface GetOrCreateSmsChannelInput {
1826
1828
  * @public
1827
1829
  */
1828
1830
  recipientNumber?: string | undefined;
1831
+ /**
1832
+ * 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.
1833
+ * @public
1834
+ */
1835
+ outgoing?: boolean | undefined;
1829
1836
  }
1830
1837
  /**
1831
1838
  * @public
@@ -1888,6 +1895,11 @@ export interface GetOrCreateWhatsAppChannelInput {
1888
1895
  * @public
1889
1896
  */
1890
1897
  recipientNumber?: string | undefined;
1898
+ /**
1899
+ * 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.
1900
+ * @public
1901
+ */
1902
+ outgoing?: boolean | undefined;
1891
1903
  }
1892
1904
  /**
1893
1905
  * @public