@wildix/xbees-conversations-client 4.0.4 → 4.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/Conversations.js +4 -0
- package/dist-cjs/commands/GetMessengerChannelIdCommand.js +20 -0
- package/dist-cjs/commands/GetOrCreateMessengerChannelCommand.js +20 -0
- package/dist-cjs/commands/index.js +2 -0
- package/dist-cjs/models/enums.js +11 -1
- package/dist-cjs/schemas/schemas_0.js +64 -28
- package/dist-es/Conversations.js +4 -0
- package/dist-es/commands/GetMessengerChannelIdCommand.js +16 -0
- package/dist-es/commands/GetOrCreateMessengerChannelCommand.js +16 -0
- package/dist-es/commands/index.js +2 -0
- package/dist-es/models/enums.js +10 -0
- package/dist-es/schemas/schemas_0.js +59 -23
- package/dist-types/Conversations.d.ts +14 -0
- package/dist-types/ConversationsClient.d.ts +4 -2
- package/dist-types/commands/CreateGroupChannelCommand.d.ts +8 -0
- package/dist-types/commands/CreateKiteChannelCommand.d.ts +8 -0
- package/dist-types/commands/DescribeEventCommand.d.ts +30 -0
- package/dist-types/commands/GetChannelCommand.d.ts +4 -0
- package/dist-types/commands/GetMessageCommand.d.ts +2 -0
- package/dist-types/commands/GetMessengerChannelIdCommand.d.ts +83 -0
- package/dist-types/commands/GetOrCreateDirectChannelCommand.d.ts +4 -0
- package/dist-types/commands/GetOrCreateMessengerChannelCommand.d.ts +162 -0
- package/dist-types/commands/GetOrCreateSmsChannelCommand.d.ts +4 -0
- package/dist-types/commands/GetOrCreateTelephonyChannelCommand.d.ts +4 -0
- package/dist-types/commands/GetOrCreateWhatsAppChannelCommand.d.ts +4 -0
- package/dist-types/commands/JoinChannelCommand.d.ts +4 -0
- package/dist-types/commands/ListChannelsCommand.d.ts +4 -0
- package/dist-types/commands/ListMessagesCommand.d.ts +2 -0
- package/dist-types/commands/ListPinnedMessagesCommand.d.ts +2 -0
- package/dist-types/commands/PartialUpdateChannelCommand.d.ts +9 -1
- package/dist-types/commands/PartialUpdateMessageCommand.d.ts +4 -0
- package/dist-types/commands/QueryChannelsCommand.d.ts +4 -0
- package/dist-types/commands/SendGiphyCommand.d.ts +2 -0
- package/dist-types/commands/SendMessageCommand.d.ts +4 -0
- package/dist-types/commands/SendSystemMessageCommand.d.ts +2 -0
- package/dist-types/commands/UpdateChannelCommand.d.ts +8 -0
- package/dist-types/commands/UpdateMessageCommand.d.ts +4 -0
- package/dist-types/commands/index.d.ts +2 -0
- package/dist-types/models/enums.d.ts +26 -0
- package/dist-types/models/models_0.d.ts +233 -2
- package/dist-types/schemas/schemas_0.d.ts +6 -0
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ActionTriggerStatus, AssignChannelVariant, ButtonVariant, ChannelAccess, ChannelContextEventAttendeeStatus, ChannelContextSource, ChannelMemberRole, ChannelType, ChannelWhatsAppStatus, ConversationFileCategory, GroupChannelCreationEventType, GroupChannelUnsetOptions, MessageSmsStatus, MessageType, MessageUnsetFields, MessageWhatsAppStatus, ReactionType, WebhookEventType } from "./enums";
|
|
1
|
+
import type { ActionTriggerStatus, AssignChannelVariant, ButtonVariant, ChannelAccess, ChannelContextEventAttendeeStatus, ChannelContextSource, ChannelMemberRole, ChannelMessengerStatus, ChannelType, ChannelWhatsAppStatus, ConversationFileCategory, GroupChannelCreationEventType, GroupChannelUnsetOptions, MessageMessengerStatus, MessageSmsStatus, MessageType, MessageUnsetFields, MessageWhatsAppStatus, ReactionType, WebhookEventType } from "./enums";
|
|
2
2
|
/**
|
|
3
3
|
* @public
|
|
4
4
|
*/
|
|
@@ -107,11 +107,23 @@ export interface Channel {
|
|
|
107
107
|
mms?: boolean | undefined;
|
|
108
108
|
whatsapp?: boolean | undefined;
|
|
109
109
|
whatsappStatus?: ChannelWhatsAppStatus | undefined;
|
|
110
|
+
messenger?: boolean | undefined;
|
|
111
|
+
/**
|
|
112
|
+
* Set when classound refused a reply because the person's messaging window is closed (a 409 on the send). Unset by the next inbound message, which is the only thing that reopens the window.
|
|
113
|
+
* @public
|
|
114
|
+
*/
|
|
115
|
+
messengerStatus?: ChannelMessengerStatus | undefined;
|
|
116
|
+
messengerPageId?: string | undefined;
|
|
117
|
+
messengerReplyUntil?: number | undefined;
|
|
110
118
|
broadcast?: boolean | undefined;
|
|
111
119
|
external?: boolean | undefined;
|
|
112
120
|
autoRecord?: boolean | undefined;
|
|
113
121
|
transcriptionLanguage?: string | undefined;
|
|
114
122
|
wizyGuestViewOnly?: boolean | undefined;
|
|
123
|
+
/**
|
|
124
|
+
* 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.
|
|
125
|
+
* @public
|
|
126
|
+
*/
|
|
115
127
|
channelId: string;
|
|
116
128
|
channelType: ChannelType;
|
|
117
129
|
memberCount: number;
|
|
@@ -292,6 +304,10 @@ export interface MessageForward {
|
|
|
292
304
|
forwardEmail?: string | undefined;
|
|
293
305
|
forwardName?: string | undefined;
|
|
294
306
|
messageId: string;
|
|
307
|
+
/**
|
|
308
|
+
* 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.
|
|
309
|
+
* @public
|
|
310
|
+
*/
|
|
295
311
|
channelId: string;
|
|
296
312
|
}
|
|
297
313
|
/**
|
|
@@ -318,6 +334,10 @@ export interface Reaction {
|
|
|
318
334
|
*/
|
|
319
335
|
export interface MessageQuote {
|
|
320
336
|
messageId: string;
|
|
337
|
+
/**
|
|
338
|
+
* 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.
|
|
339
|
+
* @public
|
|
340
|
+
*/
|
|
321
341
|
channelId: string;
|
|
322
342
|
user: User;
|
|
323
343
|
text?: string | undefined;
|
|
@@ -339,6 +359,12 @@ export interface Message {
|
|
|
339
359
|
forward?: MessageForward | undefined;
|
|
340
360
|
whatsapp?: boolean | undefined;
|
|
341
361
|
whatsappStatus?: MessageWhatsAppStatus | undefined;
|
|
362
|
+
messenger?: boolean | undefined;
|
|
363
|
+
/**
|
|
364
|
+
* 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.
|
|
365
|
+
* @public
|
|
366
|
+
*/
|
|
367
|
+
messengerStatus?: MessageMessengerStatus | undefined;
|
|
342
368
|
sms?: boolean | undefined;
|
|
343
369
|
smsStatus?: MessageSmsStatus | undefined;
|
|
344
370
|
markdown?: boolean | undefined;
|
|
@@ -347,6 +373,10 @@ export interface Message {
|
|
|
347
373
|
silent?: boolean | undefined;
|
|
348
374
|
event?: string | undefined;
|
|
349
375
|
messageId: string;
|
|
376
|
+
/**
|
|
377
|
+
* 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.
|
|
378
|
+
* @public
|
|
379
|
+
*/
|
|
350
380
|
channelId: string;
|
|
351
381
|
user: User;
|
|
352
382
|
edit?: boolean | undefined;
|
|
@@ -372,7 +402,7 @@ export interface UserToInvite {
|
|
|
372
402
|
*/
|
|
373
403
|
email?: string | undefined;
|
|
374
404
|
/**
|
|
375
|
-
* The phone number of the invited user. This phone number is used to create or find the user if an email address is not provided.
|
|
405
|
+
* The phone number of the invited user. This phone number is used to create or find the user if an email address is not provided. On Facebook Messenger it is not a phone number at all: the caller passes the Page Scoped ID, so the identity key stays the one the supplier reports. UserPhone allows up to 17 digits and a Page Scoped ID is 17, so there is no headroom left.
|
|
376
406
|
* @public
|
|
377
407
|
*/
|
|
378
408
|
phone?: string | undefined;
|
|
@@ -608,6 +638,10 @@ export declare namespace AssignChannelServiceRequest {
|
|
|
608
638
|
* @public
|
|
609
639
|
*/
|
|
610
640
|
export interface AssignChannelInput {
|
|
641
|
+
/**
|
|
642
|
+
* 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.
|
|
643
|
+
* @public
|
|
644
|
+
*/
|
|
611
645
|
channelId: string;
|
|
612
646
|
/**
|
|
613
647
|
* The unique identifier of the user when a service token is used.
|
|
@@ -748,6 +782,26 @@ export interface CreateGroupChannelInput {
|
|
|
748
782
|
* @public
|
|
749
783
|
*/
|
|
750
784
|
whatsapp?: boolean | undefined;
|
|
785
|
+
/**
|
|
786
|
+
* Indicates if the channel supports Facebook Messenger. Default is false.
|
|
787
|
+
* @public
|
|
788
|
+
*/
|
|
789
|
+
messenger?: boolean | undefined;
|
|
790
|
+
/**
|
|
791
|
+
* The Messenger reply state of the channel: WINDOW_CLOSED after classound refused a reply, absent while a reply can be sent.
|
|
792
|
+
* @public
|
|
793
|
+
*/
|
|
794
|
+
messengerStatus?: ChannelMessengerStatus | undefined;
|
|
795
|
+
/**
|
|
796
|
+
* 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.
|
|
797
|
+
* @public
|
|
798
|
+
*/
|
|
799
|
+
messengerPageId?: string | undefined;
|
|
800
|
+
/**
|
|
801
|
+
* 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.
|
|
802
|
+
* @public
|
|
803
|
+
*/
|
|
804
|
+
messengerReplyUntil?: number | undefined;
|
|
751
805
|
/**
|
|
752
806
|
* The unique identifier of the assignee.
|
|
753
807
|
* @public
|
|
@@ -838,6 +892,12 @@ export interface InitialMessage {
|
|
|
838
892
|
forward?: MessageForward | undefined;
|
|
839
893
|
whatsapp?: boolean | undefined;
|
|
840
894
|
whatsappStatus?: MessageWhatsAppStatus | undefined;
|
|
895
|
+
messenger?: boolean | undefined;
|
|
896
|
+
/**
|
|
897
|
+
* 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.
|
|
898
|
+
* @public
|
|
899
|
+
*/
|
|
900
|
+
messengerStatus?: MessageMessengerStatus | undefined;
|
|
841
901
|
sms?: boolean | undefined;
|
|
842
902
|
smsStatus?: MessageSmsStatus | undefined;
|
|
843
903
|
markdown?: boolean | undefined;
|
|
@@ -863,6 +923,12 @@ export interface WelcomeMessage {
|
|
|
863
923
|
forward?: MessageForward | undefined;
|
|
864
924
|
whatsapp?: boolean | undefined;
|
|
865
925
|
whatsappStatus?: MessageWhatsAppStatus | undefined;
|
|
926
|
+
messenger?: boolean | undefined;
|
|
927
|
+
/**
|
|
928
|
+
* 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.
|
|
929
|
+
* @public
|
|
930
|
+
*/
|
|
931
|
+
messengerStatus?: MessageMessengerStatus | undefined;
|
|
866
932
|
sms?: boolean | undefined;
|
|
867
933
|
smsStatus?: MessageSmsStatus | undefined;
|
|
868
934
|
markdown?: boolean | undefined;
|
|
@@ -1321,6 +1387,10 @@ export interface GetDirectChannelIdInput {
|
|
|
1321
1387
|
* @public
|
|
1322
1388
|
*/
|
|
1323
1389
|
export interface GetDirectChannelIdOutput {
|
|
1390
|
+
/**
|
|
1391
|
+
* 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.
|
|
1392
|
+
* @public
|
|
1393
|
+
*/
|
|
1324
1394
|
channelId: string;
|
|
1325
1395
|
}
|
|
1326
1396
|
/**
|
|
@@ -1377,6 +1447,10 @@ export interface GetInboxStateInput {
|
|
|
1377
1447
|
* @public
|
|
1378
1448
|
*/
|
|
1379
1449
|
export interface InboxPinnedChannel {
|
|
1450
|
+
/**
|
|
1451
|
+
* 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.
|
|
1452
|
+
* @public
|
|
1453
|
+
*/
|
|
1380
1454
|
channelId: string;
|
|
1381
1455
|
pinnedAt: string;
|
|
1382
1456
|
}
|
|
@@ -1384,6 +1458,10 @@ export interface InboxPinnedChannel {
|
|
|
1384
1458
|
* @public
|
|
1385
1459
|
*/
|
|
1386
1460
|
export interface InboxTaggedChannel {
|
|
1461
|
+
/**
|
|
1462
|
+
* 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.
|
|
1463
|
+
* @public
|
|
1464
|
+
*/
|
|
1387
1465
|
channelId: string;
|
|
1388
1466
|
tagId: string;
|
|
1389
1467
|
}
|
|
@@ -1391,6 +1469,10 @@ export interface InboxTaggedChannel {
|
|
|
1391
1469
|
* @public
|
|
1392
1470
|
*/
|
|
1393
1471
|
export interface InboxUnreadChannel {
|
|
1472
|
+
/**
|
|
1473
|
+
* 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.
|
|
1474
|
+
* @public
|
|
1475
|
+
*/
|
|
1394
1476
|
channelId: string;
|
|
1395
1477
|
/**
|
|
1396
1478
|
* A date when unread indicator was set by the user.
|
|
@@ -1435,6 +1517,41 @@ export interface GetMessageInput {
|
|
|
1435
1517
|
export interface GetMessageOutput {
|
|
1436
1518
|
message: Message;
|
|
1437
1519
|
}
|
|
1520
|
+
/**
|
|
1521
|
+
* @public
|
|
1522
|
+
*/
|
|
1523
|
+
export interface GetMessengerChannelIdInput {
|
|
1524
|
+
/**
|
|
1525
|
+
* The unique identifier of the user when a service token is used. Required if used PBX or S2S token.
|
|
1526
|
+
* @public
|
|
1527
|
+
*/
|
|
1528
|
+
userId?: string | undefined;
|
|
1529
|
+
/**
|
|
1530
|
+
* The unique identifier of the telephony channel.
|
|
1531
|
+
* @public
|
|
1532
|
+
*/
|
|
1533
|
+
serviceUri: string;
|
|
1534
|
+
/**
|
|
1535
|
+
* The unique identifier of the recipient. Required if recipientNumber is not provided.
|
|
1536
|
+
* @public
|
|
1537
|
+
*/
|
|
1538
|
+
recipientId?: string | undefined;
|
|
1539
|
+
/**
|
|
1540
|
+
* The unique identifier of the recipient. Required if recipientId is not provided.
|
|
1541
|
+
* @public
|
|
1542
|
+
*/
|
|
1543
|
+
recipientNumber?: string | undefined;
|
|
1544
|
+
}
|
|
1545
|
+
/**
|
|
1546
|
+
* @public
|
|
1547
|
+
*/
|
|
1548
|
+
export interface GetMessengerChannelIdOutput {
|
|
1549
|
+
/**
|
|
1550
|
+
* 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.
|
|
1551
|
+
* @public
|
|
1552
|
+
*/
|
|
1553
|
+
channelId: string;
|
|
1554
|
+
}
|
|
1438
1555
|
/**
|
|
1439
1556
|
* @public
|
|
1440
1557
|
*/
|
|
@@ -1461,6 +1578,42 @@ export interface GetOrCreateDirectChannelInput {
|
|
|
1461
1578
|
export interface GetOrCreateDirectChannelOutput {
|
|
1462
1579
|
channel: Channel;
|
|
1463
1580
|
}
|
|
1581
|
+
/**
|
|
1582
|
+
* @public
|
|
1583
|
+
*/
|
|
1584
|
+
export interface GetOrCreateMessengerChannelInput {
|
|
1585
|
+
/**
|
|
1586
|
+
* The unique identifier of the user when a service token is used. Required if used PBX or S2S token.
|
|
1587
|
+
* @public
|
|
1588
|
+
*/
|
|
1589
|
+
userId?: string | undefined;
|
|
1590
|
+
/**
|
|
1591
|
+
* The unique identifier of the telephony channel.
|
|
1592
|
+
* @public
|
|
1593
|
+
*/
|
|
1594
|
+
serviceUri: string;
|
|
1595
|
+
/**
|
|
1596
|
+
* The unique identifier of the recipient. Required if recipientNumber is not provided.
|
|
1597
|
+
* @public
|
|
1598
|
+
*/
|
|
1599
|
+
recipientId?: string | undefined;
|
|
1600
|
+
/**
|
|
1601
|
+
* The unique identifier of the recipient. Required if recipientId is not provided.
|
|
1602
|
+
* @public
|
|
1603
|
+
*/
|
|
1604
|
+
recipientNumber?: string | undefined;
|
|
1605
|
+
/**
|
|
1606
|
+
* 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.
|
|
1607
|
+
* @public
|
|
1608
|
+
*/
|
|
1609
|
+
outgoing?: boolean | undefined;
|
|
1610
|
+
}
|
|
1611
|
+
/**
|
|
1612
|
+
* @public
|
|
1613
|
+
*/
|
|
1614
|
+
export interface GetOrCreateMessengerChannelOutput {
|
|
1615
|
+
channel: Channel;
|
|
1616
|
+
}
|
|
1464
1617
|
/**
|
|
1465
1618
|
* @public
|
|
1466
1619
|
*/
|
|
@@ -1593,6 +1746,10 @@ export interface GetSmsChannelIdInput {
|
|
|
1593
1746
|
* @public
|
|
1594
1747
|
*/
|
|
1595
1748
|
export interface GetSmsChannelIdOutput {
|
|
1749
|
+
/**
|
|
1750
|
+
* 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.
|
|
1751
|
+
* @public
|
|
1752
|
+
*/
|
|
1596
1753
|
channelId: string;
|
|
1597
1754
|
}
|
|
1598
1755
|
/**
|
|
@@ -1624,6 +1781,10 @@ export interface GetTelephonyChannelIdInput {
|
|
|
1624
1781
|
* @public
|
|
1625
1782
|
*/
|
|
1626
1783
|
export interface GetTelephonyChannelIdOutput {
|
|
1784
|
+
/**
|
|
1785
|
+
* 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.
|
|
1786
|
+
* @public
|
|
1787
|
+
*/
|
|
1627
1788
|
channelId: string;
|
|
1628
1789
|
}
|
|
1629
1790
|
/**
|
|
@@ -1706,6 +1867,10 @@ export interface GetWhatsAppChannelIdInput {
|
|
|
1706
1867
|
* @public
|
|
1707
1868
|
*/
|
|
1708
1869
|
export interface GetWhatsAppChannelIdOutput {
|
|
1870
|
+
/**
|
|
1871
|
+
* 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.
|
|
1872
|
+
* @public
|
|
1873
|
+
*/
|
|
1709
1874
|
channelId: string;
|
|
1710
1875
|
}
|
|
1711
1876
|
/**
|
|
@@ -2140,6 +2305,26 @@ export interface PartialUpdateChannelSetOptions {
|
|
|
2140
2305
|
* @public
|
|
2141
2306
|
*/
|
|
2142
2307
|
whatsapp?: boolean | undefined;
|
|
2308
|
+
/**
|
|
2309
|
+
* Indicates if the channel supports Facebook Messenger. Default is false.
|
|
2310
|
+
* @public
|
|
2311
|
+
*/
|
|
2312
|
+
messenger?: boolean | undefined;
|
|
2313
|
+
/**
|
|
2314
|
+
* The Messenger reply state of the channel: WINDOW_CLOSED after classound refused a reply, absent while a reply can be sent.
|
|
2315
|
+
* @public
|
|
2316
|
+
*/
|
|
2317
|
+
messengerStatus?: ChannelMessengerStatus | undefined;
|
|
2318
|
+
/**
|
|
2319
|
+
* 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.
|
|
2320
|
+
* @public
|
|
2321
|
+
*/
|
|
2322
|
+
messengerPageId?: string | undefined;
|
|
2323
|
+
/**
|
|
2324
|
+
* 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.
|
|
2325
|
+
* @public
|
|
2326
|
+
*/
|
|
2327
|
+
messengerReplyUntil?: number | undefined;
|
|
2143
2328
|
/**
|
|
2144
2329
|
* The unique identifier of the assignee.
|
|
2145
2330
|
* @public
|
|
@@ -2202,6 +2387,12 @@ export interface PartialUpdateMessageSetInput {
|
|
|
2202
2387
|
forward?: MessageForward | undefined;
|
|
2203
2388
|
whatsapp?: boolean | undefined;
|
|
2204
2389
|
whatsappStatus?: MessageWhatsAppStatus | undefined;
|
|
2390
|
+
messenger?: boolean | undefined;
|
|
2391
|
+
/**
|
|
2392
|
+
* 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.
|
|
2393
|
+
* @public
|
|
2394
|
+
*/
|
|
2395
|
+
messengerStatus?: MessageMessengerStatus | undefined;
|
|
2205
2396
|
sms?: boolean | undefined;
|
|
2206
2397
|
smsStatus?: MessageSmsStatus | undefined;
|
|
2207
2398
|
markdown?: boolean | undefined;
|
|
@@ -2281,6 +2472,10 @@ export interface PinChannelOutput {
|
|
|
2281
2472
|
* @public
|
|
2282
2473
|
*/
|
|
2283
2474
|
export interface PinMessageInput {
|
|
2475
|
+
/**
|
|
2476
|
+
* 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.
|
|
2477
|
+
* @public
|
|
2478
|
+
*/
|
|
2284
2479
|
channelId: string;
|
|
2285
2480
|
/**
|
|
2286
2481
|
* The unique identifier of the message which should be pinned.
|
|
@@ -2423,6 +2618,12 @@ export interface SendMessageInput {
|
|
|
2423
2618
|
forward?: MessageForward | undefined;
|
|
2424
2619
|
whatsapp?: boolean | undefined;
|
|
2425
2620
|
whatsappStatus?: MessageWhatsAppStatus | undefined;
|
|
2621
|
+
messenger?: boolean | undefined;
|
|
2622
|
+
/**
|
|
2623
|
+
* 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.
|
|
2624
|
+
* @public
|
|
2625
|
+
*/
|
|
2626
|
+
messengerStatus?: MessageMessengerStatus | undefined;
|
|
2426
2627
|
sms?: boolean | undefined;
|
|
2427
2628
|
smsStatus?: MessageSmsStatus | undefined;
|
|
2428
2629
|
markdown?: boolean | undefined;
|
|
@@ -2705,6 +2906,10 @@ export interface UnpinChannelOutput {
|
|
|
2705
2906
|
* @public
|
|
2706
2907
|
*/
|
|
2707
2908
|
export interface UnpinMessageInput {
|
|
2909
|
+
/**
|
|
2910
|
+
* 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.
|
|
2911
|
+
* @public
|
|
2912
|
+
*/
|
|
2708
2913
|
channelId: string;
|
|
2709
2914
|
/**
|
|
2710
2915
|
* The unique identifier of the message which should be unpinned.
|
|
@@ -2811,6 +3016,26 @@ export interface UpdateChannelInput {
|
|
|
2811
3016
|
* @public
|
|
2812
3017
|
*/
|
|
2813
3018
|
whatsapp?: boolean | undefined;
|
|
3019
|
+
/**
|
|
3020
|
+
* Indicates if the channel supports Facebook Messenger. Default is false.
|
|
3021
|
+
* @public
|
|
3022
|
+
*/
|
|
3023
|
+
messenger?: boolean | undefined;
|
|
3024
|
+
/**
|
|
3025
|
+
* The Messenger reply state of the channel: WINDOW_CLOSED after classound refused a reply, absent while a reply can be sent.
|
|
3026
|
+
* @public
|
|
3027
|
+
*/
|
|
3028
|
+
messengerStatus?: ChannelMessengerStatus | undefined;
|
|
3029
|
+
/**
|
|
3030
|
+
* 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.
|
|
3031
|
+
* @public
|
|
3032
|
+
*/
|
|
3033
|
+
messengerPageId?: string | undefined;
|
|
3034
|
+
/**
|
|
3035
|
+
* 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.
|
|
3036
|
+
* @public
|
|
3037
|
+
*/
|
|
3038
|
+
messengerReplyUntil?: number | undefined;
|
|
2814
3039
|
/**
|
|
2815
3040
|
* The unique identifier of the assignee.
|
|
2816
3041
|
* @public
|
|
@@ -2884,6 +3109,12 @@ export interface UpdateMessageInput {
|
|
|
2884
3109
|
forward?: MessageForward | undefined;
|
|
2885
3110
|
whatsapp?: boolean | undefined;
|
|
2886
3111
|
whatsappStatus?: MessageWhatsAppStatus | undefined;
|
|
3112
|
+
messenger?: boolean | undefined;
|
|
3113
|
+
/**
|
|
3114
|
+
* 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.
|
|
3115
|
+
* @public
|
|
3116
|
+
*/
|
|
3117
|
+
messengerStatus?: MessageMessengerStatus | undefined;
|
|
2887
3118
|
sms?: boolean | undefined;
|
|
2888
3119
|
smsStatus?: MessageSmsStatus | undefined;
|
|
2889
3120
|
markdown?: boolean | undefined;
|
|
@@ -80,8 +80,12 @@ export declare var GetInboxStateInput$: StaticStructureSchema;
|
|
|
80
80
|
export declare var GetInboxStateOutput$: StaticStructureSchema;
|
|
81
81
|
export declare var GetMessageInput$: StaticStructureSchema;
|
|
82
82
|
export declare var GetMessageOutput$: StaticStructureSchema;
|
|
83
|
+
export declare var GetMessengerChannelIdInput$: StaticStructureSchema;
|
|
84
|
+
export declare var GetMessengerChannelIdOutput$: StaticStructureSchema;
|
|
83
85
|
export declare var GetOrCreateDirectChannelInput$: StaticStructureSchema;
|
|
84
86
|
export declare var GetOrCreateDirectChannelOutput$: StaticStructureSchema;
|
|
87
|
+
export declare var GetOrCreateMessengerChannelInput$: StaticStructureSchema;
|
|
88
|
+
export declare var GetOrCreateMessengerChannelOutput$: StaticStructureSchema;
|
|
85
89
|
export declare var GetOrCreateSmsChannelInput$: StaticStructureSchema;
|
|
86
90
|
export declare var GetOrCreateSmsChannelOutput$: StaticStructureSchema;
|
|
87
91
|
export declare var GetOrCreateTelephonyChannelInput$: StaticStructureSchema;
|
|
@@ -238,7 +242,9 @@ export declare var GetDirectChannelId$: StaticOperationSchema;
|
|
|
238
242
|
export declare var GetFilePresignedDownloadUrl$: StaticOperationSchema;
|
|
239
243
|
export declare var GetInboxState$: StaticOperationSchema;
|
|
240
244
|
export declare var GetMessage$: StaticOperationSchema;
|
|
245
|
+
export declare var GetMessengerChannelId$: StaticOperationSchema;
|
|
241
246
|
export declare var GetOrCreateDirectChannel$: StaticOperationSchema;
|
|
247
|
+
export declare var GetOrCreateMessengerChannel$: StaticOperationSchema;
|
|
242
248
|
export declare var GetOrCreateSmsChannel$: StaticOperationSchema;
|
|
243
249
|
export declare var GetOrCreateTelephonyChannel$: StaticOperationSchema;
|
|
244
250
|
export declare var GetOrCreateWhatsAppChannel$: StaticOperationSchema;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wildix/xbees-conversations-client",
|
|
3
3
|
"description": "@wildix/xbees-conversations-client client",
|
|
4
|
-
"version": "4.
|
|
4
|
+
"version": "4.1.1",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|