@wildix/stream-client 4.2.3 → 4.3.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.
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SearchUsersMode = exports.UserMatchedOn = exports.SearchSort = exports.MessageUnsetFields = exports.MessageAnchor = exports.MentionsFilter = exports.GroupChannelUnsetOptions = exports.FileCategory = exports.DownloadStrategy = exports.SectionType = exports.TargetNotEligibleReason = exports.MessageWhatsAppStatus = exports.MessageSmsStatus = exports.MessageMessagingStatus = exports.GroupChannelCreationEventType = exports.ChannelsFilter = exports.ChannelWhatsAppStatus = exports.ChannelMessagingStatus = exports.MessagingChannel = exports.MessageType = exports.ChannelContextSource = exports.ChannelContextEventAttendeeStatus = exports.ChannelType = exports.ChannelAccess = exports.AttachmentType = exports.AssignChannelVariant = exports.ChannelMemberRole = exports.ButtonVariant = void 0;
3
+ exports.SearchUsersMode = exports.SearchUsersKind = exports.UserMatchedOn = exports.SearchSort = exports.MessageUnsetFields = exports.MessageAnchor = exports.MentionsFilter = exports.GroupChannelUnsetOptions = exports.FileCategory = exports.DownloadStrategy = exports.SectionType = exports.TargetNotEligibleReason = exports.MessageWhatsAppStatus = exports.MessageSmsStatus = exports.MessageMessagingStatus = exports.GroupChannelCreationEventType = exports.ChannelsFilter = exports.ChannelWhatsAppStatus = exports.ChannelMessagingStatus = exports.MessagingChannel = exports.MessageType = exports.ChannelContextSource = exports.ChannelContextEventAttendeeStatus = exports.ChannelType = exports.ChannelAccess = exports.AttachmentType = exports.AssignChannelVariant = exports.ChannelMemberRole = exports.ButtonVariant = void 0;
4
4
  exports.ButtonVariant = {
5
5
  CONTAINED: "contained",
6
6
  OUTLINED: "outlined",
@@ -149,6 +149,11 @@ exports.UserMatchedOn = {
149
149
  PHONETIC: "phonetic",
150
150
  PREFIX: "prefix",
151
151
  };
152
+ exports.SearchUsersKind = {
153
+ ALL: "all",
154
+ BOT: "bot",
155
+ HUMAN: "human",
156
+ };
152
157
  exports.SearchUsersMode = {
153
158
  AUTO: "auto",
154
159
  EMAIL: "email",
@@ -348,7 +348,6 @@ const _hi = "hidden";
348
348
  const _hig = "highlights";
349
349
  const _ht = "http";
350
350
  const _i = "id";
351
- const _iB = "includeBots";
352
351
  const _iM = "initialMessage";
353
352
  const _id = "ids";
354
353
  const _in = "inbox";
@@ -359,6 +358,7 @@ const _kDS = "kiteDefaultSubject";
359
358
  const _kSN = "kiteServiceName";
360
359
  const _kT = "kiteTarget";
361
360
  const _kV = "kiteVariant";
361
+ const _ki = "kind";
362
362
  const _l = "limit";
363
363
  const _lAA = "lastActivityAt";
364
364
  const _lM = "lastMessage";
@@ -1260,8 +1260,8 @@ exports.SearchUserHit$ = [3, n1, _SUH,
1260
1260
  ];
1261
1261
  exports.SearchUsersInput$ = [3, n1, _SUI,
1262
1262
  0,
1263
- [_q_, _cIo, _uI, _mo, _siz, _cu, _iB, _wEO, _mCi],
1264
- [[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
1263
+ [_q_, _cIo, _uI, _mo, _siz, _cu, _ki, _wEO, _mCi],
1264
+ [[0, { [_hQ]: _q_ }], [0, { [_hQ]: _co }], [0, { [_hQ]: _uI }], [0, { [_hQ]: _mo }], [1, { [_hQ]: _siz }], [0, { [_hQ]: _cu }], [0, { [_hQ]: _ki }], [2, { [_hQ]: _wEO }], [1, { [_hQ]: _mCi }]], 1
1265
1265
  ];
1266
1266
  exports.SearchUsersOutput$ = [3, n1, _SUO,
1267
1267
  0,
@@ -146,6 +146,11 @@ export const UserMatchedOn = {
146
146
  PHONETIC: "phonetic",
147
147
  PREFIX: "prefix",
148
148
  };
149
+ export const SearchUsersKind = {
150
+ ALL: "all",
151
+ BOT: "bot",
152
+ HUMAN: "human",
153
+ };
149
154
  export const SearchUsersMode = {
150
155
  AUTO: "auto",
151
156
  EMAIL: "email",
@@ -340,7 +340,6 @@ const _hi = "hidden";
340
340
  const _hig = "highlights";
341
341
  const _ht = "http";
342
342
  const _i = "id";
343
- const _iB = "includeBots";
344
343
  const _iM = "initialMessage";
345
344
  const _id = "ids";
346
345
  const _in = "inbox";
@@ -351,6 +350,7 @@ const _kDS = "kiteDefaultSubject";
351
350
  const _kSN = "kiteServiceName";
352
351
  const _kT = "kiteTarget";
353
352
  const _kV = "kiteVariant";
353
+ const _ki = "kind";
354
354
  const _l = "limit";
355
355
  const _lAA = "lastActivityAt";
356
356
  const _lM = "lastMessage";
@@ -1252,8 +1252,8 @@ export var SearchUserHit$ = [3, n1, _SUH,
1252
1252
  ];
1253
1253
  export var SearchUsersInput$ = [3, n1, _SUI,
1254
1254
  0,
1255
- [_q_, _cIo, _uI, _mo, _siz, _cu, _iB, _wEO, _mCi],
1256
- [[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
1255
+ [_q_, _cIo, _uI, _mo, _siz, _cu, _ki, _wEO, _mCi],
1256
+ [[0, { [_hQ]: _q_ }], [0, { [_hQ]: _co }], [0, { [_hQ]: _uI }], [0, { [_hQ]: _mo }], [1, { [_hQ]: _siz }], [0, { [_hQ]: _cu }], [0, { [_hQ]: _ki }], [2, { [_hQ]: _wEO }], [1, { [_hQ]: _mCi }]], 1
1257
1257
  ];
1258
1258
  export var SearchUsersOutput$ = [3, n1, _SUO,
1259
1259
  0,
@@ -43,7 +43,7 @@ declare const SearchUsersCommand_base: {
43
43
  * mode: "auto" || "name" || "email" || "phone",
44
44
  * size: Number("int"),
45
45
  * cursor: "STRING_VALUE",
46
- * includeBots: true || false,
46
+ * kind: "human" || "bot" || "all",
47
47
  * withExtensionOnly: true || false,
48
48
  * minConfidence: Number("double"),
49
49
  * };
@@ -380,6 +380,19 @@ export declare const UserMatchedOn: {
380
380
  * @public
381
381
  */
382
382
  export type UserMatchedOn = (typeof UserMatchedOn)[keyof typeof UserMatchedOn];
383
+ /**
384
+ * @public
385
+ * @enum
386
+ */
387
+ export declare const SearchUsersKind: {
388
+ readonly ALL: "all";
389
+ readonly BOT: "bot";
390
+ readonly HUMAN: "human";
391
+ };
392
+ /**
393
+ * @public
394
+ */
395
+ export type SearchUsersKind = (typeof SearchUsersKind)[keyof typeof SearchUsersKind];
383
396
  /**
384
397
  * @public
385
398
  * @enum
@@ -1,4 +1,4 @@
1
- import type { AssignChannelVariant, AttachmentType, ButtonVariant, ChannelAccess, ChannelContextEventAttendeeStatus, ChannelContextSource, ChannelMemberRole, ChannelMessagingStatus, ChannelsFilter, ChannelType, ChannelWhatsAppStatus, DownloadStrategy, FileCategory, GroupChannelCreationEventType, GroupChannelUnsetOptions, MentionsFilter, MessageAnchor, MessageMessagingStatus, MessageSmsStatus, MessageType, MessageUnsetFields, MessageWhatsAppStatus, MessagingChannel, SearchSort, SearchUsersMode, SectionType, UserMatchedOn } from "./enums";
1
+ import type { AssignChannelVariant, AttachmentType, ButtonVariant, ChannelAccess, ChannelContextEventAttendeeStatus, ChannelContextSource, ChannelMemberRole, ChannelMessagingStatus, ChannelsFilter, ChannelType, ChannelWhatsAppStatus, DownloadStrategy, FileCategory, GroupChannelCreationEventType, GroupChannelUnsetOptions, MentionsFilter, MessageAnchor, MessageMessagingStatus, MessageSmsStatus, MessageType, MessageUnsetFields, MessageWhatsAppStatus, MessagingChannel, SearchSort, SearchUsersKind, SearchUsersMode, SectionType, UserMatchedOn } from "./enums";
2
2
  /**
3
3
  * @public
4
4
  */
@@ -3992,7 +3992,7 @@ export interface SearchUsersInput {
3992
3992
  */
3993
3993
  q: string;
3994
3994
  /**
3995
- * How `q` is read. `auto` (default) takes `q` for an email address when it contains `@`, for a phone number when it holds only digits, spaces and `+-()` with at least four digits, and for a name otherwise. `name`, `email` and `phone` force the reading. An email or phone lookup is exact and gives every result a `confidence` of 1. `includeBots`, `withExtensionOnly` and `minConfidence` apply in every mode.
3995
+ * How `q` is read. `auto` (default) takes `q` for an email address when it contains `@` (looked up exactly, so a malformed one matches nobody), for a phone number when it is a number with its country code (`+` and digits, grouped by spaces, `-`, `.`, `/` or brackets as written), and for a name otherwise. A number of seven or more digits without its country code is refused with a `ValidationException`: numbers are stored in E.164, so it would match nobody. `name`, `email` and `phone` force the reading and refuse input that cannot be it. An email or phone lookup is exact and gives every result a `confidence` of 1. `kind`, `withExtensionOnly` and `minConfidence` apply in every mode.
3996
3996
  * @public
3997
3997
  */
3998
3998
  mode?: SearchUsersMode | undefined;
@@ -4007,10 +4007,10 @@ export interface SearchUsersInput {
4007
4007
  */
4008
4008
  cursor?: string | undefined;
4009
4009
  /**
4010
- * When true, bots are returned along with people. Default false.
4010
+ * Which users are searched: `human` (default) people only, `bot` bots only, `all` both.
4011
4011
  * @public
4012
4012
  */
4013
- includeBots?: boolean | undefined;
4013
+ kind?: SearchUsersKind | undefined;
4014
4014
  /**
4015
4015
  * When true, returns only users that have an extension on a PBX, so a call can be transferred to them. Default false.
4016
4016
  * @public
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@wildix/stream-client",
3
3
  "description": "@wildix/stream-client client",
4
- "version": "4.2.3",
4
+ "version": "4.3.0",
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",