@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.
- 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 -1
- package/dist-cjs/schemas/schemas_0.js +84 -26
- 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 -0
- package/dist-es/schemas/schemas_0.js +79 -22
- package/dist-types/StreamService.d.ts +14 -8
- package/dist-types/StreamServiceClient.d.ts +4 -3
- package/dist-types/commands/QueryUsersCommand.d.ts +114 -0
- package/dist-types/commands/SearchUsersCommand.d.ts +116 -0
- package/dist-types/commands/index.d.ts +2 -1
- package/dist-types/models/enums.d.ts +30 -0
- package/dist-types/models/models_0.d.ts +233 -46
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +9 -3
- package/package.json +3 -2
- package/dist-types/commands/GetTokenCommand.d.ts +0 -89
|
@@ -364,3 +364,33 @@ export declare const SearchSort: {
|
|
|
364
364
|
* @public
|
|
365
365
|
*/
|
|
366
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, SectionType } 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, SearchUsersMode, SectionType, UserMatchedOn } from "./enums";
|
|
2
2
|
/**
|
|
3
3
|
* @public
|
|
4
4
|
*/
|
|
@@ -2364,51 +2364,6 @@ export interface GetTelephonyChannelIdOutput {
|
|
|
2364
2364
|
*/
|
|
2365
2365
|
channelId: string;
|
|
2366
2366
|
}
|
|
2367
|
-
/**
|
|
2368
|
-
* @public
|
|
2369
|
-
*/
|
|
2370
|
-
export interface GetTokenInput {
|
|
2371
|
-
/**
|
|
2372
|
-
* The unique identifier of the tenant when a service token is used.
|
|
2373
|
-
* @public
|
|
2374
|
-
*/
|
|
2375
|
-
companyId?: string | undefined;
|
|
2376
|
-
/**
|
|
2377
|
-
* The unique identifier of the user when a service or PBX token is used.
|
|
2378
|
-
* @public
|
|
2379
|
-
*/
|
|
2380
|
-
userId?: string | undefined;
|
|
2381
|
-
/**
|
|
2382
|
-
* Client id used to select and sign the correct token.
|
|
2383
|
-
* @public
|
|
2384
|
-
*/
|
|
2385
|
-
clientId?: string | undefined;
|
|
2386
|
-
}
|
|
2387
|
-
/**
|
|
2388
|
-
* @public
|
|
2389
|
-
*/
|
|
2390
|
-
export interface GetTokenOutput {
|
|
2391
|
-
/**
|
|
2392
|
-
* The request ID of the request.
|
|
2393
|
-
* @public
|
|
2394
|
-
*/
|
|
2395
|
-
requestId?: string | undefined;
|
|
2396
|
-
/**
|
|
2397
|
-
* The duration of the request in milliseconds.
|
|
2398
|
-
* @public
|
|
2399
|
-
*/
|
|
2400
|
-
requestDuration?: number | undefined;
|
|
2401
|
-
/**
|
|
2402
|
-
* Authorization token.
|
|
2403
|
-
* @public
|
|
2404
|
-
*/
|
|
2405
|
-
token: string;
|
|
2406
|
-
/**
|
|
2407
|
-
* Token expiration time as Unix epoch seconds.
|
|
2408
|
-
* @public
|
|
2409
|
-
*/
|
|
2410
|
-
expires: number;
|
|
2411
|
-
}
|
|
2412
2367
|
/**
|
|
2413
2368
|
* @public
|
|
2414
2369
|
*/
|
|
@@ -3578,6 +3533,138 @@ export interface QueryChannelsOutput {
|
|
|
3578
3533
|
requestDuration?: number | undefined;
|
|
3579
3534
|
channels: InboxChannel[];
|
|
3580
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
|
+
}
|
|
3581
3668
|
/**
|
|
3582
3669
|
* @public
|
|
3583
3670
|
*/
|
|
@@ -3860,6 +3947,106 @@ export interface SearchMessagesOutput {
|
|
|
3860
3947
|
*/
|
|
3861
3948
|
nextCursor?: string | undefined;
|
|
3862
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
|
+
}
|
|
3863
4050
|
/**
|
|
3864
4051
|
* @public
|
|
3865
4052
|
*/
|
|
@@ -39,6 +39,7 @@ export declare const getRuntimeConfig: (config: StreamServiceClientConfig) => {
|
|
|
39
39
|
tls?: boolean;
|
|
40
40
|
useDualstackEndpoint?: boolean | import("@smithy/types").Provider<boolean | undefined>;
|
|
41
41
|
useFipsEndpoint?: boolean | import("@smithy/types").Provider<boolean | undefined>;
|
|
42
|
+
ignoreConfiguredEndpointUrls?: boolean;
|
|
42
43
|
serviceConfiguredEndpoint?: never;
|
|
43
44
|
authSchemePreference?: string[] | import("@smithy/types").Provider<string[]>;
|
|
44
45
|
httpAuthSchemes: {
|
|
@@ -39,6 +39,7 @@ export declare const getRuntimeConfig: (config: StreamServiceClientConfig) => {
|
|
|
39
39
|
tls?: boolean;
|
|
40
40
|
useDualstackEndpoint?: boolean | import("@smithy/types").Provider<boolean | undefined>;
|
|
41
41
|
useFipsEndpoint?: boolean | import("@smithy/types").Provider<boolean | undefined>;
|
|
42
|
+
ignoreConfiguredEndpointUrls?: boolean;
|
|
42
43
|
serviceConfiguredEndpoint?: never;
|
|
43
44
|
authSchemePreference?: string[] | import("@smithy/types").Provider<string[]>;
|
|
44
45
|
httpAuthSchemes: {
|
|
@@ -39,6 +39,7 @@ export declare const getRuntimeConfig: (config: StreamServiceClientConfig) => {
|
|
|
39
39
|
tls?: boolean;
|
|
40
40
|
useDualstackEndpoint?: boolean | import("@smithy/types").Provider<boolean | undefined>;
|
|
41
41
|
useFipsEndpoint?: boolean | import("@smithy/types").Provider<boolean | undefined>;
|
|
42
|
+
ignoreConfiguredEndpointUrls?: boolean;
|
|
42
43
|
serviceConfiguredEndpoint?: never;
|
|
43
44
|
authSchemePreference?: string[] | import("@smithy/types").Provider<string[]>;
|
|
44
45
|
httpAuthSchemes: {
|
|
@@ -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,6 +184,7 @@ 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;
|
|
@@ -212,7 +217,6 @@ export declare var GetOrCreateTelephonyChannel$: StaticOperationSchema;
|
|
|
212
217
|
export declare var GetOrCreateWhatsAppChannel$: StaticOperationSchema;
|
|
213
218
|
export declare var GetSmsChannelId$: StaticOperationSchema;
|
|
214
219
|
export declare var GetTelephonyChannelId$: StaticOperationSchema;
|
|
215
|
-
export declare var GetToken$: StaticOperationSchema;
|
|
216
220
|
export declare var GetUploadedFileInfo$: StaticOperationSchema;
|
|
217
221
|
export declare var GetWhatsAppChannelId$: StaticOperationSchema;
|
|
218
222
|
export declare var HardDeleteChannel$: StaticOperationSchema;
|
|
@@ -233,10 +237,12 @@ export declare var PartialUpdateMessage$: StaticOperationSchema;
|
|
|
233
237
|
export declare var PinChannel$: StaticOperationSchema;
|
|
234
238
|
export declare var PinMessage$: StaticOperationSchema;
|
|
235
239
|
export declare var QueryChannels$: StaticOperationSchema;
|
|
240
|
+
export declare var QueryUsers$: StaticOperationSchema;
|
|
236
241
|
export declare var RemoveChannelFromSection$: StaticOperationSchema;
|
|
237
242
|
export declare var RenameSection$: StaticOperationSchema;
|
|
238
243
|
export declare var SearchChannels$: StaticOperationSchema;
|
|
239
244
|
export declare var SearchMessages$: StaticOperationSchema;
|
|
245
|
+
export declare var SearchUsers$: StaticOperationSchema;
|
|
240
246
|
export declare var SendGiphy$: StaticOperationSchema;
|
|
241
247
|
export declare var SendMessage$: StaticOperationSchema;
|
|
242
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.
|
|
4
|
+
"version": "4.2.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",
|
|
@@ -25,7 +25,8 @@
|
|
|
25
25
|
"@smithy/fetch-http-handler": "^5.4.5",
|
|
26
26
|
"@smithy/node-http-handler": "^4.7.5",
|
|
27
27
|
"@smithy/types": "^4.14.2",
|
|
28
|
-
"@wildix/smithy-react-native": "^1.0.0"
|
|
28
|
+
"@wildix/smithy-react-native": "^1.0.0",
|
|
29
|
+
"@smithy/middleware-endpoint": "^4.7.2"
|
|
29
30
|
},
|
|
30
31
|
"devDependencies": {
|
|
31
32
|
"@tsconfig/node20": "20.1.8",
|
|
@@ -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
|
-
}
|