@wildix/xbees-users-client 4.0.11 → 4.0.12

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.
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.WorkspaceNotFoundException = exports.UserQueryPredicateNotMetException = exports.IdentityNotFoundException = exports.IdentityAlreadyLinkedException = exports.PublicAccessIsRestrictedException = exports.UserNotFoundException = exports.UserCompanyNotValidException = exports.CannotUnbindDefaultWorkspaceException = exports.CannotRemovePrimaryIdentityException = exports.BotSecretKeyNotValidException = exports.BotNotFoundException = exports.BotApiKeyNotFoundException = exports.AccountNotFoundException = exports.WidgetNotFoundException = exports.ChannelNotFoundException = exports.ValidationException = exports.ForbiddenException = void 0;
3
+ exports.WorkspaceNotFoundException = exports.UserQueryPredicateNotMetException = exports.IdentityNotFoundException = exports.IdentityAlreadyLinkedException = exports.PublicAccessIsRestrictedException = exports.UserNotFoundException = exports.UserCompanyNotValidException = exports.CannotUnbindDefaultWorkspaceException = exports.CannotRemovePrimaryIdentityException = exports.BotSecretKeyNotValidException = exports.BotNotFoundException = exports.BotApiKeyNotFoundException = exports.BotAlreadyExistsException = exports.AccountNotFoundException = exports.WidgetNotFoundException = exports.ChannelNotFoundException = exports.ValidationException = exports.ForbiddenException = void 0;
4
4
  const UsersServiceException_1 = require("./UsersServiceException");
5
5
  class ForbiddenException extends UsersServiceException_1.UsersServiceException {
6
6
  name = "ForbiddenException";
@@ -67,6 +67,19 @@ class AccountNotFoundException extends UsersServiceException_1.UsersServiceExcep
67
67
  }
68
68
  }
69
69
  exports.AccountNotFoundException = AccountNotFoundException;
70
+ class BotAlreadyExistsException extends UsersServiceException_1.UsersServiceException {
71
+ name = "BotAlreadyExistsException";
72
+ $fault = "client";
73
+ constructor(opts) {
74
+ super({
75
+ name: "BotAlreadyExistsException",
76
+ $fault: "client",
77
+ ...opts,
78
+ });
79
+ Object.setPrototypeOf(this, BotAlreadyExistsException.prototype);
80
+ }
81
+ }
82
+ exports.BotAlreadyExistsException = BotAlreadyExistsException;
70
83
  class BotApiKeyNotFoundException extends UsersServiceException_1.UsersServiceException {
71
84
  name = "BotApiKeyNotFoundException";
72
85
  $fault = "client";
@@ -1,14 +1,15 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.BotSqsEndpoint$ = exports.BotOpenAiAssistantEndpoint$ = exports.BotLlmTool$ = exports.BotLlmFunctionIntegrationWebhookHeader$ = exports.BotLlmFunctionIntegrationWebhookAuthorizationOAuth$ = exports.BotLlmFunctionIntegrationWebhookAuthorizationBearer$ = exports.BotLlmFunctionIntegrationWebhookAuthorizationBasic$ = exports.BotLlmFunctionIntegrationWebhook$ = exports.BotLlmFunctionDefinition$ = exports.BotLlmEndpoint$ = exports.BotLlmEmbeddedTool$ = exports.BotKnowledgeBase$ = exports.BotDialogflowCxEndpoint$ = exports.BotCapabilityToolPipeline$ = exports.BotCapabilityTool$ = exports.BotCallback$ = exports.BotApiKey$ = exports.Bot$ = exports.BatchGetUsersPbxLinkDataV1Output$ = exports.BatchGetUsersPbxLinkDataV1Input$ = exports.BatchGetUsersPbxLinkDataOutput$ = exports.BatchGetUsersPbxLinkDataInput$ = exports.BatchGetUsersOutput$ = exports.BatchGetUsersInput$ = exports.BatchGetUsersEmailNotificationsSettingsOutput$ = exports.BatchGetUsersEmailNotificationsSettingsInput$ = exports.Account$ = exports.UserToInvite$ = exports.User$ = exports.SkippedMember$ = exports.PbxColleague$ = exports.errorTypeRegistries = exports.WorkspaceNotFoundException$ = exports.UserQueryPredicateNotMetException$ = exports.UserNotFoundException$ = exports.UserCompanyNotValidException$ = exports.PublicAccessIsRestrictedException$ = exports.IdentityNotFoundException$ = exports.IdentityAlreadyLinkedException$ = exports.CannotUnbindDefaultWorkspaceException$ = exports.CannotRemovePrimaryIdentityException$ = exports.BotSecretKeyNotValidException$ = exports.BotNotFoundException$ = exports.BotApiKeyNotFoundException$ = exports.AccountNotFoundException$ = exports.WidgetNotFoundException$ = exports.ChannelNotFoundException$ = exports.ValidationException$ = exports.ForbiddenException$ = exports.UsersServiceException$ = void 0;
4
- exports.ListBotApiKeysInput$ = exports.LinkIdentityOutput$ = exports.LinkIdentityInput$ = exports.InviteOutput$ = exports.InviteInput$ = exports.IntelligenceSearchOutput$ = exports.IntelligenceSearchInput$ = exports.Identity$ = exports.GetUserPbxLinkSuggestionV1Output$ = exports.GetUserPbxLinkSuggestionV1Input$ = exports.GetUserPbxLinkSuggestionOutput$ = exports.GetUserPbxLinkSuggestionInput$ = exports.GetUserPbxLinkDataOutput$ = exports.GetUserPbxLinkDataInput$ = exports.GetUserOutput$ = exports.GetUserInput$ = exports.GetUserEmailNotificationsSettingsOutput$ = exports.GetUserEmailNotificationsSettingsInput$ = exports.GetBotOutput$ = exports.GetBotInput$ = exports.GetBotCallbackOutput$ = exports.GetBotCallbackInput$ = exports.GetAppVersionOutput$ = exports.GetAppVersionInput$ = exports.GetAccountOutput$ = exports.GetAccountInput$ = exports.DirectoryItem$ = exports.DeleteBotOutput$ = exports.DeleteBotInput$ = exports.DeleteBotApiKeyOutput$ = exports.DeleteBotApiKeyInput$ = exports.CreateSystemBotOutput$ = exports.CreateSystemBotInput$ = exports.CreateBotOutput$ = exports.CreateBotInput$ = exports.CreateBotApiKeyOutput$ = exports.CreateBotApiKeyInput$ = exports.CreateAnonymousSessionOutput$ = exports.CreateAnonymousSessionInput$ = exports.ChangeUserEmailOutput$ = exports.ChangeUserEmailInput$ = exports.BotWebhookEndpoint$ = exports.BotToolVariablesAnnotation$ = exports.BotToolVariablePredefinedHandler$ = exports.BotToolVariableGuidedHandler$ = exports.BotToolVariableAutoHandler$ = exports.BotToolVariable$ = exports.BotToolTagAnnotation$ = exports.BotToolResultAnnotation$ = exports.BotToolCommentAnnotation$ = void 0;
5
- exports.UserQueryPredicate$ = exports.UserPersonalInfo$ = exports.UserPbxServices$ = exports.UserPbxPersonalSettings$ = exports.UserPbxLinkSuggestion$ = exports.UserPbxLinkData$ = exports.UserPbxInfo$ = exports.UserPbxDialplanSettings$ = exports.UserEmailNotificationsSettings$ = exports.UploadPictureV1Output$ = exports.UploadPictureV1Input$ = exports.UploadPictureOutput$ = exports.UploadPictureInput$ = exports.UpdateWorkspaceOutput$ = exports.UpdateWorkspaceInput$ = exports.UpdateUserEmailNotificationsSettingsOutput$ = exports.UpdateUserEmailNotificationsSettingsInput$ = exports.UpdateBotOutput$ = exports.UpdateBotInput$ = exports.UpdateBotCallbackOutput$ = exports.UpdateBotCallbackInput$ = exports.UpdateAccountOutput$ = exports.UpdateAccountInput$ = exports.UnlinkWorkspaceOutput$ = exports.UnlinkWorkspaceInput$ = exports.UnlinkIdentityOutput$ = exports.UnlinkIdentityInput$ = exports.ToggleUnreadEmailNotificationsSubscriptionOutput$ = exports.ToggleUnreadEmailNotificationsSubscriptionInput$ = exports.ToggleTranscriptionEmailNotificationsSubscriptionOutput$ = exports.ToggleTranscriptionEmailNotificationsSubscriptionInput$ = exports.QueryUsersOutput$ = exports.QueryUsersInput$ = exports.QueryUserOutput$ = exports.QueryUserInput$ = exports.QueryColleaguesParameters$ = exports.QueryColleaguesOutputItem$ = exports.QueryColleaguesOutput$ = exports.QueryColleaguesInput$ = exports.PartialUpdateUserEmailNotificationsSettingsOutput$ = exports.PartialUpdateUserEmailNotificationsSettingsInput$ = exports.OldEmailData$ = exports.NewEmailData$ = exports.ListWorkspacesOutput$ = exports.ListWorkspacesInput$ = exports.ListIdentitiesOutput$ = exports.ListIdentitiesInput$ = exports.ListBotsOutput$ = exports.ListBotsInput$ = exports.ListBotApiKeysOutput$ = void 0;
6
- exports.UnlinkWorkspace$ = exports.UnlinkIdentity$ = exports.ToggleUnreadEmailNotificationsSubscription$ = exports.ToggleTranscriptionEmailNotificationsSubscription$ = exports.QueryUsers$ = exports.QueryUser$ = exports.QueryColleagues$ = exports.PartialUpdateUserEmailNotificationsSettings$ = exports.ListWorkspaces$ = exports.ListIdentities$ = exports.ListBots$ = exports.ListBotApiKeys$ = exports.LinkIdentity$ = exports.Invite$ = exports.IntelligenceSearch$ = exports.GetUserPbxLinkSuggestionV1$ = exports.GetUserPbxLinkSuggestion$ = exports.GetUserPbxLinkData$ = exports.GetUserEmailNotificationsSettings$ = exports.GetUser$ = exports.GetBotCallback$ = exports.GetBot$ = exports.GetAppVersion$ = exports.GetAccount$ = exports.DeleteBotApiKey$ = exports.DeleteBot$ = exports.CreateSystemBot$ = exports.CreateBotApiKey$ = exports.CreateBot$ = exports.CreateAnonymousSession$ = exports.ChangeUserEmail$ = exports.BatchGetUsersPbxLinkDataV1$ = exports.BatchGetUsersPbxLinkData$ = exports.BatchGetUsersEmailNotificationsSettings$ = exports.BatchGetUsers$ = exports.UserQuery$ = exports.BotToolVariableHandler$ = exports.BotToolAnnotation$ = exports.BotLlmFunctionIntegrationWebhookAuthorization$ = exports.BotLlmFunctionIntegration$ = exports.BotEndpoint$ = exports.BotCapability$ = exports.AnonymousEntryContext$ = exports.Workspace$ = exports.VerifyIdentityOutput$ = exports.VerifyIdentityInput$ = exports.VerifyBotSecretKeyV1Output$ = exports.VerifyBotSecretKeyV1Input$ = exports.VerifyBotSecretKeyOutput$ = exports.VerifyBotSecretKeyInput$ = void 0;
7
- exports.VerifyIdentity$ = exports.VerifyBotSecretKeyV1$ = exports.VerifyBotSecretKey$ = exports.UploadPictureV1$ = exports.UploadPicture$ = exports.UpdateWorkspace$ = exports.UpdateUserEmailNotificationsSettings$ = exports.UpdateBotCallback$ = exports.UpdateBot$ = exports.UpdateAccount$ = void 0;
3
+ exports.BotOpenAiAssistantEndpoint$ = exports.BotLlmTool$ = exports.BotLlmFunctionIntegrationWebhookHeader$ = exports.BotLlmFunctionIntegrationWebhookAuthorizationOAuth$ = exports.BotLlmFunctionIntegrationWebhookAuthorizationBearer$ = exports.BotLlmFunctionIntegrationWebhookAuthorizationBasic$ = exports.BotLlmFunctionIntegrationWebhook$ = exports.BotLlmFunctionDefinition$ = exports.BotLlmEndpoint$ = exports.BotLlmEmbeddedTool$ = exports.BotKnowledgeBase$ = exports.BotDialogflowCxEndpoint$ = exports.BotCapabilityToolPipeline$ = exports.BotCapabilityTool$ = exports.BotCallback$ = exports.BotApiKey$ = exports.Bot$ = exports.BatchGetUsersPbxLinkDataV1Output$ = exports.BatchGetUsersPbxLinkDataV1Input$ = exports.BatchGetUsersPbxLinkDataOutput$ = exports.BatchGetUsersPbxLinkDataInput$ = exports.BatchGetUsersOutput$ = exports.BatchGetUsersInput$ = exports.BatchGetUsersEmailNotificationsSettingsOutput$ = exports.BatchGetUsersEmailNotificationsSettingsInput$ = exports.Account$ = exports.UserToInvite$ = exports.User$ = exports.SkippedMember$ = exports.PbxColleague$ = exports.errorTypeRegistries = exports.WorkspaceNotFoundException$ = exports.UserQueryPredicateNotMetException$ = exports.UserNotFoundException$ = exports.UserCompanyNotValidException$ = exports.PublicAccessIsRestrictedException$ = exports.IdentityNotFoundException$ = exports.IdentityAlreadyLinkedException$ = exports.CannotUnbindDefaultWorkspaceException$ = exports.CannotRemovePrimaryIdentityException$ = exports.BotSecretKeyNotValidException$ = exports.BotNotFoundException$ = exports.BotApiKeyNotFoundException$ = exports.BotAlreadyExistsException$ = exports.AccountNotFoundException$ = exports.WidgetNotFoundException$ = exports.ChannelNotFoundException$ = exports.ValidationException$ = exports.ForbiddenException$ = exports.UsersServiceException$ = void 0;
4
+ exports.LinkIdentityOutput$ = exports.LinkIdentityInput$ = exports.InviteOutput$ = exports.InviteInput$ = exports.IntelligenceSearchOutput$ = exports.IntelligenceSearchInput$ = exports.Identity$ = exports.GetUserPbxLinkSuggestionV1Output$ = exports.GetUserPbxLinkSuggestionV1Input$ = exports.GetUserPbxLinkSuggestionOutput$ = exports.GetUserPbxLinkSuggestionInput$ = exports.GetUserPbxLinkDataOutput$ = exports.GetUserPbxLinkDataInput$ = exports.GetUserOutput$ = exports.GetUserInput$ = exports.GetUserEmailNotificationsSettingsOutput$ = exports.GetUserEmailNotificationsSettingsInput$ = exports.GetBotOutput$ = exports.GetBotInput$ = exports.GetBotCallbackOutput$ = exports.GetBotCallbackInput$ = exports.GetAppVersionOutput$ = exports.GetAppVersionInput$ = exports.GetAccountOutput$ = exports.GetAccountInput$ = exports.DirectoryItem$ = exports.DeleteBotOutput$ = exports.DeleteBotInput$ = exports.DeleteBotApiKeyOutput$ = exports.DeleteBotApiKeyInput$ = exports.CreateSystemBotOutput$ = exports.CreateSystemBotInput$ = exports.CreateBotOutput$ = exports.CreateBotInput$ = exports.CreateBotApiKeyOutput$ = exports.CreateBotApiKeyInput$ = exports.CreateAnonymousSessionOutput$ = exports.CreateAnonymousSessionInput$ = exports.ChangeUserEmailOutput$ = exports.ChangeUserEmailInput$ = exports.BotWebhookEndpoint$ = exports.BotToolVariablesAnnotation$ = exports.BotToolVariablePredefinedHandler$ = exports.BotToolVariableGuidedHandler$ = exports.BotToolVariableAutoHandler$ = exports.BotToolVariable$ = exports.BotToolTagAnnotation$ = exports.BotToolResultAnnotation$ = exports.BotToolCommentAnnotation$ = exports.BotSqsEndpoint$ = void 0;
5
+ exports.UserPersonalInfo$ = exports.UserPbxServices$ = exports.UserPbxPersonalSettings$ = exports.UserPbxLinkSuggestion$ = exports.UserPbxLinkData$ = exports.UserPbxInfo$ = exports.UserPbxDialplanSettings$ = exports.UserEmailNotificationsSettings$ = exports.UploadPictureV1Output$ = exports.UploadPictureV1Input$ = exports.UploadPictureOutput$ = exports.UploadPictureInput$ = exports.UpdateWorkspaceOutput$ = exports.UpdateWorkspaceInput$ = exports.UpdateUserEmailNotificationsSettingsOutput$ = exports.UpdateUserEmailNotificationsSettingsInput$ = exports.UpdateBotOutput$ = exports.UpdateBotInput$ = exports.UpdateBotCallbackOutput$ = exports.UpdateBotCallbackInput$ = exports.UpdateAccountOutput$ = exports.UpdateAccountInput$ = exports.UnlinkWorkspaceOutput$ = exports.UnlinkWorkspaceInput$ = exports.UnlinkIdentityOutput$ = exports.UnlinkIdentityInput$ = exports.ToggleUnreadEmailNotificationsSubscriptionOutput$ = exports.ToggleUnreadEmailNotificationsSubscriptionInput$ = exports.ToggleTranscriptionEmailNotificationsSubscriptionOutput$ = exports.ToggleTranscriptionEmailNotificationsSubscriptionInput$ = exports.QueryUsersOutput$ = exports.QueryUsersInput$ = exports.QueryUserOutput$ = exports.QueryUserInput$ = exports.QueryColleaguesParameters$ = exports.QueryColleaguesOutputItem$ = exports.QueryColleaguesOutput$ = exports.QueryColleaguesInput$ = exports.PartialUpdateUserEmailNotificationsSettingsOutput$ = exports.PartialUpdateUserEmailNotificationsSettingsInput$ = exports.OldEmailData$ = exports.NewEmailData$ = exports.ListWorkspacesOutput$ = exports.ListWorkspacesInput$ = exports.ListIdentitiesOutput$ = exports.ListIdentitiesInput$ = exports.ListBotsOutput$ = exports.ListBotsInput$ = exports.ListBotApiKeysOutput$ = exports.ListBotApiKeysInput$ = void 0;
6
+ exports.UnlinkIdentity$ = exports.ToggleUnreadEmailNotificationsSubscription$ = exports.ToggleTranscriptionEmailNotificationsSubscription$ = exports.QueryUsers$ = exports.QueryUser$ = exports.QueryColleagues$ = exports.PartialUpdateUserEmailNotificationsSettings$ = exports.ListWorkspaces$ = exports.ListIdentities$ = exports.ListBots$ = exports.ListBotApiKeys$ = exports.LinkIdentity$ = exports.Invite$ = exports.IntelligenceSearch$ = exports.GetUserPbxLinkSuggestionV1$ = exports.GetUserPbxLinkSuggestion$ = exports.GetUserPbxLinkData$ = exports.GetUserEmailNotificationsSettings$ = exports.GetUser$ = exports.GetBotCallback$ = exports.GetBot$ = exports.GetAppVersion$ = exports.GetAccount$ = exports.DeleteBotApiKey$ = exports.DeleteBot$ = exports.CreateSystemBot$ = exports.CreateBotApiKey$ = exports.CreateBot$ = exports.CreateAnonymousSession$ = exports.ChangeUserEmail$ = exports.BatchGetUsersPbxLinkDataV1$ = exports.BatchGetUsersPbxLinkData$ = exports.BatchGetUsersEmailNotificationsSettings$ = exports.BatchGetUsers$ = exports.UserQuery$ = exports.BotToolVariableHandler$ = exports.BotToolAnnotation$ = exports.BotLlmFunctionIntegrationWebhookAuthorization$ = exports.BotLlmFunctionIntegration$ = exports.BotEndpoint$ = exports.BotCapability$ = exports.AnonymousEntryContext$ = exports.Workspace$ = exports.VerifyIdentityOutput$ = exports.VerifyIdentityInput$ = exports.VerifyBotSecretKeyV1Output$ = exports.VerifyBotSecretKeyV1Input$ = exports.VerifyBotSecretKeyOutput$ = exports.VerifyBotSecretKeyInput$ = exports.UserQueryPredicate$ = void 0;
7
+ exports.VerifyIdentity$ = exports.VerifyBotSecretKeyV1$ = exports.VerifyBotSecretKey$ = exports.UploadPictureV1$ = exports.UploadPicture$ = exports.UpdateWorkspace$ = exports.UpdateUserEmailNotificationsSettings$ = exports.UpdateBotCallback$ = exports.UpdateBot$ = exports.UpdateAccount$ = exports.UnlinkWorkspace$ = void 0;
8
8
  const _A = "Account";
9
9
  const _AEC = "AnonymousEntryContext";
10
10
  const _ANFE = "AccountNotFoundException";
11
11
  const _B = "Bot";
12
+ const _BAEE = "BotAlreadyExistsException";
12
13
  const _BAK = "BotApiKey";
13
14
  const _BAKL = "BotApiKeysList";
14
15
  const _BAKNFE = "BotApiKeyNotFoundException";
@@ -304,8 +305,8 @@ const _ht = "http";
304
305
  const _i = "id";
305
306
  const _iAKC = "integrationApiKeysCount";
306
307
  const _iT = "integrationType";
307
- const _id = "identity";
308
- const _ide = "identities";
308
+ const _id = "identities";
309
+ const _ide = "identity";
309
310
  const _in = "instructions";
310
311
  const _inf = "info";
311
312
  const _int = "integration";
@@ -460,6 +461,12 @@ exports.AccountNotFoundException$ = [-3, n3, _ANFE,
460
461
  [0], 1
461
462
  ];
462
463
  n3_registry.registerError(exports.AccountNotFoundException$, errors_1.AccountNotFoundException);
464
+ exports.BotAlreadyExistsException$ = [-3, n3, _BAEE,
465
+ { [_e]: _c, [_hE]: 409 },
466
+ [_m],
467
+ [0], 1
468
+ ];
469
+ n3_registry.registerError(exports.BotAlreadyExistsException$, errors_1.BotAlreadyExistsException);
463
470
  exports.BotApiKeyNotFoundException$ = [-3, n3, _BAKNFE,
464
471
  { [_e]: _c, [_hE]: 404 },
465
472
  [_m],
@@ -771,8 +778,8 @@ exports.CreateBotApiKeyOutput$ = [3, n3, _CBAKO,
771
778
  ];
772
779
  exports.CreateBotInput$ = [3, n3, _CBI,
773
780
  0,
774
- [_n, _cal, _ca, _pi, _se, _a, _gI, _sTM, _co],
775
- [0, () => exports.BotCallback$, 0, 0, 2, 0, 0, 1, [0, { [_hQ]: _co }]], 2
781
+ [_n, _cal, _ca, _pi, _se, _a, _gI, _sTM, _co, _i],
782
+ [0, () => exports.BotCallback$, 0, 0, 2, 0, 0, 1, [0, { [_hQ]: _co }], 0], 2
776
783
  ];
777
784
  exports.CreateBotOutput$ = [3, n3, _CBO,
778
785
  0,
@@ -821,8 +828,8 @@ exports.GetAccountInput$ = [3, n3, _GAI,
821
828
  ];
822
829
  exports.GetAccountOutput$ = [3, n3, _GAO,
823
830
  0,
824
- [_ac],
825
- [() => exports.Account$], 1
831
+ [_ac, _w, _id],
832
+ [() => exports.Account$, () => WorkspaceList, () => IdentityList], 3
826
833
  ];
827
834
  exports.GetAppVersionInput$ = [3, n3, _GAVI,
828
835
  0,
@@ -906,7 +913,7 @@ exports.GetUserPbxLinkSuggestionV1Output$ = [3, n3, _GUPLSVO,
906
913
  ];
907
914
  exports.Identity$ = [3, n3, _I,
908
915
  0,
909
- [_id, _ac, _ver],
916
+ [_ide, _ac, _ver],
910
917
  [0, 0, 2], 2
911
918
  ];
912
919
  exports.IntelligenceSearchInput$ = [3, n3, _ISI,
@@ -931,12 +938,12 @@ exports.InviteOutput$ = [3, n3, _IO,
931
938
  ];
932
939
  exports.LinkIdentityInput$ = [3, n3, _LII,
933
940
  0,
934
- [_aIc, _id],
941
+ [_aIc, _ide],
935
942
  [[0, 1], 0], 2
936
943
  ];
937
944
  exports.LinkIdentityOutput$ = [3, n3, _LIO,
938
945
  0,
939
- [_id],
946
+ [_ide],
940
947
  [() => exports.Identity$], 1
941
948
  ];
942
949
  exports.ListBotApiKeysInput$ = [3, n3, _LBAKI,
@@ -966,7 +973,7 @@ exports.ListIdentitiesInput$ = [3, n3, _LIIi,
966
973
  ];
967
974
  exports.ListIdentitiesOutput$ = [3, n3, _LIOi,
968
975
  0,
969
- [_ide],
976
+ [_id],
970
977
  [() => IdentityList], 1
971
978
  ];
972
979
  exports.ListWorkspacesInput$ = [3, n3, _LWI,
@@ -1061,7 +1068,7 @@ exports.ToggleUnreadEmailNotificationsSubscriptionOutput$ = [3, n3, _TUENSO,
1061
1068
  ];
1062
1069
  exports.UnlinkIdentityInput$ = [3, n3, _UII,
1063
1070
  0,
1064
- [_aIc, _id],
1071
+ [_aIc, _ide],
1065
1072
  [[0, 1], [0, 1]], 2
1066
1073
  ];
1067
1074
  exports.UnlinkIdentityOutput$ = [3, n3, _UIO,
@@ -1216,12 +1223,12 @@ exports.VerifyBotSecretKeyV1Output$ = [3, n3, _VBSKVO,
1216
1223
  ];
1217
1224
  exports.VerifyIdentityInput$ = [3, n3, _VII,
1218
1225
  0,
1219
- [_aIc, _id, _o],
1226
+ [_aIc, _ide, _o],
1220
1227
  [[0, 1], 0, 0], 3
1221
1228
  ];
1222
1229
  exports.VerifyIdentityOutput$ = [3, n3, _VIO,
1223
1230
  0,
1224
- [_id],
1231
+ [_ide],
1225
1232
  [() => exports.Identity$], 1
1226
1233
  ];
1227
1234
  exports.Workspace$ = [3, n3, _W,
@@ -59,6 +59,18 @@ export class AccountNotFoundException extends __BaseException {
59
59
  Object.setPrototypeOf(this, AccountNotFoundException.prototype);
60
60
  }
61
61
  }
62
+ export class BotAlreadyExistsException extends __BaseException {
63
+ name = "BotAlreadyExistsException";
64
+ $fault = "client";
65
+ constructor(opts) {
66
+ super({
67
+ name: "BotAlreadyExistsException",
68
+ $fault: "client",
69
+ ...opts,
70
+ });
71
+ Object.setPrototypeOf(this, BotAlreadyExistsException.prototype);
72
+ }
73
+ }
62
74
  export class BotApiKeyNotFoundException extends __BaseException {
63
75
  name = "BotApiKeyNotFoundException";
64
76
  $fault = "client";
@@ -2,6 +2,7 @@ const _A = "Account";
2
2
  const _AEC = "AnonymousEntryContext";
3
3
  const _ANFE = "AccountNotFoundException";
4
4
  const _B = "Bot";
5
+ const _BAEE = "BotAlreadyExistsException";
5
6
  const _BAK = "BotApiKey";
6
7
  const _BAKL = "BotApiKeysList";
7
8
  const _BAKNFE = "BotApiKeyNotFoundException";
@@ -297,8 +298,8 @@ const _ht = "http";
297
298
  const _i = "id";
298
299
  const _iAKC = "integrationApiKeysCount";
299
300
  const _iT = "integrationType";
300
- const _id = "identity";
301
- const _ide = "identities";
301
+ const _id = "identities";
302
+ const _ide = "identity";
302
303
  const _in = "instructions";
303
304
  const _inf = "info";
304
305
  const _int = "integration";
@@ -414,7 +415,7 @@ const n2 = "wildix.xbees.kite";
414
415
  const n3 = "wildix.xbees.users";
415
416
  const n4 = "wildix.wms.api";
416
417
  import { TypeRegistry } from "@smithy/core/schema";
417
- import { AccountNotFoundException, BotApiKeyNotFoundException, BotNotFoundException, BotSecretKeyNotValidException, CannotRemovePrimaryIdentityException, CannotUnbindDefaultWorkspaceException, ChannelNotFoundException, ForbiddenException, IdentityAlreadyLinkedException, IdentityNotFoundException, PublicAccessIsRestrictedException, UserCompanyNotValidException, UserNotFoundException, UserQueryPredicateNotMetException, ValidationException, WidgetNotFoundException, WorkspaceNotFoundException, } from "../models/errors";
418
+ import { AccountNotFoundException, BotAlreadyExistsException, BotApiKeyNotFoundException, BotNotFoundException, BotSecretKeyNotValidException, CannotRemovePrimaryIdentityException, CannotUnbindDefaultWorkspaceException, ChannelNotFoundException, ForbiddenException, IdentityAlreadyLinkedException, IdentityNotFoundException, PublicAccessIsRestrictedException, UserCompanyNotValidException, UserNotFoundException, UserQueryPredicateNotMetException, ValidationException, WidgetNotFoundException, WorkspaceNotFoundException, } from "../models/errors";
418
419
  import { UsersServiceException } from "../models/UsersServiceException";
419
420
  const _s_registry = TypeRegistry.for(_s);
420
421
  export var UsersServiceException$ = [-3, _s, "UsersServiceException", 0, [], []];
@@ -453,6 +454,12 @@ export var AccountNotFoundException$ = [-3, n3, _ANFE,
453
454
  [0], 1
454
455
  ];
455
456
  n3_registry.registerError(AccountNotFoundException$, AccountNotFoundException);
457
+ export var BotAlreadyExistsException$ = [-3, n3, _BAEE,
458
+ { [_e]: _c, [_hE]: 409 },
459
+ [_m],
460
+ [0], 1
461
+ ];
462
+ n3_registry.registerError(BotAlreadyExistsException$, BotAlreadyExistsException);
456
463
  export var BotApiKeyNotFoundException$ = [-3, n3, _BAKNFE,
457
464
  { [_e]: _c, [_hE]: 404 },
458
465
  [_m],
@@ -764,8 +771,8 @@ export var CreateBotApiKeyOutput$ = [3, n3, _CBAKO,
764
771
  ];
765
772
  export var CreateBotInput$ = [3, n3, _CBI,
766
773
  0,
767
- [_n, _cal, _ca, _pi, _se, _a, _gI, _sTM, _co],
768
- [0, () => BotCallback$, 0, 0, 2, 0, 0, 1, [0, { [_hQ]: _co }]], 2
774
+ [_n, _cal, _ca, _pi, _se, _a, _gI, _sTM, _co, _i],
775
+ [0, () => BotCallback$, 0, 0, 2, 0, 0, 1, [0, { [_hQ]: _co }], 0], 2
769
776
  ];
770
777
  export var CreateBotOutput$ = [3, n3, _CBO,
771
778
  0,
@@ -814,8 +821,8 @@ export var GetAccountInput$ = [3, n3, _GAI,
814
821
  ];
815
822
  export var GetAccountOutput$ = [3, n3, _GAO,
816
823
  0,
817
- [_ac],
818
- [() => Account$], 1
824
+ [_ac, _w, _id],
825
+ [() => Account$, () => WorkspaceList, () => IdentityList], 3
819
826
  ];
820
827
  export var GetAppVersionInput$ = [3, n3, _GAVI,
821
828
  0,
@@ -899,7 +906,7 @@ export var GetUserPbxLinkSuggestionV1Output$ = [3, n3, _GUPLSVO,
899
906
  ];
900
907
  export var Identity$ = [3, n3, _I,
901
908
  0,
902
- [_id, _ac, _ver],
909
+ [_ide, _ac, _ver],
903
910
  [0, 0, 2], 2
904
911
  ];
905
912
  export var IntelligenceSearchInput$ = [3, n3, _ISI,
@@ -924,12 +931,12 @@ export var InviteOutput$ = [3, n3, _IO,
924
931
  ];
925
932
  export var LinkIdentityInput$ = [3, n3, _LII,
926
933
  0,
927
- [_aIc, _id],
934
+ [_aIc, _ide],
928
935
  [[0, 1], 0], 2
929
936
  ];
930
937
  export var LinkIdentityOutput$ = [3, n3, _LIO,
931
938
  0,
932
- [_id],
939
+ [_ide],
933
940
  [() => Identity$], 1
934
941
  ];
935
942
  export var ListBotApiKeysInput$ = [3, n3, _LBAKI,
@@ -959,7 +966,7 @@ export var ListIdentitiesInput$ = [3, n3, _LIIi,
959
966
  ];
960
967
  export var ListIdentitiesOutput$ = [3, n3, _LIOi,
961
968
  0,
962
- [_ide],
969
+ [_id],
963
970
  [() => IdentityList], 1
964
971
  ];
965
972
  export var ListWorkspacesInput$ = [3, n3, _LWI,
@@ -1054,7 +1061,7 @@ export var ToggleUnreadEmailNotificationsSubscriptionOutput$ = [3, n3, _TUENSO,
1054
1061
  ];
1055
1062
  export var UnlinkIdentityInput$ = [3, n3, _UII,
1056
1063
  0,
1057
- [_aIc, _id],
1064
+ [_aIc, _ide],
1058
1065
  [[0, 1], [0, 1]], 2
1059
1066
  ];
1060
1067
  export var UnlinkIdentityOutput$ = [3, n3, _UIO,
@@ -1209,12 +1216,12 @@ export var VerifyBotSecretKeyV1Output$ = [3, n3, _VBSKVO,
1209
1216
  ];
1210
1217
  export var VerifyIdentityInput$ = [3, n3, _VII,
1211
1218
  0,
1212
- [_aIc, _id, _o],
1219
+ [_aIc, _ide, _o],
1213
1220
  [[0, 1], 0, 0], 3
1214
1221
  ];
1215
1222
  export var VerifyIdentityOutput$ = [3, n3, _VIO,
1216
1223
  0,
1217
- [_id],
1224
+ [_ide],
1218
1225
  [() => Identity$], 1
1219
1226
  ];
1220
1227
  export var Workspace$ = [3, n3, _W,
@@ -45,6 +45,7 @@ declare const CreateBotCommand_base: {
45
45
  * groupId: "STRING_VALUE",
46
46
  * sessionTimeoutMinutes: 15 || 30 || 60 || 120,
47
47
  * company: "STRING_VALUE",
48
+ * id: "STRING_VALUE",
48
49
  * callback: { // BotCallback
49
50
  * endpoint: { // BotEndpoint Union: only one key present
50
51
  * llm: { // BotLlmEndpoint
@@ -246,6 +247,8 @@ declare const CreateBotCommand_base: {
246
247
  * @see {@link CreateBotCommandOutput} for command's `response` shape.
247
248
  * @see {@link UsersClientResolvedConfig | config} for UsersClient's `config` shape.
248
249
  *
250
+ * @throws {@link BotAlreadyExistsException} (client fault)
251
+ *
249
252
  * @throws {@link ForbiddenException} (client fault)
250
253
  *
251
254
  * @throws {@link ValidationException} (client fault)
@@ -27,7 +27,7 @@ declare const GetAccountCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * Retrieves the account.
30
+ * Retrieves the current account with identities and workspaces.
31
31
  * @example
32
32
  * Use a bare-bones client and the command you need to make an API call.
33
33
  * ```javascript
@@ -47,6 +47,96 @@ declare const GetAccountCommand_base: {
47
47
  * // defaultWorkspace: "STRING_VALUE",
48
48
  * // primaryIdentity: "STRING_VALUE",
49
49
  * // },
50
+ * // workspaces: [ // WorkspaceList // required
51
+ * // { // Workspace
52
+ * // companyId: "STRING_VALUE",
53
+ * // pbxUser: { // UserPbxLinkData
54
+ * // id: "STRING_VALUE", // required
55
+ * // company: "STRING_VALUE", // required
56
+ * // companyName: "STRING_VALUE",
57
+ * // domain: "STRING_VALUE", // required
58
+ * // email: "STRING_VALUE",
59
+ * // info: { // UserPersonalInfo
60
+ * // dn: "STRING_VALUE", // required
61
+ * // id: "STRING_VALUE", // required
62
+ * // name: "STRING_VALUE", // required
63
+ * // extension: "STRING_VALUE", // required
64
+ * // officePhone: "STRING_VALUE",
65
+ * // mobilePhone: "STRING_VALUE",
66
+ * // faxNumber: "STRING_VALUE",
67
+ * // email: "STRING_VALUE",
68
+ * // role: "STRING_VALUE", // required
69
+ * // language: "STRING_VALUE", // required
70
+ * // dialplan: "STRING_VALUE", // required
71
+ * // faxDialplan: "STRING_VALUE", // required
72
+ * // departament: "STRING_VALUE",
73
+ * // picture: "STRING_VALUE", // required
74
+ * // groupDn: "STRING_VALUE", // required
75
+ * // groupName: "STRING_VALUE", // required
76
+ * // jid: "STRING_VALUE", // required
77
+ * // licenseType: "basic" || "essential" || "business" || "premium" || "wizyconf", // required
78
+ * // login: "STRING_VALUE",
79
+ * // pbx: "STRING_VALUE",
80
+ * // pbxDn: "STRING_VALUE", // required
81
+ * // sourceId: "STRING_VALUE",
82
+ * // sipPassword: "STRING_VALUE",
83
+ * // },
84
+ * // pbx: { // UserPbxInfo
85
+ * // networkAddresses: [ // UserPbxInfoNetworkAddresses // required
86
+ * // "STRING_VALUE",
87
+ * // ],
88
+ * // ports: [ // UserPbxInfoPorts // required
89
+ * // "STRING_VALUE",
90
+ * // ],
91
+ * // externalLinePrefix: "STRING_VALUE",
92
+ * // version: "STRING_VALUE", // required
93
+ * // serial: "STRING_VALUE", // required
94
+ * // },
95
+ * // picture: "STRING_VALUE", // required
96
+ * // pictureDeleted: true || false,
97
+ * // port: "STRING_VALUE", // required
98
+ * // serial: "STRING_VALUE", // required
99
+ * // services: { // UserPbxServices
100
+ * // xcaracal: true || false,
101
+ * // wizyWebinar: true || false,
102
+ * // },
103
+ * // personalSettings: {},
104
+ * // dialplanSettings: {},
105
+ * // awsRegion: "STRING_VALUE",
106
+ * // updatedAt: "STRING_VALUE",
107
+ * // },
108
+ * // streamUser: { // User
109
+ * // id: "STRING_VALUE", // required
110
+ * // name: "STRING_VALUE",
111
+ * // email: "STRING_VALUE",
112
+ * // phone: "STRING_VALUE",
113
+ * // picture: "STRING_VALUE",
114
+ * // locale: "STRING_VALUE",
115
+ * // timeZone: "STRING_VALUE",
116
+ * // company: "STRING_VALUE",
117
+ * // bot: true || false,
118
+ * // pbxDomain: "STRING_VALUE",
119
+ * // pbxPort: "STRING_VALUE",
120
+ * // pbxExtension: "STRING_VALUE",
121
+ * // pbxSerial: "STRING_VALUE",
122
+ * // pbxUserId: "STRING_VALUE",
123
+ * // pbxGroupId: "STRING_VALUE",
124
+ * // createdAt: "STRING_VALUE",
125
+ * // updatedAt: "STRING_VALUE",
126
+ * // },
127
+ * // type: "personal" || "work" || "support",
128
+ * // id: "STRING_VALUE", // required
129
+ * // accountId: "STRING_VALUE", // required
130
+ * // active: true || false, // required
131
+ * // },
132
+ * // ],
133
+ * // identities: [ // IdentityList // required
134
+ * // { // Identity
135
+ * // identity: "STRING_VALUE", // required
136
+ * // account: "STRING_VALUE", // required
137
+ * // verified: true || false,
138
+ * // },
139
+ * // ],
50
140
  * // };
51
141
  *
52
142
  * ```
@@ -55,6 +55,17 @@ export declare class AccountNotFoundException extends __BaseException {
55
55
  */
56
56
  constructor(opts: __ExceptionOptionType<AccountNotFoundException, __BaseException>);
57
57
  }
58
+ /**
59
+ * @public
60
+ */
61
+ export declare class BotAlreadyExistsException extends __BaseException {
62
+ readonly name: "BotAlreadyExistsException";
63
+ readonly $fault: "client";
64
+ /**
65
+ * @internal
66
+ */
67
+ constructor(opts: __ExceptionOptionType<BotAlreadyExistsException, __BaseException>);
68
+ }
58
69
  /**
59
70
  * @public
60
71
  */
@@ -176,6 +176,10 @@ export declare namespace AnonymousEntryContext {
176
176
  channelId?: never;
177
177
  $unknown?: never;
178
178
  }
179
+ /**
180
+ * Direct-channel ids are the 8-4-4-4-8 slices of the two member ids. An `a_` member id puts `_` in a slice, so the pattern allows it.
181
+ * @public
182
+ */
179
183
  interface ChannelIdMember {
180
184
  widgetId?: never;
181
185
  channelId: string;
@@ -1217,6 +1221,11 @@ export interface CreateBotInput {
1217
1221
  */
1218
1222
  sessionTimeoutMinutes?: BotSessionTimeoutMinutes | undefined;
1219
1223
  company?: string | undefined;
1224
+ /**
1225
+ * Optional bot id. Omit to mint a random 12-character id. Supply a Wilma agent id (`a_` plus 10) so RNA search and conversation members share that id. Conflicts if the id already exists.
1226
+ * @public
1227
+ */
1228
+ id?: string | undefined;
1220
1229
  callback: BotCallback;
1221
1230
  }
1222
1231
  /**
@@ -1306,11 +1315,73 @@ export interface GetAccountInput {
1306
1315
  */
1307
1316
  accountId: string;
1308
1317
  }
1318
+ /**
1319
+ * @public
1320
+ */
1321
+ export interface Identity {
1322
+ /**
1323
+ * The identity value (email address or phone number in E.164)
1324
+ * @public
1325
+ */
1326
+ identity: string;
1327
+ /**
1328
+ * The unique identifier of the account.
1329
+ * @public
1330
+ */
1331
+ account: string;
1332
+ /**
1333
+ * Indicates if the identity is verified.
1334
+ * @public
1335
+ */
1336
+ verified?: boolean | undefined;
1337
+ }
1338
+ /**
1339
+ * @public
1340
+ */
1341
+ export interface Workspace {
1342
+ /**
1343
+ * The unique identifier of the tenant (company).
1344
+ * @public
1345
+ */
1346
+ companyId?: string | undefined;
1347
+ /**
1348
+ * PBX information where user connected to.
1349
+ * @public
1350
+ */
1351
+ pbxUser?: UserPbxLinkData | undefined;
1352
+ /**
1353
+ * Personal information of the user. If user is not logged in yet, this field will might be empty.
1354
+ * @public
1355
+ */
1356
+ streamUser?: User | undefined;
1357
+ /**
1358
+ * The type of workspace.
1359
+ * @public
1360
+ */
1361
+ type?: WorkspaceType | undefined;
1362
+ /**
1363
+ * The unique identifier
1364
+ * @public
1365
+ */
1366
+ id: string;
1367
+ /**
1368
+ * The unique identifier of the account.
1369
+ * @public
1370
+ */
1371
+ accountId: string;
1372
+ /**
1373
+ * Indicates if the workspace is active.
1374
+ * @public
1375
+ */
1376
+ active: boolean;
1377
+ }
1309
1378
  /**
1310
1379
  * @public
1311
1380
  */
1312
1381
  export interface GetAccountOutput {
1313
1382
  account: Account;
1383
+ workspaces: Workspace[];
1384
+ identities: Identity[];
1314
1385
  }
1315
1386
  /**
1316
1387
  * @public
@@ -1453,26 +1524,6 @@ export interface GetUserPbxLinkSuggestionV1Output {
1453
1524
  */
1454
1525
  suggestion?: UserPbxLinkSuggestion | undefined;
1455
1526
  }
1456
- /**
1457
- * @public
1458
- */
1459
- export interface Identity {
1460
- /**
1461
- * The identity value (email address or phone number in E.164)
1462
- * @public
1463
- */
1464
- identity: string;
1465
- /**
1466
- * The unique identifier of the account.
1467
- * @public
1468
- */
1469
- account: string;
1470
- /**
1471
- * Indicates if the identity is verified.
1472
- * @public
1473
- */
1474
- verified?: boolean | undefined;
1475
- }
1476
1527
  /**
1477
1528
  * @public
1478
1529
  */
@@ -1601,46 +1652,6 @@ export interface ListWorkspacesInput {
1601
1652
  */
1602
1653
  accountId: string;
1603
1654
  }
1604
- /**
1605
- * @public
1606
- */
1607
- export interface Workspace {
1608
- /**
1609
- * The unique identifier of the tenant (company).
1610
- * @public
1611
- */
1612
- companyId?: string | undefined;
1613
- /**
1614
- * PBX information where user connected to.
1615
- * @public
1616
- */
1617
- pbxUser?: UserPbxLinkData | undefined;
1618
- /**
1619
- * Personal information of the user. If user is not logged in yet, this field will might be empty.
1620
- * @public
1621
- */
1622
- streamUser?: User | undefined;
1623
- /**
1624
- * The type of workspace.
1625
- * @public
1626
- */
1627
- type?: WorkspaceType | undefined;
1628
- /**
1629
- * The unique identifier
1630
- * @public
1631
- */
1632
- id: string;
1633
- /**
1634
- * The unique identifier of the account.
1635
- * @public
1636
- */
1637
- accountId: string;
1638
- /**
1639
- * Indicates if the workspace is active.
1640
- * @public
1641
- */
1642
- active: boolean;
1643
- }
1644
1655
  /**
1645
1656
  * @public
1646
1657
  */
@@ -39,7 +39,6 @@ export declare const getRuntimeConfig: (config: UsersClientConfig) => {
39
39
  tls?: boolean;
40
40
  useDualstackEndpoint?: boolean | import("@smithy/types").Provider<boolean | undefined>;
41
41
  useFipsEndpoint?: boolean | import("@smithy/types").Provider<boolean | undefined>;
42
- ignoreConfiguredEndpointUrls?: boolean;
43
42
  serviceConfiguredEndpoint?: never;
44
43
  authSchemePreference?: string[] | import("@smithy/types").Provider<string[]>;
45
44
  httpAuthSchemes: ({
@@ -39,7 +39,6 @@ export declare const getRuntimeConfig: (config: UsersClientConfig) => {
39
39
  tls?: boolean;
40
40
  useDualstackEndpoint?: boolean | import("@smithy/types").Provider<boolean | undefined>;
41
41
  useFipsEndpoint?: boolean | import("@smithy/types").Provider<boolean | undefined>;
42
- ignoreConfiguredEndpointUrls?: boolean;
43
42
  serviceConfiguredEndpoint?: never;
44
43
  authSchemePreference?: string[] | import("@smithy/types").Provider<string[]>;
45
44
  httpAuthSchemes: ({
@@ -39,7 +39,6 @@ export declare const getRuntimeConfig: (config: UsersClientConfig) => {
39
39
  tls?: boolean;
40
40
  useDualstackEndpoint?: boolean | import("@smithy/types").Provider<boolean | undefined>;
41
41
  useFipsEndpoint?: boolean | import("@smithy/types").Provider<boolean | undefined>;
42
- ignoreConfiguredEndpointUrls?: boolean;
43
42
  serviceConfiguredEndpoint?: never;
44
43
  authSchemePreference?: string[] | import("@smithy/types").Provider<string[]>;
45
44
  httpAuthSchemes: ({
@@ -6,6 +6,7 @@ export declare var ValidationException$: StaticErrorSchema;
6
6
  export declare var ChannelNotFoundException$: StaticErrorSchema;
7
7
  export declare var WidgetNotFoundException$: StaticErrorSchema;
8
8
  export declare var AccountNotFoundException$: StaticErrorSchema;
9
+ export declare var BotAlreadyExistsException$: StaticErrorSchema;
9
10
  export declare var BotApiKeyNotFoundException$: StaticErrorSchema;
10
11
  export declare var BotNotFoundException$: StaticErrorSchema;
11
12
  export declare var BotSecretKeyNotValidException$: StaticErrorSchema;
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": "4.0.11",
4
+ "version": "4.0.12",
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",
@@ -56,4 +56,4 @@
56
56
  "browser": {
57
57
  "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.browser"
58
58
  }
59
- }
59
+ }