@wildix/stream-client 4.1.8 → 4.1.9

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 (66) hide show
  1. package/dist-cjs/models/enums.js +14 -8
  2. package/dist-cjs/schemas/schemas_0.js +156 -160
  3. package/dist-es/models/enums.js +13 -7
  4. package/dist-es/schemas/schemas_0.js +156 -160
  5. package/dist-types/commands/AddChannelMemberCommand.d.ts +0 -2
  6. package/dist-types/commands/AddChannelMembersCommand.d.ts +0 -2
  7. package/dist-types/commands/AssignChannelCommand.d.ts +0 -2
  8. package/dist-types/commands/CreateGroupChannelCommand.d.ts +7 -10
  9. package/dist-types/commands/CreateKiteChannelCommand.d.ts +8 -6
  10. package/dist-types/commands/CreateSectionCommand.d.ts +0 -2
  11. package/dist-types/commands/DeleteChannelMemberCommand.d.ts +2 -5
  12. package/dist-types/commands/DeleteMessageCommand.d.ts +2 -5
  13. package/dist-types/commands/DeleteMessageReactionCommand.d.ts +2 -4
  14. package/dist-types/commands/DeleteSectionCommand.d.ts +2 -5
  15. package/dist-types/commands/GetChannelCommand.d.ts +4 -6
  16. package/dist-types/commands/GetChannelMemberCommand.d.ts +0 -2
  17. package/dist-types/commands/GetDirectChannelIdCommand.d.ts +0 -2
  18. package/dist-types/commands/GetFilePresignedDownloadUrlCommand.d.ts +0 -2
  19. package/dist-types/commands/GetInboxCommand.d.ts +4 -6
  20. package/dist-types/commands/GetMessageCommand.d.ts +2 -4
  21. package/dist-types/commands/GetOrCreateDirectChannelCommand.d.ts +4 -6
  22. package/dist-types/commands/GetOrCreateSmsChannelCommand.d.ts +4 -6
  23. package/dist-types/commands/GetOrCreateTelephonyChannelCommand.d.ts +4 -6
  24. package/dist-types/commands/GetOrCreateWhatsAppChannelCommand.d.ts +4 -6
  25. package/dist-types/commands/GetSmsChannelIdCommand.d.ts +0 -2
  26. package/dist-types/commands/GetTelephonyChannelIdCommand.d.ts +0 -2
  27. package/dist-types/commands/GetTokenCommand.d.ts +0 -2
  28. package/dist-types/commands/GetUploadedFileInfoCommand.d.ts +0 -2
  29. package/dist-types/commands/GetWhatsAppChannelIdCommand.d.ts +0 -2
  30. package/dist-types/commands/HideChannelCommand.d.ts +2 -5
  31. package/dist-types/commands/JoinChannelCommand.d.ts +4 -6
  32. package/dist-types/commands/LeaveChannelCommand.d.ts +2 -5
  33. package/dist-types/commands/ListChannelMembersCommand.d.ts +0 -2
  34. package/dist-types/commands/ListChannelMembersReadStatusCommand.d.ts +0 -2
  35. package/dist-types/commands/ListChannelsCommand.d.ts +4 -6
  36. package/dist-types/commands/ListMentionsCommand.d.ts +2 -4
  37. package/dist-types/commands/ListMessagesCommand.d.ts +2 -4
  38. package/dist-types/commands/MarkReadCommand.d.ts +0 -2
  39. package/dist-types/commands/MarkUnreadCommand.d.ts +0 -2
  40. package/dist-types/commands/MoveChannelToSectionCommand.d.ts +0 -2
  41. package/dist-types/commands/MuteChannelCommand.d.ts +0 -2
  42. package/dist-types/commands/PartialUpdateChannelCommand.d.ts +8 -11
  43. package/dist-types/commands/PartialUpdateMessageCommand.d.ts +4 -4
  44. package/dist-types/commands/PinChannelCommand.d.ts +2 -5
  45. package/dist-types/commands/PinMessageCommand.d.ts +2 -4
  46. package/dist-types/commands/QueryChannelsCommand.d.ts +4 -6
  47. package/dist-types/commands/RemoveChannelFromSectionCommand.d.ts +0 -2
  48. package/dist-types/commands/RenameSectionCommand.d.ts +0 -2
  49. package/dist-types/commands/SearchChannelsCommand.d.ts +4 -6
  50. package/dist-types/commands/SearchMessagesCommand.d.ts +2 -4
  51. package/dist-types/commands/SendGiphyCommand.d.ts +2 -4
  52. package/dist-types/commands/SendMessageCommand.d.ts +4 -4
  53. package/dist-types/commands/SendMessageReactionCommand.d.ts +2 -4
  54. package/dist-types/commands/SendSystemMessageCommand.d.ts +2 -4
  55. package/dist-types/commands/SendTypingStartCommand.d.ts +2 -5
  56. package/dist-types/commands/SendTypingStopCommand.d.ts +2 -5
  57. package/dist-types/commands/ShowChannelCommand.d.ts +2 -5
  58. package/dist-types/commands/UnmuteChannelCommand.d.ts +0 -2
  59. package/dist-types/commands/UnpinChannelCommand.d.ts +2 -5
  60. package/dist-types/commands/UnpinMessageCommand.d.ts +2 -4
  61. package/dist-types/commands/UpdateChannelCommand.d.ts +7 -10
  62. package/dist-types/commands/UpdateMessageCommand.d.ts +4 -4
  63. package/dist-types/commands/UploadFileCommand.d.ts +0 -2
  64. package/dist-types/models/enums.d.ts +30 -16
  65. package/dist-types/models/models_0.d.ts +98 -649
  66. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import type { AssignChannelVariant, AttachmentType, ButtonVariant, ChannelAccess, ChannelContextEventAttendeeStatus, ChannelContextSource, ChannelMemberRole, ChannelMessengerStatus, ChannelsFilter, ChannelType, ChannelWhatsAppStatus, DownloadStrategy, FileCategory, GroupChannelCreationEventType, GroupChannelUnsetOptions, MentionsFilter, MessageAnchor, MessageMessengerStatus, MessageSmsStatus, MessageType, MessageUnsetFields, MessageWhatsAppStatus, SearchSort, SectionType } from "./enums";
1
+ import type { AssignChannelVariant, AttachmentType, ButtonVariant, ChannelAccess, ChannelContextEventAttendeeStatus, ChannelContextSource, ChannelMemberRole, ChannelMessagingStatus, ChannelsFilter, ChannelType, ChannelWhatsAppStatus, DownloadStrategy, FileCategory, GroupChannelCreationEventType, GroupChannelUnsetOptions, MentionsFilter, MessageAnchor, MessageMessagingStatus, MessageSmsStatus, MessageType, MessageUnsetFields, MessageWhatsAppStatus, MessagingChannel, SearchSort, SectionType } from "./enums";
2
2
  /**
3
3
  * @public
4
4
  */
@@ -189,16 +189,6 @@ export interface ChannelMember {
189
189
  * @public
190
190
  */
191
191
  export interface AddChannelMemberOutput {
192
- /**
193
- * The request ID of the request.
194
- * @public
195
- */
196
- requestId?: string | undefined;
197
- /**
198
- * The duration of the request in milliseconds.
199
- * @public
200
- */
201
- requestDuration?: number | undefined;
202
192
  /**
203
193
  * Channel membership row.
204
194
  * @public
@@ -238,16 +228,6 @@ export interface AddChannelMembersInput {
238
228
  * @public
239
229
  */
240
230
  export interface AddChannelMembersOutput {
241
- /**
242
- * The request ID of the request.
243
- * @public
244
- */
245
- requestId?: string | undefined;
246
- /**
247
- * The duration of the request in milliseconds.
248
- * @public
249
- */
250
- requestDuration?: number | undefined;
251
231
  members: ChannelMember[];
252
232
  }
253
233
  /**
@@ -346,16 +326,6 @@ export interface AssignChannelInput {
346
326
  * @public
347
327
  */
348
328
  export interface AssignChannelOutput {
349
- /**
350
- * The request ID of the request.
351
- * @public
352
- */
353
- requestId?: string | undefined;
354
- /**
355
- * The duration of the request in milliseconds.
356
- * @public
357
- */
358
- requestDuration?: number | undefined;
359
329
  assigneeId?: string | undefined;
360
330
  serviceUri?: string | undefined;
361
331
  }
@@ -492,6 +462,11 @@ export interface Channel {
492
462
  service?: string | undefined;
493
463
  serviceRecipient?: string | undefined;
494
464
  telephony?: boolean | undefined;
465
+ /**
466
+ * The customer messaging channel this conversation runs over. Set when the channel is created and never changed. Absent on every other channel.
467
+ * @public
468
+ */
469
+ messagingChannel?: MessagingChannel | undefined;
495
470
  external?: boolean | undefined;
496
471
  /**
497
472
  * Message ids currently pinned at channel scope, newest pin first. Empty when nothing is pinned.
@@ -581,25 +556,20 @@ export interface Channel {
581
556
  */
582
557
  wizyGuestViewOnly?: boolean | undefined;
583
558
  /**
584
- * Indicates if the channel supports Facebook Messenger. Default is false.
585
- * @public
586
- */
587
- messenger?: boolean | undefined;
588
- /**
589
- * The Messenger reply state of the channel: WINDOW_CLOSED after classound refused a reply, absent while a reply can be sent.
559
+ * The reply state of the channel: WINDOW_CLOSED after classound refused a reply, absent while a reply can be sent.
590
560
  * @public
591
561
  */
592
- messengerStatus?: ChannelMessengerStatus | undefined;
562
+ messagingStatus?: ChannelMessagingStatus | undefined;
593
563
  /**
594
- * The Facebook Page ID the conversation runs through. Written by kite from the inbound event, because the channel id hashes the page's linked service and not the page, and a reply has to name the page it is sent from.
564
+ * The business side of the conversation: the Facebook Page ID on Messenger, the Instagram account ID on Instagram. Written by kite from the inbound event, because the channel id hashes the sender's linked service and not the sender, and a reply has to name the sender it is sent from.
595
565
  * @public
596
566
  */
597
- messengerPageId?: string | undefined;
567
+ messagingSenderId?: string | undefined;
598
568
  /**
599
- * Epoch seconds until which a reply still reaches the person: Meta's 7 day HUMAN_AGENT deadline, restarted by each inbound message. classound applies the tag itself, so this is the one deadline a client has to show. 0 means the deadline is not known, which is what the inbound event carries when the session row was gone before it could be read back; it does not mean the window has closed, so a client reads the window as closed on `messengerReplyUntil > 0 && now > messengerReplyUntil` and shows nothing at 0.
569
+ * Epoch seconds until which a reply still reaches the person. On Messenger and Instagram this is Meta's 7 day HUMAN_AGENT deadline, restarted by each inbound message; classound applies the tag itself, so this is the one deadline a client has to show. 0 means the deadline is not known, which is what the inbound event carries when the session row was gone before it could be read back; it does not mean the window has closed, so a client reads the window as closed on `messagingReplyUntil > 0 && now > messagingReplyUntil` and shows nothing at 0. Absent on a channel with no reply window.
600
570
  * @public
601
571
  */
602
- messengerReplyUntil?: number | undefined;
572
+ messagingReplyUntil?: number | undefined;
603
573
  }
604
574
  /**
605
575
  * Read pointer for one channel member.
@@ -717,25 +687,20 @@ export interface CreateGroupChannelInput {
717
687
  */
718
688
  wizyGuestViewOnly?: boolean | undefined;
719
689
  /**
720
- * Indicates if the channel supports Facebook Messenger. Default is false.
690
+ * The reply state of the channel: WINDOW_CLOSED after classound refused a reply, absent while a reply can be sent.
721
691
  * @public
722
692
  */
723
- messenger?: boolean | undefined;
693
+ messagingStatus?: ChannelMessagingStatus | undefined;
724
694
  /**
725
- * The Messenger reply state of the channel: WINDOW_CLOSED after classound refused a reply, absent while a reply can be sent.
695
+ * The business side of the conversation: the Facebook Page ID on Messenger, the Instagram account ID on Instagram. Written by kite from the inbound event, because the channel id hashes the sender's linked service and not the sender, and a reply has to name the sender it is sent from.
726
696
  * @public
727
697
  */
728
- messengerStatus?: ChannelMessengerStatus | undefined;
698
+ messagingSenderId?: string | undefined;
729
699
  /**
730
- * The Facebook Page ID the conversation runs through. Written by kite from the inbound event, because the channel id hashes the page's linked service and not the page, and a reply has to name the page it is sent from.
700
+ * Epoch seconds until which a reply still reaches the person. On Messenger and Instagram this is Meta's 7 day HUMAN_AGENT deadline, restarted by each inbound message; classound applies the tag itself, so this is the one deadline a client has to show. 0 means the deadline is not known, which is what the inbound event carries when the session row was gone before it could be read back; it does not mean the window has closed, so a client reads the window as closed on `messagingReplyUntil > 0 && now > messagingReplyUntil` and shows nothing at 0. Absent on a channel with no reply window.
731
701
  * @public
732
702
  */
733
- messengerPageId?: string | undefined;
734
- /**
735
- * Epoch seconds until which a reply still reaches the person: Meta's 7 day HUMAN_AGENT deadline, restarted by each inbound message. classound applies the tag itself, so this is the one deadline a client has to show. 0 means the deadline is not known, which is what the inbound event carries when the session row was gone before it could be read back; it does not mean the window has closed, so a client reads the window as closed on `messengerReplyUntil > 0 && now > messengerReplyUntil` and shows nothing at 0.
736
- * @public
737
- */
738
- messengerReplyUntil?: number | undefined;
703
+ messagingReplyUntil?: number | undefined;
739
704
  /**
740
705
  * Optional client-supplied channel id.
741
706
  * @public
@@ -761,16 +726,6 @@ export interface CreateGroupChannelInput {
761
726
  * @public
762
727
  */
763
728
  export interface CreateGroupChannelOutput {
764
- /**
765
- * The request ID of the request.
766
- * @public
767
- */
768
- requestId?: string | undefined;
769
- /**
770
- * The duration of the request in milliseconds.
771
- * @public
772
- */
773
- requestDuration?: number | undefined;
774
729
  channel: Channel;
775
730
  }
776
731
  /**
@@ -932,6 +887,16 @@ export interface InitialMessage {
932
887
  */
933
888
  sms?: boolean | undefined;
934
889
  smsStatus?: MessageSmsStatus | undefined;
890
+ /**
891
+ * A customer messaging channel that reaches x-bees through classound and is not SMS or WhatsApp. One discriminator instead of a boolean per channel, so a new channel adds a member here and not a set of channel fields. RCS is listed but not accepted yet: whether an RCS conversation is a telephony channel is still open, so conversations refuses it until its ticket decides.
892
+ * @public
893
+ */
894
+ messagingChannel?: MessagingChannel | undefined;
895
+ /**
896
+ * The delivery state of a message an agent sent over a customer messaging channel (see MessagingChannel), the same four states as WhatsApp. TRYING, SENT and ERROR are written by kite around the send; DELIVERED and a late ERROR arrive through the channel's status stream event (MESSENGER.STATUS today). A READ report is recorded as DELIVERED, as the WhatsApp producer does one hop earlier.
897
+ * @public
898
+ */
899
+ messagingStatus?: MessageMessagingStatus | undefined;
935
900
  /**
936
901
  * Optional client-supplied message id. Auto-generated when omitted.
937
902
  * @public
@@ -995,6 +960,16 @@ export interface WelcomeMessage {
995
960
  */
996
961
  sms?: boolean | undefined;
997
962
  smsStatus?: MessageSmsStatus | undefined;
963
+ /**
964
+ * A customer messaging channel that reaches x-bees through classound and is not SMS or WhatsApp. One discriminator instead of a boolean per channel, so a new channel adds a member here and not a set of channel fields. RCS is listed but not accepted yet: whether an RCS conversation is a telephony channel is still open, so conversations refuses it until its ticket decides.
965
+ * @public
966
+ */
967
+ messagingChannel?: MessagingChannel | undefined;
968
+ /**
969
+ * The delivery state of a message an agent sent over a customer messaging channel (see MessagingChannel), the same four states as WhatsApp. TRYING, SENT and ERROR are written by kite around the send; DELIVERED and a late ERROR arrive through the channel's status stream event (MESSENGER.STATUS today). A READ report is recorded as DELIVERED, as the WhatsApp producer does one hop earlier.
970
+ * @public
971
+ */
972
+ messagingStatus?: MessageMessagingStatus | undefined;
998
973
  /**
999
974
  * Optional client-supplied message id. Auto-generated when omitted.
1000
975
  * @public
@@ -1043,16 +1018,6 @@ export interface CreateKiteChannelInput {
1043
1018
  * @public
1044
1019
  */
1045
1020
  export interface CreateKiteChannelOutput {
1046
- /**
1047
- * The request ID of the request.
1048
- * @public
1049
- */
1050
- requestId?: string | undefined;
1051
- /**
1052
- * The duration of the request in milliseconds.
1053
- * @public
1054
- */
1055
- requestDuration?: number | undefined;
1056
1021
  channel: Channel;
1057
1022
  }
1058
1023
  /**
@@ -1126,16 +1091,6 @@ export interface Section {
1126
1091
  * @public
1127
1092
  */
1128
1093
  export interface CreateSectionOutput {
1129
- /**
1130
- * The request ID of the request.
1131
- * @public
1132
- */
1133
- requestId?: string | undefined;
1134
- /**
1135
- * The duration of the request in milliseconds.
1136
- * @public
1137
- */
1138
- requestDuration?: number | undefined;
1139
1094
  /**
1140
1095
  * Inbox section with metadata, channel count, and unread counters.
1141
1096
  * @public
@@ -1188,16 +1143,6 @@ export interface DeleteChannelMemberInput {
1188
1143
  * @public
1189
1144
  */
1190
1145
  export interface DeleteChannelMemberOutput {
1191
- /**
1192
- * The request ID of the request.
1193
- * @public
1194
- */
1195
- requestId?: string | undefined;
1196
- /**
1197
- * The duration of the request in milliseconds.
1198
- * @public
1199
- */
1200
- requestDuration?: number | undefined;
1201
1146
  }
1202
1147
  /**
1203
1148
  * @public
@@ -1224,16 +1169,6 @@ export interface DeleteMessageInput {
1224
1169
  * @public
1225
1170
  */
1226
1171
  export interface DeleteMessageOutput {
1227
- /**
1228
- * The request ID of the request.
1229
- * @public
1230
- */
1231
- requestId?: string | undefined;
1232
- /**
1233
- * The duration of the request in milliseconds.
1234
- * @public
1235
- */
1236
- requestDuration?: number | undefined;
1237
1172
  }
1238
1173
  /**
1239
1174
  * @public
@@ -1512,12 +1447,16 @@ export interface Message {
1512
1447
  * @public
1513
1448
  */
1514
1449
  pollId?: string | undefined;
1515
- messenger?: boolean | undefined;
1516
1450
  /**
1517
- * The delivery state of a Facebook Messenger message an agent sent, the same four states as WhatsApp. TRYING, SENT and ERROR are written by kite around the send; DELIVERED and a late ERROR arrive through the MESSENGER.STATUS stream event. A READ report is recorded as DELIVERED, as the WhatsApp producer does one hop earlier.
1451
+ * A customer messaging channel that reaches x-bees through classound and is not SMS or WhatsApp. One discriminator instead of a boolean per channel, so a new channel adds a member here and not a set of channel fields. RCS is listed but not accepted yet: whether an RCS conversation is a telephony channel is still open, so conversations refuses it until its ticket decides.
1518
1452
  * @public
1519
1453
  */
1520
- messengerStatus?: MessageMessengerStatus | undefined;
1454
+ messagingChannel?: MessagingChannel | undefined;
1455
+ /**
1456
+ * The delivery state of a message an agent sent over a customer messaging channel (see MessagingChannel), the same four states as WhatsApp. TRYING, SENT and ERROR are written by kite around the send; DELIVERED and a late ERROR arrive through the channel's status stream event (MESSENGER.STATUS today). A READ report is recorded as DELIVERED, as the WhatsApp producer does one hop earlier.
1457
+ * @public
1458
+ */
1459
+ messagingStatus?: MessageMessagingStatus | undefined;
1521
1460
  }
1522
1461
  /**
1523
1462
  * @public
@@ -1528,16 +1467,6 @@ export interface DeleteMessageReactionOutput {
1528
1467
  * @public
1529
1468
  */
1530
1469
  message: Message;
1531
- /**
1532
- * The request ID of the request.
1533
- * @public
1534
- */
1535
- requestId?: string | undefined;
1536
- /**
1537
- * The duration of the request in milliseconds.
1538
- * @public
1539
- */
1540
- requestDuration?: number | undefined;
1541
1470
  }
1542
1471
  /**
1543
1472
  * @public
@@ -1563,16 +1492,6 @@ export interface DeleteSectionInput {
1563
1492
  * @public
1564
1493
  */
1565
1494
  export interface DeleteSectionOutput {
1566
- /**
1567
- * The request ID of the request.
1568
- * @public
1569
- */
1570
- requestId?: string | undefined;
1571
- /**
1572
- * The duration of the request in milliseconds.
1573
- * @public
1574
- */
1575
- requestDuration?: number | undefined;
1576
1495
  }
1577
1496
  /**
1578
1497
  * @public
@@ -1598,16 +1517,6 @@ export interface GetChannelInput {
1598
1517
  * @public
1599
1518
  */
1600
1519
  export interface GetChannelOutput {
1601
- /**
1602
- * The request ID of the request.
1603
- * @public
1604
- */
1605
- requestId?: string | undefined;
1606
- /**
1607
- * The duration of the request in milliseconds.
1608
- * @public
1609
- */
1610
- requestDuration?: number | undefined;
1611
1520
  channel: Channel;
1612
1521
  }
1613
1522
  /**
@@ -1635,16 +1544,6 @@ export interface GetChannelMemberInput {
1635
1544
  * @public
1636
1545
  */
1637
1546
  export interface GetChannelMemberOutput {
1638
- /**
1639
- * The request ID of the request.
1640
- * @public
1641
- */
1642
- requestId?: string | undefined;
1643
- /**
1644
- * The duration of the request in milliseconds.
1645
- * @public
1646
- */
1647
- requestDuration?: number | undefined;
1648
1547
  /**
1649
1548
  * Channel membership row.
1650
1549
  * @public
@@ -1676,16 +1575,6 @@ export interface GetDirectChannelIdInput {
1676
1575
  * @public
1677
1576
  */
1678
1577
  export interface GetDirectChannelIdOutput {
1679
- /**
1680
- * The request ID of the request.
1681
- * @public
1682
- */
1683
- requestId?: string | undefined;
1684
- /**
1685
- * The duration of the request in milliseconds.
1686
- * @public
1687
- */
1688
- requestDuration?: number | undefined;
1689
1578
  /**
1690
1579
  * Direct-channel ids are the 8-4-4-4-8 slices of the two member ids. An `a_` member id puts `_` in a slice, so the pattern allows it.
1691
1580
  * @public
@@ -1732,16 +1621,6 @@ export interface GetFilePresignedDownloadUrlInput {
1732
1621
  * @public
1733
1622
  */
1734
1623
  export interface GetFilePresignedDownloadUrlOutput {
1735
- /**
1736
- * The request ID of the request.
1737
- * @public
1738
- */
1739
- requestId?: string | undefined;
1740
- /**
1741
- * The duration of the request in milliseconds.
1742
- * @public
1743
- */
1744
- requestDuration?: number | undefined;
1745
1624
  /**
1746
1625
  * Presigned URL for downloading the file.
1747
1626
  * @public
@@ -1888,6 +1767,11 @@ export interface InboxChannel {
1888
1767
  service?: string | undefined;
1889
1768
  serviceRecipient?: string | undefined;
1890
1769
  telephony?: boolean | undefined;
1770
+ /**
1771
+ * The customer messaging channel this conversation runs over. Set when the channel is created and never changed. Absent on every other channel.
1772
+ * @public
1773
+ */
1774
+ messagingChannel?: MessagingChannel | undefined;
1891
1775
  external?: boolean | undefined;
1892
1776
  /**
1893
1777
  * Message ids currently pinned at channel scope, newest pin first. Empty when nothing is pinned.
@@ -1977,25 +1861,20 @@ export interface InboxChannel {
1977
1861
  */
1978
1862
  wizyGuestViewOnly?: boolean | undefined;
1979
1863
  /**
1980
- * Indicates if the channel supports Facebook Messenger. Default is false.
1981
- * @public
1982
- */
1983
- messenger?: boolean | undefined;
1984
- /**
1985
- * The Messenger reply state of the channel: WINDOW_CLOSED after classound refused a reply, absent while a reply can be sent.
1864
+ * The reply state of the channel: WINDOW_CLOSED after classound refused a reply, absent while a reply can be sent.
1986
1865
  * @public
1987
1866
  */
1988
- messengerStatus?: ChannelMessengerStatus | undefined;
1867
+ messagingStatus?: ChannelMessagingStatus | undefined;
1989
1868
  /**
1990
- * The Facebook Page ID the conversation runs through. Written by kite from the inbound event, because the channel id hashes the page's linked service and not the page, and a reply has to name the page it is sent from.
1869
+ * The business side of the conversation: the Facebook Page ID on Messenger, the Instagram account ID on Instagram. Written by kite from the inbound event, because the channel id hashes the sender's linked service and not the sender, and a reply has to name the sender it is sent from.
1991
1870
  * @public
1992
1871
  */
1993
- messengerPageId?: string | undefined;
1872
+ messagingSenderId?: string | undefined;
1994
1873
  /**
1995
- * Epoch seconds until which a reply still reaches the person: Meta's 7 day HUMAN_AGENT deadline, restarted by each inbound message. classound applies the tag itself, so this is the one deadline a client has to show. 0 means the deadline is not known, which is what the inbound event carries when the session row was gone before it could be read back; it does not mean the window has closed, so a client reads the window as closed on `messengerReplyUntil > 0 && now > messengerReplyUntil` and shows nothing at 0.
1874
+ * Epoch seconds until which a reply still reaches the person. On Messenger and Instagram this is Meta's 7 day HUMAN_AGENT deadline, restarted by each inbound message; classound applies the tag itself, so this is the one deadline a client has to show. 0 means the deadline is not known, which is what the inbound event carries when the session row was gone before it could be read back; it does not mean the window has closed, so a client reads the window as closed on `messagingReplyUntil > 0 && now > messagingReplyUntil` and shows nothing at 0. Absent on a channel with no reply window.
1996
1875
  * @public
1997
1876
  */
1998
- messengerReplyUntil?: number | undefined;
1877
+ messagingReplyUntil?: number | undefined;
1999
1878
  /**
2000
1879
  * Per-user inbox state for a channel: mute and hide flags, unread counters, and read pointers.
2001
1880
  * @public
@@ -2006,16 +1885,6 @@ export interface InboxChannel {
2006
1885
  * @public
2007
1886
  */
2008
1887
  export interface GetInboxOutput {
2009
- /**
2010
- * The request ID of the request.
2011
- * @public
2012
- */
2013
- requestId?: string | undefined;
2014
- /**
2015
- * The duration of the request in milliseconds.
2016
- * @public
2017
- */
2018
- requestDuration?: number | undefined;
2019
1888
  /**
2020
1889
  * Recent channels with per-user state and last-message preview.
2021
1890
  * @public
@@ -2052,16 +1921,6 @@ export interface GetMessageInput {
2052
1921
  * @public
2053
1922
  */
2054
1923
  export interface GetMessageOutput {
2055
- /**
2056
- * The request ID of the request.
2057
- * @public
2058
- */
2059
- requestId?: string | undefined;
2060
- /**
2061
- * The duration of the request in milliseconds.
2062
- * @public
2063
- */
2064
- requestDuration?: number | undefined;
2065
1924
  /**
2066
1925
  * Message row returned by listing and lookup endpoints. Deleted messages keep their position with `deletedAt` set and empty body.
2067
1926
  * @public
@@ -2093,16 +1952,6 @@ export interface GetOrCreateDirectChannelInput {
2093
1952
  * @public
2094
1953
  */
2095
1954
  export interface GetOrCreateDirectChannelOutput {
2096
- /**
2097
- * The request ID of the request.
2098
- * @public
2099
- */
2100
- requestId?: string | undefined;
2101
- /**
2102
- * The duration of the request in milliseconds.
2103
- * @public
2104
- */
2105
- requestDuration?: number | undefined;
2106
1955
  channel: Channel;
2107
1956
  }
2108
1957
  /**
@@ -2140,16 +1989,6 @@ export interface GetOrCreateSmsChannelInput {
2140
1989
  * @public
2141
1990
  */
2142
1991
  export interface GetOrCreateSmsChannelOutput {
2143
- /**
2144
- * The request ID of the request.
2145
- * @public
2146
- */
2147
- requestId?: string | undefined;
2148
- /**
2149
- * The duration of the request in milliseconds.
2150
- * @public
2151
- */
2152
- requestDuration?: number | undefined;
2153
1992
  channel: Channel;
2154
1993
  }
2155
1994
  /**
@@ -2186,16 +2025,6 @@ export interface GetOrCreateTelephonyChannelInput {
2186
2025
  * @public
2187
2026
  */
2188
2027
  export interface GetOrCreateTelephonyChannelOutput {
2189
- /**
2190
- * The request ID of the request.
2191
- * @public
2192
- */
2193
- requestId?: string | undefined;
2194
- /**
2195
- * The duration of the request in milliseconds.
2196
- * @public
2197
- */
2198
- requestDuration?: number | undefined;
2199
2028
  channel: Channel;
2200
2029
  }
2201
2030
  /**
@@ -2233,16 +2062,6 @@ export interface GetOrCreateWhatsAppChannelInput {
2233
2062
  * @public
2234
2063
  */
2235
2064
  export interface GetOrCreateWhatsAppChannelOutput {
2236
- /**
2237
- * The request ID of the request.
2238
- * @public
2239
- */
2240
- requestId?: string | undefined;
2241
- /**
2242
- * The duration of the request in milliseconds.
2243
- * @public
2244
- */
2245
- requestDuration?: number | undefined;
2246
2065
  channel: Channel;
2247
2066
  }
2248
2067
  /**
@@ -2279,16 +2098,6 @@ export interface GetSmsChannelIdInput {
2279
2098
  * @public
2280
2099
  */
2281
2100
  export interface GetSmsChannelIdOutput {
2282
- /**
2283
- * The request ID of the request.
2284
- * @public
2285
- */
2286
- requestId?: string | undefined;
2287
- /**
2288
- * The duration of the request in milliseconds.
2289
- * @public
2290
- */
2291
- requestDuration?: number | undefined;
2292
2101
  /**
2293
2102
  * Direct-channel ids are the 8-4-4-4-8 slices of the two member ids. An `a_` member id puts `_` in a slice, so the pattern allows it.
2294
2103
  * @public
@@ -2329,16 +2138,6 @@ export interface GetTelephonyChannelIdInput {
2329
2138
  * @public
2330
2139
  */
2331
2140
  export interface GetTelephonyChannelIdOutput {
2332
- /**
2333
- * The request ID of the request.
2334
- * @public
2335
- */
2336
- requestId?: string | undefined;
2337
- /**
2338
- * The duration of the request in milliseconds.
2339
- * @public
2340
- */
2341
- requestDuration?: number | undefined;
2342
2141
  /**
2343
2142
  * Direct-channel ids are the 8-4-4-4-8 slices of the two member ids. An `a_` member id puts `_` in a slice, so the pattern allows it.
2344
2143
  * @public
@@ -2369,16 +2168,6 @@ export interface GetTokenInput {
2369
2168
  * @public
2370
2169
  */
2371
2170
  export interface GetTokenOutput {
2372
- /**
2373
- * The request ID of the request.
2374
- * @public
2375
- */
2376
- requestId?: string | undefined;
2377
- /**
2378
- * The duration of the request in milliseconds.
2379
- * @public
2380
- */
2381
- requestDuration?: number | undefined;
2382
2171
  /**
2383
2172
  * Authorization token.
2384
2173
  * @public
@@ -2465,16 +2254,6 @@ export interface UploadedFileInfo {
2465
2254
  * @public
2466
2255
  */
2467
2256
  export interface GetUploadedFileInfoOutput {
2468
- /**
2469
- * The request ID of the request.
2470
- * @public
2471
- */
2472
- requestId?: string | undefined;
2473
- /**
2474
- * The duration of the request in milliseconds.
2475
- * @public
2476
- */
2477
- requestDuration?: number | undefined;
2478
2257
  /**
2479
2258
  * Metadata for a file uploaded to the channel file store but not yet attached to a message.
2480
2259
  * @public
@@ -2515,16 +2294,6 @@ export interface GetWhatsAppChannelIdInput {
2515
2294
  * @public
2516
2295
  */
2517
2296
  export interface GetWhatsAppChannelIdOutput {
2518
- /**
2519
- * The request ID of the request.
2520
- * @public
2521
- */
2522
- requestId?: string | undefined;
2523
- /**
2524
- * The duration of the request in milliseconds.
2525
- * @public
2526
- */
2527
- requestDuration?: number | undefined;
2528
2297
  /**
2529
2298
  * Direct-channel ids are the 8-4-4-4-8 slices of the two member ids. An `a_` member id puts `_` in a slice, so the pattern allows it.
2530
2299
  * @public
@@ -2575,16 +2344,6 @@ export interface HideChannelInput {
2575
2344
  * @public
2576
2345
  */
2577
2346
  export interface HideChannelOutput {
2578
- /**
2579
- * The request ID of the request.
2580
- * @public
2581
- */
2582
- requestId?: string | undefined;
2583
- /**
2584
- * The duration of the request in milliseconds.
2585
- * @public
2586
- */
2587
- requestDuration?: number | undefined;
2588
2347
  }
2589
2348
  /**
2590
2349
  * @public
@@ -2611,16 +2370,6 @@ export interface JoinChannelInput {
2611
2370
  * @public
2612
2371
  */
2613
2372
  export interface JoinChannelOutput {
2614
- /**
2615
- * The request ID of the request.
2616
- * @public
2617
- */
2618
- requestId?: string | undefined;
2619
- /**
2620
- * The duration of the request in milliseconds.
2621
- * @public
2622
- */
2623
- requestDuration?: number | undefined;
2624
2373
  channel: Channel;
2625
2374
  }
2626
2375
  /**
@@ -2648,16 +2397,6 @@ export interface LeaveChannelInput {
2648
2397
  * @public
2649
2398
  */
2650
2399
  export interface LeaveChannelOutput {
2651
- /**
2652
- * The request ID of the request.
2653
- * @public
2654
- */
2655
- requestId?: string | undefined;
2656
- /**
2657
- * The duration of the request in milliseconds.
2658
- * @public
2659
- */
2660
- requestDuration?: number | undefined;
2661
2400
  }
2662
2401
  /**
2663
2402
  * @public
@@ -2685,16 +2424,6 @@ export interface ListChannelMembersInput {
2685
2424
  * @public
2686
2425
  */
2687
2426
  export interface ListChannelMembersOutput {
2688
- /**
2689
- * The request ID of the request.
2690
- * @public
2691
- */
2692
- requestId?: string | undefined;
2693
- /**
2694
- * The duration of the request in milliseconds.
2695
- * @public
2696
- */
2697
- requestDuration?: number | undefined;
2698
2427
  members: ChannelMember[];
2699
2428
  }
2700
2429
  /**
@@ -2721,16 +2450,6 @@ export interface ListChannelMembersReadStatusInput {
2721
2450
  * @public
2722
2451
  */
2723
2452
  export interface ListChannelMembersReadStatusOutput {
2724
- /**
2725
- * The request ID of the request.
2726
- * @public
2727
- */
2728
- requestId?: string | undefined;
2729
- /**
2730
- * The duration of the request in milliseconds.
2731
- * @public
2732
- */
2733
- requestDuration?: number | undefined;
2734
2453
  members: ChannelMemberReadStatus[];
2735
2454
  }
2736
2455
  /**
@@ -2767,16 +2486,6 @@ export interface ListChannelsInput {
2767
2486
  * @public
2768
2487
  */
2769
2488
  export interface ListChannelsOutput {
2770
- /**
2771
- * The request ID of the request.
2772
- * @public
2773
- */
2774
- requestId?: string | undefined;
2775
- /**
2776
- * The duration of the request in milliseconds.
2777
- * @public
2778
- */
2779
- requestDuration?: number | undefined;
2780
2489
  /**
2781
2490
  * Ordered page of channels for the requested section.
2782
2491
  * @public
@@ -2910,16 +2619,6 @@ export interface MentionEntry {
2910
2619
  * @public
2911
2620
  */
2912
2621
  export interface ListMentionsOutput {
2913
- /**
2914
- * The request ID of the request.
2915
- * @public
2916
- */
2917
- requestId?: string | undefined;
2918
- /**
2919
- * The duration of the request in milliseconds.
2920
- * @public
2921
- */
2922
- requestDuration?: number | undefined;
2923
2622
  /**
2924
2623
  * Mentions ordered by most recent `mentionAddedAt` first.
2925
2624
  * @public
@@ -2970,16 +2669,6 @@ export interface ListMessagesInput {
2970
2669
  * @public
2971
2670
  */
2972
2671
  export interface ListMessagesOutput {
2973
- /**
2974
- * The request ID of the request.
2975
- * @public
2976
- */
2977
- requestId?: string | undefined;
2978
- /**
2979
- * The duration of the request in milliseconds.
2980
- * @public
2981
- */
2982
- requestDuration?: number | undefined;
2983
2672
  /**
2984
2673
  * Messages ordered newest-first by `timelineSeq`.
2985
2674
  * @public
@@ -3025,16 +2714,6 @@ export interface MarkReadInput {
3025
2714
  * @public
3026
2715
  */
3027
2716
  export interface MarkReadOutput {
3028
- /**
3029
- * The request ID of the request.
3030
- * @public
3031
- */
3032
- requestId?: string | undefined;
3033
- /**
3034
- * The duration of the request in milliseconds.
3035
- * @public
3036
- */
3037
- requestDuration?: number | undefined;
3038
2717
  /**
3039
2718
  * Per-user inbox state for a channel: mute and hide flags, unread counters, and read pointers.
3040
2719
  * @public
@@ -3080,16 +2759,6 @@ export interface MarkUnreadInput {
3080
2759
  * @public
3081
2760
  */
3082
2761
  export interface MarkUnreadOutput {
3083
- /**
3084
- * The request ID of the request.
3085
- * @public
3086
- */
3087
- requestId?: string | undefined;
3088
- /**
3089
- * The duration of the request in milliseconds.
3090
- * @public
3091
- */
3092
- requestDuration?: number | undefined;
3093
2762
  /**
3094
2763
  * Per-user inbox state for a channel: mute and hide flags, unread counters, and read pointers.
3095
2764
  * @public
@@ -3125,16 +2794,6 @@ export interface MoveChannelToSectionInput {
3125
2794
  * @public
3126
2795
  */
3127
2796
  export interface MoveChannelToSectionOutput {
3128
- /**
3129
- * The request ID of the request.
3130
- * @public
3131
- */
3132
- requestId?: string | undefined;
3133
- /**
3134
- * The duration of the request in milliseconds.
3135
- * @public
3136
- */
3137
- requestDuration?: number | undefined;
3138
2797
  /**
3139
2798
  * Per-user inbox state for a channel: mute and hide flags, unread counters, and read pointers.
3140
2799
  * @public
@@ -3177,16 +2836,6 @@ export interface MuteChannelInput {
3177
2836
  * @public
3178
2837
  */
3179
2838
  export interface MuteChannelOutput {
3180
- /**
3181
- * The request ID of the request.
3182
- * @public
3183
- */
3184
- requestId?: string | undefined;
3185
- /**
3186
- * The duration of the request in milliseconds.
3187
- * @public
3188
- */
3189
- requestDuration?: number | undefined;
3190
2839
  /**
3191
2840
  * Per-user inbox state for a channel: mute and hide flags, unread counters, and read pointers.
3192
2841
  * @public
@@ -3275,25 +2924,20 @@ export interface PartialUpdateChannelSetOptions {
3275
2924
  */
3276
2925
  wizyGuestViewOnly?: boolean | undefined;
3277
2926
  /**
3278
- * Indicates if the channel supports Facebook Messenger. Default is false.
3279
- * @public
3280
- */
3281
- messenger?: boolean | undefined;
3282
- /**
3283
- * The Messenger reply state of the channel: WINDOW_CLOSED after classound refused a reply, absent while a reply can be sent.
2927
+ * The reply state of the channel: WINDOW_CLOSED after classound refused a reply, absent while a reply can be sent.
3284
2928
  * @public
3285
2929
  */
3286
- messengerStatus?: ChannelMessengerStatus | undefined;
2930
+ messagingStatus?: ChannelMessagingStatus | undefined;
3287
2931
  /**
3288
- * The Facebook Page ID the conversation runs through. Written by kite from the inbound event, because the channel id hashes the page's linked service and not the page, and a reply has to name the page it is sent from.
2932
+ * The business side of the conversation: the Facebook Page ID on Messenger, the Instagram account ID on Instagram. Written by kite from the inbound event, because the channel id hashes the sender's linked service and not the sender, and a reply has to name the sender it is sent from.
3289
2933
  * @public
3290
2934
  */
3291
- messengerPageId?: string | undefined;
2935
+ messagingSenderId?: string | undefined;
3292
2936
  /**
3293
- * Epoch seconds until which a reply still reaches the person: Meta's 7 day HUMAN_AGENT deadline, restarted by each inbound message. classound applies the tag itself, so this is the one deadline a client has to show. 0 means the deadline is not known, which is what the inbound event carries when the session row was gone before it could be read back; it does not mean the window has closed, so a client reads the window as closed on `messengerReplyUntil > 0 && now > messengerReplyUntil` and shows nothing at 0.
2937
+ * Epoch seconds until which a reply still reaches the person. On Messenger and Instagram this is Meta's 7 day HUMAN_AGENT deadline, restarted by each inbound message; classound applies the tag itself, so this is the one deadline a client has to show. 0 means the deadline is not known, which is what the inbound event carries when the session row was gone before it could be read back; it does not mean the window has closed, so a client reads the window as closed on `messagingReplyUntil > 0 && now > messagingReplyUntil` and shows nothing at 0. Absent on a channel with no reply window.
3294
2938
  * @public
3295
2939
  */
3296
- messengerReplyUntil?: number | undefined;
2940
+ messagingReplyUntil?: number | undefined;
3297
2941
  }
3298
2942
  /**
3299
2943
  * @public
@@ -3322,16 +2966,6 @@ export interface PartialUpdateChannelInput {
3322
2966
  * @public
3323
2967
  */
3324
2968
  export interface PartialUpdateChannelOutput {
3325
- /**
3326
- * The request ID of the request.
3327
- * @public
3328
- */
3329
- requestId?: string | undefined;
3330
- /**
3331
- * The duration of the request in milliseconds.
3332
- * @public
3333
- */
3334
- requestDuration?: number | undefined;
3335
2969
  channel: Channel;
3336
2970
  }
3337
2971
  /**
@@ -3385,6 +3019,16 @@ export interface PartialUpdateMessageSetInput {
3385
3019
  */
3386
3020
  sms?: boolean | undefined;
3387
3021
  smsStatus?: MessageSmsStatus | undefined;
3022
+ /**
3023
+ * A customer messaging channel that reaches x-bees through classound and is not SMS or WhatsApp. One discriminator instead of a boolean per channel, so a new channel adds a member here and not a set of channel fields. RCS is listed but not accepted yet: whether an RCS conversation is a telephony channel is still open, so conversations refuses it until its ticket decides.
3024
+ * @public
3025
+ */
3026
+ messagingChannel?: MessagingChannel | undefined;
3027
+ /**
3028
+ * The delivery state of a message an agent sent over a customer messaging channel (see MessagingChannel), the same four states as WhatsApp. TRYING, SENT and ERROR are written by kite around the send; DELIVERED and a late ERROR arrive through the channel's status stream event (MESSENGER.STATUS today). A READ report is recorded as DELIVERED, as the WhatsApp producer does one hop earlier.
3029
+ * @public
3030
+ */
3031
+ messagingStatus?: MessageMessagingStatus | undefined;
3388
3032
  }
3389
3033
  /**
3390
3034
  * @public
@@ -3431,16 +3075,6 @@ export interface PartialUpdateMessageOutput {
3431
3075
  * @public
3432
3076
  */
3433
3077
  message: Message;
3434
- /**
3435
- * The request ID of the request.
3436
- * @public
3437
- */
3438
- requestId?: string | undefined;
3439
- /**
3440
- * The duration of the request in milliseconds.
3441
- * @public
3442
- */
3443
- requestDuration?: number | undefined;
3444
3078
  }
3445
3079
  /**
3446
3080
  * @public
@@ -3466,16 +3100,6 @@ export interface PinChannelInput {
3466
3100
  * @public
3467
3101
  */
3468
3102
  export interface PinChannelOutput {
3469
- /**
3470
- * The request ID of the request.
3471
- * @public
3472
- */
3473
- requestId?: string | undefined;
3474
- /**
3475
- * The duration of the request in milliseconds.
3476
- * @public
3477
- */
3478
- requestDuration?: number | undefined;
3479
3103
  }
3480
3104
  /**
3481
3105
  * @public
@@ -3507,16 +3131,6 @@ export interface PinMessageOutput {
3507
3131
  * @public
3508
3132
  */
3509
3133
  message: Message;
3510
- /**
3511
- * The request ID of the request.
3512
- * @public
3513
- */
3514
- requestId?: string | undefined;
3515
- /**
3516
- * The duration of the request in milliseconds.
3517
- * @public
3518
- */
3519
- requestDuration?: number | undefined;
3520
3134
  }
3521
3135
  /**
3522
3136
  * @public
@@ -3542,16 +3156,6 @@ export interface QueryChannelsInput {
3542
3156
  * @public
3543
3157
  */
3544
3158
  export interface QueryChannelsOutput {
3545
- /**
3546
- * The request ID of the request.
3547
- * @public
3548
- */
3549
- requestId?: string | undefined;
3550
- /**
3551
- * The duration of the request in milliseconds.
3552
- * @public
3553
- */
3554
- requestDuration?: number | undefined;
3555
3159
  channels: InboxChannel[];
3556
3160
  }
3557
3161
  /**
@@ -3583,16 +3187,6 @@ export interface RemoveChannelFromSectionInput {
3583
3187
  * @public
3584
3188
  */
3585
3189
  export interface RemoveChannelFromSectionOutput {
3586
- /**
3587
- * The request ID of the request.
3588
- * @public
3589
- */
3590
- requestId?: string | undefined;
3591
- /**
3592
- * The duration of the request in milliseconds.
3593
- * @public
3594
- */
3595
- requestDuration?: number | undefined;
3596
3190
  /**
3597
3191
  * Per-user inbox state for a channel: mute and hide flags, unread counters, and read pointers.
3598
3192
  * @public
@@ -3624,16 +3218,6 @@ export interface RenameSectionInput {
3624
3218
  * @public
3625
3219
  */
3626
3220
  export interface RenameSectionOutput {
3627
- /**
3628
- * The request ID of the request.
3629
- * @public
3630
- */
3631
- requestId?: string | undefined;
3632
- /**
3633
- * The duration of the request in milliseconds.
3634
- * @public
3635
- */
3636
- requestDuration?: number | undefined;
3637
3221
  /**
3638
3222
  * Inbox section with metadata, channel count, and unread counters.
3639
3223
  * @public
@@ -3700,16 +3284,6 @@ export interface SearchChannelsInput {
3700
3284
  * @public
3701
3285
  */
3702
3286
  export interface SearchChannelsOutput {
3703
- /**
3704
- * The request ID of the request.
3705
- * @public
3706
- */
3707
- requestId?: string | undefined;
3708
- /**
3709
- * The duration of the request in milliseconds.
3710
- * @public
3711
- */
3712
- requestDuration?: number | undefined;
3713
3287
  /**
3714
3288
  * Matching channels ordered by relevance.
3715
3289
  * @public
@@ -3810,16 +3384,6 @@ export interface SearchMessagesInput {
3810
3384
  * @public
3811
3385
  */
3812
3386
  export interface SearchMessagesOutput {
3813
- /**
3814
- * The request ID of the request.
3815
- * @public
3816
- */
3817
- requestId?: string | undefined;
3818
- /**
3819
- * The duration of the request in milliseconds.
3820
- * @public
3821
- */
3822
- requestDuration?: number | undefined;
3823
3387
  /**
3824
3388
  * Matching messages, access-filtered and ordered by the requested sort.
3825
3389
  * @public
@@ -3886,16 +3450,6 @@ export interface SendGiphyOutput {
3886
3450
  * @public
3887
3451
  */
3888
3452
  message: Message;
3889
- /**
3890
- * The request ID of the request.
3891
- * @public
3892
- */
3893
- requestId?: string | undefined;
3894
- /**
3895
- * The duration of the request in milliseconds.
3896
- * @public
3897
- */
3898
- requestDuration?: number | undefined;
3899
3453
  }
3900
3454
  /**
3901
3455
  * @public
@@ -3958,6 +3512,16 @@ export interface SendMessageInput {
3958
3512
  */
3959
3513
  sms?: boolean | undefined;
3960
3514
  smsStatus?: MessageSmsStatus | undefined;
3515
+ /**
3516
+ * A customer messaging channel that reaches x-bees through classound and is not SMS or WhatsApp. One discriminator instead of a boolean per channel, so a new channel adds a member here and not a set of channel fields. RCS is listed but not accepted yet: whether an RCS conversation is a telephony channel is still open, so conversations refuses it until its ticket decides.
3517
+ * @public
3518
+ */
3519
+ messagingChannel?: MessagingChannel | undefined;
3520
+ /**
3521
+ * The delivery state of a message an agent sent over a customer messaging channel (see MessagingChannel), the same four states as WhatsApp. TRYING, SENT and ERROR are written by kite around the send; DELIVERED and a late ERROR arrive through the channel's status stream event (MESSENGER.STATUS today). A READ report is recorded as DELIVERED, as the WhatsApp producer does one hop earlier.
3522
+ * @public
3523
+ */
3524
+ messagingStatus?: MessageMessagingStatus | undefined;
3961
3525
  /**
3962
3526
  * Optional client-supplied message id. Auto-generated when omitted.
3963
3527
  * @public
@@ -3988,16 +3552,6 @@ export interface SendMessageOutput {
3988
3552
  * @public
3989
3553
  */
3990
3554
  message: Message;
3991
- /**
3992
- * The request ID of the request.
3993
- * @public
3994
- */
3995
- requestId?: string | undefined;
3996
- /**
3997
- * The duration of the request in milliseconds.
3998
- * @public
3999
- */
4000
- requestDuration?: number | undefined;
4001
3555
  }
4002
3556
  /**
4003
3557
  * @public
@@ -4034,16 +3588,6 @@ export interface SendMessageReactionOutput {
4034
3588
  * @public
4035
3589
  */
4036
3590
  message: Message;
4037
- /**
4038
- * The request ID of the request.
4039
- * @public
4040
- */
4041
- requestId?: string | undefined;
4042
- /**
4043
- * The duration of the request in milliseconds.
4044
- * @public
4045
- */
4046
- requestDuration?: number | undefined;
4047
3591
  }
4048
3592
  /**
4049
3593
  * Empty payload for the WhatsApp 24-hour window closed system message.
@@ -4140,16 +3684,6 @@ export interface SendSystemMessageOutput {
4140
3684
  * @public
4141
3685
  */
4142
3686
  message: Message;
4143
- /**
4144
- * The request ID of the request.
4145
- * @public
4146
- */
4147
- requestId?: string | undefined;
4148
- /**
4149
- * The duration of the request in milliseconds.
4150
- * @public
4151
- */
4152
- requestDuration?: number | undefined;
4153
3687
  }
4154
3688
  /**
4155
3689
  * @public
@@ -4175,16 +3709,6 @@ export interface SendTypingStartInput {
4175
3709
  * @public
4176
3710
  */
4177
3711
  export interface SendTypingStartOutput {
4178
- /**
4179
- * The request ID of the request.
4180
- * @public
4181
- */
4182
- requestId?: string | undefined;
4183
- /**
4184
- * The duration of the request in milliseconds.
4185
- * @public
4186
- */
4187
- requestDuration?: number | undefined;
4188
3712
  }
4189
3713
  /**
4190
3714
  * @public
@@ -4210,16 +3734,6 @@ export interface SendTypingStopInput {
4210
3734
  * @public
4211
3735
  */
4212
3736
  export interface SendTypingStopOutput {
4213
- /**
4214
- * The request ID of the request.
4215
- * @public
4216
- */
4217
- requestId?: string | undefined;
4218
- /**
4219
- * The duration of the request in milliseconds.
4220
- * @public
4221
- */
4222
- requestDuration?: number | undefined;
4223
3737
  }
4224
3738
  /**
4225
3739
  * @public
@@ -4245,16 +3759,6 @@ export interface ShowChannelInput {
4245
3759
  * @public
4246
3760
  */
4247
3761
  export interface ShowChannelOutput {
4248
- /**
4249
- * The request ID of the request.
4250
- * @public
4251
- */
4252
- requestId?: string | undefined;
4253
- /**
4254
- * The duration of the request in milliseconds.
4255
- * @public
4256
- */
4257
- requestDuration?: number | undefined;
4258
3762
  }
4259
3763
  /**
4260
3764
  * @public
@@ -4280,16 +3784,6 @@ export interface UnmuteChannelInput {
4280
3784
  * @public
4281
3785
  */
4282
3786
  export interface UnmuteChannelOutput {
4283
- /**
4284
- * The request ID of the request.
4285
- * @public
4286
- */
4287
- requestId?: string | undefined;
4288
- /**
4289
- * The duration of the request in milliseconds.
4290
- * @public
4291
- */
4292
- requestDuration?: number | undefined;
4293
3787
  /**
4294
3788
  * Per-user inbox state for a channel: mute and hide flags, unread counters, and read pointers.
4295
3789
  * @public
@@ -4320,16 +3814,6 @@ export interface UnpinChannelInput {
4320
3814
  * @public
4321
3815
  */
4322
3816
  export interface UnpinChannelOutput {
4323
- /**
4324
- * The request ID of the request.
4325
- * @public
4326
- */
4327
- requestId?: string | undefined;
4328
- /**
4329
- * The duration of the request in milliseconds.
4330
- * @public
4331
- */
4332
- requestDuration?: number | undefined;
4333
3817
  }
4334
3818
  /**
4335
3819
  * @public
@@ -4361,16 +3845,6 @@ export interface UnpinMessageOutput {
4361
3845
  * @public
4362
3846
  */
4363
3847
  message: Message;
4364
- /**
4365
- * The request ID of the request.
4366
- * @public
4367
- */
4368
- requestId?: string | undefined;
4369
- /**
4370
- * The duration of the request in milliseconds.
4371
- * @public
4372
- */
4373
- requestDuration?: number | undefined;
4374
3848
  }
4375
3849
  /**
4376
3850
  * @public
@@ -4464,25 +3938,20 @@ export interface UpdateChannelInput {
4464
3938
  */
4465
3939
  wizyGuestViewOnly?: boolean | undefined;
4466
3940
  /**
4467
- * Indicates if the channel supports Facebook Messenger. Default is false.
3941
+ * The reply state of the channel: WINDOW_CLOSED after classound refused a reply, absent while a reply can be sent.
4468
3942
  * @public
4469
3943
  */
4470
- messenger?: boolean | undefined;
3944
+ messagingStatus?: ChannelMessagingStatus | undefined;
4471
3945
  /**
4472
- * The Messenger reply state of the channel: WINDOW_CLOSED after classound refused a reply, absent while a reply can be sent.
3946
+ * The business side of the conversation: the Facebook Page ID on Messenger, the Instagram account ID on Instagram. Written by kite from the inbound event, because the channel id hashes the sender's linked service and not the sender, and a reply has to name the sender it is sent from.
4473
3947
  * @public
4474
3948
  */
4475
- messengerStatus?: ChannelMessengerStatus | undefined;
3949
+ messagingSenderId?: string | undefined;
4476
3950
  /**
4477
- * The Facebook Page ID the conversation runs through. Written by kite from the inbound event, because the channel id hashes the page's linked service and not the page, and a reply has to name the page it is sent from.
3951
+ * Epoch seconds until which a reply still reaches the person. On Messenger and Instagram this is Meta's 7 day HUMAN_AGENT deadline, restarted by each inbound message; classound applies the tag itself, so this is the one deadline a client has to show. 0 means the deadline is not known, which is what the inbound event carries when the session row was gone before it could be read back; it does not mean the window has closed, so a client reads the window as closed on `messagingReplyUntil > 0 && now > messagingReplyUntil` and shows nothing at 0. Absent on a channel with no reply window.
4478
3952
  * @public
4479
3953
  */
4480
- messengerPageId?: string | undefined;
4481
- /**
4482
- * Epoch seconds until which a reply still reaches the person: Meta's 7 day HUMAN_AGENT deadline, restarted by each inbound message. classound applies the tag itself, so this is the one deadline a client has to show. 0 means the deadline is not known, which is what the inbound event carries when the session row was gone before it could be read back; it does not mean the window has closed, so a client reads the window as closed on `messengerReplyUntil > 0 && now > messengerReplyUntil` and shows nothing at 0.
4483
- * @public
4484
- */
4485
- messengerReplyUntil?: number | undefined;
3954
+ messagingReplyUntil?: number | undefined;
4486
3955
  /**
4487
3956
  * Direct-channel ids are the 8-4-4-4-8 slices of the two member ids. An `a_` member id puts `_` in a slice, so the pattern allows it.
4488
3957
  * @public
@@ -4494,16 +3963,6 @@ export interface UpdateChannelInput {
4494
3963
  * @public
4495
3964
  */
4496
3965
  export interface UpdateChannelOutput {
4497
- /**
4498
- * The request ID of the request.
4499
- * @public
4500
- */
4501
- requestId?: string | undefined;
4502
- /**
4503
- * The duration of the request in milliseconds.
4504
- * @public
4505
- */
4506
- requestDuration?: number | undefined;
4507
3966
  channel: Channel;
4508
3967
  }
4509
3968
  /**
@@ -4567,6 +4026,16 @@ export interface UpdateMessageInput {
4567
4026
  */
4568
4027
  sms?: boolean | undefined;
4569
4028
  smsStatus?: MessageSmsStatus | undefined;
4029
+ /**
4030
+ * A customer messaging channel that reaches x-bees through classound and is not SMS or WhatsApp. One discriminator instead of a boolean per channel, so a new channel adds a member here and not a set of channel fields. RCS is listed but not accepted yet: whether an RCS conversation is a telephony channel is still open, so conversations refuses it until its ticket decides.
4031
+ * @public
4032
+ */
4033
+ messagingChannel?: MessagingChannel | undefined;
4034
+ /**
4035
+ * The delivery state of a message an agent sent over a customer messaging channel (see MessagingChannel), the same four states as WhatsApp. TRYING, SENT and ERROR are written by kite around the send; DELIVERED and a late ERROR arrive through the channel's status stream event (MESSENGER.STATUS today). A READ report is recorded as DELIVERED, as the WhatsApp producer does one hop earlier.
4036
+ * @public
4037
+ */
4038
+ messagingStatus?: MessageMessagingStatus | undefined;
4570
4039
  /**
4571
4040
  * Direct-channel ids are the 8-4-4-4-8 slices of the two member ids. An `a_` member id puts `_` in a slice, so the pattern allows it.
4572
4041
  * @public
@@ -4588,16 +4057,6 @@ export interface UpdateMessageOutput {
4588
4057
  * @public
4589
4058
  */
4590
4059
  message: Message;
4591
- /**
4592
- * The request ID of the request.
4593
- * @public
4594
- */
4595
- requestId?: string | undefined;
4596
- /**
4597
- * The duration of the request in milliseconds.
4598
- * @public
4599
- */
4600
- requestDuration?: number | undefined;
4601
4060
  }
4602
4061
  /**
4603
4062
  * Optional parameters for the upload presign flow.
@@ -4649,16 +4108,6 @@ export interface UploadFileInput {
4649
4108
  * @public
4650
4109
  */
4651
4110
  export interface UploadFileOutput {
4652
- /**
4653
- * The request ID of the request.
4654
- * @public
4655
- */
4656
- requestId?: string | undefined;
4657
- /**
4658
- * The duration of the request in milliseconds.
4659
- * @public
4660
- */
4661
- requestDuration?: number | undefined;
4662
4111
  /**
4663
4112
  * File service identifier. Pass this value as `attachments[].fsId` on send and edit.
4664
4113
  * @public