@wildix/xbees-users-client 1.0.11 → 1.0.14
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/Users.js +10 -2
- package/dist-cjs/commands/{BatchGetUsersStreamLinkDataCommand.js → BatchGetUsersCommand.js} +7 -7
- package/dist-cjs/commands/GetUserCommand.js +21 -0
- package/dist-cjs/commands/GetUserPbxLinkDataCommand.js +21 -0
- package/dist-cjs/commands/QueryUserCommand.js +21 -0
- package/dist-cjs/commands/QueryUsersCommand.js +21 -0
- package/dist-cjs/commands/index.js +5 -1
- package/dist-cjs/models/models_0.js +46 -1
- package/dist-cjs/protocols/Aws_restJson1.js +233 -15
- package/dist-es/Users.js +10 -2
- package/dist-es/commands/BatchGetUsersCommand.js +17 -0
- package/dist-es/commands/GetUserCommand.js +17 -0
- package/dist-es/commands/GetUserPbxLinkDataCommand.js +17 -0
- package/dist-es/commands/QueryUserCommand.js +17 -0
- package/dist-es/commands/QueryUsersCommand.js +17 -0
- package/dist-es/commands/index.js +5 -1
- package/dist-es/models/models_0.js +43 -0
- package/dist-es/protocols/Aws_restJson1.js +222 -12
- package/dist-types/Users.d.ts +35 -7
- package/dist-types/UsersClient.d.ts +7 -3
- package/dist-types/commands/BatchGetUsersCommand.d.ts +85 -0
- package/dist-types/commands/BatchGetUsersPbxLinkDataCommand.d.ts +55 -5
- package/dist-types/commands/CreateBotApiKeyCommand.d.ts +2 -1
- package/dist-types/commands/CreateBotCommand.d.ts +4 -5
- package/dist-types/commands/DeleteBotApiKeyCommand.d.ts +2 -1
- package/dist-types/commands/DeleteBotCommand.d.ts +2 -1
- package/dist-types/commands/GetBotCallbackCommand.d.ts +4 -5
- package/dist-types/commands/GetBotCommand.d.ts +2 -1
- package/dist-types/commands/GetUserCommand.d.ts +83 -0
- package/dist-types/commands/GetUserPbxLinkDataCommand.d.ts +120 -0
- package/dist-types/commands/ListBotApiKeysCommand.d.ts +2 -1
- package/dist-types/commands/ListBotsCommand.d.ts +2 -1
- package/dist-types/commands/QueryUserCommand.d.ts +92 -0
- package/dist-types/commands/QueryUsersCommand.d.ts +92 -0
- package/dist-types/commands/UpdateBotCallbackCommand.d.ts +6 -9
- package/dist-types/commands/UpdateBotCommand.d.ts +2 -1
- package/dist-types/commands/UploadPictureCommand.d.ts +2 -1
- package/dist-types/commands/VerifyBotSecretKeyCommand.d.ts +2 -1
- package/dist-types/commands/index.d.ts +5 -1
- package/dist-types/index.d.ts +2 -2
- package/dist-types/models/UsersServiceException.d.ts +2 -1
- package/dist-types/models/models_0.d.ts +439 -35
- package/dist-types/protocols/Aws_restJson1.d.ts +45 -9
- package/package.json +9 -9
- package/dist-es/commands/BatchGetUsersStreamLinkDataCommand.js +0 -17
- package/dist-types/commands/BatchGetUsersStreamLinkDataCommand.d.ts +0 -82
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { UsersServiceException as __BaseException } from "./UsersServiceException";
|
|
2
2
|
import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
|
|
3
|
+
import { DocumentType as __DocumentType } from "@smithy/types";
|
|
3
4
|
/**
|
|
4
5
|
* @public
|
|
5
6
|
*/
|
|
@@ -22,6 +23,58 @@ export declare class ForbiddenException extends __BaseException {
|
|
|
22
23
|
*/
|
|
23
24
|
constructor(opts: __ExceptionOptionType<ForbiddenException, __BaseException>);
|
|
24
25
|
}
|
|
26
|
+
/**
|
|
27
|
+
* @public
|
|
28
|
+
* @enum
|
|
29
|
+
*/
|
|
30
|
+
export declare const PbxLicenseType: {
|
|
31
|
+
readonly BASIC: "basic";
|
|
32
|
+
readonly BUSINESS: "business";
|
|
33
|
+
readonly ESSENTIAL: "essential";
|
|
34
|
+
readonly PREMIUM: "premium";
|
|
35
|
+
readonly WIZYCONF: "wizyconf";
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* @public
|
|
39
|
+
*/
|
|
40
|
+
export type PbxLicenseType = typeof PbxLicenseType[keyof typeof PbxLicenseType];
|
|
41
|
+
/**
|
|
42
|
+
* @public
|
|
43
|
+
*/
|
|
44
|
+
export interface User {
|
|
45
|
+
id: string;
|
|
46
|
+
name?: string;
|
|
47
|
+
email?: string;
|
|
48
|
+
phone?: string;
|
|
49
|
+
picture?: string;
|
|
50
|
+
locale?: string;
|
|
51
|
+
timeZone?: string;
|
|
52
|
+
company?: string;
|
|
53
|
+
bot?: boolean;
|
|
54
|
+
pbxDomain?: string;
|
|
55
|
+
pbxPort?: string;
|
|
56
|
+
pbxExtension?: string;
|
|
57
|
+
pbxSerial?: string;
|
|
58
|
+
pbxUserId?: string;
|
|
59
|
+
createdAt?: string;
|
|
60
|
+
updatedAt?: string;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* @public
|
|
64
|
+
*/
|
|
65
|
+
export interface BatchGetUsersInput {
|
|
66
|
+
id: (string)[];
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* @public
|
|
70
|
+
*/
|
|
71
|
+
export interface BatchGetUsersOutput {
|
|
72
|
+
/**
|
|
73
|
+
* A list of users that exist in the platform.
|
|
74
|
+
* @public
|
|
75
|
+
*/
|
|
76
|
+
users: (User)[];
|
|
77
|
+
}
|
|
25
78
|
/**
|
|
26
79
|
* @public
|
|
27
80
|
*/
|
|
@@ -31,48 +84,260 @@ export interface BatchGetUsersPbxLinkDataInput {
|
|
|
31
84
|
/**
|
|
32
85
|
* @public
|
|
33
86
|
*/
|
|
34
|
-
export interface
|
|
87
|
+
export interface UserPbxDialplanSettings {
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* @public
|
|
91
|
+
*/
|
|
92
|
+
export interface UserPersonalInfo {
|
|
93
|
+
/**
|
|
94
|
+
* Distinguished Name (DN) of the user in the directory (example: 'uid=9010198,o=com0,dc=wildix').
|
|
95
|
+
* @public
|
|
96
|
+
*/
|
|
97
|
+
dn: string;
|
|
98
|
+
/**
|
|
99
|
+
* Unique identifier of the user (example: '9010198').
|
|
100
|
+
* @public
|
|
101
|
+
*/
|
|
35
102
|
id: string;
|
|
36
|
-
|
|
37
|
-
|
|
103
|
+
/**
|
|
104
|
+
* Name of the user (example: 'John Doe').
|
|
105
|
+
* @public
|
|
106
|
+
*/
|
|
107
|
+
name: string;
|
|
108
|
+
/**
|
|
109
|
+
* Extension number of the user (example: '111').
|
|
110
|
+
* @public
|
|
111
|
+
*/
|
|
112
|
+
extension: string;
|
|
113
|
+
/**
|
|
114
|
+
* Office phone number of the user (example: '22222'). This field can be an empty string or undefined if not provided.
|
|
115
|
+
* @public
|
|
116
|
+
*/
|
|
117
|
+
officePhone?: string;
|
|
118
|
+
/**
|
|
119
|
+
* Mobile phone number of the user (example: '22222'). This field can be an empty string or undefined if not provided.
|
|
120
|
+
* @public
|
|
121
|
+
*/
|
|
122
|
+
mobilePhone?: string;
|
|
123
|
+
/**
|
|
124
|
+
* Fax number of the user (example: '22222'). This field can be an empty string or undefined if not provided.
|
|
125
|
+
* @public
|
|
126
|
+
*/
|
|
127
|
+
faxNumber?: string;
|
|
128
|
+
/**
|
|
129
|
+
* Email address of the user (example: 'email@google.com'). This field can be an empty string or undefined if not provided.
|
|
130
|
+
* @public
|
|
131
|
+
*/
|
|
38
132
|
email?: string;
|
|
133
|
+
/**
|
|
134
|
+
* Role of the user (example: 'admin').
|
|
135
|
+
* @public
|
|
136
|
+
*/
|
|
137
|
+
role: string;
|
|
138
|
+
/**
|
|
139
|
+
* Language preference of the user (example: 'en').
|
|
140
|
+
* @public
|
|
141
|
+
*/
|
|
142
|
+
language: string;
|
|
143
|
+
/**
|
|
144
|
+
* Dialplan associated with the user (example: 'users').
|
|
145
|
+
* @public
|
|
146
|
+
*/
|
|
147
|
+
dialplan: string;
|
|
148
|
+
/**
|
|
149
|
+
* Fax dialplan associated with the user. Example: 'users'.
|
|
150
|
+
* @public
|
|
151
|
+
*/
|
|
152
|
+
faxDialplan: string;
|
|
153
|
+
/**
|
|
154
|
+
* Department of the user (example: 'Sales'). This field can be an empty string or undefined if not provided.
|
|
155
|
+
* @public
|
|
156
|
+
*/
|
|
157
|
+
departament?: string;
|
|
158
|
+
/**
|
|
159
|
+
* Public URL path of the user's picture (example: '/cticonnect/cticonnect_share/user_avatar_3688190.png?100&John Doe&98998generated').
|
|
160
|
+
* @public
|
|
161
|
+
*/
|
|
162
|
+
picture: string;
|
|
163
|
+
/**
|
|
164
|
+
* Distinguished Name (DN) of the user's group in the directory. Example: 'gid=5194383,o=com0,dc=wildix'.
|
|
165
|
+
* @public
|
|
166
|
+
*/
|
|
167
|
+
groupDn: string;
|
|
168
|
+
/**
|
|
169
|
+
* Name of the user's group.
|
|
170
|
+
* @public
|
|
171
|
+
*/
|
|
172
|
+
groupName: string;
|
|
173
|
+
/**
|
|
174
|
+
* Jabber ID (JID) of the user. Example: '100@example.wildixin.com'.
|
|
175
|
+
* @public
|
|
176
|
+
*/
|
|
177
|
+
jid: string;
|
|
178
|
+
/**
|
|
179
|
+
* Type of license assigned to the user.
|
|
180
|
+
* @public
|
|
181
|
+
*/
|
|
182
|
+
licenseType: PbxLicenseType;
|
|
183
|
+
/**
|
|
184
|
+
* Login name of the user. This field can be an empty string or undefined if not provided.
|
|
185
|
+
* @public
|
|
186
|
+
*/
|
|
187
|
+
login?: string;
|
|
188
|
+
/**
|
|
189
|
+
* PBX associated with the user. This field can be an empty string or undefined if not provided.
|
|
190
|
+
* @public
|
|
191
|
+
*/
|
|
192
|
+
pbx?: string;
|
|
193
|
+
/**
|
|
194
|
+
* Distinguished Name (DN) of the PBX associated with the user. Example: 'pbxid=0800276a7b26,dc=wildix'.
|
|
195
|
+
* @public
|
|
196
|
+
*/
|
|
197
|
+
pbxDn: string;
|
|
198
|
+
/**
|
|
199
|
+
* Source identifier for the user's authorization (example: '117868550326216144929').
|
|
200
|
+
* @public
|
|
201
|
+
*/
|
|
202
|
+
sourceId?: string;
|
|
203
|
+
/**
|
|
204
|
+
* SIP password for the user, used to authenticate and secure SIP communications such as VoIP calls.
|
|
205
|
+
* @public
|
|
206
|
+
*/
|
|
207
|
+
sipPassword?: string;
|
|
39
208
|
}
|
|
40
209
|
/**
|
|
41
210
|
* @public
|
|
42
211
|
*/
|
|
43
|
-
export interface
|
|
44
|
-
|
|
212
|
+
export interface UserPbxInfo {
|
|
213
|
+
/**
|
|
214
|
+
* Network addresses associated with the PBX (example: ['krzhevitskywms4.wildixin.com']).
|
|
215
|
+
* @public
|
|
216
|
+
*/
|
|
217
|
+
networkAddresses: (string)[];
|
|
218
|
+
/**
|
|
219
|
+
* Specifies the HTTPs ports utilized by the PBX system (example: ['443']).
|
|
220
|
+
* @public
|
|
221
|
+
*/
|
|
222
|
+
ports: (string)[];
|
|
223
|
+
/**
|
|
224
|
+
* Prefix used for external lines (eample: '0').
|
|
225
|
+
* @public
|
|
226
|
+
*/
|
|
227
|
+
externalLinePrefix?: string;
|
|
228
|
+
/**
|
|
229
|
+
* Version of the PBX software (example: '5.03.20210820.2~67439e5d').
|
|
230
|
+
* @public
|
|
231
|
+
*/
|
|
232
|
+
version: string;
|
|
233
|
+
/**
|
|
234
|
+
* Serial number of the PBX (example: '221100002aa2').
|
|
235
|
+
* @public
|
|
236
|
+
*/
|
|
237
|
+
serial: string;
|
|
45
238
|
}
|
|
46
239
|
/**
|
|
47
240
|
* @public
|
|
48
241
|
*/
|
|
49
|
-
export interface
|
|
50
|
-
id: (string)[];
|
|
242
|
+
export interface UserPbxPersonalSettings {
|
|
51
243
|
}
|
|
52
244
|
/**
|
|
53
245
|
* @public
|
|
54
246
|
*/
|
|
55
|
-
export interface
|
|
247
|
+
export interface UserPbxServices {
|
|
248
|
+
xcaracal?: boolean;
|
|
249
|
+
wizyWebinar?: boolean;
|
|
250
|
+
}
|
|
251
|
+
/**
|
|
252
|
+
* @public
|
|
253
|
+
*/
|
|
254
|
+
export interface UserPbxLinkData {
|
|
255
|
+
/**
|
|
256
|
+
* The unique identifier of the user (Cloud ID, not ID of the user on PBX).
|
|
257
|
+
* @public
|
|
258
|
+
*/
|
|
56
259
|
id: string;
|
|
260
|
+
/**
|
|
261
|
+
* The ID of the tenant (company) associated with the user.
|
|
262
|
+
* @public
|
|
263
|
+
*/
|
|
264
|
+
company: string;
|
|
265
|
+
/**
|
|
266
|
+
* The name of the tenant (company) associated with the user.
|
|
267
|
+
* @public
|
|
268
|
+
*/
|
|
269
|
+
companyName?: string;
|
|
270
|
+
/**
|
|
271
|
+
* The domain of the PBX where the user connected to.
|
|
272
|
+
* @public
|
|
273
|
+
*/
|
|
274
|
+
domain: string;
|
|
275
|
+
/**
|
|
276
|
+
* The email address of the user.
|
|
277
|
+
* @public
|
|
278
|
+
*/
|
|
57
279
|
email?: string;
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
280
|
+
/**
|
|
281
|
+
* Personal information of the user.
|
|
282
|
+
* @public
|
|
283
|
+
*/
|
|
284
|
+
info: UserPersonalInfo;
|
|
285
|
+
/**
|
|
286
|
+
* PBX information where user connected to.
|
|
287
|
+
* @public
|
|
288
|
+
*/
|
|
289
|
+
pbx: UserPbxInfo;
|
|
290
|
+
/**
|
|
291
|
+
* A public URL of the user's picture (example: https://example.wildixin.com/cticonnect/cticonnect_share/user_avatar_3688190.png)
|
|
292
|
+
* @public
|
|
293
|
+
*/
|
|
294
|
+
picture: string;
|
|
295
|
+
/**
|
|
296
|
+
* Indicates whether the picture was manually removed by the user. If true the application must show a placeholder instead of the default picture from the PBX.
|
|
297
|
+
* @public
|
|
298
|
+
*/
|
|
299
|
+
pictureDeleted?: boolean;
|
|
300
|
+
/**
|
|
301
|
+
* The port used for the PBX connection.
|
|
302
|
+
* @public
|
|
303
|
+
*/
|
|
304
|
+
port: string;
|
|
305
|
+
/**
|
|
306
|
+
* The serial number of the PBX.
|
|
307
|
+
* @public
|
|
308
|
+
*/
|
|
309
|
+
serial: string;
|
|
310
|
+
/**
|
|
311
|
+
* Services associated with the user's PBX.
|
|
312
|
+
* @public
|
|
313
|
+
*/
|
|
314
|
+
services?: UserPbxServices;
|
|
315
|
+
/**
|
|
316
|
+
* Personal settings (PBX) of the user.
|
|
317
|
+
* @public
|
|
318
|
+
*/
|
|
319
|
+
personalSettings?: UserPbxPersonalSettings;
|
|
320
|
+
/**
|
|
321
|
+
* Dialplan settings (PBX) of the user.
|
|
322
|
+
* @public
|
|
323
|
+
*/
|
|
324
|
+
dialplanSettings?: UserPbxDialplanSettings;
|
|
325
|
+
/**
|
|
326
|
+
* The AWS region where the PBX is located.
|
|
327
|
+
* @public
|
|
328
|
+
*/
|
|
329
|
+
awsRegion?: string;
|
|
330
|
+
/**
|
|
331
|
+
* The date when link data was updated last time.
|
|
332
|
+
* @public
|
|
333
|
+
*/
|
|
334
|
+
updatedAt?: string;
|
|
70
335
|
}
|
|
71
336
|
/**
|
|
72
337
|
* @public
|
|
73
338
|
*/
|
|
74
|
-
export interface
|
|
75
|
-
users:
|
|
339
|
+
export interface BatchGetUsersPbxLinkDataOutput {
|
|
340
|
+
users: (UserPbxLinkData)[];
|
|
76
341
|
}
|
|
77
342
|
/**
|
|
78
343
|
* @public
|
|
@@ -109,15 +374,15 @@ export declare class BotApiKeyNotFoundException extends __BaseException {
|
|
|
109
374
|
*/
|
|
110
375
|
export interface BotDialogflowCxEndpoint {
|
|
111
376
|
/**
|
|
112
|
-
* Dialogflow
|
|
377
|
+
* Dialogflow Service Account Credentials
|
|
113
378
|
* @public
|
|
114
379
|
*/
|
|
115
|
-
|
|
380
|
+
credentials: __DocumentType;
|
|
116
381
|
/**
|
|
117
382
|
* Dialogflow Agent Id (example - 88ff4635-0852-4f97-ae44-b19ae9fa6ea1
|
|
118
383
|
* @public
|
|
119
384
|
*/
|
|
120
|
-
|
|
385
|
+
agent: string;
|
|
121
386
|
/**
|
|
122
387
|
* Dialogflow Agent Region (example: europe-west3)
|
|
123
388
|
* @public
|
|
@@ -128,16 +393,6 @@ export interface BotDialogflowCxEndpoint {
|
|
|
128
393
|
* @public
|
|
129
394
|
*/
|
|
130
395
|
language: string;
|
|
131
|
-
/**
|
|
132
|
-
* Service Account Private Key
|
|
133
|
-
* @public
|
|
134
|
-
*/
|
|
135
|
-
privateKey: string;
|
|
136
|
-
/**
|
|
137
|
-
* Service Account Email (example name@fluent-imprint-571.iam.gserviceaccount.com)
|
|
138
|
-
* @public
|
|
139
|
-
*/
|
|
140
|
-
clientEmail?: string;
|
|
141
396
|
}
|
|
142
397
|
/**
|
|
143
398
|
* @public
|
|
@@ -334,6 +589,45 @@ export interface GetBotCallbackInput {
|
|
|
334
589
|
export interface GetBotCallbackOutput {
|
|
335
590
|
callback: BotCallback;
|
|
336
591
|
}
|
|
592
|
+
/**
|
|
593
|
+
* @public
|
|
594
|
+
*/
|
|
595
|
+
export interface GetUserInput {
|
|
596
|
+
/**
|
|
597
|
+
* The unique identifier of the user.
|
|
598
|
+
* @public
|
|
599
|
+
*/
|
|
600
|
+
userId: string;
|
|
601
|
+
}
|
|
602
|
+
/**
|
|
603
|
+
* @public
|
|
604
|
+
*/
|
|
605
|
+
export interface GetUserOutput {
|
|
606
|
+
user: User;
|
|
607
|
+
}
|
|
608
|
+
/**
|
|
609
|
+
* @public
|
|
610
|
+
*/
|
|
611
|
+
export declare class UserNotFoundException extends __BaseException {
|
|
612
|
+
readonly name: "UserNotFoundException";
|
|
613
|
+
readonly $fault: "client";
|
|
614
|
+
/**
|
|
615
|
+
* @internal
|
|
616
|
+
*/
|
|
617
|
+
constructor(opts: __ExceptionOptionType<UserNotFoundException, __BaseException>);
|
|
618
|
+
}
|
|
619
|
+
/**
|
|
620
|
+
* @public
|
|
621
|
+
*/
|
|
622
|
+
export interface GetUserPbxLinkDataInput {
|
|
623
|
+
id: string;
|
|
624
|
+
}
|
|
625
|
+
/**
|
|
626
|
+
* @public
|
|
627
|
+
*/
|
|
628
|
+
export interface GetUserPbxLinkDataOutput {
|
|
629
|
+
user: UserPbxLinkData;
|
|
630
|
+
}
|
|
337
631
|
/**
|
|
338
632
|
* @public
|
|
339
633
|
*/
|
|
@@ -359,6 +653,116 @@ export interface ListBotsInput {
|
|
|
359
653
|
export interface ListBotsOutput {
|
|
360
654
|
bots: (Bot)[];
|
|
361
655
|
}
|
|
656
|
+
/**
|
|
657
|
+
* @public
|
|
658
|
+
*/
|
|
659
|
+
export interface UserQueryPredicate {
|
|
660
|
+
/**
|
|
661
|
+
* The type of PBX license required for the user query. This field is used to ensure that the user has the appropriate license type.
|
|
662
|
+
* @public
|
|
663
|
+
*/
|
|
664
|
+
license?: PbxLicenseType;
|
|
665
|
+
}
|
|
666
|
+
/**
|
|
667
|
+
* @public
|
|
668
|
+
*/
|
|
669
|
+
export type UserQuery = UserQuery.EmailMember | UserQuery.IdMember | UserQuery.PhoneMember | UserQuery.$UnknownMember;
|
|
670
|
+
/**
|
|
671
|
+
* @public
|
|
672
|
+
*/
|
|
673
|
+
export declare namespace UserQuery {
|
|
674
|
+
/**
|
|
675
|
+
* The unique identifier of the user (Cloud ID, not ID of the user on PBX).
|
|
676
|
+
* @public
|
|
677
|
+
*/
|
|
678
|
+
interface IdMember {
|
|
679
|
+
id: string;
|
|
680
|
+
email?: never;
|
|
681
|
+
phone?: never;
|
|
682
|
+
$unknown?: never;
|
|
683
|
+
}
|
|
684
|
+
/**
|
|
685
|
+
* The email address of the user.
|
|
686
|
+
* @public
|
|
687
|
+
*/
|
|
688
|
+
interface EmailMember {
|
|
689
|
+
id?: never;
|
|
690
|
+
email: string;
|
|
691
|
+
phone?: never;
|
|
692
|
+
$unknown?: never;
|
|
693
|
+
}
|
|
694
|
+
/**
|
|
695
|
+
* The phone number of the user.
|
|
696
|
+
* @public
|
|
697
|
+
*/
|
|
698
|
+
interface PhoneMember {
|
|
699
|
+
id?: never;
|
|
700
|
+
email?: never;
|
|
701
|
+
phone: string;
|
|
702
|
+
$unknown?: never;
|
|
703
|
+
}
|
|
704
|
+
/**
|
|
705
|
+
* @public
|
|
706
|
+
*/
|
|
707
|
+
interface $UnknownMember {
|
|
708
|
+
id?: never;
|
|
709
|
+
email?: never;
|
|
710
|
+
phone?: never;
|
|
711
|
+
$unknown: [string, any];
|
|
712
|
+
}
|
|
713
|
+
interface Visitor<T> {
|
|
714
|
+
id: (value: string) => T;
|
|
715
|
+
email: (value: string) => T;
|
|
716
|
+
phone: (value: string) => T;
|
|
717
|
+
_: (name: string, value: any) => T;
|
|
718
|
+
}
|
|
719
|
+
const visit: <T>(value: UserQuery, visitor: Visitor<T>) => T;
|
|
720
|
+
}
|
|
721
|
+
/**
|
|
722
|
+
* @public
|
|
723
|
+
*/
|
|
724
|
+
export interface QueryUserInput {
|
|
725
|
+
query: UserQuery;
|
|
726
|
+
/**
|
|
727
|
+
* A condition that must be satisfied for the user query to be considered valid. If this predicate is not met, a UserQueryPredicateNotMetException will be thrown.
|
|
728
|
+
* @public
|
|
729
|
+
*/
|
|
730
|
+
predicate?: UserQueryPredicate;
|
|
731
|
+
}
|
|
732
|
+
/**
|
|
733
|
+
* @public
|
|
734
|
+
*/
|
|
735
|
+
export interface QueryUserOutput {
|
|
736
|
+
user: User;
|
|
737
|
+
}
|
|
738
|
+
/**
|
|
739
|
+
* @public
|
|
740
|
+
*/
|
|
741
|
+
export declare class UserQueryPredicateNotMetException extends __BaseException {
|
|
742
|
+
readonly name: "UserQueryPredicateNotMetException";
|
|
743
|
+
readonly $fault: "client";
|
|
744
|
+
/**
|
|
745
|
+
* @internal
|
|
746
|
+
*/
|
|
747
|
+
constructor(opts: __ExceptionOptionType<UserQueryPredicateNotMetException, __BaseException>);
|
|
748
|
+
}
|
|
749
|
+
/**
|
|
750
|
+
* @public
|
|
751
|
+
*/
|
|
752
|
+
export interface QueryUsersInput {
|
|
753
|
+
queries: (UserQuery)[];
|
|
754
|
+
predicate?: UserQueryPredicate;
|
|
755
|
+
}
|
|
756
|
+
/**
|
|
757
|
+
* @public
|
|
758
|
+
*/
|
|
759
|
+
export interface QueryUsersOutput {
|
|
760
|
+
/**
|
|
761
|
+
* A list of users that exist in the platform and matches predicate if specified.
|
|
762
|
+
* @public
|
|
763
|
+
*/
|
|
764
|
+
users: (User)[];
|
|
765
|
+
}
|
|
362
766
|
/**
|
|
363
767
|
* @public
|
|
364
768
|
*/
|
|
@@ -1,13 +1,17 @@
|
|
|
1
|
+
import { BatchGetUsersCommandInput, BatchGetUsersCommandOutput } from "../commands/BatchGetUsersCommand";
|
|
1
2
|
import { BatchGetUsersPbxLinkDataCommandInput, BatchGetUsersPbxLinkDataCommandOutput } from "../commands/BatchGetUsersPbxLinkDataCommand";
|
|
2
|
-
import { BatchGetUsersStreamLinkDataCommandInput, BatchGetUsersStreamLinkDataCommandOutput } from "../commands/BatchGetUsersStreamLinkDataCommand";
|
|
3
3
|
import { CreateBotApiKeyCommandInput, CreateBotApiKeyCommandOutput } from "../commands/CreateBotApiKeyCommand";
|
|
4
4
|
import { CreateBotCommandInput, CreateBotCommandOutput } from "../commands/CreateBotCommand";
|
|
5
5
|
import { DeleteBotApiKeyCommandInput, DeleteBotApiKeyCommandOutput } from "../commands/DeleteBotApiKeyCommand";
|
|
6
6
|
import { DeleteBotCommandInput, DeleteBotCommandOutput } from "../commands/DeleteBotCommand";
|
|
7
7
|
import { GetBotCallbackCommandInput, GetBotCallbackCommandOutput } from "../commands/GetBotCallbackCommand";
|
|
8
8
|
import { GetBotCommandInput, GetBotCommandOutput } from "../commands/GetBotCommand";
|
|
9
|
+
import { GetUserCommandInput, GetUserCommandOutput } from "../commands/GetUserCommand";
|
|
10
|
+
import { GetUserPbxLinkDataCommandInput, GetUserPbxLinkDataCommandOutput } from "../commands/GetUserPbxLinkDataCommand";
|
|
9
11
|
import { ListBotApiKeysCommandInput, ListBotApiKeysCommandOutput } from "../commands/ListBotApiKeysCommand";
|
|
10
12
|
import { ListBotsCommandInput, ListBotsCommandOutput } from "../commands/ListBotsCommand";
|
|
13
|
+
import { QueryUserCommandInput, QueryUserCommandOutput } from "../commands/QueryUserCommand";
|
|
14
|
+
import { QueryUsersCommandInput, QueryUsersCommandOutput } from "../commands/QueryUsersCommand";
|
|
11
15
|
import { UpdateBotCallbackCommandInput, UpdateBotCallbackCommandOutput } from "../commands/UpdateBotCallbackCommand";
|
|
12
16
|
import { UpdateBotCommandInput, UpdateBotCommandOutput } from "../commands/UpdateBotCommand";
|
|
13
17
|
import { UploadPictureCommandInput, UploadPictureCommandOutput } from "../commands/UploadPictureCommand";
|
|
@@ -15,13 +19,13 @@ import { VerifyBotSecretKeyCommandInput, VerifyBotSecretKeyCommandOutput } from
|
|
|
15
19
|
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
|
|
16
20
|
import { SerdeContext as __SerdeContext } from "@smithy/types";
|
|
17
21
|
/**
|
|
18
|
-
*
|
|
22
|
+
* serializeAws_restJson1BatchGetUsersCommand
|
|
19
23
|
*/
|
|
20
|
-
export declare const
|
|
24
|
+
export declare const se_BatchGetUsersCommand: (input: BatchGetUsersCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
21
25
|
/**
|
|
22
|
-
*
|
|
26
|
+
* serializeAws_restJson1BatchGetUsersPbxLinkDataCommand
|
|
23
27
|
*/
|
|
24
|
-
export declare const
|
|
28
|
+
export declare const se_BatchGetUsersPbxLinkDataCommand: (input: BatchGetUsersPbxLinkDataCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
25
29
|
/**
|
|
26
30
|
* serializeAws_restJson1CreateBotCommand
|
|
27
31
|
*/
|
|
@@ -46,6 +50,14 @@ export declare const se_GetBotCommand: (input: GetBotCommandInput, context: __Se
|
|
|
46
50
|
* serializeAws_restJson1GetBotCallbackCommand
|
|
47
51
|
*/
|
|
48
52
|
export declare const se_GetBotCallbackCommand: (input: GetBotCallbackCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
53
|
+
/**
|
|
54
|
+
* serializeAws_restJson1GetUserCommand
|
|
55
|
+
*/
|
|
56
|
+
export declare const se_GetUserCommand: (input: GetUserCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
57
|
+
/**
|
|
58
|
+
* serializeAws_restJson1GetUserPbxLinkDataCommand
|
|
59
|
+
*/
|
|
60
|
+
export declare const se_GetUserPbxLinkDataCommand: (input: GetUserPbxLinkDataCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
49
61
|
/**
|
|
50
62
|
* serializeAws_restJson1ListBotApiKeysCommand
|
|
51
63
|
*/
|
|
@@ -54,6 +66,14 @@ export declare const se_ListBotApiKeysCommand: (input: ListBotApiKeysCommandInpu
|
|
|
54
66
|
* serializeAws_restJson1ListBotsCommand
|
|
55
67
|
*/
|
|
56
68
|
export declare const se_ListBotsCommand: (input: ListBotsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
69
|
+
/**
|
|
70
|
+
* serializeAws_restJson1QueryUserCommand
|
|
71
|
+
*/
|
|
72
|
+
export declare const se_QueryUserCommand: (input: QueryUserCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
73
|
+
/**
|
|
74
|
+
* serializeAws_restJson1QueryUsersCommand
|
|
75
|
+
*/
|
|
76
|
+
export declare const se_QueryUsersCommand: (input: QueryUsersCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
57
77
|
/**
|
|
58
78
|
* serializeAws_restJson1UpdateBotCommand
|
|
59
79
|
*/
|
|
@@ -71,13 +91,13 @@ export declare const se_UploadPictureCommand: (input: UploadPictureCommandInput,
|
|
|
71
91
|
*/
|
|
72
92
|
export declare const se_VerifyBotSecretKeyCommand: (input: VerifyBotSecretKeyCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
73
93
|
/**
|
|
74
|
-
*
|
|
94
|
+
* deserializeAws_restJson1BatchGetUsersCommand
|
|
75
95
|
*/
|
|
76
|
-
export declare const
|
|
96
|
+
export declare const de_BatchGetUsersCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<BatchGetUsersCommandOutput>;
|
|
77
97
|
/**
|
|
78
|
-
*
|
|
98
|
+
* deserializeAws_restJson1BatchGetUsersPbxLinkDataCommand
|
|
79
99
|
*/
|
|
80
|
-
export declare const
|
|
100
|
+
export declare const de_BatchGetUsersPbxLinkDataCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<BatchGetUsersPbxLinkDataCommandOutput>;
|
|
81
101
|
/**
|
|
82
102
|
* deserializeAws_restJson1CreateBotCommand
|
|
83
103
|
*/
|
|
@@ -102,6 +122,14 @@ export declare const de_GetBotCommand: (output: __HttpResponse, context: __Serde
|
|
|
102
122
|
* deserializeAws_restJson1GetBotCallbackCommand
|
|
103
123
|
*/
|
|
104
124
|
export declare const de_GetBotCallbackCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetBotCallbackCommandOutput>;
|
|
125
|
+
/**
|
|
126
|
+
* deserializeAws_restJson1GetUserCommand
|
|
127
|
+
*/
|
|
128
|
+
export declare const de_GetUserCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetUserCommandOutput>;
|
|
129
|
+
/**
|
|
130
|
+
* deserializeAws_restJson1GetUserPbxLinkDataCommand
|
|
131
|
+
*/
|
|
132
|
+
export declare const de_GetUserPbxLinkDataCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetUserPbxLinkDataCommandOutput>;
|
|
105
133
|
/**
|
|
106
134
|
* deserializeAws_restJson1ListBotApiKeysCommand
|
|
107
135
|
*/
|
|
@@ -110,6 +138,14 @@ export declare const de_ListBotApiKeysCommand: (output: __HttpResponse, context:
|
|
|
110
138
|
* deserializeAws_restJson1ListBotsCommand
|
|
111
139
|
*/
|
|
112
140
|
export declare const de_ListBotsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListBotsCommandOutput>;
|
|
141
|
+
/**
|
|
142
|
+
* deserializeAws_restJson1QueryUserCommand
|
|
143
|
+
*/
|
|
144
|
+
export declare const de_QueryUserCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<QueryUserCommandOutput>;
|
|
145
|
+
/**
|
|
146
|
+
* deserializeAws_restJson1QueryUsersCommand
|
|
147
|
+
*/
|
|
148
|
+
export declare const de_QueryUsersCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<QueryUsersCommandOutput>;
|
|
113
149
|
/**
|
|
114
150
|
* deserializeAws_restJson1UpdateBotCommand
|
|
115
151
|
*/
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wildix/xbees-users-client",
|
|
3
3
|
"description": "@wildix/xbees-users-client client",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.14",
|
|
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",
|
|
@@ -22,27 +22,27 @@
|
|
|
22
22
|
"@aws-sdk/middleware-user-agent": "3.587.0",
|
|
23
23
|
"@aws-sdk/types": "latest",
|
|
24
24
|
"@aws-sdk/util-user-agent-browser": "3.577.0",
|
|
25
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
26
|
-
"@smithy/config-resolver": "^3.0.
|
|
27
|
-
"@smithy/core": "^2.0
|
|
25
|
+
"@aws-sdk/util-user-agent-node": "3.587.0",
|
|
26
|
+
"@smithy/config-resolver": "^3.0.1",
|
|
27
|
+
"@smithy/core": "^2.2.0",
|
|
28
28
|
"@smithy/fetch-http-handler": "^3.0.1",
|
|
29
29
|
"@smithy/hash-node": "^3.0.0",
|
|
30
30
|
"@smithy/invalid-dependency": "^3.0.0",
|
|
31
31
|
"@smithy/middleware-content-length": "^3.0.0",
|
|
32
|
-
"@smithy/middleware-retry": "^3.0.
|
|
32
|
+
"@smithy/middleware-retry": "^3.0.3",
|
|
33
33
|
"@smithy/middleware-serde": "^3.0.0",
|
|
34
34
|
"@smithy/middleware-stack": "^3.0.0",
|
|
35
|
-
"@smithy/node-config-provider": "^3.
|
|
35
|
+
"@smithy/node-config-provider": "^3.1.0",
|
|
36
36
|
"@smithy/node-http-handler": "^3.0.0",
|
|
37
37
|
"@smithy/protocol-http": "^4.0.0",
|
|
38
|
-
"@smithy/smithy-client": "^3.
|
|
38
|
+
"@smithy/smithy-client": "^3.1.1",
|
|
39
39
|
"@smithy/types": "^3.0.0",
|
|
40
40
|
"@smithy/url-parser": "^3.0.0",
|
|
41
41
|
"@smithy/util-base64": "^3.0.0",
|
|
42
42
|
"@smithy/util-body-length-browser": "^3.0.0",
|
|
43
43
|
"@smithy/util-body-length-node": "^3.0.0",
|
|
44
|
-
"@smithy/util-defaults-mode-browser": "^3.0.
|
|
45
|
-
"@smithy/util-defaults-mode-node": "^3.0.
|
|
44
|
+
"@smithy/util-defaults-mode-browser": "^3.0.3",
|
|
45
|
+
"@smithy/util-defaults-mode-node": "^3.0.3",
|
|
46
46
|
"@smithy/util-retry": "^3.0.0",
|
|
47
47
|
"@smithy/util-utf8": "^3.0.0",
|
|
48
48
|
"@wildix/smithy-utils": "^1.0.2"
|