@wildix/stream-client 4.0.11 → 4.1.3

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.
@@ -923,8 +923,8 @@ exports.InboxChannel$ = [3, n1, _IC,
923
923
  ];
924
924
  exports.InboxState$ = [3, n1, _IS,
925
925
  0,
926
- [_sIe, _uC, _mUC, _hi, _mu, _pin, _lRVS, _lRTS, _lRA, _mU, _uMA],
927
- [64 | 0, 1, 1, 2, 2, 2, 1, 1, 0, 0, 1], 6
926
+ [_sIe, _uC, _mUC, _hi, _mu, _pin, _lRVS, _lRTS, _lRA, _mU, _pA, _uMA],
927
+ [64 | 0, 1, 1, 2, 2, 2, 1, 1, 0, 0, 0, 1], 6
928
928
  ];
929
929
  exports.InitialMessage$ = [3, n1, _IM,
930
930
  0,
@@ -943,8 +943,8 @@ exports.JoinChannelOutput$ = [3, n1, _JCO,
943
943
  ];
944
944
  exports.LastMessagePreview$ = [3, n1, _LMP,
945
945
  0,
946
- [_mIe, _uI, _mT, _cA, _t, _eve],
947
- [0, 0, 0, 0, 0, 0], 4
946
+ [_mIe, _uI, _mT, _cA, _t, _pI, _eve],
947
+ [0, 0, 0, 0, 0, 0, 0], 4
948
948
  ];
949
949
  exports.LeaveChannelInput$ = [3, n1, _LCI,
950
950
  0,
@@ -916,8 +916,8 @@ export var InboxChannel$ = [3, n1, _IC,
916
916
  ];
917
917
  export var InboxState$ = [3, n1, _IS,
918
918
  0,
919
- [_sIe, _uC, _mUC, _hi, _mu, _pin, _lRVS, _lRTS, _lRA, _mU, _uMA],
920
- [64 | 0, 1, 1, 2, 2, 2, 1, 1, 0, 0, 1], 6
919
+ [_sIe, _uC, _mUC, _hi, _mu, _pin, _lRVS, _lRTS, _lRA, _mU, _pA, _uMA],
920
+ [64 | 0, 1, 1, 2, 2, 2, 1, 1, 0, 0, 0, 1], 6
921
921
  ];
922
922
  export var InitialMessage$ = [3, n1, _IM,
923
923
  0,
@@ -936,8 +936,8 @@ export var JoinChannelOutput$ = [3, n1, _JCO,
936
936
  ];
937
937
  export var LastMessagePreview$ = [3, n1, _LMP,
938
938
  0,
939
- [_mIe, _uI, _mT, _cA, _t, _eve],
940
- [0, 0, 0, 0, 0, 0], 4
939
+ [_mIe, _uI, _mT, _cA, _t, _pI, _eve],
940
+ [0, 0, 0, 0, 0, 0, 0], 4
941
941
  ];
942
942
  export var LeaveChannelInput$ = [3, n1, _LCI,
943
943
  0,
@@ -109,6 +109,7 @@ declare const CreateGroupChannelCommand_base: {
109
109
  * // userId: "STRING_VALUE", // required
110
110
  * // messageType: "regular" || "system" || "deleted", // required
111
111
  * // text: "STRING_VALUE",
112
+ * // pollId: "STRING_VALUE",
112
113
  * // event: "STRING_VALUE",
113
114
  * // createdAt: "STRING_VALUE", // required
114
115
  * // },
@@ -197,6 +197,7 @@ declare const CreateKiteChannelCommand_base: {
197
197
  * // userId: "STRING_VALUE", // required
198
198
  * // messageType: "regular" || "system" || "deleted", // required
199
199
  * // text: "STRING_VALUE",
200
+ * // pollId: "STRING_VALUE",
200
201
  * // event: "STRING_VALUE",
201
202
  * // createdAt: "STRING_VALUE", // required
202
203
  * // },
@@ -58,6 +58,7 @@ declare const GetChannelCommand_base: {
58
58
  * // userId: "STRING_VALUE", // required
59
59
  * // messageType: "regular" || "system" || "deleted", // required
60
60
  * // text: "STRING_VALUE",
61
+ * // pollId: "STRING_VALUE",
61
62
  * // event: "STRING_VALUE",
62
63
  * // createdAt: "STRING_VALUE", // required
63
64
  * // },
@@ -58,6 +58,7 @@ declare const GetInboxCommand_base: {
58
58
  * // userId: "STRING_VALUE", // required
59
59
  * // messageType: "regular" || "system" || "deleted", // required
60
60
  * // text: "STRING_VALUE",
61
+ * // pollId: "STRING_VALUE",
61
62
  * // event: "STRING_VALUE",
62
63
  * // createdAt: "STRING_VALUE", // required
63
64
  * // },
@@ -126,6 +127,7 @@ declare const GetInboxCommand_base: {
126
127
  * // muted: true || false, // required
127
128
  * // mutedUntil: "STRING_VALUE",
128
129
  * // pinned: true || false, // required
130
+ * // pinnedAt: "STRING_VALUE",
129
131
  * // unreadMarkAt: Number("long"),
130
132
  * // },
131
133
  * // },
@@ -64,6 +64,7 @@ declare const GetOrCreateDirectChannelCommand_base: {
64
64
  * // userId: "STRING_VALUE", // required
65
65
  * // messageType: "regular" || "system" || "deleted", // required
66
66
  * // text: "STRING_VALUE",
67
+ * // pollId: "STRING_VALUE",
67
68
  * // event: "STRING_VALUE",
68
69
  * // createdAt: "STRING_VALUE", // required
69
70
  * // },
@@ -61,6 +61,7 @@ declare const GetOrCreateSmsChannelCommand_base: {
61
61
  * // userId: "STRING_VALUE", // required
62
62
  * // messageType: "regular" || "system" || "deleted", // required
63
63
  * // text: "STRING_VALUE",
64
+ * // pollId: "STRING_VALUE",
64
65
  * // event: "STRING_VALUE",
65
66
  * // createdAt: "STRING_VALUE", // required
66
67
  * // },
@@ -60,6 +60,7 @@ declare const GetOrCreateTelephonyChannelCommand_base: {
60
60
  * // userId: "STRING_VALUE", // required
61
61
  * // messageType: "regular" || "system" || "deleted", // required
62
62
  * // text: "STRING_VALUE",
63
+ * // pollId: "STRING_VALUE",
63
64
  * // event: "STRING_VALUE",
64
65
  * // createdAt: "STRING_VALUE", // required
65
66
  * // },
@@ -61,6 +61,7 @@ declare const GetOrCreateWhatsAppChannelCommand_base: {
61
61
  * // userId: "STRING_VALUE", // required
62
62
  * // messageType: "regular" || "system" || "deleted", // required
63
63
  * // text: "STRING_VALUE",
64
+ * // pollId: "STRING_VALUE",
64
65
  * // event: "STRING_VALUE",
65
66
  * // createdAt: "STRING_VALUE", // required
66
67
  * // },
@@ -59,6 +59,7 @@ declare const JoinChannelCommand_base: {
59
59
  * // userId: "STRING_VALUE", // required
60
60
  * // messageType: "regular" || "system" || "deleted", // required
61
61
  * // text: "STRING_VALUE",
62
+ * // pollId: "STRING_VALUE",
62
63
  * // event: "STRING_VALUE",
63
64
  * // createdAt: "STRING_VALUE", // required
64
65
  * // },
@@ -61,6 +61,7 @@ declare const ListChannelsCommand_base: {
61
61
  * // userId: "STRING_VALUE", // required
62
62
  * // messageType: "regular" || "system" || "deleted", // required
63
63
  * // text: "STRING_VALUE",
64
+ * // pollId: "STRING_VALUE",
64
65
  * // event: "STRING_VALUE",
65
66
  * // createdAt: "STRING_VALUE", // required
66
67
  * // },
@@ -129,6 +130,7 @@ declare const ListChannelsCommand_base: {
129
130
  * // muted: true || false, // required
130
131
  * // mutedUntil: "STRING_VALUE",
131
132
  * // pinned: true || false, // required
133
+ * // pinnedAt: "STRING_VALUE",
132
134
  * // unreadMarkAt: Number("long"),
133
135
  * // },
134
136
  * // },
@@ -59,6 +59,7 @@ declare const MarkReadCommand_base: {
59
59
  * // muted: true || false, // required
60
60
  * // mutedUntil: "STRING_VALUE",
61
61
  * // pinned: true || false, // required
62
+ * // pinnedAt: "STRING_VALUE",
62
63
  * // unreadMarkAt: Number("long"),
63
64
  * // },
64
65
  * // };
@@ -60,6 +60,7 @@ declare const MarkUnreadCommand_base: {
60
60
  * // muted: true || false, // required
61
61
  * // mutedUntil: "STRING_VALUE",
62
62
  * // pinned: true || false, // required
63
+ * // pinnedAt: "STRING_VALUE",
63
64
  * // unreadMarkAt: Number("long"),
64
65
  * // },
65
66
  * // };
@@ -58,6 +58,7 @@ declare const MoveChannelToSectionCommand_base: {
58
58
  * // muted: true || false, // required
59
59
  * // mutedUntil: "STRING_VALUE",
60
60
  * // pinned: true || false, // required
61
+ * // pinnedAt: "STRING_VALUE",
61
62
  * // unreadMarkAt: Number("long"),
62
63
  * // },
63
64
  * // };
@@ -58,6 +58,7 @@ declare const MuteChannelCommand_base: {
58
58
  * // muted: true || false, // required
59
59
  * // mutedUntil: "STRING_VALUE",
60
60
  * // pinned: true || false, // required
61
+ * // pinnedAt: "STRING_VALUE",
61
62
  * // unreadMarkAt: Number("long"),
62
63
  * // },
63
64
  * // };
@@ -103,6 +103,7 @@ declare const PartialUpdateChannelCommand_base: {
103
103
  * // userId: "STRING_VALUE", // required
104
104
  * // messageType: "regular" || "system" || "deleted", // required
105
105
  * // text: "STRING_VALUE",
106
+ * // pollId: "STRING_VALUE",
106
107
  * // event: "STRING_VALUE",
107
108
  * // createdAt: "STRING_VALUE", // required
108
109
  * // },
@@ -63,6 +63,7 @@ declare const QueryChannelsCommand_base: {
63
63
  * // userId: "STRING_VALUE", // required
64
64
  * // messageType: "regular" || "system" || "deleted", // required
65
65
  * // text: "STRING_VALUE",
66
+ * // pollId: "STRING_VALUE",
66
67
  * // event: "STRING_VALUE",
67
68
  * // createdAt: "STRING_VALUE", // required
68
69
  * // },
@@ -131,6 +132,7 @@ declare const QueryChannelsCommand_base: {
131
132
  * // muted: true || false, // required
132
133
  * // mutedUntil: "STRING_VALUE",
133
134
  * // pinned: true || false, // required
135
+ * // pinnedAt: "STRING_VALUE",
134
136
  * // unreadMarkAt: Number("long"),
135
137
  * // },
136
138
  * // },
@@ -58,6 +58,7 @@ declare const RemoveChannelFromSectionCommand_base: {
58
58
  * // muted: true || false, // required
59
59
  * // mutedUntil: "STRING_VALUE",
60
60
  * // pinned: true || false, // required
61
+ * // pinnedAt: "STRING_VALUE",
61
62
  * // unreadMarkAt: Number("long"),
62
63
  * // },
63
64
  * // };
@@ -65,6 +65,7 @@ declare const SearchChannelsCommand_base: {
65
65
  * // userId: "STRING_VALUE", // required
66
66
  * // messageType: "regular" || "system" || "deleted", // required
67
67
  * // text: "STRING_VALUE",
68
+ * // pollId: "STRING_VALUE",
68
69
  * // event: "STRING_VALUE",
69
70
  * // createdAt: "STRING_VALUE", // required
70
71
  * // },
@@ -57,6 +57,7 @@ declare const UnmuteChannelCommand_base: {
57
57
  * // muted: true || false, // required
58
58
  * // mutedUntil: "STRING_VALUE",
59
59
  * // pinned: true || false, // required
60
+ * // pinnedAt: "STRING_VALUE",
60
61
  * // unreadMarkAt: Number("long"),
61
62
  * // },
62
63
  * // };
@@ -98,6 +98,7 @@ declare const UpdateChannelCommand_base: {
98
98
  * // userId: "STRING_VALUE", // required
99
99
  * // messageType: "regular" || "system" || "deleted", // required
100
100
  * // text: "STRING_VALUE",
101
+ * // pollId: "STRING_VALUE",
101
102
  * // event: "STRING_VALUE",
102
103
  * // createdAt: "STRING_VALUE", // required
103
104
  * // },
@@ -376,6 +376,11 @@ export interface LastMessagePreview {
376
376
  * @public
377
377
  */
378
378
  text?: string | undefined;
379
+ /**
380
+ * Poll identifier when the message is a poll, so a preview can be rendered as one. Absent for a deleted message; the poll body is not stored.
381
+ * @public
382
+ */
383
+ pollId?: string | undefined;
379
384
  /**
380
385
  * System event identifier for client rendering.
381
386
  * @public
@@ -1558,6 +1563,11 @@ export interface InboxState {
1558
1563
  * @public
1559
1564
  */
1560
1565
  pinned: boolean;
1566
+ /**
1567
+ * When the user pinned this channel, stamped once at pin time and unchanged by later activity. Absent whenever `pinned` is false, and on the rare pinned row whose pin instant predates pin-time sort ordering.
1568
+ * @public
1569
+ */
1570
+ pinnedAt?: string | undefined;
1561
1571
  /**
1562
1572
  * `visibleSeq` from which the user manually marked the channel as unread.
1563
1573
  * @public
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@wildix/stream-client",
3
3
  "description": "@wildix/stream-client client",
4
- "version": "4.0.11",
4
+ "version": "4.1.3",
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",