@wildix/xbees-users-client 4.0.8 → 4.0.9

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";
@@ -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,
@@ -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";
@@ -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,
@@ -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)
@@ -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
  */
@@ -105,7 +105,7 @@ export interface UserToInvite {
105
105
  */
106
106
  email?: string | undefined;
107
107
  /**
108
- * The phone number of the invited user. This phone number is used to create or find the user if an email address is not provided.
108
+ * The phone number of the invited user. This phone number is used to create or find the user if an email address is not provided. On Facebook Messenger it is not a phone number at all: the caller passes the Page Scoped ID, so the identity key stays the one the supplier reports. UserPhone allows up to 17 digits and a Page Scoped ID is 17, so there is no headroom left.
109
109
  * @public
110
110
  */
111
111
  phone?: string | undefined;
@@ -1217,6 +1217,11 @@ export interface CreateBotInput {
1217
1217
  */
1218
1218
  sessionTimeoutMinutes?: BotSessionTimeoutMinutes | undefined;
1219
1219
  company?: string | undefined;
1220
+ /**
1221
+ * 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.
1222
+ * @public
1223
+ */
1224
+ id?: string | undefined;
1220
1225
  callback: BotCallback;
1221
1226
  }
1222
1227
  /**
@@ -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.8",
4
+ "version": "4.0.9",
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",