@wildix/xbees-users-client 4.1.0 → 4.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/dist-cjs/models/errors.js +22 -1
  2. package/dist-cjs/schemas/schemas_0.js +32 -6
  3. package/dist-es/models/errors.js +20 -0
  4. package/dist-es/schemas/schemas_0.js +28 -2
  5. package/dist-types/commands/BatchGetUsersCommand.d.ts +2 -0
  6. package/dist-types/commands/BatchGetUsersEmailNotificationsSettingsCommand.d.ts +2 -0
  7. package/dist-types/commands/BatchGetUsersPbxLinkDataCommand.d.ts +2 -0
  8. package/dist-types/commands/BatchGetUsersPbxLinkDataV1Command.d.ts +2 -0
  9. package/dist-types/commands/ChangeUserEmailCommand.d.ts +2 -0
  10. package/dist-types/commands/CreateAnonymousSessionCommand.d.ts +2 -0
  11. package/dist-types/commands/CreateBotApiKeyCommand.d.ts +2 -0
  12. package/dist-types/commands/CreateBotCommand.d.ts +2 -0
  13. package/dist-types/commands/CreateSystemBotCommand.d.ts +2 -0
  14. package/dist-types/commands/DeleteBotApiKeyCommand.d.ts +2 -0
  15. package/dist-types/commands/DeleteBotCommand.d.ts +2 -0
  16. package/dist-types/commands/GetAccountCommand.d.ts +2 -0
  17. package/dist-types/commands/GetAppVersionCommand.d.ts +2 -0
  18. package/dist-types/commands/GetBotCallbackCommand.d.ts +2 -0
  19. package/dist-types/commands/GetBotCommand.d.ts +2 -0
  20. package/dist-types/commands/GetUserCommand.d.ts +2 -0
  21. package/dist-types/commands/GetUserEmailNotificationsSettingsCommand.d.ts +2 -0
  22. package/dist-types/commands/GetUserPbxLinkDataCommand.d.ts +2 -0
  23. package/dist-types/commands/GetUserPbxLinkSuggestionCommand.d.ts +2 -0
  24. package/dist-types/commands/GetUserPbxLinkSuggestionV1Command.d.ts +2 -0
  25. package/dist-types/commands/IntelligenceSearchCommand.d.ts +2 -0
  26. package/dist-types/commands/InviteCommand.d.ts +4 -13
  27. package/dist-types/commands/LinkIdentityCommand.d.ts +2 -0
  28. package/dist-types/commands/ListBotApiKeysCommand.d.ts +2 -0
  29. package/dist-types/commands/ListBotsCommand.d.ts +2 -0
  30. package/dist-types/commands/ListIdentitiesCommand.d.ts +2 -0
  31. package/dist-types/commands/ListWorkspacesCommand.d.ts +2 -0
  32. package/dist-types/commands/PartialUpdateUserEmailNotificationsSettingsCommand.d.ts +2 -0
  33. package/dist-types/commands/QueryColleaguesCommand.d.ts +2 -0
  34. package/dist-types/commands/QueryUserCommand.d.ts +2 -0
  35. package/dist-types/commands/QueryUsersCommand.d.ts +2 -0
  36. package/dist-types/commands/ToggleTranscriptionEmailNotificationsSubscriptionCommand.d.ts +2 -0
  37. package/dist-types/commands/ToggleUnreadEmailNotificationsSubscriptionCommand.d.ts +2 -0
  38. package/dist-types/commands/UnlinkIdentityCommand.d.ts +2 -0
  39. package/dist-types/commands/UnlinkWorkspaceCommand.d.ts +2 -0
  40. package/dist-types/commands/UpdateAccountCommand.d.ts +2 -0
  41. package/dist-types/commands/UpdateBotCallbackCommand.d.ts +2 -0
  42. package/dist-types/commands/UpdateBotCommand.d.ts +2 -0
  43. package/dist-types/commands/UpdateUserEmailNotificationsSettingsCommand.d.ts +2 -0
  44. package/dist-types/commands/UpdateWorkspaceCommand.d.ts +2 -0
  45. package/dist-types/commands/UploadPictureCommand.d.ts +2 -0
  46. package/dist-types/commands/UploadPictureV1Command.d.ts +2 -0
  47. package/dist-types/commands/VerifyBotSecretKeyCommand.d.ts +2 -0
  48. package/dist-types/commands/VerifyBotSecretKeyV1Command.d.ts +2 -0
  49. package/dist-types/commands/VerifyIdentityCommand.d.ts +2 -0
  50. package/dist-types/models/errors.d.ts +31 -0
  51. package/dist-types/models/models_0.d.ts +24 -2
  52. package/dist-types/schemas/schemas_0.d.ts +2 -0
  53. package/package.json +1 -1
@@ -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.BotAlreadyExistsException = 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.RateLimitExceededException = exports.ForbiddenException = void 0;
4
4
  const UsersServiceException_1 = require("./UsersServiceException");
5
5
  class ForbiddenException extends UsersServiceException_1.UsersServiceException {
6
6
  name = "ForbiddenException";
@@ -15,6 +15,27 @@ class ForbiddenException extends UsersServiceException_1.UsersServiceException {
15
15
  }
16
16
  }
17
17
  exports.ForbiddenException = ForbiddenException;
18
+ class RateLimitExceededException extends UsersServiceException_1.UsersServiceException {
19
+ name = "RateLimitExceededException";
20
+ $fault = "client";
21
+ rateLimit;
22
+ rateLimitRemaining;
23
+ rateLimitReset;
24
+ retryAfter;
25
+ constructor(opts) {
26
+ super({
27
+ name: "RateLimitExceededException",
28
+ $fault: "client",
29
+ ...opts,
30
+ });
31
+ Object.setPrototypeOf(this, RateLimitExceededException.prototype);
32
+ this.rateLimit = opts.rateLimit;
33
+ this.rateLimitRemaining = opts.rateLimitRemaining;
34
+ this.rateLimitReset = opts.rateLimitReset;
35
+ this.retryAfter = opts.retryAfter;
36
+ }
37
+ }
38
+ exports.RateLimitExceededException = RateLimitExceededException;
18
39
  class ValidationException extends UsersServiceException_1.UsersServiceException {
19
40
  name = "ValidationException";
20
41
  $fault = "client";
@@ -1,10 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
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;
3
+ 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.InvitedUser$ = 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.RateLimitExceededException$ = exports.ForbiddenException$ = exports.UsersServiceException$ = void 0;
4
+ 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$ = exports.BotOpenAiAssistantEndpoint$ = exports.BotLlmTool$ = void 0;
5
+ 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$ = exports.LinkIdentityOutput$ = exports.LinkIdentityInput$ = void 0;
6
+ 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$ = exports.UserPersonalInfo$ = exports.UserPbxServices$ = 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$ = exports.UnlinkIdentity$ = exports.ToggleUnreadEmailNotificationsSubscription$ = void 0;
8
8
  const _A = "Account";
9
9
  const _AEC = "AnonymousEntryContext";
10
10
  const _ANFE = "AccountNotFoundException";
@@ -128,6 +128,8 @@ const _IO = "InviteOutput";
128
128
  const _IS = "IntelligenceSearch";
129
129
  const _ISI = "IntelligenceSearchInput";
130
130
  const _ISO = "IntelligenceSearchOutput";
131
+ const _IU = "InvitedUser";
132
+ const _IUL = "InvitedUsersList";
131
133
  const _In = "Invite";
132
134
  const _LB = "ListBots";
133
135
  const _LBAK = "ListBotApiKeys";
@@ -163,6 +165,8 @@ const _QUIu = "QueryUsersInput";
163
165
  const _QUO = "QueryUserOutput";
164
166
  const _QUOu = "QueryUsersOutput";
165
167
  const _QUu = "QueryUsers";
168
+ const _RA = "Retry-After";
169
+ const _RLEE = "RateLimitExceededException";
166
170
  const _SM = "SkippedMember";
167
171
  const _SML = "SkippedMembersList";
168
172
  const _TTENS = "ToggleTranscriptionEmailNotificationsSubscription";
@@ -232,6 +236,9 @@ const _W = "Workspace";
232
236
  const _WL = "WorkspaceList";
233
237
  const _WNFE = "WidgetNotFoundException";
234
238
  const _WNFEo = "WorkspaceNotFoundException";
239
+ const _XRL = "X-RateLimit-Limit";
240
+ const _XRR = "X-RateLimit-Remaining";
241
+ const _XRR_ = "X-RateLimit-Reset";
235
242
  const _a = "access";
236
243
  const _aI = "assistantId";
237
244
  const _aIc = "accountId";
@@ -299,6 +306,7 @@ const _gr = "group";
299
306
  const _gu = "guided";
300
307
  const _h = "headers";
301
308
  const _hE = "httpError";
309
+ const _hH = "httpHeader";
302
310
  const _hQ = "httpQuery";
303
311
  const _ha = "handler";
304
312
  const _ht = "http";
@@ -363,6 +371,10 @@ const _pred = "predefined";
363
371
  const _q = "query";
364
372
  const _qu = "queries";
365
373
  const _r = "role";
374
+ const _rA = "retryAfter";
375
+ const _rL = "rateLimit";
376
+ const _rLR = "rateLimitRemaining";
377
+ const _rLRa = "rateLimitReset";
366
378
  const _re = "result";
367
379
  const _s = "smithy.ts.sdk.synthetic.wildix.xbees.users";
368
380
  const _sA = "sfnArn";
@@ -437,6 +449,12 @@ exports.ForbiddenException$ = [-3, n0, _FE,
437
449
  [0], 1
438
450
  ];
439
451
  n0_registry.registerError(exports.ForbiddenException$, errors_1.ForbiddenException);
452
+ exports.RateLimitExceededException$ = [-3, n0, _RLEE,
453
+ { [_e]: _c, [_hE]: 429 },
454
+ [_m, _rL, _rLR, _rLRa, _rA],
455
+ [0, [0, { [_hH]: _XRL }], [1, { [_hH]: _XRR }], [1, { [_hH]: _XRR_ }], [1, { [_hH]: _RA }]], 1
456
+ ];
457
+ n0_registry.registerError(exports.RateLimitExceededException$, errors_1.RateLimitExceededException);
440
458
  exports.ValidationException$ = [-3, n0, _VE,
441
459
  { [_e]: _c, [_hE]: 400 },
442
460
  [_m],
@@ -551,6 +569,11 @@ exports.PbxColleague$ = [3, n4, _PC,
551
569
  [_i, _ex, _pD, _p, _r, _gN, _gD, _l, _d, _fD, _pi, _lT, _j, _n, _lo, _oP, _mP, _fN, _em, _de, _sI],
552
570
  [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], 13
553
571
  ];
572
+ exports.InvitedUser$ = [3, n1, _IU,
573
+ 0,
574
+ [_i, _n, _em, _ph, _co, _pUI],
575
+ [0, 0, 0, 0, 0, 0], 1
576
+ ];
554
577
  exports.SkippedMember$ = [3, n1, _SM,
555
578
  0,
556
579
  [_i, _em, _ph],
@@ -934,7 +957,7 @@ exports.InviteInput$ = [3, n3, _II,
934
957
  exports.InviteOutput$ = [3, n3, _IO,
935
958
  0,
936
959
  [_u, _sIk],
937
- [() => UsersList, () => SkippedMembersList], 2
960
+ [() => InvitedUsersList, () => SkippedMembersList], 2
938
961
  ];
939
962
  exports.LinkIdentityInput$ = [3, n3, _LII,
940
963
  0,
@@ -1239,6 +1262,9 @@ exports.Workspace$ = [3, n3, _W,
1239
1262
  var AgentGuidelinesList = 64 | 0;
1240
1263
  var ColleaguesFilterList = 64 | 0;
1241
1264
  var PbxColleaguesQueryFieldList = 64 | 0;
1265
+ var InvitedUsersList = [1, n1, _IUL,
1266
+ 0, () => exports.InvitedUser$
1267
+ ];
1242
1268
  var SkippedMembersList = [1, n1, _SML,
1243
1269
  0, () => exports.SkippedMember$
1244
1270
  ];
@@ -11,6 +11,26 @@ export class ForbiddenException extends __BaseException {
11
11
  Object.setPrototypeOf(this, ForbiddenException.prototype);
12
12
  }
13
13
  }
14
+ export class RateLimitExceededException extends __BaseException {
15
+ name = "RateLimitExceededException";
16
+ $fault = "client";
17
+ rateLimit;
18
+ rateLimitRemaining;
19
+ rateLimitReset;
20
+ retryAfter;
21
+ constructor(opts) {
22
+ super({
23
+ name: "RateLimitExceededException",
24
+ $fault: "client",
25
+ ...opts,
26
+ });
27
+ Object.setPrototypeOf(this, RateLimitExceededException.prototype);
28
+ this.rateLimit = opts.rateLimit;
29
+ this.rateLimitRemaining = opts.rateLimitRemaining;
30
+ this.rateLimitReset = opts.rateLimitReset;
31
+ this.retryAfter = opts.retryAfter;
32
+ }
33
+ }
14
34
  export class ValidationException extends __BaseException {
15
35
  name = "ValidationException";
16
36
  $fault = "client";
@@ -121,6 +121,8 @@ const _IO = "InviteOutput";
121
121
  const _IS = "IntelligenceSearch";
122
122
  const _ISI = "IntelligenceSearchInput";
123
123
  const _ISO = "IntelligenceSearchOutput";
124
+ const _IU = "InvitedUser";
125
+ const _IUL = "InvitedUsersList";
124
126
  const _In = "Invite";
125
127
  const _LB = "ListBots";
126
128
  const _LBAK = "ListBotApiKeys";
@@ -156,6 +158,8 @@ const _QUIu = "QueryUsersInput";
156
158
  const _QUO = "QueryUserOutput";
157
159
  const _QUOu = "QueryUsersOutput";
158
160
  const _QUu = "QueryUsers";
161
+ const _RA = "Retry-After";
162
+ const _RLEE = "RateLimitExceededException";
159
163
  const _SM = "SkippedMember";
160
164
  const _SML = "SkippedMembersList";
161
165
  const _TTENS = "ToggleTranscriptionEmailNotificationsSubscription";
@@ -225,6 +229,9 @@ const _W = "Workspace";
225
229
  const _WL = "WorkspaceList";
226
230
  const _WNFE = "WidgetNotFoundException";
227
231
  const _WNFEo = "WorkspaceNotFoundException";
232
+ const _XRL = "X-RateLimit-Limit";
233
+ const _XRR = "X-RateLimit-Remaining";
234
+ const _XRR_ = "X-RateLimit-Reset";
228
235
  const _a = "access";
229
236
  const _aI = "assistantId";
230
237
  const _aIc = "accountId";
@@ -292,6 +299,7 @@ const _gr = "group";
292
299
  const _gu = "guided";
293
300
  const _h = "headers";
294
301
  const _hE = "httpError";
302
+ const _hH = "httpHeader";
295
303
  const _hQ = "httpQuery";
296
304
  const _ha = "handler";
297
305
  const _ht = "http";
@@ -356,6 +364,10 @@ const _pred = "predefined";
356
364
  const _q = "query";
357
365
  const _qu = "queries";
358
366
  const _r = "role";
367
+ const _rA = "retryAfter";
368
+ const _rL = "rateLimit";
369
+ const _rLR = "rateLimitRemaining";
370
+ const _rLRa = "rateLimitReset";
359
371
  const _re = "result";
360
372
  const _s = "smithy.ts.sdk.synthetic.wildix.xbees.users";
361
373
  const _sA = "sfnArn";
@@ -415,7 +427,7 @@ const n2 = "wildix.xbees.kite";
415
427
  const n3 = "wildix.xbees.users";
416
428
  const n4 = "wildix.wms.api";
417
429
  import { TypeRegistry } from "@smithy/core/schema";
418
- import { AccountNotFoundException, BotAlreadyExistsException, BotApiKeyNotFoundException, BotNotFoundException, BotSecretKeyNotValidException, CannotRemovePrimaryIdentityException, CannotUnbindDefaultWorkspaceException, ChannelNotFoundException, ForbiddenException, IdentityAlreadyLinkedException, IdentityNotFoundException, PublicAccessIsRestrictedException, UserCompanyNotValidException, UserNotFoundException, UserQueryPredicateNotMetException, ValidationException, WidgetNotFoundException, WorkspaceNotFoundException, } from "../models/errors";
430
+ import { AccountNotFoundException, BotAlreadyExistsException, BotApiKeyNotFoundException, BotNotFoundException, BotSecretKeyNotValidException, CannotRemovePrimaryIdentityException, CannotUnbindDefaultWorkspaceException, ChannelNotFoundException, ForbiddenException, IdentityAlreadyLinkedException, IdentityNotFoundException, PublicAccessIsRestrictedException, RateLimitExceededException, UserCompanyNotValidException, UserNotFoundException, UserQueryPredicateNotMetException, ValidationException, WidgetNotFoundException, WorkspaceNotFoundException, } from "../models/errors";
419
431
  import { UsersServiceException } from "../models/UsersServiceException";
420
432
  const _s_registry = TypeRegistry.for(_s);
421
433
  export var UsersServiceException$ = [-3, _s, "UsersServiceException", 0, [], []];
@@ -430,6 +442,12 @@ export var ForbiddenException$ = [-3, n0, _FE,
430
442
  [0], 1
431
443
  ];
432
444
  n0_registry.registerError(ForbiddenException$, ForbiddenException);
445
+ export var RateLimitExceededException$ = [-3, n0, _RLEE,
446
+ { [_e]: _c, [_hE]: 429 },
447
+ [_m, _rL, _rLR, _rLRa, _rA],
448
+ [0, [0, { [_hH]: _XRL }], [1, { [_hH]: _XRR }], [1, { [_hH]: _XRR_ }], [1, { [_hH]: _RA }]], 1
449
+ ];
450
+ n0_registry.registerError(RateLimitExceededException$, RateLimitExceededException);
433
451
  export var ValidationException$ = [-3, n0, _VE,
434
452
  { [_e]: _c, [_hE]: 400 },
435
453
  [_m],
@@ -544,6 +562,11 @@ export var PbxColleague$ = [3, n4, _PC,
544
562
  [_i, _ex, _pD, _p, _r, _gN, _gD, _l, _d, _fD, _pi, _lT, _j, _n, _lo, _oP, _mP, _fN, _em, _de, _sI],
545
563
  [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], 13
546
564
  ];
565
+ export var InvitedUser$ = [3, n1, _IU,
566
+ 0,
567
+ [_i, _n, _em, _ph, _co, _pUI],
568
+ [0, 0, 0, 0, 0, 0], 1
569
+ ];
547
570
  export var SkippedMember$ = [3, n1, _SM,
548
571
  0,
549
572
  [_i, _em, _ph],
@@ -927,7 +950,7 @@ export var InviteInput$ = [3, n3, _II,
927
950
  export var InviteOutput$ = [3, n3, _IO,
928
951
  0,
929
952
  [_u, _sIk],
930
- [() => UsersList, () => SkippedMembersList], 2
953
+ [() => InvitedUsersList, () => SkippedMembersList], 2
931
954
  ];
932
955
  export var LinkIdentityInput$ = [3, n3, _LII,
933
956
  0,
@@ -1232,6 +1255,9 @@ export var Workspace$ = [3, n3, _W,
1232
1255
  var AgentGuidelinesList = 64 | 0;
1233
1256
  var ColleaguesFilterList = 64 | 0;
1234
1257
  var PbxColleaguesQueryFieldList = 64 | 0;
1258
+ var InvitedUsersList = [1, n1, _IUL,
1259
+ 0, () => InvitedUser$
1260
+ ];
1235
1261
  var SkippedMembersList = [1, n1, _SML,
1236
1262
  0, () => SkippedMember$
1237
1263
  ];
@@ -79,6 +79,8 @@ declare const BatchGetUsersCommand_base: {
79
79
  *
80
80
  * @throws {@link ValidationException} (client fault)
81
81
  *
82
+ * @throws {@link RateLimitExceededException} (client fault)
83
+ *
82
84
  * @throws {@link UsersServiceException}
83
85
  * <p>Base exception class for all service exceptions from Users service.</p>
84
86
  *
@@ -64,6 +64,8 @@ declare const BatchGetUsersEmailNotificationsSettingsCommand_base: {
64
64
  *
65
65
  * @throws {@link ValidationException} (client fault)
66
66
  *
67
+ * @throws {@link RateLimitExceededException} (client fault)
68
+ *
67
69
  * @throws {@link UsersServiceException}
68
70
  * <p>Base exception class for all service exceptions from Users service.</p>
69
71
  *
@@ -115,6 +115,8 @@ declare const BatchGetUsersPbxLinkDataCommand_base: {
115
115
  *
116
116
  * @throws {@link ValidationException} (client fault)
117
117
  *
118
+ * @throws {@link RateLimitExceededException} (client fault)
119
+ *
118
120
  * @throws {@link UsersServiceException}
119
121
  * <p>Base exception class for all service exceptions from Users service.</p>
120
122
  *
@@ -115,6 +115,8 @@ declare const BatchGetUsersPbxLinkDataV1Command_base: {
115
115
  *
116
116
  * @throws {@link ValidationException} (client fault)
117
117
  *
118
+ * @throws {@link RateLimitExceededException} (client fault)
119
+ *
118
120
  * @throws {@link UsersServiceException}
119
121
  * <p>Base exception class for all service exceptions from Users service.</p>
120
122
  *
@@ -69,6 +69,8 @@ declare const ChangeUserEmailCommand_base: {
69
69
  *
70
70
  * @throws {@link ValidationException} (client fault)
71
71
  *
72
+ * @throws {@link RateLimitExceededException} (client fault)
73
+ *
72
74
  * @throws {@link UsersServiceException}
73
75
  * <p>Base exception class for all service exceptions from Users service.</p>
74
76
  *
@@ -69,6 +69,8 @@ declare const CreateAnonymousSessionCommand_base: {
69
69
  *
70
70
  * @throws {@link ValidationException} (client fault)
71
71
  *
72
+ * @throws {@link RateLimitExceededException} (client fault)
73
+ *
72
74
  * @throws {@link UsersServiceException}
73
75
  * <p>Base exception class for all service exceptions from Users service.</p>
74
76
  *
@@ -79,6 +79,8 @@ declare const CreateBotApiKeyCommand_base: {
79
79
  *
80
80
  * @throws {@link ValidationException} (client fault)
81
81
  *
82
+ * @throws {@link RateLimitExceededException} (client fault)
83
+ *
82
84
  * @throws {@link UsersServiceException}
83
85
  * <p>Base exception class for all service exceptions from Users service.</p>
84
86
  *
@@ -253,6 +253,8 @@ declare const CreateBotCommand_base: {
253
253
  *
254
254
  * @throws {@link ValidationException} (client fault)
255
255
  *
256
+ * @throws {@link RateLimitExceededException} (client fault)
257
+ *
256
258
  * @throws {@link UsersServiceException}
257
259
  * <p>Base exception class for all service exceptions from Users service.</p>
258
260
  *
@@ -59,6 +59,8 @@ declare const CreateSystemBotCommand_base: {
59
59
  *
60
60
  * @throws {@link ValidationException} (client fault)
61
61
  *
62
+ * @throws {@link RateLimitExceededException} (client fault)
63
+ *
62
64
  * @throws {@link UsersServiceException}
63
65
  * <p>Base exception class for all service exceptions from Users service.</p>
64
66
  *
@@ -61,6 +61,8 @@ declare const DeleteBotApiKeyCommand_base: {
61
61
  *
62
62
  * @throws {@link ValidationException} (client fault)
63
63
  *
64
+ * @throws {@link RateLimitExceededException} (client fault)
65
+ *
64
66
  * @throws {@link UsersServiceException}
65
67
  * <p>Base exception class for all service exceptions from Users service.</p>
66
68
  *
@@ -58,6 +58,8 @@ declare const DeleteBotCommand_base: {
58
58
  *
59
59
  * @throws {@link ValidationException} (client fault)
60
60
  *
61
+ * @throws {@link RateLimitExceededException} (client fault)
62
+ *
61
63
  * @throws {@link UsersServiceException}
62
64
  * <p>Base exception class for all service exceptions from Users service.</p>
63
65
  *
@@ -63,6 +63,8 @@ declare const GetAccountCommand_base: {
63
63
  *
64
64
  * @throws {@link ValidationException} (client fault)
65
65
  *
66
+ * @throws {@link RateLimitExceededException} (client fault)
67
+ *
66
68
  * @throws {@link UsersServiceException}
67
69
  * <p>Base exception class for all service exceptions from Users service.</p>
68
70
  *
@@ -57,6 +57,8 @@ declare const GetAppVersionCommand_base: {
57
57
  *
58
58
  * @throws {@link ValidationException} (client fault)
59
59
  *
60
+ * @throws {@link RateLimitExceededException} (client fault)
61
+ *
60
62
  * @throws {@link UsersServiceException}
61
63
  * <p>Base exception class for all service exceptions from Users service.</p>
62
64
  *
@@ -232,6 +232,8 @@ declare const GetBotCallbackCommand_base: {
232
232
  *
233
233
  * @throws {@link ValidationException} (client fault)
234
234
  *
235
+ * @throws {@link RateLimitExceededException} (client fault)
236
+ *
235
237
  * @throws {@link UsersServiceException}
236
238
  * <p>Base exception class for all service exceptions from Users service.</p>
237
239
  *
@@ -73,6 +73,8 @@ declare const GetBotCommand_base: {
73
73
  *
74
74
  * @throws {@link ValidationException} (client fault)
75
75
  *
76
+ * @throws {@link RateLimitExceededException} (client fault)
77
+ *
76
78
  * @throws {@link UsersServiceException}
77
79
  * <p>Base exception class for all service exceptions from Users service.</p>
78
80
  *
@@ -77,6 +77,8 @@ declare const GetUserCommand_base: {
77
77
  *
78
78
  * @throws {@link ValidationException} (client fault)
79
79
  *
80
+ * @throws {@link RateLimitExceededException} (client fault)
81
+ *
80
82
  * @throws {@link UsersServiceException}
81
83
  * <p>Base exception class for all service exceptions from Users service.</p>
82
84
  *
@@ -62,6 +62,8 @@ declare const GetUserEmailNotificationsSettingsCommand_base: {
62
62
  *
63
63
  * @throws {@link ValidationException} (client fault)
64
64
  *
65
+ * @throws {@link RateLimitExceededException} (client fault)
66
+ *
65
67
  * @throws {@link UsersServiceException}
66
68
  * <p>Base exception class for all service exceptions from Users service.</p>
67
69
  *
@@ -113,6 +113,8 @@ declare const GetUserPbxLinkDataCommand_base: {
113
113
  *
114
114
  * @throws {@link ValidationException} (client fault)
115
115
  *
116
+ * @throws {@link RateLimitExceededException} (client fault)
117
+ *
116
118
  * @throws {@link UsersServiceException}
117
119
  * <p>Base exception class for all service exceptions from Users service.</p>
118
120
  *
@@ -60,6 +60,8 @@ declare const GetUserPbxLinkSuggestionCommand_base: {
60
60
  *
61
61
  * @throws {@link ValidationException} (client fault)
62
62
  *
63
+ * @throws {@link RateLimitExceededException} (client fault)
64
+ *
63
65
  * @throws {@link UsersServiceException}
64
66
  * <p>Base exception class for all service exceptions from Users service.</p>
65
67
  *
@@ -60,6 +60,8 @@ declare const GetUserPbxLinkSuggestionV1Command_base: {
60
60
  *
61
61
  * @throws {@link ValidationException} (client fault)
62
62
  *
63
+ * @throws {@link RateLimitExceededException} (client fault)
64
+ *
63
65
  * @throws {@link UsersServiceException}
64
66
  * <p>Base exception class for all service exceptions from Users service.</p>
65
67
  *
@@ -66,6 +66,8 @@ declare const IntelligenceSearchCommand_base: {
66
66
  *
67
67
  * @throws {@link ValidationException} (client fault)
68
68
  *
69
+ * @throws {@link RateLimitExceededException} (client fault)
70
+ *
69
71
  * @throws {@link UsersServiceException}
70
72
  * <p>Base exception class for all service exceptions from Users service.</p>
71
73
  *
@@ -52,25 +52,14 @@ declare const InviteCommand_base: {
52
52
  * const command = new InviteCommand(input);
53
53
  * const response = await client.send(command);
54
54
  * // { // InviteOutput
55
- * // users: [ // UsersList // required
56
- * // { // User
55
+ * // users: [ // InvitedUsersList // required
56
+ * // { // InvitedUser
57
57
  * // id: "STRING_VALUE", // required
58
58
  * // name: "STRING_VALUE",
59
59
  * // email: "STRING_VALUE",
60
60
  * // phone: "STRING_VALUE",
61
- * // picture: "STRING_VALUE",
62
- * // locale: "STRING_VALUE",
63
- * // timeZone: "STRING_VALUE",
64
61
  * // company: "STRING_VALUE",
65
- * // bot: true || false,
66
- * // pbxDomain: "STRING_VALUE",
67
- * // pbxPort: "STRING_VALUE",
68
- * // pbxExtension: "STRING_VALUE",
69
- * // pbxSerial: "STRING_VALUE",
70
62
  * // pbxUserId: "STRING_VALUE",
71
- * // pbxGroupId: "STRING_VALUE",
72
- * // createdAt: "STRING_VALUE",
73
- * // updatedAt: "STRING_VALUE",
74
63
  * // },
75
64
  * // ],
76
65
  * // skippedInvitees: [ // SkippedMembersList // required
@@ -94,6 +83,8 @@ declare const InviteCommand_base: {
94
83
  *
95
84
  * @throws {@link ValidationException} (client fault)
96
85
  *
86
+ * @throws {@link RateLimitExceededException} (client fault)
87
+ *
97
88
  * @throws {@link UsersServiceException}
98
89
  * <p>Base exception class for all service exceptions from Users service.</p>
99
90
  *
@@ -66,6 +66,8 @@ declare const LinkIdentityCommand_base: {
66
66
  *
67
67
  * @throws {@link ForbiddenException} (client fault)
68
68
  *
69
+ * @throws {@link RateLimitExceededException} (client fault)
70
+ *
69
71
  * @throws {@link UsersServiceException}
70
72
  * <p>Base exception class for all service exceptions from Users service.</p>
71
73
  *
@@ -64,6 +64,8 @@ declare const ListBotApiKeysCommand_base: {
64
64
  *
65
65
  * @throws {@link ValidationException} (client fault)
66
66
  *
67
+ * @throws {@link RateLimitExceededException} (client fault)
68
+ *
67
69
  * @throws {@link UsersServiceException}
68
70
  * <p>Base exception class for all service exceptions from Users service.</p>
69
71
  *
@@ -72,6 +72,8 @@ declare const ListBotsCommand_base: {
72
72
  *
73
73
  * @throws {@link ValidationException} (client fault)
74
74
  *
75
+ * @throws {@link RateLimitExceededException} (client fault)
76
+ *
75
77
  * @throws {@link UsersServiceException}
76
78
  * <p>Base exception class for all service exceptions from Users service.</p>
77
79
  *
@@ -65,6 +65,8 @@ declare const ListIdentitiesCommand_base: {
65
65
  *
66
66
  * @throws {@link ValidationException} (client fault)
67
67
  *
68
+ * @throws {@link RateLimitExceededException} (client fault)
69
+ *
68
70
  * @throws {@link UsersServiceException}
69
71
  * <p>Base exception class for all service exceptions from Users service.</p>
70
72
  *
@@ -141,6 +141,8 @@ declare const ListWorkspacesCommand_base: {
141
141
  *
142
142
  * @throws {@link ValidationException} (client fault)
143
143
  *
144
+ * @throws {@link RateLimitExceededException} (client fault)
145
+ *
144
146
  * @throws {@link UsersServiceException}
145
147
  * <p>Base exception class for all service exceptions from Users service.</p>
146
148
  *
@@ -62,6 +62,8 @@ declare const PartialUpdateUserEmailNotificationsSettingsCommand_base: {
62
62
  *
63
63
  * @throws {@link ValidationException} (client fault)
64
64
  *
65
+ * @throws {@link RateLimitExceededException} (client fault)
66
+ *
65
67
  * @throws {@link UsersServiceException}
66
68
  * <p>Base exception class for all service exceptions from Users service.</p>
67
69
  *
@@ -133,6 +133,8 @@ declare const QueryColleaguesCommand_base: {
133
133
  *
134
134
  * @throws {@link ValidationException} (client fault)
135
135
  *
136
+ * @throws {@link RateLimitExceededException} (client fault)
137
+ *
136
138
  * @throws {@link UsersServiceException}
137
139
  * <p>Base exception class for all service exceptions from Users service.</p>
138
140
  *
@@ -86,6 +86,8 @@ declare const QueryUserCommand_base: {
86
86
  *
87
87
  * @throws {@link ValidationException} (client fault)
88
88
  *
89
+ * @throws {@link RateLimitExceededException} (client fault)
90
+ *
89
91
  * @throws {@link UsersServiceException}
90
92
  * <p>Base exception class for all service exceptions from Users service.</p>
91
93
  *
@@ -86,6 +86,8 @@ declare const QueryUsersCommand_base: {
86
86
  *
87
87
  * @throws {@link ValidationException} (client fault)
88
88
  *
89
+ * @throws {@link RateLimitExceededException} (client fault)
90
+ *
89
91
  * @throws {@link UsersServiceException}
90
92
  * <p>Base exception class for all service exceptions from Users service.</p>
91
93
  *
@@ -56,6 +56,8 @@ declare const ToggleTranscriptionEmailNotificationsSubscriptionCommand_base: {
56
56
  *
57
57
  * @throws {@link ValidationException} (client fault)
58
58
  *
59
+ * @throws {@link RateLimitExceededException} (client fault)
60
+ *
59
61
  * @throws {@link UsersServiceException}
60
62
  * <p>Base exception class for all service exceptions from Users service.</p>
61
63
  *
@@ -56,6 +56,8 @@ declare const ToggleUnreadEmailNotificationsSubscriptionCommand_base: {
56
56
  *
57
57
  * @throws {@link ValidationException} (client fault)
58
58
  *
59
+ * @throws {@link RateLimitExceededException} (client fault)
60
+ *
59
61
  * @throws {@link UsersServiceException}
60
62
  * <p>Base exception class for all service exceptions from Users service.</p>
61
63
  *
@@ -62,6 +62,8 @@ declare const UnlinkIdentityCommand_base: {
62
62
  *
63
63
  * @throws {@link ForbiddenException} (client fault)
64
64
  *
65
+ * @throws {@link RateLimitExceededException} (client fault)
66
+ *
65
67
  * @throws {@link UsersServiceException}
66
68
  * <p>Base exception class for all service exceptions from Users service.</p>
67
69
  *
@@ -62,6 +62,8 @@ declare const UnlinkWorkspaceCommand_base: {
62
62
  *
63
63
  * @throws {@link ValidationException} (client fault)
64
64
  *
65
+ * @throws {@link RateLimitExceededException} (client fault)
66
+ *
65
67
  * @throws {@link UsersServiceException}
66
68
  * <p>Base exception class for all service exceptions from Users service.</p>
67
69
  *
@@ -69,6 +69,8 @@ declare const UpdateAccountCommand_base: {
69
69
  *
70
70
  * @throws {@link ForbiddenException} (client fault)
71
71
  *
72
+ * @throws {@link RateLimitExceededException} (client fault)
73
+ *
72
74
  * @throws {@link UsersServiceException}
73
75
  * <p>Base exception class for all service exceptions from Users service.</p>
74
76
  *
@@ -403,6 +403,8 @@ declare const UpdateBotCallbackCommand_base: {
403
403
  *
404
404
  * @throws {@link ValidationException} (client fault)
405
405
  *
406
+ * @throws {@link RateLimitExceededException} (client fault)
407
+ *
406
408
  * @throws {@link UsersServiceException}
407
409
  * <p>Base exception class for all service exceptions from Users service.</p>
408
410
  *
@@ -78,6 +78,8 @@ declare const UpdateBotCommand_base: {
78
78
  *
79
79
  * @throws {@link ValidationException} (client fault)
80
80
  *
81
+ * @throws {@link RateLimitExceededException} (client fault)
82
+ *
81
83
  * @throws {@link UsersServiceException}
82
84
  * <p>Base exception class for all service exceptions from Users service.</p>
83
85
  *
@@ -62,6 +62,8 @@ declare const UpdateUserEmailNotificationsSettingsCommand_base: {
62
62
  *
63
63
  * @throws {@link ValidationException} (client fault)
64
64
  *
65
+ * @throws {@link RateLimitExceededException} (client fault)
66
+ *
65
67
  * @throws {@link UsersServiceException}
66
68
  * <p>Base exception class for all service exceptions from Users service.</p>
67
69
  *
@@ -144,6 +144,8 @@ declare const UpdateWorkspaceCommand_base: {
144
144
  *
145
145
  * @throws {@link ValidationException} (client fault)
146
146
  *
147
+ * @throws {@link RateLimitExceededException} (client fault)
148
+ *
147
149
  * @throws {@link UsersServiceException}
148
150
  * <p>Base exception class for all service exceptions from Users service.</p>
149
151
  *
@@ -57,6 +57,8 @@ declare const UploadPictureCommand_base: {
57
57
  *
58
58
  * @throws {@link ValidationException} (client fault)
59
59
  *
60
+ * @throws {@link RateLimitExceededException} (client fault)
61
+ *
60
62
  * @throws {@link UsersServiceException}
61
63
  * <p>Base exception class for all service exceptions from Users service.</p>
62
64
  *
@@ -59,6 +59,8 @@ declare const UploadPictureV1Command_base: {
59
59
  *
60
60
  * @throws {@link ValidationException} (client fault)
61
61
  *
62
+ * @throws {@link RateLimitExceededException} (client fault)
63
+ *
62
64
  * @throws {@link UsersServiceException}
63
65
  * <p>Base exception class for all service exceptions from Users service.</p>
64
66
  *
@@ -61,6 +61,8 @@ declare const VerifyBotSecretKeyCommand_base: {
61
61
  *
62
62
  * @throws {@link ValidationException} (client fault)
63
63
  *
64
+ * @throws {@link RateLimitExceededException} (client fault)
65
+ *
64
66
  * @throws {@link UsersServiceException}
65
67
  * <p>Base exception class for all service exceptions from Users service.</p>
66
68
  *
@@ -61,6 +61,8 @@ declare const VerifyBotSecretKeyV1Command_base: {
61
61
  *
62
62
  * @throws {@link ValidationException} (client fault)
63
63
  *
64
+ * @throws {@link RateLimitExceededException} (client fault)
65
+ *
64
66
  * @throws {@link UsersServiceException}
65
67
  * <p>Base exception class for all service exceptions from Users service.</p>
66
68
  *
@@ -67,6 +67,8 @@ declare const VerifyIdentityCommand_base: {
67
67
  *
68
68
  * @throws {@link ForbiddenException} (client fault)
69
69
  *
70
+ * @throws {@link RateLimitExceededException} (client fault)
71
+ *
70
72
  * @throws {@link UsersServiceException}
71
73
  * <p>Base exception class for all service exceptions from Users service.</p>
72
74
  *
@@ -11,6 +11,37 @@ export declare class ForbiddenException extends __BaseException {
11
11
  */
12
12
  constructor(opts: __ExceptionOptionType<ForbiddenException, __BaseException>);
13
13
  }
14
+ /**
15
+ * @public
16
+ */
17
+ export declare class RateLimitExceededException extends __BaseException {
18
+ readonly name: "RateLimitExceededException";
19
+ readonly $fault: "client";
20
+ /**
21
+ * Displays the applicable rate limits for the current request.
22
+ * @public
23
+ */
24
+ rateLimit?: string | undefined;
25
+ /**
26
+ * Indicates how many requests a user can still make within the current time window.
27
+ * @public
28
+ */
29
+ rateLimitRemaining?: number | undefined;
30
+ /**
31
+ * Shows the time in seconds until the rate limit resets.
32
+ * @public
33
+ */
34
+ rateLimitReset?: number | undefined;
35
+ /**
36
+ * Displays how many seconds the user agent should wait before making a follow-up request.
37
+ * @public
38
+ */
39
+ retryAfter?: number | undefined;
40
+ /**
41
+ * @internal
42
+ */
43
+ constructor(opts: __ExceptionOptionType<RateLimitExceededException, __BaseException>);
44
+ }
14
45
  /**
15
46
  * @public
16
47
  */
@@ -143,6 +143,28 @@ export interface SkippedMember {
143
143
  */
144
144
  phone?: string | undefined;
145
145
  }
146
+ /**
147
+ * Reduced user record returned by Invite. Callers receive only the fields they use to correlate the invitee and continue the conversation flow: id, name, email, phone, company, and pbxUserId.
148
+ * PBX installation details (domain, port, extension, serial, group), profile metadata (picture, locale, time zone, bot), and timestamps are not included.
149
+ *
150
+ * @public
151
+ */
152
+ export interface InvitedUser {
153
+ id: string;
154
+ name?: string | undefined;
155
+ email?: string | undefined;
156
+ phone?: string | undefined;
157
+ /**
158
+ * Tenant id. Callers use it to tell a colleague from an external user.
159
+ * @public
160
+ */
161
+ company?: string | undefined;
162
+ /**
163
+ * PBX user id of a colleague. A caller that already knows the colleague matches the invite result by this value.
164
+ * @public
165
+ */
166
+ pbxUserId?: string | undefined;
167
+ }
146
168
  /**
147
169
  * @public
148
170
  */
@@ -1524,10 +1546,10 @@ export interface InviteInput {
1524
1546
  */
1525
1547
  export interface InviteOutput {
1526
1548
  /**
1527
- * A list of users who were successfully invited.
1549
+ * A list of users who were successfully invited. Each entry contains only id, name, email, phone, company, and pbxUserId.
1528
1550
  * @public
1529
1551
  */
1530
- users: User[];
1552
+ users: InvitedUser[];
1531
1553
  /**
1532
1554
  * A list of invitees that were skipped during the operation, for example because the resolved account is deactivated in GetStream. Each entry carries the email or phone supplied in the request, and the user id when it was already known.
1533
1555
  * @public
@@ -2,6 +2,7 @@ import { TypeRegistry } from "@smithy/core/schema";
2
2
  import type { StaticErrorSchema, StaticOperationSchema, StaticStructureSchema, StaticUnionSchema } from "@smithy/types";
3
3
  export declare var UsersServiceException$: StaticErrorSchema;
4
4
  export declare var ForbiddenException$: StaticErrorSchema;
5
+ export declare var RateLimitExceededException$: StaticErrorSchema;
5
6
  export declare var ValidationException$: StaticErrorSchema;
6
7
  export declare var ChannelNotFoundException$: StaticErrorSchema;
7
8
  export declare var WidgetNotFoundException$: StaticErrorSchema;
@@ -26,6 +27,7 @@ export declare var WorkspaceNotFoundException$: StaticErrorSchema;
26
27
  */
27
28
  export declare const errorTypeRegistries: TypeRegistry[];
28
29
  export declare var PbxColleague$: StaticStructureSchema;
30
+ export declare var InvitedUser$: StaticStructureSchema;
29
31
  export declare var SkippedMember$: StaticStructureSchema;
30
32
  export declare var User$: StaticStructureSchema;
31
33
  export declare var UserToInvite$: StaticStructureSchema;
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.1.0",
4
+ "version": "4.1.2",
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",