@wildix/xbees-users-client 1.1.0 → 1.2.2
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 +20 -0
- package/dist-cjs/commands/AddIdentityCommand.js +21 -0
- package/dist-cjs/commands/GetAccountCommand.js +21 -0
- package/dist-cjs/commands/InviteCommand.js +21 -0
- package/dist-cjs/commands/ListAccountIdentitiesCommand.js +21 -0
- package/dist-cjs/commands/ListWorkspacesCommand.js +21 -0
- package/dist-cjs/commands/RemoveIdentityCommand.js +21 -0
- package/dist-cjs/commands/UnbindWorkspaceCommand.js +21 -0
- package/dist-cjs/commands/UpdateAccountCommand.js +21 -0
- package/dist-cjs/commands/UpdateWorkspaceCommand.js +21 -0
- package/dist-cjs/commands/VerifyAddIdentityCommand.js +21 -0
- package/dist-cjs/commands/index.js +10 -0
- package/dist-cjs/models/models_0.js +84 -1
- package/dist-cjs/protocols/Aws_restJson1.js +398 -2
- package/dist-es/Users.js +20 -0
- package/dist-es/commands/AddIdentityCommand.js +17 -0
- package/dist-es/commands/GetAccountCommand.js +17 -0
- package/dist-es/commands/InviteCommand.js +17 -0
- package/dist-es/commands/ListAccountIdentitiesCommand.js +17 -0
- package/dist-es/commands/ListWorkspacesCommand.js +17 -0
- package/dist-es/commands/RemoveIdentityCommand.js +17 -0
- package/dist-es/commands/UnbindWorkspaceCommand.js +17 -0
- package/dist-es/commands/UpdateAccountCommand.js +17 -0
- package/dist-es/commands/UpdateWorkspaceCommand.js +17 -0
- package/dist-es/commands/VerifyAddIdentityCommand.js +17 -0
- package/dist-es/commands/index.js +10 -0
- package/dist-es/models/models_0.js +77 -0
- package/dist-es/protocols/Aws_restJson1.js +377 -1
- package/dist-types/Users.d.ts +70 -0
- package/dist-types/UsersClient.d.ts +12 -2
- package/dist-types/commands/AddIdentityCommand.d.ts +93 -0
- package/dist-types/commands/BatchGetUsersCommand.d.ts +12 -0
- package/dist-types/commands/BatchGetUsersEmailNotificationsSettingsCommand.d.ts +12 -0
- package/dist-types/commands/BatchGetUsersPbxLinkDataCommand.d.ts +12 -0
- package/dist-types/commands/BatchGetUsersPbxLinkDataV1Command.d.ts +12 -0
- package/dist-types/commands/ChangeUserEmailCommand.d.ts +12 -0
- package/dist-types/commands/CreateBotApiKeyCommand.d.ts +12 -0
- package/dist-types/commands/CreateBotCommand.d.ts +12 -0
- package/dist-types/commands/CreateSystemBotCommand.d.ts +12 -0
- package/dist-types/commands/DeleteBotApiKeyCommand.d.ts +12 -0
- package/dist-types/commands/DeleteBotCommand.d.ts +12 -0
- package/dist-types/commands/GetAccountCommand.d.ts +182 -0
- package/dist-types/commands/GetAppVersionCommand.d.ts +12 -0
- package/dist-types/commands/GetBotCallbackCommand.d.ts +12 -0
- package/dist-types/commands/GetBotCommand.d.ts +12 -0
- package/dist-types/commands/GetUserCommand.d.ts +12 -0
- package/dist-types/commands/GetUserEmailNotificationsSettingsCommand.d.ts +12 -0
- package/dist-types/commands/GetUserPbxLinkDataCommand.d.ts +12 -0
- package/dist-types/commands/GetUserPbxLinkSuggestionCommand.d.ts +12 -0
- package/dist-types/commands/GetUserPbxLinkSuggestionV1Command.d.ts +12 -0
- package/dist-types/commands/IntelligenceSearchCommand.d.ts +12 -0
- package/dist-types/commands/InviteCommand.d.ts +116 -0
- package/dist-types/commands/ListAccountIdentitiesCommand.d.ts +94 -0
- package/dist-types/commands/ListBotApiKeysCommand.d.ts +12 -0
- package/dist-types/commands/ListBotsCommand.d.ts +12 -0
- package/dist-types/commands/ListWorkspacesCommand.d.ts +170 -0
- package/dist-types/commands/PartialUpdateUserEmailNotificationsSettingsCommand.d.ts +12 -0
- package/dist-types/commands/QueryColleaguesCommand.d.ts +12 -0
- package/dist-types/commands/QueryUserCommand.d.ts +12 -0
- package/dist-types/commands/QueryUsersCommand.d.ts +12 -0
- package/dist-types/commands/RemoveIdentityCommand.d.ts +87 -0
- package/dist-types/commands/ToggleTranscriptionEmailNotificationsSubscriptionCommand.d.ts +12 -0
- package/dist-types/commands/ToggleUnreadEmailNotificationsSubscriptionCommand.d.ts +12 -0
- package/dist-types/commands/UnbindWorkspaceCommand.d.ts +87 -0
- package/dist-types/commands/UpdateAccountCommand.d.ts +94 -0
- package/dist-types/commands/UpdateBotCallbackCommand.d.ts +12 -0
- package/dist-types/commands/UpdateBotCommand.d.ts +12 -0
- package/dist-types/commands/UpdateUserEmailNotificationsSettingsCommand.d.ts +12 -0
- package/dist-types/commands/UpdateWorkspaceCommand.d.ts +171 -0
- package/dist-types/commands/UploadPictureCommand.d.ts +12 -0
- package/dist-types/commands/UploadPictureV1Command.d.ts +12 -0
- package/dist-types/commands/VerifyAddIdentityCommand.d.ts +95 -0
- package/dist-types/commands/VerifyBotSecretKeyCommand.d.ts +12 -0
- package/dist-types/commands/VerifyBotSecretKeyV1Command.d.ts +12 -0
- package/dist-types/commands/index.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +420 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +90 -0
- package/package.json +2 -2
|
@@ -1,8 +1,24 @@
|
|
|
1
1
|
import { UsersServiceException as __BaseException } from "../models/UsersServiceException";
|
|
2
|
-
import { BotApiKeyNotFoundException, BotEndpoint, BotLlmFunctionIntegration, BotNotFoundException, BotSecretKeyNotValidException, ForbiddenException, UserCompanyNotValidException, UserNotFoundException, UserQueryPredicateNotMetException, ValidationException, } from "../models/models_0";
|
|
2
|
+
import { AccountNotFoundException, BotApiKeyNotFoundException, BotEndpoint, BotLlmFunctionIntegration, BotNotFoundException, BotSecretKeyNotValidException, CannotRemovePrimaryIdentityException, CannotUnbindDefaultWorkspaceException, ForbiddenException, IdentityAlreadyLinkedException, IdentityNotFoundException, UserCompanyNotValidException, UserNotFoundException, UserQueryPredicateNotMetException, ValidationException, WorkspaceNotFoundException, } from "../models/models_0";
|
|
3
3
|
import { awsExpectUnion as __expectUnion, loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody, } from "@aws-sdk/core";
|
|
4
4
|
import { requestBuilder as rb } from "@smithy/core";
|
|
5
5
|
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, _json, collectBody, map, take, withBaseException, } from "@smithy/smithy-client";
|
|
6
|
+
export const se_AddIdentityCommand = async (input, context) => {
|
|
7
|
+
const b = rb(input, context);
|
|
8
|
+
const headers = {
|
|
9
|
+
'content-type': 'application/json',
|
|
10
|
+
};
|
|
11
|
+
b.bp("/v2/accounts/{accountId}/identities");
|
|
12
|
+
b.p('accountId', () => input.accountId, '{accountId}', false);
|
|
13
|
+
let body;
|
|
14
|
+
body = JSON.stringify(take(input, {
|
|
15
|
+
'identity': [],
|
|
16
|
+
}));
|
|
17
|
+
b.m("POST")
|
|
18
|
+
.h(headers)
|
|
19
|
+
.b(body);
|
|
20
|
+
return b.build();
|
|
21
|
+
};
|
|
6
22
|
export const se_BatchGetUsersCommand = async (input, context) => {
|
|
7
23
|
const b = rb(input, context);
|
|
8
24
|
const headers = {
|
|
@@ -174,6 +190,17 @@ export const se_DeleteBotApiKeyCommand = async (input, context) => {
|
|
|
174
190
|
.b(body);
|
|
175
191
|
return b.build();
|
|
176
192
|
};
|
|
193
|
+
export const se_GetAccountCommand = async (input, context) => {
|
|
194
|
+
const b = rb(input, context);
|
|
195
|
+
const headers = {};
|
|
196
|
+
b.bp("/v2/accounts/{accountId}");
|
|
197
|
+
b.p('accountId', () => input.accountId, '{accountId}', false);
|
|
198
|
+
let body;
|
|
199
|
+
b.m("GET")
|
|
200
|
+
.h(headers)
|
|
201
|
+
.b(body);
|
|
202
|
+
return b.build();
|
|
203
|
+
};
|
|
177
204
|
export const se_GetAppVersionCommand = async (input, context) => {
|
|
178
205
|
const b = rb(input, context);
|
|
179
206
|
const headers = {};
|
|
@@ -295,6 +322,36 @@ export const se_IntelligenceSearchCommand = async (input, context) => {
|
|
|
295
322
|
.b(body);
|
|
296
323
|
return b.build();
|
|
297
324
|
};
|
|
325
|
+
export const se_InviteCommand = async (input, context) => {
|
|
326
|
+
const b = rb(input, context);
|
|
327
|
+
const headers = {
|
|
328
|
+
'content-type': 'application/json',
|
|
329
|
+
};
|
|
330
|
+
b.bp("/v2/users/invite");
|
|
331
|
+
const query = map({
|
|
332
|
+
[_c]: [, input[_cI]],
|
|
333
|
+
});
|
|
334
|
+
let body;
|
|
335
|
+
body = JSON.stringify(take(input, {
|
|
336
|
+
'invitees': _ => _json(_),
|
|
337
|
+
}));
|
|
338
|
+
b.m("POST")
|
|
339
|
+
.h(headers)
|
|
340
|
+
.q(query)
|
|
341
|
+
.b(body);
|
|
342
|
+
return b.build();
|
|
343
|
+
};
|
|
344
|
+
export const se_ListAccountIdentitiesCommand = async (input, context) => {
|
|
345
|
+
const b = rb(input, context);
|
|
346
|
+
const headers = {};
|
|
347
|
+
b.bp("/v2/accounts/{accountId}/identities");
|
|
348
|
+
b.p('accountId', () => input.accountId, '{accountId}', false);
|
|
349
|
+
let body;
|
|
350
|
+
b.m("GET")
|
|
351
|
+
.h(headers)
|
|
352
|
+
.b(body);
|
|
353
|
+
return b.build();
|
|
354
|
+
};
|
|
298
355
|
export const se_ListBotApiKeysCommand = async (input, context) => {
|
|
299
356
|
const b = rb(input, context);
|
|
300
357
|
const headers = {};
|
|
@@ -324,6 +381,17 @@ export const se_ListBotsCommand = async (input, context) => {
|
|
|
324
381
|
.b(body);
|
|
325
382
|
return b.build();
|
|
326
383
|
};
|
|
384
|
+
export const se_ListWorkspacesCommand = async (input, context) => {
|
|
385
|
+
const b = rb(input, context);
|
|
386
|
+
const headers = {};
|
|
387
|
+
b.bp("/v2/accounts/{accountId}/workspaces");
|
|
388
|
+
b.p('accountId', () => input.accountId, '{accountId}', false);
|
|
389
|
+
let body;
|
|
390
|
+
b.m("GET")
|
|
391
|
+
.h(headers)
|
|
392
|
+
.b(body);
|
|
393
|
+
return b.build();
|
|
394
|
+
};
|
|
327
395
|
export const se_PartialUpdateUserEmailNotificationsSettingsCommand = async (input, context) => {
|
|
328
396
|
const b = rb(input, context);
|
|
329
397
|
const headers = {
|
|
@@ -393,6 +461,18 @@ export const se_QueryUsersCommand = async (input, context) => {
|
|
|
393
461
|
.b(body);
|
|
394
462
|
return b.build();
|
|
395
463
|
};
|
|
464
|
+
export const se_RemoveIdentityCommand = async (input, context) => {
|
|
465
|
+
const b = rb(input, context);
|
|
466
|
+
const headers = {};
|
|
467
|
+
b.bp("/v2/accounts/{accountId}/identities/{identity}");
|
|
468
|
+
b.p('accountId', () => input.accountId, '{accountId}', false);
|
|
469
|
+
b.p('identity', () => input.identity, '{identity}', false);
|
|
470
|
+
let body;
|
|
471
|
+
b.m("DELETE")
|
|
472
|
+
.h(headers)
|
|
473
|
+
.b(body);
|
|
474
|
+
return b.build();
|
|
475
|
+
};
|
|
396
476
|
export const se_ToggleTranscriptionEmailNotificationsSubscriptionCommand = async (input, context) => {
|
|
397
477
|
const b = rb(input, context);
|
|
398
478
|
const headers = {
|
|
@@ -425,6 +505,35 @@ export const se_ToggleUnreadEmailNotificationsSubscriptionCommand = async (input
|
|
|
425
505
|
.b(body);
|
|
426
506
|
return b.build();
|
|
427
507
|
};
|
|
508
|
+
export const se_UnbindWorkspaceCommand = async (input, context) => {
|
|
509
|
+
const b = rb(input, context);
|
|
510
|
+
const headers = {};
|
|
511
|
+
b.bp("/v2/accounts/{accountId}/workspaces/{workspaceId}");
|
|
512
|
+
b.p('workspaceId', () => input.workspaceId, '{workspaceId}', false);
|
|
513
|
+
b.p('accountId', () => input.accountId, '{accountId}', false);
|
|
514
|
+
let body;
|
|
515
|
+
b.m("DELETE")
|
|
516
|
+
.h(headers)
|
|
517
|
+
.b(body);
|
|
518
|
+
return b.build();
|
|
519
|
+
};
|
|
520
|
+
export const se_UpdateAccountCommand = async (input, context) => {
|
|
521
|
+
const b = rb(input, context);
|
|
522
|
+
const headers = {
|
|
523
|
+
'content-type': 'application/json',
|
|
524
|
+
};
|
|
525
|
+
b.bp("/v2/accounts/{accountId}");
|
|
526
|
+
b.p('accountId', () => input.accountId, '{accountId}', false);
|
|
527
|
+
let body;
|
|
528
|
+
body = JSON.stringify(take(input, {
|
|
529
|
+
'defaultWorkspace': [],
|
|
530
|
+
'primaryIdentity': [],
|
|
531
|
+
}));
|
|
532
|
+
b.m("PUT")
|
|
533
|
+
.h(headers)
|
|
534
|
+
.b(body);
|
|
535
|
+
return b.build();
|
|
536
|
+
};
|
|
428
537
|
export const se_UpdateBotCommand = async (input, context) => {
|
|
429
538
|
const b = rb(input, context);
|
|
430
539
|
const headers = {
|
|
@@ -486,6 +595,24 @@ export const se_UpdateUserEmailNotificationsSettingsCommand = async (input, cont
|
|
|
486
595
|
.b(body);
|
|
487
596
|
return b.build();
|
|
488
597
|
};
|
|
598
|
+
export const se_UpdateWorkspaceCommand = async (input, context) => {
|
|
599
|
+
const b = rb(input, context);
|
|
600
|
+
const headers = {
|
|
601
|
+
'content-type': 'application/json',
|
|
602
|
+
};
|
|
603
|
+
b.bp("/v2/accounts/{accountId}/workspaces/{workspaceId}");
|
|
604
|
+
b.p('accountId', () => input.accountId, '{accountId}', false);
|
|
605
|
+
b.p('workspaceId', () => input.workspaceId, '{workspaceId}', false);
|
|
606
|
+
let body;
|
|
607
|
+
body = JSON.stringify(take(input, {
|
|
608
|
+
'active': [],
|
|
609
|
+
'type': [],
|
|
610
|
+
}));
|
|
611
|
+
b.m("PUT")
|
|
612
|
+
.h(headers)
|
|
613
|
+
.b(body);
|
|
614
|
+
return b.build();
|
|
615
|
+
};
|
|
489
616
|
export const se_UploadPictureCommand = async (input, context) => {
|
|
490
617
|
const b = rb(input, context);
|
|
491
618
|
const headers = {
|
|
@@ -516,6 +643,24 @@ export const se_UploadPictureV1Command = async (input, context) => {
|
|
|
516
643
|
.b(body);
|
|
517
644
|
return b.build();
|
|
518
645
|
};
|
|
646
|
+
export const se_VerifyAddIdentityCommand = async (input, context) => {
|
|
647
|
+
const b = rb(input, context);
|
|
648
|
+
const headers = {
|
|
649
|
+
'content-type': 'application/json',
|
|
650
|
+
};
|
|
651
|
+
b.bp("/v2/accounts/{accountId}/identities/verify");
|
|
652
|
+
b.p('accountId', () => input.accountId, '{accountId}', false);
|
|
653
|
+
let body;
|
|
654
|
+
body = JSON.stringify(take(input, {
|
|
655
|
+
'identity': [],
|
|
656
|
+
'otp': [],
|
|
657
|
+
'primaryOtp': [],
|
|
658
|
+
}));
|
|
659
|
+
b.m("POST")
|
|
660
|
+
.h(headers)
|
|
661
|
+
.b(body);
|
|
662
|
+
return b.build();
|
|
663
|
+
};
|
|
519
664
|
export const se_VerifyBotSecretKeyCommand = async (input, context) => {
|
|
520
665
|
const b = rb(input, context);
|
|
521
666
|
const headers = {
|
|
@@ -546,6 +691,20 @@ export const se_VerifyBotSecretKeyV1Command = async (input, context) => {
|
|
|
546
691
|
.b(body);
|
|
547
692
|
return b.build();
|
|
548
693
|
};
|
|
694
|
+
export const de_AddIdentityCommand = async (output, context) => {
|
|
695
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
696
|
+
return de_CommandError(output, context);
|
|
697
|
+
}
|
|
698
|
+
const contents = map({
|
|
699
|
+
$metadata: deserializeMetadata(output),
|
|
700
|
+
});
|
|
701
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
702
|
+
const doc = take(data, {
|
|
703
|
+
'identity': _json,
|
|
704
|
+
});
|
|
705
|
+
Object.assign(contents, doc);
|
|
706
|
+
return contents;
|
|
707
|
+
};
|
|
549
708
|
export const de_BatchGetUsersCommand = async (output, context) => {
|
|
550
709
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
551
710
|
return de_CommandError(output, context);
|
|
@@ -679,6 +838,22 @@ export const de_DeleteBotApiKeyCommand = async (output, context) => {
|
|
|
679
838
|
await collectBody(output.body, context);
|
|
680
839
|
return contents;
|
|
681
840
|
};
|
|
841
|
+
export const de_GetAccountCommand = async (output, context) => {
|
|
842
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
843
|
+
return de_CommandError(output, context);
|
|
844
|
+
}
|
|
845
|
+
const contents = map({
|
|
846
|
+
$metadata: deserializeMetadata(output),
|
|
847
|
+
});
|
|
848
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
849
|
+
const doc = take(data, {
|
|
850
|
+
'account': _json,
|
|
851
|
+
'identities': _json,
|
|
852
|
+
'workspaces': _json,
|
|
853
|
+
});
|
|
854
|
+
Object.assign(contents, doc);
|
|
855
|
+
return contents;
|
|
856
|
+
};
|
|
682
857
|
export const de_GetAppVersionCommand = async (output, context) => {
|
|
683
858
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
684
859
|
return de_CommandError(output, context);
|
|
@@ -805,6 +980,34 @@ export const de_IntelligenceSearchCommand = async (output, context) => {
|
|
|
805
980
|
Object.assign(contents, doc);
|
|
806
981
|
return contents;
|
|
807
982
|
};
|
|
983
|
+
export const de_InviteCommand = async (output, context) => {
|
|
984
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
985
|
+
return de_CommandError(output, context);
|
|
986
|
+
}
|
|
987
|
+
const contents = map({
|
|
988
|
+
$metadata: deserializeMetadata(output),
|
|
989
|
+
});
|
|
990
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
991
|
+
const doc = take(data, {
|
|
992
|
+
'users': _json,
|
|
993
|
+
});
|
|
994
|
+
Object.assign(contents, doc);
|
|
995
|
+
return contents;
|
|
996
|
+
};
|
|
997
|
+
export const de_ListAccountIdentitiesCommand = async (output, context) => {
|
|
998
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
999
|
+
return de_CommandError(output, context);
|
|
1000
|
+
}
|
|
1001
|
+
const contents = map({
|
|
1002
|
+
$metadata: deserializeMetadata(output),
|
|
1003
|
+
});
|
|
1004
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1005
|
+
const doc = take(data, {
|
|
1006
|
+
'identities': _json,
|
|
1007
|
+
});
|
|
1008
|
+
Object.assign(contents, doc);
|
|
1009
|
+
return contents;
|
|
1010
|
+
};
|
|
808
1011
|
export const de_ListBotApiKeysCommand = async (output, context) => {
|
|
809
1012
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
810
1013
|
return de_CommandError(output, context);
|
|
@@ -833,6 +1036,20 @@ export const de_ListBotsCommand = async (output, context) => {
|
|
|
833
1036
|
Object.assign(contents, doc);
|
|
834
1037
|
return contents;
|
|
835
1038
|
};
|
|
1039
|
+
export const de_ListWorkspacesCommand = async (output, context) => {
|
|
1040
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1041
|
+
return de_CommandError(output, context);
|
|
1042
|
+
}
|
|
1043
|
+
const contents = map({
|
|
1044
|
+
$metadata: deserializeMetadata(output),
|
|
1045
|
+
});
|
|
1046
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1047
|
+
const doc = take(data, {
|
|
1048
|
+
'workspaces': _json,
|
|
1049
|
+
});
|
|
1050
|
+
Object.assign(contents, doc);
|
|
1051
|
+
return contents;
|
|
1052
|
+
};
|
|
836
1053
|
export const de_PartialUpdateUserEmailNotificationsSettingsCommand = async (output, context) => {
|
|
837
1054
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
838
1055
|
return de_CommandError(output, context);
|
|
@@ -889,6 +1106,16 @@ export const de_QueryUsersCommand = async (output, context) => {
|
|
|
889
1106
|
Object.assign(contents, doc);
|
|
890
1107
|
return contents;
|
|
891
1108
|
};
|
|
1109
|
+
export const de_RemoveIdentityCommand = async (output, context) => {
|
|
1110
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1111
|
+
return de_CommandError(output, context);
|
|
1112
|
+
}
|
|
1113
|
+
const contents = map({
|
|
1114
|
+
$metadata: deserializeMetadata(output),
|
|
1115
|
+
});
|
|
1116
|
+
await collectBody(output.body, context);
|
|
1117
|
+
return contents;
|
|
1118
|
+
};
|
|
892
1119
|
export const de_ToggleTranscriptionEmailNotificationsSubscriptionCommand = async (output, context) => {
|
|
893
1120
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
894
1121
|
return de_CommandError(output, context);
|
|
@@ -909,6 +1136,30 @@ export const de_ToggleUnreadEmailNotificationsSubscriptionCommand = async (outpu
|
|
|
909
1136
|
await collectBody(output.body, context);
|
|
910
1137
|
return contents;
|
|
911
1138
|
};
|
|
1139
|
+
export const de_UnbindWorkspaceCommand = async (output, context) => {
|
|
1140
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1141
|
+
return de_CommandError(output, context);
|
|
1142
|
+
}
|
|
1143
|
+
const contents = map({
|
|
1144
|
+
$metadata: deserializeMetadata(output),
|
|
1145
|
+
});
|
|
1146
|
+
await collectBody(output.body, context);
|
|
1147
|
+
return contents;
|
|
1148
|
+
};
|
|
1149
|
+
export const de_UpdateAccountCommand = async (output, context) => {
|
|
1150
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1151
|
+
return de_CommandError(output, context);
|
|
1152
|
+
}
|
|
1153
|
+
const contents = map({
|
|
1154
|
+
$metadata: deserializeMetadata(output),
|
|
1155
|
+
});
|
|
1156
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1157
|
+
const doc = take(data, {
|
|
1158
|
+
'account': _json,
|
|
1159
|
+
});
|
|
1160
|
+
Object.assign(contents, doc);
|
|
1161
|
+
return contents;
|
|
1162
|
+
};
|
|
912
1163
|
export const de_UpdateBotCommand = async (output, context) => {
|
|
913
1164
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
914
1165
|
return de_CommandError(output, context);
|
|
@@ -951,6 +1202,20 @@ export const de_UpdateUserEmailNotificationsSettingsCommand = async (output, con
|
|
|
951
1202
|
Object.assign(contents, doc);
|
|
952
1203
|
return contents;
|
|
953
1204
|
};
|
|
1205
|
+
export const de_UpdateWorkspaceCommand = async (output, context) => {
|
|
1206
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1207
|
+
return de_CommandError(output, context);
|
|
1208
|
+
}
|
|
1209
|
+
const contents = map({
|
|
1210
|
+
$metadata: deserializeMetadata(output),
|
|
1211
|
+
});
|
|
1212
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1213
|
+
const doc = take(data, {
|
|
1214
|
+
'workspace': _json,
|
|
1215
|
+
});
|
|
1216
|
+
Object.assign(contents, doc);
|
|
1217
|
+
return contents;
|
|
1218
|
+
};
|
|
954
1219
|
export const de_UploadPictureCommand = async (output, context) => {
|
|
955
1220
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
956
1221
|
return de_CommandError(output, context);
|
|
@@ -979,6 +1244,20 @@ export const de_UploadPictureV1Command = async (output, context) => {
|
|
|
979
1244
|
Object.assign(contents, doc);
|
|
980
1245
|
return contents;
|
|
981
1246
|
};
|
|
1247
|
+
export const de_VerifyAddIdentityCommand = async (output, context) => {
|
|
1248
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1249
|
+
return de_CommandError(output, context);
|
|
1250
|
+
}
|
|
1251
|
+
const contents = map({
|
|
1252
|
+
$metadata: deserializeMetadata(output),
|
|
1253
|
+
});
|
|
1254
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
1255
|
+
const doc = take(data, {
|
|
1256
|
+
'identity': _json,
|
|
1257
|
+
});
|
|
1258
|
+
Object.assign(contents, doc);
|
|
1259
|
+
return contents;
|
|
1260
|
+
};
|
|
982
1261
|
export const de_VerifyBotSecretKeyCommand = async (output, context) => {
|
|
983
1262
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
984
1263
|
return de_CommandError(output, context);
|
|
@@ -1018,12 +1297,30 @@ const de_CommandError = async (output, context) => {
|
|
|
1018
1297
|
};
|
|
1019
1298
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1020
1299
|
switch (errorCode) {
|
|
1300
|
+
case "AccountNotFoundException":
|
|
1301
|
+
case "wildix.xbees.users#AccountNotFoundException":
|
|
1302
|
+
throw await de_AccountNotFoundExceptionRes(parsedOutput, context);
|
|
1303
|
+
case "CannotRemovePrimaryIdentityException":
|
|
1304
|
+
case "wildix.xbees.users#CannotRemovePrimaryIdentityException":
|
|
1305
|
+
throw await de_CannotRemovePrimaryIdentityExceptionRes(parsedOutput, context);
|
|
1306
|
+
case "CannotUnbindDefaultWorkspaceException":
|
|
1307
|
+
case "wildix.xbees.users#CannotUnbindDefaultWorkspaceException":
|
|
1308
|
+
throw await de_CannotUnbindDefaultWorkspaceExceptionRes(parsedOutput, context);
|
|
1021
1309
|
case "ForbiddenException":
|
|
1022
1310
|
case "smithy.framework#ForbiddenException":
|
|
1023
1311
|
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1312
|
+
case "IdentityAlreadyLinkedException":
|
|
1313
|
+
case "wildix.xbees.users#IdentityAlreadyLinkedException":
|
|
1314
|
+
throw await de_IdentityAlreadyLinkedExceptionRes(parsedOutput, context);
|
|
1315
|
+
case "IdentityNotFoundException":
|
|
1316
|
+
case "wildix.xbees.users#IdentityNotFoundException":
|
|
1317
|
+
throw await de_IdentityNotFoundExceptionRes(parsedOutput, context);
|
|
1024
1318
|
case "ValidationException":
|
|
1025
1319
|
case "smithy.framework#ValidationException":
|
|
1026
1320
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1321
|
+
case "WorkspaceNotFoundException":
|
|
1322
|
+
case "wildix.xbees.users#WorkspaceNotFoundException":
|
|
1323
|
+
throw await de_WorkspaceNotFoundExceptionRes(parsedOutput, context);
|
|
1027
1324
|
case "UserCompanyNotValidException":
|
|
1028
1325
|
case "wildix.xbees.users#UserCompanyNotValidException":
|
|
1029
1326
|
throw await de_UserCompanyNotValidExceptionRes(parsedOutput, context);
|
|
@@ -1078,6 +1375,19 @@ const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
|
1078
1375
|
});
|
|
1079
1376
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1080
1377
|
};
|
|
1378
|
+
const de_AccountNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1379
|
+
const contents = map({});
|
|
1380
|
+
const data = parsedOutput.body;
|
|
1381
|
+
const doc = take(data, {
|
|
1382
|
+
'message': __expectString,
|
|
1383
|
+
});
|
|
1384
|
+
Object.assign(contents, doc);
|
|
1385
|
+
const exception = new AccountNotFoundException({
|
|
1386
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1387
|
+
...contents
|
|
1388
|
+
});
|
|
1389
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
1390
|
+
};
|
|
1081
1391
|
const de_BotApiKeyNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1082
1392
|
const contents = map({});
|
|
1083
1393
|
const data = parsedOutput.body;
|
|
@@ -1117,6 +1427,58 @@ const de_BotSecretKeyNotValidExceptionRes = async (parsedOutput, context) => {
|
|
|
1117
1427
|
});
|
|
1118
1428
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1119
1429
|
};
|
|
1430
|
+
const de_CannotRemovePrimaryIdentityExceptionRes = async (parsedOutput, context) => {
|
|
1431
|
+
const contents = map({});
|
|
1432
|
+
const data = parsedOutput.body;
|
|
1433
|
+
const doc = take(data, {
|
|
1434
|
+
'message': __expectString,
|
|
1435
|
+
});
|
|
1436
|
+
Object.assign(contents, doc);
|
|
1437
|
+
const exception = new CannotRemovePrimaryIdentityException({
|
|
1438
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1439
|
+
...contents
|
|
1440
|
+
});
|
|
1441
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
1442
|
+
};
|
|
1443
|
+
const de_CannotUnbindDefaultWorkspaceExceptionRes = async (parsedOutput, context) => {
|
|
1444
|
+
const contents = map({});
|
|
1445
|
+
const data = parsedOutput.body;
|
|
1446
|
+
const doc = take(data, {
|
|
1447
|
+
'message': __expectString,
|
|
1448
|
+
});
|
|
1449
|
+
Object.assign(contents, doc);
|
|
1450
|
+
const exception = new CannotUnbindDefaultWorkspaceException({
|
|
1451
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1452
|
+
...contents
|
|
1453
|
+
});
|
|
1454
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
1455
|
+
};
|
|
1456
|
+
const de_IdentityAlreadyLinkedExceptionRes = async (parsedOutput, context) => {
|
|
1457
|
+
const contents = map({});
|
|
1458
|
+
const data = parsedOutput.body;
|
|
1459
|
+
const doc = take(data, {
|
|
1460
|
+
'message': __expectString,
|
|
1461
|
+
});
|
|
1462
|
+
Object.assign(contents, doc);
|
|
1463
|
+
const exception = new IdentityAlreadyLinkedException({
|
|
1464
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1465
|
+
...contents
|
|
1466
|
+
});
|
|
1467
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
1468
|
+
};
|
|
1469
|
+
const de_IdentityNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1470
|
+
const contents = map({});
|
|
1471
|
+
const data = parsedOutput.body;
|
|
1472
|
+
const doc = take(data, {
|
|
1473
|
+
'message': __expectString,
|
|
1474
|
+
});
|
|
1475
|
+
Object.assign(contents, doc);
|
|
1476
|
+
const exception = new IdentityNotFoundException({
|
|
1477
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1478
|
+
...contents
|
|
1479
|
+
});
|
|
1480
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
1481
|
+
};
|
|
1120
1482
|
const de_UserCompanyNotValidExceptionRes = async (parsedOutput, context) => {
|
|
1121
1483
|
const contents = map({});
|
|
1122
1484
|
const data = parsedOutput.body;
|
|
@@ -1156,6 +1518,19 @@ const de_UserQueryPredicateNotMetExceptionRes = async (parsedOutput, context) =>
|
|
|
1156
1518
|
});
|
|
1157
1519
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1158
1520
|
};
|
|
1521
|
+
const de_WorkspaceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1522
|
+
const contents = map({});
|
|
1523
|
+
const data = parsedOutput.body;
|
|
1524
|
+
const doc = take(data, {
|
|
1525
|
+
'message': __expectString,
|
|
1526
|
+
});
|
|
1527
|
+
Object.assign(contents, doc);
|
|
1528
|
+
const exception = new WorkspaceNotFoundException({
|
|
1529
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1530
|
+
...contents
|
|
1531
|
+
});
|
|
1532
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
1533
|
+
};
|
|
1159
1534
|
const se_Document = (input, context) => {
|
|
1160
1535
|
return input;
|
|
1161
1536
|
};
|
|
@@ -1355,6 +1730,7 @@ const deserializeMetadata = (output) => ({
|
|
|
1355
1730
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then(body => context.utf8Encoder(body));
|
|
1356
1731
|
const _aT = "appType";
|
|
1357
1732
|
const _c = "company";
|
|
1733
|
+
const _cI = "companyId";
|
|
1358
1734
|
const _e = "email";
|
|
1359
1735
|
const _eE = "excludeExtension";
|
|
1360
1736
|
const _s = "search";
|
package/dist-types/Users.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { UsersClient } from "./UsersClient";
|
|
2
|
+
import { AddIdentityCommandInput, AddIdentityCommandOutput } from "./commands/AddIdentityCommand";
|
|
2
3
|
import { BatchGetUsersCommandInput, BatchGetUsersCommandOutput } from "./commands/BatchGetUsersCommand";
|
|
3
4
|
import { BatchGetUsersEmailNotificationsSettingsCommandInput, BatchGetUsersEmailNotificationsSettingsCommandOutput } from "./commands/BatchGetUsersEmailNotificationsSettingsCommand";
|
|
4
5
|
import { BatchGetUsersPbxLinkDataCommandInput, BatchGetUsersPbxLinkDataCommandOutput } from "./commands/BatchGetUsersPbxLinkDataCommand";
|
|
@@ -9,6 +10,7 @@ import { CreateBotCommandInput, CreateBotCommandOutput } from "./commands/Create
|
|
|
9
10
|
import { CreateSystemBotCommandInput, CreateSystemBotCommandOutput } from "./commands/CreateSystemBotCommand";
|
|
10
11
|
import { DeleteBotApiKeyCommandInput, DeleteBotApiKeyCommandOutput } from "./commands/DeleteBotApiKeyCommand";
|
|
11
12
|
import { DeleteBotCommandInput, DeleteBotCommandOutput } from "./commands/DeleteBotCommand";
|
|
13
|
+
import { GetAccountCommandInput, GetAccountCommandOutput } from "./commands/GetAccountCommand";
|
|
12
14
|
import { GetAppVersionCommandInput, GetAppVersionCommandOutput } from "./commands/GetAppVersionCommand";
|
|
13
15
|
import { GetBotCallbackCommandInput, GetBotCallbackCommandOutput } from "./commands/GetBotCallbackCommand";
|
|
14
16
|
import { GetBotCommandInput, GetBotCommandOutput } from "./commands/GetBotCommand";
|
|
@@ -18,23 +20,37 @@ import { GetUserPbxLinkDataCommandInput, GetUserPbxLinkDataCommandOutput } from
|
|
|
18
20
|
import { GetUserPbxLinkSuggestionCommandInput, GetUserPbxLinkSuggestionCommandOutput } from "./commands/GetUserPbxLinkSuggestionCommand";
|
|
19
21
|
import { GetUserPbxLinkSuggestionV1CommandInput, GetUserPbxLinkSuggestionV1CommandOutput } from "./commands/GetUserPbxLinkSuggestionV1Command";
|
|
20
22
|
import { IntelligenceSearchCommandInput, IntelligenceSearchCommandOutput } from "./commands/IntelligenceSearchCommand";
|
|
23
|
+
import { InviteCommandInput, InviteCommandOutput } from "./commands/InviteCommand";
|
|
24
|
+
import { ListAccountIdentitiesCommandInput, ListAccountIdentitiesCommandOutput } from "./commands/ListAccountIdentitiesCommand";
|
|
21
25
|
import { ListBotApiKeysCommandInput, ListBotApiKeysCommandOutput } from "./commands/ListBotApiKeysCommand";
|
|
22
26
|
import { ListBotsCommandInput, ListBotsCommandOutput } from "./commands/ListBotsCommand";
|
|
27
|
+
import { ListWorkspacesCommandInput, ListWorkspacesCommandOutput } from "./commands/ListWorkspacesCommand";
|
|
23
28
|
import { PartialUpdateUserEmailNotificationsSettingsCommandInput, PartialUpdateUserEmailNotificationsSettingsCommandOutput } from "./commands/PartialUpdateUserEmailNotificationsSettingsCommand";
|
|
24
29
|
import { QueryColleaguesCommandInput, QueryColleaguesCommandOutput } from "./commands/QueryColleaguesCommand";
|
|
25
30
|
import { QueryUserCommandInput, QueryUserCommandOutput } from "./commands/QueryUserCommand";
|
|
26
31
|
import { QueryUsersCommandInput, QueryUsersCommandOutput } from "./commands/QueryUsersCommand";
|
|
32
|
+
import { RemoveIdentityCommandInput, RemoveIdentityCommandOutput } from "./commands/RemoveIdentityCommand";
|
|
27
33
|
import { ToggleTranscriptionEmailNotificationsSubscriptionCommandInput, ToggleTranscriptionEmailNotificationsSubscriptionCommandOutput } from "./commands/ToggleTranscriptionEmailNotificationsSubscriptionCommand";
|
|
28
34
|
import { ToggleUnreadEmailNotificationsSubscriptionCommandInput, ToggleUnreadEmailNotificationsSubscriptionCommandOutput } from "./commands/ToggleUnreadEmailNotificationsSubscriptionCommand";
|
|
35
|
+
import { UnbindWorkspaceCommandInput, UnbindWorkspaceCommandOutput } from "./commands/UnbindWorkspaceCommand";
|
|
36
|
+
import { UpdateAccountCommandInput, UpdateAccountCommandOutput } from "./commands/UpdateAccountCommand";
|
|
29
37
|
import { UpdateBotCallbackCommandInput, UpdateBotCallbackCommandOutput } from "./commands/UpdateBotCallbackCommand";
|
|
30
38
|
import { UpdateBotCommandInput, UpdateBotCommandOutput } from "./commands/UpdateBotCommand";
|
|
31
39
|
import { UpdateUserEmailNotificationsSettingsCommandInput, UpdateUserEmailNotificationsSettingsCommandOutput } from "./commands/UpdateUserEmailNotificationsSettingsCommand";
|
|
40
|
+
import { UpdateWorkspaceCommandInput, UpdateWorkspaceCommandOutput } from "./commands/UpdateWorkspaceCommand";
|
|
32
41
|
import { UploadPictureCommandInput, UploadPictureCommandOutput } from "./commands/UploadPictureCommand";
|
|
33
42
|
import { UploadPictureV1CommandInput, UploadPictureV1CommandOutput } from "./commands/UploadPictureV1Command";
|
|
43
|
+
import { VerifyAddIdentityCommandInput, VerifyAddIdentityCommandOutput } from "./commands/VerifyAddIdentityCommand";
|
|
34
44
|
import { VerifyBotSecretKeyCommandInput, VerifyBotSecretKeyCommandOutput } from "./commands/VerifyBotSecretKeyCommand";
|
|
35
45
|
import { VerifyBotSecretKeyV1CommandInput, VerifyBotSecretKeyV1CommandOutput } from "./commands/VerifyBotSecretKeyV1Command";
|
|
36
46
|
import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
|
|
37
47
|
export interface Users {
|
|
48
|
+
/**
|
|
49
|
+
* @see {@link AddIdentityCommand}
|
|
50
|
+
*/
|
|
51
|
+
addIdentity(args: AddIdentityCommandInput, options?: __HttpHandlerOptions): Promise<AddIdentityCommandOutput>;
|
|
52
|
+
addIdentity(args: AddIdentityCommandInput, cb: (err: any, data?: AddIdentityCommandOutput) => void): void;
|
|
53
|
+
addIdentity(args: AddIdentityCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: AddIdentityCommandOutput) => void): void;
|
|
38
54
|
/**
|
|
39
55
|
* @see {@link BatchGetUsersCommand}
|
|
40
56
|
*/
|
|
@@ -95,6 +111,12 @@ export interface Users {
|
|
|
95
111
|
deleteBotApiKey(args: DeleteBotApiKeyCommandInput, options?: __HttpHandlerOptions): Promise<DeleteBotApiKeyCommandOutput>;
|
|
96
112
|
deleteBotApiKey(args: DeleteBotApiKeyCommandInput, cb: (err: any, data?: DeleteBotApiKeyCommandOutput) => void): void;
|
|
97
113
|
deleteBotApiKey(args: DeleteBotApiKeyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteBotApiKeyCommandOutput) => void): void;
|
|
114
|
+
/**
|
|
115
|
+
* @see {@link GetAccountCommand}
|
|
116
|
+
*/
|
|
117
|
+
getAccount(args: GetAccountCommandInput, options?: __HttpHandlerOptions): Promise<GetAccountCommandOutput>;
|
|
118
|
+
getAccount(args: GetAccountCommandInput, cb: (err: any, data?: GetAccountCommandOutput) => void): void;
|
|
119
|
+
getAccount(args: GetAccountCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetAccountCommandOutput) => void): void;
|
|
98
120
|
/**
|
|
99
121
|
* @see {@link GetAppVersionCommand}
|
|
100
122
|
*/
|
|
@@ -151,6 +173,18 @@ export interface Users {
|
|
|
151
173
|
intelligenceSearch(args: IntelligenceSearchCommandInput, options?: __HttpHandlerOptions): Promise<IntelligenceSearchCommandOutput>;
|
|
152
174
|
intelligenceSearch(args: IntelligenceSearchCommandInput, cb: (err: any, data?: IntelligenceSearchCommandOutput) => void): void;
|
|
153
175
|
intelligenceSearch(args: IntelligenceSearchCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: IntelligenceSearchCommandOutput) => void): void;
|
|
176
|
+
/**
|
|
177
|
+
* @see {@link InviteCommand}
|
|
178
|
+
*/
|
|
179
|
+
invite(args: InviteCommandInput, options?: __HttpHandlerOptions): Promise<InviteCommandOutput>;
|
|
180
|
+
invite(args: InviteCommandInput, cb: (err: any, data?: InviteCommandOutput) => void): void;
|
|
181
|
+
invite(args: InviteCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: InviteCommandOutput) => void): void;
|
|
182
|
+
/**
|
|
183
|
+
* @see {@link ListAccountIdentitiesCommand}
|
|
184
|
+
*/
|
|
185
|
+
listAccountIdentities(args: ListAccountIdentitiesCommandInput, options?: __HttpHandlerOptions): Promise<ListAccountIdentitiesCommandOutput>;
|
|
186
|
+
listAccountIdentities(args: ListAccountIdentitiesCommandInput, cb: (err: any, data?: ListAccountIdentitiesCommandOutput) => void): void;
|
|
187
|
+
listAccountIdentities(args: ListAccountIdentitiesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListAccountIdentitiesCommandOutput) => void): void;
|
|
154
188
|
/**
|
|
155
189
|
* @see {@link ListBotApiKeysCommand}
|
|
156
190
|
*/
|
|
@@ -164,6 +198,12 @@ export interface Users {
|
|
|
164
198
|
listBots(args: ListBotsCommandInput, options?: __HttpHandlerOptions): Promise<ListBotsCommandOutput>;
|
|
165
199
|
listBots(args: ListBotsCommandInput, cb: (err: any, data?: ListBotsCommandOutput) => void): void;
|
|
166
200
|
listBots(args: ListBotsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListBotsCommandOutput) => void): void;
|
|
201
|
+
/**
|
|
202
|
+
* @see {@link ListWorkspacesCommand}
|
|
203
|
+
*/
|
|
204
|
+
listWorkspaces(args: ListWorkspacesCommandInput, options?: __HttpHandlerOptions): Promise<ListWorkspacesCommandOutput>;
|
|
205
|
+
listWorkspaces(args: ListWorkspacesCommandInput, cb: (err: any, data?: ListWorkspacesCommandOutput) => void): void;
|
|
206
|
+
listWorkspaces(args: ListWorkspacesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListWorkspacesCommandOutput) => void): void;
|
|
167
207
|
/**
|
|
168
208
|
* @see {@link PartialUpdateUserEmailNotificationsSettingsCommand}
|
|
169
209
|
*/
|
|
@@ -189,6 +229,12 @@ export interface Users {
|
|
|
189
229
|
queryUsers(args: QueryUsersCommandInput, options?: __HttpHandlerOptions): Promise<QueryUsersCommandOutput>;
|
|
190
230
|
queryUsers(args: QueryUsersCommandInput, cb: (err: any, data?: QueryUsersCommandOutput) => void): void;
|
|
191
231
|
queryUsers(args: QueryUsersCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: QueryUsersCommandOutput) => void): void;
|
|
232
|
+
/**
|
|
233
|
+
* @see {@link RemoveIdentityCommand}
|
|
234
|
+
*/
|
|
235
|
+
removeIdentity(args: RemoveIdentityCommandInput, options?: __HttpHandlerOptions): Promise<RemoveIdentityCommandOutput>;
|
|
236
|
+
removeIdentity(args: RemoveIdentityCommandInput, cb: (err: any, data?: RemoveIdentityCommandOutput) => void): void;
|
|
237
|
+
removeIdentity(args: RemoveIdentityCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: RemoveIdentityCommandOutput) => void): void;
|
|
192
238
|
/**
|
|
193
239
|
* @see {@link ToggleTranscriptionEmailNotificationsSubscriptionCommand}
|
|
194
240
|
*/
|
|
@@ -201,6 +247,18 @@ export interface Users {
|
|
|
201
247
|
toggleUnreadEmailNotificationsSubscription(args: ToggleUnreadEmailNotificationsSubscriptionCommandInput, options?: __HttpHandlerOptions): Promise<ToggleUnreadEmailNotificationsSubscriptionCommandOutput>;
|
|
202
248
|
toggleUnreadEmailNotificationsSubscription(args: ToggleUnreadEmailNotificationsSubscriptionCommandInput, cb: (err: any, data?: ToggleUnreadEmailNotificationsSubscriptionCommandOutput) => void): void;
|
|
203
249
|
toggleUnreadEmailNotificationsSubscription(args: ToggleUnreadEmailNotificationsSubscriptionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ToggleUnreadEmailNotificationsSubscriptionCommandOutput) => void): void;
|
|
250
|
+
/**
|
|
251
|
+
* @see {@link UnbindWorkspaceCommand}
|
|
252
|
+
*/
|
|
253
|
+
unbindWorkspace(args: UnbindWorkspaceCommandInput, options?: __HttpHandlerOptions): Promise<UnbindWorkspaceCommandOutput>;
|
|
254
|
+
unbindWorkspace(args: UnbindWorkspaceCommandInput, cb: (err: any, data?: UnbindWorkspaceCommandOutput) => void): void;
|
|
255
|
+
unbindWorkspace(args: UnbindWorkspaceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UnbindWorkspaceCommandOutput) => void): void;
|
|
256
|
+
/**
|
|
257
|
+
* @see {@link UpdateAccountCommand}
|
|
258
|
+
*/
|
|
259
|
+
updateAccount(args: UpdateAccountCommandInput, options?: __HttpHandlerOptions): Promise<UpdateAccountCommandOutput>;
|
|
260
|
+
updateAccount(args: UpdateAccountCommandInput, cb: (err: any, data?: UpdateAccountCommandOutput) => void): void;
|
|
261
|
+
updateAccount(args: UpdateAccountCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateAccountCommandOutput) => void): void;
|
|
204
262
|
/**
|
|
205
263
|
* @see {@link UpdateBotCommand}
|
|
206
264
|
*/
|
|
@@ -219,6 +277,12 @@ export interface Users {
|
|
|
219
277
|
updateUserEmailNotificationsSettings(args: UpdateUserEmailNotificationsSettingsCommandInput, options?: __HttpHandlerOptions): Promise<UpdateUserEmailNotificationsSettingsCommandOutput>;
|
|
220
278
|
updateUserEmailNotificationsSettings(args: UpdateUserEmailNotificationsSettingsCommandInput, cb: (err: any, data?: UpdateUserEmailNotificationsSettingsCommandOutput) => void): void;
|
|
221
279
|
updateUserEmailNotificationsSettings(args: UpdateUserEmailNotificationsSettingsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateUserEmailNotificationsSettingsCommandOutput) => void): void;
|
|
280
|
+
/**
|
|
281
|
+
* @see {@link UpdateWorkspaceCommand}
|
|
282
|
+
*/
|
|
283
|
+
updateWorkspace(args: UpdateWorkspaceCommandInput, options?: __HttpHandlerOptions): Promise<UpdateWorkspaceCommandOutput>;
|
|
284
|
+
updateWorkspace(args: UpdateWorkspaceCommandInput, cb: (err: any, data?: UpdateWorkspaceCommandOutput) => void): void;
|
|
285
|
+
updateWorkspace(args: UpdateWorkspaceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateWorkspaceCommandOutput) => void): void;
|
|
222
286
|
/**
|
|
223
287
|
* @see {@link UploadPictureCommand}
|
|
224
288
|
*/
|
|
@@ -231,6 +295,12 @@ export interface Users {
|
|
|
231
295
|
uploadPictureV1(args: UploadPictureV1CommandInput, options?: __HttpHandlerOptions): Promise<UploadPictureV1CommandOutput>;
|
|
232
296
|
uploadPictureV1(args: UploadPictureV1CommandInput, cb: (err: any, data?: UploadPictureV1CommandOutput) => void): void;
|
|
233
297
|
uploadPictureV1(args: UploadPictureV1CommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UploadPictureV1CommandOutput) => void): void;
|
|
298
|
+
/**
|
|
299
|
+
* @see {@link VerifyAddIdentityCommand}
|
|
300
|
+
*/
|
|
301
|
+
verifyAddIdentity(args: VerifyAddIdentityCommandInput, options?: __HttpHandlerOptions): Promise<VerifyAddIdentityCommandOutput>;
|
|
302
|
+
verifyAddIdentity(args: VerifyAddIdentityCommandInput, cb: (err: any, data?: VerifyAddIdentityCommandOutput) => void): void;
|
|
303
|
+
verifyAddIdentity(args: VerifyAddIdentityCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: VerifyAddIdentityCommandOutput) => void): void;
|
|
234
304
|
/**
|
|
235
305
|
* @see {@link VerifyBotSecretKeyCommand}
|
|
236
306
|
*/
|