@wildix/xbees-users-client 1.0.29 → 1.0.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (24) hide show
  1. package/dist-cjs/Users.js +4 -4
  2. package/dist-cjs/commands/ManageTranscriptionEmailNotificationsSubscriptionCommand.js +21 -0
  3. package/dist-cjs/commands/ManageUnreadEmailNotificationsSubscriptionCommand.js +21 -0
  4. package/dist-cjs/commands/index.js +2 -2
  5. package/dist-cjs/protocols/Aws_restJson1.js +58 -56
  6. package/dist-es/Users.js +4 -4
  7. package/dist-es/commands/ManageTranscriptionEmailNotificationsSubscriptionCommand.js +17 -0
  8. package/dist-es/commands/ManageUnreadEmailNotificationsSubscriptionCommand.js +17 -0
  9. package/dist-es/commands/index.js +2 -2
  10. package/dist-es/protocols/Aws_restJson1.js +50 -48
  11. package/dist-types/Users.d.ts +14 -14
  12. package/dist-types/UsersClient.d.ts +4 -4
  13. package/dist-types/commands/ManageTranscriptionEmailNotificationsSubscriptionCommand.d.ts +63 -0
  14. package/dist-types/commands/ManageUnreadEmailNotificationsSubscriptionCommand.d.ts +63 -0
  15. package/dist-types/commands/index.d.ts +2 -2
  16. package/dist-types/models/models_0.d.ts +32 -22
  17. package/dist-types/protocols/Aws_restJson1.d.ts +18 -18
  18. package/package.json +6 -6
  19. package/dist-cjs/commands/UnsubscribeFromTranscriptionEmailNotificationsCommand.js +0 -21
  20. package/dist-cjs/commands/UnsubscribeFromUnreadEmailNotificationsCommand.js +0 -21
  21. package/dist-es/commands/UnsubscribeFromTranscriptionEmailNotificationsCommand.js +0 -17
  22. package/dist-es/commands/UnsubscribeFromUnreadEmailNotificationsCommand.js +0 -17
  23. package/dist-types/commands/UnsubscribeFromTranscriptionEmailNotificationsCommand.d.ts +0 -62
  24. package/dist-types/commands/UnsubscribeFromUnreadEmailNotificationsCommand.d.ts +0 -62
package/dist-cjs/Users.js CHANGED
@@ -21,12 +21,12 @@ const GetUserPbxLinkSuggestionCommand_1 = require("./commands/GetUserPbxLinkSugg
21
21
  const GetUserPbxLinkSuggestionV1Command_1 = require("./commands/GetUserPbxLinkSuggestionV1Command");
22
22
  const ListBotApiKeysCommand_1 = require("./commands/ListBotApiKeysCommand");
23
23
  const ListBotsCommand_1 = require("./commands/ListBotsCommand");
24
+ const ManageTranscriptionEmailNotificationsSubscriptionCommand_1 = require("./commands/ManageTranscriptionEmailNotificationsSubscriptionCommand");
25
+ const ManageUnreadEmailNotificationsSubscriptionCommand_1 = require("./commands/ManageUnreadEmailNotificationsSubscriptionCommand");
24
26
  const PartialUpdateUserEmailNotificationsSettingsCommand_1 = require("./commands/PartialUpdateUserEmailNotificationsSettingsCommand");
25
27
  const QueryColleaguesCommand_1 = require("./commands/QueryColleaguesCommand");
26
28
  const QueryUserCommand_1 = require("./commands/QueryUserCommand");
27
29
  const QueryUsersCommand_1 = require("./commands/QueryUsersCommand");
28
- const UnsubscribeFromTranscriptionEmailNotificationsCommand_1 = require("./commands/UnsubscribeFromTranscriptionEmailNotificationsCommand");
29
- const UnsubscribeFromUnreadEmailNotificationsCommand_1 = require("./commands/UnsubscribeFromUnreadEmailNotificationsCommand");
30
30
  const UpdateBotCallbackCommand_1 = require("./commands/UpdateBotCallbackCommand");
31
31
  const UpdateBotCommand_1 = require("./commands/UpdateBotCommand");
32
32
  const UpdateUserEmailNotificationsSettingsCommand_1 = require("./commands/UpdateUserEmailNotificationsSettingsCommand");
@@ -55,12 +55,12 @@ const commands = {
55
55
  GetUserPbxLinkSuggestionV1Command: GetUserPbxLinkSuggestionV1Command_1.GetUserPbxLinkSuggestionV1Command,
56
56
  ListBotApiKeysCommand: ListBotApiKeysCommand_1.ListBotApiKeysCommand,
57
57
  ListBotsCommand: ListBotsCommand_1.ListBotsCommand,
58
+ ManageTranscriptionEmailNotificationsSubscriptionCommand: ManageTranscriptionEmailNotificationsSubscriptionCommand_1.ManageTranscriptionEmailNotificationsSubscriptionCommand,
59
+ ManageUnreadEmailNotificationsSubscriptionCommand: ManageUnreadEmailNotificationsSubscriptionCommand_1.ManageUnreadEmailNotificationsSubscriptionCommand,
58
60
  PartialUpdateUserEmailNotificationsSettingsCommand: PartialUpdateUserEmailNotificationsSettingsCommand_1.PartialUpdateUserEmailNotificationsSettingsCommand,
59
61
  QueryColleaguesCommand: QueryColleaguesCommand_1.QueryColleaguesCommand,
60
62
  QueryUserCommand: QueryUserCommand_1.QueryUserCommand,
61
63
  QueryUsersCommand: QueryUsersCommand_1.QueryUsersCommand,
62
- UnsubscribeFromTranscriptionEmailNotificationsCommand: UnsubscribeFromTranscriptionEmailNotificationsCommand_1.UnsubscribeFromTranscriptionEmailNotificationsCommand,
63
- UnsubscribeFromUnreadEmailNotificationsCommand: UnsubscribeFromUnreadEmailNotificationsCommand_1.UnsubscribeFromUnreadEmailNotificationsCommand,
64
64
  UpdateBotCommand: UpdateBotCommand_1.UpdateBotCommand,
65
65
  UpdateBotCallbackCommand: UpdateBotCallbackCommand_1.UpdateBotCallbackCommand,
66
66
  UpdateUserEmailNotificationsSettingsCommand: UpdateUserEmailNotificationsSettingsCommand_1.UpdateUserEmailNotificationsSettingsCommand,
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ManageTranscriptionEmailNotificationsSubscriptionCommand = exports.$Command = void 0;
4
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ class ManageTranscriptionEmailNotificationsSubscriptionCommand extends smithy_client_1.Command.classBuilder()
9
+ .m(function (Command, cs, config, o) {
10
+ return [
11
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
12
+ ];
13
+ })
14
+ .s("Users", "ManageTranscriptionEmailNotificationsSubscription", {})
15
+ .n("UsersClient", "ManageTranscriptionEmailNotificationsSubscriptionCommand")
16
+ .f(void 0, void 0)
17
+ .ser(Aws_restJson1_1.se_ManageTranscriptionEmailNotificationsSubscriptionCommand)
18
+ .de(Aws_restJson1_1.de_ManageTranscriptionEmailNotificationsSubscriptionCommand)
19
+ .build() {
20
+ }
21
+ exports.ManageTranscriptionEmailNotificationsSubscriptionCommand = ManageTranscriptionEmailNotificationsSubscriptionCommand;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ManageUnreadEmailNotificationsSubscriptionCommand = exports.$Command = void 0;
4
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ class ManageUnreadEmailNotificationsSubscriptionCommand extends smithy_client_1.Command.classBuilder()
9
+ .m(function (Command, cs, config, o) {
10
+ return [
11
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
12
+ ];
13
+ })
14
+ .s("Users", "ManageUnreadEmailNotificationsSubscription", {})
15
+ .n("UsersClient", "ManageUnreadEmailNotificationsSubscriptionCommand")
16
+ .f(void 0, void 0)
17
+ .ser(Aws_restJson1_1.se_ManageUnreadEmailNotificationsSubscriptionCommand)
18
+ .de(Aws_restJson1_1.de_ManageUnreadEmailNotificationsSubscriptionCommand)
19
+ .build() {
20
+ }
21
+ exports.ManageUnreadEmailNotificationsSubscriptionCommand = ManageUnreadEmailNotificationsSubscriptionCommand;
@@ -20,12 +20,12 @@ tslib_1.__exportStar(require("./GetUserPbxLinkSuggestionCommand"), exports);
20
20
  tslib_1.__exportStar(require("./GetUserPbxLinkSuggestionV1Command"), exports);
21
21
  tslib_1.__exportStar(require("./ListBotApiKeysCommand"), exports);
22
22
  tslib_1.__exportStar(require("./ListBotsCommand"), exports);
23
+ tslib_1.__exportStar(require("./ManageTranscriptionEmailNotificationsSubscriptionCommand"), exports);
24
+ tslib_1.__exportStar(require("./ManageUnreadEmailNotificationsSubscriptionCommand"), exports);
23
25
  tslib_1.__exportStar(require("./PartialUpdateUserEmailNotificationsSettingsCommand"), exports);
24
26
  tslib_1.__exportStar(require("./QueryColleaguesCommand"), exports);
25
27
  tslib_1.__exportStar(require("./QueryUserCommand"), exports);
26
28
  tslib_1.__exportStar(require("./QueryUsersCommand"), exports);
27
- tslib_1.__exportStar(require("./UnsubscribeFromTranscriptionEmailNotificationsCommand"), exports);
28
- tslib_1.__exportStar(require("./UnsubscribeFromUnreadEmailNotificationsCommand"), exports);
29
29
  tslib_1.__exportStar(require("./UpdateBotCommand"), exports);
30
30
  tslib_1.__exportStar(require("./UpdateBotCallbackCommand"), exports);
31
31
  tslib_1.__exportStar(require("./UpdateUserEmailNotificationsSettingsCommand"), exports);
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.de_ListBotApiKeysCommand = exports.de_GetUserPbxLinkSuggestionV1Command = exports.de_GetUserPbxLinkSuggestionCommand = exports.de_GetUserPbxLinkDataCommand = exports.de_GetUserEmailNotificationsSettingsCommand = exports.de_GetUserCommand = exports.de_GetBotCallbackCommand = exports.de_GetBotCommand = exports.de_DeleteBotApiKeyCommand = exports.de_DeleteBotCommand = exports.de_CreateSystemBotCommand = exports.de_CreateBotApiKeyCommand = exports.de_CreateBotCommand = exports.de_ChangeUserEmailCommand = exports.de_BatchGetUsersPbxLinkDataV1Command = exports.de_BatchGetUsersPbxLinkDataCommand = exports.de_BatchGetUsersEmailNotificationsSettingsCommand = exports.de_BatchGetUsersCommand = exports.se_VerifyBotSecretKeyV1Command = exports.se_VerifyBotSecretKeyCommand = exports.se_UploadPictureV1Command = exports.se_UploadPictureCommand = exports.se_UpdateUserEmailNotificationsSettingsCommand = exports.se_UpdateBotCallbackCommand = exports.se_UpdateBotCommand = exports.se_UnsubscribeFromUnreadEmailNotificationsCommand = exports.se_UnsubscribeFromTranscriptionEmailNotificationsCommand = exports.se_QueryUsersCommand = exports.se_QueryUserCommand = exports.se_QueryColleaguesCommand = exports.se_PartialUpdateUserEmailNotificationsSettingsCommand = exports.se_ListBotsCommand = exports.se_ListBotApiKeysCommand = exports.se_GetUserPbxLinkSuggestionV1Command = exports.se_GetUserPbxLinkSuggestionCommand = exports.se_GetUserPbxLinkDataCommand = exports.se_GetUserEmailNotificationsSettingsCommand = exports.se_GetUserCommand = exports.se_GetBotCallbackCommand = exports.se_GetBotCommand = exports.se_DeleteBotApiKeyCommand = exports.se_DeleteBotCommand = exports.se_CreateSystemBotCommand = exports.se_CreateBotApiKeyCommand = exports.se_CreateBotCommand = exports.se_ChangeUserEmailCommand = exports.se_BatchGetUsersPbxLinkDataV1Command = exports.se_BatchGetUsersPbxLinkDataCommand = exports.se_BatchGetUsersEmailNotificationsSettingsCommand = exports.se_BatchGetUsersCommand = void 0;
4
- exports.de_VerifyBotSecretKeyV1Command = exports.de_VerifyBotSecretKeyCommand = exports.de_UploadPictureV1Command = exports.de_UploadPictureCommand = exports.de_UpdateUserEmailNotificationsSettingsCommand = exports.de_UpdateBotCallbackCommand = exports.de_UpdateBotCommand = exports.de_UnsubscribeFromUnreadEmailNotificationsCommand = exports.de_UnsubscribeFromTranscriptionEmailNotificationsCommand = exports.de_QueryUsersCommand = exports.de_QueryUserCommand = exports.de_QueryColleaguesCommand = exports.de_PartialUpdateUserEmailNotificationsSettingsCommand = exports.de_ListBotsCommand = void 0;
3
+ exports.de_ListBotApiKeysCommand = exports.de_GetUserPbxLinkSuggestionV1Command = exports.de_GetUserPbxLinkSuggestionCommand = exports.de_GetUserPbxLinkDataCommand = exports.de_GetUserEmailNotificationsSettingsCommand = exports.de_GetUserCommand = exports.de_GetBotCallbackCommand = exports.de_GetBotCommand = exports.de_DeleteBotApiKeyCommand = exports.de_DeleteBotCommand = exports.de_CreateSystemBotCommand = exports.de_CreateBotApiKeyCommand = exports.de_CreateBotCommand = exports.de_ChangeUserEmailCommand = exports.de_BatchGetUsersPbxLinkDataV1Command = exports.de_BatchGetUsersPbxLinkDataCommand = exports.de_BatchGetUsersEmailNotificationsSettingsCommand = exports.de_BatchGetUsersCommand = exports.se_VerifyBotSecretKeyV1Command = exports.se_VerifyBotSecretKeyCommand = exports.se_UploadPictureV1Command = exports.se_UploadPictureCommand = exports.se_UpdateUserEmailNotificationsSettingsCommand = exports.se_UpdateBotCallbackCommand = exports.se_UpdateBotCommand = exports.se_QueryUsersCommand = exports.se_QueryUserCommand = exports.se_QueryColleaguesCommand = exports.se_PartialUpdateUserEmailNotificationsSettingsCommand = exports.se_ManageUnreadEmailNotificationsSubscriptionCommand = exports.se_ManageTranscriptionEmailNotificationsSubscriptionCommand = exports.se_ListBotsCommand = exports.se_ListBotApiKeysCommand = exports.se_GetUserPbxLinkSuggestionV1Command = exports.se_GetUserPbxLinkSuggestionCommand = exports.se_GetUserPbxLinkDataCommand = exports.se_GetUserEmailNotificationsSettingsCommand = exports.se_GetUserCommand = exports.se_GetBotCallbackCommand = exports.se_GetBotCommand = exports.se_DeleteBotApiKeyCommand = exports.se_DeleteBotCommand = exports.se_CreateSystemBotCommand = exports.se_CreateBotApiKeyCommand = exports.se_CreateBotCommand = exports.se_ChangeUserEmailCommand = exports.se_BatchGetUsersPbxLinkDataV1Command = exports.se_BatchGetUsersPbxLinkDataCommand = exports.se_BatchGetUsersEmailNotificationsSettingsCommand = exports.se_BatchGetUsersCommand = void 0;
4
+ exports.de_VerifyBotSecretKeyV1Command = exports.de_VerifyBotSecretKeyCommand = exports.de_UploadPictureV1Command = exports.de_UploadPictureCommand = exports.de_UpdateUserEmailNotificationsSettingsCommand = exports.de_UpdateBotCallbackCommand = exports.de_UpdateBotCommand = exports.de_QueryUsersCommand = exports.de_QueryUserCommand = exports.de_QueryColleaguesCommand = exports.de_PartialUpdateUserEmailNotificationsSettingsCommand = exports.de_ManageUnreadEmailNotificationsSubscriptionCommand = exports.de_ManageTranscriptionEmailNotificationsSubscriptionCommand = exports.de_ListBotsCommand = void 0;
5
5
  const UsersServiceException_1 = require("../models/UsersServiceException");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const core_1 = require("@smithy/core");
@@ -314,6 +314,40 @@ const se_ListBotsCommand = async (input, context) => {
314
314
  return b.build();
315
315
  };
316
316
  exports.se_ListBotsCommand = se_ListBotsCommand;
317
+ const se_ManageTranscriptionEmailNotificationsSubscriptionCommand = async (input, context) => {
318
+ const b = (0, core_1.requestBuilder)(input, context);
319
+ const headers = {
320
+ 'content-type': 'application/json',
321
+ };
322
+ b.bp("/v2/users/manage-transcription-email-notifications-subscription");
323
+ let body;
324
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
325
+ 'subscribe': [],
326
+ 'unsubscribeToken': [],
327
+ }));
328
+ b.m("POST")
329
+ .h(headers)
330
+ .b(body);
331
+ return b.build();
332
+ };
333
+ exports.se_ManageTranscriptionEmailNotificationsSubscriptionCommand = se_ManageTranscriptionEmailNotificationsSubscriptionCommand;
334
+ const se_ManageUnreadEmailNotificationsSubscriptionCommand = async (input, context) => {
335
+ const b = (0, core_1.requestBuilder)(input, context);
336
+ const headers = {
337
+ 'content-type': 'application/json',
338
+ };
339
+ b.bp("/v2/users/manage-unread-email-notifications-subscription");
340
+ let body;
341
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
342
+ 'subscribe': [],
343
+ 'unsubscribeToken': [],
344
+ }));
345
+ b.m("POST")
346
+ .h(headers)
347
+ .b(body);
348
+ return b.build();
349
+ };
350
+ exports.se_ManageUnreadEmailNotificationsSubscriptionCommand = se_ManageUnreadEmailNotificationsSubscriptionCommand;
317
351
  const se_PartialUpdateUserEmailNotificationsSettingsCommand = async (input, context) => {
318
352
  const b = (0, core_1.requestBuilder)(input, context);
319
353
  const headers = {
@@ -386,38 +420,6 @@ const se_QueryUsersCommand = async (input, context) => {
386
420
  return b.build();
387
421
  };
388
422
  exports.se_QueryUsersCommand = se_QueryUsersCommand;
389
- const se_UnsubscribeFromTranscriptionEmailNotificationsCommand = async (input, context) => {
390
- const b = (0, core_1.requestBuilder)(input, context);
391
- const headers = {
392
- 'content-type': 'application/json',
393
- };
394
- b.bp("/v2/users/unsubscribe-transcription-email-notifications");
395
- let body;
396
- body = JSON.stringify((0, smithy_client_1.take)(input, {
397
- 'unsubscribeToken': [],
398
- }));
399
- b.m("POST")
400
- .h(headers)
401
- .b(body);
402
- return b.build();
403
- };
404
- exports.se_UnsubscribeFromTranscriptionEmailNotificationsCommand = se_UnsubscribeFromTranscriptionEmailNotificationsCommand;
405
- const se_UnsubscribeFromUnreadEmailNotificationsCommand = async (input, context) => {
406
- const b = (0, core_1.requestBuilder)(input, context);
407
- const headers = {
408
- 'content-type': 'application/json',
409
- };
410
- b.bp("/v2/users/unsubscribe-unread-email-notifications");
411
- let body;
412
- body = JSON.stringify((0, smithy_client_1.take)(input, {
413
- 'unsubscribeToken': [],
414
- }));
415
- b.m("POST")
416
- .h(headers)
417
- .b(body);
418
- return b.build();
419
- };
420
- exports.se_UnsubscribeFromUnreadEmailNotificationsCommand = se_UnsubscribeFromUnreadEmailNotificationsCommand;
421
423
  const se_UpdateBotCommand = async (input, context) => {
422
424
  const b = (0, core_1.requestBuilder)(input, context);
423
425
  const headers = {
@@ -822,6 +824,28 @@ const de_ListBotsCommand = async (output, context) => {
822
824
  return contents;
823
825
  };
824
826
  exports.de_ListBotsCommand = de_ListBotsCommand;
827
+ const de_ManageTranscriptionEmailNotificationsSubscriptionCommand = async (output, context) => {
828
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
829
+ return de_CommandError(output, context);
830
+ }
831
+ const contents = (0, smithy_client_1.map)({
832
+ $metadata: deserializeMetadata(output),
833
+ });
834
+ await (0, smithy_client_1.collectBody)(output.body, context);
835
+ return contents;
836
+ };
837
+ exports.de_ManageTranscriptionEmailNotificationsSubscriptionCommand = de_ManageTranscriptionEmailNotificationsSubscriptionCommand;
838
+ const de_ManageUnreadEmailNotificationsSubscriptionCommand = async (output, context) => {
839
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
840
+ return de_CommandError(output, context);
841
+ }
842
+ const contents = (0, smithy_client_1.map)({
843
+ $metadata: deserializeMetadata(output),
844
+ });
845
+ await (0, smithy_client_1.collectBody)(output.body, context);
846
+ return contents;
847
+ };
848
+ exports.de_ManageUnreadEmailNotificationsSubscriptionCommand = de_ManageUnreadEmailNotificationsSubscriptionCommand;
825
849
  const de_PartialUpdateUserEmailNotificationsSettingsCommand = async (output, context) => {
826
850
  if (output.statusCode !== 200 && output.statusCode >= 300) {
827
851
  return de_CommandError(output, context);
@@ -882,28 +906,6 @@ const de_QueryUsersCommand = async (output, context) => {
882
906
  return contents;
883
907
  };
884
908
  exports.de_QueryUsersCommand = de_QueryUsersCommand;
885
- const de_UnsubscribeFromTranscriptionEmailNotificationsCommand = async (output, context) => {
886
- if (output.statusCode !== 200 && output.statusCode >= 300) {
887
- return de_CommandError(output, context);
888
- }
889
- const contents = (0, smithy_client_1.map)({
890
- $metadata: deserializeMetadata(output),
891
- });
892
- await (0, smithy_client_1.collectBody)(output.body, context);
893
- return contents;
894
- };
895
- exports.de_UnsubscribeFromTranscriptionEmailNotificationsCommand = de_UnsubscribeFromTranscriptionEmailNotificationsCommand;
896
- const de_UnsubscribeFromUnreadEmailNotificationsCommand = async (output, context) => {
897
- if (output.statusCode !== 200 && output.statusCode >= 300) {
898
- return de_CommandError(output, context);
899
- }
900
- const contents = (0, smithy_client_1.map)({
901
- $metadata: deserializeMetadata(output),
902
- });
903
- await (0, smithy_client_1.collectBody)(output.body, context);
904
- return contents;
905
- };
906
- exports.de_UnsubscribeFromUnreadEmailNotificationsCommand = de_UnsubscribeFromUnreadEmailNotificationsCommand;
907
909
  const de_UpdateBotCommand = async (output, context) => {
908
910
  if (output.statusCode !== 200 && output.statusCode >= 300) {
909
911
  return de_CommandError(output, context);
package/dist-es/Users.js CHANGED
@@ -18,12 +18,12 @@ import { GetUserPbxLinkSuggestionCommand, } from "./commands/GetUserPbxLinkSugge
18
18
  import { GetUserPbxLinkSuggestionV1Command, } from "./commands/GetUserPbxLinkSuggestionV1Command";
19
19
  import { ListBotApiKeysCommand, } from "./commands/ListBotApiKeysCommand";
20
20
  import { ListBotsCommand, } from "./commands/ListBotsCommand";
21
+ import { ManageTranscriptionEmailNotificationsSubscriptionCommand, } from "./commands/ManageTranscriptionEmailNotificationsSubscriptionCommand";
22
+ import { ManageUnreadEmailNotificationsSubscriptionCommand, } from "./commands/ManageUnreadEmailNotificationsSubscriptionCommand";
21
23
  import { PartialUpdateUserEmailNotificationsSettingsCommand, } from "./commands/PartialUpdateUserEmailNotificationsSettingsCommand";
22
24
  import { QueryColleaguesCommand, } from "./commands/QueryColleaguesCommand";
23
25
  import { QueryUserCommand, } from "./commands/QueryUserCommand";
24
26
  import { QueryUsersCommand, } from "./commands/QueryUsersCommand";
25
- import { UnsubscribeFromTranscriptionEmailNotificationsCommand, } from "./commands/UnsubscribeFromTranscriptionEmailNotificationsCommand";
26
- import { UnsubscribeFromUnreadEmailNotificationsCommand, } from "./commands/UnsubscribeFromUnreadEmailNotificationsCommand";
27
27
  import { UpdateBotCallbackCommand, } from "./commands/UpdateBotCallbackCommand";
28
28
  import { UpdateBotCommand, } from "./commands/UpdateBotCommand";
29
29
  import { UpdateUserEmailNotificationsSettingsCommand, } from "./commands/UpdateUserEmailNotificationsSettingsCommand";
@@ -52,12 +52,12 @@ const commands = {
52
52
  GetUserPbxLinkSuggestionV1Command,
53
53
  ListBotApiKeysCommand,
54
54
  ListBotsCommand,
55
+ ManageTranscriptionEmailNotificationsSubscriptionCommand,
56
+ ManageUnreadEmailNotificationsSubscriptionCommand,
55
57
  PartialUpdateUserEmailNotificationsSettingsCommand,
56
58
  QueryColleaguesCommand,
57
59
  QueryUserCommand,
58
60
  QueryUsersCommand,
59
- UnsubscribeFromTranscriptionEmailNotificationsCommand,
60
- UnsubscribeFromUnreadEmailNotificationsCommand,
61
61
  UpdateBotCommand,
62
62
  UpdateBotCallbackCommand,
63
63
  UpdateUserEmailNotificationsSettingsCommand,
@@ -0,0 +1,17 @@
1
+ import { de_ManageTranscriptionEmailNotificationsSubscriptionCommand, se_ManageTranscriptionEmailNotificationsSubscriptionCommand, } from "../protocols/Aws_restJson1";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ export { $Command };
5
+ export class ManageTranscriptionEmailNotificationsSubscriptionCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("Users", "ManageTranscriptionEmailNotificationsSubscription", {})
12
+ .n("UsersClient", "ManageTranscriptionEmailNotificationsSubscriptionCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_ManageTranscriptionEmailNotificationsSubscriptionCommand)
15
+ .de(de_ManageTranscriptionEmailNotificationsSubscriptionCommand)
16
+ .build() {
17
+ }
@@ -0,0 +1,17 @@
1
+ import { de_ManageUnreadEmailNotificationsSubscriptionCommand, se_ManageUnreadEmailNotificationsSubscriptionCommand, } from "../protocols/Aws_restJson1";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ export { $Command };
5
+ export class ManageUnreadEmailNotificationsSubscriptionCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("Users", "ManageUnreadEmailNotificationsSubscription", {})
12
+ .n("UsersClient", "ManageUnreadEmailNotificationsSubscriptionCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_ManageUnreadEmailNotificationsSubscriptionCommand)
15
+ .de(de_ManageUnreadEmailNotificationsSubscriptionCommand)
16
+ .build() {
17
+ }
@@ -17,12 +17,12 @@ export * from "./GetUserPbxLinkSuggestionCommand";
17
17
  export * from "./GetUserPbxLinkSuggestionV1Command";
18
18
  export * from "./ListBotApiKeysCommand";
19
19
  export * from "./ListBotsCommand";
20
+ export * from "./ManageTranscriptionEmailNotificationsSubscriptionCommand";
21
+ export * from "./ManageUnreadEmailNotificationsSubscriptionCommand";
20
22
  export * from "./PartialUpdateUserEmailNotificationsSettingsCommand";
21
23
  export * from "./QueryColleaguesCommand";
22
24
  export * from "./QueryUserCommand";
23
25
  export * from "./QueryUsersCommand";
24
- export * from "./UnsubscribeFromTranscriptionEmailNotificationsCommand";
25
- export * from "./UnsubscribeFromUnreadEmailNotificationsCommand";
26
26
  export * from "./UpdateBotCommand";
27
27
  export * from "./UpdateBotCallbackCommand";
28
28
  export * from "./UpdateUserEmailNotificationsSettingsCommand";
@@ -291,98 +291,100 @@ export const se_ListBotsCommand = async (input, context) => {
291
291
  .b(body);
292
292
  return b.build();
293
293
  };
294
- export const se_PartialUpdateUserEmailNotificationsSettingsCommand = async (input, context) => {
294
+ export const se_ManageTranscriptionEmailNotificationsSubscriptionCommand = async (input, context) => {
295
295
  const b = rb(input, context);
296
296
  const headers = {
297
297
  'content-type': 'application/json',
298
298
  };
299
- b.bp("/v2/users/cloud/{userId}/notifications/email");
300
- b.p('userId', () => input.userId, '{userId}', false);
299
+ b.bp("/v2/users/manage-transcription-email-notifications-subscription");
301
300
  let body;
302
301
  body = JSON.stringify(take(input, {
303
- 'transcription': [],
304
- 'unread': [],
302
+ 'subscribe': [],
303
+ 'unsubscribeToken': [],
305
304
  }));
306
- b.m("PATCH")
305
+ b.m("POST")
307
306
  .h(headers)
308
307
  .b(body);
309
308
  return b.build();
310
309
  };
311
- export const se_QueryColleaguesCommand = async (input, context) => {
310
+ export const se_ManageUnreadEmailNotificationsSubscriptionCommand = async (input, context) => {
312
311
  const b = rb(input, context);
313
312
  const headers = {
314
313
  'content-type': 'application/json',
315
314
  };
316
- b.bp("/v2/users/query-colleagues");
317
- const query = map({
318
- [_c]: [, input[_c]],
319
- });
315
+ b.bp("/v2/users/manage-unread-email-notifications-subscription");
320
316
  let body;
321
317
  body = JSON.stringify(take(input, {
322
- 'query': _ => _json(_),
318
+ 'subscribe': [],
319
+ 'unsubscribeToken': [],
323
320
  }));
324
321
  b.m("POST")
325
322
  .h(headers)
326
- .q(query)
327
323
  .b(body);
328
324
  return b.build();
329
325
  };
330
- export const se_QueryUserCommand = async (input, context) => {
326
+ export const se_PartialUpdateUserEmailNotificationsSettingsCommand = async (input, context) => {
331
327
  const b = rb(input, context);
332
328
  const headers = {
333
329
  'content-type': 'application/json',
334
330
  };
335
- b.bp("/v2/users/query-user");
331
+ b.bp("/v2/users/cloud/{userId}/notifications/email");
332
+ b.p('userId', () => input.userId, '{userId}', false);
336
333
  let body;
337
334
  body = JSON.stringify(take(input, {
338
- 'predicate': _ => _json(_),
339
- 'query': _ => _json(_),
335
+ 'transcription': [],
336
+ 'unread': [],
340
337
  }));
341
- b.m("POST")
338
+ b.m("PATCH")
342
339
  .h(headers)
343
340
  .b(body);
344
341
  return b.build();
345
342
  };
346
- export const se_QueryUsersCommand = async (input, context) => {
343
+ export const se_QueryColleaguesCommand = async (input, context) => {
347
344
  const b = rb(input, context);
348
345
  const headers = {
349
346
  'content-type': 'application/json',
350
347
  };
351
- b.bp("/v2/users/query-users");
348
+ b.bp("/v2/users/query-colleagues");
349
+ const query = map({
350
+ [_c]: [, input[_c]],
351
+ });
352
352
  let body;
353
353
  body = JSON.stringify(take(input, {
354
- 'predicate': _ => _json(_),
355
- 'queries': _ => _json(_),
354
+ 'query': _ => _json(_),
356
355
  }));
357
356
  b.m("POST")
358
357
  .h(headers)
358
+ .q(query)
359
359
  .b(body);
360
360
  return b.build();
361
361
  };
362
- export const se_UnsubscribeFromTranscriptionEmailNotificationsCommand = async (input, context) => {
362
+ export const se_QueryUserCommand = async (input, context) => {
363
363
  const b = rb(input, context);
364
364
  const headers = {
365
365
  'content-type': 'application/json',
366
366
  };
367
- b.bp("/v2/users/unsubscribe-transcription-email-notifications");
367
+ b.bp("/v2/users/query-user");
368
368
  let body;
369
369
  body = JSON.stringify(take(input, {
370
- 'unsubscribeToken': [],
370
+ 'predicate': _ => _json(_),
371
+ 'query': _ => _json(_),
371
372
  }));
372
373
  b.m("POST")
373
374
  .h(headers)
374
375
  .b(body);
375
376
  return b.build();
376
377
  };
377
- export const se_UnsubscribeFromUnreadEmailNotificationsCommand = async (input, context) => {
378
+ export const se_QueryUsersCommand = async (input, context) => {
378
379
  const b = rb(input, context);
379
380
  const headers = {
380
381
  'content-type': 'application/json',
381
382
  };
382
- b.bp("/v2/users/unsubscribe-unread-email-notifications");
383
+ b.bp("/v2/users/query-users");
383
384
  let body;
384
385
  body = JSON.stringify(take(input, {
385
- 'unsubscribeToken': [],
386
+ 'predicate': _ => _json(_),
387
+ 'queries': _ => _json(_),
386
388
  }));
387
389
  b.m("POST")
388
390
  .h(headers)
@@ -767,35 +769,27 @@ export const de_ListBotsCommand = async (output, context) => {
767
769
  Object.assign(contents, doc);
768
770
  return contents;
769
771
  };
770
- export const de_PartialUpdateUserEmailNotificationsSettingsCommand = async (output, context) => {
772
+ export const de_ManageTranscriptionEmailNotificationsSubscriptionCommand = async (output, context) => {
771
773
  if (output.statusCode !== 200 && output.statusCode >= 300) {
772
774
  return de_CommandError(output, context);
773
775
  }
774
776
  const contents = map({
775
777
  $metadata: deserializeMetadata(output),
776
778
  });
777
- const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
778
- const doc = take(data, {
779
- 'notifications': _json,
780
- });
781
- Object.assign(contents, doc);
779
+ await collectBody(output.body, context);
782
780
  return contents;
783
781
  };
784
- export const de_QueryColleaguesCommand = async (output, context) => {
782
+ export const de_ManageUnreadEmailNotificationsSubscriptionCommand = async (output, context) => {
785
783
  if (output.statusCode !== 200 && output.statusCode >= 300) {
786
784
  return de_CommandError(output, context);
787
785
  }
788
786
  const contents = map({
789
787
  $metadata: deserializeMetadata(output),
790
788
  });
791
- const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
792
- const doc = take(data, {
793
- 'colleagues': _json,
794
- });
795
- Object.assign(contents, doc);
789
+ await collectBody(output.body, context);
796
790
  return contents;
797
791
  };
798
- export const de_QueryUserCommand = async (output, context) => {
792
+ export const de_PartialUpdateUserEmailNotificationsSettingsCommand = async (output, context) => {
799
793
  if (output.statusCode !== 200 && output.statusCode >= 300) {
800
794
  return de_CommandError(output, context);
801
795
  }
@@ -804,12 +798,12 @@ export const de_QueryUserCommand = async (output, context) => {
804
798
  });
805
799
  const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
806
800
  const doc = take(data, {
807
- 'user': _json,
801
+ 'notifications': _json,
808
802
  });
809
803
  Object.assign(contents, doc);
810
804
  return contents;
811
805
  };
812
- export const de_QueryUsersCommand = async (output, context) => {
806
+ export const de_QueryColleaguesCommand = async (output, context) => {
813
807
  if (output.statusCode !== 200 && output.statusCode >= 300) {
814
808
  return de_CommandError(output, context);
815
809
  }
@@ -818,29 +812,37 @@ export const de_QueryUsersCommand = async (output, context) => {
818
812
  });
819
813
  const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
820
814
  const doc = take(data, {
821
- 'users': _json,
815
+ 'colleagues': _json,
822
816
  });
823
817
  Object.assign(contents, doc);
824
818
  return contents;
825
819
  };
826
- export const de_UnsubscribeFromTranscriptionEmailNotificationsCommand = async (output, context) => {
820
+ export const de_QueryUserCommand = async (output, context) => {
827
821
  if (output.statusCode !== 200 && output.statusCode >= 300) {
828
822
  return de_CommandError(output, context);
829
823
  }
830
824
  const contents = map({
831
825
  $metadata: deserializeMetadata(output),
832
826
  });
833
- await collectBody(output.body, context);
827
+ const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
828
+ const doc = take(data, {
829
+ 'user': _json,
830
+ });
831
+ Object.assign(contents, doc);
834
832
  return contents;
835
833
  };
836
- export const de_UnsubscribeFromUnreadEmailNotificationsCommand = async (output, context) => {
834
+ export const de_QueryUsersCommand = async (output, context) => {
837
835
  if (output.statusCode !== 200 && output.statusCode >= 300) {
838
836
  return de_CommandError(output, context);
839
837
  }
840
838
  const contents = map({
841
839
  $metadata: deserializeMetadata(output),
842
840
  });
843
- await collectBody(output.body, context);
841
+ const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
842
+ const doc = take(data, {
843
+ 'users': _json,
844
+ });
845
+ Object.assign(contents, doc);
844
846
  return contents;
845
847
  };
846
848
  export const de_UpdateBotCommand = async (output, context) => {
@@ -18,12 +18,12 @@ import { GetUserPbxLinkSuggestionCommandInput, GetUserPbxLinkSuggestionCommandOu
18
18
  import { GetUserPbxLinkSuggestionV1CommandInput, GetUserPbxLinkSuggestionV1CommandOutput } from "./commands/GetUserPbxLinkSuggestionV1Command";
19
19
  import { ListBotApiKeysCommandInput, ListBotApiKeysCommandOutput } from "./commands/ListBotApiKeysCommand";
20
20
  import { ListBotsCommandInput, ListBotsCommandOutput } from "./commands/ListBotsCommand";
21
+ import { ManageTranscriptionEmailNotificationsSubscriptionCommandInput, ManageTranscriptionEmailNotificationsSubscriptionCommandOutput } from "./commands/ManageTranscriptionEmailNotificationsSubscriptionCommand";
22
+ import { ManageUnreadEmailNotificationsSubscriptionCommandInput, ManageUnreadEmailNotificationsSubscriptionCommandOutput } from "./commands/ManageUnreadEmailNotificationsSubscriptionCommand";
21
23
  import { PartialUpdateUserEmailNotificationsSettingsCommandInput, PartialUpdateUserEmailNotificationsSettingsCommandOutput } from "./commands/PartialUpdateUserEmailNotificationsSettingsCommand";
22
24
  import { QueryColleaguesCommandInput, QueryColleaguesCommandOutput } from "./commands/QueryColleaguesCommand";
23
25
  import { QueryUserCommandInput, QueryUserCommandOutput } from "./commands/QueryUserCommand";
24
26
  import { QueryUsersCommandInput, QueryUsersCommandOutput } from "./commands/QueryUsersCommand";
25
- import { UnsubscribeFromTranscriptionEmailNotificationsCommandInput, UnsubscribeFromTranscriptionEmailNotificationsCommandOutput } from "./commands/UnsubscribeFromTranscriptionEmailNotificationsCommand";
26
- import { UnsubscribeFromUnreadEmailNotificationsCommandInput, UnsubscribeFromUnreadEmailNotificationsCommandOutput } from "./commands/UnsubscribeFromUnreadEmailNotificationsCommand";
27
27
  import { UpdateBotCallbackCommandInput, UpdateBotCallbackCommandOutput } from "./commands/UpdateBotCallbackCommand";
28
28
  import { UpdateBotCommandInput, UpdateBotCommandOutput } from "./commands/UpdateBotCommand";
29
29
  import { UpdateUserEmailNotificationsSettingsCommandInput, UpdateUserEmailNotificationsSettingsCommandOutput } from "./commands/UpdateUserEmailNotificationsSettingsCommand";
@@ -150,6 +150,18 @@ export interface Users {
150
150
  listBots(args: ListBotsCommandInput, options?: __HttpHandlerOptions): Promise<ListBotsCommandOutput>;
151
151
  listBots(args: ListBotsCommandInput, cb: (err: any, data?: ListBotsCommandOutput) => void): void;
152
152
  listBots(args: ListBotsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListBotsCommandOutput) => void): void;
153
+ /**
154
+ * @see {@link ManageTranscriptionEmailNotificationsSubscriptionCommand}
155
+ */
156
+ manageTranscriptionEmailNotificationsSubscription(args: ManageTranscriptionEmailNotificationsSubscriptionCommandInput, options?: __HttpHandlerOptions): Promise<ManageTranscriptionEmailNotificationsSubscriptionCommandOutput>;
157
+ manageTranscriptionEmailNotificationsSubscription(args: ManageTranscriptionEmailNotificationsSubscriptionCommandInput, cb: (err: any, data?: ManageTranscriptionEmailNotificationsSubscriptionCommandOutput) => void): void;
158
+ manageTranscriptionEmailNotificationsSubscription(args: ManageTranscriptionEmailNotificationsSubscriptionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ManageTranscriptionEmailNotificationsSubscriptionCommandOutput) => void): void;
159
+ /**
160
+ * @see {@link ManageUnreadEmailNotificationsSubscriptionCommand}
161
+ */
162
+ manageUnreadEmailNotificationsSubscription(args: ManageUnreadEmailNotificationsSubscriptionCommandInput, options?: __HttpHandlerOptions): Promise<ManageUnreadEmailNotificationsSubscriptionCommandOutput>;
163
+ manageUnreadEmailNotificationsSubscription(args: ManageUnreadEmailNotificationsSubscriptionCommandInput, cb: (err: any, data?: ManageUnreadEmailNotificationsSubscriptionCommandOutput) => void): void;
164
+ manageUnreadEmailNotificationsSubscription(args: ManageUnreadEmailNotificationsSubscriptionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ManageUnreadEmailNotificationsSubscriptionCommandOutput) => void): void;
153
165
  /**
154
166
  * @see {@link PartialUpdateUserEmailNotificationsSettingsCommand}
155
167
  */
@@ -175,18 +187,6 @@ export interface Users {
175
187
  queryUsers(args: QueryUsersCommandInput, options?: __HttpHandlerOptions): Promise<QueryUsersCommandOutput>;
176
188
  queryUsers(args: QueryUsersCommandInput, cb: (err: any, data?: QueryUsersCommandOutput) => void): void;
177
189
  queryUsers(args: QueryUsersCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: QueryUsersCommandOutput) => void): void;
178
- /**
179
- * @see {@link UnsubscribeFromTranscriptionEmailNotificationsCommand}
180
- */
181
- unsubscribeFromTranscriptionEmailNotifications(args: UnsubscribeFromTranscriptionEmailNotificationsCommandInput, options?: __HttpHandlerOptions): Promise<UnsubscribeFromTranscriptionEmailNotificationsCommandOutput>;
182
- unsubscribeFromTranscriptionEmailNotifications(args: UnsubscribeFromTranscriptionEmailNotificationsCommandInput, cb: (err: any, data?: UnsubscribeFromTranscriptionEmailNotificationsCommandOutput) => void): void;
183
- unsubscribeFromTranscriptionEmailNotifications(args: UnsubscribeFromTranscriptionEmailNotificationsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UnsubscribeFromTranscriptionEmailNotificationsCommandOutput) => void): void;
184
- /**
185
- * @see {@link UnsubscribeFromUnreadEmailNotificationsCommand}
186
- */
187
- unsubscribeFromUnreadEmailNotifications(args: UnsubscribeFromUnreadEmailNotificationsCommandInput, options?: __HttpHandlerOptions): Promise<UnsubscribeFromUnreadEmailNotificationsCommandOutput>;
188
- unsubscribeFromUnreadEmailNotifications(args: UnsubscribeFromUnreadEmailNotificationsCommandInput, cb: (err: any, data?: UnsubscribeFromUnreadEmailNotificationsCommandOutput) => void): void;
189
- unsubscribeFromUnreadEmailNotifications(args: UnsubscribeFromUnreadEmailNotificationsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UnsubscribeFromUnreadEmailNotificationsCommandOutput) => void): void;
190
190
  /**
191
191
  * @see {@link UpdateBotCommand}
192
192
  */
@@ -17,12 +17,12 @@ import { GetUserPbxLinkSuggestionCommandInput, GetUserPbxLinkSuggestionCommandOu
17
17
  import { GetUserPbxLinkSuggestionV1CommandInput, GetUserPbxLinkSuggestionV1CommandOutput } from "./commands/GetUserPbxLinkSuggestionV1Command";
18
18
  import { ListBotApiKeysCommandInput, ListBotApiKeysCommandOutput } from "./commands/ListBotApiKeysCommand";
19
19
  import { ListBotsCommandInput, ListBotsCommandOutput } from "./commands/ListBotsCommand";
20
+ import { ManageTranscriptionEmailNotificationsSubscriptionCommandInput, ManageTranscriptionEmailNotificationsSubscriptionCommandOutput } from "./commands/ManageTranscriptionEmailNotificationsSubscriptionCommand";
21
+ import { ManageUnreadEmailNotificationsSubscriptionCommandInput, ManageUnreadEmailNotificationsSubscriptionCommandOutput } from "./commands/ManageUnreadEmailNotificationsSubscriptionCommand";
20
22
  import { PartialUpdateUserEmailNotificationsSettingsCommandInput, PartialUpdateUserEmailNotificationsSettingsCommandOutput } from "./commands/PartialUpdateUserEmailNotificationsSettingsCommand";
21
23
  import { QueryColleaguesCommandInput, QueryColleaguesCommandOutput } from "./commands/QueryColleaguesCommand";
22
24
  import { QueryUserCommandInput, QueryUserCommandOutput } from "./commands/QueryUserCommand";
23
25
  import { QueryUsersCommandInput, QueryUsersCommandOutput } from "./commands/QueryUsersCommand";
24
- import { UnsubscribeFromTranscriptionEmailNotificationsCommandInput, UnsubscribeFromTranscriptionEmailNotificationsCommandOutput } from "./commands/UnsubscribeFromTranscriptionEmailNotificationsCommand";
25
- import { UnsubscribeFromUnreadEmailNotificationsCommandInput, UnsubscribeFromUnreadEmailNotificationsCommandOutput } from "./commands/UnsubscribeFromUnreadEmailNotificationsCommand";
26
26
  import { UpdateBotCallbackCommandInput, UpdateBotCallbackCommandOutput } from "./commands/UpdateBotCallbackCommand";
27
27
  import { UpdateBotCommandInput, UpdateBotCommandOutput } from "./commands/UpdateBotCommand";
28
28
  import { UpdateUserEmailNotificationsSettingsCommandInput, UpdateUserEmailNotificationsSettingsCommandOutput } from "./commands/UpdateUserEmailNotificationsSettingsCommand";
@@ -41,11 +41,11 @@ export { __Client };
41
41
  /**
42
42
  * @public
43
43
  */
44
- export type ServiceInputTypes = BatchGetUsersCommandInput | BatchGetUsersEmailNotificationsSettingsCommandInput | BatchGetUsersPbxLinkDataCommandInput | BatchGetUsersPbxLinkDataV1CommandInput | ChangeUserEmailCommandInput | CreateBotApiKeyCommandInput | CreateBotCommandInput | CreateSystemBotCommandInput | DeleteBotApiKeyCommandInput | DeleteBotCommandInput | GetBotCallbackCommandInput | GetBotCommandInput | GetUserCommandInput | GetUserEmailNotificationsSettingsCommandInput | GetUserPbxLinkDataCommandInput | GetUserPbxLinkSuggestionCommandInput | GetUserPbxLinkSuggestionV1CommandInput | ListBotApiKeysCommandInput | ListBotsCommandInput | PartialUpdateUserEmailNotificationsSettingsCommandInput | QueryColleaguesCommandInput | QueryUserCommandInput | QueryUsersCommandInput | UnsubscribeFromTranscriptionEmailNotificationsCommandInput | UnsubscribeFromUnreadEmailNotificationsCommandInput | UpdateBotCallbackCommandInput | UpdateBotCommandInput | UpdateUserEmailNotificationsSettingsCommandInput | UploadPictureCommandInput | UploadPictureV1CommandInput | VerifyBotSecretKeyCommandInput | VerifyBotSecretKeyV1CommandInput;
44
+ export type ServiceInputTypes = BatchGetUsersCommandInput | BatchGetUsersEmailNotificationsSettingsCommandInput | BatchGetUsersPbxLinkDataCommandInput | BatchGetUsersPbxLinkDataV1CommandInput | ChangeUserEmailCommandInput | CreateBotApiKeyCommandInput | CreateBotCommandInput | CreateSystemBotCommandInput | DeleteBotApiKeyCommandInput | DeleteBotCommandInput | GetBotCallbackCommandInput | GetBotCommandInput | GetUserCommandInput | GetUserEmailNotificationsSettingsCommandInput | GetUserPbxLinkDataCommandInput | GetUserPbxLinkSuggestionCommandInput | GetUserPbxLinkSuggestionV1CommandInput | ListBotApiKeysCommandInput | ListBotsCommandInput | ManageTranscriptionEmailNotificationsSubscriptionCommandInput | ManageUnreadEmailNotificationsSubscriptionCommandInput | PartialUpdateUserEmailNotificationsSettingsCommandInput | QueryColleaguesCommandInput | QueryUserCommandInput | QueryUsersCommandInput | UpdateBotCallbackCommandInput | UpdateBotCommandInput | UpdateUserEmailNotificationsSettingsCommandInput | UploadPictureCommandInput | UploadPictureV1CommandInput | VerifyBotSecretKeyCommandInput | VerifyBotSecretKeyV1CommandInput;
45
45
  /**
46
46
  * @public
47
47
  */
48
- export type ServiceOutputTypes = BatchGetUsersCommandOutput | BatchGetUsersEmailNotificationsSettingsCommandOutput | BatchGetUsersPbxLinkDataCommandOutput | BatchGetUsersPbxLinkDataV1CommandOutput | ChangeUserEmailCommandOutput | CreateBotApiKeyCommandOutput | CreateBotCommandOutput | CreateSystemBotCommandOutput | DeleteBotApiKeyCommandOutput | DeleteBotCommandOutput | GetBotCallbackCommandOutput | GetBotCommandOutput | GetUserCommandOutput | GetUserEmailNotificationsSettingsCommandOutput | GetUserPbxLinkDataCommandOutput | GetUserPbxLinkSuggestionCommandOutput | GetUserPbxLinkSuggestionV1CommandOutput | ListBotApiKeysCommandOutput | ListBotsCommandOutput | PartialUpdateUserEmailNotificationsSettingsCommandOutput | QueryColleaguesCommandOutput | QueryUserCommandOutput | QueryUsersCommandOutput | UnsubscribeFromTranscriptionEmailNotificationsCommandOutput | UnsubscribeFromUnreadEmailNotificationsCommandOutput | UpdateBotCallbackCommandOutput | UpdateBotCommandOutput | UpdateUserEmailNotificationsSettingsCommandOutput | UploadPictureCommandOutput | UploadPictureV1CommandOutput | VerifyBotSecretKeyCommandOutput | VerifyBotSecretKeyV1CommandOutput;
48
+ export type ServiceOutputTypes = BatchGetUsersCommandOutput | BatchGetUsersEmailNotificationsSettingsCommandOutput | BatchGetUsersPbxLinkDataCommandOutput | BatchGetUsersPbxLinkDataV1CommandOutput | ChangeUserEmailCommandOutput | CreateBotApiKeyCommandOutput | CreateBotCommandOutput | CreateSystemBotCommandOutput | DeleteBotApiKeyCommandOutput | DeleteBotCommandOutput | GetBotCallbackCommandOutput | GetBotCommandOutput | GetUserCommandOutput | GetUserEmailNotificationsSettingsCommandOutput | GetUserPbxLinkDataCommandOutput | GetUserPbxLinkSuggestionCommandOutput | GetUserPbxLinkSuggestionV1CommandOutput | ListBotApiKeysCommandOutput | ListBotsCommandOutput | ManageTranscriptionEmailNotificationsSubscriptionCommandOutput | ManageUnreadEmailNotificationsSubscriptionCommandOutput | PartialUpdateUserEmailNotificationsSettingsCommandOutput | QueryColleaguesCommandOutput | QueryUserCommandOutput | QueryUsersCommandOutput | UpdateBotCallbackCommandOutput | UpdateBotCommandOutput | UpdateUserEmailNotificationsSettingsCommandOutput | UploadPictureCommandOutput | UploadPictureV1CommandOutput | VerifyBotSecretKeyCommandOutput | VerifyBotSecretKeyV1CommandOutput;
49
49
  /**
50
50
  * @public
51
51
  */
@@ -0,0 +1,63 @@
1
+ import { ServiceInputTypes, ServiceOutputTypes, UsersClientResolvedConfig } from "../UsersClient";
2
+ import { ManageTranscriptionEmailNotificationsSubscriptionInput, ManageTranscriptionEmailNotificationsSubscriptionOutput } from "../models/models_0";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link ManageTranscriptionEmailNotificationsSubscriptionCommand}.
14
+ */
15
+ export interface ManageTranscriptionEmailNotificationsSubscriptionCommandInput extends ManageTranscriptionEmailNotificationsSubscriptionInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link ManageTranscriptionEmailNotificationsSubscriptionCommand}.
21
+ */
22
+ export interface ManageTranscriptionEmailNotificationsSubscriptionCommandOutput extends ManageTranscriptionEmailNotificationsSubscriptionOutput, __MetadataBearer {
23
+ }
24
+ declare const ManageTranscriptionEmailNotificationsSubscriptionCommand_base: {
25
+ new (input: ManageTranscriptionEmailNotificationsSubscriptionCommandInput): import("@smithy/smithy-client").CommandImpl<ManageTranscriptionEmailNotificationsSubscriptionCommandInput, ManageTranscriptionEmailNotificationsSubscriptionCommandOutput, UsersClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: ManageTranscriptionEmailNotificationsSubscriptionCommandInput): import("@smithy/smithy-client").CommandImpl<ManageTranscriptionEmailNotificationsSubscriptionCommandInput, ManageTranscriptionEmailNotificationsSubscriptionCommandOutput, UsersClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * Using unsubscribeToken from email you can manage transcription email notifications subscription
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { UsersClient, ManageTranscriptionEmailNotificationsSubscriptionCommand } from "@wildix/xbees-users-client"; // ES Modules import
35
+ * // const { UsersClient, ManageTranscriptionEmailNotificationsSubscriptionCommand } = require("@wildix/xbees-users-client"); // CommonJS import
36
+ * const client = new UsersClient(config);
37
+ * const input = { // ManageTranscriptionEmailNotificationsSubscriptionInput
38
+ * unsubscribeToken: "STRING_VALUE", // required
39
+ * subscribe: true || false, // required
40
+ * };
41
+ * const command = new ManageTranscriptionEmailNotificationsSubscriptionCommand(input);
42
+ * const response = await client.send(command);
43
+ * // {};
44
+ *
45
+ * ```
46
+ *
47
+ * @param ManageTranscriptionEmailNotificationsSubscriptionCommandInput - {@link ManageTranscriptionEmailNotificationsSubscriptionCommandInput}
48
+ * @returns {@link ManageTranscriptionEmailNotificationsSubscriptionCommandOutput}
49
+ * @see {@link ManageTranscriptionEmailNotificationsSubscriptionCommandInput} for command's `input` shape.
50
+ * @see {@link ManageTranscriptionEmailNotificationsSubscriptionCommandOutput} for command's `response` shape.
51
+ * @see {@link UsersClientResolvedConfig | config} for UsersClient's `config` shape.
52
+ *
53
+ * @throws {@link ForbiddenException} (client fault)
54
+ *
55
+ * @throws {@link ValidationException} (client fault)
56
+ *
57
+ * @throws {@link UsersServiceException}
58
+ * <p>Base exception class for all service exceptions from Users service.</p>
59
+ *
60
+ * @public
61
+ */
62
+ export declare class ManageTranscriptionEmailNotificationsSubscriptionCommand extends ManageTranscriptionEmailNotificationsSubscriptionCommand_base {
63
+ }
@@ -0,0 +1,63 @@
1
+ import { ServiceInputTypes, ServiceOutputTypes, UsersClientResolvedConfig } from "../UsersClient";
2
+ import { ManageUnreadEmailNotificationsSubscriptionInput, ManageUnreadEmailNotificationsSubscriptionOutput } from "../models/models_0";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link ManageUnreadEmailNotificationsSubscriptionCommand}.
14
+ */
15
+ export interface ManageUnreadEmailNotificationsSubscriptionCommandInput extends ManageUnreadEmailNotificationsSubscriptionInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link ManageUnreadEmailNotificationsSubscriptionCommand}.
21
+ */
22
+ export interface ManageUnreadEmailNotificationsSubscriptionCommandOutput extends ManageUnreadEmailNotificationsSubscriptionOutput, __MetadataBearer {
23
+ }
24
+ declare const ManageUnreadEmailNotificationsSubscriptionCommand_base: {
25
+ new (input: ManageUnreadEmailNotificationsSubscriptionCommandInput): import("@smithy/smithy-client").CommandImpl<ManageUnreadEmailNotificationsSubscriptionCommandInput, ManageUnreadEmailNotificationsSubscriptionCommandOutput, UsersClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: ManageUnreadEmailNotificationsSubscriptionCommandInput): import("@smithy/smithy-client").CommandImpl<ManageUnreadEmailNotificationsSubscriptionCommandInput, ManageUnreadEmailNotificationsSubscriptionCommandOutput, UsersClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * Using unsubscribeToken from email you can manage unread messages email notifications subscription
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { UsersClient, ManageUnreadEmailNotificationsSubscriptionCommand } from "@wildix/xbees-users-client"; // ES Modules import
35
+ * // const { UsersClient, ManageUnreadEmailNotificationsSubscriptionCommand } = require("@wildix/xbees-users-client"); // CommonJS import
36
+ * const client = new UsersClient(config);
37
+ * const input = { // ManageUnreadEmailNotificationsSubscriptionInput
38
+ * unsubscribeToken: "STRING_VALUE", // required
39
+ * subscribe: true || false, // required
40
+ * };
41
+ * const command = new ManageUnreadEmailNotificationsSubscriptionCommand(input);
42
+ * const response = await client.send(command);
43
+ * // {};
44
+ *
45
+ * ```
46
+ *
47
+ * @param ManageUnreadEmailNotificationsSubscriptionCommandInput - {@link ManageUnreadEmailNotificationsSubscriptionCommandInput}
48
+ * @returns {@link ManageUnreadEmailNotificationsSubscriptionCommandOutput}
49
+ * @see {@link ManageUnreadEmailNotificationsSubscriptionCommandInput} for command's `input` shape.
50
+ * @see {@link ManageUnreadEmailNotificationsSubscriptionCommandOutput} for command's `response` shape.
51
+ * @see {@link UsersClientResolvedConfig | config} for UsersClient's `config` shape.
52
+ *
53
+ * @throws {@link ForbiddenException} (client fault)
54
+ *
55
+ * @throws {@link ValidationException} (client fault)
56
+ *
57
+ * @throws {@link UsersServiceException}
58
+ * <p>Base exception class for all service exceptions from Users service.</p>
59
+ *
60
+ * @public
61
+ */
62
+ export declare class ManageUnreadEmailNotificationsSubscriptionCommand extends ManageUnreadEmailNotificationsSubscriptionCommand_base {
63
+ }
@@ -17,12 +17,12 @@ export * from "./GetUserPbxLinkSuggestionCommand";
17
17
  export * from "./GetUserPbxLinkSuggestionV1Command";
18
18
  export * from "./ListBotApiKeysCommand";
19
19
  export * from "./ListBotsCommand";
20
+ export * from "./ManageTranscriptionEmailNotificationsSubscriptionCommand";
21
+ export * from "./ManageUnreadEmailNotificationsSubscriptionCommand";
20
22
  export * from "./PartialUpdateUserEmailNotificationsSettingsCommand";
21
23
  export * from "./QueryColleaguesCommand";
22
24
  export * from "./QueryUserCommand";
23
25
  export * from "./QueryUsersCommand";
24
- export * from "./UnsubscribeFromTranscriptionEmailNotificationsCommand";
25
- export * from "./UnsubscribeFromUnreadEmailNotificationsCommand";
26
26
  export * from "./UpdateBotCommand";
27
27
  export * from "./UpdateBotCallbackCommand";
28
28
  export * from "./UpdateUserEmailNotificationsSettingsCommand";
@@ -936,6 +936,38 @@ export interface ListBotsInput {
936
936
  export interface ListBotsOutput {
937
937
  bots: (Bot)[];
938
938
  }
939
+ /**
940
+ * @public
941
+ */
942
+ export interface ManageTranscriptionEmailNotificationsSubscriptionInput {
943
+ unsubscribeToken: string;
944
+ /**
945
+ * A flag that indicates whether the system should send email notifications about AI transcription.
946
+ * @public
947
+ */
948
+ subscribe: boolean;
949
+ }
950
+ /**
951
+ * @public
952
+ */
953
+ export interface ManageTranscriptionEmailNotificationsSubscriptionOutput {
954
+ }
955
+ /**
956
+ * @public
957
+ */
958
+ export interface ManageUnreadEmailNotificationsSubscriptionInput {
959
+ unsubscribeToken: string;
960
+ /**
961
+ * A flag that indicates whether the system should send email notifications about unread messages.
962
+ * @public
963
+ */
964
+ subscribe: boolean;
965
+ }
966
+ /**
967
+ * @public
968
+ */
969
+ export interface ManageUnreadEmailNotificationsSubscriptionOutput {
970
+ }
939
971
  /**
940
972
  * @public
941
973
  */
@@ -1127,28 +1159,6 @@ export interface QueryUsersOutput {
1127
1159
  */
1128
1160
  users: (User)[];
1129
1161
  }
1130
- /**
1131
- * @public
1132
- */
1133
- export interface UnsubscribeFromTranscriptionEmailNotificationsInput {
1134
- unsubscribeToken: string;
1135
- }
1136
- /**
1137
- * @public
1138
- */
1139
- export interface UnsubscribeFromTranscriptionEmailNotificationsOutput {
1140
- }
1141
- /**
1142
- * @public
1143
- */
1144
- export interface UnsubscribeFromUnreadEmailNotificationsInput {
1145
- unsubscribeToken: string;
1146
- }
1147
- /**
1148
- * @public
1149
- */
1150
- export interface UnsubscribeFromUnreadEmailNotificationsOutput {
1151
- }
1152
1162
  /**
1153
1163
  * @public
1154
1164
  */
@@ -17,12 +17,12 @@ import { GetUserPbxLinkSuggestionCommandInput, GetUserPbxLinkSuggestionCommandOu
17
17
  import { GetUserPbxLinkSuggestionV1CommandInput, GetUserPbxLinkSuggestionV1CommandOutput } from "../commands/GetUserPbxLinkSuggestionV1Command";
18
18
  import { ListBotApiKeysCommandInput, ListBotApiKeysCommandOutput } from "../commands/ListBotApiKeysCommand";
19
19
  import { ListBotsCommandInput, ListBotsCommandOutput } from "../commands/ListBotsCommand";
20
+ import { ManageTranscriptionEmailNotificationsSubscriptionCommandInput, ManageTranscriptionEmailNotificationsSubscriptionCommandOutput } from "../commands/ManageTranscriptionEmailNotificationsSubscriptionCommand";
21
+ import { ManageUnreadEmailNotificationsSubscriptionCommandInput, ManageUnreadEmailNotificationsSubscriptionCommandOutput } from "../commands/ManageUnreadEmailNotificationsSubscriptionCommand";
20
22
  import { PartialUpdateUserEmailNotificationsSettingsCommandInput, PartialUpdateUserEmailNotificationsSettingsCommandOutput } from "../commands/PartialUpdateUserEmailNotificationsSettingsCommand";
21
23
  import { QueryColleaguesCommandInput, QueryColleaguesCommandOutput } from "../commands/QueryColleaguesCommand";
22
24
  import { QueryUserCommandInput, QueryUserCommandOutput } from "../commands/QueryUserCommand";
23
25
  import { QueryUsersCommandInput, QueryUsersCommandOutput } from "../commands/QueryUsersCommand";
24
- import { UnsubscribeFromTranscriptionEmailNotificationsCommandInput, UnsubscribeFromTranscriptionEmailNotificationsCommandOutput } from "../commands/UnsubscribeFromTranscriptionEmailNotificationsCommand";
25
- import { UnsubscribeFromUnreadEmailNotificationsCommandInput, UnsubscribeFromUnreadEmailNotificationsCommandOutput } from "../commands/UnsubscribeFromUnreadEmailNotificationsCommand";
26
26
  import { UpdateBotCallbackCommandInput, UpdateBotCallbackCommandOutput } from "../commands/UpdateBotCallbackCommand";
27
27
  import { UpdateBotCommandInput, UpdateBotCommandOutput } from "../commands/UpdateBotCommand";
28
28
  import { UpdateUserEmailNotificationsSettingsCommandInput, UpdateUserEmailNotificationsSettingsCommandOutput } from "../commands/UpdateUserEmailNotificationsSettingsCommand";
@@ -108,6 +108,14 @@ export declare const se_ListBotApiKeysCommand: (input: ListBotApiKeysCommandInpu
108
108
  * serializeAws_restJson1ListBotsCommand
109
109
  */
110
110
  export declare const se_ListBotsCommand: (input: ListBotsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
111
+ /**
112
+ * serializeAws_restJson1ManageTranscriptionEmailNotificationsSubscriptionCommand
113
+ */
114
+ export declare const se_ManageTranscriptionEmailNotificationsSubscriptionCommand: (input: ManageTranscriptionEmailNotificationsSubscriptionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
115
+ /**
116
+ * serializeAws_restJson1ManageUnreadEmailNotificationsSubscriptionCommand
117
+ */
118
+ export declare const se_ManageUnreadEmailNotificationsSubscriptionCommand: (input: ManageUnreadEmailNotificationsSubscriptionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
111
119
  /**
112
120
  * serializeAws_restJson1PartialUpdateUserEmailNotificationsSettingsCommand
113
121
  */
@@ -124,14 +132,6 @@ export declare const se_QueryUserCommand: (input: QueryUserCommandInput, context
124
132
  * serializeAws_restJson1QueryUsersCommand
125
133
  */
126
134
  export declare const se_QueryUsersCommand: (input: QueryUsersCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
127
- /**
128
- * serializeAws_restJson1UnsubscribeFromTranscriptionEmailNotificationsCommand
129
- */
130
- export declare const se_UnsubscribeFromTranscriptionEmailNotificationsCommand: (input: UnsubscribeFromTranscriptionEmailNotificationsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
131
- /**
132
- * serializeAws_restJson1UnsubscribeFromUnreadEmailNotificationsCommand
133
- */
134
- export declare const se_UnsubscribeFromUnreadEmailNotificationsCommand: (input: UnsubscribeFromUnreadEmailNotificationsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
135
135
  /**
136
136
  * serializeAws_restJson1UpdateBotCommand
137
137
  */
@@ -236,6 +236,14 @@ export declare const de_ListBotApiKeysCommand: (output: __HttpResponse, context:
236
236
  * deserializeAws_restJson1ListBotsCommand
237
237
  */
238
238
  export declare const de_ListBotsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListBotsCommandOutput>;
239
+ /**
240
+ * deserializeAws_restJson1ManageTranscriptionEmailNotificationsSubscriptionCommand
241
+ */
242
+ export declare const de_ManageTranscriptionEmailNotificationsSubscriptionCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ManageTranscriptionEmailNotificationsSubscriptionCommandOutput>;
243
+ /**
244
+ * deserializeAws_restJson1ManageUnreadEmailNotificationsSubscriptionCommand
245
+ */
246
+ export declare const de_ManageUnreadEmailNotificationsSubscriptionCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ManageUnreadEmailNotificationsSubscriptionCommandOutput>;
239
247
  /**
240
248
  * deserializeAws_restJson1PartialUpdateUserEmailNotificationsSettingsCommand
241
249
  */
@@ -252,14 +260,6 @@ export declare const de_QueryUserCommand: (output: __HttpResponse, context: __Se
252
260
  * deserializeAws_restJson1QueryUsersCommand
253
261
  */
254
262
  export declare const de_QueryUsersCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<QueryUsersCommandOutput>;
255
- /**
256
- * deserializeAws_restJson1UnsubscribeFromTranscriptionEmailNotificationsCommand
257
- */
258
- export declare const de_UnsubscribeFromTranscriptionEmailNotificationsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UnsubscribeFromTranscriptionEmailNotificationsCommandOutput>;
259
- /**
260
- * deserializeAws_restJson1UnsubscribeFromUnreadEmailNotificationsCommand
261
- */
262
- export declare const de_UnsubscribeFromUnreadEmailNotificationsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UnsubscribeFromUnreadEmailNotificationsCommandOutput>;
263
263
  /**
264
264
  * deserializeAws_restJson1UpdateBotCommand
265
265
  */
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": "1.0.29",
4
+ "version": "1.0.30",
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",
@@ -17,7 +17,6 @@
17
17
  "module": "./dist-es/index.js",
18
18
  "sideEffects": false,
19
19
  "dependencies": {
20
- "tslib": "^2.6.2",
21
20
  "@aws-crypto/sha256-browser": "3.0.0",
22
21
  "@aws-crypto/sha256-js": "3.0.0",
23
22
  "@aws-sdk/middleware-user-agent": "3.587.0",
@@ -46,15 +45,16 @@
46
45
  "@smithy/util-defaults-mode-node": "^3.0.3",
47
46
  "@smithy/util-retry": "^3.0.0",
48
47
  "@smithy/util-utf8": "^3.0.0",
49
- "@wildix/smithy-utils": "^1.0.2"
48
+ "@wildix/smithy-utils": "^1.0.2",
49
+ "tslib": "^2.6.2"
50
50
  },
51
51
  "devDependencies": {
52
52
  "@tsconfig/node16": "16.1.3",
53
+ "@types/node": "^16.18.96",
53
54
  "concurrently": "7.0.0",
54
55
  "downlevel-dts": "0.10.1",
55
56
  "rimraf": "^3.0.0",
56
- "typescript": "~4.9.5",
57
- "@types/node": "^16.18.96"
57
+ "typescript": "~4.9.5"
58
58
  },
59
59
  "engines": {
60
60
  "node": ">=16.0.0"
@@ -76,4 +76,4 @@
76
76
  "react-native": {
77
77
  "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.native"
78
78
  }
79
- }
79
+ }
@@ -1,21 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UnsubscribeFromTranscriptionEmailNotificationsCommand = exports.$Command = void 0;
4
- const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
5
- const middleware_serde_1 = require("@smithy/middleware-serde");
6
- const smithy_client_1 = require("@smithy/smithy-client");
7
- Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- class UnsubscribeFromTranscriptionEmailNotificationsCommand extends smithy_client_1.Command.classBuilder()
9
- .m(function (Command, cs, config, o) {
10
- return [
11
- (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
12
- ];
13
- })
14
- .s("Users", "UnsubscribeFromTranscriptionEmailNotifications", {})
15
- .n("UsersClient", "UnsubscribeFromTranscriptionEmailNotificationsCommand")
16
- .f(void 0, void 0)
17
- .ser(Aws_restJson1_1.se_UnsubscribeFromTranscriptionEmailNotificationsCommand)
18
- .de(Aws_restJson1_1.de_UnsubscribeFromTranscriptionEmailNotificationsCommand)
19
- .build() {
20
- }
21
- exports.UnsubscribeFromTranscriptionEmailNotificationsCommand = UnsubscribeFromTranscriptionEmailNotificationsCommand;
@@ -1,21 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UnsubscribeFromUnreadEmailNotificationsCommand = exports.$Command = void 0;
4
- const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
5
- const middleware_serde_1 = require("@smithy/middleware-serde");
6
- const smithy_client_1 = require("@smithy/smithy-client");
7
- Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
- class UnsubscribeFromUnreadEmailNotificationsCommand extends smithy_client_1.Command.classBuilder()
9
- .m(function (Command, cs, config, o) {
10
- return [
11
- (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
12
- ];
13
- })
14
- .s("Users", "UnsubscribeFromUnreadEmailNotifications", {})
15
- .n("UsersClient", "UnsubscribeFromUnreadEmailNotificationsCommand")
16
- .f(void 0, void 0)
17
- .ser(Aws_restJson1_1.se_UnsubscribeFromUnreadEmailNotificationsCommand)
18
- .de(Aws_restJson1_1.de_UnsubscribeFromUnreadEmailNotificationsCommand)
19
- .build() {
20
- }
21
- exports.UnsubscribeFromUnreadEmailNotificationsCommand = UnsubscribeFromUnreadEmailNotificationsCommand;
@@ -1,17 +0,0 @@
1
- import { de_UnsubscribeFromTranscriptionEmailNotificationsCommand, se_UnsubscribeFromTranscriptionEmailNotificationsCommand, } from "../protocols/Aws_restJson1";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
- import { Command as $Command } from "@smithy/smithy-client";
4
- export { $Command };
5
- export class UnsubscribeFromTranscriptionEmailNotificationsCommand extends $Command.classBuilder()
6
- .m(function (Command, cs, config, o) {
7
- return [
8
- getSerdePlugin(config, this.serialize, this.deserialize),
9
- ];
10
- })
11
- .s("Users", "UnsubscribeFromTranscriptionEmailNotifications", {})
12
- .n("UsersClient", "UnsubscribeFromTranscriptionEmailNotificationsCommand")
13
- .f(void 0, void 0)
14
- .ser(se_UnsubscribeFromTranscriptionEmailNotificationsCommand)
15
- .de(de_UnsubscribeFromTranscriptionEmailNotificationsCommand)
16
- .build() {
17
- }
@@ -1,17 +0,0 @@
1
- import { de_UnsubscribeFromUnreadEmailNotificationsCommand, se_UnsubscribeFromUnreadEmailNotificationsCommand, } from "../protocols/Aws_restJson1";
2
- import { getSerdePlugin } from "@smithy/middleware-serde";
3
- import { Command as $Command } from "@smithy/smithy-client";
4
- export { $Command };
5
- export class UnsubscribeFromUnreadEmailNotificationsCommand extends $Command.classBuilder()
6
- .m(function (Command, cs, config, o) {
7
- return [
8
- getSerdePlugin(config, this.serialize, this.deserialize),
9
- ];
10
- })
11
- .s("Users", "UnsubscribeFromUnreadEmailNotifications", {})
12
- .n("UsersClient", "UnsubscribeFromUnreadEmailNotificationsCommand")
13
- .f(void 0, void 0)
14
- .ser(se_UnsubscribeFromUnreadEmailNotificationsCommand)
15
- .de(de_UnsubscribeFromUnreadEmailNotificationsCommand)
16
- .build() {
17
- }
@@ -1,62 +0,0 @@
1
- import { ServiceInputTypes, ServiceOutputTypes, UsersClientResolvedConfig } from "../UsersClient";
2
- import { UnsubscribeFromTranscriptionEmailNotificationsInput, UnsubscribeFromTranscriptionEmailNotificationsOutput } from "../models/models_0";
3
- import { Command as $Command } from "@smithy/smithy-client";
4
- import { MetadataBearer as __MetadataBearer } from "@smithy/types";
5
- /**
6
- * @public
7
- */
8
- export type { __MetadataBearer };
9
- export { $Command };
10
- /**
11
- * @public
12
- *
13
- * The input for {@link UnsubscribeFromTranscriptionEmailNotificationsCommand}.
14
- */
15
- export interface UnsubscribeFromTranscriptionEmailNotificationsCommandInput extends UnsubscribeFromTranscriptionEmailNotificationsInput {
16
- }
17
- /**
18
- * @public
19
- *
20
- * The output of {@link UnsubscribeFromTranscriptionEmailNotificationsCommand}.
21
- */
22
- export interface UnsubscribeFromTranscriptionEmailNotificationsCommandOutput extends UnsubscribeFromTranscriptionEmailNotificationsOutput, __MetadataBearer {
23
- }
24
- declare const UnsubscribeFromTranscriptionEmailNotificationsCommand_base: {
25
- new (input: UnsubscribeFromTranscriptionEmailNotificationsCommandInput): import("@smithy/smithy-client").CommandImpl<UnsubscribeFromTranscriptionEmailNotificationsCommandInput, UnsubscribeFromTranscriptionEmailNotificationsCommandOutput, UsersClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (__0_0: UnsubscribeFromTranscriptionEmailNotificationsCommandInput): import("@smithy/smithy-client").CommandImpl<UnsubscribeFromTranscriptionEmailNotificationsCommandInput, UnsubscribeFromTranscriptionEmailNotificationsCommandOutput, UsersClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
- };
29
- /**
30
- * Unsubscribe from email notifications about AI transcription
31
- * @example
32
- * Use a bare-bones client and the command you need to make an API call.
33
- * ```javascript
34
- * import { UsersClient, UnsubscribeFromTranscriptionEmailNotificationsCommand } from "@wildix/xbees-users-client"; // ES Modules import
35
- * // const { UsersClient, UnsubscribeFromTranscriptionEmailNotificationsCommand } = require("@wildix/xbees-users-client"); // CommonJS import
36
- * const client = new UsersClient(config);
37
- * const input = { // UnsubscribeFromTranscriptionEmailNotificationsInput
38
- * unsubscribeToken: "STRING_VALUE", // required
39
- * };
40
- * const command = new UnsubscribeFromTranscriptionEmailNotificationsCommand(input);
41
- * const response = await client.send(command);
42
- * // {};
43
- *
44
- * ```
45
- *
46
- * @param UnsubscribeFromTranscriptionEmailNotificationsCommandInput - {@link UnsubscribeFromTranscriptionEmailNotificationsCommandInput}
47
- * @returns {@link UnsubscribeFromTranscriptionEmailNotificationsCommandOutput}
48
- * @see {@link UnsubscribeFromTranscriptionEmailNotificationsCommandInput} for command's `input` shape.
49
- * @see {@link UnsubscribeFromTranscriptionEmailNotificationsCommandOutput} for command's `response` shape.
50
- * @see {@link UsersClientResolvedConfig | config} for UsersClient's `config` shape.
51
- *
52
- * @throws {@link ForbiddenException} (client fault)
53
- *
54
- * @throws {@link ValidationException} (client fault)
55
- *
56
- * @throws {@link UsersServiceException}
57
- * <p>Base exception class for all service exceptions from Users service.</p>
58
- *
59
- * @public
60
- */
61
- export declare class UnsubscribeFromTranscriptionEmailNotificationsCommand extends UnsubscribeFromTranscriptionEmailNotificationsCommand_base {
62
- }
@@ -1,62 +0,0 @@
1
- import { ServiceInputTypes, ServiceOutputTypes, UsersClientResolvedConfig } from "../UsersClient";
2
- import { UnsubscribeFromUnreadEmailNotificationsInput, UnsubscribeFromUnreadEmailNotificationsOutput } from "../models/models_0";
3
- import { Command as $Command } from "@smithy/smithy-client";
4
- import { MetadataBearer as __MetadataBearer } from "@smithy/types";
5
- /**
6
- * @public
7
- */
8
- export type { __MetadataBearer };
9
- export { $Command };
10
- /**
11
- * @public
12
- *
13
- * The input for {@link UnsubscribeFromUnreadEmailNotificationsCommand}.
14
- */
15
- export interface UnsubscribeFromUnreadEmailNotificationsCommandInput extends UnsubscribeFromUnreadEmailNotificationsInput {
16
- }
17
- /**
18
- * @public
19
- *
20
- * The output of {@link UnsubscribeFromUnreadEmailNotificationsCommand}.
21
- */
22
- export interface UnsubscribeFromUnreadEmailNotificationsCommandOutput extends UnsubscribeFromUnreadEmailNotificationsOutput, __MetadataBearer {
23
- }
24
- declare const UnsubscribeFromUnreadEmailNotificationsCommand_base: {
25
- new (input: UnsubscribeFromUnreadEmailNotificationsCommandInput): import("@smithy/smithy-client").CommandImpl<UnsubscribeFromUnreadEmailNotificationsCommandInput, UnsubscribeFromUnreadEmailNotificationsCommandOutput, UsersClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (__0_0: UnsubscribeFromUnreadEmailNotificationsCommandInput): import("@smithy/smithy-client").CommandImpl<UnsubscribeFromUnreadEmailNotificationsCommandInput, UnsubscribeFromUnreadEmailNotificationsCommandOutput, UsersClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
- };
29
- /**
30
- * Unsubscribe from email notifications about unread messages
31
- * @example
32
- * Use a bare-bones client and the command you need to make an API call.
33
- * ```javascript
34
- * import { UsersClient, UnsubscribeFromUnreadEmailNotificationsCommand } from "@wildix/xbees-users-client"; // ES Modules import
35
- * // const { UsersClient, UnsubscribeFromUnreadEmailNotificationsCommand } = require("@wildix/xbees-users-client"); // CommonJS import
36
- * const client = new UsersClient(config);
37
- * const input = { // UnsubscribeFromUnreadEmailNotificationsInput
38
- * unsubscribeToken: "STRING_VALUE", // required
39
- * };
40
- * const command = new UnsubscribeFromUnreadEmailNotificationsCommand(input);
41
- * const response = await client.send(command);
42
- * // {};
43
- *
44
- * ```
45
- *
46
- * @param UnsubscribeFromUnreadEmailNotificationsCommandInput - {@link UnsubscribeFromUnreadEmailNotificationsCommandInput}
47
- * @returns {@link UnsubscribeFromUnreadEmailNotificationsCommandOutput}
48
- * @see {@link UnsubscribeFromUnreadEmailNotificationsCommandInput} for command's `input` shape.
49
- * @see {@link UnsubscribeFromUnreadEmailNotificationsCommandOutput} for command's `response` shape.
50
- * @see {@link UsersClientResolvedConfig | config} for UsersClient's `config` shape.
51
- *
52
- * @throws {@link ForbiddenException} (client fault)
53
- *
54
- * @throws {@link ValidationException} (client fault)
55
- *
56
- * @throws {@link UsersServiceException}
57
- * <p>Base exception class for all service exceptions from Users service.</p>
58
- *
59
- * @public
60
- */
61
- export declare class UnsubscribeFromUnreadEmailNotificationsCommand extends UnsubscribeFromUnreadEmailNotificationsCommand_base {
62
- }