@wildix/stream-client 4.1.11 → 4.2.1
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.
- package/dist-cjs/StreamService.js +4 -2
- package/dist-cjs/commands/{GetTokenCommand.js → QueryUsersCommand.js} +6 -6
- package/dist-cjs/commands/SearchUsersCommand.js +20 -0
- package/dist-cjs/commands/index.js +2 -1
- package/dist-cjs/models/enums.js +15 -11
- package/dist-cjs/schemas/schemas_0.js +87 -62
- package/dist-es/StreamService.js +4 -2
- package/dist-es/commands/{GetTokenCommand.js → QueryUsersCommand.js} +5 -5
- package/dist-es/commands/SearchUsersCommand.js +16 -0
- package/dist-es/commands/index.js +2 -1
- package/dist-es/models/enums.js +14 -10
- package/dist-es/schemas/schemas_0.js +82 -58
- package/dist-types/StreamService.d.ts +14 -8
- package/dist-types/StreamServiceClient.d.ts +4 -3
- package/dist-types/commands/CreateKiteChannelCommand.d.ts +0 -38
- package/dist-types/commands/DeleteMessageReactionCommand.d.ts +0 -19
- package/dist-types/commands/GetMessageCommand.d.ts +0 -19
- package/dist-types/commands/ListMentionsCommand.d.ts +0 -19
- package/dist-types/commands/ListMessagesCommand.d.ts +0 -19
- package/dist-types/commands/PartialUpdateMessageCommand.d.ts +0 -38
- package/dist-types/commands/PinMessageCommand.d.ts +0 -19
- package/dist-types/commands/QueryUsersCommand.d.ts +114 -0
- package/dist-types/commands/SearchMessagesCommand.d.ts +0 -19
- package/dist-types/commands/SearchUsersCommand.d.ts +116 -0
- package/dist-types/commands/SendGiphyCommand.d.ts +0 -19
- package/dist-types/commands/SendMessageCommand.d.ts +0 -38
- package/dist-types/commands/SendMessageReactionCommand.d.ts +0 -19
- package/dist-types/commands/SendSystemMessageCommand.d.ts +0 -19
- package/dist-types/commands/UnpinMessageCommand.d.ts +0 -19
- package/dist-types/commands/UpdateMessageCommand.d.ts +0 -38
- package/dist-types/commands/index.d.ts +2 -1
- package/dist-types/models/enums.d.ts +30 -26
- package/dist-types/models/models_0.d.ts +234 -96
- package/dist-types/schemas/schemas_0.d.ts +9 -6
- package/package.json +1 -1
- package/dist-types/commands/GetTokenCommand.d.ts +0 -89
|
@@ -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";
|
|
@@ -177,32 +177,6 @@ export declare const GroupChannelCreationEventType: {
|
|
|
177
177
|
* @public
|
|
178
178
|
*/
|
|
179
179
|
export type GroupChannelCreationEventType = (typeof GroupChannelCreationEventType)[keyof typeof GroupChannelCreationEventType];
|
|
180
|
-
/**
|
|
181
|
-
* @public
|
|
182
|
-
* @enum
|
|
183
|
-
*/
|
|
184
|
-
export declare const WilmaChatInspectOutcome: {
|
|
185
|
-
readonly DONE: "done";
|
|
186
|
-
readonly FAILED: "failed";
|
|
187
|
-
readonly STOPPED: "stopped";
|
|
188
|
-
};
|
|
189
|
-
/**
|
|
190
|
-
* @public
|
|
191
|
-
*/
|
|
192
|
-
export type WilmaChatInspectOutcome = (typeof WilmaChatInspectOutcome)[keyof typeof WilmaChatInspectOutcome];
|
|
193
|
-
/**
|
|
194
|
-
* @public
|
|
195
|
-
* @enum
|
|
196
|
-
*/
|
|
197
|
-
export declare const WilmaChatVerbosity: {
|
|
198
|
-
readonly FULL: "full";
|
|
199
|
-
readonly NONE: "none";
|
|
200
|
-
readonly SIMPLE: "simple";
|
|
201
|
-
};
|
|
202
|
-
/**
|
|
203
|
-
* @public
|
|
204
|
-
*/
|
|
205
|
-
export type WilmaChatVerbosity = (typeof WilmaChatVerbosity)[keyof typeof WilmaChatVerbosity];
|
|
206
180
|
/**
|
|
207
181
|
* @public
|
|
208
182
|
* @enum
|
|
@@ -390,3 +364,33 @@ export declare const SearchSort: {
|
|
|
390
364
|
* @public
|
|
391
365
|
*/
|
|
392
366
|
export type SearchSort = (typeof SearchSort)[keyof typeof SearchSort];
|
|
367
|
+
/**
|
|
368
|
+
* @public
|
|
369
|
+
* @enum
|
|
370
|
+
*/
|
|
371
|
+
export declare const UserMatchedOn: {
|
|
372
|
+
readonly EMAIL: "email";
|
|
373
|
+
readonly EXACT: "exact";
|
|
374
|
+
readonly FUZZY: "fuzzy";
|
|
375
|
+
readonly PHONE: "phone";
|
|
376
|
+
readonly PHONETIC: "phonetic";
|
|
377
|
+
readonly PREFIX: "prefix";
|
|
378
|
+
};
|
|
379
|
+
/**
|
|
380
|
+
* @public
|
|
381
|
+
*/
|
|
382
|
+
export type UserMatchedOn = (typeof UserMatchedOn)[keyof typeof UserMatchedOn];
|
|
383
|
+
/**
|
|
384
|
+
* @public
|
|
385
|
+
* @enum
|
|
386
|
+
*/
|
|
387
|
+
export declare const SearchUsersMode: {
|
|
388
|
+
readonly AUTO: "auto";
|
|
389
|
+
readonly EMAIL: "email";
|
|
390
|
+
readonly NAME: "name";
|
|
391
|
+
readonly PHONE: "phone";
|
|
392
|
+
};
|
|
393
|
+
/**
|
|
394
|
+
* @public
|
|
395
|
+
*/
|
|
396
|
+
export type SearchUsersMode = (typeof SearchUsersMode)[keyof typeof SearchUsersMode];
|
|
@@ -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,
|
|
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";
|
|
2
2
|
/**
|
|
3
3
|
* @public
|
|
4
4
|
*/
|
|
@@ -816,44 +816,9 @@ export interface MessageTemplateConfig {
|
|
|
816
816
|
whatsapp?: TemplateWithParameters | undefined;
|
|
817
817
|
}
|
|
818
818
|
/**
|
|
819
|
-
* Artifact card under a Wilma chat bubble. File bytes stay in the artifacts store; open uses artifactId.
|
|
820
819
|
* @public
|
|
821
820
|
*/
|
|
822
|
-
export
|
|
823
|
-
artifactId: string;
|
|
824
|
-
title: string;
|
|
825
|
-
kind: string;
|
|
826
|
-
size: number;
|
|
827
|
-
name?: string | undefined;
|
|
828
|
-
}
|
|
829
|
-
/**
|
|
830
|
-
* Inspect caption under a Wilma chat bubble. Tool input and output are not stored here; the client loads them with GetSessionEvents using sessionId.
|
|
831
|
-
* @public
|
|
832
|
-
*/
|
|
833
|
-
export interface WilmaChatInspect {
|
|
834
|
-
outcome: WilmaChatInspectOutcome;
|
|
835
|
-
durationMs?: number | undefined;
|
|
836
|
-
toolCount: number;
|
|
837
|
-
failedCount: number;
|
|
838
|
-
}
|
|
839
|
-
/**
|
|
840
|
-
* Snapshot painted under a Wilma chat agent message: inspect caption and artifact cards, plus ids to open details. Not reply buttons.
|
|
841
|
-
* @public
|
|
842
|
-
*/
|
|
843
|
-
export interface WilmaChatElement {
|
|
844
|
-
sessionId: string;
|
|
845
|
-
verbosity: WilmaChatVerbosity;
|
|
846
|
-
/**
|
|
847
|
-
* Inspect caption under a Wilma chat bubble. Tool input and output are not stored here; the client loads them with GetSessionEvents using sessionId.
|
|
848
|
-
* @public
|
|
849
|
-
*/
|
|
850
|
-
inspect?: WilmaChatInspect | undefined;
|
|
851
|
-
artifacts?: WilmaChatArtifactCard[] | undefined;
|
|
852
|
-
}
|
|
853
|
-
/**
|
|
854
|
-
* @public
|
|
855
|
-
*/
|
|
856
|
-
export type Element = Element.ActionsMember | Element.TemplateMember | Element.WilmaMember | Element.$UnknownMember;
|
|
821
|
+
export type Element = Element.ActionsMember | Element.TemplateMember | Element.$UnknownMember;
|
|
857
822
|
/**
|
|
858
823
|
* @public
|
|
859
824
|
*/
|
|
@@ -861,23 +826,11 @@ export declare namespace Element {
|
|
|
861
826
|
interface TemplateMember {
|
|
862
827
|
template: MessageTemplateConfig;
|
|
863
828
|
actions?: never;
|
|
864
|
-
wilma?: never;
|
|
865
829
|
$unknown?: never;
|
|
866
830
|
}
|
|
867
831
|
interface ActionsMember {
|
|
868
832
|
template?: never;
|
|
869
833
|
actions: ActionElement[];
|
|
870
|
-
wilma?: never;
|
|
871
|
-
$unknown?: never;
|
|
872
|
-
}
|
|
873
|
-
/**
|
|
874
|
-
* Snapshot painted under a Wilma chat agent message: inspect caption and artifact cards, plus ids to open details. Not reply buttons.
|
|
875
|
-
* @public
|
|
876
|
-
*/
|
|
877
|
-
interface WilmaMember {
|
|
878
|
-
template?: never;
|
|
879
|
-
actions?: never;
|
|
880
|
-
wilma: WilmaChatElement;
|
|
881
834
|
$unknown?: never;
|
|
882
835
|
}
|
|
883
836
|
/**
|
|
@@ -886,7 +839,6 @@ export declare namespace Element {
|
|
|
886
839
|
interface $UnknownMember {
|
|
887
840
|
template?: never;
|
|
888
841
|
actions?: never;
|
|
889
|
-
wilma?: never;
|
|
890
842
|
$unknown: [string, any];
|
|
891
843
|
}
|
|
892
844
|
/**
|
|
@@ -896,7 +848,6 @@ export declare namespace Element {
|
|
|
896
848
|
interface Visitor<T> {
|
|
897
849
|
template: (value: MessageTemplateConfig) => T;
|
|
898
850
|
actions: (value: ActionElement[]) => T;
|
|
899
|
-
wilma: (value: WilmaChatElement) => T;
|
|
900
851
|
_: (name: string, value: any) => T;
|
|
901
852
|
}
|
|
902
853
|
}
|
|
@@ -2413,51 +2364,6 @@ export interface GetTelephonyChannelIdOutput {
|
|
|
2413
2364
|
*/
|
|
2414
2365
|
channelId: string;
|
|
2415
2366
|
}
|
|
2416
|
-
/**
|
|
2417
|
-
* @public
|
|
2418
|
-
*/
|
|
2419
|
-
export interface GetTokenInput {
|
|
2420
|
-
/**
|
|
2421
|
-
* The unique identifier of the tenant when a service token is used.
|
|
2422
|
-
* @public
|
|
2423
|
-
*/
|
|
2424
|
-
companyId?: string | undefined;
|
|
2425
|
-
/**
|
|
2426
|
-
* The unique identifier of the user when a service or PBX token is used.
|
|
2427
|
-
* @public
|
|
2428
|
-
*/
|
|
2429
|
-
userId?: string | undefined;
|
|
2430
|
-
/**
|
|
2431
|
-
* Client id used to select and sign the correct token.
|
|
2432
|
-
* @public
|
|
2433
|
-
*/
|
|
2434
|
-
clientId?: string | undefined;
|
|
2435
|
-
}
|
|
2436
|
-
/**
|
|
2437
|
-
* @public
|
|
2438
|
-
*/
|
|
2439
|
-
export interface GetTokenOutput {
|
|
2440
|
-
/**
|
|
2441
|
-
* The request ID of the request.
|
|
2442
|
-
* @public
|
|
2443
|
-
*/
|
|
2444
|
-
requestId?: string | undefined;
|
|
2445
|
-
/**
|
|
2446
|
-
* The duration of the request in milliseconds.
|
|
2447
|
-
* @public
|
|
2448
|
-
*/
|
|
2449
|
-
requestDuration?: number | undefined;
|
|
2450
|
-
/**
|
|
2451
|
-
* Authorization token.
|
|
2452
|
-
* @public
|
|
2453
|
-
*/
|
|
2454
|
-
token: string;
|
|
2455
|
-
/**
|
|
2456
|
-
* Token expiration time as Unix epoch seconds.
|
|
2457
|
-
* @public
|
|
2458
|
-
*/
|
|
2459
|
-
expires: number;
|
|
2460
|
-
}
|
|
2461
2367
|
/**
|
|
2462
2368
|
* @public
|
|
2463
2369
|
*/
|
|
@@ -3627,6 +3533,138 @@ export interface QueryChannelsOutput {
|
|
|
3627
3533
|
requestDuration?: number | undefined;
|
|
3628
3534
|
channels: InboxChannel[];
|
|
3629
3535
|
}
|
|
3536
|
+
/**
|
|
3537
|
+
* Batch user lookup. At least one of the lists must be given; the lists are alternatives, not filters, so a user that matches any of them is returned.
|
|
3538
|
+
* @public
|
|
3539
|
+
*/
|
|
3540
|
+
export interface UsersQuery {
|
|
3541
|
+
/**
|
|
3542
|
+
* User ids.
|
|
3543
|
+
* @public
|
|
3544
|
+
*/
|
|
3545
|
+
ids?: string[] | undefined;
|
|
3546
|
+
/**
|
|
3547
|
+
* Email addresses.
|
|
3548
|
+
* @public
|
|
3549
|
+
*/
|
|
3550
|
+
emails?: string[] | undefined;
|
|
3551
|
+
/**
|
|
3552
|
+
* Phone numbers.
|
|
3553
|
+
* @public
|
|
3554
|
+
*/
|
|
3555
|
+
phones?: string[] | undefined;
|
|
3556
|
+
}
|
|
3557
|
+
/**
|
|
3558
|
+
* @public
|
|
3559
|
+
*/
|
|
3560
|
+
export interface QueryUsersInput {
|
|
3561
|
+
/**
|
|
3562
|
+
* The unique identifier of the tenant when a service token is used.
|
|
3563
|
+
* @public
|
|
3564
|
+
*/
|
|
3565
|
+
companyId?: string | undefined;
|
|
3566
|
+
/**
|
|
3567
|
+
* The unique identifier of the user when a service or PBX token is used.
|
|
3568
|
+
* @public
|
|
3569
|
+
*/
|
|
3570
|
+
userId?: string | undefined;
|
|
3571
|
+
/**
|
|
3572
|
+
* Batch user lookup. At least one of the lists must be given; the lists are alternatives, not filters, so a user that matches any of them is returned.
|
|
3573
|
+
* @public
|
|
3574
|
+
*/
|
|
3575
|
+
query: UsersQuery;
|
|
3576
|
+
}
|
|
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
|
+
/**
|
|
3649
|
+
* @public
|
|
3650
|
+
*/
|
|
3651
|
+
export interface QueryUsersOutput {
|
|
3652
|
+
/**
|
|
3653
|
+
* The request ID of the request.
|
|
3654
|
+
* @public
|
|
3655
|
+
*/
|
|
3656
|
+
requestId?: string | undefined;
|
|
3657
|
+
/**
|
|
3658
|
+
* The duration of the request in milliseconds.
|
|
3659
|
+
* @public
|
|
3660
|
+
*/
|
|
3661
|
+
requestDuration?: number | undefined;
|
|
3662
|
+
/**
|
|
3663
|
+
* Users that matched, each one once, in no particular order.
|
|
3664
|
+
* @public
|
|
3665
|
+
*/
|
|
3666
|
+
users: StreamUser[];
|
|
3667
|
+
}
|
|
3630
3668
|
/**
|
|
3631
3669
|
* @public
|
|
3632
3670
|
*/
|
|
@@ -3909,6 +3947,106 @@ export interface SearchMessagesOutput {
|
|
|
3909
3947
|
*/
|
|
3910
3948
|
nextCursor?: string | undefined;
|
|
3911
3949
|
}
|
|
3950
|
+
/**
|
|
3951
|
+
* @public
|
|
3952
|
+
*/
|
|
3953
|
+
export interface SearchUserHit {
|
|
3954
|
+
/**
|
|
3955
|
+
* A user of the directory. Every field except `id` and `bot` is present only when the directory holds it.
|
|
3956
|
+
* @public
|
|
3957
|
+
*/
|
|
3958
|
+
user: StreamUser;
|
|
3959
|
+
/**
|
|
3960
|
+
* Similarity of a query to a name, from 0 (nothing in common) to 1 (the same words). Depends only on the two strings, not on the size of the company.
|
|
3961
|
+
* @public
|
|
3962
|
+
*/
|
|
3963
|
+
confidence: number;
|
|
3964
|
+
/**
|
|
3965
|
+
* The kind of match that carried this hit.
|
|
3966
|
+
* @public
|
|
3967
|
+
*/
|
|
3968
|
+
matchedOn: UserMatchedOn;
|
|
3969
|
+
}
|
|
3970
|
+
/**
|
|
3971
|
+
* @public
|
|
3972
|
+
*/
|
|
3973
|
+
export interface SearchUsersInput {
|
|
3974
|
+
/**
|
|
3975
|
+
* The unique identifier of the tenant when a service token is used.
|
|
3976
|
+
* @public
|
|
3977
|
+
*/
|
|
3978
|
+
companyId?: string | undefined;
|
|
3979
|
+
/**
|
|
3980
|
+
* The unique identifier of the user when a service or PBX token is used.
|
|
3981
|
+
* @public
|
|
3982
|
+
*/
|
|
3983
|
+
userId?: string | undefined;
|
|
3984
|
+
/**
|
|
3985
|
+
* What to look for: a name as typed or as a speech recognizer heard it, an email address, or a phone number.
|
|
3986
|
+
* @public
|
|
3987
|
+
*/
|
|
3988
|
+
q: string;
|
|
3989
|
+
/**
|
|
3990
|
+
* 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.
|
|
3991
|
+
* @public
|
|
3992
|
+
*/
|
|
3993
|
+
mode?: SearchUsersMode | undefined;
|
|
3994
|
+
/**
|
|
3995
|
+
* Page size. Default 20, max 50.
|
|
3996
|
+
* @public
|
|
3997
|
+
*/
|
|
3998
|
+
size?: number | undefined;
|
|
3999
|
+
/**
|
|
4000
|
+
* Opaque continuation token from the previous response. Keep `q` and the other parameters unchanged while paging.
|
|
4001
|
+
* @public
|
|
4002
|
+
*/
|
|
4003
|
+
cursor?: string | undefined;
|
|
4004
|
+
/**
|
|
4005
|
+
* When true, bots are returned along with people. Default false.
|
|
4006
|
+
* @public
|
|
4007
|
+
*/
|
|
4008
|
+
includeBots?: boolean | undefined;
|
|
4009
|
+
/**
|
|
4010
|
+
* When true, returns only users that have an extension on a PBX, so a call can be transferred to them. Default false.
|
|
4011
|
+
* @public
|
|
4012
|
+
*/
|
|
4013
|
+
withExtensionOnly?: boolean | undefined;
|
|
4014
|
+
/**
|
|
4015
|
+
* Drops results whose `confidence` is below this value. The default 0.5 cuts the candidates that share little with the query; 0 returns every candidate.
|
|
4016
|
+
* @public
|
|
4017
|
+
*/
|
|
4018
|
+
minConfidence?: number | undefined;
|
|
4019
|
+
}
|
|
4020
|
+
/**
|
|
4021
|
+
* @public
|
|
4022
|
+
*/
|
|
4023
|
+
export interface SearchUsersOutput {
|
|
4024
|
+
/**
|
|
4025
|
+
* The request ID of the request.
|
|
4026
|
+
* @public
|
|
4027
|
+
*/
|
|
4028
|
+
requestId?: string | undefined;
|
|
4029
|
+
/**
|
|
4030
|
+
* The duration of the request in milliseconds.
|
|
4031
|
+
* @public
|
|
4032
|
+
*/
|
|
4033
|
+
requestDuration?: number | undefined;
|
|
4034
|
+
/**
|
|
4035
|
+
* Matching users ordered by descending confidence.
|
|
4036
|
+
* @public
|
|
4037
|
+
*/
|
|
4038
|
+
results: SearchUserHit[];
|
|
4039
|
+
/**
|
|
4040
|
+
* Cursor for the next page. Absent when there are no more pages.
|
|
4041
|
+
* @public
|
|
4042
|
+
*/
|
|
4043
|
+
nextCursor?: string | undefined;
|
|
4044
|
+
/**
|
|
4045
|
+
* Confidence of the first result minus that of the second in this response. Absent when fewer than two results remain. A large margin means the first result stands out; a small one means the answer is ambiguous.
|
|
4046
|
+
* @public
|
|
4047
|
+
*/
|
|
4048
|
+
margin?: number | undefined;
|
|
4049
|
+
}
|
|
3912
4050
|
/**
|
|
3913
4051
|
* @public
|
|
3914
4052
|
*/
|
|
@@ -81,8 +81,6 @@ export declare var GetSmsChannelIdInput$: StaticStructureSchema;
|
|
|
81
81
|
export declare var GetSmsChannelIdOutput$: StaticStructureSchema;
|
|
82
82
|
export declare var GetTelephonyChannelIdInput$: StaticStructureSchema;
|
|
83
83
|
export declare var GetTelephonyChannelIdOutput$: StaticStructureSchema;
|
|
84
|
-
export declare var GetTokenInput$: StaticStructureSchema;
|
|
85
|
-
export declare var GetTokenOutput$: StaticStructureSchema;
|
|
86
84
|
export declare var GetUploadedFileInfoInput$: StaticStructureSchema;
|
|
87
85
|
export declare var GetUploadedFileInfoOutput$: StaticStructureSchema;
|
|
88
86
|
export declare var GetWhatsAppChannelIdInput$: StaticStructureSchema;
|
|
@@ -140,6 +138,8 @@ export declare var PinMessageInput$: StaticStructureSchema;
|
|
|
140
138
|
export declare var PinMessageOutput$: StaticStructureSchema;
|
|
141
139
|
export declare var QueryChannelsInput$: StaticStructureSchema;
|
|
142
140
|
export declare var QueryChannelsOutput$: StaticStructureSchema;
|
|
141
|
+
export declare var QueryUsersInput$: StaticStructureSchema;
|
|
142
|
+
export declare var QueryUsersOutput$: StaticStructureSchema;
|
|
143
143
|
export declare var Reaction$: StaticStructureSchema;
|
|
144
144
|
export declare var RemoveChannelFromSectionInput$: StaticStructureSchema;
|
|
145
145
|
export declare var RemoveChannelFromSectionOutput$: StaticStructureSchema;
|
|
@@ -151,6 +151,9 @@ export declare var SearchChannelsOutput$: StaticStructureSchema;
|
|
|
151
151
|
export declare var SearchMessageHit$: StaticStructureSchema;
|
|
152
152
|
export declare var SearchMessagesInput$: StaticStructureSchema;
|
|
153
153
|
export declare var SearchMessagesOutput$: StaticStructureSchema;
|
|
154
|
+
export declare var SearchUserHit$: StaticStructureSchema;
|
|
155
|
+
export declare var SearchUsersInput$: StaticStructureSchema;
|
|
156
|
+
export declare var SearchUsersOutput$: StaticStructureSchema;
|
|
154
157
|
export declare var Section$: StaticStructureSchema;
|
|
155
158
|
export declare var SendGiphyInput$: StaticStructureSchema;
|
|
156
159
|
export declare var SendGiphyOutput$: StaticStructureSchema;
|
|
@@ -166,6 +169,7 @@ export declare var SendTypingStopInput$: StaticStructureSchema;
|
|
|
166
169
|
export declare var SendTypingStopOutput$: StaticStructureSchema;
|
|
167
170
|
export declare var ShowChannelInput$: StaticStructureSchema;
|
|
168
171
|
export declare var ShowChannelOutput$: StaticStructureSchema;
|
|
172
|
+
export declare var StreamUser$: StaticStructureSchema;
|
|
169
173
|
export declare var UnmuteChannelInput$: StaticStructureSchema;
|
|
170
174
|
export declare var UnmuteChannelOutput$: StaticStructureSchema;
|
|
171
175
|
export declare var UnpinChannelInput$: StaticStructureSchema;
|
|
@@ -180,12 +184,10 @@ export declare var UploadedFileInfo$: StaticStructureSchema;
|
|
|
180
184
|
export declare var UploadFileInput$: StaticStructureSchema;
|
|
181
185
|
export declare var UploadFileOptions$: StaticStructureSchema;
|
|
182
186
|
export declare var UploadFileOutput$: StaticStructureSchema;
|
|
187
|
+
export declare var UsersQuery$: StaticStructureSchema;
|
|
183
188
|
export declare var UserToInvite$: StaticStructureSchema;
|
|
184
189
|
export declare var WelcomeMessage$: StaticStructureSchema;
|
|
185
190
|
export declare var WhatsAppClosedSystemMessage$: StaticStructureSchema;
|
|
186
|
-
export declare var WilmaChatArtifactCard$: StaticStructureSchema;
|
|
187
|
-
export declare var WilmaChatElement$: StaticStructureSchema;
|
|
188
|
-
export declare var WilmaChatInspect$: StaticStructureSchema;
|
|
189
191
|
export declare var ActionElement$: StaticUnionSchema;
|
|
190
192
|
export declare var AssignChannelAssigneeRequest$: StaticUnionSchema;
|
|
191
193
|
export declare var AssignChannelServiceRequest$: StaticUnionSchema;
|
|
@@ -215,7 +217,6 @@ export declare var GetOrCreateTelephonyChannel$: StaticOperationSchema;
|
|
|
215
217
|
export declare var GetOrCreateWhatsAppChannel$: StaticOperationSchema;
|
|
216
218
|
export declare var GetSmsChannelId$: StaticOperationSchema;
|
|
217
219
|
export declare var GetTelephonyChannelId$: StaticOperationSchema;
|
|
218
|
-
export declare var GetToken$: StaticOperationSchema;
|
|
219
220
|
export declare var GetUploadedFileInfo$: StaticOperationSchema;
|
|
220
221
|
export declare var GetWhatsAppChannelId$: StaticOperationSchema;
|
|
221
222
|
export declare var HardDeleteChannel$: StaticOperationSchema;
|
|
@@ -236,10 +237,12 @@ export declare var PartialUpdateMessage$: StaticOperationSchema;
|
|
|
236
237
|
export declare var PinChannel$: StaticOperationSchema;
|
|
237
238
|
export declare var PinMessage$: StaticOperationSchema;
|
|
238
239
|
export declare var QueryChannels$: StaticOperationSchema;
|
|
240
|
+
export declare var QueryUsers$: StaticOperationSchema;
|
|
239
241
|
export declare var RemoveChannelFromSection$: StaticOperationSchema;
|
|
240
242
|
export declare var RenameSection$: StaticOperationSchema;
|
|
241
243
|
export declare var SearchChannels$: StaticOperationSchema;
|
|
242
244
|
export declare var SearchMessages$: StaticOperationSchema;
|
|
245
|
+
export declare var SearchUsers$: StaticOperationSchema;
|
|
243
246
|
export declare var SendGiphy$: StaticOperationSchema;
|
|
244
247
|
export declare var SendMessage$: StaticOperationSchema;
|
|
245
248
|
export declare var SendMessageReaction$: StaticOperationSchema;
|
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.1
|
|
4
|
+
"version": "4.2.1",
|
|
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",
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
-
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
-
import type { GetTokenInput, GetTokenOutput } 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 GetTokenCommand}.
|
|
14
|
-
*/
|
|
15
|
-
export interface GetTokenCommandInput extends GetTokenInput {
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* @public
|
|
19
|
-
*
|
|
20
|
-
* The output of {@link GetTokenCommand}.
|
|
21
|
-
*/
|
|
22
|
-
export interface GetTokenCommandOutput extends GetTokenOutput, __MetadataBearer {
|
|
23
|
-
}
|
|
24
|
-
declare const GetTokenCommand_base: {
|
|
25
|
-
new (input: GetTokenCommandInput): import("@smithy/core/client").CommandImpl<GetTokenCommandInput, GetTokenCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
-
new (...[input]: [] | [GetTokenCommandInput]): import("@smithy/core/client").CommandImpl<GetTokenCommandInput, GetTokenCommandOutput, StreamServiceClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
-
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
28
|
-
};
|
|
29
|
-
/**
|
|
30
|
-
* Returns a short-lived authorization token for the stream chat client.
|
|
31
|
-
* @example
|
|
32
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
-
* ```javascript
|
|
34
|
-
* import { StreamServiceClient, GetTokenCommand } from "@wildix/stream-client"; // ES Modules import
|
|
35
|
-
* // const { StreamServiceClient, GetTokenCommand } = 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 = { // GetTokenInput
|
|
40
|
-
* companyId: "STRING_VALUE",
|
|
41
|
-
* userId: "STRING_VALUE",
|
|
42
|
-
* clientId: "STRING_VALUE",
|
|
43
|
-
* };
|
|
44
|
-
* const command = new GetTokenCommand(input);
|
|
45
|
-
* const response = await client.send(command);
|
|
46
|
-
* // { // GetTokenOutput
|
|
47
|
-
* // requestId: "STRING_VALUE",
|
|
48
|
-
* // requestDuration: Number("int"),
|
|
49
|
-
* // token: "STRING_VALUE", // required
|
|
50
|
-
* // expires: Number("long"), // required
|
|
51
|
-
* // };
|
|
52
|
-
*
|
|
53
|
-
* ```
|
|
54
|
-
*
|
|
55
|
-
* @param GetTokenCommandInput - {@link GetTokenCommandInput}
|
|
56
|
-
* @returns {@link GetTokenCommandOutput}
|
|
57
|
-
* @see {@link GetTokenCommandInput} for command's `input` shape.
|
|
58
|
-
* @see {@link GetTokenCommandOutput} for command's `response` shape.
|
|
59
|
-
* @see {@link StreamServiceClientResolvedConfig | config} for StreamServiceClient's `config` shape.
|
|
60
|
-
*
|
|
61
|
-
* @throws {@link StreamServiceException} (server fault)
|
|
62
|
-
*
|
|
63
|
-
* @throws {@link UnauthorizedException} (client fault)
|
|
64
|
-
*
|
|
65
|
-
* @throws {@link ForbiddenException} (client fault)
|
|
66
|
-
*
|
|
67
|
-
* @throws {@link ValidationException} (client fault)
|
|
68
|
-
*
|
|
69
|
-
* @throws {@link RateLimitExceededException} (client fault)
|
|
70
|
-
*
|
|
71
|
-
* @throws {@link StreamServiceServiceException}
|
|
72
|
-
* <p>Base exception class for all service exceptions from StreamService service.</p>
|
|
73
|
-
*
|
|
74
|
-
*
|
|
75
|
-
* @public
|
|
76
|
-
*/
|
|
77
|
-
export declare class GetTokenCommand extends GetTokenCommand_base {
|
|
78
|
-
/** @internal type navigation helper, not in runtime. */
|
|
79
|
-
protected static __types: {
|
|
80
|
-
api: {
|
|
81
|
-
input: GetTokenInput;
|
|
82
|
-
output: GetTokenOutput;
|
|
83
|
-
};
|
|
84
|
-
sdk: {
|
|
85
|
-
input: GetTokenCommandInput;
|
|
86
|
-
output: GetTokenCommandOutput;
|
|
87
|
-
};
|
|
88
|
-
};
|
|
89
|
-
}
|