@wildix/stream-client 4.2.0 → 4.2.2

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.
@@ -3,9 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.DeleteMessageReactionOutput$ = exports.DeleteMessageReactionInput$ = exports.DeleteMessageOutput$ = exports.DeleteMessageInput$ = exports.DeleteChannelMemberOutput$ = exports.DeleteChannelMemberInput$ = exports.DeleteChannelInput$ = exports.CreateSectionOutput$ = exports.CreateSectionInput$ = exports.CreateKiteChannelOutput$ = exports.CreateKiteChannelInput$ = exports.CreateGroupChannelOutput$ = exports.CreateGroupChannelInput$ = exports.ChannelsQuery$ = exports.ChannelMemberReadStatus$ = exports.ChannelMember$ = exports.ChannelContextPushToTalk$ = exports.ChannelContextEventAttendee$ = exports.ChannelContextEvent$ = exports.ChannelContext$ = exports.Channel$ = exports.ButtonReplyHandler$ = exports.ButtonLinkHandler$ = exports.ButtonElement$ = exports.ButtonActionHandler$ = exports.AssignChannelOutput$ = exports.AssignChannelInput$ = exports.AddChannelMembersOutput$ = exports.AddChannelMembersInput$ = exports.AddChannelMemberOutput$ = exports.AddChannelMemberInput$ = exports.TemplateWithParameters$ = exports.TemplateParameter$ = exports.errorTypeRegistries = exports.TargetNotFoundException$ = exports.TargetNotEligibleException$ = exports.StreamServiceException$ = exports.SectionNotFoundException$ = exports.MessageNotFoundException$ = exports.MemberNotFoundException$ = exports.MemberAlreadyExistException$ = exports.MarkUnreadChannelsLimitReachedException$ = exports.FileNotFoundException$ = exports.ChannelNotFoundException$ = exports.ChannelAlreadyExistException$ = exports.ValidationException$ = exports.UnauthorizedException$ = exports.RateLimitExceededException$ = exports.ForbiddenException$ = exports.StreamServiceServiceException$ = void 0;
4
4
  exports.ListMessagesInput$ = exports.ListMentionsOutput$ = exports.ListMentionsInput$ = exports.ListChannelsOutput$ = exports.ListChannelsInput$ = exports.ListChannelMembersReadStatusOutput$ = exports.ListChannelMembersReadStatusInput$ = exports.ListChannelMembersOutput$ = exports.ListChannelMembersInput$ = exports.LeaveChannelOutput$ = exports.LeaveChannelInput$ = exports.LastMessagePreview$ = exports.JoinChannelOutput$ = exports.JoinChannelInput$ = exports.InitialMessage$ = exports.InboxState$ = exports.InboxChannel$ = exports.HideChannelOutput$ = exports.HideChannelInput$ = exports.HardDeleteChannelInput$ = exports.GetWhatsAppChannelIdOutput$ = exports.GetWhatsAppChannelIdInput$ = exports.GetUploadedFileInfoOutput$ = exports.GetUploadedFileInfoInput$ = exports.GetTelephonyChannelIdOutput$ = exports.GetTelephonyChannelIdInput$ = exports.GetSmsChannelIdOutput$ = exports.GetSmsChannelIdInput$ = exports.GetOrCreateWhatsAppChannelOutput$ = exports.GetOrCreateWhatsAppChannelInput$ = exports.GetOrCreateTelephonyChannelOutput$ = exports.GetOrCreateTelephonyChannelInput$ = exports.GetOrCreateSmsChannelOutput$ = exports.GetOrCreateSmsChannelInput$ = exports.GetOrCreateDirectChannelOutput$ = exports.GetOrCreateDirectChannelInput$ = exports.GetMessageOutput$ = exports.GetMessageInput$ = exports.GetInboxOutput$ = exports.GetInboxInput$ = exports.GetFilePresignedDownloadUrlOutput$ = exports.GetFilePresignedDownloadUrlInput$ = exports.GetDirectChannelIdOutput$ = exports.GetDirectChannelIdInput$ = exports.GetChannelOutput$ = exports.GetChannelMemberOutput$ = exports.GetChannelMemberInput$ = exports.GetChannelInput$ = exports.DeleteSectionOutput$ = exports.DeleteSectionInput$ = void 0;
5
5
  exports.Section$ = exports.SearchUsersOutput$ = exports.SearchUsersInput$ = exports.SearchUserHit$ = exports.SearchMessagesOutput$ = exports.SearchMessagesInput$ = exports.SearchMessageHit$ = exports.SearchChannelsOutput$ = exports.SearchChannelsInput$ = exports.SearchChannelHit$ = exports.RenameSectionOutput$ = exports.RenameSectionInput$ = exports.RemoveChannelFromSectionOutput$ = exports.RemoveChannelFromSectionInput$ = exports.Reaction$ = exports.QueryUsersOutput$ = exports.QueryUsersInput$ = exports.QueryChannelsOutput$ = exports.QueryChannelsInput$ = exports.PinMessageOutput$ = exports.PinMessageInput$ = exports.PinChannelOutput$ = exports.PinChannelInput$ = exports.PartialUpdateMessageSetInput$ = exports.PartialUpdateMessageOutput$ = exports.PartialUpdateMessageInput$ = exports.PartialUpdateChannelSetOptions$ = exports.PartialUpdateChannelOutput$ = exports.PartialUpdateChannelInput$ = exports.MuteChannelOutput$ = exports.MuteChannelInput$ = exports.MultipleMembersJoinedSystemMessage$ = exports.MoveChannelToSectionOutput$ = exports.MoveChannelToSectionInput$ = exports.MessageTemplateConfig$ = exports.MessageQuoteRef$ = exports.MessageQuote$ = exports.MessageGiphy$ = exports.MessageForwardRef$ = exports.MessageForward$ = exports.MessageAttachmentRequest$ = exports.MessageAttachment$ = exports.Message$ = exports.MentionEntry$ = exports.MentionChannelPreview$ = exports.MarkUnreadOutput$ = exports.MarkUnreadInput$ = exports.MarkReadOutput$ = exports.MarkReadInput$ = exports.ListMessagesOutput$ = void 0;
6
- exports.DeleteSection$ = exports.DeleteMessageReaction$ = exports.DeleteMessage$ = exports.DeleteChannelMember$ = exports.DeleteChannel$ = exports.CreateSection$ = exports.CreateKiteChannel$ = exports.CreateGroupChannel$ = exports.AssignChannel$ = exports.AddChannelMembers$ = exports.AddChannelMember$ = exports.SystemMessage$ = exports.Element$ = exports.ButtonHandler$ = exports.AssignChannelServiceRequest$ = exports.AssignChannelAssigneeRequest$ = exports.ActionElement$ = exports.WhatsAppClosedSystemMessage$ = exports.WelcomeMessage$ = exports.UserToInvite$ = exports.UsersQuery$ = exports.UploadFileOutput$ = exports.UploadFileOptions$ = exports.UploadFileInput$ = exports.UploadedFileInfo$ = exports.UpdateMessageOutput$ = exports.UpdateMessageInput$ = exports.UpdateChannelOutput$ = exports.UpdateChannelInput$ = exports.UnpinMessageOutput$ = exports.UnpinMessageInput$ = exports.UnpinChannelOutput$ = exports.UnpinChannelInput$ = exports.UnmuteChannelOutput$ = exports.UnmuteChannelInput$ = exports.StreamUser$ = exports.ShowChannelOutput$ = exports.ShowChannelInput$ = exports.SendTypingStopOutput$ = exports.SendTypingStopInput$ = exports.SendTypingStartOutput$ = exports.SendTypingStartInput$ = exports.SendSystemMessageOutput$ = exports.SendSystemMessageInput$ = exports.SendMessageReactionOutput$ = exports.SendMessageReactionInput$ = exports.SendMessageOutput$ = exports.SendMessageInput$ = exports.SendGiphyOutput$ = exports.SendGiphyInput$ = void 0;
7
- exports.UpdateMessage$ = exports.UpdateChannel$ = exports.UnpinMessage$ = exports.UnpinChannel$ = exports.UnmuteChannel$ = exports.ShowChannel$ = exports.SendTypingStop$ = exports.SendTypingStart$ = exports.SendSystemMessage$ = exports.SendMessageReaction$ = exports.SendMessage$ = exports.SendGiphy$ = exports.SearchUsers$ = exports.SearchMessages$ = exports.SearchChannels$ = exports.RenameSection$ = exports.RemoveChannelFromSection$ = exports.QueryUsers$ = exports.QueryChannels$ = exports.PinMessage$ = exports.PinChannel$ = exports.PartialUpdateMessage$ = exports.PartialUpdateChannel$ = exports.MuteChannel$ = exports.MoveChannelToSection$ = exports.MarkUnread$ = exports.MarkRead$ = exports.ListMessages$ = exports.ListMentions$ = exports.ListChannels$ = exports.ListChannelMembersReadStatus$ = exports.ListChannelMembers$ = exports.LeaveChannel$ = exports.JoinChannel$ = exports.HideChannel$ = exports.HardDeleteChannel$ = exports.GetWhatsAppChannelId$ = exports.GetUploadedFileInfo$ = exports.GetTelephonyChannelId$ = exports.GetSmsChannelId$ = exports.GetOrCreateWhatsAppChannel$ = exports.GetOrCreateTelephonyChannel$ = exports.GetOrCreateSmsChannel$ = exports.GetOrCreateDirectChannel$ = exports.GetMessage$ = exports.GetInbox$ = exports.GetFilePresignedDownloadUrl$ = exports.GetDirectChannelId$ = exports.GetChannelMember$ = exports.GetChannel$ = void 0;
8
- exports.UploadFile$ = void 0;
6
+ exports.DeleteMessageReaction$ = exports.DeleteMessage$ = exports.DeleteChannelMember$ = exports.DeleteChannel$ = exports.CreateSection$ = exports.CreateKiteChannel$ = exports.CreateGroupChannel$ = exports.AssignChannel$ = exports.AddChannelMembers$ = exports.AddChannelMember$ = exports.SystemMessage$ = exports.Element$ = exports.ButtonHandler$ = exports.AssignChannelServiceRequest$ = exports.AssignChannelAssigneeRequest$ = exports.ActionElement$ = exports.WhatsAppClosedSystemMessage$ = exports.WelcomeMessage$ = exports.UserToInvite$ = exports.UserSummary$ = exports.UsersQuery$ = exports.UploadFileOutput$ = exports.UploadFileOptions$ = exports.UploadFileInput$ = exports.UploadedFileInfo$ = exports.UpdateMessageOutput$ = exports.UpdateMessageInput$ = exports.UpdateChannelOutput$ = exports.UpdateChannelInput$ = exports.UnpinMessageOutput$ = exports.UnpinMessageInput$ = exports.UnpinChannelOutput$ = exports.UnpinChannelInput$ = exports.UnmuteChannelOutput$ = exports.UnmuteChannelInput$ = exports.StreamUser$ = exports.ShowChannelOutput$ = exports.ShowChannelInput$ = exports.SendTypingStopOutput$ = exports.SendTypingStopInput$ = exports.SendTypingStartOutput$ = exports.SendTypingStartInput$ = exports.SendSystemMessageOutput$ = exports.SendSystemMessageInput$ = exports.SendMessageReactionOutput$ = exports.SendMessageReactionInput$ = exports.SendMessageOutput$ = exports.SendMessageInput$ = exports.SendGiphyOutput$ = exports.SendGiphyInput$ = void 0;
7
+ exports.UpdateChannel$ = exports.UnpinMessage$ = exports.UnpinChannel$ = exports.UnmuteChannel$ = exports.ShowChannel$ = exports.SendTypingStop$ = exports.SendTypingStart$ = exports.SendSystemMessage$ = exports.SendMessageReaction$ = exports.SendMessage$ = exports.SendGiphy$ = exports.SearchUsers$ = exports.SearchMessages$ = exports.SearchChannels$ = exports.RenameSection$ = exports.RemoveChannelFromSection$ = exports.QueryUsers$ = exports.QueryChannels$ = exports.PinMessage$ = exports.PinChannel$ = exports.PartialUpdateMessage$ = exports.PartialUpdateChannel$ = exports.MuteChannel$ = exports.MoveChannelToSection$ = exports.MarkUnread$ = exports.MarkRead$ = exports.ListMessages$ = exports.ListMentions$ = exports.ListChannels$ = exports.ListChannelMembersReadStatus$ = exports.ListChannelMembers$ = exports.LeaveChannel$ = exports.JoinChannel$ = exports.HideChannel$ = exports.HardDeleteChannel$ = exports.GetWhatsAppChannelId$ = exports.GetUploadedFileInfo$ = exports.GetTelephonyChannelId$ = exports.GetSmsChannelId$ = exports.GetOrCreateWhatsAppChannel$ = exports.GetOrCreateTelephonyChannel$ = exports.GetOrCreateSmsChannel$ = exports.GetOrCreateDirectChannel$ = exports.GetMessage$ = exports.GetInbox$ = exports.GetFilePresignedDownloadUrl$ = exports.GetDirectChannelId$ = exports.GetChannelMember$ = exports.GetChannel$ = exports.DeleteSection$ = void 0;
8
+ exports.UploadFile$ = exports.UpdateMessage$ = void 0;
9
9
  const _AC = "AssignChannel";
10
10
  const _ACAR = "AssignChannelAssigneeRequest";
11
11
  const _ACI = "AssignChannelInput";
@@ -270,6 +270,7 @@ const _UMO = "UnpinMessageOutput";
270
270
  const _UMOp = "UpdateMessageOutput";
271
271
  const _UMp = "UpdateMessage";
272
272
  const _UQ = "UsersQuery";
273
+ const _US = "UserSummary";
273
274
  const _UTI = "UserToInvite";
274
275
  const _UTIL = "UserToInviteList";
275
276
  const _VE = "ValidationException";
@@ -316,6 +317,7 @@ const _cu = "cursor";
316
317
  const _d = "disabled";
317
318
  const _dA = "deletedAt";
318
319
  const _dAe = "deactivatedAt";
320
+ const _dN = "displayName";
319
321
  const _de = "description";
320
322
  const _do = "download";
321
323
  const _e = "error";
@@ -418,6 +420,7 @@ const _ph = "phone";
418
420
  const _pho = "phones";
419
421
  const _pi = "picture";
420
422
  const _pin = "pinned";
423
+ const _pr = "profile";
421
424
  const _pt = "ptt";
422
425
  const _q = "quote";
423
426
  const _q_ = "q";
@@ -485,8 +488,8 @@ const _uUCC = "unmutedUnreadChannelCount";
485
488
  const _uUMC = "unmutedUnreadMessageCount";
486
489
  const _un = "unset";
487
490
  const _ur = "uri";
488
- const _us = "users";
489
- const _use = "user";
491
+ const _us = "user";
492
+ const _use = "users";
490
493
  const _v = "value";
491
494
  const _vS = "visibleSeq";
492
495
  const _va = "variant";
@@ -694,8 +697,8 @@ exports.ChannelContextPushToTalk$ = [3, n1, _CCPTT,
694
697
  ];
695
698
  exports.ChannelMember$ = [3, n1, _CM,
696
699
  0,
697
- [_uI, _jA, _ro],
698
- [0, 0, 0], 3
700
+ [_uI, _jA, _ro, _us, _pr],
701
+ [0, 0, 0, () => exports.UserSummary$, () => exports.StreamUser$], 3
699
702
  ];
700
703
  exports.ChannelMemberReadStatus$ = [3, n1, _CMRS,
701
704
  0,
@@ -1194,7 +1197,7 @@ exports.QueryUsersInput$ = [3, n1, _QUI,
1194
1197
  ];
1195
1198
  exports.QueryUsersOutput$ = [3, n1, _QUO,
1196
1199
  0,
1197
- [_us, _rI, _rD],
1200
+ [_use, _rI, _rD],
1198
1201
  [() => StreamUserList, [0, { [_hH]: _XRI }], [1, { [_hH]: _XRD }]], 1
1199
1202
  ];
1200
1203
  exports.Reaction$ = [3, n1, _R,
@@ -1254,7 +1257,7 @@ exports.SearchMessagesOutput$ = [3, n1, _SMO,
1254
1257
  ];
1255
1258
  exports.SearchUserHit$ = [3, n1, _SUH,
1256
1259
  0,
1257
- [_use, _conf, _mO],
1260
+ [_us, _conf, _mO],
1258
1261
  [() => exports.StreamUser$, 1, 0], 3
1259
1262
  ];
1260
1263
  exports.SearchUsersInput$ = [3, n1, _SUI,
@@ -1344,7 +1347,7 @@ exports.ShowChannelOutput$ = [3, n1, _SCOh,
1344
1347
  ];
1345
1348
  exports.StreamUser$ = [3, n1, _SU,
1346
1349
  0,
1347
- [_i, _bo, _n, _em, _ph, _cIo, _pi, _pE, _lo, _tZ, _dAe, _cA, _uA],
1350
+ [_i, _bo, _pi, _cIo, _dAe, _n, _em, _ph, _pE, _lo, _tZ, _cA, _uA],
1348
1351
  [0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], 2
1349
1352
  ];
1350
1353
  exports.UnmuteChannelInput$ = [3, n1, _UCI,
@@ -1422,6 +1425,11 @@ exports.UsersQuery$ = [3, n1, _UQ,
1422
1425
  [_id, _ema, _pho],
1423
1426
  [64 | 0, 64 | 0, 64 | 0]
1424
1427
  ];
1428
+ exports.UserSummary$ = [3, n1, _US,
1429
+ 0,
1430
+ [_i, _bo, _dN, _pi, _cIo, _dAe],
1431
+ [0, 2, 0, 0, 0, 0], 3
1432
+ ];
1425
1433
  exports.UserToInvite$ = [3, n1, _UTI,
1426
1434
  0,
1427
1435
  [_em, _ph, _n, _col],
@@ -1480,6 +1488,7 @@ var MessageList = [1, n1, _ML,
1480
1488
  var MessageUnsetFieldsList = 64 | 0;
1481
1489
  var MimeTypeList = 64 | 0;
1482
1490
  var PinnedMessageIdList = 64 | 0;
1491
+ var QueryUserIdList = 64 | 0;
1483
1492
  var ReactionList = [1, n1, _RL,
1484
1493
  0, () => exports.Reaction$
1485
1494
  ];
@@ -262,6 +262,7 @@ const _UMO = "UnpinMessageOutput";
262
262
  const _UMOp = "UpdateMessageOutput";
263
263
  const _UMp = "UpdateMessage";
264
264
  const _UQ = "UsersQuery";
265
+ const _US = "UserSummary";
265
266
  const _UTI = "UserToInvite";
266
267
  const _UTIL = "UserToInviteList";
267
268
  const _VE = "ValidationException";
@@ -308,6 +309,7 @@ const _cu = "cursor";
308
309
  const _d = "disabled";
309
310
  const _dA = "deletedAt";
310
311
  const _dAe = "deactivatedAt";
312
+ const _dN = "displayName";
311
313
  const _de = "description";
312
314
  const _do = "download";
313
315
  const _e = "error";
@@ -410,6 +412,7 @@ const _ph = "phone";
410
412
  const _pho = "phones";
411
413
  const _pi = "picture";
412
414
  const _pin = "pinned";
415
+ const _pr = "profile";
413
416
  const _pt = "ptt";
414
417
  const _q = "quote";
415
418
  const _q_ = "q";
@@ -477,8 +480,8 @@ const _uUCC = "unmutedUnreadChannelCount";
477
480
  const _uUMC = "unmutedUnreadMessageCount";
478
481
  const _un = "unset";
479
482
  const _ur = "uri";
480
- const _us = "users";
481
- const _use = "user";
483
+ const _us = "user";
484
+ const _use = "users";
482
485
  const _v = "value";
483
486
  const _vS = "visibleSeq";
484
487
  const _va = "variant";
@@ -686,8 +689,8 @@ export var ChannelContextPushToTalk$ = [3, n1, _CCPTT,
686
689
  ];
687
690
  export var ChannelMember$ = [3, n1, _CM,
688
691
  0,
689
- [_uI, _jA, _ro],
690
- [0, 0, 0], 3
692
+ [_uI, _jA, _ro, _us, _pr],
693
+ [0, 0, 0, () => UserSummary$, () => StreamUser$], 3
691
694
  ];
692
695
  export var ChannelMemberReadStatus$ = [3, n1, _CMRS,
693
696
  0,
@@ -1186,7 +1189,7 @@ export var QueryUsersInput$ = [3, n1, _QUI,
1186
1189
  ];
1187
1190
  export var QueryUsersOutput$ = [3, n1, _QUO,
1188
1191
  0,
1189
- [_us, _rI, _rD],
1192
+ [_use, _rI, _rD],
1190
1193
  [() => StreamUserList, [0, { [_hH]: _XRI }], [1, { [_hH]: _XRD }]], 1
1191
1194
  ];
1192
1195
  export var Reaction$ = [3, n1, _R,
@@ -1246,7 +1249,7 @@ export var SearchMessagesOutput$ = [3, n1, _SMO,
1246
1249
  ];
1247
1250
  export var SearchUserHit$ = [3, n1, _SUH,
1248
1251
  0,
1249
- [_use, _conf, _mO],
1252
+ [_us, _conf, _mO],
1250
1253
  [() => StreamUser$, 1, 0], 3
1251
1254
  ];
1252
1255
  export var SearchUsersInput$ = [3, n1, _SUI,
@@ -1336,7 +1339,7 @@ export var ShowChannelOutput$ = [3, n1, _SCOh,
1336
1339
  ];
1337
1340
  export var StreamUser$ = [3, n1, _SU,
1338
1341
  0,
1339
- [_i, _bo, _n, _em, _ph, _cIo, _pi, _pE, _lo, _tZ, _dAe, _cA, _uA],
1342
+ [_i, _bo, _pi, _cIo, _dAe, _n, _em, _ph, _pE, _lo, _tZ, _cA, _uA],
1340
1343
  [0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], 2
1341
1344
  ];
1342
1345
  export var UnmuteChannelInput$ = [3, n1, _UCI,
@@ -1414,6 +1417,11 @@ export var UsersQuery$ = [3, n1, _UQ,
1414
1417
  [_id, _ema, _pho],
1415
1418
  [64 | 0, 64 | 0, 64 | 0]
1416
1419
  ];
1420
+ export var UserSummary$ = [3, n1, _US,
1421
+ 0,
1422
+ [_i, _bo, _dN, _pi, _cIo, _dAe],
1423
+ [0, 2, 0, 0, 0, 0], 3
1424
+ ];
1417
1425
  export var UserToInvite$ = [3, n1, _UTI,
1418
1426
  0,
1419
1427
  [_em, _ph, _n, _col],
@@ -1472,6 +1480,7 @@ var MessageList = [1, n1, _ML,
1472
1480
  var MessageUnsetFieldsList = 64 | 0;
1473
1481
  var MimeTypeList = 64 | 0;
1474
1482
  var PinnedMessageIdList = 64 | 0;
1483
+ var QueryUserIdList = 64 | 0;
1475
1484
  var ReactionList = [1, n1, _RL,
1476
1485
  0, () => Reaction$
1477
1486
  ];
@@ -59,6 +59,29 @@ declare const AddChannelMemberCommand_base: {
59
59
  * // userId: "STRING_VALUE", // required
60
60
  * // joinedAt: "STRING_VALUE", // required
61
61
  * // role: "member" || "supervisor", // required
62
+ * // user: { // UserSummary
63
+ * // id: "STRING_VALUE", // required
64
+ * // picture: "STRING_VALUE",
65
+ * // companyId: "STRING_VALUE",
66
+ * // bot: true || false, // required
67
+ * // deactivatedAt: "STRING_VALUE",
68
+ * // displayName: "STRING_VALUE", // required
69
+ * // },
70
+ * // profile: { // StreamUser
71
+ * // id: "STRING_VALUE", // required
72
+ * // picture: "STRING_VALUE",
73
+ * // companyId: "STRING_VALUE",
74
+ * // bot: true || false, // required
75
+ * // deactivatedAt: "STRING_VALUE",
76
+ * // name: "STRING_VALUE",
77
+ * // email: "STRING_VALUE",
78
+ * // phone: "STRING_VALUE",
79
+ * // pbxExtension: "STRING_VALUE",
80
+ * // locale: "STRING_VALUE",
81
+ * // timeZone: "STRING_VALUE",
82
+ * // createdAt: "STRING_VALUE",
83
+ * // updatedAt: "STRING_VALUE",
84
+ * // },
62
85
  * // },
63
86
  * // };
64
87
  *
@@ -65,6 +65,29 @@ declare const AddChannelMembersCommand_base: {
65
65
  * // userId: "STRING_VALUE", // required
66
66
  * // joinedAt: "STRING_VALUE", // required
67
67
  * // role: "member" || "supervisor", // required
68
+ * // user: { // UserSummary
69
+ * // id: "STRING_VALUE", // required
70
+ * // picture: "STRING_VALUE",
71
+ * // companyId: "STRING_VALUE",
72
+ * // bot: true || false, // required
73
+ * // deactivatedAt: "STRING_VALUE",
74
+ * // displayName: "STRING_VALUE", // required
75
+ * // },
76
+ * // profile: { // StreamUser
77
+ * // id: "STRING_VALUE", // required
78
+ * // picture: "STRING_VALUE",
79
+ * // companyId: "STRING_VALUE",
80
+ * // bot: true || false, // required
81
+ * // deactivatedAt: "STRING_VALUE",
82
+ * // name: "STRING_VALUE",
83
+ * // email: "STRING_VALUE",
84
+ * // phone: "STRING_VALUE",
85
+ * // pbxExtension: "STRING_VALUE",
86
+ * // locale: "STRING_VALUE",
87
+ * // timeZone: "STRING_VALUE",
88
+ * // createdAt: "STRING_VALUE",
89
+ * // updatedAt: "STRING_VALUE",
90
+ * // },
68
91
  * // },
69
92
  * // ],
70
93
  * // };
@@ -51,6 +51,29 @@ declare const GetChannelMemberCommand_base: {
51
51
  * // userId: "STRING_VALUE", // required
52
52
  * // joinedAt: "STRING_VALUE", // required
53
53
  * // role: "member" || "supervisor", // required
54
+ * // user: { // UserSummary
55
+ * // id: "STRING_VALUE", // required
56
+ * // picture: "STRING_VALUE",
57
+ * // companyId: "STRING_VALUE",
58
+ * // bot: true || false, // required
59
+ * // deactivatedAt: "STRING_VALUE",
60
+ * // displayName: "STRING_VALUE", // required
61
+ * // },
62
+ * // profile: { // StreamUser
63
+ * // id: "STRING_VALUE", // required
64
+ * // picture: "STRING_VALUE",
65
+ * // companyId: "STRING_VALUE",
66
+ * // bot: true || false, // required
67
+ * // deactivatedAt: "STRING_VALUE",
68
+ * // name: "STRING_VALUE",
69
+ * // email: "STRING_VALUE",
70
+ * // phone: "STRING_VALUE",
71
+ * // pbxExtension: "STRING_VALUE",
72
+ * // locale: "STRING_VALUE",
73
+ * // timeZone: "STRING_VALUE",
74
+ * // createdAt: "STRING_VALUE",
75
+ * // updatedAt: "STRING_VALUE",
76
+ * // },
54
77
  * // },
55
78
  * // };
56
79
  *
@@ -53,6 +53,29 @@ declare const ListChannelMembersCommand_base: {
53
53
  * // userId: "STRING_VALUE", // required
54
54
  * // joinedAt: "STRING_VALUE", // required
55
55
  * // role: "member" || "supervisor", // required
56
+ * // user: { // UserSummary
57
+ * // id: "STRING_VALUE", // required
58
+ * // picture: "STRING_VALUE",
59
+ * // companyId: "STRING_VALUE",
60
+ * // bot: true || false, // required
61
+ * // deactivatedAt: "STRING_VALUE",
62
+ * // displayName: "STRING_VALUE", // required
63
+ * // },
64
+ * // profile: { // StreamUser
65
+ * // id: "STRING_VALUE", // required
66
+ * // picture: "STRING_VALUE",
67
+ * // companyId: "STRING_VALUE",
68
+ * // bot: true || false, // required
69
+ * // deactivatedAt: "STRING_VALUE",
70
+ * // name: "STRING_VALUE",
71
+ * // email: "STRING_VALUE",
72
+ * // phone: "STRING_VALUE",
73
+ * // pbxExtension: "STRING_VALUE",
74
+ * // locale: "STRING_VALUE",
75
+ * // timeZone: "STRING_VALUE",
76
+ * // createdAt: "STRING_VALUE",
77
+ * // updatedAt: "STRING_VALUE",
78
+ * // },
56
79
  * // },
57
80
  * // ],
58
81
  * // };
@@ -40,7 +40,7 @@ declare const QueryUsersCommand_base: {
40
40
  * companyId: "STRING_VALUE",
41
41
  * userId: "STRING_VALUE",
42
42
  * query: { // UsersQuery
43
- * ids: [ // UserIdList
43
+ * ids: [ // QueryUserIdList
44
44
  * "STRING_VALUE",
45
45
  * ],
46
46
  * emails: [ // UserEmailList
@@ -59,16 +59,16 @@ declare const QueryUsersCommand_base: {
59
59
  * // users: [ // StreamUserList // required
60
60
  * // { // StreamUser
61
61
  * // id: "STRING_VALUE", // required
62
+ * // picture: "STRING_VALUE",
63
+ * // companyId: "STRING_VALUE",
64
+ * // bot: true || false, // required
65
+ * // deactivatedAt: "STRING_VALUE",
62
66
  * // name: "STRING_VALUE",
63
67
  * // email: "STRING_VALUE",
64
68
  * // phone: "STRING_VALUE",
65
- * // companyId: "STRING_VALUE",
66
- * // picture: "STRING_VALUE",
67
- * // bot: true || false, // required
68
69
  * // pbxExtension: "STRING_VALUE",
69
70
  * // locale: "STRING_VALUE",
70
71
  * // timeZone: "STRING_VALUE",
71
- * // deactivatedAt: "STRING_VALUE",
72
72
  * // createdAt: "STRING_VALUE",
73
73
  * // updatedAt: "STRING_VALUE",
74
74
  * // },
@@ -56,16 +56,16 @@ declare const SearchUsersCommand_base: {
56
56
  * // { // SearchUserHit
57
57
  * // user: { // StreamUser
58
58
  * // id: "STRING_VALUE", // required
59
+ * // picture: "STRING_VALUE",
60
+ * // companyId: "STRING_VALUE",
61
+ * // bot: true || false, // required
62
+ * // deactivatedAt: "STRING_VALUE",
59
63
  * // name: "STRING_VALUE",
60
64
  * // email: "STRING_VALUE",
61
65
  * // phone: "STRING_VALUE",
62
- * // companyId: "STRING_VALUE",
63
- * // picture: "STRING_VALUE",
64
- * // bot: true || false, // required
65
66
  * // pbxExtension: "STRING_VALUE",
66
67
  * // locale: "STRING_VALUE",
67
68
  * // timeZone: "STRING_VALUE",
68
- * // deactivatedAt: "STRING_VALUE",
69
69
  * // createdAt: "STRING_VALUE",
70
70
  * // updatedAt: "STRING_VALUE",
71
71
  * // },
@@ -172,6 +172,113 @@ export interface AddChannelMemberInput {
172
172
  memberToInvite?: UserToInvite | undefined;
173
173
  hideHistory?: boolean | undefined;
174
174
  }
175
+ /**
176
+ * A user of the directory. Every field except `id` and `bot` is present only when the directory holds it.
177
+ * @public
178
+ */
179
+ export interface StreamUser {
180
+ /**
181
+ * User id.
182
+ * @public
183
+ */
184
+ id: string;
185
+ /**
186
+ * Picture URL.
187
+ * @public
188
+ */
189
+ picture?: string | undefined;
190
+ /**
191
+ * Company the user belongs to. Absent for a guest or an anonymous user.
192
+ * @public
193
+ */
194
+ companyId?: string | undefined;
195
+ /**
196
+ * True when the user is a bot.
197
+ * @public
198
+ */
199
+ bot: boolean;
200
+ /**
201
+ * When the user was deactivated. Absent for an active user.
202
+ * @public
203
+ */
204
+ deactivatedAt?: string | undefined;
205
+ /**
206
+ * Display name.
207
+ * @public
208
+ */
209
+ name?: string | undefined;
210
+ /**
211
+ * Email address.
212
+ * @public
213
+ */
214
+ email?: string | undefined;
215
+ /**
216
+ * Phone number.
217
+ * @public
218
+ */
219
+ phone?: string | undefined;
220
+ /**
221
+ * Extension on the PBX the user is linked to.
222
+ * @public
223
+ */
224
+ pbxExtension?: string | undefined;
225
+ /**
226
+ * Language of the user's client, as a locale tag.
227
+ * @public
228
+ */
229
+ locale?: string | undefined;
230
+ /**
231
+ * IANA time zone of the user.
232
+ * @public
233
+ */
234
+ timeZone?: string | undefined;
235
+ /**
236
+ * When the user was created.
237
+ * @public
238
+ */
239
+ createdAt?: string | undefined;
240
+ /**
241
+ * When the directory entry of the user was last written.
242
+ * @public
243
+ */
244
+ updatedAt?: string | undefined;
245
+ }
246
+ /**
247
+ * A user as every member of a channel may see them: who they are, and no contact data. A guest, an anonymous user and a user of another company are external users of the channel, and they are members too, so the email, the phone and the extension stay out; the people of the company that owns the channel get the full `StreamUser` of an external member as `ChannelMember.profile`.
248
+ * @public
249
+ */
250
+ export interface UserSummary {
251
+ /**
252
+ * User id.
253
+ * @public
254
+ */
255
+ id: string;
256
+ /**
257
+ * Picture URL.
258
+ * @public
259
+ */
260
+ picture?: string | undefined;
261
+ /**
262
+ * Company the user belongs to. Absent for a guest or an anonymous user.
263
+ * @public
264
+ */
265
+ companyId?: string | undefined;
266
+ /**
267
+ * True when the user is a bot.
268
+ * @public
269
+ */
270
+ bot: boolean;
271
+ /**
272
+ * When the user was deactivated. Absent for an active user.
273
+ * @public
274
+ */
275
+ deactivatedAt?: string | undefined;
276
+ /**
277
+ * What to call the user: their name, or when they have none the part of their email before the @, or when they have neither their id.
278
+ * @public
279
+ */
280
+ displayName: string;
281
+ }
175
282
  /**
176
283
  * Channel membership row.
177
284
  * @public
@@ -184,6 +291,16 @@ export interface ChannelMember {
184
291
  */
185
292
  joinedAt: string;
186
293
  role: ChannelMemberRole;
294
+ /**
295
+ * Who the member is, as every member of the channel may see them. Absent when the directory holds no profile for them.
296
+ * @public
297
+ */
298
+ user?: UserSummary | undefined;
299
+ /**
300
+ * Everything the directory holds about the member, with their contact data. Every channel belongs to a company, and an external user is anyone outside it: a guest, an anonymous user or a user of another company. This is present only for an external member and only when the caller belongs to the company of the channel, so that the support of a company sees its guest in full while an external user sees the people of the company as `user` only.
301
+ * @public
302
+ */
303
+ profile?: StreamUser | undefined;
187
304
  }
188
305
  /**
189
306
  * @public
@@ -3574,77 +3691,6 @@ export interface QueryUsersInput {
3574
3691
  */
3575
3692
  query: UsersQuery;
3576
3693
  }
3577
- /**
3578
- * A user of the directory. Every field except `id` and `bot` is present only when the directory holds it.
3579
- * @public
3580
- */
3581
- export interface StreamUser {
3582
- /**
3583
- * User id.
3584
- * @public
3585
- */
3586
- id: string;
3587
- /**
3588
- * Display name.
3589
- * @public
3590
- */
3591
- name?: string | undefined;
3592
- /**
3593
- * Email address.
3594
- * @public
3595
- */
3596
- email?: string | undefined;
3597
- /**
3598
- * Phone number.
3599
- * @public
3600
- */
3601
- phone?: string | undefined;
3602
- /**
3603
- * Company the user belongs to.
3604
- * @public
3605
- */
3606
- companyId?: string | undefined;
3607
- /**
3608
- * Picture URL.
3609
- * @public
3610
- */
3611
- picture?: string | undefined;
3612
- /**
3613
- * True when the user is a bot.
3614
- * @public
3615
- */
3616
- bot: boolean;
3617
- /**
3618
- * Extension on the PBX the user is linked to.
3619
- * @public
3620
- */
3621
- pbxExtension?: string | undefined;
3622
- /**
3623
- * Language of the user's client, as a locale tag.
3624
- * @public
3625
- */
3626
- locale?: string | undefined;
3627
- /**
3628
- * IANA time zone of the user.
3629
- * @public
3630
- */
3631
- timeZone?: string | undefined;
3632
- /**
3633
- * When the user was deactivated. Absent for an active user.
3634
- * @public
3635
- */
3636
- deactivatedAt?: string | undefined;
3637
- /**
3638
- * When the user was created.
3639
- * @public
3640
- */
3641
- createdAt?: string | undefined;
3642
- /**
3643
- * When the directory entry of the user was last written.
3644
- * @public
3645
- */
3646
- updatedAt?: string | undefined;
3647
- }
3648
3694
  /**
3649
3695
  * @public
3650
3696
  */
@@ -185,6 +185,7 @@ export declare var UploadFileInput$: StaticStructureSchema;
185
185
  export declare var UploadFileOptions$: StaticStructureSchema;
186
186
  export declare var UploadFileOutput$: StaticStructureSchema;
187
187
  export declare var UsersQuery$: StaticStructureSchema;
188
+ export declare var UserSummary$: StaticStructureSchema;
188
189
  export declare var UserToInvite$: StaticStructureSchema;
189
190
  export declare var WelcomeMessage$: StaticStructureSchema;
190
191
  export declare var WhatsAppClosedSystemMessage$: StaticStructureSchema;
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.2.0",
4
+ "version": "4.2.2",
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",