@wildix/xbees-users-client 1.0.14 → 1.0.16
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 +4 -10
- package/dist-cjs/UsersClient.js +7 -2
- package/dist-cjs/commands/{GetUserCommand.js → BatchGetUsersStreamLinkDataCommand.js} +7 -7
- package/dist-cjs/commands/{BatchGetUsersCommand.js → GetUserPbxLinkSuggestionCommand.js} +7 -7
- package/dist-cjs/commands/index.js +2 -5
- package/dist-cjs/models/models_0.js +1 -46
- package/dist-cjs/protocols/Aws_restJson1.js +18 -141
- package/dist-es/Users.js +4 -10
- package/dist-es/UsersClient.js +7 -2
- package/dist-es/commands/BatchGetUsersStreamLinkDataCommand.js +17 -0
- package/dist-es/commands/GetUserPbxLinkSuggestionCommand.js +17 -0
- package/dist-es/commands/index.js +2 -5
- package/dist-es/models/models_0.js +0 -43
- package/dist-es/protocols/Aws_restJson1.js +12 -129
- package/dist-types/Users.d.ts +13 -33
- package/dist-types/UsersClient.d.ts +7 -9
- package/dist-types/commands/BatchGetUsersPbxLinkDataCommand.d.ts +4 -53
- package/dist-types/commands/BatchGetUsersStreamLinkDataCommand.d.ts +83 -0
- package/dist-types/commands/GetUserPbxLinkSuggestionCommand.d.ts +67 -0
- package/dist-types/commands/index.d.ts +2 -5
- package/dist-types/models/models_0.d.ts +40 -418
- package/dist-types/protocols/Aws_restJson1.d.ts +14 -41
- 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/package.json +1 -1
- package/dist-cjs/commands/GetUserPbxLinkDataCommand.js +0 -21
- package/dist-cjs/commands/QueryUserCommand.js +0 -21
- package/dist-cjs/commands/QueryUsersCommand.js +0 -21
- package/dist-es/commands/BatchGetUsersCommand.js +0 -17
- package/dist-es/commands/GetUserCommand.js +0 -17
- package/dist-es/commands/GetUserPbxLinkDataCommand.js +0 -17
- package/dist-es/commands/QueryUserCommand.js +0 -17
- package/dist-es/commands/QueryUsersCommand.js +0 -17
- package/dist-types/commands/BatchGetUsersCommand.d.ts +0 -85
- package/dist-types/commands/GetUserCommand.d.ts +0 -83
- package/dist-types/commands/GetUserPbxLinkDataCommand.d.ts +0 -120
- package/dist-types/commands/QueryUserCommand.d.ts +0 -92
- package/dist-types/commands/QueryUsersCommand.d.ts +0 -92
|
@@ -23,13 +23,6 @@ export class ForbiddenException extends __BaseException {
|
|
|
23
23
|
Object.setPrototypeOf(this, ForbiddenException.prototype);
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
|
-
export const PbxLicenseType = {
|
|
27
|
-
BASIC: "basic",
|
|
28
|
-
BUSINESS: "business",
|
|
29
|
-
ESSENTIAL: "essential",
|
|
30
|
-
PREMIUM: "premium",
|
|
31
|
-
WIZYCONF: "wizyconf",
|
|
32
|
-
};
|
|
33
26
|
export class BotApiKeyNotFoundException extends __BaseException {
|
|
34
27
|
constructor(opts) {
|
|
35
28
|
super({
|
|
@@ -80,39 +73,3 @@ export class BotSecretKeyNotValidException extends __BaseException {
|
|
|
80
73
|
Object.setPrototypeOf(this, BotSecretKeyNotValidException.prototype);
|
|
81
74
|
}
|
|
82
75
|
}
|
|
83
|
-
export class UserNotFoundException extends __BaseException {
|
|
84
|
-
constructor(opts) {
|
|
85
|
-
super({
|
|
86
|
-
name: "UserNotFoundException",
|
|
87
|
-
$fault: "client",
|
|
88
|
-
...opts
|
|
89
|
-
});
|
|
90
|
-
this.name = "UserNotFoundException";
|
|
91
|
-
this.$fault = "client";
|
|
92
|
-
Object.setPrototypeOf(this, UserNotFoundException.prototype);
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
export var UserQuery;
|
|
96
|
-
(function (UserQuery) {
|
|
97
|
-
UserQuery.visit = (value, visitor) => {
|
|
98
|
-
if (value.id !== undefined)
|
|
99
|
-
return visitor.id(value.id);
|
|
100
|
-
if (value.email !== undefined)
|
|
101
|
-
return visitor.email(value.email);
|
|
102
|
-
if (value.phone !== undefined)
|
|
103
|
-
return visitor.phone(value.phone);
|
|
104
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
105
|
-
};
|
|
106
|
-
})(UserQuery || (UserQuery = {}));
|
|
107
|
-
export class UserQueryPredicateNotMetException extends __BaseException {
|
|
108
|
-
constructor(opts) {
|
|
109
|
-
super({
|
|
110
|
-
name: "UserQueryPredicateNotMetException",
|
|
111
|
-
$fault: "client",
|
|
112
|
-
...opts
|
|
113
|
-
});
|
|
114
|
-
this.name = "UserQueryPredicateNotMetException";
|
|
115
|
-
this.$fault = "client";
|
|
116
|
-
Object.setPrototypeOf(this, UserQueryPredicateNotMetException.prototype);
|
|
117
|
-
}
|
|
118
|
-
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { UsersServiceException as __BaseException } from "../models/UsersServiceException";
|
|
2
|
-
import { BotApiKeyNotFoundException, BotEndpoint, BotNotFoundException, BotSecretKeyNotValidException, ForbiddenException,
|
|
2
|
+
import { BotApiKeyNotFoundException, BotEndpoint, BotNotFoundException, BotSecretKeyNotValidException, ForbiddenException, ValidationException, } from "../models/models_0";
|
|
3
3
|
import { requestBuilder as rb } from "@smithy/core";
|
|
4
4
|
import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, expectUnion as __expectUnion, _json, collectBody, map, take, withBaseException, } from "@smithy/smithy-client";
|
|
5
|
-
export const
|
|
5
|
+
export const se_BatchGetUsersPbxLinkDataCommand = async (input, context) => {
|
|
6
6
|
const b = rb(input, context);
|
|
7
7
|
const headers = {
|
|
8
8
|
'content-type': 'application/json',
|
|
9
9
|
};
|
|
10
|
-
b.bp("/
|
|
10
|
+
b.bp("/v2/users/BatchGetUsersPbxLinkData");
|
|
11
11
|
let body;
|
|
12
12
|
body = JSON.stringify(take(input, {
|
|
13
13
|
'id': _ => _json(_),
|
|
@@ -17,12 +17,12 @@ export const se_BatchGetUsersCommand = async (input, context) => {
|
|
|
17
17
|
.b(body);
|
|
18
18
|
return b.build();
|
|
19
19
|
};
|
|
20
|
-
export const
|
|
20
|
+
export const se_BatchGetUsersStreamLinkDataCommand = async (input, context) => {
|
|
21
21
|
const b = rb(input, context);
|
|
22
22
|
const headers = {
|
|
23
23
|
'content-type': 'application/json',
|
|
24
24
|
};
|
|
25
|
-
b.bp("/
|
|
25
|
+
b.bp("/v1/users/BatchGetUsersStreamLinkData");
|
|
26
26
|
let body;
|
|
27
27
|
body = JSON.stringify(take(input, {
|
|
28
28
|
'id': _ => _json(_),
|
|
@@ -135,26 +135,15 @@ export const se_GetBotCallbackCommand = async (input, context) => {
|
|
|
135
135
|
.b(body);
|
|
136
136
|
return b.build();
|
|
137
137
|
};
|
|
138
|
-
export const
|
|
139
|
-
const b = rb(input, context);
|
|
140
|
-
const headers = {};
|
|
141
|
-
b.bp("/v1/users/cloud/{userId}");
|
|
142
|
-
b.p('userId', () => input.userId, '{userId}', false);
|
|
143
|
-
let body;
|
|
144
|
-
b.m("POST")
|
|
145
|
-
.h(headers)
|
|
146
|
-
.b(body);
|
|
147
|
-
return b.build();
|
|
148
|
-
};
|
|
149
|
-
export const se_GetUserPbxLinkDataCommand = async (input, context) => {
|
|
138
|
+
export const se_GetUserPbxLinkSuggestionCommand = async (input, context) => {
|
|
150
139
|
const b = rb(input, context);
|
|
151
140
|
const headers = {
|
|
152
141
|
'content-type': 'application/json',
|
|
153
142
|
};
|
|
154
|
-
b.bp("/
|
|
143
|
+
b.bp("/v1/users/GetUserPbxLinkSuggestion");
|
|
155
144
|
let body;
|
|
156
145
|
body = JSON.stringify(take(input, {
|
|
157
|
-
'
|
|
146
|
+
'email': [],
|
|
158
147
|
}));
|
|
159
148
|
b.m("POST")
|
|
160
149
|
.h(headers)
|
|
@@ -190,38 +179,6 @@ export const se_ListBotsCommand = async (input, context) => {
|
|
|
190
179
|
.b(body);
|
|
191
180
|
return b.build();
|
|
192
181
|
};
|
|
193
|
-
export const se_QueryUserCommand = async (input, context) => {
|
|
194
|
-
const b = rb(input, context);
|
|
195
|
-
const headers = {
|
|
196
|
-
'content-type': 'application/json',
|
|
197
|
-
};
|
|
198
|
-
b.bp("/v1/users/QueryUser");
|
|
199
|
-
let body;
|
|
200
|
-
body = JSON.stringify(take(input, {
|
|
201
|
-
'predicate': _ => _json(_),
|
|
202
|
-
'query': _ => _json(_),
|
|
203
|
-
}));
|
|
204
|
-
b.m("POST")
|
|
205
|
-
.h(headers)
|
|
206
|
-
.b(body);
|
|
207
|
-
return b.build();
|
|
208
|
-
};
|
|
209
|
-
export const se_QueryUsersCommand = async (input, context) => {
|
|
210
|
-
const b = rb(input, context);
|
|
211
|
-
const headers = {
|
|
212
|
-
'content-type': 'application/json',
|
|
213
|
-
};
|
|
214
|
-
b.bp("/v1/users/QueryUsers");
|
|
215
|
-
let body;
|
|
216
|
-
body = JSON.stringify(take(input, {
|
|
217
|
-
'predicate': _ => _json(_),
|
|
218
|
-
'queries': _ => _json(_),
|
|
219
|
-
}));
|
|
220
|
-
b.m("POST")
|
|
221
|
-
.h(headers)
|
|
222
|
-
.b(body);
|
|
223
|
-
return b.build();
|
|
224
|
-
};
|
|
225
182
|
export const se_UpdateBotCommand = async (input, context) => {
|
|
226
183
|
const b = rb(input, context);
|
|
227
184
|
const headers = {
|
|
@@ -294,7 +251,7 @@ export const se_VerifyBotSecretKeyCommand = async (input, context) => {
|
|
|
294
251
|
.b(body);
|
|
295
252
|
return b.build();
|
|
296
253
|
};
|
|
297
|
-
export const
|
|
254
|
+
export const de_BatchGetUsersPbxLinkDataCommand = async (output, context) => {
|
|
298
255
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
299
256
|
return de_CommandError(output, context);
|
|
300
257
|
}
|
|
@@ -308,7 +265,7 @@ export const de_BatchGetUsersCommand = async (output, context) => {
|
|
|
308
265
|
Object.assign(contents, doc);
|
|
309
266
|
return contents;
|
|
310
267
|
};
|
|
311
|
-
export const
|
|
268
|
+
export const de_BatchGetUsersStreamLinkDataCommand = async (output, context) => {
|
|
312
269
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
313
270
|
return de_CommandError(output, context);
|
|
314
271
|
}
|
|
@@ -399,7 +356,7 @@ export const de_GetBotCallbackCommand = async (output, context) => {
|
|
|
399
356
|
Object.assign(contents, doc);
|
|
400
357
|
return contents;
|
|
401
358
|
};
|
|
402
|
-
export const
|
|
359
|
+
export const de_GetUserPbxLinkSuggestionCommand = async (output, context) => {
|
|
403
360
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
404
361
|
return de_CommandError(output, context);
|
|
405
362
|
}
|
|
@@ -408,21 +365,7 @@ export const de_GetUserCommand = async (output, context) => {
|
|
|
408
365
|
});
|
|
409
366
|
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
410
367
|
const doc = take(data, {
|
|
411
|
-
'
|
|
412
|
-
});
|
|
413
|
-
Object.assign(contents, doc);
|
|
414
|
-
return contents;
|
|
415
|
-
};
|
|
416
|
-
export const de_GetUserPbxLinkDataCommand = async (output, context) => {
|
|
417
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
418
|
-
return de_CommandError(output, context);
|
|
419
|
-
}
|
|
420
|
-
const contents = map({
|
|
421
|
-
$metadata: deserializeMetadata(output),
|
|
422
|
-
});
|
|
423
|
-
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
424
|
-
const doc = take(data, {
|
|
425
|
-
'user': _json,
|
|
368
|
+
'suggestion': _json,
|
|
426
369
|
});
|
|
427
370
|
Object.assign(contents, doc);
|
|
428
371
|
return contents;
|
|
@@ -455,34 +398,6 @@ export const de_ListBotsCommand = async (output, context) => {
|
|
|
455
398
|
Object.assign(contents, doc);
|
|
456
399
|
return contents;
|
|
457
400
|
};
|
|
458
|
-
export const de_QueryUserCommand = async (output, context) => {
|
|
459
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
460
|
-
return de_CommandError(output, context);
|
|
461
|
-
}
|
|
462
|
-
const contents = map({
|
|
463
|
-
$metadata: deserializeMetadata(output),
|
|
464
|
-
});
|
|
465
|
-
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
466
|
-
const doc = take(data, {
|
|
467
|
-
'user': _json,
|
|
468
|
-
});
|
|
469
|
-
Object.assign(contents, doc);
|
|
470
|
-
return contents;
|
|
471
|
-
};
|
|
472
|
-
export const de_QueryUsersCommand = async (output, context) => {
|
|
473
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
474
|
-
return de_CommandError(output, context);
|
|
475
|
-
}
|
|
476
|
-
const contents = map({
|
|
477
|
-
$metadata: deserializeMetadata(output),
|
|
478
|
-
});
|
|
479
|
-
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
480
|
-
const doc = take(data, {
|
|
481
|
-
'users': _json,
|
|
482
|
-
});
|
|
483
|
-
Object.assign(contents, doc);
|
|
484
|
-
return contents;
|
|
485
|
-
};
|
|
486
401
|
export const de_UpdateBotCommand = async (output, context) => {
|
|
487
402
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
488
403
|
return de_CommandError(output, context);
|
|
@@ -560,12 +475,6 @@ const de_CommandError = async (output, context) => {
|
|
|
560
475
|
case "BotApiKeyNotFoundException":
|
|
561
476
|
case "wildix.xbees.users#BotApiKeyNotFoundException":
|
|
562
477
|
throw await de_BotApiKeyNotFoundExceptionRes(parsedOutput, context);
|
|
563
|
-
case "UserNotFoundException":
|
|
564
|
-
case "wildix.xbees.users#UserNotFoundException":
|
|
565
|
-
throw await de_UserNotFoundExceptionRes(parsedOutput, context);
|
|
566
|
-
case "UserQueryPredicateNotMetException":
|
|
567
|
-
case "wildix.xbees.users#UserQueryPredicateNotMetException":
|
|
568
|
-
throw await de_UserQueryPredicateNotMetExceptionRes(parsedOutput, context);
|
|
569
478
|
case "BotSecretKeyNotValidException":
|
|
570
479
|
case "wildix.xbees.users#BotSecretKeyNotValidException":
|
|
571
480
|
throw await de_BotSecretKeyNotValidExceptionRes(parsedOutput, context);
|
|
@@ -644,32 +553,6 @@ const de_BotSecretKeyNotValidExceptionRes = async (parsedOutput, context) => {
|
|
|
644
553
|
});
|
|
645
554
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
646
555
|
};
|
|
647
|
-
const de_UserNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
648
|
-
const contents = map({});
|
|
649
|
-
const data = parsedOutput.body;
|
|
650
|
-
const doc = take(data, {
|
|
651
|
-
'message': __expectString,
|
|
652
|
-
});
|
|
653
|
-
Object.assign(contents, doc);
|
|
654
|
-
const exception = new UserNotFoundException({
|
|
655
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
656
|
-
...contents
|
|
657
|
-
});
|
|
658
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
659
|
-
};
|
|
660
|
-
const de_UserQueryPredicateNotMetExceptionRes = async (parsedOutput, context) => {
|
|
661
|
-
const contents = map({});
|
|
662
|
-
const data = parsedOutput.body;
|
|
663
|
-
const doc = take(data, {
|
|
664
|
-
'message': __expectString,
|
|
665
|
-
});
|
|
666
|
-
Object.assign(contents, doc);
|
|
667
|
-
const exception = new UserQueryPredicateNotMetException({
|
|
668
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
669
|
-
...contents
|
|
670
|
-
});
|
|
671
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
672
|
-
};
|
|
673
556
|
const se_Document = (input, context) => {
|
|
674
557
|
return input;
|
|
675
558
|
};
|
package/dist-types/Users.d.ts
CHANGED
|
@@ -1,36 +1,33 @@
|
|
|
1
1
|
import { UsersClient } from "./UsersClient";
|
|
2
|
-
import { BatchGetUsersCommandInput, BatchGetUsersCommandOutput } from "./commands/BatchGetUsersCommand";
|
|
3
2
|
import { BatchGetUsersPbxLinkDataCommandInput, BatchGetUsersPbxLinkDataCommandOutput } from "./commands/BatchGetUsersPbxLinkDataCommand";
|
|
3
|
+
import { BatchGetUsersStreamLinkDataCommandInput, BatchGetUsersStreamLinkDataCommandOutput } from "./commands/BatchGetUsersStreamLinkDataCommand";
|
|
4
4
|
import { CreateBotApiKeyCommandInput, CreateBotApiKeyCommandOutput } from "./commands/CreateBotApiKeyCommand";
|
|
5
5
|
import { CreateBotCommandInput, CreateBotCommandOutput } from "./commands/CreateBotCommand";
|
|
6
6
|
import { DeleteBotApiKeyCommandInput, DeleteBotApiKeyCommandOutput } from "./commands/DeleteBotApiKeyCommand";
|
|
7
7
|
import { DeleteBotCommandInput, DeleteBotCommandOutput } from "./commands/DeleteBotCommand";
|
|
8
8
|
import { GetBotCallbackCommandInput, GetBotCallbackCommandOutput } from "./commands/GetBotCallbackCommand";
|
|
9
9
|
import { GetBotCommandInput, GetBotCommandOutput } from "./commands/GetBotCommand";
|
|
10
|
-
import {
|
|
11
|
-
import { GetUserPbxLinkDataCommandInput, GetUserPbxLinkDataCommandOutput } from "./commands/GetUserPbxLinkDataCommand";
|
|
10
|
+
import { GetUserPbxLinkSuggestionCommandInput, GetUserPbxLinkSuggestionCommandOutput } from "./commands/GetUserPbxLinkSuggestionCommand";
|
|
12
11
|
import { ListBotApiKeysCommandInput, ListBotApiKeysCommandOutput } from "./commands/ListBotApiKeysCommand";
|
|
13
12
|
import { ListBotsCommandInput, ListBotsCommandOutput } from "./commands/ListBotsCommand";
|
|
14
|
-
import { QueryUserCommandInput, QueryUserCommandOutput } from "./commands/QueryUserCommand";
|
|
15
|
-
import { QueryUsersCommandInput, QueryUsersCommandOutput } from "./commands/QueryUsersCommand";
|
|
16
13
|
import { UpdateBotCallbackCommandInput, UpdateBotCallbackCommandOutput } from "./commands/UpdateBotCallbackCommand";
|
|
17
14
|
import { UpdateBotCommandInput, UpdateBotCommandOutput } from "./commands/UpdateBotCommand";
|
|
18
15
|
import { UploadPictureCommandInput, UploadPictureCommandOutput } from "./commands/UploadPictureCommand";
|
|
19
16
|
import { VerifyBotSecretKeyCommandInput, VerifyBotSecretKeyCommandOutput } from "./commands/VerifyBotSecretKeyCommand";
|
|
20
17
|
import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
|
|
21
18
|
export interface Users {
|
|
22
|
-
/**
|
|
23
|
-
* @see {@link BatchGetUsersCommand}
|
|
24
|
-
*/
|
|
25
|
-
batchGetUsers(args: BatchGetUsersCommandInput, options?: __HttpHandlerOptions): Promise<BatchGetUsersCommandOutput>;
|
|
26
|
-
batchGetUsers(args: BatchGetUsersCommandInput, cb: (err: any, data?: BatchGetUsersCommandOutput) => void): void;
|
|
27
|
-
batchGetUsers(args: BatchGetUsersCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: BatchGetUsersCommandOutput) => void): void;
|
|
28
19
|
/**
|
|
29
20
|
* @see {@link BatchGetUsersPbxLinkDataCommand}
|
|
30
21
|
*/
|
|
31
22
|
batchGetUsersPbxLinkData(args: BatchGetUsersPbxLinkDataCommandInput, options?: __HttpHandlerOptions): Promise<BatchGetUsersPbxLinkDataCommandOutput>;
|
|
32
23
|
batchGetUsersPbxLinkData(args: BatchGetUsersPbxLinkDataCommandInput, cb: (err: any, data?: BatchGetUsersPbxLinkDataCommandOutput) => void): void;
|
|
33
24
|
batchGetUsersPbxLinkData(args: BatchGetUsersPbxLinkDataCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: BatchGetUsersPbxLinkDataCommandOutput) => void): void;
|
|
25
|
+
/**
|
|
26
|
+
* @see {@link BatchGetUsersStreamLinkDataCommand}
|
|
27
|
+
*/
|
|
28
|
+
batchGetUsersStreamLinkData(args: BatchGetUsersStreamLinkDataCommandInput, options?: __HttpHandlerOptions): Promise<BatchGetUsersStreamLinkDataCommandOutput>;
|
|
29
|
+
batchGetUsersStreamLinkData(args: BatchGetUsersStreamLinkDataCommandInput, cb: (err: any, data?: BatchGetUsersStreamLinkDataCommandOutput) => void): void;
|
|
30
|
+
batchGetUsersStreamLinkData(args: BatchGetUsersStreamLinkDataCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: BatchGetUsersStreamLinkDataCommandOutput) => void): void;
|
|
34
31
|
/**
|
|
35
32
|
* @see {@link CreateBotCommand}
|
|
36
33
|
*/
|
|
@@ -68,17 +65,12 @@ export interface Users {
|
|
|
68
65
|
getBotCallback(args: GetBotCallbackCommandInput, cb: (err: any, data?: GetBotCallbackCommandOutput) => void): void;
|
|
69
66
|
getBotCallback(args: GetBotCallbackCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetBotCallbackCommandOutput) => void): void;
|
|
70
67
|
/**
|
|
71
|
-
* @see {@link
|
|
72
|
-
*/
|
|
73
|
-
getUser(args: GetUserCommandInput, options?: __HttpHandlerOptions): Promise<GetUserCommandOutput>;
|
|
74
|
-
getUser(args: GetUserCommandInput, cb: (err: any, data?: GetUserCommandOutput) => void): void;
|
|
75
|
-
getUser(args: GetUserCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetUserCommandOutput) => void): void;
|
|
76
|
-
/**
|
|
77
|
-
* @see {@link GetUserPbxLinkDataCommand}
|
|
68
|
+
* @see {@link GetUserPbxLinkSuggestionCommand}
|
|
78
69
|
*/
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
70
|
+
getUserPbxLinkSuggestion(): Promise<GetUserPbxLinkSuggestionCommandOutput>;
|
|
71
|
+
getUserPbxLinkSuggestion(args: GetUserPbxLinkSuggestionCommandInput, options?: __HttpHandlerOptions): Promise<GetUserPbxLinkSuggestionCommandOutput>;
|
|
72
|
+
getUserPbxLinkSuggestion(args: GetUserPbxLinkSuggestionCommandInput, cb: (err: any, data?: GetUserPbxLinkSuggestionCommandOutput) => void): void;
|
|
73
|
+
getUserPbxLinkSuggestion(args: GetUserPbxLinkSuggestionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetUserPbxLinkSuggestionCommandOutput) => void): void;
|
|
82
74
|
/**
|
|
83
75
|
* @see {@link ListBotApiKeysCommand}
|
|
84
76
|
*/
|
|
@@ -92,18 +84,6 @@ export interface Users {
|
|
|
92
84
|
listBots(args: ListBotsCommandInput, options?: __HttpHandlerOptions): Promise<ListBotsCommandOutput>;
|
|
93
85
|
listBots(args: ListBotsCommandInput, cb: (err: any, data?: ListBotsCommandOutput) => void): void;
|
|
94
86
|
listBots(args: ListBotsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListBotsCommandOutput) => void): void;
|
|
95
|
-
/**
|
|
96
|
-
* @see {@link QueryUserCommand}
|
|
97
|
-
*/
|
|
98
|
-
queryUser(args: QueryUserCommandInput, options?: __HttpHandlerOptions): Promise<QueryUserCommandOutput>;
|
|
99
|
-
queryUser(args: QueryUserCommandInput, cb: (err: any, data?: QueryUserCommandOutput) => void): void;
|
|
100
|
-
queryUser(args: QueryUserCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: QueryUserCommandOutput) => void): void;
|
|
101
|
-
/**
|
|
102
|
-
* @see {@link QueryUsersCommand}
|
|
103
|
-
*/
|
|
104
|
-
queryUsers(args: QueryUsersCommandInput, options?: __HttpHandlerOptions): Promise<QueryUsersCommandOutput>;
|
|
105
|
-
queryUsers(args: QueryUsersCommandInput, cb: (err: any, data?: QueryUsersCommandOutput) => void): void;
|
|
106
|
-
queryUsers(args: QueryUsersCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: QueryUsersCommandOutput) => void): void;
|
|
107
87
|
/**
|
|
108
88
|
* @see {@link UpdateBotCommand}
|
|
109
89
|
*/
|
|
@@ -1,23 +1,21 @@
|
|
|
1
|
-
import { BatchGetUsersCommandInput, BatchGetUsersCommandOutput } from "./commands/BatchGetUsersCommand";
|
|
2
1
|
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 {
|
|
10
|
-
import { GetUserPbxLinkDataCommandInput, GetUserPbxLinkDataCommandOutput } from "./commands/GetUserPbxLinkDataCommand";
|
|
9
|
+
import { GetUserPbxLinkSuggestionCommandInput, GetUserPbxLinkSuggestionCommandOutput } from "./commands/GetUserPbxLinkSuggestionCommand";
|
|
11
10
|
import { ListBotApiKeysCommandInput, ListBotApiKeysCommandOutput } from "./commands/ListBotApiKeysCommand";
|
|
12
11
|
import { ListBotsCommandInput, ListBotsCommandOutput } from "./commands/ListBotsCommand";
|
|
13
|
-
import { QueryUserCommandInput, QueryUserCommandOutput } from "./commands/QueryUserCommand";
|
|
14
|
-
import { QueryUsersCommandInput, QueryUsersCommandOutput } from "./commands/QueryUsersCommand";
|
|
15
12
|
import { UpdateBotCallbackCommandInput, UpdateBotCallbackCommandOutput } from "./commands/UpdateBotCallbackCommand";
|
|
16
13
|
import { UpdateBotCommandInput, UpdateBotCommandOutput } from "./commands/UpdateBotCommand";
|
|
17
14
|
import { UploadPictureCommandInput, UploadPictureCommandOutput } from "./commands/UploadPictureCommand";
|
|
18
15
|
import { VerifyBotSecretKeyCommandInput, VerifyBotSecretKeyCommandOutput } from "./commands/VerifyBotSecretKeyCommand";
|
|
19
16
|
import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
|
|
20
17
|
import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
18
|
+
import { RetryInputConfig, RetryResolvedConfig } from "@smithy/middleware-retry";
|
|
21
19
|
import { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/protocol-http";
|
|
22
20
|
import { Client as __Client, DefaultsMode as __DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@smithy/smithy-client";
|
|
23
21
|
import { Provider, BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
|
|
@@ -26,11 +24,11 @@ export { __Client };
|
|
|
26
24
|
/**
|
|
27
25
|
* @public
|
|
28
26
|
*/
|
|
29
|
-
export type ServiceInputTypes =
|
|
27
|
+
export type ServiceInputTypes = BatchGetUsersPbxLinkDataCommandInput | BatchGetUsersStreamLinkDataCommandInput | CreateBotApiKeyCommandInput | CreateBotCommandInput | DeleteBotApiKeyCommandInput | DeleteBotCommandInput | GetBotCallbackCommandInput | GetBotCommandInput | GetUserPbxLinkSuggestionCommandInput | ListBotApiKeysCommandInput | ListBotsCommandInput | UpdateBotCallbackCommandInput | UpdateBotCommandInput | UploadPictureCommandInput | VerifyBotSecretKeyCommandInput;
|
|
30
28
|
/**
|
|
31
29
|
* @public
|
|
32
30
|
*/
|
|
33
|
-
export type ServiceOutputTypes =
|
|
31
|
+
export type ServiceOutputTypes = BatchGetUsersPbxLinkDataCommandOutput | BatchGetUsersStreamLinkDataCommandOutput | CreateBotApiKeyCommandOutput | CreateBotCommandOutput | DeleteBotApiKeyCommandOutput | DeleteBotCommandOutput | GetBotCallbackCommandOutput | GetBotCommandOutput | GetUserPbxLinkSuggestionCommandOutput | ListBotApiKeysCommandOutput | ListBotsCommandOutput | UpdateBotCallbackCommandOutput | UpdateBotCommandOutput | UploadPictureCommandOutput | VerifyBotSecretKeyCommandOutput;
|
|
34
32
|
/**
|
|
35
33
|
* @public
|
|
36
34
|
*/
|
|
@@ -121,7 +119,7 @@ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHand
|
|
|
121
119
|
/**
|
|
122
120
|
* @public
|
|
123
121
|
*/
|
|
124
|
-
export type UsersClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & UserAgentInputConfig;
|
|
122
|
+
export type UsersClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & UserAgentInputConfig & RetryInputConfig;
|
|
125
123
|
/**
|
|
126
124
|
* @public
|
|
127
125
|
*
|
|
@@ -134,7 +132,7 @@ export interface UsersClientConfig extends UsersClientConfigType {
|
|
|
134
132
|
/**
|
|
135
133
|
* @public
|
|
136
134
|
*/
|
|
137
|
-
export type UsersClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RuntimeExtensionsConfig & UserAgentResolvedConfig;
|
|
135
|
+
export type UsersClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RuntimeExtensionsConfig & UserAgentResolvedConfig & RetryResolvedConfig;
|
|
138
136
|
/**
|
|
139
137
|
* @public
|
|
140
138
|
*
|
|
@@ -36,68 +36,19 @@ declare const BatchGetUsersPbxLinkDataCommand_base: {
|
|
|
36
36
|
* // const { UsersClient, BatchGetUsersPbxLinkDataCommand } = require("@wildix/xbees-users-client"); // CommonJS import
|
|
37
37
|
* const client = new UsersClient(config);
|
|
38
38
|
* const input = { // BatchGetUsersPbxLinkDataInput
|
|
39
|
-
* id: [ //
|
|
39
|
+
* id: [ // BatchUsersIdList // required
|
|
40
40
|
* "STRING_VALUE",
|
|
41
41
|
* ],
|
|
42
42
|
* };
|
|
43
43
|
* const command = new BatchGetUsersPbxLinkDataCommand(input);
|
|
44
44
|
* const response = await client.send(command);
|
|
45
45
|
* // { // BatchGetUsersPbxLinkDataOutput
|
|
46
|
-
* // users: [ //
|
|
47
|
-
* // { //
|
|
46
|
+
* // users: [ // PbxLinkDataList // required
|
|
47
|
+
* // { // PbxLinkData
|
|
48
48
|
* // id: "STRING_VALUE", // required
|
|
49
49
|
* // company: "STRING_VALUE", // required
|
|
50
|
-
* //
|
|
51
|
-
* // domain: "STRING_VALUE", // required
|
|
50
|
+
* // domain: "STRING_VALUE",
|
|
52
51
|
* // email: "STRING_VALUE",
|
|
53
|
-
* // info: { // UserPersonalInfo
|
|
54
|
-
* // dn: "STRING_VALUE", // required
|
|
55
|
-
* // id: "STRING_VALUE", // required
|
|
56
|
-
* // name: "STRING_VALUE", // required
|
|
57
|
-
* // extension: "STRING_VALUE", // required
|
|
58
|
-
* // officePhone: "STRING_VALUE",
|
|
59
|
-
* // mobilePhone: "STRING_VALUE",
|
|
60
|
-
* // faxNumber: "STRING_VALUE",
|
|
61
|
-
* // email: "STRING_VALUE",
|
|
62
|
-
* // role: "STRING_VALUE", // required
|
|
63
|
-
* // language: "STRING_VALUE", // required
|
|
64
|
-
* // dialplan: "STRING_VALUE", // required
|
|
65
|
-
* // faxDialplan: "STRING_VALUE", // required
|
|
66
|
-
* // departament: "STRING_VALUE",
|
|
67
|
-
* // picture: "STRING_VALUE", // required
|
|
68
|
-
* // groupDn: "STRING_VALUE", // required
|
|
69
|
-
* // groupName: "STRING_VALUE", // required
|
|
70
|
-
* // jid: "STRING_VALUE", // required
|
|
71
|
-
* // licenseType: "basic" || "essential" || "business" || "premium" || "wizyconf", // required
|
|
72
|
-
* // login: "STRING_VALUE",
|
|
73
|
-
* // pbx: "STRING_VALUE",
|
|
74
|
-
* // pbxDn: "STRING_VALUE", // required
|
|
75
|
-
* // sourceId: "STRING_VALUE",
|
|
76
|
-
* // sipPassword: "STRING_VALUE",
|
|
77
|
-
* // },
|
|
78
|
-
* // pbx: { // UserPbxInfo
|
|
79
|
-
* // networkAddresses: [ // UserPbxInfoNetworkAddresses // required
|
|
80
|
-
* // "STRING_VALUE",
|
|
81
|
-
* // ],
|
|
82
|
-
* // ports: [ // UserPbxInfoPorts // required
|
|
83
|
-
* // "STRING_VALUE",
|
|
84
|
-
* // ],
|
|
85
|
-
* // externalLinePrefix: "STRING_VALUE",
|
|
86
|
-
* // version: "STRING_VALUE", // required
|
|
87
|
-
* // serial: "STRING_VALUE", // required
|
|
88
|
-
* // },
|
|
89
|
-
* // picture: "STRING_VALUE", // required
|
|
90
|
-
* // pictureDeleted: true || false,
|
|
91
|
-
* // port: "STRING_VALUE", // required
|
|
92
|
-
* // serial: "STRING_VALUE", // required
|
|
93
|
-
* // services: { // UserPbxServices
|
|
94
|
-
* // xcaracal: true || false,
|
|
95
|
-
* // wizyWebinar: true || false,
|
|
96
|
-
* // },
|
|
97
|
-
* // personalSettings: {},
|
|
98
|
-
* // dialplanSettings: {},
|
|
99
|
-
* // awsRegion: "STRING_VALUE",
|
|
100
|
-
* // updatedAt: "STRING_VALUE",
|
|
101
52
|
* // },
|
|
102
53
|
* // ],
|
|
103
54
|
* // };
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { ServiceInputTypes, ServiceOutputTypes, UsersClientResolvedConfig } from "../UsersClient";
|
|
2
|
+
import { BatchGetUsersStreamLinkDataInput, BatchGetUsersStreamLinkDataOutput } from "../models/models_0";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link BatchGetUsersStreamLinkDataCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface BatchGetUsersStreamLinkDataCommandInput extends BatchGetUsersStreamLinkDataInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link BatchGetUsersStreamLinkDataCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface BatchGetUsersStreamLinkDataCommandOutput extends BatchGetUsersStreamLinkDataOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const BatchGetUsersStreamLinkDataCommand_base: {
|
|
25
|
+
new (input: BatchGetUsersStreamLinkDataCommandInput): import("@smithy/smithy-client").CommandImpl<BatchGetUsersStreamLinkDataCommandInput, BatchGetUsersStreamLinkDataCommandOutput, UsersClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: BatchGetUsersStreamLinkDataCommandInput): import("@smithy/smithy-client").CommandImpl<BatchGetUsersStreamLinkDataCommandInput, BatchGetUsersStreamLinkDataCommandOutput, UsersClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* @public
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
34
|
+
* ```javascript
|
|
35
|
+
* import { UsersClient, BatchGetUsersStreamLinkDataCommand } from "@wildix/xbees-users-client"; // ES Modules import
|
|
36
|
+
* // const { UsersClient, BatchGetUsersStreamLinkDataCommand } = require("@wildix/xbees-users-client"); // CommonJS import
|
|
37
|
+
* const client = new UsersClient(config);
|
|
38
|
+
* const input = { // BatchGetUsersStreamLinkDataInput
|
|
39
|
+
* id: [ // BatchUsersIdList // required
|
|
40
|
+
* "STRING_VALUE",
|
|
41
|
+
* ],
|
|
42
|
+
* };
|
|
43
|
+
* const command = new BatchGetUsersStreamLinkDataCommand(input);
|
|
44
|
+
* const response = await client.send(command);
|
|
45
|
+
* // { // BatchGetUsersStreamLinkDataOutput
|
|
46
|
+
* // users: { // BatchGetUsersStreamLinkDataResponseMap // required
|
|
47
|
+
* // "<keys>": { // StreamLinkData
|
|
48
|
+
* // id: "STRING_VALUE", // required
|
|
49
|
+
* // email: "STRING_VALUE",
|
|
50
|
+
* // phone: "STRING_VALUE",
|
|
51
|
+
* // name: "STRING_VALUE",
|
|
52
|
+
* // picture: "STRING_VALUE",
|
|
53
|
+
* // company: "STRING_VALUE",
|
|
54
|
+
* // pbxExtension: "STRING_VALUE",
|
|
55
|
+
* // pbxSerial: "STRING_VALUE",
|
|
56
|
+
* // pbxDomain: "STRING_VALUE",
|
|
57
|
+
* // pbxPort: "STRING_VALUE",
|
|
58
|
+
* // pbxUserId: "STRING_VALUE",
|
|
59
|
+
* // pbxUpdatedAt: "STRING_VALUE",
|
|
60
|
+
* // locale: "STRING_VALUE",
|
|
61
|
+
* // timeZone: "STRING_VALUE",
|
|
62
|
+
* // },
|
|
63
|
+
* // },
|
|
64
|
+
* // };
|
|
65
|
+
*
|
|
66
|
+
* ```
|
|
67
|
+
*
|
|
68
|
+
* @param BatchGetUsersStreamLinkDataCommandInput - {@link BatchGetUsersStreamLinkDataCommandInput}
|
|
69
|
+
* @returns {@link BatchGetUsersStreamLinkDataCommandOutput}
|
|
70
|
+
* @see {@link BatchGetUsersStreamLinkDataCommandInput} for command's `input` shape.
|
|
71
|
+
* @see {@link BatchGetUsersStreamLinkDataCommandOutput} for command's `response` shape.
|
|
72
|
+
* @see {@link UsersClientResolvedConfig | config} for UsersClient's `config` shape.
|
|
73
|
+
*
|
|
74
|
+
* @throws {@link ForbiddenException} (client fault)
|
|
75
|
+
*
|
|
76
|
+
* @throws {@link ValidationException} (client fault)
|
|
77
|
+
*
|
|
78
|
+
* @throws {@link UsersServiceException}
|
|
79
|
+
* <p>Base exception class for all service exceptions from Users service.</p>
|
|
80
|
+
*
|
|
81
|
+
*/
|
|
82
|
+
export declare class BatchGetUsersStreamLinkDataCommand extends BatchGetUsersStreamLinkDataCommand_base {
|
|
83
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { ServiceInputTypes, ServiceOutputTypes, UsersClientResolvedConfig } from "../UsersClient";
|
|
2
|
+
import { GetUserPbxLinkSuggestionInput, GetUserPbxLinkSuggestionOutput } from "../models/models_0";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link GetUserPbxLinkSuggestionCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface GetUserPbxLinkSuggestionCommandInput extends GetUserPbxLinkSuggestionInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link GetUserPbxLinkSuggestionCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface GetUserPbxLinkSuggestionCommandOutput extends GetUserPbxLinkSuggestionOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const GetUserPbxLinkSuggestionCommand_base: {
|
|
25
|
+
new (input: GetUserPbxLinkSuggestionCommandInput): import("@smithy/smithy-client").CommandImpl<GetUserPbxLinkSuggestionCommandInput, GetUserPbxLinkSuggestionCommandOutput, UsersClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (...[input]: [] | [GetUserPbxLinkSuggestionCommandInput]): import("@smithy/smithy-client").CommandImpl<GetUserPbxLinkSuggestionCommandInput, GetUserPbxLinkSuggestionCommandOutput, UsersClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* @public
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
34
|
+
* ```javascript
|
|
35
|
+
* import { UsersClient, GetUserPbxLinkSuggestionCommand } from "@wildix/xbees-users-client"; // ES Modules import
|
|
36
|
+
* // const { UsersClient, GetUserPbxLinkSuggestionCommand } = require("@wildix/xbees-users-client"); // CommonJS import
|
|
37
|
+
* const client = new UsersClient(config);
|
|
38
|
+
* const input = { // GetUserPbxLinkSuggestionInput
|
|
39
|
+
* email: "STRING_VALUE",
|
|
40
|
+
* };
|
|
41
|
+
* const command = new GetUserPbxLinkSuggestionCommand(input);
|
|
42
|
+
* const response = await client.send(command);
|
|
43
|
+
* // { // GetUserPbxLinkSuggestionOutput
|
|
44
|
+
* // suggestion: { // UserPbxLinkSuggestion
|
|
45
|
+
* // domain: "STRING_VALUE", // required
|
|
46
|
+
* // port: "STRING_VALUE", // required
|
|
47
|
+
* // },
|
|
48
|
+
* // };
|
|
49
|
+
*
|
|
50
|
+
* ```
|
|
51
|
+
*
|
|
52
|
+
* @param GetUserPbxLinkSuggestionCommandInput - {@link GetUserPbxLinkSuggestionCommandInput}
|
|
53
|
+
* @returns {@link GetUserPbxLinkSuggestionCommandOutput}
|
|
54
|
+
* @see {@link GetUserPbxLinkSuggestionCommandInput} for command's `input` shape.
|
|
55
|
+
* @see {@link GetUserPbxLinkSuggestionCommandOutput} for command's `response` shape.
|
|
56
|
+
* @see {@link UsersClientResolvedConfig | config} for UsersClient's `config` shape.
|
|
57
|
+
*
|
|
58
|
+
* @throws {@link ForbiddenException} (client fault)
|
|
59
|
+
*
|
|
60
|
+
* @throws {@link ValidationException} (client fault)
|
|
61
|
+
*
|
|
62
|
+
* @throws {@link UsersServiceException}
|
|
63
|
+
* <p>Base exception class for all service exceptions from Users service.</p>
|
|
64
|
+
*
|
|
65
|
+
*/
|
|
66
|
+
export declare class GetUserPbxLinkSuggestionCommand extends GetUserPbxLinkSuggestionCommand_base {
|
|
67
|
+
}
|