@wildix/xbees-users-client 4.1.1 → 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 +40 -17
  3. package/dist-es/models/errors.js +20 -0
  4. package/dist-es/schemas/schemas_0.js +36 -13
  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 +3 -5
  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 +25 -27
  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";
@@ -320,8 +328,7 @@ const _kb = "kb";
320
328
  const _ke = "keys";
321
329
  const _l = "language";
322
330
  const _lT = "licenseType";
323
- const _li = "limit";
324
- const _lic = "license";
331
+ const _li = "license";
325
332
  const _ll = "llm";
326
333
  const _lo = "login";
327
334
  const _loc = "locale";
@@ -334,12 +341,11 @@ const _n = "name";
334
341
  const _nA = "networkAddresses";
335
342
  const _nD = "newData";
336
343
  const _no = "notifications";
337
- const _o = "offset";
344
+ const _o = "otp";
338
345
  const _oAA = "openAiAssistant";
339
346
  const _oD = "oldData";
340
347
  const _oP = "officePhone";
341
348
  const _oa = "oauth";
342
- const _ot = "otp";
343
349
  const _p = "pbx";
344
350
  const _pD = "pbxDn";
345
351
  const _pDb = "pbxDomain";
@@ -365,6 +371,10 @@ const _pred = "predefined";
365
371
  const _q = "query";
366
372
  const _qu = "queries";
367
373
  const _r = "role";
374
+ const _rA = "retryAfter";
375
+ const _rL = "rateLimit";
376
+ const _rLR = "rateLimitRemaining";
377
+ const _rLRa = "rateLimitReset";
368
378
  const _re = "result";
369
379
  const _s = "smithy.ts.sdk.synthetic.wildix.xbees.users";
370
380
  const _sA = "sfnArn";
@@ -396,7 +406,6 @@ const _ti = "timeout";
396
406
  const _to = "tools";
397
407
  const _tok = "token";
398
408
  const _too = "tool";
399
- const _tot = "total";
400
409
  const _tr = "transcription";
401
410
  const _u = "users";
402
411
  const _uA = "updatedAt";
@@ -440,6 +449,12 @@ exports.ForbiddenException$ = [-3, n0, _FE,
440
449
  [0], 1
441
450
  ];
442
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);
443
458
  exports.ValidationException$ = [-3, n0, _VE,
444
459
  { [_e]: _c, [_hE]: 400 },
445
460
  [_m],
@@ -554,6 +569,11 @@ exports.PbxColleague$ = [3, n4, _PC,
554
569
  [_i, _ex, _pD, _p, _r, _gN, _gD, _l, _d, _fD, _pi, _lT, _j, _n, _lo, _oP, _mP, _fN, _em, _de, _sI],
555
570
  [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], 13
556
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
+ ];
557
577
  exports.SkippedMember$ = [3, n1, _SM,
558
578
  0,
559
579
  [_i, _em, _ph],
@@ -937,7 +957,7 @@ exports.InviteInput$ = [3, n3, _II,
937
957
  exports.InviteOutput$ = [3, n3, _IO,
938
958
  0,
939
959
  [_u, _sIk],
940
- [() => UsersList, () => SkippedMembersList], 2
960
+ [() => InvitedUsersList, () => SkippedMembersList], 2
941
961
  ];
942
962
  exports.LinkIdentityInput$ = [3, n3, _LII,
943
963
  0,
@@ -981,13 +1001,13 @@ exports.ListIdentitiesOutput$ = [3, n3, _LIOi,
981
1001
  ];
982
1002
  exports.ListWorkspacesInput$ = [3, n3, _LWI,
983
1003
  0,
984
- [_aIc, _li, _o, _q],
985
- [[0, 1], [1, { [_hQ]: _li }], [1, { [_hQ]: _o }], [0, { [_hQ]: _q }]], 1
1004
+ [_aIc],
1005
+ [[0, 1]], 1
986
1006
  ];
987
1007
  exports.ListWorkspacesOutput$ = [3, n3, _LWO,
988
1008
  0,
989
- [_w, _tot],
990
- [() => WorkspaceList, 1], 1
1009
+ [_w],
1010
+ [() => WorkspaceList], 1
991
1011
  ];
992
1012
  exports.NewEmailData$ = [3, n3, _NED,
993
1013
  0,
@@ -1201,7 +1221,7 @@ exports.UserPersonalInfo$ = [3, n3, _UPIse,
1201
1221
  ];
1202
1222
  exports.UserQueryPredicate$ = [3, n3, _UQP,
1203
1223
  0,
1204
- [_lic],
1224
+ [_li],
1205
1225
  [0]
1206
1226
  ];
1207
1227
  exports.VerifyBotSecretKeyInput$ = [3, n3, _VBSKI,
@@ -1226,7 +1246,7 @@ exports.VerifyBotSecretKeyV1Output$ = [3, n3, _VBSKVO,
1226
1246
  ];
1227
1247
  exports.VerifyIdentityInput$ = [3, n3, _VII,
1228
1248
  0,
1229
- [_aIc, _id, _ot],
1249
+ [_aIc, _id, _o],
1230
1250
  [[0, 1], 0, 0], 3
1231
1251
  ];
1232
1252
  exports.VerifyIdentityOutput$ = [3, n3, _VIO,
@@ -1242,6 +1262,9 @@ exports.Workspace$ = [3, n3, _W,
1242
1262
  var AgentGuidelinesList = 64 | 0;
1243
1263
  var ColleaguesFilterList = 64 | 0;
1244
1264
  var PbxColleaguesQueryFieldList = 64 | 0;
1265
+ var InvitedUsersList = [1, n1, _IUL,
1266
+ 0, () => exports.InvitedUser$
1267
+ ];
1245
1268
  var SkippedMembersList = [1, n1, _SML,
1246
1269
  0, () => exports.SkippedMember$
1247
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";
@@ -313,8 +321,7 @@ const _kb = "kb";
313
321
  const _ke = "keys";
314
322
  const _l = "language";
315
323
  const _lT = "licenseType";
316
- const _li = "limit";
317
- const _lic = "license";
324
+ const _li = "license";
318
325
  const _ll = "llm";
319
326
  const _lo = "login";
320
327
  const _loc = "locale";
@@ -327,12 +334,11 @@ const _n = "name";
327
334
  const _nA = "networkAddresses";
328
335
  const _nD = "newData";
329
336
  const _no = "notifications";
330
- const _o = "offset";
337
+ const _o = "otp";
331
338
  const _oAA = "openAiAssistant";
332
339
  const _oD = "oldData";
333
340
  const _oP = "officePhone";
334
341
  const _oa = "oauth";
335
- const _ot = "otp";
336
342
  const _p = "pbx";
337
343
  const _pD = "pbxDn";
338
344
  const _pDb = "pbxDomain";
@@ -358,6 +364,10 @@ const _pred = "predefined";
358
364
  const _q = "query";
359
365
  const _qu = "queries";
360
366
  const _r = "role";
367
+ const _rA = "retryAfter";
368
+ const _rL = "rateLimit";
369
+ const _rLR = "rateLimitRemaining";
370
+ const _rLRa = "rateLimitReset";
361
371
  const _re = "result";
362
372
  const _s = "smithy.ts.sdk.synthetic.wildix.xbees.users";
363
373
  const _sA = "sfnArn";
@@ -389,7 +399,6 @@ const _ti = "timeout";
389
399
  const _to = "tools";
390
400
  const _tok = "token";
391
401
  const _too = "tool";
392
- const _tot = "total";
393
402
  const _tr = "transcription";
394
403
  const _u = "users";
395
404
  const _uA = "updatedAt";
@@ -418,7 +427,7 @@ const n2 = "wildix.xbees.kite";
418
427
  const n3 = "wildix.xbees.users";
419
428
  const n4 = "wildix.wms.api";
420
429
  import { TypeRegistry } from "@smithy/core/schema";
421
- 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";
422
431
  import { UsersServiceException } from "../models/UsersServiceException";
423
432
  const _s_registry = TypeRegistry.for(_s);
424
433
  export var UsersServiceException$ = [-3, _s, "UsersServiceException", 0, [], []];
@@ -433,6 +442,12 @@ export var ForbiddenException$ = [-3, n0, _FE,
433
442
  [0], 1
434
443
  ];
435
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);
436
451
  export var ValidationException$ = [-3, n0, _VE,
437
452
  { [_e]: _c, [_hE]: 400 },
438
453
  [_m],
@@ -547,6 +562,11 @@ export var PbxColleague$ = [3, n4, _PC,
547
562
  [_i, _ex, _pD, _p, _r, _gN, _gD, _l, _d, _fD, _pi, _lT, _j, _n, _lo, _oP, _mP, _fN, _em, _de, _sI],
548
563
  [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], 13
549
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
+ ];
550
570
  export var SkippedMember$ = [3, n1, _SM,
551
571
  0,
552
572
  [_i, _em, _ph],
@@ -930,7 +950,7 @@ export var InviteInput$ = [3, n3, _II,
930
950
  export var InviteOutput$ = [3, n3, _IO,
931
951
  0,
932
952
  [_u, _sIk],
933
- [() => UsersList, () => SkippedMembersList], 2
953
+ [() => InvitedUsersList, () => SkippedMembersList], 2
934
954
  ];
935
955
  export var LinkIdentityInput$ = [3, n3, _LII,
936
956
  0,
@@ -974,13 +994,13 @@ export var ListIdentitiesOutput$ = [3, n3, _LIOi,
974
994
  ];
975
995
  export var ListWorkspacesInput$ = [3, n3, _LWI,
976
996
  0,
977
- [_aIc, _li, _o, _q],
978
- [[0, 1], [1, { [_hQ]: _li }], [1, { [_hQ]: _o }], [0, { [_hQ]: _q }]], 1
997
+ [_aIc],
998
+ [[0, 1]], 1
979
999
  ];
980
1000
  export var ListWorkspacesOutput$ = [3, n3, _LWO,
981
1001
  0,
982
- [_w, _tot],
983
- [() => WorkspaceList, 1], 1
1002
+ [_w],
1003
+ [() => WorkspaceList], 1
984
1004
  ];
985
1005
  export var NewEmailData$ = [3, n3, _NED,
986
1006
  0,
@@ -1194,7 +1214,7 @@ export var UserPersonalInfo$ = [3, n3, _UPIse,
1194
1214
  ];
1195
1215
  export var UserQueryPredicate$ = [3, n3, _UQP,
1196
1216
  0,
1197
- [_lic],
1217
+ [_li],
1198
1218
  [0]
1199
1219
  ];
1200
1220
  export var VerifyBotSecretKeyInput$ = [3, n3, _VBSKI,
@@ -1219,7 +1239,7 @@ export var VerifyBotSecretKeyV1Output$ = [3, n3, _VBSKVO,
1219
1239
  ];
1220
1240
  export var VerifyIdentityInput$ = [3, n3, _VII,
1221
1241
  0,
1222
- [_aIc, _id, _ot],
1242
+ [_aIc, _id, _o],
1223
1243
  [[0, 1], 0, 0], 3
1224
1244
  ];
1225
1245
  export var VerifyIdentityOutput$ = [3, n3, _VIO,
@@ -1235,6 +1255,9 @@ export var Workspace$ = [3, n3, _W,
1235
1255
  var AgentGuidelinesList = 64 | 0;
1236
1256
  var ColleaguesFilterList = 64 | 0;
1237
1257
  var PbxColleaguesQueryFieldList = 64 | 0;
1258
+ var InvitedUsersList = [1, n1, _IUL,
1259
+ 0, () => InvitedUser$
1260
+ ];
1238
1261
  var SkippedMembersList = [1, n1, _SML,
1239
1262
  0, () => SkippedMember$
1240
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
  *
@@ -27,7 +27,7 @@ declare const ListWorkspacesCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * Lists workspaces available to the account. Without limit, returns every workspace. With limit, returns one page of active work workspaces: query narrows that set by PBX domain before the page is sliced, offset skips into the filtered set, and each workspace includes pbxUser when a PBX record exists.
30
+ * Lists all workspaces available to the account.
31
31
  * @example
32
32
  * Use a bare-bones client and the command you need to make an API call.
33
33
  * ```javascript
@@ -38,9 +38,6 @@ declare const ListWorkspacesCommand_base: {
38
38
  * const client = new UsersClient(config);
39
39
  * const input = { // ListWorkspacesInput
40
40
  * accountId: "STRING_VALUE", // required
41
- * limit: Number("int"),
42
- * offset: Number("int"),
43
- * query: "STRING_VALUE",
44
41
  * };
45
42
  * const command = new ListWorkspacesCommand(input);
46
43
  * const response = await client.send(command);
@@ -128,7 +125,6 @@ declare const ListWorkspacesCommand_base: {
128
125
  * // active: true || false, // required
129
126
  * // },
130
127
  * // ],
131
- * // total: Number("int"),
132
128
  * // };
133
129
  *
134
130
  * ```
@@ -145,6 +141,8 @@ declare const ListWorkspacesCommand_base: {
145
141
  *
146
142
  * @throws {@link ValidationException} (client fault)
147
143
  *
144
+ * @throws {@link RateLimitExceededException} (client fault)
145
+ *
148
146
  * @throws {@link UsersServiceException}
149
147
  * <p>Base exception class for all service exceptions from Users service.</p>
150
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
@@ -1609,21 +1631,6 @@ export interface ListWorkspacesInput {
1609
1631
  * @public
1610
1632
  */
1611
1633
  accountId: string;
1612
- /**
1613
- * Maximum number of selectable workspaces to return, from 1 to 100. When omitted, every workspace is returned and offset and query are ignored.
1614
- * @public
1615
- */
1616
- limit?: number | undefined;
1617
- /**
1618
- * Number of selectable workspaces to skip before this page. Applied only when limit is set. Defaults to 0. An offset past the end returns an empty page.
1619
- * @public
1620
- */
1621
- offset?: number | undefined;
1622
- /**
1623
- * Case-insensitive substring matched against the PBX domain. Applied only when limit is set. Blank values are ignored. Does not change total.
1624
- * @public
1625
- */
1626
- query?: string | undefined;
1627
1634
  }
1628
1635
  /**
1629
1636
  * @public
@@ -1635,7 +1642,7 @@ export interface Workspace {
1635
1642
  */
1636
1643
  companyId?: string | undefined;
1637
1644
  /**
1638
- * Stored PBX link for this workspace. ListWorkspaces sets it on each returned workspace so the page includes domain and port. Omitted when the workspace has no PBX record.
1645
+ * PBX information where user connected to.
1639
1646
  * @public
1640
1647
  */
1641
1648
  pbxUser?: UserPbxLinkData | undefined;
@@ -1669,16 +1676,7 @@ export interface Workspace {
1669
1676
  * @public
1670
1677
  */
1671
1678
  export interface ListWorkspacesOutput {
1672
- /**
1673
- * Workspaces for this request. A paged response contains only active work workspaces, ordered with the account default first and the rest by domain.
1674
- * @public
1675
- */
1676
1679
  workspaces: Workspace[];
1677
- /**
1678
- * Number of selectable workspaces (active and type work), ignoring query and offset. Present when limit is set.
1679
- * @public
1680
- */
1681
- total?: number | undefined;
1682
1680
  }
1683
1681
  /**
1684
1682
  * @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.1",
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",