@wildix/xbees-users-client 1.0.34 → 1.0.36

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 (35) hide show
  1. package/dist-cjs/Users.js +12 -0
  2. package/dist-cjs/commands/BatchGetUsersEmailNotificationsSettingsCommand.js +21 -0
  3. package/dist-cjs/commands/GetUserEmailNotificationsSettingsCommand.js +21 -0
  4. package/dist-cjs/commands/PartialUpdateUserEmailNotificationsSettingsCommand.js +21 -0
  5. package/dist-cjs/commands/ToggleTranscriptionEmailNotificationsSubscriptionCommand.js +21 -0
  6. package/dist-cjs/commands/ToggleUnreadEmailNotificationsSubscriptionCommand.js +21 -0
  7. package/dist-cjs/commands/UpdateUserEmailNotificationsSettingsCommand.js +21 -0
  8. package/dist-cjs/commands/index.js +6 -0
  9. package/dist-cjs/models/models_0.js +13 -13
  10. package/dist-cjs/protocols/Aws_restJson1.js +239 -59
  11. package/dist-es/Users.js +12 -0
  12. package/dist-es/commands/BatchGetUsersEmailNotificationsSettingsCommand.js +17 -0
  13. package/dist-es/commands/GetUserEmailNotificationsSettingsCommand.js +17 -0
  14. package/dist-es/commands/PartialUpdateUserEmailNotificationsSettingsCommand.js +17 -0
  15. package/dist-es/commands/ToggleTranscriptionEmailNotificationsSubscriptionCommand.js +17 -0
  16. package/dist-es/commands/ToggleUnreadEmailNotificationsSubscriptionCommand.js +17 -0
  17. package/dist-es/commands/UpdateUserEmailNotificationsSettingsCommand.js +17 -0
  18. package/dist-es/commands/index.js +6 -0
  19. package/dist-es/models/models_0.js +12 -12
  20. package/dist-es/protocols/Aws_restJson1.js +226 -58
  21. package/dist-types/Users.d.ts +42 -0
  22. package/dist-types/UsersClient.d.ts +8 -2
  23. package/dist-types/commands/BatchGetUsersEmailNotificationsSettingsCommand.d.ts +71 -0
  24. package/dist-types/commands/CreateBotCommand.d.ts +13 -13
  25. package/dist-types/commands/GetBotCallbackCommand.d.ts +13 -13
  26. package/dist-types/commands/GetUserEmailNotificationsSettingsCommand.d.ts +69 -0
  27. package/dist-types/commands/PartialUpdateUserEmailNotificationsSettingsCommand.d.ts +69 -0
  28. package/dist-types/commands/ToggleTranscriptionEmailNotificationsSubscriptionCommand.d.ts +63 -0
  29. package/dist-types/commands/ToggleUnreadEmailNotificationsSubscriptionCommand.d.ts +63 -0
  30. package/dist-types/commands/UpdateBotCallbackCommand.d.ts +26 -26
  31. package/dist-types/commands/UpdateUserEmailNotificationsSettingsCommand.d.ts +69 -0
  32. package/dist-types/commands/index.d.ts +6 -0
  33. package/dist-types/models/models_0.d.ts +171 -40
  34. package/dist-types/protocols/Aws_restJson1.d.ts +54 -0
  35. package/package.json +2 -2
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.de_UploadPictureV1Command = exports.de_UploadPictureCommand = exports.de_UpdateBotCallbackCommand = exports.de_UpdateBotCommand = exports.de_QueryUsersCommand = exports.de_QueryUserCommand = exports.de_QueryColleaguesCommand = exports.de_ListBotsCommand = exports.de_ListBotApiKeysCommand = exports.de_GetUserPbxLinkSuggestionV1Command = exports.de_GetUserPbxLinkSuggestionCommand = exports.de_GetUserPbxLinkDataCommand = 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_BatchGetUsersCommand = exports.se_VerifyBotSecretKeyV1Command = exports.se_VerifyBotSecretKeyCommand = exports.se_UploadPictureV1Command = exports.se_UploadPictureCommand = exports.se_UpdateBotCallbackCommand = exports.se_UpdateBotCommand = exports.se_QueryUsersCommand = exports.se_QueryUserCommand = exports.se_QueryColleaguesCommand = exports.se_ListBotsCommand = exports.se_ListBotApiKeysCommand = exports.se_GetUserPbxLinkSuggestionV1Command = exports.se_GetUserPbxLinkSuggestionCommand = exports.se_GetUserPbxLinkDataCommand = 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_BatchGetUsersCommand = void 0;
4
- exports.de_VerifyBotSecretKeyV1Command = exports.de_VerifyBotSecretKeyCommand = 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_ToggleUnreadEmailNotificationsSubscriptionCommand = exports.se_ToggleTranscriptionEmailNotificationsSubscriptionCommand = 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_ToggleUnreadEmailNotificationsSubscriptionCommand = exports.de_ToggleTranscriptionEmailNotificationsSubscriptionCommand = exports.de_QueryUsersCommand = exports.de_QueryUserCommand = exports.de_QueryColleaguesCommand = exports.de_PartialUpdateUserEmailNotificationsSettingsCommand = 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");
@@ -22,6 +22,22 @@ const se_BatchGetUsersCommand = async (input, context) => {
22
22
  return b.build();
23
23
  };
24
24
  exports.se_BatchGetUsersCommand = se_BatchGetUsersCommand;
25
+ const se_BatchGetUsersEmailNotificationsSettingsCommand = async (input, context) => {
26
+ const b = (0, core_1.requestBuilder)(input, context);
27
+ const headers = {
28
+ 'content-type': 'application/json',
29
+ };
30
+ b.bp("/v2/users/batch-get-users-email-notifications-settings");
31
+ let body;
32
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
33
+ 'usersIds': _ => (0, smithy_client_1._json)(_),
34
+ }));
35
+ b.m("POST")
36
+ .h(headers)
37
+ .b(body);
38
+ return b.build();
39
+ };
40
+ exports.se_BatchGetUsersEmailNotificationsSettingsCommand = se_BatchGetUsersEmailNotificationsSettingsCommand;
25
41
  const se_BatchGetUsersPbxLinkDataCommand = async (input, context) => {
26
42
  const b = (0, core_1.requestBuilder)(input, context);
27
43
  const headers = {
@@ -213,6 +229,18 @@ const se_GetUserCommand = async (input, context) => {
213
229
  return b.build();
214
230
  };
215
231
  exports.se_GetUserCommand = se_GetUserCommand;
232
+ const se_GetUserEmailNotificationsSettingsCommand = async (input, context) => {
233
+ const b = (0, core_1.requestBuilder)(input, context);
234
+ const headers = {};
235
+ b.bp("/v2/users/cloud/{userId}/notifications/email");
236
+ b.p('userId', () => input.userId, '{userId}', false);
237
+ let body;
238
+ b.m("GET")
239
+ .h(headers)
240
+ .b(body);
241
+ return b.build();
242
+ };
243
+ exports.se_GetUserEmailNotificationsSettingsCommand = se_GetUserEmailNotificationsSettingsCommand;
216
244
  const se_GetUserPbxLinkDataCommand = async (input, context) => {
217
245
  const b = (0, core_1.requestBuilder)(input, context);
218
246
  const headers = {};
@@ -286,6 +314,24 @@ const se_ListBotsCommand = async (input, context) => {
286
314
  return b.build();
287
315
  };
288
316
  exports.se_ListBotsCommand = se_ListBotsCommand;
317
+ const se_PartialUpdateUserEmailNotificationsSettingsCommand = 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/cloud/{userId}/notifications/email");
323
+ b.p('userId', () => input.userId, '{userId}', false);
324
+ let body;
325
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
326
+ 'transcription': [],
327
+ 'unread': [],
328
+ }));
329
+ b.m("PATCH")
330
+ .h(headers)
331
+ .b(body);
332
+ return b.build();
333
+ };
334
+ exports.se_PartialUpdateUserEmailNotificationsSettingsCommand = se_PartialUpdateUserEmailNotificationsSettingsCommand;
289
335
  const se_QueryColleaguesCommand = async (input, context) => {
290
336
  const b = (0, core_1.requestBuilder)(input, context);
291
337
  const headers = {
@@ -340,6 +386,40 @@ const se_QueryUsersCommand = async (input, context) => {
340
386
  return b.build();
341
387
  };
342
388
  exports.se_QueryUsersCommand = se_QueryUsersCommand;
389
+ const se_ToggleTranscriptionEmailNotificationsSubscriptionCommand = 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/toggle-transcription-email-notifications-subscription");
395
+ let body;
396
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
397
+ 'subscribe': [],
398
+ 'unsubscribeToken': [],
399
+ }));
400
+ b.m("POST")
401
+ .h(headers)
402
+ .b(body);
403
+ return b.build();
404
+ };
405
+ exports.se_ToggleTranscriptionEmailNotificationsSubscriptionCommand = se_ToggleTranscriptionEmailNotificationsSubscriptionCommand;
406
+ const se_ToggleUnreadEmailNotificationsSubscriptionCommand = async (input, context) => {
407
+ const b = (0, core_1.requestBuilder)(input, context);
408
+ const headers = {
409
+ 'content-type': 'application/json',
410
+ };
411
+ b.bp("/v2/users/toggle-unread-email-notifications-subscription");
412
+ let body;
413
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
414
+ 'subscribe': [],
415
+ 'unsubscribeToken': [],
416
+ }));
417
+ b.m("POST")
418
+ .h(headers)
419
+ .b(body);
420
+ return b.build();
421
+ };
422
+ exports.se_ToggleUnreadEmailNotificationsSubscriptionCommand = se_ToggleUnreadEmailNotificationsSubscriptionCommand;
343
423
  const se_UpdateBotCommand = async (input, context) => {
344
424
  const b = (0, core_1.requestBuilder)(input, context);
345
425
  const headers = {
@@ -384,6 +464,24 @@ const se_UpdateBotCallbackCommand = async (input, context) => {
384
464
  return b.build();
385
465
  };
386
466
  exports.se_UpdateBotCallbackCommand = se_UpdateBotCallbackCommand;
467
+ const se_UpdateUserEmailNotificationsSettingsCommand = async (input, context) => {
468
+ const b = (0, core_1.requestBuilder)(input, context);
469
+ const headers = {
470
+ 'content-type': 'application/json',
471
+ };
472
+ b.bp("/v2/users/cloud/{userId}/notifications/email");
473
+ b.p('userId', () => input.userId, '{userId}', false);
474
+ let body;
475
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
476
+ 'transcription': [],
477
+ 'unread': [],
478
+ }));
479
+ b.m("POST")
480
+ .h(headers)
481
+ .b(body);
482
+ return b.build();
483
+ };
484
+ exports.se_UpdateUserEmailNotificationsSettingsCommand = se_UpdateUserEmailNotificationsSettingsCommand;
387
485
  const se_UploadPictureCommand = async (input, context) => {
388
486
  const b = (0, core_1.requestBuilder)(input, context);
389
487
  const headers = {
@@ -463,6 +561,21 @@ const de_BatchGetUsersCommand = async (output, context) => {
463
561
  return contents;
464
562
  };
465
563
  exports.de_BatchGetUsersCommand = de_BatchGetUsersCommand;
564
+ const de_BatchGetUsersEmailNotificationsSettingsCommand = async (output, context) => {
565
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
566
+ return de_CommandError(output, context);
567
+ }
568
+ const contents = (0, smithy_client_1.map)({
569
+ $metadata: deserializeMetadata(output),
570
+ });
571
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await parseBody(output.body, context))), "body");
572
+ const doc = (0, smithy_client_1.take)(data, {
573
+ 'notifications': smithy_client_1._json,
574
+ });
575
+ Object.assign(contents, doc);
576
+ return contents;
577
+ };
578
+ exports.de_BatchGetUsersEmailNotificationsSettingsCommand = de_BatchGetUsersEmailNotificationsSettingsCommand;
466
579
  const de_BatchGetUsersPbxLinkDataCommand = async (output, context) => {
467
580
  if (output.statusCode !== 200 && output.statusCode >= 300) {
468
581
  return de_CommandError(output, context);
@@ -621,6 +734,21 @@ const de_GetUserCommand = async (output, context) => {
621
734
  return contents;
622
735
  };
623
736
  exports.de_GetUserCommand = de_GetUserCommand;
737
+ const de_GetUserEmailNotificationsSettingsCommand = async (output, context) => {
738
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
739
+ return de_CommandError(output, context);
740
+ }
741
+ const contents = (0, smithy_client_1.map)({
742
+ $metadata: deserializeMetadata(output),
743
+ });
744
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await parseBody(output.body, context))), "body");
745
+ const doc = (0, smithy_client_1.take)(data, {
746
+ 'notifications': smithy_client_1._json,
747
+ });
748
+ Object.assign(contents, doc);
749
+ return contents;
750
+ };
751
+ exports.de_GetUserEmailNotificationsSettingsCommand = de_GetUserEmailNotificationsSettingsCommand;
624
752
  const de_GetUserPbxLinkDataCommand = async (output, context) => {
625
753
  if (output.statusCode !== 200 && output.statusCode >= 300) {
626
754
  return de_CommandError(output, context);
@@ -696,6 +824,21 @@ const de_ListBotsCommand = async (output, context) => {
696
824
  return contents;
697
825
  };
698
826
  exports.de_ListBotsCommand = de_ListBotsCommand;
827
+ const de_PartialUpdateUserEmailNotificationsSettingsCommand = 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
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await parseBody(output.body, context))), "body");
835
+ const doc = (0, smithy_client_1.take)(data, {
836
+ 'notifications': smithy_client_1._json,
837
+ });
838
+ Object.assign(contents, doc);
839
+ return contents;
840
+ };
841
+ exports.de_PartialUpdateUserEmailNotificationsSettingsCommand = de_PartialUpdateUserEmailNotificationsSettingsCommand;
699
842
  const de_QueryColleaguesCommand = async (output, context) => {
700
843
  if (output.statusCode !== 200 && output.statusCode >= 300) {
701
844
  return de_CommandError(output, context);
@@ -741,6 +884,28 @@ const de_QueryUsersCommand = async (output, context) => {
741
884
  return contents;
742
885
  };
743
886
  exports.de_QueryUsersCommand = de_QueryUsersCommand;
887
+ const de_ToggleTranscriptionEmailNotificationsSubscriptionCommand = async (output, context) => {
888
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
889
+ return de_CommandError(output, context);
890
+ }
891
+ const contents = (0, smithy_client_1.map)({
892
+ $metadata: deserializeMetadata(output),
893
+ });
894
+ await (0, smithy_client_1.collectBody)(output.body, context);
895
+ return contents;
896
+ };
897
+ exports.de_ToggleTranscriptionEmailNotificationsSubscriptionCommand = de_ToggleTranscriptionEmailNotificationsSubscriptionCommand;
898
+ const de_ToggleUnreadEmailNotificationsSubscriptionCommand = async (output, context) => {
899
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
900
+ return de_CommandError(output, context);
901
+ }
902
+ const contents = (0, smithy_client_1.map)({
903
+ $metadata: deserializeMetadata(output),
904
+ });
905
+ await (0, smithy_client_1.collectBody)(output.body, context);
906
+ return contents;
907
+ };
908
+ exports.de_ToggleUnreadEmailNotificationsSubscriptionCommand = de_ToggleUnreadEmailNotificationsSubscriptionCommand;
744
909
  const de_UpdateBotCommand = async (output, context) => {
745
910
  if (output.statusCode !== 200 && output.statusCode >= 300) {
746
911
  return de_CommandError(output, context);
@@ -771,6 +936,21 @@ const de_UpdateBotCallbackCommand = async (output, context) => {
771
936
  return contents;
772
937
  };
773
938
  exports.de_UpdateBotCallbackCommand = de_UpdateBotCallbackCommand;
939
+ const de_UpdateUserEmailNotificationsSettingsCommand = async (output, context) => {
940
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
941
+ return de_CommandError(output, context);
942
+ }
943
+ const contents = (0, smithy_client_1.map)({
944
+ $metadata: deserializeMetadata(output),
945
+ });
946
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await parseBody(output.body, context))), "body");
947
+ const doc = (0, smithy_client_1.take)(data, {
948
+ 'notifications': smithy_client_1._json,
949
+ });
950
+ Object.assign(contents, doc);
951
+ return contents;
952
+ };
953
+ exports.de_UpdateUserEmailNotificationsSettingsCommand = de_UpdateUserEmailNotificationsSettingsCommand;
774
954
  const de_UploadPictureCommand = async (output, context) => {
775
955
  if (output.statusCode !== 200 && output.statusCode >= 300) {
776
956
  return de_CommandError(output, context);
@@ -996,43 +1176,50 @@ const se_BotDialogflowCxEndpoint = (input, context) => {
996
1176
  'location': [],
997
1177
  });
998
1178
  };
999
- const se_BotEmbeddedTool = (input, context) => {
1179
+ const se_BotEndpoint = (input, context) => {
1180
+ return models_0_1.BotEndpoint.visit(input, {
1181
+ dialogflowCx: value => ({ "dialogflowCx": se_BotDialogflowCxEndpoint(value, context) }),
1182
+ llm: value => ({ "llm": se_BotLlmEndpoint(value, context) }),
1183
+ openAiAssistant: value => ({ "openAiAssistant": (0, smithy_client_1._json)(value) }),
1184
+ sqs: value => ({ "sqs": (0, smithy_client_1._json)(value) }),
1185
+ webhook: value => ({ "webhook": (0, smithy_client_1._json)(value) }),
1186
+ _: (name, value) => ({ name: value })
1187
+ });
1188
+ };
1189
+ const se_BotLlmEmbeddedTool = (input, context) => {
1000
1190
  return (0, smithy_client_1.take)(input, {
1001
1191
  'name': [],
1002
1192
  'parameters': _ => se_Document(_, context),
1003
1193
  'type': [],
1004
1194
  });
1005
1195
  };
1006
- const se_BotEmbeddedToolsList = (input, context) => {
1196
+ const se_BotLlmEmbeddedToolsList = (input, context) => {
1007
1197
  return input.filter((e) => e != null).map(entry => {
1008
- return se_BotEmbeddedTool(entry, context);
1198
+ return se_BotLlmEmbeddedTool(entry, context);
1009
1199
  });
1010
1200
  };
1011
- const se_BotEndpoint = (input, context) => {
1012
- return models_0_1.BotEndpoint.visit(input, {
1013
- dialogflowCx: value => ({ "dialogflowCx": se_BotDialogflowCxEndpoint(value, context) }),
1014
- llm: value => ({ "llm": se_BotLlmEndpoint(value, context) }),
1015
- openAiAssistant: value => ({ "openAiAssistant": (0, smithy_client_1._json)(value) }),
1016
- sqs: value => ({ "sqs": (0, smithy_client_1._json)(value) }),
1017
- webhook: value => ({ "webhook": (0, smithy_client_1._json)(value) }),
1018
- _: (name, value) => ({ name: value })
1201
+ const se_BotLlmEndpoint = (input, context) => {
1202
+ return (0, smithy_client_1.take)(input, {
1203
+ 'embeddedTools': _ => se_BotLlmEmbeddedToolsList(_, context),
1204
+ 'prompt': [],
1205
+ 'tools': _ => se_BotLlmToolsList(_, context),
1019
1206
  });
1020
1207
  };
1021
- const se_BotFunctionDefinition = (input, context) => {
1208
+ const se_BotLlmFunctionDefinition = (input, context) => {
1022
1209
  return (0, smithy_client_1.take)(input, {
1023
1210
  'description': [],
1024
- 'integration': _ => se_BotFunctionIntegration(_, context),
1211
+ 'integration': _ => se_BotLlmFunctionIntegration(_, context),
1025
1212
  'name': [],
1026
1213
  'parameters': _ => se_Document(_, context),
1027
1214
  });
1028
1215
  };
1029
- const se_BotFunctionIntegration = (input, context) => {
1030
- return models_0_1.BotFunctionIntegration.visit(input, {
1031
- webhook: value => ({ "webhook": se_BotFunctionIntegrationWebhook(value, context) }),
1216
+ const se_BotLlmFunctionIntegration = (input, context) => {
1217
+ return models_0_1.BotLlmFunctionIntegration.visit(input, {
1218
+ webhook: value => ({ "webhook": se_BotLlmFunctionIntegrationWebhook(value, context) }),
1032
1219
  _: (name, value) => ({ name: value })
1033
1220
  });
1034
1221
  };
1035
- const se_BotFunctionIntegrationWebhook = (input, context) => {
1222
+ const se_BotLlmFunctionIntegrationWebhook = (input, context) => {
1036
1223
  return (0, smithy_client_1.take)(input, {
1037
1224
  'async': [],
1038
1225
  'authorization': smithy_client_1._json,
@@ -1042,22 +1229,15 @@ const se_BotFunctionIntegrationWebhook = (input, context) => {
1042
1229
  'url': [],
1043
1230
  });
1044
1231
  };
1045
- const se_BotLlmEndpoint = (input, context) => {
1046
- return (0, smithy_client_1.take)(input, {
1047
- 'embeddedTools': _ => se_BotEmbeddedToolsList(_, context),
1048
- 'prompt': [],
1049
- 'tools': _ => se_BotToolsList(_, context),
1050
- });
1051
- };
1052
- const se_BotTool = (input, context) => {
1232
+ const se_BotLlmTool = (input, context) => {
1053
1233
  return (0, smithy_client_1.take)(input, {
1054
- 'function': _ => se_BotFunctionDefinition(_, context),
1234
+ 'function': _ => se_BotLlmFunctionDefinition(_, context),
1055
1235
  'type': [],
1056
1236
  });
1057
1237
  };
1058
- const se_BotToolsList = (input, context) => {
1238
+ const se_BotLlmToolsList = (input, context) => {
1059
1239
  return input.filter((e) => e != null).map(entry => {
1060
- return se_BotTool(entry, context);
1240
+ return se_BotLlmTool(entry, context);
1061
1241
  });
1062
1242
  };
1063
1243
  const de_Document = (output, context) => {
@@ -1076,19 +1256,6 @@ const de_BotDialogflowCxEndpoint = (output, context) => {
1076
1256
  'location': smithy_client_1.expectString,
1077
1257
  });
1078
1258
  };
1079
- const de_BotEmbeddedTool = (output, context) => {
1080
- return (0, smithy_client_1.take)(output, {
1081
- 'name': smithy_client_1.expectString,
1082
- 'parameters': (_) => de_Document(_, context),
1083
- 'type': smithy_client_1.expectString,
1084
- });
1085
- };
1086
- const de_BotEmbeddedToolsList = (output, context) => {
1087
- const retVal = (output || []).filter((e) => e != null).map((entry) => {
1088
- return de_BotEmbeddedTool(entry, context);
1089
- });
1090
- return retVal;
1091
- };
1092
1259
  const de_BotEndpoint = (output, context) => {
1093
1260
  if (output.dialogflowCx != null) {
1094
1261
  return {
@@ -1117,23 +1284,43 @@ const de_BotEndpoint = (output, context) => {
1117
1284
  }
1118
1285
  return { $unknown: Object.entries(output)[0] };
1119
1286
  };
1120
- const de_BotFunctionDefinition = (output, context) => {
1287
+ const de_BotLlmEmbeddedTool = (output, context) => {
1288
+ return (0, smithy_client_1.take)(output, {
1289
+ 'name': smithy_client_1.expectString,
1290
+ 'parameters': (_) => de_Document(_, context),
1291
+ 'type': smithy_client_1.expectString,
1292
+ });
1293
+ };
1294
+ const de_BotLlmEmbeddedToolsList = (output, context) => {
1295
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
1296
+ return de_BotLlmEmbeddedTool(entry, context);
1297
+ });
1298
+ return retVal;
1299
+ };
1300
+ const de_BotLlmEndpoint = (output, context) => {
1301
+ return (0, smithy_client_1.take)(output, {
1302
+ 'embeddedTools': (_) => de_BotLlmEmbeddedToolsList(_, context),
1303
+ 'prompt': smithy_client_1.expectString,
1304
+ 'tools': (_) => de_BotLlmToolsList(_, context),
1305
+ });
1306
+ };
1307
+ const de_BotLlmFunctionDefinition = (output, context) => {
1121
1308
  return (0, smithy_client_1.take)(output, {
1122
1309
  'description': smithy_client_1.expectString,
1123
- 'integration': (_) => de_BotFunctionIntegration((0, smithy_client_1.expectUnion)(_), context),
1310
+ 'integration': (_) => de_BotLlmFunctionIntegration((0, smithy_client_1.expectUnion)(_), context),
1124
1311
  'name': smithy_client_1.expectString,
1125
1312
  'parameters': (_) => de_Document(_, context),
1126
1313
  });
1127
1314
  };
1128
- const de_BotFunctionIntegration = (output, context) => {
1315
+ const de_BotLlmFunctionIntegration = (output, context) => {
1129
1316
  if (output.webhook != null) {
1130
1317
  return {
1131
- webhook: de_BotFunctionIntegrationWebhook(output.webhook, context)
1318
+ webhook: de_BotLlmFunctionIntegrationWebhook(output.webhook, context)
1132
1319
  };
1133
1320
  }
1134
1321
  return { $unknown: Object.entries(output)[0] };
1135
1322
  };
1136
- const de_BotFunctionIntegrationWebhook = (output, context) => {
1323
+ const de_BotLlmFunctionIntegrationWebhook = (output, context) => {
1137
1324
  return (0, smithy_client_1.take)(output, {
1138
1325
  'async': smithy_client_1.expectBoolean,
1139
1326
  'authorization': (_) => (0, smithy_client_1._json)((0, smithy_client_1.expectUnion)(_)),
@@ -1143,22 +1330,15 @@ const de_BotFunctionIntegrationWebhook = (output, context) => {
1143
1330
  'url': smithy_client_1.expectString,
1144
1331
  });
1145
1332
  };
1146
- const de_BotLlmEndpoint = (output, context) => {
1147
- return (0, smithy_client_1.take)(output, {
1148
- 'embeddedTools': (_) => de_BotEmbeddedToolsList(_, context),
1149
- 'prompt': smithy_client_1.expectString,
1150
- 'tools': (_) => de_BotToolsList(_, context),
1151
- });
1152
- };
1153
- const de_BotTool = (output, context) => {
1333
+ const de_BotLlmTool = (output, context) => {
1154
1334
  return (0, smithy_client_1.take)(output, {
1155
- 'function': (_) => de_BotFunctionDefinition(_, context),
1335
+ 'function': (_) => de_BotLlmFunctionDefinition(_, context),
1156
1336
  'type': smithy_client_1.expectString,
1157
1337
  });
1158
1338
  };
1159
- const de_BotToolsList = (output, context) => {
1339
+ const de_BotLlmToolsList = (output, context) => {
1160
1340
  const retVal = (output || []).filter((e) => e != null).map((entry) => {
1161
- return de_BotTool(entry, context);
1341
+ return de_BotLlmTool(entry, context);
1162
1342
  });
1163
1343
  return retVal;
1164
1344
  };
package/dist-es/Users.js CHANGED
@@ -1,5 +1,6 @@
1
1
  import { UsersClient, } from "./UsersClient";
2
2
  import { BatchGetUsersCommand, } from "./commands/BatchGetUsersCommand";
3
+ import { BatchGetUsersEmailNotificationsSettingsCommand, } from "./commands/BatchGetUsersEmailNotificationsSettingsCommand";
3
4
  import { BatchGetUsersPbxLinkDataCommand, } from "./commands/BatchGetUsersPbxLinkDataCommand";
4
5
  import { BatchGetUsersPbxLinkDataV1Command, } from "./commands/BatchGetUsersPbxLinkDataV1Command";
5
6
  import { ChangeUserEmailCommand, } from "./commands/ChangeUserEmailCommand";
@@ -11,16 +12,21 @@ import { DeleteBotCommand, } from "./commands/DeleteBotCommand";
11
12
  import { GetBotCallbackCommand, } from "./commands/GetBotCallbackCommand";
12
13
  import { GetBotCommand, } from "./commands/GetBotCommand";
13
14
  import { GetUserCommand, } from "./commands/GetUserCommand";
15
+ import { GetUserEmailNotificationsSettingsCommand, } from "./commands/GetUserEmailNotificationsSettingsCommand";
14
16
  import { GetUserPbxLinkDataCommand, } from "./commands/GetUserPbxLinkDataCommand";
15
17
  import { GetUserPbxLinkSuggestionCommand, } from "./commands/GetUserPbxLinkSuggestionCommand";
16
18
  import { GetUserPbxLinkSuggestionV1Command, } from "./commands/GetUserPbxLinkSuggestionV1Command";
17
19
  import { ListBotApiKeysCommand, } from "./commands/ListBotApiKeysCommand";
18
20
  import { ListBotsCommand, } from "./commands/ListBotsCommand";
21
+ import { PartialUpdateUserEmailNotificationsSettingsCommand, } from "./commands/PartialUpdateUserEmailNotificationsSettingsCommand";
19
22
  import { QueryColleaguesCommand, } from "./commands/QueryColleaguesCommand";
20
23
  import { QueryUserCommand, } from "./commands/QueryUserCommand";
21
24
  import { QueryUsersCommand, } from "./commands/QueryUsersCommand";
25
+ import { ToggleTranscriptionEmailNotificationsSubscriptionCommand, } from "./commands/ToggleTranscriptionEmailNotificationsSubscriptionCommand";
26
+ import { ToggleUnreadEmailNotificationsSubscriptionCommand, } from "./commands/ToggleUnreadEmailNotificationsSubscriptionCommand";
22
27
  import { UpdateBotCallbackCommand, } from "./commands/UpdateBotCallbackCommand";
23
28
  import { UpdateBotCommand, } from "./commands/UpdateBotCommand";
29
+ import { UpdateUserEmailNotificationsSettingsCommand, } from "./commands/UpdateUserEmailNotificationsSettingsCommand";
24
30
  import { UploadPictureCommand, } from "./commands/UploadPictureCommand";
25
31
  import { UploadPictureV1Command, } from "./commands/UploadPictureV1Command";
26
32
  import { VerifyBotSecretKeyCommand, } from "./commands/VerifyBotSecretKeyCommand";
@@ -28,6 +34,7 @@ import { VerifyBotSecretKeyV1Command, } from "./commands/VerifyBotSecretKeyV1Com
28
34
  import { createAggregatedClient } from "@smithy/smithy-client";
29
35
  const commands = {
30
36
  BatchGetUsersCommand,
37
+ BatchGetUsersEmailNotificationsSettingsCommand,
31
38
  BatchGetUsersPbxLinkDataCommand,
32
39
  BatchGetUsersPbxLinkDataV1Command,
33
40
  ChangeUserEmailCommand,
@@ -39,16 +46,21 @@ const commands = {
39
46
  GetBotCommand,
40
47
  GetBotCallbackCommand,
41
48
  GetUserCommand,
49
+ GetUserEmailNotificationsSettingsCommand,
42
50
  GetUserPbxLinkDataCommand,
43
51
  GetUserPbxLinkSuggestionCommand,
44
52
  GetUserPbxLinkSuggestionV1Command,
45
53
  ListBotApiKeysCommand,
46
54
  ListBotsCommand,
55
+ PartialUpdateUserEmailNotificationsSettingsCommand,
47
56
  QueryColleaguesCommand,
48
57
  QueryUserCommand,
49
58
  QueryUsersCommand,
59
+ ToggleTranscriptionEmailNotificationsSubscriptionCommand,
60
+ ToggleUnreadEmailNotificationsSubscriptionCommand,
50
61
  UpdateBotCommand,
51
62
  UpdateBotCallbackCommand,
63
+ UpdateUserEmailNotificationsSettingsCommand,
52
64
  UploadPictureCommand,
53
65
  UploadPictureV1Command,
54
66
  VerifyBotSecretKeyCommand,
@@ -0,0 +1,17 @@
1
+ import { de_BatchGetUsersEmailNotificationsSettingsCommand, se_BatchGetUsersEmailNotificationsSettingsCommand, } 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 BatchGetUsersEmailNotificationsSettingsCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("Users", "BatchGetUsersEmailNotificationsSettings", {})
12
+ .n("UsersClient", "BatchGetUsersEmailNotificationsSettingsCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_BatchGetUsersEmailNotificationsSettingsCommand)
15
+ .de(de_BatchGetUsersEmailNotificationsSettingsCommand)
16
+ .build() {
17
+ }
@@ -0,0 +1,17 @@
1
+ import { de_GetUserEmailNotificationsSettingsCommand, se_GetUserEmailNotificationsSettingsCommand, } 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 GetUserEmailNotificationsSettingsCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("Users", "GetUserEmailNotificationsSettings", {})
12
+ .n("UsersClient", "GetUserEmailNotificationsSettingsCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_GetUserEmailNotificationsSettingsCommand)
15
+ .de(de_GetUserEmailNotificationsSettingsCommand)
16
+ .build() {
17
+ }
@@ -0,0 +1,17 @@
1
+ import { de_PartialUpdateUserEmailNotificationsSettingsCommand, se_PartialUpdateUserEmailNotificationsSettingsCommand, } 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 PartialUpdateUserEmailNotificationsSettingsCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("Users", "PartialUpdateUserEmailNotificationsSettings", {})
12
+ .n("UsersClient", "PartialUpdateUserEmailNotificationsSettingsCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_PartialUpdateUserEmailNotificationsSettingsCommand)
15
+ .de(de_PartialUpdateUserEmailNotificationsSettingsCommand)
16
+ .build() {
17
+ }
@@ -0,0 +1,17 @@
1
+ import { de_ToggleTranscriptionEmailNotificationsSubscriptionCommand, se_ToggleTranscriptionEmailNotificationsSubscriptionCommand, } 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 ToggleTranscriptionEmailNotificationsSubscriptionCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("Users", "ToggleTranscriptionEmailNotificationsSubscription", {})
12
+ .n("UsersClient", "ToggleTranscriptionEmailNotificationsSubscriptionCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_ToggleTranscriptionEmailNotificationsSubscriptionCommand)
15
+ .de(de_ToggleTranscriptionEmailNotificationsSubscriptionCommand)
16
+ .build() {
17
+ }
@@ -0,0 +1,17 @@
1
+ import { de_ToggleUnreadEmailNotificationsSubscriptionCommand, se_ToggleUnreadEmailNotificationsSubscriptionCommand, } 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 ToggleUnreadEmailNotificationsSubscriptionCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("Users", "ToggleUnreadEmailNotificationsSubscription", {})
12
+ .n("UsersClient", "ToggleUnreadEmailNotificationsSubscriptionCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_ToggleUnreadEmailNotificationsSubscriptionCommand)
15
+ .de(de_ToggleUnreadEmailNotificationsSubscriptionCommand)
16
+ .build() {
17
+ }
@@ -0,0 +1,17 @@
1
+ import { de_UpdateUserEmailNotificationsSettingsCommand, se_UpdateUserEmailNotificationsSettingsCommand, } 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 UpdateUserEmailNotificationsSettingsCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("Users", "UpdateUserEmailNotificationsSettings", {})
12
+ .n("UsersClient", "UpdateUserEmailNotificationsSettingsCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_UpdateUserEmailNotificationsSettingsCommand)
15
+ .de(de_UpdateUserEmailNotificationsSettingsCommand)
16
+ .build() {
17
+ }
@@ -1,4 +1,5 @@
1
1
  export * from "./BatchGetUsersCommand";
2
+ export * from "./BatchGetUsersEmailNotificationsSettingsCommand";
2
3
  export * from "./BatchGetUsersPbxLinkDataCommand";
3
4
  export * from "./BatchGetUsersPbxLinkDataV1Command";
4
5
  export * from "./ChangeUserEmailCommand";
@@ -10,16 +11,21 @@ export * from "./DeleteBotApiKeyCommand";
10
11
  export * from "./GetBotCommand";
11
12
  export * from "./GetBotCallbackCommand";
12
13
  export * from "./GetUserCommand";
14
+ export * from "./GetUserEmailNotificationsSettingsCommand";
13
15
  export * from "./GetUserPbxLinkDataCommand";
14
16
  export * from "./GetUserPbxLinkSuggestionCommand";
15
17
  export * from "./GetUserPbxLinkSuggestionV1Command";
16
18
  export * from "./ListBotApiKeysCommand";
17
19
  export * from "./ListBotsCommand";
20
+ export * from "./PartialUpdateUserEmailNotificationsSettingsCommand";
18
21
  export * from "./QueryColleaguesCommand";
19
22
  export * from "./QueryUserCommand";
20
23
  export * from "./QueryUsersCommand";
24
+ export * from "./ToggleTranscriptionEmailNotificationsSubscriptionCommand";
25
+ export * from "./ToggleUnreadEmailNotificationsSubscriptionCommand";
21
26
  export * from "./UpdateBotCommand";
22
27
  export * from "./UpdateBotCallbackCommand";
28
+ export * from "./UpdateUserEmailNotificationsSettingsCommand";
23
29
  export * from "./UploadPictureCommand";
24
30
  export * from "./UploadPictureV1Command";
25
31
  export * from "./VerifyBotSecretKeyCommand";