@wildix/xbees-users-client 4.2.0 → 4.3.0

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,6 +33,7 @@ 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");
36
37
  const ToggleTranscriptionEmailNotificationsSubscriptionCommand_1 = require("./commands/ToggleTranscriptionEmailNotificationsSubscriptionCommand");
37
38
  const ToggleUnreadEmailNotificationsSubscriptionCommand_1 = require("./commands/ToggleUnreadEmailNotificationsSubscriptionCommand");
38
39
  const UnlinkIdentityCommand_1 = require("./commands/UnlinkIdentityCommand");
@@ -80,6 +81,7 @@ const commands = {
80
81
  QueryColleaguesCommand: QueryColleaguesCommand_1.QueryColleaguesCommand,
81
82
  QueryUserCommand: QueryUserCommand_1.QueryUserCommand,
82
83
  QueryUsersCommand: QueryUsersCommand_1.QueryUsersCommand,
84
+ ResetUserChatHistoryCommand: ResetUserChatHistoryCommand_1.ResetUserChatHistoryCommand,
83
85
  ToggleTranscriptionEmailNotificationsSubscriptionCommand: ToggleTranscriptionEmailNotificationsSubscriptionCommand_1.ToggleTranscriptionEmailNotificationsSubscriptionCommand,
84
86
  ToggleUnreadEmailNotificationsSubscriptionCommand: ToggleUnreadEmailNotificationsSubscriptionCommand_1.ToggleUnreadEmailNotificationsSubscriptionCommand,
85
87
  UnlinkIdentityCommand: UnlinkIdentityCommand_1.UnlinkIdentityCommand,
@@ -53,6 +53,12 @@ const defaultUsersHttpAuthSchemeProvider = (authParameters) => {
53
53
  break;
54
54
  }
55
55
  ;
56
+ case "ResetUserChatHistory":
57
+ {
58
+ options.push(createWildixAuthPbxHttpAuthOption(authParameters));
59
+ break;
60
+ }
61
+ ;
56
62
  case "ToggleTranscriptionEmailNotificationsSubscription":
57
63
  {
58
64
  options.push(createSmithyApiHttpBearerAuthHttpAuthOption(authParameters));
@@ -0,0 +1,20 @@
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;
@@ -32,6 +32,7 @@ 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);
35
36
  tslib_1.__exportStar(require("./ToggleTranscriptionEmailNotificationsSubscriptionCommand"), exports);
36
37
  tslib_1.__exportStar(require("./ToggleUnreadEmailNotificationsSubscriptionCommand"), exports);
37
38
  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.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;
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;
8
8
  const _A = "Account";
9
9
  const _AEC = "AnonymousEntryContext";
10
10
  const _ANFE = "AccountNotFoundException";
@@ -167,6 +167,9 @@ 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";
170
173
  const _SM = "SkippedMember";
171
174
  const _SML = "SkippedMembersList";
172
175
  const _TTENS = "ToggleTranscriptionEmailNotificationsSubscription";
@@ -267,6 +270,7 @@ const _cIo = "companyId";
267
270
  const _cN = "companyName";
268
271
  const _cP = "captchaProof";
269
272
  const _cS = "clientSecret";
273
+ const _cWI = "createdWorkspaceIds";
270
274
  const _ca = "category";
271
275
  const _cal = "callback";
272
276
  const _cap = "capabilities";
@@ -281,6 +285,7 @@ const _d = "dialplan";
281
285
  const _dC = "dialogflowCx";
282
286
  const _dS = "dialplanSettings";
283
287
  const _dW = "defaultWorkspace";
288
+ const _dWI = "deletedWorkspaceIds";
284
289
  const _de = "department";
285
290
  const _dep = "departament";
286
291
  const _des = "description";
@@ -328,7 +333,8 @@ const _kb = "kb";
328
333
  const _ke = "keys";
329
334
  const _l = "language";
330
335
  const _lT = "licenseType";
331
- const _li = "license";
336
+ const _li = "limit";
337
+ const _lic = "license";
332
338
  const _ll = "llm";
333
339
  const _lo = "login";
334
340
  const _loc = "locale";
@@ -341,11 +347,12 @@ const _n = "name";
341
347
  const _nA = "networkAddresses";
342
348
  const _nD = "newData";
343
349
  const _no = "notifications";
344
- const _o = "otp";
350
+ const _o = "offset";
345
351
  const _oAA = "openAiAssistant";
346
352
  const _oD = "oldData";
347
353
  const _oP = "officePhone";
348
354
  const _oa = "oauth";
355
+ const _ot = "otp";
349
356
  const _p = "pbx";
350
357
  const _pD = "pbxDn";
351
358
  const _pDb = "pbxDomain";
@@ -372,6 +379,7 @@ const _q = "query";
372
379
  const _qu = "queries";
373
380
  const _r = "role";
374
381
  const _rA = "retryAfter";
382
+ const _rI = "requestId";
375
383
  const _rL = "rateLimit";
376
384
  const _rLR = "rateLimitRemaining";
377
385
  const _rLRa = "rateLimitReset";
@@ -406,11 +414,13 @@ const _ti = "timeout";
406
414
  const _to = "tools";
407
415
  const _tok = "token";
408
416
  const _too = "tool";
417
+ const _tot = "total";
409
418
  const _tr = "transcription";
410
419
  const _u = "users";
411
420
  const _uA = "updatedAt";
412
421
  const _uI = "usersIds";
413
422
  const _uIs = "userId";
423
+ const _uR = "userRemains";
414
424
  const _uT = "unsubscribeToken";
415
425
  const _un = "unread";
416
426
  const _up = "updated";
@@ -1001,13 +1011,13 @@ exports.ListIdentitiesOutput$ = [3, n3, _LIOi,
1001
1011
  ];
1002
1012
  exports.ListWorkspacesInput$ = [3, n3, _LWI,
1003
1013
  0,
1004
- [_aIc],
1005
- [[0, 1]], 1
1014
+ [_aIc, _li, _o, _q],
1015
+ [[0, 1], [1, { [_hQ]: _li }], [1, { [_hQ]: _o }], [0, { [_hQ]: _q }]], 1
1006
1016
  ];
1007
1017
  exports.ListWorkspacesOutput$ = [3, n3, _LWO,
1008
1018
  0,
1009
- [_w],
1010
- [() => WorkspaceList], 1
1019
+ [_w, _tot],
1020
+ [() => WorkspaceList, 1], 1
1011
1021
  ];
1012
1022
  exports.NewEmailData$ = [3, n3, _NED,
1013
1023
  0,
@@ -1069,6 +1079,16 @@ exports.QueryUsersOutput$ = [3, n3, _QUOu,
1069
1079
  [_u],
1070
1080
  [() => UsersList], 1
1071
1081
  ];
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
+ ];
1072
1092
  exports.ToggleTranscriptionEmailNotificationsSubscriptionInput$ = [3, n3, _TTENSI,
1073
1093
  0,
1074
1094
  [_uT, _sub],
@@ -1221,7 +1241,7 @@ exports.UserPersonalInfo$ = [3, n3, _UPIse,
1221
1241
  ];
1222
1242
  exports.UserQueryPredicate$ = [3, n3, _UQP,
1223
1243
  0,
1224
- [_li],
1244
+ [_lic],
1225
1245
  [0]
1226
1246
  ];
1227
1247
  exports.VerifyBotSecretKeyInput$ = [3, n3, _VBSKI,
@@ -1246,7 +1266,7 @@ exports.VerifyBotSecretKeyV1Output$ = [3, n3, _VBSKVO,
1246
1266
  ];
1247
1267
  exports.VerifyIdentityInput$ = [3, n3, _VII,
1248
1268
  0,
1249
- [_aIc, _id, _o],
1269
+ [_aIc, _id, _ot],
1250
1270
  [[0, 1], 0, 0], 3
1251
1271
  ];
1252
1272
  exports.VerifyIdentityOutput$ = [3, n3, _VIO,
@@ -1455,6 +1475,9 @@ exports.QueryUser$ = [9, n3, _QU,
1455
1475
  exports.QueryUsers$ = [9, n3, _QUu,
1456
1476
  { [_ht]: ["POST", "/v2/users/query-users", 200] }, () => exports.QueryUsersInput$, () => exports.QueryUsersOutput$
1457
1477
  ];
1478
+ exports.ResetUserChatHistory$ = [9, n3, _RUCH,
1479
+ { [_ht]: ["POST", "/v2/users/reset-chat-history", 200] }, () => exports.ResetUserChatHistoryInput$, () => exports.ResetUserChatHistoryOutput$
1480
+ ];
1458
1481
  exports.ToggleTranscriptionEmailNotificationsSubscription$ = [9, n3, _TTENS,
1459
1482
  { [_ht]: ["POST", "/v2/users/toggle-transcription-email-notifications-subscription", 200] }, () => exports.ToggleTranscriptionEmailNotificationsSubscriptionInput$, () => exports.ToggleTranscriptionEmailNotificationsSubscriptionOutput$
1460
1483
  ];
package/dist-es/Users.js CHANGED
@@ -30,6 +30,7 @@ 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";
33
34
  import { ToggleTranscriptionEmailNotificationsSubscriptionCommand, } from "./commands/ToggleTranscriptionEmailNotificationsSubscriptionCommand";
34
35
  import { ToggleUnreadEmailNotificationsSubscriptionCommand, } from "./commands/ToggleUnreadEmailNotificationsSubscriptionCommand";
35
36
  import { UnlinkIdentityCommand, } from "./commands/UnlinkIdentityCommand";
@@ -77,6 +78,7 @@ const commands = {
77
78
  QueryColleaguesCommand,
78
79
  QueryUserCommand,
79
80
  QueryUsersCommand,
81
+ ResetUserChatHistoryCommand,
80
82
  ToggleTranscriptionEmailNotificationsSubscriptionCommand,
81
83
  ToggleUnreadEmailNotificationsSubscriptionCommand,
82
84
  UnlinkIdentityCommand,
@@ -49,6 +49,12 @@ export const defaultUsersHttpAuthSchemeProvider = (authParameters) => {
49
49
  break;
50
50
  }
51
51
  ;
52
+ case "ResetUserChatHistory":
53
+ {
54
+ options.push(createWildixAuthPbxHttpAuthOption(authParameters));
55
+ break;
56
+ }
57
+ ;
52
58
  case "ToggleTranscriptionEmailNotificationsSubscription":
53
59
  {
54
60
  options.push(createSmithyApiHttpBearerAuthHttpAuthOption(authParameters));
@@ -0,0 +1,16 @@
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
+ }
@@ -29,6 +29,7 @@ export * from "./PartialUpdateUserEmailNotificationsSettingsCommand";
29
29
  export * from "./QueryColleaguesCommand";
30
30
  export * from "./QueryUserCommand";
31
31
  export * from "./QueryUsersCommand";
32
+ export * from "./ResetUserChatHistoryCommand";
32
33
  export * from "./ToggleTranscriptionEmailNotificationsSubscriptionCommand";
33
34
  export * from "./ToggleUnreadEmailNotificationsSubscriptionCommand";
34
35
  export * from "./UnlinkIdentityCommand";
@@ -160,6 +160,9 @@ 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";
163
166
  const _SM = "SkippedMember";
164
167
  const _SML = "SkippedMembersList";
165
168
  const _TTENS = "ToggleTranscriptionEmailNotificationsSubscription";
@@ -260,6 +263,7 @@ const _cIo = "companyId";
260
263
  const _cN = "companyName";
261
264
  const _cP = "captchaProof";
262
265
  const _cS = "clientSecret";
266
+ const _cWI = "createdWorkspaceIds";
263
267
  const _ca = "category";
264
268
  const _cal = "callback";
265
269
  const _cap = "capabilities";
@@ -274,6 +278,7 @@ const _d = "dialplan";
274
278
  const _dC = "dialogflowCx";
275
279
  const _dS = "dialplanSettings";
276
280
  const _dW = "defaultWorkspace";
281
+ const _dWI = "deletedWorkspaceIds";
277
282
  const _de = "department";
278
283
  const _dep = "departament";
279
284
  const _des = "description";
@@ -321,7 +326,8 @@ const _kb = "kb";
321
326
  const _ke = "keys";
322
327
  const _l = "language";
323
328
  const _lT = "licenseType";
324
- const _li = "license";
329
+ const _li = "limit";
330
+ const _lic = "license";
325
331
  const _ll = "llm";
326
332
  const _lo = "login";
327
333
  const _loc = "locale";
@@ -334,11 +340,12 @@ const _n = "name";
334
340
  const _nA = "networkAddresses";
335
341
  const _nD = "newData";
336
342
  const _no = "notifications";
337
- const _o = "otp";
343
+ const _o = "offset";
338
344
  const _oAA = "openAiAssistant";
339
345
  const _oD = "oldData";
340
346
  const _oP = "officePhone";
341
347
  const _oa = "oauth";
348
+ const _ot = "otp";
342
349
  const _p = "pbx";
343
350
  const _pD = "pbxDn";
344
351
  const _pDb = "pbxDomain";
@@ -365,6 +372,7 @@ const _q = "query";
365
372
  const _qu = "queries";
366
373
  const _r = "role";
367
374
  const _rA = "retryAfter";
375
+ const _rI = "requestId";
368
376
  const _rL = "rateLimit";
369
377
  const _rLR = "rateLimitRemaining";
370
378
  const _rLRa = "rateLimitReset";
@@ -399,11 +407,13 @@ const _ti = "timeout";
399
407
  const _to = "tools";
400
408
  const _tok = "token";
401
409
  const _too = "tool";
410
+ const _tot = "total";
402
411
  const _tr = "transcription";
403
412
  const _u = "users";
404
413
  const _uA = "updatedAt";
405
414
  const _uI = "usersIds";
406
415
  const _uIs = "userId";
416
+ const _uR = "userRemains";
407
417
  const _uT = "unsubscribeToken";
408
418
  const _un = "unread";
409
419
  const _up = "updated";
@@ -994,13 +1004,13 @@ export var ListIdentitiesOutput$ = [3, n3, _LIOi,
994
1004
  ];
995
1005
  export var ListWorkspacesInput$ = [3, n3, _LWI,
996
1006
  0,
997
- [_aIc],
998
- [[0, 1]], 1
1007
+ [_aIc, _li, _o, _q],
1008
+ [[0, 1], [1, { [_hQ]: _li }], [1, { [_hQ]: _o }], [0, { [_hQ]: _q }]], 1
999
1009
  ];
1000
1010
  export var ListWorkspacesOutput$ = [3, n3, _LWO,
1001
1011
  0,
1002
- [_w],
1003
- [() => WorkspaceList], 1
1012
+ [_w, _tot],
1013
+ [() => WorkspaceList, 1], 1
1004
1014
  ];
1005
1015
  export var NewEmailData$ = [3, n3, _NED,
1006
1016
  0,
@@ -1062,6 +1072,16 @@ export var QueryUsersOutput$ = [3, n3, _QUOu,
1062
1072
  [_u],
1063
1073
  [() => UsersList], 1
1064
1074
  ];
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
+ ];
1065
1085
  export var ToggleTranscriptionEmailNotificationsSubscriptionInput$ = [3, n3, _TTENSI,
1066
1086
  0,
1067
1087
  [_uT, _sub],
@@ -1214,7 +1234,7 @@ export var UserPersonalInfo$ = [3, n3, _UPIse,
1214
1234
  ];
1215
1235
  export var UserQueryPredicate$ = [3, n3, _UQP,
1216
1236
  0,
1217
- [_li],
1237
+ [_lic],
1218
1238
  [0]
1219
1239
  ];
1220
1240
  export var VerifyBotSecretKeyInput$ = [3, n3, _VBSKI,
@@ -1239,7 +1259,7 @@ export var VerifyBotSecretKeyV1Output$ = [3, n3, _VBSKVO,
1239
1259
  ];
1240
1260
  export var VerifyIdentityInput$ = [3, n3, _VII,
1241
1261
  0,
1242
- [_aIc, _id, _o],
1262
+ [_aIc, _id, _ot],
1243
1263
  [[0, 1], 0, 0], 3
1244
1264
  ];
1245
1265
  export var VerifyIdentityOutput$ = [3, n3, _VIO,
@@ -1448,6 +1468,9 @@ export var QueryUser$ = [9, n3, _QU,
1448
1468
  export var QueryUsers$ = [9, n3, _QUu,
1449
1469
  { [_ht]: ["POST", "/v2/users/query-users", 200] }, () => QueryUsersInput$, () => QueryUsersOutput$
1450
1470
  ];
1471
+ export var ResetUserChatHistory$ = [9, n3, _RUCH,
1472
+ { [_ht]: ["POST", "/v2/users/reset-chat-history", 200] }, () => ResetUserChatHistoryInput$, () => ResetUserChatHistoryOutput$
1473
+ ];
1451
1474
  export var ToggleTranscriptionEmailNotificationsSubscription$ = [9, n3, _TTENS,
1452
1475
  { [_ht]: ["POST", "/v2/users/toggle-transcription-email-notifications-subscription", 200] }, () => ToggleTranscriptionEmailNotificationsSubscriptionInput$, () => ToggleTranscriptionEmailNotificationsSubscriptionOutput$
1453
1476
  ];
@@ -30,6 +30,7 @@ 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";
33
34
  import { type ToggleTranscriptionEmailNotificationsSubscriptionCommandInput, type ToggleTranscriptionEmailNotificationsSubscriptionCommandOutput } from "./commands/ToggleTranscriptionEmailNotificationsSubscriptionCommand";
34
35
  import { type ToggleUnreadEmailNotificationsSubscriptionCommandInput, type ToggleUnreadEmailNotificationsSubscriptionCommandOutput } from "./commands/ToggleUnreadEmailNotificationsSubscriptionCommand";
35
36
  import { type UnlinkIdentityCommandInput, type UnlinkIdentityCommandOutput } from "./commands/UnlinkIdentityCommand";
@@ -236,6 +237,12 @@ export interface Users {
236
237
  queryUsers(args: QueryUsersCommandInput, options?: __HttpHandlerOptions): Promise<QueryUsersCommandOutput>;
237
238
  queryUsers(args: QueryUsersCommandInput, cb: (err: any, data?: QueryUsersCommandOutput) => void): void;
238
239
  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;
239
246
  /**
240
247
  * @see {@link ToggleTranscriptionEmailNotificationsSubscriptionCommand}
241
248
  */
@@ -36,6 +36,7 @@ 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";
39
40
  import type { ToggleTranscriptionEmailNotificationsSubscriptionCommandInput, ToggleTranscriptionEmailNotificationsSubscriptionCommandOutput } from "./commands/ToggleTranscriptionEmailNotificationsSubscriptionCommand";
40
41
  import type { ToggleUnreadEmailNotificationsSubscriptionCommandInput, ToggleUnreadEmailNotificationsSubscriptionCommandOutput } from "./commands/ToggleUnreadEmailNotificationsSubscriptionCommand";
41
42
  import type { UnlinkIdentityCommandInput, UnlinkIdentityCommandOutput } from "./commands/UnlinkIdentityCommand";
@@ -56,11 +57,11 @@ export { __Client };
56
57
  /**
57
58
  * @public
58
59
  */
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;
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;
60
61
  /**
61
62
  * @public
62
63
  */
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;
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;
64
65
  /**
65
66
  * @public
66
67
  */
@@ -27,7 +27,7 @@ declare const ListWorkspacesCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * Lists all workspaces available to the account.
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.
31
31
  * @example
32
32
  * Use a bare-bones client and the command you need to make an API call.
33
33
  * ```javascript
@@ -38,6 +38,9 @@ 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",
41
44
  * };
42
45
  * const command = new ListWorkspacesCommand(input);
43
46
  * const response = await client.send(command);
@@ -125,6 +128,7 @@ declare const ListWorkspacesCommand_base: {
125
128
  * // active: true || false, // required
126
129
  * // },
127
130
  * // ],
131
+ * // total: Number("int"),
128
132
  * // };
129
133
  *
130
134
  * ```
@@ -0,0 +1,89 @@
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
+ }
@@ -29,6 +29,7 @@ export * from "./PartialUpdateUserEmailNotificationsSettingsCommand";
29
29
  export * from "./QueryColleaguesCommand";
30
30
  export * from "./QueryUserCommand";
31
31
  export * from "./QueryUsersCommand";
32
+ export * from "./ResetUserChatHistoryCommand";
32
33
  export * from "./ToggleTranscriptionEmailNotificationsSubscriptionCommand";
33
34
  export * from "./ToggleUnreadEmailNotificationsSubscriptionCommand";
34
35
  export * from "./UnlinkIdentityCommand";
@@ -1641,6 +1641,21 @@ export interface ListWorkspacesInput {
1641
1641
  * @public
1642
1642
  */
1643
1643
  accountId: string;
1644
+ /**
1645
+ * Maximum number of selectable workspaces to return, from 1 to 100. When omitted, every workspace is returned and offset and query are ignored.
1646
+ * @public
1647
+ */
1648
+ limit?: number | undefined;
1649
+ /**
1650
+ * 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.
1651
+ * @public
1652
+ */
1653
+ offset?: number | undefined;
1654
+ /**
1655
+ * Case-insensitive substring matched against the PBX domain. Applied only when limit is set. Blank values are ignored. Narrows total as well as the page.
1656
+ * @public
1657
+ */
1658
+ query?: string | undefined;
1644
1659
  }
1645
1660
  /**
1646
1661
  * @public
@@ -1652,7 +1667,7 @@ export interface Workspace {
1652
1667
  */
1653
1668
  companyId?: string | undefined;
1654
1669
  /**
1655
- * PBX information where user connected to.
1670
+ * 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.
1656
1671
  * @public
1657
1672
  */
1658
1673
  pbxUser?: UserPbxLinkData | undefined;
@@ -1686,7 +1701,16 @@ export interface Workspace {
1686
1701
  * @public
1687
1702
  */
1688
1703
  export interface ListWorkspacesOutput {
1704
+ /**
1705
+ * Workspaces for this request. A paged response contains only active work workspaces, ordered with the account default first, then workspaces the user linked to before (most recent first), then the rest by domain.
1706
+ * @public
1707
+ */
1689
1708
  workspaces: Workspace[];
1709
+ /**
1710
+ * Number of selectable workspaces (active and type work) that match query, ignoring offset. Present when limit is set.
1711
+ * @public
1712
+ */
1713
+ total?: number | undefined;
1690
1714
  }
1691
1715
  /**
1692
1716
  * @public
@@ -1876,6 +1900,43 @@ export interface QueryUsersOutput {
1876
1900
  */
1877
1901
  users: User[];
1878
1902
  }
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
+ }
1879
1940
  /**
1880
1941
  * @public
1881
1942
  */
@@ -127,6 +127,8 @@ 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;
130
132
  export declare var ToggleTranscriptionEmailNotificationsSubscriptionInput$: StaticStructureSchema;
131
133
  export declare var ToggleTranscriptionEmailNotificationsSubscriptionOutput$: StaticStructureSchema;
132
134
  export declare var ToggleUnreadEmailNotificationsSubscriptionInput$: StaticStructureSchema;
@@ -204,6 +206,7 @@ export declare var PartialUpdateUserEmailNotificationsSettings$: StaticOperation
204
206
  export declare var QueryColleagues$: StaticOperationSchema;
205
207
  export declare var QueryUser$: StaticOperationSchema;
206
208
  export declare var QueryUsers$: StaticOperationSchema;
209
+ export declare var ResetUserChatHistory$: StaticOperationSchema;
207
210
  export declare var ToggleTranscriptionEmailNotificationsSubscription$: StaticOperationSchema;
208
211
  export declare var ToggleUnreadEmailNotificationsSubscription$: StaticOperationSchema;
209
212
  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.2.0",
4
+ "version": "4.3.0",
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",