@wildix/xbees-users-client 4.3.0 → 4.3.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.
package/dist-cjs/Users.js CHANGED
@@ -33,7 +33,6 @@ const PartialUpdateUserEmailNotificationsSettingsCommand_1 = require("./commands
33
33
  const QueryColleaguesCommand_1 = require("./commands/QueryColleaguesCommand");
34
34
  const QueryUserCommand_1 = require("./commands/QueryUserCommand");
35
35
  const QueryUsersCommand_1 = require("./commands/QueryUsersCommand");
36
- const ResetUserChatHistoryCommand_1 = require("./commands/ResetUserChatHistoryCommand");
37
36
  const ToggleTranscriptionEmailNotificationsSubscriptionCommand_1 = require("./commands/ToggleTranscriptionEmailNotificationsSubscriptionCommand");
38
37
  const ToggleUnreadEmailNotificationsSubscriptionCommand_1 = require("./commands/ToggleUnreadEmailNotificationsSubscriptionCommand");
39
38
  const UnlinkIdentityCommand_1 = require("./commands/UnlinkIdentityCommand");
@@ -81,7 +80,6 @@ const commands = {
81
80
  QueryColleaguesCommand: QueryColleaguesCommand_1.QueryColleaguesCommand,
82
81
  QueryUserCommand: QueryUserCommand_1.QueryUserCommand,
83
82
  QueryUsersCommand: QueryUsersCommand_1.QueryUsersCommand,
84
- ResetUserChatHistoryCommand: ResetUserChatHistoryCommand_1.ResetUserChatHistoryCommand,
85
83
  ToggleTranscriptionEmailNotificationsSubscriptionCommand: ToggleTranscriptionEmailNotificationsSubscriptionCommand_1.ToggleTranscriptionEmailNotificationsSubscriptionCommand,
86
84
  ToggleUnreadEmailNotificationsSubscriptionCommand: ToggleUnreadEmailNotificationsSubscriptionCommand_1.ToggleUnreadEmailNotificationsSubscriptionCommand,
87
85
  UnlinkIdentityCommand: UnlinkIdentityCommand_1.UnlinkIdentityCommand,
@@ -53,9 +53,31 @@ const defaultUsersHttpAuthSchemeProvider = (authParameters) => {
53
53
  break;
54
54
  }
55
55
  ;
56
- case "ResetUserChatHistory":
56
+ case "GetAccount":
57
57
  {
58
- options.push(createWildixAuthPbxHttpAuthOption(authParameters));
58
+ options.push(createWildixAuthS2sHttpAuthOption(authParameters));
59
+ options.push(createWildixAuthXbsHttpAuthOption(authParameters));
60
+ break;
61
+ }
62
+ ;
63
+ case "LinkIdentity":
64
+ {
65
+ options.push(createWildixAuthS2sHttpAuthOption(authParameters));
66
+ options.push(createWildixAuthXbsHttpAuthOption(authParameters));
67
+ break;
68
+ }
69
+ ;
70
+ case "ListIdentities":
71
+ {
72
+ options.push(createWildixAuthS2sHttpAuthOption(authParameters));
73
+ options.push(createWildixAuthXbsHttpAuthOption(authParameters));
74
+ break;
75
+ }
76
+ ;
77
+ case "ListWorkspaces":
78
+ {
79
+ options.push(createWildixAuthS2sHttpAuthOption(authParameters));
80
+ options.push(createWildixAuthXbsHttpAuthOption(authParameters));
59
81
  break;
60
82
  }
61
83
  ;
@@ -83,12 +105,40 @@ const defaultUsersHttpAuthSchemeProvider = (authParameters) => {
83
105
  break;
84
106
  }
85
107
  ;
108
+ case "UnlinkIdentity":
109
+ {
110
+ options.push(createWildixAuthS2sHttpAuthOption(authParameters));
111
+ options.push(createWildixAuthXbsHttpAuthOption(authParameters));
112
+ break;
113
+ }
114
+ ;
115
+ case "UnlinkWorkspace":
116
+ {
117
+ options.push(createWildixAuthS2sHttpAuthOption(authParameters));
118
+ options.push(createWildixAuthXbsHttpAuthOption(authParameters));
119
+ break;
120
+ }
121
+ ;
122
+ case "UpdateAccount":
123
+ {
124
+ options.push(createWildixAuthS2sHttpAuthOption(authParameters));
125
+ options.push(createWildixAuthXbsHttpAuthOption(authParameters));
126
+ break;
127
+ }
128
+ ;
86
129
  case "UpdateWorkspace":
87
130
  {
88
131
  options.push(createWildixAuthS2sHttpAuthOption(authParameters));
89
132
  break;
90
133
  }
91
134
  ;
135
+ case "VerifyIdentity":
136
+ {
137
+ options.push(createWildixAuthS2sHttpAuthOption(authParameters));
138
+ options.push(createWildixAuthXbsHttpAuthOption(authParameters));
139
+ break;
140
+ }
141
+ ;
92
142
  default: {
93
143
  options.push(createSmithyApiHttpBearerAuthHttpAuthOption(authParameters));
94
144
  options.push(createWildixAuthS2sHttpAuthOption(authParameters));
@@ -32,7 +32,6 @@ tslib_1.__exportStar(require("./PartialUpdateUserEmailNotificationsSettingsComma
32
32
  tslib_1.__exportStar(require("./QueryColleaguesCommand"), exports);
33
33
  tslib_1.__exportStar(require("./QueryUserCommand"), exports);
34
34
  tslib_1.__exportStar(require("./QueryUsersCommand"), exports);
35
- tslib_1.__exportStar(require("./ResetUserChatHistoryCommand"), exports);
36
35
  tslib_1.__exportStar(require("./ToggleTranscriptionEmailNotificationsSubscriptionCommand"), exports);
37
36
  tslib_1.__exportStar(require("./ToggleUnreadEmailNotificationsSubscriptionCommand"), exports);
38
37
  tslib_1.__exportStar(require("./UnlinkIdentityCommand"), exports);
@@ -2,9 +2,9 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
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
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.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.ResetUserChatHistoryOutput$ = exports.ResetUserChatHistoryInput$ = 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.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$ = exports.UserPbxPersonalSettings$ = exports.UserPbxLinkSuggestion$ = 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$ = exports.ToggleTranscriptionEmailNotificationsSubscription$ = exports.ResetUserChatHistory$ = exports.QueryUsers$ = 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";
@@ -167,9 +167,6 @@ const _QUOu = "QueryUsersOutput";
167
167
  const _QUu = "QueryUsers";
168
168
  const _RA = "Retry-After";
169
169
  const _RLEE = "RateLimitExceededException";
170
- const _RUCH = "ResetUserChatHistory";
171
- const _RUCHI = "ResetUserChatHistoryInput";
172
- const _RUCHO = "ResetUserChatHistoryOutput";
173
170
  const _SM = "SkippedMember";
174
171
  const _SML = "SkippedMembersList";
175
172
  const _TTENS = "ToggleTranscriptionEmailNotificationsSubscription";
@@ -270,7 +267,6 @@ const _cIo = "companyId";
270
267
  const _cN = "companyName";
271
268
  const _cP = "captchaProof";
272
269
  const _cS = "clientSecret";
273
- const _cWI = "createdWorkspaceIds";
274
270
  const _ca = "category";
275
271
  const _cal = "callback";
276
272
  const _cap = "capabilities";
@@ -285,7 +281,6 @@ const _d = "dialplan";
285
281
  const _dC = "dialogflowCx";
286
282
  const _dS = "dialplanSettings";
287
283
  const _dW = "defaultWorkspace";
288
- const _dWI = "deletedWorkspaceIds";
289
284
  const _de = "department";
290
285
  const _dep = "departament";
291
286
  const _des = "description";
@@ -379,7 +374,6 @@ const _q = "query";
379
374
  const _qu = "queries";
380
375
  const _r = "role";
381
376
  const _rA = "retryAfter";
382
- const _rI = "requestId";
383
377
  const _rL = "rateLimit";
384
378
  const _rLR = "rateLimitRemaining";
385
379
  const _rLRa = "rateLimitReset";
@@ -420,7 +414,6 @@ const _u = "users";
420
414
  const _uA = "updatedAt";
421
415
  const _uI = "usersIds";
422
416
  const _uIs = "userId";
423
- const _uR = "userRemains";
424
417
  const _uT = "unsubscribeToken";
425
418
  const _un = "unread";
426
419
  const _up = "updated";
@@ -1061,8 +1054,8 @@ exports.QueryColleaguesParameters$ = [3, n3, _QCP,
1061
1054
  ];
1062
1055
  exports.QueryUserInput$ = [3, n3, _QUI,
1063
1056
  0,
1064
- [_q, _pre],
1065
- [() => exports.UserQuery$, () => exports.UserQueryPredicate$], 1
1057
+ [_q, _cIo, _pre],
1058
+ [() => exports.UserQuery$, [0, { [_hQ]: _co }], () => exports.UserQueryPredicate$], 1
1066
1059
  ];
1067
1060
  exports.QueryUserOutput$ = [3, n3, _QUO,
1068
1061
  0,
@@ -1071,24 +1064,14 @@ exports.QueryUserOutput$ = [3, n3, _QUO,
1071
1064
  ];
1072
1065
  exports.QueryUsersInput$ = [3, n3, _QUIu,
1073
1066
  0,
1074
- [_qu, _pre],
1075
- [() => UsersQueryList, () => exports.UserQueryPredicate$], 1
1067
+ [_qu, _cIo, _pre],
1068
+ [() => UsersQueryList, [0, { [_hQ]: _co }], () => exports.UserQueryPredicate$], 1
1076
1069
  ];
1077
1070
  exports.QueryUsersOutput$ = [3, n3, _QUOu,
1078
1071
  0,
1079
1072
  [_u],
1080
1073
  [() => UsersList], 1
1081
1074
  ];
1082
- exports.ResetUserChatHistoryInput$ = [3, n3, _RUCHI,
1083
- 0,
1084
- [_rI, _pUI, _uR, _em, _mP],
1085
- [0, 0, 2, 0, 0], 3
1086
- ];
1087
- exports.ResetUserChatHistoryOutput$ = [3, n3, _RUCHO,
1088
- 0,
1089
- [_dWI, _cWI],
1090
- [64 | 0, 64 | 0], 2
1091
- ];
1092
1075
  exports.ToggleTranscriptionEmailNotificationsSubscriptionInput$ = [3, n3, _TTENSI,
1093
1076
  0,
1094
1077
  [_uT, _sub],
@@ -1475,9 +1458,6 @@ exports.QueryUser$ = [9, n3, _QU,
1475
1458
  exports.QueryUsers$ = [9, n3, _QUu,
1476
1459
  { [_ht]: ["POST", "/v2/users/query-users", 200] }, () => exports.QueryUsersInput$, () => exports.QueryUsersOutput$
1477
1460
  ];
1478
- exports.ResetUserChatHistory$ = [9, n3, _RUCH,
1479
- { [_ht]: ["POST", "/v2/users/reset-chat-history", 200] }, () => exports.ResetUserChatHistoryInput$, () => exports.ResetUserChatHistoryOutput$
1480
- ];
1481
1461
  exports.ToggleTranscriptionEmailNotificationsSubscription$ = [9, n3, _TTENS,
1482
1462
  { [_ht]: ["POST", "/v2/users/toggle-transcription-email-notifications-subscription", 200] }, () => exports.ToggleTranscriptionEmailNotificationsSubscriptionInput$, () => exports.ToggleTranscriptionEmailNotificationsSubscriptionOutput$
1483
1463
  ];
package/dist-es/Users.js CHANGED
@@ -30,7 +30,6 @@ import { PartialUpdateUserEmailNotificationsSettingsCommand, } from "./commands/
30
30
  import { QueryColleaguesCommand, } from "./commands/QueryColleaguesCommand";
31
31
  import { QueryUserCommand } from "./commands/QueryUserCommand";
32
32
  import { QueryUsersCommand, } from "./commands/QueryUsersCommand";
33
- import { ResetUserChatHistoryCommand, } from "./commands/ResetUserChatHistoryCommand";
34
33
  import { ToggleTranscriptionEmailNotificationsSubscriptionCommand, } from "./commands/ToggleTranscriptionEmailNotificationsSubscriptionCommand";
35
34
  import { ToggleUnreadEmailNotificationsSubscriptionCommand, } from "./commands/ToggleUnreadEmailNotificationsSubscriptionCommand";
36
35
  import { UnlinkIdentityCommand, } from "./commands/UnlinkIdentityCommand";
@@ -78,7 +77,6 @@ const commands = {
78
77
  QueryColleaguesCommand,
79
78
  QueryUserCommand,
80
79
  QueryUsersCommand,
81
- ResetUserChatHistoryCommand,
82
80
  ToggleTranscriptionEmailNotificationsSubscriptionCommand,
83
81
  ToggleUnreadEmailNotificationsSubscriptionCommand,
84
82
  UnlinkIdentityCommand,
@@ -49,9 +49,31 @@ export const defaultUsersHttpAuthSchemeProvider = (authParameters) => {
49
49
  break;
50
50
  }
51
51
  ;
52
- case "ResetUserChatHistory":
52
+ case "GetAccount":
53
53
  {
54
- options.push(createWildixAuthPbxHttpAuthOption(authParameters));
54
+ options.push(createWildixAuthS2sHttpAuthOption(authParameters));
55
+ options.push(createWildixAuthXbsHttpAuthOption(authParameters));
56
+ break;
57
+ }
58
+ ;
59
+ case "LinkIdentity":
60
+ {
61
+ options.push(createWildixAuthS2sHttpAuthOption(authParameters));
62
+ options.push(createWildixAuthXbsHttpAuthOption(authParameters));
63
+ break;
64
+ }
65
+ ;
66
+ case "ListIdentities":
67
+ {
68
+ options.push(createWildixAuthS2sHttpAuthOption(authParameters));
69
+ options.push(createWildixAuthXbsHttpAuthOption(authParameters));
70
+ break;
71
+ }
72
+ ;
73
+ case "ListWorkspaces":
74
+ {
75
+ options.push(createWildixAuthS2sHttpAuthOption(authParameters));
76
+ options.push(createWildixAuthXbsHttpAuthOption(authParameters));
55
77
  break;
56
78
  }
57
79
  ;
@@ -79,12 +101,40 @@ export const defaultUsersHttpAuthSchemeProvider = (authParameters) => {
79
101
  break;
80
102
  }
81
103
  ;
104
+ case "UnlinkIdentity":
105
+ {
106
+ options.push(createWildixAuthS2sHttpAuthOption(authParameters));
107
+ options.push(createWildixAuthXbsHttpAuthOption(authParameters));
108
+ break;
109
+ }
110
+ ;
111
+ case "UnlinkWorkspace":
112
+ {
113
+ options.push(createWildixAuthS2sHttpAuthOption(authParameters));
114
+ options.push(createWildixAuthXbsHttpAuthOption(authParameters));
115
+ break;
116
+ }
117
+ ;
118
+ case "UpdateAccount":
119
+ {
120
+ options.push(createWildixAuthS2sHttpAuthOption(authParameters));
121
+ options.push(createWildixAuthXbsHttpAuthOption(authParameters));
122
+ break;
123
+ }
124
+ ;
82
125
  case "UpdateWorkspace":
83
126
  {
84
127
  options.push(createWildixAuthS2sHttpAuthOption(authParameters));
85
128
  break;
86
129
  }
87
130
  ;
131
+ case "VerifyIdentity":
132
+ {
133
+ options.push(createWildixAuthS2sHttpAuthOption(authParameters));
134
+ options.push(createWildixAuthXbsHttpAuthOption(authParameters));
135
+ break;
136
+ }
137
+ ;
88
138
  default: {
89
139
  options.push(createSmithyApiHttpBearerAuthHttpAuthOption(authParameters));
90
140
  options.push(createWildixAuthS2sHttpAuthOption(authParameters));
@@ -29,7 +29,6 @@ export * from "./PartialUpdateUserEmailNotificationsSettingsCommand";
29
29
  export * from "./QueryColleaguesCommand";
30
30
  export * from "./QueryUserCommand";
31
31
  export * from "./QueryUsersCommand";
32
- export * from "./ResetUserChatHistoryCommand";
33
32
  export * from "./ToggleTranscriptionEmailNotificationsSubscriptionCommand";
34
33
  export * from "./ToggleUnreadEmailNotificationsSubscriptionCommand";
35
34
  export * from "./UnlinkIdentityCommand";
@@ -160,9 +160,6 @@ const _QUOu = "QueryUsersOutput";
160
160
  const _QUu = "QueryUsers";
161
161
  const _RA = "Retry-After";
162
162
  const _RLEE = "RateLimitExceededException";
163
- const _RUCH = "ResetUserChatHistory";
164
- const _RUCHI = "ResetUserChatHistoryInput";
165
- const _RUCHO = "ResetUserChatHistoryOutput";
166
163
  const _SM = "SkippedMember";
167
164
  const _SML = "SkippedMembersList";
168
165
  const _TTENS = "ToggleTranscriptionEmailNotificationsSubscription";
@@ -263,7 +260,6 @@ const _cIo = "companyId";
263
260
  const _cN = "companyName";
264
261
  const _cP = "captchaProof";
265
262
  const _cS = "clientSecret";
266
- const _cWI = "createdWorkspaceIds";
267
263
  const _ca = "category";
268
264
  const _cal = "callback";
269
265
  const _cap = "capabilities";
@@ -278,7 +274,6 @@ const _d = "dialplan";
278
274
  const _dC = "dialogflowCx";
279
275
  const _dS = "dialplanSettings";
280
276
  const _dW = "defaultWorkspace";
281
- const _dWI = "deletedWorkspaceIds";
282
277
  const _de = "department";
283
278
  const _dep = "departament";
284
279
  const _des = "description";
@@ -372,7 +367,6 @@ const _q = "query";
372
367
  const _qu = "queries";
373
368
  const _r = "role";
374
369
  const _rA = "retryAfter";
375
- const _rI = "requestId";
376
370
  const _rL = "rateLimit";
377
371
  const _rLR = "rateLimitRemaining";
378
372
  const _rLRa = "rateLimitReset";
@@ -413,7 +407,6 @@ const _u = "users";
413
407
  const _uA = "updatedAt";
414
408
  const _uI = "usersIds";
415
409
  const _uIs = "userId";
416
- const _uR = "userRemains";
417
410
  const _uT = "unsubscribeToken";
418
411
  const _un = "unread";
419
412
  const _up = "updated";
@@ -1054,8 +1047,8 @@ export var QueryColleaguesParameters$ = [3, n3, _QCP,
1054
1047
  ];
1055
1048
  export var QueryUserInput$ = [3, n3, _QUI,
1056
1049
  0,
1057
- [_q, _pre],
1058
- [() => UserQuery$, () => UserQueryPredicate$], 1
1050
+ [_q, _cIo, _pre],
1051
+ [() => UserQuery$, [0, { [_hQ]: _co }], () => UserQueryPredicate$], 1
1059
1052
  ];
1060
1053
  export var QueryUserOutput$ = [3, n3, _QUO,
1061
1054
  0,
@@ -1064,24 +1057,14 @@ export var QueryUserOutput$ = [3, n3, _QUO,
1064
1057
  ];
1065
1058
  export var QueryUsersInput$ = [3, n3, _QUIu,
1066
1059
  0,
1067
- [_qu, _pre],
1068
- [() => UsersQueryList, () => UserQueryPredicate$], 1
1060
+ [_qu, _cIo, _pre],
1061
+ [() => UsersQueryList, [0, { [_hQ]: _co }], () => UserQueryPredicate$], 1
1069
1062
  ];
1070
1063
  export var QueryUsersOutput$ = [3, n3, _QUOu,
1071
1064
  0,
1072
1065
  [_u],
1073
1066
  [() => UsersList], 1
1074
1067
  ];
1075
- export var ResetUserChatHistoryInput$ = [3, n3, _RUCHI,
1076
- 0,
1077
- [_rI, _pUI, _uR, _em, _mP],
1078
- [0, 0, 2, 0, 0], 3
1079
- ];
1080
- export var ResetUserChatHistoryOutput$ = [3, n3, _RUCHO,
1081
- 0,
1082
- [_dWI, _cWI],
1083
- [64 | 0, 64 | 0], 2
1084
- ];
1085
1068
  export var ToggleTranscriptionEmailNotificationsSubscriptionInput$ = [3, n3, _TTENSI,
1086
1069
  0,
1087
1070
  [_uT, _sub],
@@ -1468,9 +1451,6 @@ export var QueryUser$ = [9, n3, _QU,
1468
1451
  export var QueryUsers$ = [9, n3, _QUu,
1469
1452
  { [_ht]: ["POST", "/v2/users/query-users", 200] }, () => QueryUsersInput$, () => QueryUsersOutput$
1470
1453
  ];
1471
- export var ResetUserChatHistory$ = [9, n3, _RUCH,
1472
- { [_ht]: ["POST", "/v2/users/reset-chat-history", 200] }, () => ResetUserChatHistoryInput$, () => ResetUserChatHistoryOutput$
1473
- ];
1474
1454
  export var ToggleTranscriptionEmailNotificationsSubscription$ = [9, n3, _TTENS,
1475
1455
  { [_ht]: ["POST", "/v2/users/toggle-transcription-email-notifications-subscription", 200] }, () => ToggleTranscriptionEmailNotificationsSubscriptionInput$, () => ToggleTranscriptionEmailNotificationsSubscriptionOutput$
1476
1456
  ];
@@ -30,7 +30,6 @@ import { type PartialUpdateUserEmailNotificationsSettingsCommandInput, type Part
30
30
  import { type QueryColleaguesCommandInput, type QueryColleaguesCommandOutput } from "./commands/QueryColleaguesCommand";
31
31
  import { type QueryUserCommandInput, type QueryUserCommandOutput } from "./commands/QueryUserCommand";
32
32
  import { type QueryUsersCommandInput, type QueryUsersCommandOutput } from "./commands/QueryUsersCommand";
33
- import { type ResetUserChatHistoryCommandInput, type ResetUserChatHistoryCommandOutput } from "./commands/ResetUserChatHistoryCommand";
34
33
  import { type ToggleTranscriptionEmailNotificationsSubscriptionCommandInput, type ToggleTranscriptionEmailNotificationsSubscriptionCommandOutput } from "./commands/ToggleTranscriptionEmailNotificationsSubscriptionCommand";
35
34
  import { type ToggleUnreadEmailNotificationsSubscriptionCommandInput, type ToggleUnreadEmailNotificationsSubscriptionCommandOutput } from "./commands/ToggleUnreadEmailNotificationsSubscriptionCommand";
36
35
  import { type UnlinkIdentityCommandInput, type UnlinkIdentityCommandOutput } from "./commands/UnlinkIdentityCommand";
@@ -237,12 +236,6 @@ export interface Users {
237
236
  queryUsers(args: QueryUsersCommandInput, options?: __HttpHandlerOptions): Promise<QueryUsersCommandOutput>;
238
237
  queryUsers(args: QueryUsersCommandInput, cb: (err: any, data?: QueryUsersCommandOutput) => void): void;
239
238
  queryUsers(args: QueryUsersCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: QueryUsersCommandOutput) => void): void;
240
- /**
241
- * @see {@link ResetUserChatHistoryCommand}
242
- */
243
- resetUserChatHistory(args: ResetUserChatHistoryCommandInput, options?: __HttpHandlerOptions): Promise<ResetUserChatHistoryCommandOutput>;
244
- resetUserChatHistory(args: ResetUserChatHistoryCommandInput, cb: (err: any, data?: ResetUserChatHistoryCommandOutput) => void): void;
245
- resetUserChatHistory(args: ResetUserChatHistoryCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ResetUserChatHistoryCommandOutput) => void): void;
246
239
  /**
247
240
  * @see {@link ToggleTranscriptionEmailNotificationsSubscriptionCommand}
248
241
  */
@@ -36,7 +36,6 @@ import type { PartialUpdateUserEmailNotificationsSettingsCommandInput, PartialUp
36
36
  import type { QueryColleaguesCommandInput, QueryColleaguesCommandOutput } from "./commands/QueryColleaguesCommand";
37
37
  import type { QueryUserCommandInput, QueryUserCommandOutput } from "./commands/QueryUserCommand";
38
38
  import type { QueryUsersCommandInput, QueryUsersCommandOutput } from "./commands/QueryUsersCommand";
39
- import type { ResetUserChatHistoryCommandInput, ResetUserChatHistoryCommandOutput } from "./commands/ResetUserChatHistoryCommand";
40
39
  import type { ToggleTranscriptionEmailNotificationsSubscriptionCommandInput, ToggleTranscriptionEmailNotificationsSubscriptionCommandOutput } from "./commands/ToggleTranscriptionEmailNotificationsSubscriptionCommand";
41
40
  import type { ToggleUnreadEmailNotificationsSubscriptionCommandInput, ToggleUnreadEmailNotificationsSubscriptionCommandOutput } from "./commands/ToggleUnreadEmailNotificationsSubscriptionCommand";
42
41
  import type { UnlinkIdentityCommandInput, UnlinkIdentityCommandOutput } from "./commands/UnlinkIdentityCommand";
@@ -57,11 +56,11 @@ export { __Client };
57
56
  /**
58
57
  * @public
59
58
  */
60
- export type ServiceInputTypes = BatchGetUsersCommandInput | BatchGetUsersEmailNotificationsSettingsCommandInput | BatchGetUsersPbxLinkDataCommandInput | BatchGetUsersPbxLinkDataV1CommandInput | ChangeUserEmailCommandInput | CreateAnonymousSessionCommandInput | CreateBotApiKeyCommandInput | CreateBotCommandInput | CreateSystemBotCommandInput | DeleteBotApiKeyCommandInput | DeleteBotCommandInput | GetAccountCommandInput | GetAppVersionCommandInput | GetBotCallbackCommandInput | GetBotCommandInput | GetUserCommandInput | GetUserEmailNotificationsSettingsCommandInput | GetUserPbxLinkDataCommandInput | GetUserPbxLinkSuggestionCommandInput | GetUserPbxLinkSuggestionV1CommandInput | IntelligenceSearchCommandInput | InviteCommandInput | LinkIdentityCommandInput | ListBotApiKeysCommandInput | ListBotsCommandInput | ListIdentitiesCommandInput | ListWorkspacesCommandInput | PartialUpdateUserEmailNotificationsSettingsCommandInput | QueryColleaguesCommandInput | QueryUserCommandInput | QueryUsersCommandInput | ResetUserChatHistoryCommandInput | ToggleTranscriptionEmailNotificationsSubscriptionCommandInput | ToggleUnreadEmailNotificationsSubscriptionCommandInput | UnlinkIdentityCommandInput | UnlinkWorkspaceCommandInput | UpdateAccountCommandInput | UpdateBotCallbackCommandInput | UpdateBotCommandInput | UpdateUserEmailNotificationsSettingsCommandInput | UpdateWorkspaceCommandInput | UploadPictureCommandInput | UploadPictureV1CommandInput | VerifyBotSecretKeyCommandInput | VerifyBotSecretKeyV1CommandInput | VerifyIdentityCommandInput;
59
+ export type ServiceInputTypes = BatchGetUsersCommandInput | BatchGetUsersEmailNotificationsSettingsCommandInput | BatchGetUsersPbxLinkDataCommandInput | BatchGetUsersPbxLinkDataV1CommandInput | ChangeUserEmailCommandInput | CreateAnonymousSessionCommandInput | CreateBotApiKeyCommandInput | CreateBotCommandInput | CreateSystemBotCommandInput | DeleteBotApiKeyCommandInput | DeleteBotCommandInput | GetAccountCommandInput | GetAppVersionCommandInput | GetBotCallbackCommandInput | GetBotCommandInput | GetUserCommandInput | GetUserEmailNotificationsSettingsCommandInput | GetUserPbxLinkDataCommandInput | GetUserPbxLinkSuggestionCommandInput | GetUserPbxLinkSuggestionV1CommandInput | IntelligenceSearchCommandInput | InviteCommandInput | LinkIdentityCommandInput | ListBotApiKeysCommandInput | ListBotsCommandInput | ListIdentitiesCommandInput | ListWorkspacesCommandInput | PartialUpdateUserEmailNotificationsSettingsCommandInput | QueryColleaguesCommandInput | QueryUserCommandInput | QueryUsersCommandInput | ToggleTranscriptionEmailNotificationsSubscriptionCommandInput | ToggleUnreadEmailNotificationsSubscriptionCommandInput | UnlinkIdentityCommandInput | UnlinkWorkspaceCommandInput | UpdateAccountCommandInput | UpdateBotCallbackCommandInput | UpdateBotCommandInput | UpdateUserEmailNotificationsSettingsCommandInput | UpdateWorkspaceCommandInput | UploadPictureCommandInput | UploadPictureV1CommandInput | VerifyBotSecretKeyCommandInput | VerifyBotSecretKeyV1CommandInput | VerifyIdentityCommandInput;
61
60
  /**
62
61
  * @public
63
62
  */
64
- export type ServiceOutputTypes = BatchGetUsersCommandOutput | BatchGetUsersEmailNotificationsSettingsCommandOutput | BatchGetUsersPbxLinkDataCommandOutput | BatchGetUsersPbxLinkDataV1CommandOutput | ChangeUserEmailCommandOutput | CreateAnonymousSessionCommandOutput | CreateBotApiKeyCommandOutput | CreateBotCommandOutput | CreateSystemBotCommandOutput | DeleteBotApiKeyCommandOutput | DeleteBotCommandOutput | GetAccountCommandOutput | GetAppVersionCommandOutput | GetBotCallbackCommandOutput | GetBotCommandOutput | GetUserCommandOutput | GetUserEmailNotificationsSettingsCommandOutput | GetUserPbxLinkDataCommandOutput | GetUserPbxLinkSuggestionCommandOutput | GetUserPbxLinkSuggestionV1CommandOutput | IntelligenceSearchCommandOutput | InviteCommandOutput | LinkIdentityCommandOutput | ListBotApiKeysCommandOutput | ListBotsCommandOutput | ListIdentitiesCommandOutput | ListWorkspacesCommandOutput | PartialUpdateUserEmailNotificationsSettingsCommandOutput | QueryColleaguesCommandOutput | QueryUserCommandOutput | QueryUsersCommandOutput | ResetUserChatHistoryCommandOutput | ToggleTranscriptionEmailNotificationsSubscriptionCommandOutput | ToggleUnreadEmailNotificationsSubscriptionCommandOutput | UnlinkIdentityCommandOutput | UnlinkWorkspaceCommandOutput | UpdateAccountCommandOutput | UpdateBotCallbackCommandOutput | UpdateBotCommandOutput | UpdateUserEmailNotificationsSettingsCommandOutput | UpdateWorkspaceCommandOutput | UploadPictureCommandOutput | UploadPictureV1CommandOutput | VerifyBotSecretKeyCommandOutput | VerifyBotSecretKeyV1CommandOutput | VerifyIdentityCommandOutput;
63
+ export type ServiceOutputTypes = BatchGetUsersCommandOutput | BatchGetUsersEmailNotificationsSettingsCommandOutput | BatchGetUsersPbxLinkDataCommandOutput | BatchGetUsersPbxLinkDataV1CommandOutput | ChangeUserEmailCommandOutput | CreateAnonymousSessionCommandOutput | CreateBotApiKeyCommandOutput | CreateBotCommandOutput | CreateSystemBotCommandOutput | DeleteBotApiKeyCommandOutput | DeleteBotCommandOutput | GetAccountCommandOutput | GetAppVersionCommandOutput | GetBotCallbackCommandOutput | GetBotCommandOutput | GetUserCommandOutput | GetUserEmailNotificationsSettingsCommandOutput | GetUserPbxLinkDataCommandOutput | GetUserPbxLinkSuggestionCommandOutput | GetUserPbxLinkSuggestionV1CommandOutput | IntelligenceSearchCommandOutput | InviteCommandOutput | LinkIdentityCommandOutput | ListBotApiKeysCommandOutput | ListBotsCommandOutput | ListIdentitiesCommandOutput | ListWorkspacesCommandOutput | PartialUpdateUserEmailNotificationsSettingsCommandOutput | QueryColleaguesCommandOutput | QueryUserCommandOutput | QueryUsersCommandOutput | ToggleTranscriptionEmailNotificationsSubscriptionCommandOutput | ToggleUnreadEmailNotificationsSubscriptionCommandOutput | UnlinkIdentityCommandOutput | UnlinkWorkspaceCommandOutput | UpdateAccountCommandOutput | UpdateBotCallbackCommandOutput | UpdateBotCommandOutput | UpdateUserEmailNotificationsSettingsCommandOutput | UpdateWorkspaceCommandOutput | UploadPictureCommandOutput | UploadPictureV1CommandOutput | VerifyBotSecretKeyCommandOutput | VerifyBotSecretKeyV1CommandOutput | VerifyIdentityCommandOutput;
65
64
  /**
66
65
  * @public
67
66
  */
@@ -27,7 +27,7 @@ declare const GetAccountCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * Retrieves the account.
30
+ * Retrieves the account. Available via s2s (service-to-service) or the x-bees token of the account owner; API keys are refused.
31
31
  * @example
32
32
  * Use a bare-bones client and the command you need to make an API call.
33
33
  * ```javascript
@@ -27,7 +27,7 @@ declare const LinkIdentityCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * Adds a new identity (email or phone) to the account. Requires OTP verification for the new identity
30
+ * Adds a new identity (email or phone) to the account. Requires OTP verification for the new identity. Available via s2s (service-to-service) or the x-bees token of the account owner; API keys are refused.
31
31
  * @example
32
32
  * Use a bare-bones client and the command you need to make an API call.
33
33
  * ```javascript
@@ -27,7 +27,7 @@ declare const ListIdentitiesCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * Lists all identities (login methods) for the current account.
30
+ * Lists all identities (login methods) for the current account. Available via s2s (service-to-service) or the x-bees token of the account owner; API keys are refused.
31
31
  * @example
32
32
  * Use a bare-bones client and the command you need to make an API call.
33
33
  * ```javascript
@@ -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 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. Available via s2s (service-to-service) or the x-bees token of the account owner; API keys are refused.
31
31
  * @example
32
32
  * Use a bare-bones client and the command you need to make an API call.
33
33
  * ```javascript
@@ -37,6 +37,7 @@ declare const QueryUserCommand_base: {
37
37
  * const config = {}; // type is UsersClientConfig
38
38
  * const client = new UsersClient(config);
39
39
  * const input = { // QueryUserInput
40
+ * companyId: "STRING_VALUE",
40
41
  * query: { // UserQuery Union: only one key present
41
42
  * id: "STRING_VALUE",
42
43
  * email: "STRING_VALUE",
@@ -37,6 +37,7 @@ declare const QueryUsersCommand_base: {
37
37
  * const config = {}; // type is UsersClientConfig
38
38
  * const client = new UsersClient(config);
39
39
  * const input = { // QueryUsersInput
40
+ * companyId: "STRING_VALUE",
40
41
  * queries: [ // UsersQueryList // required
41
42
  * { // UserQuery Union: only one key present
42
43
  * id: "STRING_VALUE",
@@ -27,7 +27,7 @@ declare const UnlinkIdentityCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * Removes a non-primary identity from the account. Requires step-up verification for the primary identity.
30
+ * Removes a non-primary identity from the account. Requires step-up verification for the primary identity. Available via s2s (service-to-service) or the x-bees token of the account owner; API keys are refused.
31
31
  * @example
32
32
  * Use a bare-bones client and the command you need to make an API call.
33
33
  * ```javascript
@@ -27,7 +27,7 @@ declare const UnlinkWorkspaceCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * Removes the connection between the account and a workspace.
30
+ * Removes the connection between the account and a workspace. Available via s2s (service-to-service) or the x-bees token of the account owner; API keys are refused.
31
31
  * @example
32
32
  * Use a bare-bones client and the command you need to make an API call.
33
33
  * ```javascript
@@ -27,7 +27,7 @@ declare const UpdateAccountCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * Updates the account. Allows changing default workspace and primary identity.
30
+ * Updates the account. Allows changing default workspace and primary identity. Available via s2s (service-to-service) or the x-bees token of the account owner; API keys are refused.
31
31
  * @example
32
32
  * Use a bare-bones client and the command you need to make an API call.
33
33
  * ```javascript
@@ -27,7 +27,7 @@ declare const VerifyIdentityCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * Completes adding an identity by verifying the OTP sent to the new identity. Call after LinkIdentity.
30
+ * Completes adding an identity by verifying the OTP sent to the new identity. Call after LinkIdentity. Available via s2s (service-to-service) or the x-bees token of the account owner; API keys are refused.
31
31
  * @example
32
32
  * Use a bare-bones client and the command you need to make an API call.
33
33
  * ```javascript
@@ -29,7 +29,6 @@ export * from "./PartialUpdateUserEmailNotificationsSettingsCommand";
29
29
  export * from "./QueryColleaguesCommand";
30
30
  export * from "./QueryUserCommand";
31
31
  export * from "./QueryUsersCommand";
32
- export * from "./ResetUserChatHistoryCommand";
33
32
  export * from "./ToggleTranscriptionEmailNotificationsSubscriptionCommand";
34
33
  export * from "./ToggleUnreadEmailNotificationsSubscriptionCommand";
35
34
  export * from "./UnlinkIdentityCommand";
@@ -105,7 +105,7 @@ export interface UserToInvite {
105
105
  */
106
106
  email?: string | undefined;
107
107
  /**
108
- * The phone number of the invited user. This phone number is used to create or find the user if an email address is not provided. On a customer messaging channel (see MessagingChannel) it is not a phone number at all: the caller passes the channel's own customer id, the Page Scoped ID on Messenger, so the identity key stays the one the supplier reports. A phone number allows up to 17 digits and a Page Scoped ID is 17, so there is no headroom left, and the Instagram scoped id has to be checked against the same limit. A WhatsApp user who hides the number is invited by the BSUID exactly as Meta spells it (see InviteePhone).
108
+ * The phone number of the invited user. This phone number is used to create or find the user if an email address is not provided. On Messenger and Instagram it is not a phone number at all: the caller passes the channel's own customer id, the Page Scoped ID on Messenger, so the identity key stays the one the supplier reports. On RCS it is the person's phone number. A phone number allows up to 17 digits and a Page Scoped ID is 17, so there is no headroom left, and the Instagram scoped id has to be checked against the same limit. A WhatsApp user who hides the number is invited by the BSUID exactly as Meta spells it (see InviteePhone).
109
109
  * @public
110
110
  */
111
111
  phone?: string | undefined;
@@ -256,7 +256,7 @@ export interface BatchGetUsersOutput {
256
256
  */
257
257
  export interface BatchGetUsersEmailNotificationsSettingsInput {
258
258
  /**
259
- * List of the unique identifier of the user
259
+ * The users to read, 1 to 500 ids. A PBX token or an API key gets the stored settings only of the users of its own company; any other id gets the default settings, as an unknown id does.
260
260
  * @public
261
261
  */
262
262
  usersIds: string[];
@@ -1870,6 +1870,11 @@ export declare namespace UserQuery {
1870
1870
  * @public
1871
1871
  */
1872
1872
  export interface QueryUserInput {
1873
+ /**
1874
+ * The unique identifier of the tenant when a service token is used. A user who has a workspace in this tenant is returned as that workspace instead of the default one. Other tokens use the tenant they were issued for.
1875
+ * @public
1876
+ */
1877
+ companyId?: string | undefined;
1873
1878
  query: UserQuery;
1874
1879
  /**
1875
1880
  * A condition that must be satisfied for the user query to be considered valid. If this predicate is not met, a UserQueryPredicateNotMetException will be thrown.
@@ -1887,6 +1892,11 @@ export interface QueryUserOutput {
1887
1892
  * @public
1888
1893
  */
1889
1894
  export interface QueryUsersInput {
1895
+ /**
1896
+ * The unique identifier of the tenant when a service token is used. A user who has a workspace in this tenant is returned as that workspace instead of the default one. Other tokens use the tenant they were issued for.
1897
+ * @public
1898
+ */
1899
+ companyId?: string | undefined;
1890
1900
  queries: UserQuery[];
1891
1901
  predicate?: UserQueryPredicate | undefined;
1892
1902
  }
@@ -1900,43 +1910,6 @@ export interface QueryUsersOutput {
1900
1910
  */
1901
1911
  users: User[];
1902
1912
  }
1903
- /**
1904
- * @public
1905
- */
1906
- export interface ResetUserChatHistoryInput {
1907
- /**
1908
- * Identifies the reset. A retry of the same reset must send the same value.
1909
- * @public
1910
- */
1911
- requestId: string;
1912
- /**
1913
- * The id of the user on the PBX.
1914
- * @public
1915
- */
1916
- pbxUserId: string;
1917
- /**
1918
- * The user's email, as it was before the removal.
1919
- * @public
1920
- */
1921
- email?: string | undefined;
1922
- /**
1923
- * The user's mobile phone, as it was before the removal.
1924
- * @public
1925
- */
1926
- mobilePhone?: string | undefined;
1927
- /**
1928
- * Whether the user stays on the PBX after the removal. Only then are new workspaces created.
1929
- * @public
1930
- */
1931
- userRemains: boolean;
1932
- }
1933
- /**
1934
- * @public
1935
- */
1936
- export interface ResetUserChatHistoryOutput {
1937
- deletedWorkspaceIds: string[];
1938
- createdWorkspaceIds: string[];
1939
- }
1940
1913
  /**
1941
1914
  * @public
1942
1915
  */
@@ -127,8 +127,6 @@ export declare var QueryUserInput$: StaticStructureSchema;
127
127
  export declare var QueryUserOutput$: StaticStructureSchema;
128
128
  export declare var QueryUsersInput$: StaticStructureSchema;
129
129
  export declare var QueryUsersOutput$: StaticStructureSchema;
130
- export declare var ResetUserChatHistoryInput$: StaticStructureSchema;
131
- export declare var ResetUserChatHistoryOutput$: StaticStructureSchema;
132
130
  export declare var ToggleTranscriptionEmailNotificationsSubscriptionInput$: StaticStructureSchema;
133
131
  export declare var ToggleTranscriptionEmailNotificationsSubscriptionOutput$: StaticStructureSchema;
134
132
  export declare var ToggleUnreadEmailNotificationsSubscriptionInput$: StaticStructureSchema;
@@ -206,7 +204,6 @@ export declare var PartialUpdateUserEmailNotificationsSettings$: StaticOperation
206
204
  export declare var QueryColleagues$: StaticOperationSchema;
207
205
  export declare var QueryUser$: StaticOperationSchema;
208
206
  export declare var QueryUsers$: StaticOperationSchema;
209
- export declare var ResetUserChatHistory$: StaticOperationSchema;
210
207
  export declare var ToggleTranscriptionEmailNotificationsSubscription$: StaticOperationSchema;
211
208
  export declare var ToggleUnreadEmailNotificationsSubscription$: StaticOperationSchema;
212
209
  export declare var UnlinkIdentity$: StaticOperationSchema;
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.3.0",
4
+ "version": "4.3.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",
@@ -1,20 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ResetUserChatHistoryCommand = exports.$Command = void 0;
4
- const client_1 = require("@smithy/core/client");
5
- Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return client_1.Command; } });
6
- const endpoints_1 = require("@smithy/core/endpoints");
7
- const EndpointParameters_1 = require("../endpoint/EndpointParameters");
8
- const schemas_0_1 = require("../schemas/schemas_0");
9
- class ResetUserChatHistoryCommand extends client_1.Command
10
- .classBuilder()
11
- .ep(EndpointParameters_1.commonParams)
12
- .m(function (Command, cs, config, o) {
13
- return [(0, endpoints_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())];
14
- })
15
- .s("Users", "ResetUserChatHistory", {})
16
- .n("UsersClient", "ResetUserChatHistoryCommand")
17
- .sc(schemas_0_1.ResetUserChatHistory$)
18
- .build() {
19
- }
20
- exports.ResetUserChatHistoryCommand = ResetUserChatHistoryCommand;
@@ -1,16 +0,0 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import { getEndpointPlugin } from "@smithy/core/endpoints";
3
- import { commonParams } from "../endpoint/EndpointParameters";
4
- import { ResetUserChatHistory$ } from "../schemas/schemas_0";
5
- export { $Command };
6
- export class ResetUserChatHistoryCommand extends $Command
7
- .classBuilder()
8
- .ep(commonParams)
9
- .m(function (Command, cs, config, o) {
10
- return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
- })
12
- .s("Users", "ResetUserChatHistory", {})
13
- .n("UsersClient", "ResetUserChatHistoryCommand")
14
- .sc(ResetUserChatHistory$)
15
- .build() {
16
- }
@@ -1,89 +0,0 @@
1
- import { Command as $Command } from "@smithy/core/client";
2
- import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
- import type { ResetUserChatHistoryInput, ResetUserChatHistoryOutput } from "../models/models_0";
4
- import type { ServiceInputTypes, ServiceOutputTypes, UsersClientResolvedConfig } from "../UsersClient";
5
- /**
6
- * @public
7
- */
8
- export type { __MetadataBearer };
9
- export { $Command };
10
- /**
11
- * @public
12
- *
13
- * The input for {@link ResetUserChatHistoryCommand}.
14
- */
15
- export interface ResetUserChatHistoryCommandInput extends ResetUserChatHistoryInput {
16
- }
17
- /**
18
- * @public
19
- *
20
- * The output of {@link ResetUserChatHistoryCommand}.
21
- */
22
- export interface ResetUserChatHistoryCommandOutput extends ResetUserChatHistoryOutput, __MetadataBearer {
23
- }
24
- declare const ResetUserChatHistoryCommand_base: {
25
- new (input: ResetUserChatHistoryCommandInput): import("@smithy/core/client").CommandImpl<ResetUserChatHistoryCommandInput, ResetUserChatHistoryCommandOutput, UsersClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (input: ResetUserChatHistoryCommandInput): import("@smithy/core/client").CommandImpl<ResetUserChatHistoryCommandInput, ResetUserChatHistoryCommandOutput, UsersClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
28
- };
29
- /**
30
- * Starts a PBX user's x-bees history over when a PBX admin removes the user with their chat history. Every workspace of the caller's company linked to this PBX user, or reached by the given email or mobile phone, is marked deleted. When the user stays on the PBX, a new work workspace is created for each affected account first and becomes its default. Available only with PBX authorization: the company comes from the token. A request repeated with the same requestId within 24 hours returns the first result.
31
- * @example
32
- * Use a bare-bones client and the command you need to make an API call.
33
- * ```javascript
34
- * import { UsersClient, ResetUserChatHistoryCommand } from "@wildix/xbees-users-client"; // ES Modules import
35
- * // const { UsersClient, ResetUserChatHistoryCommand } = require("@wildix/xbees-users-client"); // CommonJS import
36
- * // import type { UsersClientConfig } from "@wildix/xbees-users-client";
37
- * const config = {}; // type is UsersClientConfig
38
- * const client = new UsersClient(config);
39
- * const input = { // ResetUserChatHistoryInput
40
- * requestId: "STRING_VALUE", // required
41
- * pbxUserId: "STRING_VALUE", // required
42
- * email: "STRING_VALUE",
43
- * mobilePhone: "STRING_VALUE",
44
- * userRemains: true || false, // required
45
- * };
46
- * const command = new ResetUserChatHistoryCommand(input);
47
- * const response = await client.send(command);
48
- * // { // ResetUserChatHistoryOutput
49
- * // deletedWorkspaceIds: [ // UsersIdList // required
50
- * // "STRING_VALUE",
51
- * // ],
52
- * // createdWorkspaceIds: [ // required
53
- * // "STRING_VALUE",
54
- * // ],
55
- * // };
56
- *
57
- * ```
58
- *
59
- * @param ResetUserChatHistoryCommandInput - {@link ResetUserChatHistoryCommandInput}
60
- * @returns {@link ResetUserChatHistoryCommandOutput}
61
- * @see {@link ResetUserChatHistoryCommandInput} for command's `input` shape.
62
- * @see {@link ResetUserChatHistoryCommandOutput} for command's `response` shape.
63
- * @see {@link UsersClientResolvedConfig | config} for UsersClient's `config` shape.
64
- *
65
- * @throws {@link ForbiddenException} (client fault)
66
- *
67
- * @throws {@link ValidationException} (client fault)
68
- *
69
- * @throws {@link RateLimitExceededException} (client fault)
70
- *
71
- * @throws {@link UsersServiceException}
72
- * <p>Base exception class for all service exceptions from Users service.</p>
73
- *
74
- *
75
- * @public
76
- */
77
- export declare class ResetUserChatHistoryCommand extends ResetUserChatHistoryCommand_base {
78
- /** @internal type navigation helper, not in runtime. */
79
- protected static __types: {
80
- api: {
81
- input: ResetUserChatHistoryInput;
82
- output: ResetUserChatHistoryOutput;
83
- };
84
- sdk: {
85
- input: ResetUserChatHistoryCommandInput;
86
- output: ResetUserChatHistoryCommandOutput;
87
- };
88
- };
89
- }