@wildix/stream-client 4.1.10 → 4.2.0

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.
@@ -90,12 +90,9 @@ const _GOCWACO = "GetOrCreateWhatsAppChannelOutput";
90
90
  const _GSCI = "GetSmsChannelId";
91
91
  const _GSCII = "GetSmsChannelIdInput";
92
92
  const _GSCIO = "GetSmsChannelIdOutput";
93
- const _GT = "GetToken";
94
93
  const _GTCI = "GetTelephonyChannelId";
95
94
  const _GTCII = "GetTelephonyChannelIdInput";
96
95
  const _GTCIO = "GetTelephonyChannelIdOutput";
97
- const _GTI = "GetTokenInput";
98
- const _GTO = "GetTokenOutput";
99
96
  const _GUFI = "GetUploadedFileInfo";
100
97
  const _GUFII = "GetUploadedFileInfoInput";
101
98
  const _GUFIO = "GetUploadedFileInfoOutput";
@@ -183,6 +180,9 @@ const _PUMSI = "PartialUpdateMessageSetInput";
183
180
  const _QC = "QueryChannels";
184
181
  const _QCI = "QueryChannelsInput";
185
182
  const _QCO = "QueryChannelsOutput";
183
+ const _QU = "QueryUsers";
184
+ const _QUI = "QueryUsersInput";
185
+ const _QUO = "QueryUsersOutput";
186
186
  const _R = "Reaction";
187
187
  const _RA = "Retry-After";
188
188
  const _RCFS = "RemoveChannelFromSection";
@@ -229,6 +229,13 @@ const _STSIe = "SendTypingStopInput";
229
229
  const _STSO = "SendTypingStartOutput";
230
230
  const _STSOe = "SendTypingStopOutput";
231
231
  const _STSe = "SendTypingStop";
232
+ const _SU = "StreamUser";
233
+ const _SUH = "SearchUserHit";
234
+ const _SUHL = "SearchUserHitList";
235
+ const _SUI = "SearchUsersInput";
236
+ const _SUL = "StreamUserList";
237
+ const _SUO = "SearchUsersOutput";
238
+ const _SUe = "SearchUsers";
232
239
  const _TNEE = "TargetNotEligibleException";
233
240
  const _TNFE = "TargetNotFoundException";
234
241
  const _TP = "TemplateParameter";
@@ -254,6 +261,7 @@ const _UMIp = "UpdateMessageInput";
254
261
  const _UMO = "UnpinMessageOutput";
255
262
  const _UMOp = "UpdateMessageOutput";
256
263
  const _UMp = "UpdateMessage";
264
+ const _UQ = "UsersQuery";
257
265
  const _UTI = "UserToInvite";
258
266
  const _UTIL = "UserToInviteList";
259
267
  const _VE = "ValidationException";
@@ -278,6 +286,7 @@ const _at = "attendees";
278
286
  const _att = "attachments";
279
287
  const _b = "broadcast";
280
288
  const _bI = "broadcastId";
289
+ const _bo = "bot";
281
290
  const _bu = "button";
282
291
  const _c = "client";
283
292
  const _cA = "createdAt";
@@ -285,7 +294,6 @@ const _cB = "createdBy";
285
294
  const _cC = "channelCount";
286
295
  const _cET = "creationEventType";
287
296
  const _cI = "channelId";
288
- const _cIl = "clientId";
289
297
  const _cIo = "companyId";
290
298
  const _cT = "channelType";
291
299
  const _cV = "channelVersion";
@@ -295,20 +303,22 @@ const _cha = "channels";
295
303
  const _co = "company";
296
304
  const _col = "colleague";
297
305
  const _con = "context";
306
+ const _conf = "confidence";
298
307
  const _cu = "cursor";
299
308
  const _d = "disabled";
300
309
  const _dA = "deletedAt";
310
+ const _dAe = "deactivatedAt";
301
311
  const _de = "description";
302
312
  const _do = "download";
303
313
  const _e = "error";
304
314
  const _eA = "editedAt";
305
315
  const _el = "elements";
306
316
  const _em = "email";
317
+ const _ema = "emails";
307
318
  const _en = "end";
308
319
  const _ev = "events";
309
320
  const _eve = "event";
310
321
  const _ex = "external";
311
- const _exp = "expires";
312
322
  const _f = "file";
313
323
  const _fI = "fsId";
314
324
  const _fUVS = "firstUnreadVisibleSeq";
@@ -329,6 +339,7 @@ const _hi = "hidden";
329
339
  const _hig = "highlights";
330
340
  const _ht = "http";
331
341
  const _i = "id";
342
+ const _iB = "includeBots";
332
343
  const _iM = "initialMessage";
333
344
  const _id = "ids";
334
345
  const _in = "inbox";
@@ -347,14 +358,17 @@ const _lRA = "lastReadAt";
347
358
  const _lRTS = "lastReadTimelineSeq";
348
359
  const _lRVS = "lastReadVisibleSeq";
349
360
  const _li = "link";
361
+ const _lo = "locale";
350
362
  const _m = "message";
351
363
  const _mAA = "mentionAddedAt";
352
364
  const _mC = "membersCount";
353
365
  const _mCe = "messagingChannel";
354
366
  const _mCem = "memberCount";
367
+ const _mCi = "minConfidence";
355
368
  const _mI = "memberId";
356
369
  const _mIe = "messageId";
357
370
  const _mMJ = "multipleMembersJoined";
371
+ const _mO = "matchedOn";
358
372
  const _mRU = "messagingReplyUntil";
359
373
  const _mS = "messagingStatus";
360
374
  const _mSI = "messagingSenderId";
@@ -367,12 +381,14 @@ const _mUC = "mentionUnreadCount";
367
381
  const _mUMC = "mutedUnreadMessageCount";
368
382
  const _mV = "messageVersion";
369
383
  const _ma = "markdown";
384
+ const _mar = "margin";
370
385
  const _me = "member";
371
386
  const _mem = "members";
372
387
  const _men = "mentions";
373
388
  const _mes = "messages";
374
389
  const _mi = "mime";
375
390
  const _mm = "mms";
391
+ const _mo = "mode";
376
392
  const _mu = "muted";
377
393
  const _n = "name";
378
394
  const _nC = "nextCursor";
@@ -385,11 +401,13 @@ const _pA = "pinnedAt";
385
401
  const _pB = "pinnedBy";
386
402
  const _pC = "pictureColor";
387
403
  const _pDU = "presignedDownloadUrl";
404
+ const _pE = "pbxExtension";
388
405
  const _pI = "peerId";
389
406
  const _pIo = "pollId";
390
407
  const _pMI = "pinnedMessageIds";
391
408
  const _pUU = "presignedUploadUrl";
392
409
  const _ph = "phone";
410
+ const _pho = "phones";
393
411
  const _pi = "picture";
394
412
  const _pin = "pinned";
395
413
  const _pt = "ptt";
@@ -441,12 +459,12 @@ const _tI = "targetId";
441
459
  const _tL = "transcriptionLanguage";
442
460
  const _tRI = "targetRouteId";
443
461
  const _tS = "timelineSeq";
462
+ const _tZ = "timeZone";
444
463
  const _ta = "target";
445
464
  const _te = "telephony";
446
465
  const _tem = "template";
447
466
  const _th = "thumbnail";
448
- const _to = "token";
449
- const _to_ = "to";
467
+ const _to = "to";
450
468
  const _ty = "type";
451
469
  const _u = "url";
452
470
  const _uA = "updatedAt";
@@ -459,11 +477,14 @@ const _uUCC = "unmutedUnreadChannelCount";
459
477
  const _uUMC = "unmutedUnreadMessageCount";
460
478
  const _un = "unset";
461
479
  const _ur = "uri";
480
+ const _us = "users";
481
+ const _use = "user";
462
482
  const _v = "value";
463
483
  const _vS = "visibleSeq";
464
484
  const _va = "variant";
465
485
  const _w = "whatsapp";
466
486
  const _wAC = "whatsAppClosed";
487
+ const _wEO = "withExtensionOnly";
467
488
  const _wGVO = "wizyGuestViewOnly";
468
489
  const _wM = "welcomeMessages";
469
490
  const _wS = "whatsappStatus";
@@ -873,16 +894,6 @@ export var GetTelephonyChannelIdOutput$ = [3, n1, _GTCIO,
873
894
  [_cI, _rI, _rD],
874
895
  [0, [0, { [_hH]: _XRI }], [1, { [_hH]: _XRD }]], 1
875
896
  ];
876
- export var GetTokenInput$ = [3, n1, _GTI,
877
- 0,
878
- [_cIo, _uI, _cIl],
879
- [[0, { [_hQ]: _co }], [0, { [_hQ]: _uI }], [0, { [_hQ]: _cIl }]]
880
- ];
881
- export var GetTokenOutput$ = [3, n1, _GTO,
882
- 0,
883
- [_to, _exp, _rI, _rD],
884
- [0, 1, [0, { [_hH]: _XRI }], [1, { [_hH]: _XRD }]], 2
885
- ];
886
897
  export var GetUploadedFileInfoInput$ = [3, n1, _GUFII,
887
898
  0,
888
899
  [_cI, _fI, _cIo, _uI, _ca],
@@ -1000,8 +1011,8 @@ export var ListMentionsOutput$ = [3, n1, _LMO,
1000
1011
  ];
1001
1012
  export var ListMessagesInput$ = [3, n1, _LMIi,
1002
1013
  0,
1003
- [_cI, _cIo, _uI, _fr, _to_, _an],
1004
- [[0, 1], [0, { [_hQ]: _co }], [0, { [_hQ]: _uI }], [1, { [_hQ]: _fr }], [1, { [_hQ]: _to_ }], [0, { [_hQ]: _an }]], 1
1014
+ [_cI, _cIo, _uI, _fr, _to, _an],
1015
+ [[0, 1], [0, { [_hQ]: _co }], [0, { [_hQ]: _uI }], [1, { [_hQ]: _fr }], [1, { [_hQ]: _to }], [0, { [_hQ]: _an }]], 1
1005
1016
  ];
1006
1017
  export var ListMessagesOutput$ = [3, n1, _LMOi,
1007
1018
  0,
@@ -1168,6 +1179,16 @@ export var QueryChannelsOutput$ = [3, n1, _QCO,
1168
1179
  [_cha, _rI, _rD],
1169
1180
  [() => InboxChannelList, [0, { [_hH]: _XRI }], [1, { [_hH]: _XRD }]], 1
1170
1181
  ];
1182
+ export var QueryUsersInput$ = [3, n1, _QUI,
1183
+ 0,
1184
+ [_qu, _cIo, _uI],
1185
+ [() => UsersQuery$, [0, { [_hQ]: _co }], [0, { [_hQ]: _uI }]], 1
1186
+ ];
1187
+ export var QueryUsersOutput$ = [3, n1, _QUO,
1188
+ 0,
1189
+ [_us, _rI, _rD],
1190
+ [() => StreamUserList, [0, { [_hH]: _XRI }], [1, { [_hH]: _XRD }]], 1
1191
+ ];
1171
1192
  export var Reaction$ = [3, n1, _R,
1172
1193
  0,
1173
1194
  [_ty, _uI, _mIe],
@@ -1223,6 +1244,21 @@ export var SearchMessagesOutput$ = [3, n1, _SMO,
1223
1244
  [_res, _rI, _rD, _tC, _nC],
1224
1245
  [() => SearchMessageHitList, [0, { [_hH]: _XRI }], [1, { [_hH]: _XRD }], 1, 0], 1
1225
1246
  ];
1247
+ export var SearchUserHit$ = [3, n1, _SUH,
1248
+ 0,
1249
+ [_use, _conf, _mO],
1250
+ [() => StreamUser$, 1, 0], 3
1251
+ ];
1252
+ export var SearchUsersInput$ = [3, n1, _SUI,
1253
+ 0,
1254
+ [_q_, _cIo, _uI, _mo, _siz, _cu, _iB, _wEO, _mCi],
1255
+ [[0, { [_hQ]: _q_ }], [0, { [_hQ]: _co }], [0, { [_hQ]: _uI }], [0, { [_hQ]: _mo }], [1, { [_hQ]: _siz }], [0, { [_hQ]: _cu }], [2, { [_hQ]: _iB }], [2, { [_hQ]: _wEO }], [1, { [_hQ]: _mCi }]], 1
1256
+ ];
1257
+ export var SearchUsersOutput$ = [3, n1, _SUO,
1258
+ 0,
1259
+ [_res, _rI, _rD, _nC, _mar],
1260
+ [() => SearchUserHitList, [0, { [_hH]: _XRI }], [1, { [_hH]: _XRD }], 0, 1], 1
1261
+ ];
1226
1262
  export var Section$ = [3, n1, _S,
1227
1263
  0,
1228
1264
  [_sI, _n, _ty, _cC, _uUCC, _uUMC, _mUMC, _uMC],
@@ -1298,6 +1334,11 @@ export var ShowChannelOutput$ = [3, n1, _SCOh,
1298
1334
  [_rI, _rD],
1299
1335
  [[0, { [_hH]: _XRI }], [1, { [_hH]: _XRD }]]
1300
1336
  ];
1337
+ export var StreamUser$ = [3, n1, _SU,
1338
+ 0,
1339
+ [_i, _bo, _n, _em, _ph, _cIo, _pi, _pE, _lo, _tZ, _dAe, _cA, _uA],
1340
+ [0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], 2
1341
+ ];
1301
1342
  export var UnmuteChannelInput$ = [3, n1, _UCI,
1302
1343
  0,
1303
1344
  [_cI, _cIo, _uI],
@@ -1368,6 +1409,11 @@ export var UploadFileOutput$ = [3, n1, _UFOp,
1368
1409
  [_fI, _pUU, _rI, _rD],
1369
1410
  [0, 0, [0, { [_hH]: _XRI }], [1, { [_hH]: _XRD }]], 2
1370
1411
  ];
1412
+ export var UsersQuery$ = [3, n1, _UQ,
1413
+ 0,
1414
+ [_id, _ema, _pho],
1415
+ [64 | 0, 64 | 0, 64 | 0]
1416
+ ];
1371
1417
  export var UserToInvite$ = [3, n1, _UTI,
1372
1418
  0,
1373
1419
  [_em, _ph, _n, _col],
@@ -1435,12 +1481,20 @@ var SearchChannelHitList = [1, n1, _SCHL,
1435
1481
  var SearchMessageHitList = [1, n1, _SMHL,
1436
1482
  0, () => SearchMessageHit$
1437
1483
  ];
1484
+ var SearchUserHitList = [1, n1, _SUHL,
1485
+ 0, () => SearchUserHit$
1486
+ ];
1438
1487
  var SectionIdList = 64 | 0;
1439
1488
  var SectionList = [1, n1, _SL,
1440
1489
  0, () => Section$
1441
1490
  ];
1442
1491
  var SenderIdList = 64 | 0;
1492
+ var StreamUserList = [1, n1, _SUL,
1493
+ 0, () => StreamUser$
1494
+ ];
1495
+ var UserEmailList = 64 | 0;
1443
1496
  var UserIdList = 64 | 0;
1497
+ var UserPhoneList = 64 | 0;
1444
1498
  var UserToInviteList = [1, n1, _UTIL,
1445
1499
  0, () => UserToInvite$
1446
1500
  ];
@@ -1547,9 +1601,6 @@ export var GetSmsChannelId$ = [9, n1, _GSCI,
1547
1601
  export var GetTelephonyChannelId$ = [9, n1, _GTCI,
1548
1602
  { [_ht]: ["POST", "/api/v1/channels/telephony/resolve-id", 200] }, () => GetTelephonyChannelIdInput$, () => GetTelephonyChannelIdOutput$
1549
1603
  ];
1550
- export var GetToken$ = [9, n1, _GT,
1551
- { [_ht]: ["GET", "/api/v1/token", 200] }, () => GetTokenInput$, () => GetTokenOutput$
1552
- ];
1553
1604
  export var GetUploadedFileInfo$ = [9, n1, _GUFI,
1554
1605
  { [_ht]: ["GET", "/api/v1/channels/{channelId}/files/{fsId}", 200] }, () => GetUploadedFileInfoInput$, () => GetUploadedFileInfoOutput$
1555
1606
  ];
@@ -1610,6 +1661,9 @@ export var PinMessage$ = [9, n1, _PM,
1610
1661
  export var QueryChannels$ = [9, n1, _QC,
1611
1662
  { [_ht]: ["POST", "/api/v1/channels/query", 200] }, () => QueryChannelsInput$, () => QueryChannelsOutput$
1612
1663
  ];
1664
+ export var QueryUsers$ = [9, n1, _QU,
1665
+ { [_ht]: ["POST", "/api/v1/users/query", 200] }, () => QueryUsersInput$, () => QueryUsersOutput$
1666
+ ];
1613
1667
  export var RemoveChannelFromSection$ = [9, n1, _RCFS,
1614
1668
  { [_ht]: ["DELETE", "/api/v1/channels/{channelId}/sections/{sectionId}", 200] }, () => RemoveChannelFromSectionInput$, () => RemoveChannelFromSectionOutput$
1615
1669
  ];
@@ -1622,6 +1676,9 @@ export var SearchChannels$ = [9, n1, _SC,
1622
1676
  export var SearchMessages$ = [9, n1, _SMe,
1623
1677
  { [_ht]: ["GET", "/api/v1/search/messages", 200] }, () => SearchMessagesInput$, () => SearchMessagesOutput$
1624
1678
  ];
1679
+ export var SearchUsers$ = [9, n1, _SUe,
1680
+ { [_ht]: ["GET", "/api/v1/search/users", 200] }, () => SearchUsersInput$, () => SearchUsersOutput$
1681
+ ];
1625
1682
  export var SendGiphy$ = [9, n1, _SG,
1626
1683
  { [_ht]: ["POST", "/api/v1/channels/{channelId}/giphys", 200] }, () => SendGiphyInput$, () => SendGiphyOutput$
1627
1684
  ];
@@ -22,7 +22,6 @@ import { type GetOrCreateTelephonyChannelCommandInput, type GetOrCreateTelephony
22
22
  import { type GetOrCreateWhatsAppChannelCommandInput, type GetOrCreateWhatsAppChannelCommandOutput } from "./commands/GetOrCreateWhatsAppChannelCommand";
23
23
  import { type GetSmsChannelIdCommandInput, type GetSmsChannelIdCommandOutput } from "./commands/GetSmsChannelIdCommand";
24
24
  import { type GetTelephonyChannelIdCommandInput, type GetTelephonyChannelIdCommandOutput } from "./commands/GetTelephonyChannelIdCommand";
25
- import { type GetTokenCommandInput, type GetTokenCommandOutput } from "./commands/GetTokenCommand";
26
25
  import { type GetUploadedFileInfoCommandInput, type GetUploadedFileInfoCommandOutput } from "./commands/GetUploadedFileInfoCommand";
27
26
  import { type GetWhatsAppChannelIdCommandInput, type GetWhatsAppChannelIdCommandOutput } from "./commands/GetWhatsAppChannelIdCommand";
28
27
  import { type HardDeleteChannelCommandInput, type HardDeleteChannelCommandOutput } from "./commands/HardDeleteChannelCommand";
@@ -43,10 +42,12 @@ import { type PartialUpdateMessageCommandInput, type PartialUpdateMessageCommand
43
42
  import { type PinChannelCommandInput, type PinChannelCommandOutput } from "./commands/PinChannelCommand";
44
43
  import { type PinMessageCommandInput, type PinMessageCommandOutput } from "./commands/PinMessageCommand";
45
44
  import { type QueryChannelsCommandInput, type QueryChannelsCommandOutput } from "./commands/QueryChannelsCommand";
45
+ import { type QueryUsersCommandInput, type QueryUsersCommandOutput } from "./commands/QueryUsersCommand";
46
46
  import { type RemoveChannelFromSectionCommandInput, type RemoveChannelFromSectionCommandOutput } from "./commands/RemoveChannelFromSectionCommand";
47
47
  import { type RenameSectionCommandInput, type RenameSectionCommandOutput } from "./commands/RenameSectionCommand";
48
48
  import { type SearchChannelsCommandInput, type SearchChannelsCommandOutput } from "./commands/SearchChannelsCommand";
49
49
  import { type SearchMessagesCommandInput, type SearchMessagesCommandOutput } from "./commands/SearchMessagesCommand";
50
+ import { type SearchUsersCommandInput, type SearchUsersCommandOutput } from "./commands/SearchUsersCommand";
50
51
  import { type SendGiphyCommandInput, type SendGiphyCommandOutput } from "./commands/SendGiphyCommand";
51
52
  import { type SendMessageCommandInput, type SendMessageCommandOutput } from "./commands/SendMessageCommand";
52
53
  import { type SendMessageReactionCommandInput, type SendMessageReactionCommandOutput } from "./commands/SendMessageReactionCommand";
@@ -204,13 +205,6 @@ export interface StreamService {
204
205
  getTelephonyChannelId(args: GetTelephonyChannelIdCommandInput, options?: __HttpHandlerOptions): Promise<GetTelephonyChannelIdCommandOutput>;
205
206
  getTelephonyChannelId(args: GetTelephonyChannelIdCommandInput, cb: (err: any, data?: GetTelephonyChannelIdCommandOutput) => void): void;
206
207
  getTelephonyChannelId(args: GetTelephonyChannelIdCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetTelephonyChannelIdCommandOutput) => void): void;
207
- /**
208
- * @see {@link GetTokenCommand}
209
- */
210
- getToken(): Promise<GetTokenCommandOutput>;
211
- getToken(args: GetTokenCommandInput, options?: __HttpHandlerOptions): Promise<GetTokenCommandOutput>;
212
- getToken(args: GetTokenCommandInput, cb: (err: any, data?: GetTokenCommandOutput) => void): void;
213
- getToken(args: GetTokenCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetTokenCommandOutput) => void): void;
214
208
  /**
215
209
  * @see {@link GetUploadedFileInfoCommand}
216
210
  */
@@ -333,6 +327,12 @@ export interface StreamService {
333
327
  queryChannels(args: QueryChannelsCommandInput, options?: __HttpHandlerOptions): Promise<QueryChannelsCommandOutput>;
334
328
  queryChannels(args: QueryChannelsCommandInput, cb: (err: any, data?: QueryChannelsCommandOutput) => void): void;
335
329
  queryChannels(args: QueryChannelsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: QueryChannelsCommandOutput) => void): void;
330
+ /**
331
+ * @see {@link QueryUsersCommand}
332
+ */
333
+ queryUsers(args: QueryUsersCommandInput, options?: __HttpHandlerOptions): Promise<QueryUsersCommandOutput>;
334
+ queryUsers(args: QueryUsersCommandInput, cb: (err: any, data?: QueryUsersCommandOutput) => void): void;
335
+ queryUsers(args: QueryUsersCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: QueryUsersCommandOutput) => void): void;
336
336
  /**
337
337
  * @see {@link RemoveChannelFromSectionCommand}
338
338
  */
@@ -359,6 +359,12 @@ export interface StreamService {
359
359
  searchMessages(args: SearchMessagesCommandInput, options?: __HttpHandlerOptions): Promise<SearchMessagesCommandOutput>;
360
360
  searchMessages(args: SearchMessagesCommandInput, cb: (err: any, data?: SearchMessagesCommandOutput) => void): void;
361
361
  searchMessages(args: SearchMessagesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SearchMessagesCommandOutput) => void): void;
362
+ /**
363
+ * @see {@link SearchUsersCommand}
364
+ */
365
+ searchUsers(args: SearchUsersCommandInput, options?: __HttpHandlerOptions): Promise<SearchUsersCommandOutput>;
366
+ searchUsers(args: SearchUsersCommandInput, cb: (err: any, data?: SearchUsersCommandOutput) => void): void;
367
+ searchUsers(args: SearchUsersCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SearchUsersCommandOutput) => void): void;
362
368
  /**
363
369
  * @see {@link SendGiphyCommand}
364
370
  */
@@ -28,7 +28,6 @@ import type { GetOrCreateTelephonyChannelCommandInput, GetOrCreateTelephonyChann
28
28
  import type { GetOrCreateWhatsAppChannelCommandInput, GetOrCreateWhatsAppChannelCommandOutput } from "./commands/GetOrCreateWhatsAppChannelCommand";
29
29
  import type { GetSmsChannelIdCommandInput, GetSmsChannelIdCommandOutput } from "./commands/GetSmsChannelIdCommand";
30
30
  import type { GetTelephonyChannelIdCommandInput, GetTelephonyChannelIdCommandOutput } from "./commands/GetTelephonyChannelIdCommand";
31
- import type { GetTokenCommandInput, GetTokenCommandOutput } from "./commands/GetTokenCommand";
32
31
  import type { GetUploadedFileInfoCommandInput, GetUploadedFileInfoCommandOutput } from "./commands/GetUploadedFileInfoCommand";
33
32
  import type { GetWhatsAppChannelIdCommandInput, GetWhatsAppChannelIdCommandOutput } from "./commands/GetWhatsAppChannelIdCommand";
34
33
  import type { HardDeleteChannelCommandInput, HardDeleteChannelCommandOutput } from "./commands/HardDeleteChannelCommand";
@@ -49,10 +48,12 @@ import type { PartialUpdateMessageCommandInput, PartialUpdateMessageCommandOutpu
49
48
  import type { PinChannelCommandInput, PinChannelCommandOutput } from "./commands/PinChannelCommand";
50
49
  import type { PinMessageCommandInput, PinMessageCommandOutput } from "./commands/PinMessageCommand";
51
50
  import type { QueryChannelsCommandInput, QueryChannelsCommandOutput } from "./commands/QueryChannelsCommand";
51
+ import type { QueryUsersCommandInput, QueryUsersCommandOutput } from "./commands/QueryUsersCommand";
52
52
  import type { RemoveChannelFromSectionCommandInput, RemoveChannelFromSectionCommandOutput } from "./commands/RemoveChannelFromSectionCommand";
53
53
  import type { RenameSectionCommandInput, RenameSectionCommandOutput } from "./commands/RenameSectionCommand";
54
54
  import type { SearchChannelsCommandInput, SearchChannelsCommandOutput } from "./commands/SearchChannelsCommand";
55
55
  import type { SearchMessagesCommandInput, SearchMessagesCommandOutput } from "./commands/SearchMessagesCommand";
56
+ import type { SearchUsersCommandInput, SearchUsersCommandOutput } from "./commands/SearchUsersCommand";
56
57
  import type { SendGiphyCommandInput, SendGiphyCommandOutput } from "./commands/SendGiphyCommand";
57
58
  import type { SendMessageCommandInput, SendMessageCommandOutput } from "./commands/SendMessageCommand";
58
59
  import type { SendMessageReactionCommandInput, SendMessageReactionCommandOutput } from "./commands/SendMessageReactionCommand";
@@ -72,11 +73,11 @@ export { __Client };
72
73
  /**
73
74
  * @public
74
75
  */
75
- export type ServiceInputTypes = AddChannelMemberCommandInput | AddChannelMembersCommandInput | AssignChannelCommandInput | CreateGroupChannelCommandInput | CreateKiteChannelCommandInput | CreateSectionCommandInput | DeleteChannelCommandInput | DeleteChannelMemberCommandInput | DeleteMessageCommandInput | DeleteMessageReactionCommandInput | DeleteSectionCommandInput | GetChannelCommandInput | GetChannelMemberCommandInput | GetDirectChannelIdCommandInput | GetFilePresignedDownloadUrlCommandInput | GetInboxCommandInput | GetMessageCommandInput | GetOrCreateDirectChannelCommandInput | GetOrCreateSmsChannelCommandInput | GetOrCreateTelephonyChannelCommandInput | GetOrCreateWhatsAppChannelCommandInput | GetSmsChannelIdCommandInput | GetTelephonyChannelIdCommandInput | GetTokenCommandInput | GetUploadedFileInfoCommandInput | GetWhatsAppChannelIdCommandInput | HardDeleteChannelCommandInput | HideChannelCommandInput | JoinChannelCommandInput | LeaveChannelCommandInput | ListChannelMembersCommandInput | ListChannelMembersReadStatusCommandInput | ListChannelsCommandInput | ListMentionsCommandInput | ListMessagesCommandInput | MarkReadCommandInput | MarkUnreadCommandInput | MoveChannelToSectionCommandInput | MuteChannelCommandInput | PartialUpdateChannelCommandInput | PartialUpdateMessageCommandInput | PinChannelCommandInput | PinMessageCommandInput | QueryChannelsCommandInput | RemoveChannelFromSectionCommandInput | RenameSectionCommandInput | SearchChannelsCommandInput | SearchMessagesCommandInput | SendGiphyCommandInput | SendMessageCommandInput | SendMessageReactionCommandInput | SendSystemMessageCommandInput | SendTypingStartCommandInput | SendTypingStopCommandInput | ShowChannelCommandInput | UnmuteChannelCommandInput | UnpinChannelCommandInput | UnpinMessageCommandInput | UpdateChannelCommandInput | UpdateMessageCommandInput | UploadFileCommandInput;
76
+ export type ServiceInputTypes = AddChannelMemberCommandInput | AddChannelMembersCommandInput | AssignChannelCommandInput | CreateGroupChannelCommandInput | CreateKiteChannelCommandInput | CreateSectionCommandInput | DeleteChannelCommandInput | DeleteChannelMemberCommandInput | DeleteMessageCommandInput | DeleteMessageReactionCommandInput | DeleteSectionCommandInput | GetChannelCommandInput | GetChannelMemberCommandInput | GetDirectChannelIdCommandInput | GetFilePresignedDownloadUrlCommandInput | GetInboxCommandInput | GetMessageCommandInput | GetOrCreateDirectChannelCommandInput | GetOrCreateSmsChannelCommandInput | GetOrCreateTelephonyChannelCommandInput | GetOrCreateWhatsAppChannelCommandInput | GetSmsChannelIdCommandInput | GetTelephonyChannelIdCommandInput | GetUploadedFileInfoCommandInput | GetWhatsAppChannelIdCommandInput | HardDeleteChannelCommandInput | HideChannelCommandInput | JoinChannelCommandInput | LeaveChannelCommandInput | ListChannelMembersCommandInput | ListChannelMembersReadStatusCommandInput | ListChannelsCommandInput | ListMentionsCommandInput | ListMessagesCommandInput | MarkReadCommandInput | MarkUnreadCommandInput | MoveChannelToSectionCommandInput | MuteChannelCommandInput | PartialUpdateChannelCommandInput | PartialUpdateMessageCommandInput | PinChannelCommandInput | PinMessageCommandInput | QueryChannelsCommandInput | QueryUsersCommandInput | RemoveChannelFromSectionCommandInput | RenameSectionCommandInput | SearchChannelsCommandInput | SearchMessagesCommandInput | SearchUsersCommandInput | SendGiphyCommandInput | SendMessageCommandInput | SendMessageReactionCommandInput | SendSystemMessageCommandInput | SendTypingStartCommandInput | SendTypingStopCommandInput | ShowChannelCommandInput | UnmuteChannelCommandInput | UnpinChannelCommandInput | UnpinMessageCommandInput | UpdateChannelCommandInput | UpdateMessageCommandInput | UploadFileCommandInput;
76
77
  /**
77
78
  * @public
78
79
  */
79
- export type ServiceOutputTypes = AddChannelMemberCommandOutput | AddChannelMembersCommandOutput | AssignChannelCommandOutput | CreateGroupChannelCommandOutput | CreateKiteChannelCommandOutput | CreateSectionCommandOutput | DeleteChannelCommandOutput | DeleteChannelMemberCommandOutput | DeleteMessageCommandOutput | DeleteMessageReactionCommandOutput | DeleteSectionCommandOutput | GetChannelCommandOutput | GetChannelMemberCommandOutput | GetDirectChannelIdCommandOutput | GetFilePresignedDownloadUrlCommandOutput | GetInboxCommandOutput | GetMessageCommandOutput | GetOrCreateDirectChannelCommandOutput | GetOrCreateSmsChannelCommandOutput | GetOrCreateTelephonyChannelCommandOutput | GetOrCreateWhatsAppChannelCommandOutput | GetSmsChannelIdCommandOutput | GetTelephonyChannelIdCommandOutput | GetTokenCommandOutput | GetUploadedFileInfoCommandOutput | GetWhatsAppChannelIdCommandOutput | HardDeleteChannelCommandOutput | HideChannelCommandOutput | JoinChannelCommandOutput | LeaveChannelCommandOutput | ListChannelMembersCommandOutput | ListChannelMembersReadStatusCommandOutput | ListChannelsCommandOutput | ListMentionsCommandOutput | ListMessagesCommandOutput | MarkReadCommandOutput | MarkUnreadCommandOutput | MoveChannelToSectionCommandOutput | MuteChannelCommandOutput | PartialUpdateChannelCommandOutput | PartialUpdateMessageCommandOutput | PinChannelCommandOutput | PinMessageCommandOutput | QueryChannelsCommandOutput | RemoveChannelFromSectionCommandOutput | RenameSectionCommandOutput | SearchChannelsCommandOutput | SearchMessagesCommandOutput | SendGiphyCommandOutput | SendMessageCommandOutput | SendMessageReactionCommandOutput | SendSystemMessageCommandOutput | SendTypingStartCommandOutput | SendTypingStopCommandOutput | ShowChannelCommandOutput | UnmuteChannelCommandOutput | UnpinChannelCommandOutput | UnpinMessageCommandOutput | UpdateChannelCommandOutput | UpdateMessageCommandOutput | UploadFileCommandOutput;
80
+ export type ServiceOutputTypes = AddChannelMemberCommandOutput | AddChannelMembersCommandOutput | AssignChannelCommandOutput | CreateGroupChannelCommandOutput | CreateKiteChannelCommandOutput | CreateSectionCommandOutput | DeleteChannelCommandOutput | DeleteChannelMemberCommandOutput | DeleteMessageCommandOutput | DeleteMessageReactionCommandOutput | DeleteSectionCommandOutput | GetChannelCommandOutput | GetChannelMemberCommandOutput | GetDirectChannelIdCommandOutput | GetFilePresignedDownloadUrlCommandOutput | GetInboxCommandOutput | GetMessageCommandOutput | GetOrCreateDirectChannelCommandOutput | GetOrCreateSmsChannelCommandOutput | GetOrCreateTelephonyChannelCommandOutput | GetOrCreateWhatsAppChannelCommandOutput | GetSmsChannelIdCommandOutput | GetTelephonyChannelIdCommandOutput | GetUploadedFileInfoCommandOutput | GetWhatsAppChannelIdCommandOutput | HardDeleteChannelCommandOutput | HideChannelCommandOutput | JoinChannelCommandOutput | LeaveChannelCommandOutput | ListChannelMembersCommandOutput | ListChannelMembersReadStatusCommandOutput | ListChannelsCommandOutput | ListMentionsCommandOutput | ListMessagesCommandOutput | MarkReadCommandOutput | MarkUnreadCommandOutput | MoveChannelToSectionCommandOutput | MuteChannelCommandOutput | PartialUpdateChannelCommandOutput | PartialUpdateMessageCommandOutput | PinChannelCommandOutput | PinMessageCommandOutput | QueryChannelsCommandOutput | QueryUsersCommandOutput | RemoveChannelFromSectionCommandOutput | RenameSectionCommandOutput | SearchChannelsCommandOutput | SearchMessagesCommandOutput | SearchUsersCommandOutput | SendGiphyCommandOutput | SendMessageCommandOutput | SendMessageReactionCommandOutput | SendSystemMessageCommandOutput | SendTypingStartCommandOutput | SendTypingStopCommandOutput | ShowChannelCommandOutput | UnmuteChannelCommandOutput | UnpinChannelCommandOutput | UnpinMessageCommandOutput | UpdateChannelCommandOutput | UpdateMessageCommandOutput | UploadFileCommandOutput;
80
81
  /**
81
82
  * @public
82
83
  */
@@ -0,0 +1,114 @@
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { QueryUsersInput, QueryUsersOutput } from "../models/models_0";
4
+ import type { ServiceInputTypes, ServiceOutputTypes, StreamServiceClientResolvedConfig } from "../StreamServiceClient";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link QueryUsersCommand}.
14
+ */
15
+ export interface QueryUsersCommandInput extends QueryUsersInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link QueryUsersCommand}.
21
+ */
22
+ export interface QueryUsersCommandOutput extends QueryUsersOutput, __MetadataBearer {
23
+ }
24
+ declare const QueryUsersCommand_base: {
25
+ new (input: QueryUsersCommandInput): import("@smithy/core/client").CommandImpl<QueryUsersCommandInput, QueryUsersCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: QueryUsersCommandInput): import("@smithy/core/client").CommandImpl<QueryUsersCommandInput, QueryUsersCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * Returns the users that match a batch query by ids, emails and phones. Only users that exist and are visible in the caller's scope are returned, each one once; an email or phone that several users share returns all of them. A service token without a company reads the whole directory; any other token is limited to its own company.
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { StreamServiceClient, QueryUsersCommand } from "@wildix/stream-client"; // ES Modules import
35
+ * // const { StreamServiceClient, QueryUsersCommand } = require("@wildix/stream-client"); // CommonJS import
36
+ * // import type { StreamServiceClientConfig } from "@wildix/stream-client";
37
+ * const config = {}; // type is StreamServiceClientConfig
38
+ * const client = new StreamServiceClient(config);
39
+ * const input = { // QueryUsersInput
40
+ * companyId: "STRING_VALUE",
41
+ * userId: "STRING_VALUE",
42
+ * query: { // UsersQuery
43
+ * ids: [ // UserIdList
44
+ * "STRING_VALUE",
45
+ * ],
46
+ * emails: [ // UserEmailList
47
+ * "STRING_VALUE",
48
+ * ],
49
+ * phones: [ // UserPhoneList
50
+ * "STRING_VALUE",
51
+ * ],
52
+ * },
53
+ * };
54
+ * const command = new QueryUsersCommand(input);
55
+ * const response = await client.send(command);
56
+ * // { // QueryUsersOutput
57
+ * // requestId: "STRING_VALUE",
58
+ * // requestDuration: Number("int"),
59
+ * // users: [ // StreamUserList // required
60
+ * // { // StreamUser
61
+ * // id: "STRING_VALUE", // required
62
+ * // name: "STRING_VALUE",
63
+ * // email: "STRING_VALUE",
64
+ * // phone: "STRING_VALUE",
65
+ * // companyId: "STRING_VALUE",
66
+ * // picture: "STRING_VALUE",
67
+ * // bot: true || false, // required
68
+ * // pbxExtension: "STRING_VALUE",
69
+ * // locale: "STRING_VALUE",
70
+ * // timeZone: "STRING_VALUE",
71
+ * // deactivatedAt: "STRING_VALUE",
72
+ * // createdAt: "STRING_VALUE",
73
+ * // updatedAt: "STRING_VALUE",
74
+ * // },
75
+ * // ],
76
+ * // };
77
+ *
78
+ * ```
79
+ *
80
+ * @param QueryUsersCommandInput - {@link QueryUsersCommandInput}
81
+ * @returns {@link QueryUsersCommandOutput}
82
+ * @see {@link QueryUsersCommandInput} for command's `input` shape.
83
+ * @see {@link QueryUsersCommandOutput} for command's `response` shape.
84
+ * @see {@link StreamServiceClientResolvedConfig | config} for StreamServiceClient's `config` shape.
85
+ *
86
+ * @throws {@link StreamServiceException} (server fault)
87
+ *
88
+ * @throws {@link UnauthorizedException} (client fault)
89
+ *
90
+ * @throws {@link ForbiddenException} (client fault)
91
+ *
92
+ * @throws {@link ValidationException} (client fault)
93
+ *
94
+ * @throws {@link RateLimitExceededException} (client fault)
95
+ *
96
+ * @throws {@link StreamServiceServiceException}
97
+ * <p>Base exception class for all service exceptions from StreamService service.</p>
98
+ *
99
+ *
100
+ * @public
101
+ */
102
+ export declare class QueryUsersCommand extends QueryUsersCommand_base {
103
+ /** @internal type navigation helper, not in runtime. */
104
+ protected static __types: {
105
+ api: {
106
+ input: QueryUsersInput;
107
+ output: QueryUsersOutput;
108
+ };
109
+ sdk: {
110
+ input: QueryUsersCommandInput;
111
+ output: QueryUsersCommandOutput;
112
+ };
113
+ };
114
+ }
@@ -0,0 +1,116 @@
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { SearchUsersInput, SearchUsersOutput } from "../models/models_0";
4
+ import type { ServiceInputTypes, ServiceOutputTypes, StreamServiceClientResolvedConfig } from "../StreamServiceClient";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link SearchUsersCommand}.
14
+ */
15
+ export interface SearchUsersCommandInput extends SearchUsersInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link SearchUsersCommand}.
21
+ */
22
+ export interface SearchUsersCommandOutput extends SearchUsersOutput, __MetadataBearer {
23
+ }
24
+ declare const SearchUsersCommand_base: {
25
+ new (input: SearchUsersCommandInput): import("@smithy/core/client").CommandImpl<SearchUsersCommandInput, SearchUsersCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: SearchUsersCommandInput): import("@smithy/core/client").CommandImpl<SearchUsersCommandInput, SearchUsersCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * Search over the directory of users by name, email address or phone number. By name it is fuzzy: any word of the name, typos, similar sounding names and any script (a Cyrillic name finds its Latin spelling and the reverse). An email address or a phone number is looked up exactly. Each result carries a `confidence`, the similarity of the query to the name computed from the strings alone; it is a measure of likeness, not the probability that this is the right person. A service token without a company searches the whole directory; any other token is limited to its own company, and naming another company is rejected.
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { StreamServiceClient, SearchUsersCommand } from "@wildix/stream-client"; // ES Modules import
35
+ * // const { StreamServiceClient, SearchUsersCommand } = require("@wildix/stream-client"); // CommonJS import
36
+ * // import type { StreamServiceClientConfig } from "@wildix/stream-client";
37
+ * const config = {}; // type is StreamServiceClientConfig
38
+ * const client = new StreamServiceClient(config);
39
+ * const input = { // SearchUsersInput
40
+ * companyId: "STRING_VALUE",
41
+ * userId: "STRING_VALUE",
42
+ * q: "STRING_VALUE", // required
43
+ * mode: "auto" || "name" || "email" || "phone",
44
+ * size: Number("int"),
45
+ * cursor: "STRING_VALUE",
46
+ * includeBots: true || false,
47
+ * withExtensionOnly: true || false,
48
+ * minConfidence: Number("double"),
49
+ * };
50
+ * const command = new SearchUsersCommand(input);
51
+ * const response = await client.send(command);
52
+ * // { // SearchUsersOutput
53
+ * // requestId: "STRING_VALUE",
54
+ * // requestDuration: Number("int"),
55
+ * // results: [ // SearchUserHitList // required
56
+ * // { // SearchUserHit
57
+ * // user: { // StreamUser
58
+ * // id: "STRING_VALUE", // required
59
+ * // name: "STRING_VALUE",
60
+ * // email: "STRING_VALUE",
61
+ * // phone: "STRING_VALUE",
62
+ * // companyId: "STRING_VALUE",
63
+ * // picture: "STRING_VALUE",
64
+ * // bot: true || false, // required
65
+ * // pbxExtension: "STRING_VALUE",
66
+ * // locale: "STRING_VALUE",
67
+ * // timeZone: "STRING_VALUE",
68
+ * // deactivatedAt: "STRING_VALUE",
69
+ * // createdAt: "STRING_VALUE",
70
+ * // updatedAt: "STRING_VALUE",
71
+ * // },
72
+ * // confidence: Number("double"), // required
73
+ * // matchedOn: "exact" || "phonetic" || "prefix" || "fuzzy" || "email" || "phone", // required
74
+ * // },
75
+ * // ],
76
+ * // nextCursor: "STRING_VALUE",
77
+ * // margin: Number("double"),
78
+ * // };
79
+ *
80
+ * ```
81
+ *
82
+ * @param SearchUsersCommandInput - {@link SearchUsersCommandInput}
83
+ * @returns {@link SearchUsersCommandOutput}
84
+ * @see {@link SearchUsersCommandInput} for command's `input` shape.
85
+ * @see {@link SearchUsersCommandOutput} for command's `response` shape.
86
+ * @see {@link StreamServiceClientResolvedConfig | config} for StreamServiceClient's `config` shape.
87
+ *
88
+ * @throws {@link StreamServiceException} (server fault)
89
+ *
90
+ * @throws {@link UnauthorizedException} (client fault)
91
+ *
92
+ * @throws {@link ForbiddenException} (client fault)
93
+ *
94
+ * @throws {@link ValidationException} (client fault)
95
+ *
96
+ * @throws {@link RateLimitExceededException} (client fault)
97
+ *
98
+ * @throws {@link StreamServiceServiceException}
99
+ * <p>Base exception class for all service exceptions from StreamService service.</p>
100
+ *
101
+ *
102
+ * @public
103
+ */
104
+ export declare class SearchUsersCommand extends SearchUsersCommand_base {
105
+ /** @internal type navigation helper, not in runtime. */
106
+ protected static __types: {
107
+ api: {
108
+ input: SearchUsersInput;
109
+ output: SearchUsersOutput;
110
+ };
111
+ sdk: {
112
+ input: SearchUsersCommandInput;
113
+ output: SearchUsersCommandOutput;
114
+ };
115
+ };
116
+ }
@@ -21,7 +21,6 @@ export * from "./GetOrCreateTelephonyChannelCommand";
21
21
  export * from "./GetOrCreateWhatsAppChannelCommand";
22
22
  export * from "./GetSmsChannelIdCommand";
23
23
  export * from "./GetTelephonyChannelIdCommand";
24
- export * from "./GetTokenCommand";
25
24
  export * from "./GetUploadedFileInfoCommand";
26
25
  export * from "./GetWhatsAppChannelIdCommand";
27
26
  export * from "./HardDeleteChannelCommand";
@@ -42,10 +41,12 @@ export * from "./PartialUpdateMessageCommand";
42
41
  export * from "./PinChannelCommand";
43
42
  export * from "./PinMessageCommand";
44
43
  export * from "./QueryChannelsCommand";
44
+ export * from "./QueryUsersCommand";
45
45
  export * from "./RemoveChannelFromSectionCommand";
46
46
  export * from "./RenameSectionCommand";
47
47
  export * from "./SearchChannelsCommand";
48
48
  export * from "./SearchMessagesCommand";
49
+ export * from "./SearchUsersCommand";
49
50
  export * from "./SendGiphyCommand";
50
51
  export * from "./SendMessageCommand";
51
52
  export * from "./SendMessageReactionCommand";