@wildix/stream-client 4.2.2 → 4.2.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.
@@ -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.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;
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;
9
9
  const _AC = "AssignChannel";
10
10
  const _ACAR = "AssignChannelAssigneeRequest";
11
11
  const _ACI = "AssignChannelInput";
@@ -270,7 +270,6 @@ const _UMO = "UnpinMessageOutput";
270
270
  const _UMOp = "UpdateMessageOutput";
271
271
  const _UMp = "UpdateMessage";
272
272
  const _UQ = "UsersQuery";
273
- const _US = "UserSummary";
274
273
  const _UTI = "UserToInvite";
275
274
  const _UTIL = "UserToInviteList";
276
275
  const _VE = "ValidationException";
@@ -420,7 +419,6 @@ const _ph = "phone";
420
419
  const _pho = "phones";
421
420
  const _pi = "picture";
422
421
  const _pin = "pinned";
423
- const _pr = "profile";
424
422
  const _pt = "ptt";
425
423
  const _q = "quote";
426
424
  const _q_ = "q";
@@ -488,8 +486,8 @@ const _uUCC = "unmutedUnreadChannelCount";
488
486
  const _uUMC = "unmutedUnreadMessageCount";
489
487
  const _un = "unset";
490
488
  const _ur = "uri";
491
- const _us = "user";
492
- const _use = "users";
489
+ const _us = "users";
490
+ const _use = "user";
493
491
  const _v = "value";
494
492
  const _vS = "visibleSeq";
495
493
  const _va = "variant";
@@ -697,8 +695,8 @@ exports.ChannelContextPushToTalk$ = [3, n1, _CCPTT,
697
695
  ];
698
696
  exports.ChannelMember$ = [3, n1, _CM,
699
697
  0,
700
- [_uI, _jA, _ro, _us, _pr],
701
- [0, 0, 0, () => exports.UserSummary$, () => exports.StreamUser$], 3
698
+ [_uI, _jA, _ro],
699
+ [0, 0, 0], 3
702
700
  ];
703
701
  exports.ChannelMemberReadStatus$ = [3, n1, _CMRS,
704
702
  0,
@@ -1197,7 +1195,7 @@ exports.QueryUsersInput$ = [3, n1, _QUI,
1197
1195
  ];
1198
1196
  exports.QueryUsersOutput$ = [3, n1, _QUO,
1199
1197
  0,
1200
- [_use, _rI, _rD],
1198
+ [_us, _rI, _rD],
1201
1199
  [() => StreamUserList, [0, { [_hH]: _XRI }], [1, { [_hH]: _XRD }]], 1
1202
1200
  ];
1203
1201
  exports.Reaction$ = [3, n1, _R,
@@ -1257,7 +1255,7 @@ exports.SearchMessagesOutput$ = [3, n1, _SMO,
1257
1255
  ];
1258
1256
  exports.SearchUserHit$ = [3, n1, _SUH,
1259
1257
  0,
1260
- [_us, _conf, _mO],
1258
+ [_use, _conf, _mO],
1261
1259
  [() => exports.StreamUser$, 1, 0], 3
1262
1260
  ];
1263
1261
  exports.SearchUsersInput$ = [3, n1, _SUI,
@@ -1347,8 +1345,8 @@ exports.ShowChannelOutput$ = [3, n1, _SCOh,
1347
1345
  ];
1348
1346
  exports.StreamUser$ = [3, n1, _SU,
1349
1347
  0,
1350
- [_i, _bo, _pi, _cIo, _dAe, _n, _em, _ph, _pE, _lo, _tZ, _cA, _uA],
1351
- [0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], 2
1348
+ [_i, _dN, _bo, _n, _em, _ph, _cIo, _pi, _pE, _lo, _tZ, _dAe, _cA, _uA],
1349
+ [0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], 3
1352
1350
  ];
1353
1351
  exports.UnmuteChannelInput$ = [3, n1, _UCI,
1354
1352
  0,
@@ -1425,11 +1423,6 @@ exports.UsersQuery$ = [3, n1, _UQ,
1425
1423
  [_id, _ema, _pho],
1426
1424
  [64 | 0, 64 | 0, 64 | 0]
1427
1425
  ];
1428
- exports.UserSummary$ = [3, n1, _US,
1429
- 0,
1430
- [_i, _bo, _dN, _pi, _cIo, _dAe],
1431
- [0, 2, 0, 0, 0, 0], 3
1432
- ];
1433
1426
  exports.UserToInvite$ = [3, n1, _UTI,
1434
1427
  0,
1435
1428
  [_em, _ph, _n, _col],
@@ -262,7 +262,6 @@ const _UMO = "UnpinMessageOutput";
262
262
  const _UMOp = "UpdateMessageOutput";
263
263
  const _UMp = "UpdateMessage";
264
264
  const _UQ = "UsersQuery";
265
- const _US = "UserSummary";
266
265
  const _UTI = "UserToInvite";
267
266
  const _UTIL = "UserToInviteList";
268
267
  const _VE = "ValidationException";
@@ -412,7 +411,6 @@ const _ph = "phone";
412
411
  const _pho = "phones";
413
412
  const _pi = "picture";
414
413
  const _pin = "pinned";
415
- const _pr = "profile";
416
414
  const _pt = "ptt";
417
415
  const _q = "quote";
418
416
  const _q_ = "q";
@@ -480,8 +478,8 @@ const _uUCC = "unmutedUnreadChannelCount";
480
478
  const _uUMC = "unmutedUnreadMessageCount";
481
479
  const _un = "unset";
482
480
  const _ur = "uri";
483
- const _us = "user";
484
- const _use = "users";
481
+ const _us = "users";
482
+ const _use = "user";
485
483
  const _v = "value";
486
484
  const _vS = "visibleSeq";
487
485
  const _va = "variant";
@@ -689,8 +687,8 @@ export var ChannelContextPushToTalk$ = [3, n1, _CCPTT,
689
687
  ];
690
688
  export var ChannelMember$ = [3, n1, _CM,
691
689
  0,
692
- [_uI, _jA, _ro, _us, _pr],
693
- [0, 0, 0, () => UserSummary$, () => StreamUser$], 3
690
+ [_uI, _jA, _ro],
691
+ [0, 0, 0], 3
694
692
  ];
695
693
  export var ChannelMemberReadStatus$ = [3, n1, _CMRS,
696
694
  0,
@@ -1189,7 +1187,7 @@ export var QueryUsersInput$ = [3, n1, _QUI,
1189
1187
  ];
1190
1188
  export var QueryUsersOutput$ = [3, n1, _QUO,
1191
1189
  0,
1192
- [_use, _rI, _rD],
1190
+ [_us, _rI, _rD],
1193
1191
  [() => StreamUserList, [0, { [_hH]: _XRI }], [1, { [_hH]: _XRD }]], 1
1194
1192
  ];
1195
1193
  export var Reaction$ = [3, n1, _R,
@@ -1249,7 +1247,7 @@ export var SearchMessagesOutput$ = [3, n1, _SMO,
1249
1247
  ];
1250
1248
  export var SearchUserHit$ = [3, n1, _SUH,
1251
1249
  0,
1252
- [_us, _conf, _mO],
1250
+ [_use, _conf, _mO],
1253
1251
  [() => StreamUser$, 1, 0], 3
1254
1252
  ];
1255
1253
  export var SearchUsersInput$ = [3, n1, _SUI,
@@ -1339,8 +1337,8 @@ export var ShowChannelOutput$ = [3, n1, _SCOh,
1339
1337
  ];
1340
1338
  export var StreamUser$ = [3, n1, _SU,
1341
1339
  0,
1342
- [_i, _bo, _pi, _cIo, _dAe, _n, _em, _ph, _pE, _lo, _tZ, _cA, _uA],
1343
- [0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], 2
1340
+ [_i, _dN, _bo, _n, _em, _ph, _cIo, _pi, _pE, _lo, _tZ, _dAe, _cA, _uA],
1341
+ [0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], 3
1344
1342
  ];
1345
1343
  export var UnmuteChannelInput$ = [3, n1, _UCI,
1346
1344
  0,
@@ -1417,11 +1415,6 @@ export var UsersQuery$ = [3, n1, _UQ,
1417
1415
  [_id, _ema, _pho],
1418
1416
  [64 | 0, 64 | 0, 64 | 0]
1419
1417
  ];
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
- ];
1425
1418
  export var UserToInvite$ = [3, n1, _UTI,
1426
1419
  0,
1427
1420
  [_em, _ph, _n, _col],
@@ -59,29 +59,6 @@ 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
- * // },
85
62
  * // },
86
63
  * // };
87
64
  *
@@ -65,29 +65,6 @@ 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
- * // },
91
68
  * // },
92
69
  * // ],
93
70
  * // };
@@ -51,29 +51,6 @@ 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
- * // },
77
54
  * // },
78
55
  * // };
79
56
  *
@@ -53,29 +53,6 @@ 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
- * // },
79
56
  * // },
80
57
  * // ],
81
58
  * // };
@@ -59,16 +59,17 @@ 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",
62
+ * // displayName: "STRING_VALUE", // required
64
63
  * // bot: true || false, // required
65
- * // deactivatedAt: "STRING_VALUE",
66
64
  * // name: "STRING_VALUE",
67
65
  * // email: "STRING_VALUE",
68
66
  * // phone: "STRING_VALUE",
67
+ * // companyId: "STRING_VALUE",
68
+ * // picture: "STRING_VALUE",
69
69
  * // pbxExtension: "STRING_VALUE",
70
70
  * // locale: "STRING_VALUE",
71
71
  * // timeZone: "STRING_VALUE",
72
+ * // deactivatedAt: "STRING_VALUE",
72
73
  * // createdAt: "STRING_VALUE",
73
74
  * // updatedAt: "STRING_VALUE",
74
75
  * // },
@@ -56,16 +56,17 @@ 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",
59
+ * // displayName: "STRING_VALUE", // required
61
60
  * // bot: true || false, // required
62
- * // deactivatedAt: "STRING_VALUE",
63
61
  * // name: "STRING_VALUE",
64
62
  * // email: "STRING_VALUE",
65
63
  * // phone: "STRING_VALUE",
64
+ * // companyId: "STRING_VALUE",
65
+ * // picture: "STRING_VALUE",
66
66
  * // pbxExtension: "STRING_VALUE",
67
67
  * // locale: "STRING_VALUE",
68
68
  * // timeZone: "STRING_VALUE",
69
+ * // deactivatedAt: "STRING_VALUE",
69
70
  * // createdAt: "STRING_VALUE",
70
71
  * // updatedAt: "STRING_VALUE",
71
72
  * // },
@@ -172,113 +172,6 @@ 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
- }
282
175
  /**
283
176
  * Channel membership row.
284
177
  * @public
@@ -291,16 +184,6 @@ export interface ChannelMember {
291
184
  */
292
185
  joinedAt: string;
293
186
  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;
304
187
  }
305
188
  /**
306
189
  * @public
@@ -3691,6 +3574,82 @@ export interface QueryUsersInput {
3691
3574
  */
3692
3575
  query: UsersQuery;
3693
3576
  }
3577
+ /**
3578
+ * A user of the directory. Every field except `id`, `displayName` and `bot` is present only when the directory holds it and the caller may see it.
3579
+ * @public
3580
+ */
3581
+ export interface StreamUser {
3582
+ /**
3583
+ * User id.
3584
+ * @public
3585
+ */
3586
+ id: string;
3587
+ /**
3588
+ * 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. Always present.
3589
+ * @public
3590
+ */
3591
+ displayName: string;
3592
+ /**
3593
+ * True when the user is a bot.
3594
+ * @public
3595
+ */
3596
+ bot: boolean;
3597
+ /**
3598
+ * Name.
3599
+ * @public
3600
+ */
3601
+ name?: string | undefined;
3602
+ /**
3603
+ * Email address.
3604
+ * @public
3605
+ */
3606
+ email?: string | undefined;
3607
+ /**
3608
+ * Phone number.
3609
+ * @public
3610
+ */
3611
+ phone?: string | undefined;
3612
+ /**
3613
+ * Company the user belongs to.
3614
+ * @public
3615
+ */
3616
+ companyId?: string | undefined;
3617
+ /**
3618
+ * Picture URL.
3619
+ * @public
3620
+ */
3621
+ picture?: string | undefined;
3622
+ /**
3623
+ * Extension on the PBX the user is linked to.
3624
+ * @public
3625
+ */
3626
+ pbxExtension?: string | undefined;
3627
+ /**
3628
+ * Language of the user's client, as a locale tag.
3629
+ * @public
3630
+ */
3631
+ locale?: string | undefined;
3632
+ /**
3633
+ * IANA time zone of the user.
3634
+ * @public
3635
+ */
3636
+ timeZone?: string | undefined;
3637
+ /**
3638
+ * When the user was deactivated. Absent for an active user.
3639
+ * @public
3640
+ */
3641
+ deactivatedAt?: string | undefined;
3642
+ /**
3643
+ * When the user was created.
3644
+ * @public
3645
+ */
3646
+ createdAt?: string | undefined;
3647
+ /**
3648
+ * When the directory entry of the user was last written.
3649
+ * @public
3650
+ */
3651
+ updatedAt?: string | undefined;
3652
+ }
3694
3653
  /**
3695
3654
  * @public
3696
3655
  */
@@ -3998,7 +3957,7 @@ export interface SearchMessagesOutput {
3998
3957
  */
3999
3958
  export interface SearchUserHit {
4000
3959
  /**
4001
- * A user of the directory. Every field except `id` and `bot` is present only when the directory holds it.
3960
+ * A user of the directory. Every field except `id`, `displayName` and `bot` is present only when the directory holds it and the caller may see it.
4002
3961
  * @public
4003
3962
  */
4004
3963
  user: StreamUser;
@@ -185,7 +185,6 @@ 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;
189
188
  export declare var UserToInvite$: StaticStructureSchema;
190
189
  export declare var WelcomeMessage$: StaticStructureSchema;
191
190
  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.2",
4
+ "version": "4.2.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",