@wildix/xbees-users-client 1.0.25 → 1.0.27

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 CHANGED
@@ -8,6 +8,7 @@ const BatchGetUsersPbxLinkDataV1Command_1 = require("./commands/BatchGetUsersPbx
8
8
  const ChangeUserEmailCommand_1 = require("./commands/ChangeUserEmailCommand");
9
9
  const CreateBotApiKeyCommand_1 = require("./commands/CreateBotApiKeyCommand");
10
10
  const CreateBotCommand_1 = require("./commands/CreateBotCommand");
11
+ const CreateSystemBotCommand_1 = require("./commands/CreateSystemBotCommand");
11
12
  const DeleteBotApiKeyCommand_1 = require("./commands/DeleteBotApiKeyCommand");
12
13
  const DeleteBotCommand_1 = require("./commands/DeleteBotCommand");
13
14
  const GetBotCallbackCommand_1 = require("./commands/GetBotCallbackCommand");
@@ -18,6 +19,7 @@ const GetUserPbxLinkSuggestionCommand_1 = require("./commands/GetUserPbxLinkSugg
18
19
  const GetUserPbxLinkSuggestionV1Command_1 = require("./commands/GetUserPbxLinkSuggestionV1Command");
19
20
  const ListBotApiKeysCommand_1 = require("./commands/ListBotApiKeysCommand");
20
21
  const ListBotsCommand_1 = require("./commands/ListBotsCommand");
22
+ const QueryColleaguesCommand_1 = require("./commands/QueryColleaguesCommand");
21
23
  const QueryUserCommand_1 = require("./commands/QueryUserCommand");
22
24
  const QueryUsersCommand_1 = require("./commands/QueryUsersCommand");
23
25
  const UpdateBotCallbackCommand_1 = require("./commands/UpdateBotCallbackCommand");
@@ -34,6 +36,7 @@ const commands = {
34
36
  ChangeUserEmailCommand: ChangeUserEmailCommand_1.ChangeUserEmailCommand,
35
37
  CreateBotCommand: CreateBotCommand_1.CreateBotCommand,
36
38
  CreateBotApiKeyCommand: CreateBotApiKeyCommand_1.CreateBotApiKeyCommand,
39
+ CreateSystemBotCommand: CreateSystemBotCommand_1.CreateSystemBotCommand,
37
40
  DeleteBotCommand: DeleteBotCommand_1.DeleteBotCommand,
38
41
  DeleteBotApiKeyCommand: DeleteBotApiKeyCommand_1.DeleteBotApiKeyCommand,
39
42
  GetBotCommand: GetBotCommand_1.GetBotCommand,
@@ -44,6 +47,7 @@ const commands = {
44
47
  GetUserPbxLinkSuggestionV1Command: GetUserPbxLinkSuggestionV1Command_1.GetUserPbxLinkSuggestionV1Command,
45
48
  ListBotApiKeysCommand: ListBotApiKeysCommand_1.ListBotApiKeysCommand,
46
49
  ListBotsCommand: ListBotsCommand_1.ListBotsCommand,
50
+ QueryColleaguesCommand: QueryColleaguesCommand_1.QueryColleaguesCommand,
47
51
  QueryUserCommand: QueryUserCommand_1.QueryUserCommand,
48
52
  QueryUsersCommand: QueryUsersCommand_1.QueryUsersCommand,
49
53
  UpdateBotCommand: UpdateBotCommand_1.UpdateBotCommand,
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreateSystemBotCommand = exports.$Command = void 0;
4
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ class CreateSystemBotCommand extends smithy_client_1.Command.classBuilder()
9
+ .m(function (Command, cs, config, o) {
10
+ return [
11
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
12
+ ];
13
+ })
14
+ .s("Users", "CreateSystemBot", {})
15
+ .n("UsersClient", "CreateSystemBotCommand")
16
+ .f(void 0, void 0)
17
+ .ser(Aws_restJson1_1.se_CreateSystemBotCommand)
18
+ .de(Aws_restJson1_1.de_CreateSystemBotCommand)
19
+ .build() {
20
+ }
21
+ exports.CreateSystemBotCommand = CreateSystemBotCommand;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.QueryColleaguesCommand = exports.$Command = void 0;
4
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ class QueryColleaguesCommand extends smithy_client_1.Command.classBuilder()
9
+ .m(function (Command, cs, config, o) {
10
+ return [
11
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
12
+ ];
13
+ })
14
+ .s("Users", "QueryColleagues", {})
15
+ .n("UsersClient", "QueryColleaguesCommand")
16
+ .f(void 0, void 0)
17
+ .ser(Aws_restJson1_1.se_QueryColleaguesCommand)
18
+ .de(Aws_restJson1_1.de_QueryColleaguesCommand)
19
+ .build() {
20
+ }
21
+ exports.QueryColleaguesCommand = QueryColleaguesCommand;
@@ -7,6 +7,7 @@ tslib_1.__exportStar(require("./BatchGetUsersPbxLinkDataV1Command"), exports);
7
7
  tslib_1.__exportStar(require("./ChangeUserEmailCommand"), exports);
8
8
  tslib_1.__exportStar(require("./CreateBotCommand"), exports);
9
9
  tslib_1.__exportStar(require("./CreateBotApiKeyCommand"), exports);
10
+ tslib_1.__exportStar(require("./CreateSystemBotCommand"), exports);
10
11
  tslib_1.__exportStar(require("./DeleteBotCommand"), exports);
11
12
  tslib_1.__exportStar(require("./DeleteBotApiKeyCommand"), exports);
12
13
  tslib_1.__exportStar(require("./GetBotCommand"), exports);
@@ -17,6 +18,7 @@ tslib_1.__exportStar(require("./GetUserPbxLinkSuggestionCommand"), exports);
17
18
  tslib_1.__exportStar(require("./GetUserPbxLinkSuggestionV1Command"), exports);
18
19
  tslib_1.__exportStar(require("./ListBotApiKeysCommand"), exports);
19
20
  tslib_1.__exportStar(require("./ListBotsCommand"), exports);
21
+ tslib_1.__exportStar(require("./QueryColleaguesCommand"), exports);
20
22
  tslib_1.__exportStar(require("./QueryUserCommand"), exports);
21
23
  tslib_1.__exportStar(require("./QueryUsersCommand"), exports);
22
24
  tslib_1.__exportStar(require("./UpdateBotCommand"), exports);
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UserQueryPredicateNotMetException = exports.UserQuery = exports.UserNotFoundException = exports.UserCompanyNotValidException = exports.BotSecretKeyNotValidException = exports.BotNotFoundException = exports.BotEndpoint = exports.BotApiKeyNotFoundException = exports.PbxLicenseType = exports.ForbiddenException = exports.ValidationException = void 0;
3
+ exports.UserQueryPredicateNotMetException = exports.UserQuery = exports.UserNotFoundException = exports.UserCompanyNotValidException = exports.BotSecretKeyNotValidException = exports.BotNotFoundException = exports.BotEndpoint = exports.BotApiKeyNotFoundException = exports.PbxColleaguesSearchStrategy = exports.PbxColleaguesQueryField = exports.GetPbxColleaguesDir = exports.PbxColleagueRole = exports.PbxLicenseType = exports.ForbiddenException = exports.ValidationException = void 0;
4
4
  const UsersServiceException_1 = require("./UsersServiceException");
5
5
  class ValidationException extends UsersServiceException_1.UsersServiceException {
6
6
  constructor(opts) {
@@ -35,6 +35,40 @@ exports.PbxLicenseType = {
35
35
  PREMIUM: "premium",
36
36
  WIZYCONF: "wizyconf",
37
37
  };
38
+ exports.PbxColleagueRole = {
39
+ ADMIN: "admin",
40
+ FAX: "fax",
41
+ PARK_ORBIT: "park_orbit",
42
+ ROOM: "room",
43
+ USER: "user",
44
+ };
45
+ exports.GetPbxColleaguesDir = {
46
+ ASC: "asc",
47
+ DESC: "desc",
48
+ };
49
+ exports.PbxColleaguesQueryField = {
50
+ DEPARTMENT: "department",
51
+ DIALPLAN: "dialplan",
52
+ EMAIL: "email",
53
+ EXTENSION: "extension",
54
+ FAX_DIALPLAN: "faxDialplan",
55
+ GROUP_DN: "groupDn",
56
+ ID: "id",
57
+ LANGUAGE: "language",
58
+ LICENSE_TYPE: "licenseType",
59
+ LOGIN: "login",
60
+ MOBILE_PHONE: "mobilePhone",
61
+ NAME: "name",
62
+ OFFICE_PHONE: "officePhone",
63
+ PBX_DN: "pbxDn",
64
+ PICTURE: "picture",
65
+ ROLE: "role",
66
+ SOURCE_ID: "sourceId",
67
+ };
68
+ exports.PbxColleaguesSearchStrategy = {
69
+ CONTAIN: "contain",
70
+ STARTS_WITH: "startsWith",
71
+ };
38
72
  class BotApiKeyNotFoundException extends UsersServiceException_1.UsersServiceException {
39
73
  constructor(opts) {
40
74
  super({
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.de_VerifyBotSecretKeyV1Command = exports.de_VerifyBotSecretKeyCommand = exports.de_UploadPictureV1Command = exports.de_UploadPictureCommand = exports.de_UpdateBotCallbackCommand = exports.de_UpdateBotCommand = exports.de_QueryUsersCommand = exports.de_QueryUserCommand = exports.de_ListBotsCommand = exports.de_ListBotApiKeysCommand = exports.de_GetUserPbxLinkSuggestionV1Command = exports.de_GetUserPbxLinkSuggestionCommand = exports.de_GetUserPbxLinkDataCommand = exports.de_GetUserCommand = exports.de_GetBotCallbackCommand = exports.de_GetBotCommand = exports.de_DeleteBotApiKeyCommand = exports.de_DeleteBotCommand = exports.de_CreateBotApiKeyCommand = exports.de_CreateBotCommand = exports.de_ChangeUserEmailCommand = exports.de_BatchGetUsersPbxLinkDataV1Command = exports.de_BatchGetUsersPbxLinkDataCommand = exports.de_BatchGetUsersCommand = exports.se_VerifyBotSecretKeyV1Command = exports.se_VerifyBotSecretKeyCommand = exports.se_UploadPictureV1Command = exports.se_UploadPictureCommand = exports.se_UpdateBotCallbackCommand = exports.se_UpdateBotCommand = exports.se_QueryUsersCommand = exports.se_QueryUserCommand = exports.se_ListBotsCommand = exports.se_ListBotApiKeysCommand = exports.se_GetUserPbxLinkSuggestionV1Command = exports.se_GetUserPbxLinkSuggestionCommand = exports.se_GetUserPbxLinkDataCommand = exports.se_GetUserCommand = exports.se_GetBotCallbackCommand = exports.se_GetBotCommand = exports.se_DeleteBotApiKeyCommand = exports.se_DeleteBotCommand = exports.se_CreateBotApiKeyCommand = exports.se_CreateBotCommand = exports.se_ChangeUserEmailCommand = exports.se_BatchGetUsersPbxLinkDataV1Command = exports.se_BatchGetUsersPbxLinkDataCommand = exports.se_BatchGetUsersCommand = void 0;
3
+ exports.de_UploadPictureV1Command = exports.de_UploadPictureCommand = exports.de_UpdateBotCallbackCommand = exports.de_UpdateBotCommand = exports.de_QueryUsersCommand = exports.de_QueryUserCommand = exports.de_QueryColleaguesCommand = exports.de_ListBotsCommand = exports.de_ListBotApiKeysCommand = exports.de_GetUserPbxLinkSuggestionV1Command = exports.de_GetUserPbxLinkSuggestionCommand = exports.de_GetUserPbxLinkDataCommand = exports.de_GetUserCommand = exports.de_GetBotCallbackCommand = exports.de_GetBotCommand = exports.de_DeleteBotApiKeyCommand = exports.de_DeleteBotCommand = exports.de_CreateSystemBotCommand = exports.de_CreateBotApiKeyCommand = exports.de_CreateBotCommand = exports.de_ChangeUserEmailCommand = exports.de_BatchGetUsersPbxLinkDataV1Command = exports.de_BatchGetUsersPbxLinkDataCommand = exports.de_BatchGetUsersCommand = exports.se_VerifyBotSecretKeyV1Command = exports.se_VerifyBotSecretKeyCommand = exports.se_UploadPictureV1Command = exports.se_UploadPictureCommand = exports.se_UpdateBotCallbackCommand = exports.se_UpdateBotCommand = exports.se_QueryUsersCommand = exports.se_QueryUserCommand = exports.se_QueryColleaguesCommand = exports.se_ListBotsCommand = exports.se_ListBotApiKeysCommand = exports.se_GetUserPbxLinkSuggestionV1Command = exports.se_GetUserPbxLinkSuggestionCommand = exports.se_GetUserPbxLinkDataCommand = exports.se_GetUserCommand = exports.se_GetBotCallbackCommand = exports.se_GetBotCommand = exports.se_DeleteBotApiKeyCommand = exports.se_DeleteBotCommand = exports.se_CreateSystemBotCommand = exports.se_CreateBotApiKeyCommand = exports.se_CreateBotCommand = exports.se_ChangeUserEmailCommand = exports.se_BatchGetUsersPbxLinkDataV1Command = exports.se_BatchGetUsersPbxLinkDataCommand = exports.se_BatchGetUsersCommand = void 0;
4
+ exports.de_VerifyBotSecretKeyV1Command = exports.de_VerifyBotSecretKeyCommand = void 0;
4
5
  const UsersServiceException_1 = require("../models/UsersServiceException");
5
6
  const models_0_1 = require("../models/models_0");
6
7
  const core_1 = require("@smithy/core");
@@ -114,6 +115,27 @@ const se_CreateBotApiKeyCommand = async (input, context) => {
114
115
  return b.build();
115
116
  };
116
117
  exports.se_CreateBotApiKeyCommand = se_CreateBotApiKeyCommand;
118
+ const se_CreateSystemBotCommand = async (input, context) => {
119
+ const b = (0, core_1.requestBuilder)(input, context);
120
+ const headers = {
121
+ 'content-type': 'application/json',
122
+ };
123
+ b.bp("/v2/users/system-bots");
124
+ const query = (0, smithy_client_1.map)({
125
+ [_c]: [, input[_c]],
126
+ });
127
+ let body;
128
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
129
+ 'name': [],
130
+ 'picture': [],
131
+ }));
132
+ b.m("POST")
133
+ .h(headers)
134
+ .q(query)
135
+ .b(body);
136
+ return b.build();
137
+ };
138
+ exports.se_CreateSystemBotCommand = se_CreateSystemBotCommand;
117
139
  const se_DeleteBotCommand = async (input, context) => {
118
140
  const b = (0, core_1.requestBuilder)(input, context);
119
141
  const headers = {};
@@ -264,6 +286,26 @@ const se_ListBotsCommand = async (input, context) => {
264
286
  return b.build();
265
287
  };
266
288
  exports.se_ListBotsCommand = se_ListBotsCommand;
289
+ const se_QueryColleaguesCommand = async (input, context) => {
290
+ const b = (0, core_1.requestBuilder)(input, context);
291
+ const headers = {
292
+ 'content-type': 'application/json',
293
+ };
294
+ b.bp("/v2/users/query-colleagues");
295
+ const query = (0, smithy_client_1.map)({
296
+ [_c]: [, input[_c]],
297
+ });
298
+ let body;
299
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
300
+ 'query': _ => (0, smithy_client_1._json)(_),
301
+ }));
302
+ b.m("POST")
303
+ .h(headers)
304
+ .q(query)
305
+ .b(body);
306
+ return b.build();
307
+ };
308
+ exports.se_QueryColleaguesCommand = se_QueryColleaguesCommand;
267
309
  const se_QueryUserCommand = async (input, context) => {
268
310
  const b = (0, core_1.requestBuilder)(input, context);
269
311
  const headers = {
@@ -497,6 +539,21 @@ const de_CreateBotApiKeyCommand = async (output, context) => {
497
539
  return contents;
498
540
  };
499
541
  exports.de_CreateBotApiKeyCommand = de_CreateBotApiKeyCommand;
542
+ const de_CreateSystemBotCommand = async (output, context) => {
543
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
544
+ return de_CommandError(output, context);
545
+ }
546
+ const contents = (0, smithy_client_1.map)({
547
+ $metadata: deserializeMetadata(output),
548
+ });
549
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await parseBody(output.body, context))), "body");
550
+ const doc = (0, smithy_client_1.take)(data, {
551
+ 'id': smithy_client_1.expectString,
552
+ });
553
+ Object.assign(contents, doc);
554
+ return contents;
555
+ };
556
+ exports.de_CreateSystemBotCommand = de_CreateSystemBotCommand;
500
557
  const de_DeleteBotCommand = async (output, context) => {
501
558
  if (output.statusCode !== 200 && output.statusCode >= 300) {
502
559
  return de_CommandError(output, context);
@@ -639,6 +696,21 @@ const de_ListBotsCommand = async (output, context) => {
639
696
  return contents;
640
697
  };
641
698
  exports.de_ListBotsCommand = de_ListBotsCommand;
699
+ const de_QueryColleaguesCommand = async (output, context) => {
700
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
701
+ return de_CommandError(output, context);
702
+ }
703
+ const contents = (0, smithy_client_1.map)({
704
+ $metadata: deserializeMetadata(output),
705
+ });
706
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await parseBody(output.body, context))), "body");
707
+ const doc = (0, smithy_client_1.take)(data, {
708
+ 'colleagues': smithy_client_1._json,
709
+ });
710
+ Object.assign(contents, doc);
711
+ return contents;
712
+ };
713
+ exports.de_QueryColleaguesCommand = de_QueryColleaguesCommand;
642
714
  const de_QueryUserCommand = async (output, context) => {
643
715
  if (output.statusCode !== 200 && output.statusCode >= 300) {
644
716
  return de_CommandError(output, context);
package/dist-es/Users.js CHANGED
@@ -5,6 +5,7 @@ import { BatchGetUsersPbxLinkDataV1Command, } from "./commands/BatchGetUsersPbxL
5
5
  import { ChangeUserEmailCommand, } from "./commands/ChangeUserEmailCommand";
6
6
  import { CreateBotApiKeyCommand, } from "./commands/CreateBotApiKeyCommand";
7
7
  import { CreateBotCommand, } from "./commands/CreateBotCommand";
8
+ import { CreateSystemBotCommand, } from "./commands/CreateSystemBotCommand";
8
9
  import { DeleteBotApiKeyCommand, } from "./commands/DeleteBotApiKeyCommand";
9
10
  import { DeleteBotCommand, } from "./commands/DeleteBotCommand";
10
11
  import { GetBotCallbackCommand, } from "./commands/GetBotCallbackCommand";
@@ -15,6 +16,7 @@ import { GetUserPbxLinkSuggestionCommand, } from "./commands/GetUserPbxLinkSugge
15
16
  import { GetUserPbxLinkSuggestionV1Command, } from "./commands/GetUserPbxLinkSuggestionV1Command";
16
17
  import { ListBotApiKeysCommand, } from "./commands/ListBotApiKeysCommand";
17
18
  import { ListBotsCommand, } from "./commands/ListBotsCommand";
19
+ import { QueryColleaguesCommand, } from "./commands/QueryColleaguesCommand";
18
20
  import { QueryUserCommand, } from "./commands/QueryUserCommand";
19
21
  import { QueryUsersCommand, } from "./commands/QueryUsersCommand";
20
22
  import { UpdateBotCallbackCommand, } from "./commands/UpdateBotCallbackCommand";
@@ -31,6 +33,7 @@ const commands = {
31
33
  ChangeUserEmailCommand,
32
34
  CreateBotCommand,
33
35
  CreateBotApiKeyCommand,
36
+ CreateSystemBotCommand,
34
37
  DeleteBotCommand,
35
38
  DeleteBotApiKeyCommand,
36
39
  GetBotCommand,
@@ -41,6 +44,7 @@ const commands = {
41
44
  GetUserPbxLinkSuggestionV1Command,
42
45
  ListBotApiKeysCommand,
43
46
  ListBotsCommand,
47
+ QueryColleaguesCommand,
44
48
  QueryUserCommand,
45
49
  QueryUsersCommand,
46
50
  UpdateBotCommand,
@@ -0,0 +1,17 @@
1
+ import { de_CreateSystemBotCommand, se_CreateSystemBotCommand, } from "../protocols/Aws_restJson1";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ export { $Command };
5
+ export class CreateSystemBotCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("Users", "CreateSystemBot", {})
12
+ .n("UsersClient", "CreateSystemBotCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_CreateSystemBotCommand)
15
+ .de(de_CreateSystemBotCommand)
16
+ .build() {
17
+ }
@@ -0,0 +1,17 @@
1
+ import { de_QueryColleaguesCommand, se_QueryColleaguesCommand, } from "../protocols/Aws_restJson1";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ export { $Command };
5
+ export class QueryColleaguesCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("Users", "QueryColleagues", {})
12
+ .n("UsersClient", "QueryColleaguesCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_QueryColleaguesCommand)
15
+ .de(de_QueryColleaguesCommand)
16
+ .build() {
17
+ }
@@ -4,6 +4,7 @@ export * from "./BatchGetUsersPbxLinkDataV1Command";
4
4
  export * from "./ChangeUserEmailCommand";
5
5
  export * from "./CreateBotCommand";
6
6
  export * from "./CreateBotApiKeyCommand";
7
+ export * from "./CreateSystemBotCommand";
7
8
  export * from "./DeleteBotCommand";
8
9
  export * from "./DeleteBotApiKeyCommand";
9
10
  export * from "./GetBotCommand";
@@ -14,6 +15,7 @@ export * from "./GetUserPbxLinkSuggestionCommand";
14
15
  export * from "./GetUserPbxLinkSuggestionV1Command";
15
16
  export * from "./ListBotApiKeysCommand";
16
17
  export * from "./ListBotsCommand";
18
+ export * from "./QueryColleaguesCommand";
17
19
  export * from "./QueryUserCommand";
18
20
  export * from "./QueryUsersCommand";
19
21
  export * from "./UpdateBotCommand";
@@ -30,6 +30,40 @@ export const PbxLicenseType = {
30
30
  PREMIUM: "premium",
31
31
  WIZYCONF: "wizyconf",
32
32
  };
33
+ export const PbxColleagueRole = {
34
+ ADMIN: "admin",
35
+ FAX: "fax",
36
+ PARK_ORBIT: "park_orbit",
37
+ ROOM: "room",
38
+ USER: "user",
39
+ };
40
+ export const GetPbxColleaguesDir = {
41
+ ASC: "asc",
42
+ DESC: "desc",
43
+ };
44
+ export const PbxColleaguesQueryField = {
45
+ DEPARTMENT: "department",
46
+ DIALPLAN: "dialplan",
47
+ EMAIL: "email",
48
+ EXTENSION: "extension",
49
+ FAX_DIALPLAN: "faxDialplan",
50
+ GROUP_DN: "groupDn",
51
+ ID: "id",
52
+ LANGUAGE: "language",
53
+ LICENSE_TYPE: "licenseType",
54
+ LOGIN: "login",
55
+ MOBILE_PHONE: "mobilePhone",
56
+ NAME: "name",
57
+ OFFICE_PHONE: "officePhone",
58
+ PBX_DN: "pbxDn",
59
+ PICTURE: "picture",
60
+ ROLE: "role",
61
+ SOURCE_ID: "sourceId",
62
+ };
63
+ export const PbxColleaguesSearchStrategy = {
64
+ CONTAIN: "contain",
65
+ STARTS_WITH: "startsWith",
66
+ };
33
67
  export class BotApiKeyNotFoundException extends __BaseException {
34
68
  constructor(opts) {
35
69
  super({
@@ -105,6 +105,26 @@ export const se_CreateBotApiKeyCommand = async (input, context) => {
105
105
  .b(body);
106
106
  return b.build();
107
107
  };
108
+ export const se_CreateSystemBotCommand = async (input, context) => {
109
+ const b = rb(input, context);
110
+ const headers = {
111
+ 'content-type': 'application/json',
112
+ };
113
+ b.bp("/v2/users/system-bots");
114
+ const query = map({
115
+ [_c]: [, input[_c]],
116
+ });
117
+ let body;
118
+ body = JSON.stringify(take(input, {
119
+ 'name': [],
120
+ 'picture': [],
121
+ }));
122
+ b.m("POST")
123
+ .h(headers)
124
+ .q(query)
125
+ .b(body);
126
+ return b.build();
127
+ };
108
128
  export const se_DeleteBotCommand = async (input, context) => {
109
129
  const b = rb(input, context);
110
130
  const headers = {};
@@ -245,6 +265,25 @@ export const se_ListBotsCommand = async (input, context) => {
245
265
  .b(body);
246
266
  return b.build();
247
267
  };
268
+ export const se_QueryColleaguesCommand = async (input, context) => {
269
+ const b = rb(input, context);
270
+ const headers = {
271
+ 'content-type': 'application/json',
272
+ };
273
+ b.bp("/v2/users/query-colleagues");
274
+ const query = map({
275
+ [_c]: [, input[_c]],
276
+ });
277
+ let body;
278
+ body = JSON.stringify(take(input, {
279
+ 'query': _ => _json(_),
280
+ }));
281
+ b.m("POST")
282
+ .h(headers)
283
+ .q(query)
284
+ .b(body);
285
+ return b.build();
286
+ };
248
287
  export const se_QueryUserCommand = async (input, context) => {
249
288
  const b = rb(input, context);
250
289
  const headers = {
@@ -464,6 +503,20 @@ export const de_CreateBotApiKeyCommand = async (output, context) => {
464
503
  Object.assign(contents, doc);
465
504
  return contents;
466
505
  };
506
+ export const de_CreateSystemBotCommand = async (output, context) => {
507
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
508
+ return de_CommandError(output, context);
509
+ }
510
+ const contents = map({
511
+ $metadata: deserializeMetadata(output),
512
+ });
513
+ const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
514
+ const doc = take(data, {
515
+ 'id': __expectString,
516
+ });
517
+ Object.assign(contents, doc);
518
+ return contents;
519
+ };
467
520
  export const de_DeleteBotCommand = async (output, context) => {
468
521
  if (output.statusCode !== 200 && output.statusCode >= 300) {
469
522
  return de_CommandError(output, context);
@@ -596,6 +649,20 @@ export const de_ListBotsCommand = async (output, context) => {
596
649
  Object.assign(contents, doc);
597
650
  return contents;
598
651
  };
652
+ export const de_QueryColleaguesCommand = async (output, context) => {
653
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
654
+ return de_CommandError(output, context);
655
+ }
656
+ const contents = map({
657
+ $metadata: deserializeMetadata(output),
658
+ });
659
+ const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
660
+ const doc = take(data, {
661
+ 'colleagues': _json,
662
+ });
663
+ Object.assign(contents, doc);
664
+ return contents;
665
+ };
599
666
  export const de_QueryUserCommand = async (output, context) => {
600
667
  if (output.statusCode !== 200 && output.statusCode >= 300) {
601
668
  return de_CommandError(output, context);
@@ -5,6 +5,7 @@ import { BatchGetUsersPbxLinkDataV1CommandInput, BatchGetUsersPbxLinkDataV1Comma
5
5
  import { ChangeUserEmailCommandInput, ChangeUserEmailCommandOutput } from "./commands/ChangeUserEmailCommand";
6
6
  import { CreateBotApiKeyCommandInput, CreateBotApiKeyCommandOutput } from "./commands/CreateBotApiKeyCommand";
7
7
  import { CreateBotCommandInput, CreateBotCommandOutput } from "./commands/CreateBotCommand";
8
+ import { CreateSystemBotCommandInput, CreateSystemBotCommandOutput } from "./commands/CreateSystemBotCommand";
8
9
  import { DeleteBotApiKeyCommandInput, DeleteBotApiKeyCommandOutput } from "./commands/DeleteBotApiKeyCommand";
9
10
  import { DeleteBotCommandInput, DeleteBotCommandOutput } from "./commands/DeleteBotCommand";
10
11
  import { GetBotCallbackCommandInput, GetBotCallbackCommandOutput } from "./commands/GetBotCallbackCommand";
@@ -15,6 +16,7 @@ import { GetUserPbxLinkSuggestionCommandInput, GetUserPbxLinkSuggestionCommandOu
15
16
  import { GetUserPbxLinkSuggestionV1CommandInput, GetUserPbxLinkSuggestionV1CommandOutput } from "./commands/GetUserPbxLinkSuggestionV1Command";
16
17
  import { ListBotApiKeysCommandInput, ListBotApiKeysCommandOutput } from "./commands/ListBotApiKeysCommand";
17
18
  import { ListBotsCommandInput, ListBotsCommandOutput } from "./commands/ListBotsCommand";
19
+ import { QueryColleaguesCommandInput, QueryColleaguesCommandOutput } from "./commands/QueryColleaguesCommand";
18
20
  import { QueryUserCommandInput, QueryUserCommandOutput } from "./commands/QueryUserCommand";
19
21
  import { QueryUsersCommandInput, QueryUsersCommandOutput } from "./commands/QueryUsersCommand";
20
22
  import { UpdateBotCallbackCommandInput, UpdateBotCallbackCommandOutput } from "./commands/UpdateBotCallbackCommand";
@@ -61,6 +63,12 @@ export interface Users {
61
63
  createBotApiKey(args: CreateBotApiKeyCommandInput, options?: __HttpHandlerOptions): Promise<CreateBotApiKeyCommandOutput>;
62
64
  createBotApiKey(args: CreateBotApiKeyCommandInput, cb: (err: any, data?: CreateBotApiKeyCommandOutput) => void): void;
63
65
  createBotApiKey(args: CreateBotApiKeyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateBotApiKeyCommandOutput) => void): void;
66
+ /**
67
+ * @see {@link CreateSystemBotCommand}
68
+ */
69
+ createSystemBot(args: CreateSystemBotCommandInput, options?: __HttpHandlerOptions): Promise<CreateSystemBotCommandOutput>;
70
+ createSystemBot(args: CreateSystemBotCommandInput, cb: (err: any, data?: CreateSystemBotCommandOutput) => void): void;
71
+ createSystemBot(args: CreateSystemBotCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateSystemBotCommandOutput) => void): void;
64
72
  /**
65
73
  * @see {@link DeleteBotCommand}
66
74
  */
@@ -124,6 +132,13 @@ export interface Users {
124
132
  listBots(args: ListBotsCommandInput, options?: __HttpHandlerOptions): Promise<ListBotsCommandOutput>;
125
133
  listBots(args: ListBotsCommandInput, cb: (err: any, data?: ListBotsCommandOutput) => void): void;
126
134
  listBots(args: ListBotsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListBotsCommandOutput) => void): void;
135
+ /**
136
+ * @see {@link QueryColleaguesCommand}
137
+ */
138
+ queryColleagues(): Promise<QueryColleaguesCommandOutput>;
139
+ queryColleagues(args: QueryColleaguesCommandInput, options?: __HttpHandlerOptions): Promise<QueryColleaguesCommandOutput>;
140
+ queryColleagues(args: QueryColleaguesCommandInput, cb: (err: any, data?: QueryColleaguesCommandOutput) => void): void;
141
+ queryColleagues(args: QueryColleaguesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: QueryColleaguesCommandOutput) => void): void;
127
142
  /**
128
143
  * @see {@link QueryUserCommand}
129
144
  */
@@ -4,6 +4,7 @@ import { BatchGetUsersPbxLinkDataV1CommandInput, BatchGetUsersPbxLinkDataV1Comma
4
4
  import { ChangeUserEmailCommandInput, ChangeUserEmailCommandOutput } from "./commands/ChangeUserEmailCommand";
5
5
  import { CreateBotApiKeyCommandInput, CreateBotApiKeyCommandOutput } from "./commands/CreateBotApiKeyCommand";
6
6
  import { CreateBotCommandInput, CreateBotCommandOutput } from "./commands/CreateBotCommand";
7
+ import { CreateSystemBotCommandInput, CreateSystemBotCommandOutput } from "./commands/CreateSystemBotCommand";
7
8
  import { DeleteBotApiKeyCommandInput, DeleteBotApiKeyCommandOutput } from "./commands/DeleteBotApiKeyCommand";
8
9
  import { DeleteBotCommandInput, DeleteBotCommandOutput } from "./commands/DeleteBotCommand";
9
10
  import { GetBotCallbackCommandInput, GetBotCallbackCommandOutput } from "./commands/GetBotCallbackCommand";
@@ -14,6 +15,7 @@ import { GetUserPbxLinkSuggestionCommandInput, GetUserPbxLinkSuggestionCommandOu
14
15
  import { GetUserPbxLinkSuggestionV1CommandInput, GetUserPbxLinkSuggestionV1CommandOutput } from "./commands/GetUserPbxLinkSuggestionV1Command";
15
16
  import { ListBotApiKeysCommandInput, ListBotApiKeysCommandOutput } from "./commands/ListBotApiKeysCommand";
16
17
  import { ListBotsCommandInput, ListBotsCommandOutput } from "./commands/ListBotsCommand";
18
+ import { QueryColleaguesCommandInput, QueryColleaguesCommandOutput } from "./commands/QueryColleaguesCommand";
17
19
  import { QueryUserCommandInput, QueryUserCommandOutput } from "./commands/QueryUserCommand";
18
20
  import { QueryUsersCommandInput, QueryUsersCommandOutput } from "./commands/QueryUsersCommand";
19
21
  import { UpdateBotCallbackCommandInput, UpdateBotCallbackCommandOutput } from "./commands/UpdateBotCallbackCommand";
@@ -33,11 +35,11 @@ export { __Client };
33
35
  /**
34
36
  * @public
35
37
  */
36
- export type ServiceInputTypes = BatchGetUsersCommandInput | BatchGetUsersPbxLinkDataCommandInput | BatchGetUsersPbxLinkDataV1CommandInput | ChangeUserEmailCommandInput | CreateBotApiKeyCommandInput | CreateBotCommandInput | DeleteBotApiKeyCommandInput | DeleteBotCommandInput | GetBotCallbackCommandInput | GetBotCommandInput | GetUserCommandInput | GetUserPbxLinkDataCommandInput | GetUserPbxLinkSuggestionCommandInput | GetUserPbxLinkSuggestionV1CommandInput | ListBotApiKeysCommandInput | ListBotsCommandInput | QueryUserCommandInput | QueryUsersCommandInput | UpdateBotCallbackCommandInput | UpdateBotCommandInput | UploadPictureCommandInput | UploadPictureV1CommandInput | VerifyBotSecretKeyCommandInput | VerifyBotSecretKeyV1CommandInput;
38
+ export type ServiceInputTypes = BatchGetUsersCommandInput | BatchGetUsersPbxLinkDataCommandInput | BatchGetUsersPbxLinkDataV1CommandInput | ChangeUserEmailCommandInput | CreateBotApiKeyCommandInput | CreateBotCommandInput | CreateSystemBotCommandInput | DeleteBotApiKeyCommandInput | DeleteBotCommandInput | GetBotCallbackCommandInput | GetBotCommandInput | GetUserCommandInput | GetUserPbxLinkDataCommandInput | GetUserPbxLinkSuggestionCommandInput | GetUserPbxLinkSuggestionV1CommandInput | ListBotApiKeysCommandInput | ListBotsCommandInput | QueryColleaguesCommandInput | QueryUserCommandInput | QueryUsersCommandInput | UpdateBotCallbackCommandInput | UpdateBotCommandInput | UploadPictureCommandInput | UploadPictureV1CommandInput | VerifyBotSecretKeyCommandInput | VerifyBotSecretKeyV1CommandInput;
37
39
  /**
38
40
  * @public
39
41
  */
40
- export type ServiceOutputTypes = BatchGetUsersCommandOutput | BatchGetUsersPbxLinkDataCommandOutput | BatchGetUsersPbxLinkDataV1CommandOutput | ChangeUserEmailCommandOutput | CreateBotApiKeyCommandOutput | CreateBotCommandOutput | DeleteBotApiKeyCommandOutput | DeleteBotCommandOutput | GetBotCallbackCommandOutput | GetBotCommandOutput | GetUserCommandOutput | GetUserPbxLinkDataCommandOutput | GetUserPbxLinkSuggestionCommandOutput | GetUserPbxLinkSuggestionV1CommandOutput | ListBotApiKeysCommandOutput | ListBotsCommandOutput | QueryUserCommandOutput | QueryUsersCommandOutput | UpdateBotCallbackCommandOutput | UpdateBotCommandOutput | UploadPictureCommandOutput | UploadPictureV1CommandOutput | VerifyBotSecretKeyCommandOutput | VerifyBotSecretKeyV1CommandOutput;
42
+ export type ServiceOutputTypes = BatchGetUsersCommandOutput | BatchGetUsersPbxLinkDataCommandOutput | BatchGetUsersPbxLinkDataV1CommandOutput | ChangeUserEmailCommandOutput | CreateBotApiKeyCommandOutput | CreateBotCommandOutput | CreateSystemBotCommandOutput | DeleteBotApiKeyCommandOutput | DeleteBotCommandOutput | GetBotCallbackCommandOutput | GetBotCommandOutput | GetUserCommandOutput | GetUserPbxLinkDataCommandOutput | GetUserPbxLinkSuggestionCommandOutput | GetUserPbxLinkSuggestionV1CommandOutput | ListBotApiKeysCommandOutput | ListBotsCommandOutput | QueryColleaguesCommandOutput | QueryUserCommandOutput | QueryUsersCommandOutput | UpdateBotCallbackCommandOutput | UpdateBotCommandOutput | UploadPictureCommandOutput | UploadPictureV1CommandOutput | VerifyBotSecretKeyCommandOutput | VerifyBotSecretKeyV1CommandOutput;
41
43
  /**
42
44
  * @public
43
45
  */
@@ -0,0 +1,66 @@
1
+ import { ServiceInputTypes, ServiceOutputTypes, UsersClientResolvedConfig } from "../UsersClient";
2
+ import { CreateSystemBotInput, CreateSystemBotOutput } 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 CreateSystemBotCommand}.
14
+ */
15
+ export interface CreateSystemBotCommandInput extends CreateSystemBotInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link CreateSystemBotCommand}.
21
+ */
22
+ export interface CreateSystemBotCommandOutput extends CreateSystemBotOutput, __MetadataBearer {
23
+ }
24
+ declare const CreateSystemBotCommand_base: {
25
+ new (input: CreateSystemBotCommandInput): import("@smithy/smithy-client").CommandImpl<CreateSystemBotCommandInput, CreateSystemBotCommandOutput, UsersClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: CreateSystemBotCommandInput): import("@smithy/smithy-client").CommandImpl<CreateSystemBotCommandInput, CreateSystemBotCommandOutput, 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, CreateSystemBotCommand } from "@wildix/xbees-users-client"; // ES Modules import
36
+ * // const { UsersClient, CreateSystemBotCommand } = require("@wildix/xbees-users-client"); // CommonJS import
37
+ * const client = new UsersClient(config);
38
+ * const input = { // CreateSystemBotInput
39
+ * company: "STRING_VALUE",
40
+ * name: "STRING_VALUE", // required
41
+ * picture: "STRING_VALUE",
42
+ * };
43
+ * const command = new CreateSystemBotCommand(input);
44
+ * const response = await client.send(command);
45
+ * // { // CreateSystemBotOutput
46
+ * // id: "STRING_VALUE", // required
47
+ * // };
48
+ *
49
+ * ```
50
+ *
51
+ * @param CreateSystemBotCommandInput - {@link CreateSystemBotCommandInput}
52
+ * @returns {@link CreateSystemBotCommandOutput}
53
+ * @see {@link CreateSystemBotCommandInput} for command's `input` shape.
54
+ * @see {@link CreateSystemBotCommandOutput} for command's `response` shape.
55
+ * @see {@link UsersClientResolvedConfig | config} for UsersClient's `config` shape.
56
+ *
57
+ * @throws {@link ForbiddenException} (client fault)
58
+ *
59
+ * @throws {@link ValidationException} (client fault)
60
+ *
61
+ * @throws {@link UsersServiceException}
62
+ * <p>Base exception class for all service exceptions from Users service.</p>
63
+ *
64
+ */
65
+ export declare class CreateSystemBotCommand extends CreateSystemBotCommand_base {
66
+ }
@@ -0,0 +1,138 @@
1
+ import { ServiceInputTypes, ServiceOutputTypes, UsersClientResolvedConfig } from "../UsersClient";
2
+ import { QueryColleaguesInput, QueryColleaguesOutput } 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 QueryColleaguesCommand}.
14
+ */
15
+ export interface QueryColleaguesCommandInput extends QueryColleaguesInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link QueryColleaguesCommand}.
21
+ */
22
+ export interface QueryColleaguesCommandOutput extends QueryColleaguesOutput, __MetadataBearer {
23
+ }
24
+ declare const QueryColleaguesCommand_base: {
25
+ new (input: QueryColleaguesCommandInput): import("@smithy/smithy-client").CommandImpl<QueryColleaguesCommandInput, QueryColleaguesCommandOutput, UsersClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (...[input]: [] | [QueryColleaguesCommandInput]): import("@smithy/smithy-client").CommandImpl<QueryColleaguesCommandInput, QueryColleaguesCommandOutput, 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, QueryColleaguesCommand } from "@wildix/xbees-users-client"; // ES Modules import
36
+ * // const { UsersClient, QueryColleaguesCommand } = require("@wildix/xbees-users-client"); // CommonJS import
37
+ * const client = new UsersClient(config);
38
+ * const input = { // QueryColleaguesInput
39
+ * company: "STRING_VALUE",
40
+ * query: { // QueryColleaguesParameters
41
+ * id: [ // ColleaguesFilterList
42
+ * "STRING_VALUE",
43
+ * ],
44
+ * extension: [
45
+ * "STRING_VALUE",
46
+ * ],
47
+ * officePhone: [
48
+ * "STRING_VALUE",
49
+ * ],
50
+ * mobilePhone: [
51
+ * "STRING_VALUE",
52
+ * ],
53
+ * name: [
54
+ * "STRING_VALUE",
55
+ * ],
56
+ * email: "<ColleaguesFilterList>",
57
+ * department: "<ColleaguesFilterList>",
58
+ * search: "STRING_VALUE",
59
+ * searchFields: [ // PbxColleaguesQueryFieldList
60
+ * "extension" || "officePhone" || "mobilePhone" || "name" || "email" || "role" || "groupDn" || "language" || "dialplan" || "faxDialplan" || "department" || "login" || "id" || "pbxDn" || "picture" || "sourceId" || "licenseType",
61
+ * ],
62
+ * searchStrategy: "contain" || "startsWith",
63
+ * sort: [
64
+ * "extension" || "officePhone" || "mobilePhone" || "name" || "email" || "role" || "groupDn" || "language" || "dialplan" || "faxDialplan" || "department" || "login" || "id" || "pbxDn" || "picture" || "sourceId" || "licenseType",
65
+ * ],
66
+ * start: Number("int"),
67
+ * count: Number("int"),
68
+ * dir: "asc" || "desc",
69
+ * },
70
+ * };
71
+ * const command = new QueryColleaguesCommand(input);
72
+ * const response = await client.send(command);
73
+ * // { // QueryColleaguesOutput
74
+ * // colleagues: [ // QueryColleaguesOutputItemList // required
75
+ * // { // QueryColleaguesOutputItem
76
+ * // user: { // User
77
+ * // id: "STRING_VALUE", // required
78
+ * // name: "STRING_VALUE",
79
+ * // email: "STRING_VALUE",
80
+ * // phone: "STRING_VALUE",
81
+ * // picture: "STRING_VALUE",
82
+ * // locale: "STRING_VALUE",
83
+ * // timeZone: "STRING_VALUE",
84
+ * // company: "STRING_VALUE",
85
+ * // bot: true || false,
86
+ * // pbxDomain: "STRING_VALUE",
87
+ * // pbxPort: "STRING_VALUE",
88
+ * // pbxExtension: "STRING_VALUE",
89
+ * // pbxSerial: "STRING_VALUE",
90
+ * // pbxUserId: "STRING_VALUE",
91
+ * // createdAt: "STRING_VALUE",
92
+ * // updatedAt: "STRING_VALUE",
93
+ * // },
94
+ * // colleague: { // PbxColleague
95
+ * // id: "STRING_VALUE", // required
96
+ * // name: "STRING_VALUE",
97
+ * // login: "STRING_VALUE",
98
+ * // extension: "STRING_VALUE", // required
99
+ * // officePhone: "STRING_VALUE",
100
+ * // mobilePhone: "STRING_VALUE",
101
+ * // faxNumber: "STRING_VALUE",
102
+ * // email: "STRING_VALUE",
103
+ * // pbxDn: "STRING_VALUE", // required
104
+ * // pbx: "STRING_VALUE", // required
105
+ * // role: "admin" || "user" || "fax" || "park_orbit" || "room", // required
106
+ * // groupName: "STRING_VALUE", // required
107
+ * // groupDn: "STRING_VALUE", // required
108
+ * // language: "STRING_VALUE", // required
109
+ * // dialplan: "STRING_VALUE", // required
110
+ * // faxDialplan: "STRING_VALUE", // required
111
+ * // department: "STRING_VALUE",
112
+ * // picture: "STRING_VALUE", // required
113
+ * // sourceId: "STRING_VALUE",
114
+ * // licenseType: "basic" || "essential" || "business" || "premium" || "wizyconf", // required
115
+ * // jid: "STRING_VALUE", // required
116
+ * // },
117
+ * // },
118
+ * // ],
119
+ * // };
120
+ *
121
+ * ```
122
+ *
123
+ * @param QueryColleaguesCommandInput - {@link QueryColleaguesCommandInput}
124
+ * @returns {@link QueryColleaguesCommandOutput}
125
+ * @see {@link QueryColleaguesCommandInput} for command's `input` shape.
126
+ * @see {@link QueryColleaguesCommandOutput} for command's `response` shape.
127
+ * @see {@link UsersClientResolvedConfig | config} for UsersClient's `config` shape.
128
+ *
129
+ * @throws {@link ForbiddenException} (client fault)
130
+ *
131
+ * @throws {@link ValidationException} (client fault)
132
+ *
133
+ * @throws {@link UsersServiceException}
134
+ * <p>Base exception class for all service exceptions from Users service.</p>
135
+ *
136
+ */
137
+ export declare class QueryColleaguesCommand extends QueryColleaguesCommand_base {
138
+ }
@@ -4,6 +4,7 @@ export * from "./BatchGetUsersPbxLinkDataV1Command";
4
4
  export * from "./ChangeUserEmailCommand";
5
5
  export * from "./CreateBotCommand";
6
6
  export * from "./CreateBotApiKeyCommand";
7
+ export * from "./CreateSystemBotCommand";
7
8
  export * from "./DeleteBotCommand";
8
9
  export * from "./DeleteBotApiKeyCommand";
9
10
  export * from "./GetBotCommand";
@@ -14,6 +15,7 @@ export * from "./GetUserPbxLinkSuggestionCommand";
14
15
  export * from "./GetUserPbxLinkSuggestionV1Command";
15
16
  export * from "./ListBotApiKeysCommand";
16
17
  export * from "./ListBotsCommand";
18
+ export * from "./QueryColleaguesCommand";
17
19
  export * from "./QueryUserCommand";
18
20
  export * from "./QueryUsersCommand";
19
21
  export * from "./UpdateBotCommand";
@@ -106,6 +106,98 @@ export interface BotWebhookEndpoint {
106
106
  url: string;
107
107
  secret: string;
108
108
  }
109
+ /**
110
+ * @public
111
+ * @enum
112
+ */
113
+ export declare const PbxColleagueRole: {
114
+ readonly ADMIN: "admin";
115
+ readonly FAX: "fax";
116
+ readonly PARK_ORBIT: "park_orbit";
117
+ readonly ROOM: "room";
118
+ readonly USER: "user";
119
+ };
120
+ /**
121
+ * @public
122
+ */
123
+ export type PbxColleagueRole = typeof PbxColleagueRole[keyof typeof PbxColleagueRole];
124
+ /**
125
+ * @public
126
+ */
127
+ export interface PbxColleague {
128
+ id: string;
129
+ name?: string;
130
+ login?: string;
131
+ extension: string;
132
+ officePhone?: string;
133
+ mobilePhone?: string;
134
+ faxNumber?: string;
135
+ email?: string;
136
+ pbxDn: string;
137
+ pbx: string;
138
+ role: PbxColleagueRole;
139
+ groupName: string;
140
+ groupDn: string;
141
+ language: string;
142
+ dialplan: string;
143
+ faxDialplan: string;
144
+ department?: string;
145
+ picture: string;
146
+ sourceId?: string;
147
+ licenseType: PbxLicenseType;
148
+ jid: string;
149
+ }
150
+ /**
151
+ * @public
152
+ * @enum
153
+ */
154
+ export declare const GetPbxColleaguesDir: {
155
+ readonly ASC: "asc";
156
+ readonly DESC: "desc";
157
+ };
158
+ /**
159
+ * @public
160
+ */
161
+ export type GetPbxColleaguesDir = typeof GetPbxColleaguesDir[keyof typeof GetPbxColleaguesDir];
162
+ /**
163
+ * @public
164
+ * @enum
165
+ */
166
+ export declare const PbxColleaguesQueryField: {
167
+ readonly DEPARTMENT: "department";
168
+ readonly DIALPLAN: "dialplan";
169
+ readonly EMAIL: "email";
170
+ readonly EXTENSION: "extension";
171
+ readonly FAX_DIALPLAN: "faxDialplan";
172
+ readonly GROUP_DN: "groupDn";
173
+ readonly ID: "id";
174
+ readonly LANGUAGE: "language";
175
+ readonly LICENSE_TYPE: "licenseType";
176
+ readonly LOGIN: "login";
177
+ readonly MOBILE_PHONE: "mobilePhone";
178
+ readonly NAME: "name";
179
+ readonly OFFICE_PHONE: "officePhone";
180
+ readonly PBX_DN: "pbxDn";
181
+ readonly PICTURE: "picture";
182
+ readonly ROLE: "role";
183
+ readonly SOURCE_ID: "sourceId";
184
+ };
185
+ /**
186
+ * @public
187
+ */
188
+ export type PbxColleaguesQueryField = typeof PbxColleaguesQueryField[keyof typeof PbxColleaguesQueryField];
189
+ /**
190
+ * @public
191
+ * @enum
192
+ */
193
+ export declare const PbxColleaguesSearchStrategy: {
194
+ readonly CONTAIN: "contain";
195
+ readonly STARTS_WITH: "startsWith";
196
+ };
197
+ /**
198
+ * @public
199
+ */
200
+ export type PbxColleaguesSearchStrategy = typeof PbxColleaguesSearchStrategy[keyof typeof PbxColleaguesSearchStrategy];
109
201
  /**
110
202
  * @public
111
203
  */
@@ -612,6 +704,28 @@ export interface CreateBotApiKeyOutput {
612
704
  bot: Bot;
613
705
  key: BotApiKey;
614
706
  }
707
+ /**
708
+ * @public
709
+ */
710
+ export interface CreateSystemBotInput {
711
+ /**
712
+ * The unique identifier of the tenant when a service token is used.
713
+ * @public
714
+ */
715
+ company?: string;
716
+ name: string;
717
+ /**
718
+ * A URL pointing to the bot's avatar.
719
+ * @public
720
+ */
721
+ picture?: string;
722
+ }
723
+ /**
724
+ * @public
725
+ */
726
+ export interface CreateSystemBotOutput {
727
+ id: string;
728
+ }
615
729
  /**
616
730
  * @public
617
731
  */
@@ -775,6 +889,61 @@ export interface ListBotsInput {
775
889
  export interface ListBotsOutput {
776
890
  bots: (Bot)[];
777
891
  }
892
+ /**
893
+ * @public
894
+ */
895
+ export interface QueryColleaguesParameters {
896
+ id?: (string)[];
897
+ extension?: (string)[];
898
+ officePhone?: (string)[];
899
+ mobilePhone?: (string)[];
900
+ name?: (string)[];
901
+ email?: (string)[];
902
+ department?: (string)[];
903
+ search?: string;
904
+ searchFields?: (PbxColleaguesQueryField)[];
905
+ searchStrategy?: PbxColleaguesSearchStrategy;
906
+ sort?: (PbxColleaguesQueryField)[];
907
+ start?: number;
908
+ count?: number;
909
+ dir?: GetPbxColleaguesDir;
910
+ }
911
+ /**
912
+ * @public
913
+ */
914
+ export interface QueryColleaguesInput {
915
+ /**
916
+ * The unique identifier of the tenant when a service token is used.
917
+ * @public
918
+ */
919
+ company?: string;
920
+ query?: QueryColleaguesParameters;
921
+ }
922
+ /**
923
+ * @public
924
+ */
925
+ export interface QueryColleaguesOutputItem {
926
+ /**
927
+ * A user object associated on the cloud for this colleague that is registered on the WMS.
928
+ * @public
929
+ */
930
+ user?: User;
931
+ /**
932
+ * A colleague object returned by the PBX.
933
+ * @public
934
+ */
935
+ colleague: PbxColleague;
936
+ }
937
+ /**
938
+ * @public
939
+ */
940
+ export interface QueryColleaguesOutput {
941
+ /**
942
+ * A list of users that exist in the platform and matches predicate if specified.
943
+ * @public
944
+ */
945
+ colleagues: (QueryColleaguesOutputItem)[];
946
+ }
778
947
  /**
779
948
  * @public
780
949
  */
@@ -4,6 +4,7 @@ import { BatchGetUsersPbxLinkDataV1CommandInput, BatchGetUsersPbxLinkDataV1Comma
4
4
  import { ChangeUserEmailCommandInput, ChangeUserEmailCommandOutput } from "../commands/ChangeUserEmailCommand";
5
5
  import { CreateBotApiKeyCommandInput, CreateBotApiKeyCommandOutput } from "../commands/CreateBotApiKeyCommand";
6
6
  import { CreateBotCommandInput, CreateBotCommandOutput } from "../commands/CreateBotCommand";
7
+ import { CreateSystemBotCommandInput, CreateSystemBotCommandOutput } from "../commands/CreateSystemBotCommand";
7
8
  import { DeleteBotApiKeyCommandInput, DeleteBotApiKeyCommandOutput } from "../commands/DeleteBotApiKeyCommand";
8
9
  import { DeleteBotCommandInput, DeleteBotCommandOutput } from "../commands/DeleteBotCommand";
9
10
  import { GetBotCallbackCommandInput, GetBotCallbackCommandOutput } from "../commands/GetBotCallbackCommand";
@@ -14,6 +15,7 @@ import { GetUserPbxLinkSuggestionCommandInput, GetUserPbxLinkSuggestionCommandOu
14
15
  import { GetUserPbxLinkSuggestionV1CommandInput, GetUserPbxLinkSuggestionV1CommandOutput } from "../commands/GetUserPbxLinkSuggestionV1Command";
15
16
  import { ListBotApiKeysCommandInput, ListBotApiKeysCommandOutput } from "../commands/ListBotApiKeysCommand";
16
17
  import { ListBotsCommandInput, ListBotsCommandOutput } from "../commands/ListBotsCommand";
18
+ import { QueryColleaguesCommandInput, QueryColleaguesCommandOutput } from "../commands/QueryColleaguesCommand";
17
19
  import { QueryUserCommandInput, QueryUserCommandOutput } from "../commands/QueryUserCommand";
18
20
  import { QueryUsersCommandInput, QueryUsersCommandOutput } from "../commands/QueryUsersCommand";
19
21
  import { UpdateBotCallbackCommandInput, UpdateBotCallbackCommandOutput } from "../commands/UpdateBotCallbackCommand";
@@ -48,6 +50,10 @@ export declare const se_CreateBotCommand: (input: CreateBotCommandInput, context
48
50
  * serializeAws_restJson1CreateBotApiKeyCommand
49
51
  */
50
52
  export declare const se_CreateBotApiKeyCommand: (input: CreateBotApiKeyCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
53
+ /**
54
+ * serializeAws_restJson1CreateSystemBotCommand
55
+ */
56
+ export declare const se_CreateSystemBotCommand: (input: CreateSystemBotCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
51
57
  /**
52
58
  * serializeAws_restJson1DeleteBotCommand
53
59
  */
@@ -88,6 +94,10 @@ export declare const se_ListBotApiKeysCommand: (input: ListBotApiKeysCommandInpu
88
94
  * serializeAws_restJson1ListBotsCommand
89
95
  */
90
96
  export declare const se_ListBotsCommand: (input: ListBotsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
97
+ /**
98
+ * serializeAws_restJson1QueryColleaguesCommand
99
+ */
100
+ export declare const se_QueryColleaguesCommand: (input: QueryColleaguesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
91
101
  /**
92
102
  * serializeAws_restJson1QueryUserCommand
93
103
  */
@@ -144,6 +154,10 @@ export declare const de_CreateBotCommand: (output: __HttpResponse, context: __Se
144
154
  * deserializeAws_restJson1CreateBotApiKeyCommand
145
155
  */
146
156
  export declare const de_CreateBotApiKeyCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CreateBotApiKeyCommandOutput>;
157
+ /**
158
+ * deserializeAws_restJson1CreateSystemBotCommand
159
+ */
160
+ export declare const de_CreateSystemBotCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CreateSystemBotCommandOutput>;
147
161
  /**
148
162
  * deserializeAws_restJson1DeleteBotCommand
149
163
  */
@@ -184,6 +198,10 @@ export declare const de_ListBotApiKeysCommand: (output: __HttpResponse, context:
184
198
  * deserializeAws_restJson1ListBotsCommand
185
199
  */
186
200
  export declare const de_ListBotsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListBotsCommandOutput>;
201
+ /**
202
+ * deserializeAws_restJson1QueryColleaguesCommand
203
+ */
204
+ export declare const de_QueryColleaguesCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<QueryColleaguesCommandOutput>;
187
205
  /**
188
206
  * deserializeAws_restJson1QueryUserCommand
189
207
  */
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.25",
4
+ "version": "1.0.27",
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",