@wildix/xbees-users-client 1.0.32 → 1.0.34

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 +0 -12
  2. package/dist-cjs/commands/index.js +0 -6
  3. package/dist-cjs/models/models_0.js +37 -1
  4. package/dist-cjs/protocols/Aws_restJson1.js +120 -182
  5. package/dist-es/Users.js +0 -12
  6. package/dist-es/commands/index.js +0 -6
  7. package/dist-es/models/models_0.js +36 -0
  8. package/dist-es/protocols/Aws_restJson1.js +120 -170
  9. package/dist-types/Users.d.ts +0 -42
  10. package/dist-types/UsersClient.d.ts +2 -8
  11. package/dist-types/commands/CreateBotCommand.d.ts +49 -0
  12. package/dist-types/commands/GetBotCallbackCommand.d.ts +49 -0
  13. package/dist-types/commands/UpdateBotCallbackCommand.d.ts +98 -0
  14. package/dist-types/commands/index.d.ts +0 -6
  15. package/dist-types/models/models_0.d.ts +217 -132
  16. package/dist-types/protocols/Aws_restJson1.d.ts +0 -54
  17. package/package.json +5 -5
  18. package/dist-cjs/commands/BatchGetUsersEmailNotificationsSettingsCommand.js +0 -21
  19. package/dist-cjs/commands/GetUserEmailNotificationsSettingsCommand.js +0 -21
  20. package/dist-cjs/commands/PartialUpdateUserEmailNotificationsSettingsCommand.js +0 -21
  21. package/dist-cjs/commands/ToggleTranscriptionEmailNotificationsSubscriptionCommand.js +0 -21
  22. package/dist-cjs/commands/ToggleUnreadEmailNotificationsSubscriptionCommand.js +0 -21
  23. package/dist-cjs/commands/UpdateUserEmailNotificationsSettingsCommand.js +0 -21
  24. package/dist-es/commands/BatchGetUsersEmailNotificationsSettingsCommand.js +0 -17
  25. package/dist-es/commands/GetUserEmailNotificationsSettingsCommand.js +0 -17
  26. package/dist-es/commands/PartialUpdateUserEmailNotificationsSettingsCommand.js +0 -17
  27. package/dist-es/commands/ToggleTranscriptionEmailNotificationsSubscriptionCommand.js +0 -17
  28. package/dist-es/commands/ToggleUnreadEmailNotificationsSubscriptionCommand.js +0 -17
  29. package/dist-es/commands/UpdateUserEmailNotificationsSettingsCommand.js +0 -17
  30. package/dist-types/commands/BatchGetUsersEmailNotificationsSettingsCommand.d.ts +0 -71
  31. package/dist-types/commands/GetUserEmailNotificationsSettingsCommand.d.ts +0 -69
  32. package/dist-types/commands/PartialUpdateUserEmailNotificationsSettingsCommand.d.ts +0 -69
  33. package/dist-types/commands/ToggleTranscriptionEmailNotificationsSubscriptionCommand.d.ts +0 -63
  34. package/dist-types/commands/ToggleUnreadEmailNotificationsSubscriptionCommand.d.ts +0 -63
  35. package/dist-types/commands/UpdateUserEmailNotificationsSettingsCommand.d.ts +0 -69
@@ -76,9 +76,45 @@ export class BotApiKeyNotFoundException extends __BaseException {
76
76
  Object.setPrototypeOf(this, BotApiKeyNotFoundException.prototype);
77
77
  }
78
78
  }
79
+ export const BotEmbeddedToolType = {
80
+ DELEGATE: "DELEGATE",
81
+ TRANSFER: "HANDOVER",
82
+ };
83
+ export var BotFunctionIntegrationWebhookAuthorization;
84
+ (function (BotFunctionIntegrationWebhookAuthorization) {
85
+ BotFunctionIntegrationWebhookAuthorization.visit = (value, visitor) => {
86
+ if (value.bearer !== undefined)
87
+ return visitor.bearer(value.bearer);
88
+ if (value.basic !== undefined)
89
+ return visitor.basic(value.basic);
90
+ if (value.oauth !== undefined)
91
+ return visitor.oauth(value.oauth);
92
+ return visitor._(value.$unknown[0], value.$unknown[1]);
93
+ };
94
+ })(BotFunctionIntegrationWebhookAuthorization || (BotFunctionIntegrationWebhookAuthorization = {}));
95
+ export const BotFunctionIntegrationMethod = {
96
+ DELETE: "delete",
97
+ GET: "get",
98
+ PATCH: "patch",
99
+ POST: "post",
100
+ PUT: "put",
101
+ };
102
+ export var BotFunctionIntegration;
103
+ (function (BotFunctionIntegration) {
104
+ BotFunctionIntegration.visit = (value, visitor) => {
105
+ if (value.webhook !== undefined)
106
+ return visitor.webhook(value.webhook);
107
+ return visitor._(value.$unknown[0], value.$unknown[1]);
108
+ };
109
+ })(BotFunctionIntegration || (BotFunctionIntegration = {}));
110
+ export const BotToolType = {
111
+ FUNCTION: "function",
112
+ };
79
113
  export var BotEndpoint;
80
114
  (function (BotEndpoint) {
81
115
  BotEndpoint.visit = (value, visitor) => {
116
+ if (value.llm !== undefined)
117
+ return visitor.llm(value.llm);
82
118
  if (value.dialogflowCx !== undefined)
83
119
  return visitor.dialogflowCx(value.dialogflowCx);
84
120
  if (value.openAiAssistant !== undefined)
@@ -1,7 +1,7 @@
1
1
  import { UsersServiceException as __BaseException } from "../models/UsersServiceException";
2
- import { BotApiKeyNotFoundException, BotEndpoint, BotNotFoundException, BotSecretKeyNotValidException, ForbiddenException, UserCompanyNotValidException, UserNotFoundException, UserQueryPredicateNotMetException, ValidationException, } from "../models/models_0";
2
+ import { BotApiKeyNotFoundException, BotEndpoint, BotFunctionIntegration, BotNotFoundException, BotSecretKeyNotValidException, ForbiddenException, UserCompanyNotValidException, UserNotFoundException, UserQueryPredicateNotMetException, ValidationException, } from "../models/models_0";
3
3
  import { requestBuilder as rb } from "@smithy/core";
4
- import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, expectUnion as __expectUnion, _json, collectBody, map, take, withBaseException, } from "@smithy/smithy-client";
4
+ import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, expectUnion as __expectUnion, _json, collectBody, map, take, withBaseException, } from "@smithy/smithy-client";
5
5
  export const se_BatchGetUsersCommand = async (input, context) => {
6
6
  const b = rb(input, context);
7
7
  const headers = {
@@ -17,21 +17,6 @@ export const se_BatchGetUsersCommand = async (input, context) => {
17
17
  .b(body);
18
18
  return b.build();
19
19
  };
20
- export const se_BatchGetUsersEmailNotificationsSettingsCommand = async (input, context) => {
21
- const b = rb(input, context);
22
- const headers = {
23
- 'content-type': 'application/json',
24
- };
25
- b.bp("/v2/users/batch-get-users-email-notifications-settings");
26
- let body;
27
- body = JSON.stringify(take(input, {
28
- 'usersIds': _ => _json(_),
29
- }));
30
- b.m("POST")
31
- .h(headers)
32
- .b(body);
33
- return b.build();
34
- };
35
20
  export const se_BatchGetUsersPbxLinkDataCommand = async (input, context) => {
36
21
  const b = rb(input, context);
37
22
  const headers = {
@@ -212,17 +197,6 @@ export const se_GetUserCommand = async (input, context) => {
212
197
  .b(body);
213
198
  return b.build();
214
199
  };
215
- export const se_GetUserEmailNotificationsSettingsCommand = async (input, context) => {
216
- const b = rb(input, context);
217
- const headers = {};
218
- b.bp("/v2/users/cloud/{userId}/notifications/email");
219
- b.p('userId', () => input.userId, '{userId}', false);
220
- let body;
221
- b.m("GET")
222
- .h(headers)
223
- .b(body);
224
- return b.build();
225
- };
226
200
  export const se_GetUserPbxLinkDataCommand = async (input, context) => {
227
201
  const b = rb(input, context);
228
202
  const headers = {};
@@ -291,23 +265,6 @@ export const se_ListBotsCommand = async (input, context) => {
291
265
  .b(body);
292
266
  return b.build();
293
267
  };
294
- export const se_PartialUpdateUserEmailNotificationsSettingsCommand = async (input, context) => {
295
- const b = rb(input, context);
296
- const headers = {
297
- 'content-type': 'application/json',
298
- };
299
- b.bp("/v2/users/cloud/{userId}/notifications/email");
300
- b.p('userId', () => input.userId, '{userId}', false);
301
- let body;
302
- body = JSON.stringify(take(input, {
303
- 'transcription': [],
304
- 'unread': [],
305
- }));
306
- b.m("PATCH")
307
- .h(headers)
308
- .b(body);
309
- return b.build();
310
- };
311
268
  export const se_QueryColleaguesCommand = async (input, context) => {
312
269
  const b = rb(input, context);
313
270
  const headers = {
@@ -359,38 +316,6 @@ export const se_QueryUsersCommand = async (input, context) => {
359
316
  .b(body);
360
317
  return b.build();
361
318
  };
362
- export const se_ToggleTranscriptionEmailNotificationsSubscriptionCommand = async (input, context) => {
363
- const b = rb(input, context);
364
- const headers = {
365
- 'content-type': 'application/json',
366
- };
367
- b.bp("/v2/users/toggle-transcription-email-notifications-subscription");
368
- let body;
369
- body = JSON.stringify(take(input, {
370
- 'subscribe': [],
371
- 'unsubscribeToken': [],
372
- }));
373
- b.m("POST")
374
- .h(headers)
375
- .b(body);
376
- return b.build();
377
- };
378
- export const se_ToggleUnreadEmailNotificationsSubscriptionCommand = async (input, context) => {
379
- const b = rb(input, context);
380
- const headers = {
381
- 'content-type': 'application/json',
382
- };
383
- b.bp("/v2/users/toggle-unread-email-notifications-subscription");
384
- let body;
385
- body = JSON.stringify(take(input, {
386
- 'subscribe': [],
387
- 'unsubscribeToken': [],
388
- }));
389
- b.m("POST")
390
- .h(headers)
391
- .b(body);
392
- return b.build();
393
- };
394
319
  export const se_UpdateBotCommand = async (input, context) => {
395
320
  const b = rb(input, context);
396
321
  const headers = {
@@ -433,23 +358,6 @@ export const se_UpdateBotCallbackCommand = async (input, context) => {
433
358
  .b(body);
434
359
  return b.build();
435
360
  };
436
- export const se_UpdateUserEmailNotificationsSettingsCommand = async (input, context) => {
437
- const b = rb(input, context);
438
- const headers = {
439
- 'content-type': 'application/json',
440
- };
441
- b.bp("/v2/users/cloud/{userId}/notifications/email");
442
- b.p('userId', () => input.userId, '{userId}', false);
443
- let body;
444
- body = JSON.stringify(take(input, {
445
- 'transcription': [],
446
- 'unread': [],
447
- }));
448
- b.m("POST")
449
- .h(headers)
450
- .b(body);
451
- return b.build();
452
- };
453
361
  export const se_UploadPictureCommand = async (input, context) => {
454
362
  const b = rb(input, context);
455
363
  const headers = {
@@ -524,20 +432,6 @@ export const de_BatchGetUsersCommand = async (output, context) => {
524
432
  Object.assign(contents, doc);
525
433
  return contents;
526
434
  };
527
- export const de_BatchGetUsersEmailNotificationsSettingsCommand = async (output, context) => {
528
- if (output.statusCode !== 200 && output.statusCode >= 300) {
529
- return de_CommandError(output, context);
530
- }
531
- const contents = map({
532
- $metadata: deserializeMetadata(output),
533
- });
534
- const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
535
- const doc = take(data, {
536
- 'notifications': _json,
537
- });
538
- Object.assign(contents, doc);
539
- return contents;
540
- };
541
435
  export const de_BatchGetUsersPbxLinkDataCommand = async (output, context) => {
542
436
  if (output.statusCode !== 200 && output.statusCode >= 300) {
543
437
  return de_CommandError(output, context);
@@ -685,20 +579,6 @@ export const de_GetUserCommand = async (output, context) => {
685
579
  Object.assign(contents, doc);
686
580
  return contents;
687
581
  };
688
- export const de_GetUserEmailNotificationsSettingsCommand = async (output, context) => {
689
- if (output.statusCode !== 200 && output.statusCode >= 300) {
690
- return de_CommandError(output, context);
691
- }
692
- const contents = map({
693
- $metadata: deserializeMetadata(output),
694
- });
695
- const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
696
- const doc = take(data, {
697
- 'notifications': _json,
698
- });
699
- Object.assign(contents, doc);
700
- return contents;
701
- };
702
582
  export const de_GetUserPbxLinkDataCommand = async (output, context) => {
703
583
  if (output.statusCode !== 200 && output.statusCode >= 300) {
704
584
  return de_CommandError(output, context);
@@ -769,20 +649,6 @@ export const de_ListBotsCommand = async (output, context) => {
769
649
  Object.assign(contents, doc);
770
650
  return contents;
771
651
  };
772
- export const de_PartialUpdateUserEmailNotificationsSettingsCommand = async (output, context) => {
773
- if (output.statusCode !== 200 && output.statusCode >= 300) {
774
- return de_CommandError(output, context);
775
- }
776
- const contents = map({
777
- $metadata: deserializeMetadata(output),
778
- });
779
- const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
780
- const doc = take(data, {
781
- 'notifications': _json,
782
- });
783
- Object.assign(contents, doc);
784
- return contents;
785
- };
786
652
  export const de_QueryColleaguesCommand = async (output, context) => {
787
653
  if (output.statusCode !== 200 && output.statusCode >= 300) {
788
654
  return de_CommandError(output, context);
@@ -825,26 +691,6 @@ export const de_QueryUsersCommand = async (output, context) => {
825
691
  Object.assign(contents, doc);
826
692
  return contents;
827
693
  };
828
- export const de_ToggleTranscriptionEmailNotificationsSubscriptionCommand = async (output, context) => {
829
- if (output.statusCode !== 200 && output.statusCode >= 300) {
830
- return de_CommandError(output, context);
831
- }
832
- const contents = map({
833
- $metadata: deserializeMetadata(output),
834
- });
835
- await collectBody(output.body, context);
836
- return contents;
837
- };
838
- export const de_ToggleUnreadEmailNotificationsSubscriptionCommand = async (output, context) => {
839
- if (output.statusCode !== 200 && output.statusCode >= 300) {
840
- return de_CommandError(output, context);
841
- }
842
- const contents = map({
843
- $metadata: deserializeMetadata(output),
844
- });
845
- await collectBody(output.body, context);
846
- return contents;
847
- };
848
694
  export const de_UpdateBotCommand = async (output, context) => {
849
695
  if (output.statusCode !== 200 && output.statusCode >= 300) {
850
696
  return de_CommandError(output, context);
@@ -873,20 +719,6 @@ export const de_UpdateBotCallbackCommand = async (output, context) => {
873
719
  Object.assign(contents, doc);
874
720
  return contents;
875
721
  };
876
- export const de_UpdateUserEmailNotificationsSettingsCommand = async (output, context) => {
877
- if (output.statusCode !== 200 && output.statusCode >= 300) {
878
- return de_CommandError(output, context);
879
- }
880
- const contents = map({
881
- $metadata: deserializeMetadata(output),
882
- });
883
- const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
884
- const doc = take(data, {
885
- 'notifications': _json,
886
- });
887
- Object.assign(contents, doc);
888
- return contents;
889
- };
890
722
  export const de_UploadPictureCommand = async (output, context) => {
891
723
  if (output.statusCode !== 200 && output.statusCode >= 300) {
892
724
  return de_CommandError(output, context);
@@ -1108,15 +940,70 @@ const se_BotDialogflowCxEndpoint = (input, context) => {
1108
940
  'location': [],
1109
941
  });
1110
942
  };
943
+ const se_BotEmbeddedTool = (input, context) => {
944
+ return take(input, {
945
+ 'name': [],
946
+ 'parameters': _ => se_Document(_, context),
947
+ 'type': [],
948
+ });
949
+ };
950
+ const se_BotEmbeddedToolsList = (input, context) => {
951
+ return input.filter((e) => e != null).map(entry => {
952
+ return se_BotEmbeddedTool(entry, context);
953
+ });
954
+ };
1111
955
  const se_BotEndpoint = (input, context) => {
1112
956
  return BotEndpoint.visit(input, {
1113
957
  dialogflowCx: value => ({ "dialogflowCx": se_BotDialogflowCxEndpoint(value, context) }),
958
+ llm: value => ({ "llm": se_BotLlmEndpoint(value, context) }),
1114
959
  openAiAssistant: value => ({ "openAiAssistant": _json(value) }),
1115
960
  sqs: value => ({ "sqs": _json(value) }),
1116
961
  webhook: value => ({ "webhook": _json(value) }),
1117
962
  _: (name, value) => ({ name: value })
1118
963
  });
1119
964
  };
965
+ const se_BotFunctionDefinition = (input, context) => {
966
+ return take(input, {
967
+ 'description': [],
968
+ 'integration': _ => se_BotFunctionIntegration(_, context),
969
+ 'name': [],
970
+ 'parameters': _ => se_Document(_, context),
971
+ });
972
+ };
973
+ const se_BotFunctionIntegration = (input, context) => {
974
+ return BotFunctionIntegration.visit(input, {
975
+ webhook: value => ({ "webhook": se_BotFunctionIntegrationWebhook(value, context) }),
976
+ _: (name, value) => ({ name: value })
977
+ });
978
+ };
979
+ const se_BotFunctionIntegrationWebhook = (input, context) => {
980
+ return take(input, {
981
+ 'async': [],
982
+ 'authorization': _json,
983
+ 'headers': _json,
984
+ 'method': [],
985
+ 'parameters': _ => se_Document(_, context),
986
+ 'url': [],
987
+ });
988
+ };
989
+ const se_BotLlmEndpoint = (input, context) => {
990
+ return take(input, {
991
+ 'embeddedTools': _ => se_BotEmbeddedToolsList(_, context),
992
+ 'prompt': [],
993
+ 'tools': _ => se_BotToolsList(_, context),
994
+ });
995
+ };
996
+ const se_BotTool = (input, context) => {
997
+ return take(input, {
998
+ 'function': _ => se_BotFunctionDefinition(_, context),
999
+ 'type': [],
1000
+ });
1001
+ };
1002
+ const se_BotToolsList = (input, context) => {
1003
+ return input.filter((e) => e != null).map(entry => {
1004
+ return se_BotTool(entry, context);
1005
+ });
1006
+ };
1120
1007
  const de_Document = (output, context) => {
1121
1008
  return output;
1122
1009
  };
@@ -1133,12 +1020,30 @@ const de_BotDialogflowCxEndpoint = (output, context) => {
1133
1020
  'location': __expectString,
1134
1021
  });
1135
1022
  };
1023
+ const de_BotEmbeddedTool = (output, context) => {
1024
+ return take(output, {
1025
+ 'name': __expectString,
1026
+ 'parameters': (_) => de_Document(_, context),
1027
+ 'type': __expectString,
1028
+ });
1029
+ };
1030
+ const de_BotEmbeddedToolsList = (output, context) => {
1031
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
1032
+ return de_BotEmbeddedTool(entry, context);
1033
+ });
1034
+ return retVal;
1035
+ };
1136
1036
  const de_BotEndpoint = (output, context) => {
1137
1037
  if (output.dialogflowCx != null) {
1138
1038
  return {
1139
1039
  dialogflowCx: de_BotDialogflowCxEndpoint(output.dialogflowCx, context)
1140
1040
  };
1141
1041
  }
1042
+ if (output.llm != null) {
1043
+ return {
1044
+ llm: de_BotLlmEndpoint(output.llm, context)
1045
+ };
1046
+ }
1142
1047
  if (output.openAiAssistant != null) {
1143
1048
  return {
1144
1049
  openAiAssistant: _json(output.openAiAssistant)
@@ -1156,6 +1061,51 @@ const de_BotEndpoint = (output, context) => {
1156
1061
  }
1157
1062
  return { $unknown: Object.entries(output)[0] };
1158
1063
  };
1064
+ const de_BotFunctionDefinition = (output, context) => {
1065
+ return take(output, {
1066
+ 'description': __expectString,
1067
+ 'integration': (_) => de_BotFunctionIntegration(__expectUnion(_), context),
1068
+ 'name': __expectString,
1069
+ 'parameters': (_) => de_Document(_, context),
1070
+ });
1071
+ };
1072
+ const de_BotFunctionIntegration = (output, context) => {
1073
+ if (output.webhook != null) {
1074
+ return {
1075
+ webhook: de_BotFunctionIntegrationWebhook(output.webhook, context)
1076
+ };
1077
+ }
1078
+ return { $unknown: Object.entries(output)[0] };
1079
+ };
1080
+ const de_BotFunctionIntegrationWebhook = (output, context) => {
1081
+ return take(output, {
1082
+ 'async': __expectBoolean,
1083
+ 'authorization': (_) => _json(__expectUnion(_)),
1084
+ 'headers': _json,
1085
+ 'method': __expectString,
1086
+ 'parameters': (_) => de_Document(_, context),
1087
+ 'url': __expectString,
1088
+ });
1089
+ };
1090
+ const de_BotLlmEndpoint = (output, context) => {
1091
+ return take(output, {
1092
+ 'embeddedTools': (_) => de_BotEmbeddedToolsList(_, context),
1093
+ 'prompt': __expectString,
1094
+ 'tools': (_) => de_BotToolsList(_, context),
1095
+ });
1096
+ };
1097
+ const de_BotTool = (output, context) => {
1098
+ return take(output, {
1099
+ 'function': (_) => de_BotFunctionDefinition(_, context),
1100
+ 'type': __expectString,
1101
+ });
1102
+ };
1103
+ const de_BotToolsList = (output, context) => {
1104
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
1105
+ return de_BotTool(entry, context);
1106
+ });
1107
+ return retVal;
1108
+ };
1159
1109
  const deserializeMetadata = (output) => ({
1160
1110
  httpStatusCode: output.statusCode,
1161
1111
  requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
@@ -1,6 +1,5 @@
1
1
  import { UsersClient } from "./UsersClient";
2
2
  import { BatchGetUsersCommandInput, BatchGetUsersCommandOutput } from "./commands/BatchGetUsersCommand";
3
- import { BatchGetUsersEmailNotificationsSettingsCommandInput, BatchGetUsersEmailNotificationsSettingsCommandOutput } from "./commands/BatchGetUsersEmailNotificationsSettingsCommand";
4
3
  import { BatchGetUsersPbxLinkDataCommandInput, BatchGetUsersPbxLinkDataCommandOutput } from "./commands/BatchGetUsersPbxLinkDataCommand";
5
4
  import { BatchGetUsersPbxLinkDataV1CommandInput, BatchGetUsersPbxLinkDataV1CommandOutput } from "./commands/BatchGetUsersPbxLinkDataV1Command";
6
5
  import { ChangeUserEmailCommandInput, ChangeUserEmailCommandOutput } from "./commands/ChangeUserEmailCommand";
@@ -12,21 +11,16 @@ import { DeleteBotCommandInput, DeleteBotCommandOutput } from "./commands/Delete
12
11
  import { GetBotCallbackCommandInput, GetBotCallbackCommandOutput } from "./commands/GetBotCallbackCommand";
13
12
  import { GetBotCommandInput, GetBotCommandOutput } from "./commands/GetBotCommand";
14
13
  import { GetUserCommandInput, GetUserCommandOutput } from "./commands/GetUserCommand";
15
- import { GetUserEmailNotificationsSettingsCommandInput, GetUserEmailNotificationsSettingsCommandOutput } from "./commands/GetUserEmailNotificationsSettingsCommand";
16
14
  import { GetUserPbxLinkDataCommandInput, GetUserPbxLinkDataCommandOutput } from "./commands/GetUserPbxLinkDataCommand";
17
15
  import { GetUserPbxLinkSuggestionCommandInput, GetUserPbxLinkSuggestionCommandOutput } from "./commands/GetUserPbxLinkSuggestionCommand";
18
16
  import { GetUserPbxLinkSuggestionV1CommandInput, GetUserPbxLinkSuggestionV1CommandOutput } from "./commands/GetUserPbxLinkSuggestionV1Command";
19
17
  import { ListBotApiKeysCommandInput, ListBotApiKeysCommandOutput } from "./commands/ListBotApiKeysCommand";
20
18
  import { ListBotsCommandInput, ListBotsCommandOutput } from "./commands/ListBotsCommand";
21
- import { PartialUpdateUserEmailNotificationsSettingsCommandInput, PartialUpdateUserEmailNotificationsSettingsCommandOutput } from "./commands/PartialUpdateUserEmailNotificationsSettingsCommand";
22
19
  import { QueryColleaguesCommandInput, QueryColleaguesCommandOutput } from "./commands/QueryColleaguesCommand";
23
20
  import { QueryUserCommandInput, QueryUserCommandOutput } from "./commands/QueryUserCommand";
24
21
  import { QueryUsersCommandInput, QueryUsersCommandOutput } from "./commands/QueryUsersCommand";
25
- import { ToggleTranscriptionEmailNotificationsSubscriptionCommandInput, ToggleTranscriptionEmailNotificationsSubscriptionCommandOutput } from "./commands/ToggleTranscriptionEmailNotificationsSubscriptionCommand";
26
- import { ToggleUnreadEmailNotificationsSubscriptionCommandInput, ToggleUnreadEmailNotificationsSubscriptionCommandOutput } from "./commands/ToggleUnreadEmailNotificationsSubscriptionCommand";
27
22
  import { UpdateBotCallbackCommandInput, UpdateBotCallbackCommandOutput } from "./commands/UpdateBotCallbackCommand";
28
23
  import { UpdateBotCommandInput, UpdateBotCommandOutput } from "./commands/UpdateBotCommand";
29
- import { UpdateUserEmailNotificationsSettingsCommandInput, UpdateUserEmailNotificationsSettingsCommandOutput } from "./commands/UpdateUserEmailNotificationsSettingsCommand";
30
24
  import { UploadPictureCommandInput, UploadPictureCommandOutput } from "./commands/UploadPictureCommand";
31
25
  import { UploadPictureV1CommandInput, UploadPictureV1CommandOutput } from "./commands/UploadPictureV1Command";
32
26
  import { VerifyBotSecretKeyCommandInput, VerifyBotSecretKeyCommandOutput } from "./commands/VerifyBotSecretKeyCommand";
@@ -39,12 +33,6 @@ export interface Users {
39
33
  batchGetUsers(args: BatchGetUsersCommandInput, options?: __HttpHandlerOptions): Promise<BatchGetUsersCommandOutput>;
40
34
  batchGetUsers(args: BatchGetUsersCommandInput, cb: (err: any, data?: BatchGetUsersCommandOutput) => void): void;
41
35
  batchGetUsers(args: BatchGetUsersCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: BatchGetUsersCommandOutput) => void): void;
42
- /**
43
- * @see {@link BatchGetUsersEmailNotificationsSettingsCommand}
44
- */
45
- batchGetUsersEmailNotificationsSettings(args: BatchGetUsersEmailNotificationsSettingsCommandInput, options?: __HttpHandlerOptions): Promise<BatchGetUsersEmailNotificationsSettingsCommandOutput>;
46
- batchGetUsersEmailNotificationsSettings(args: BatchGetUsersEmailNotificationsSettingsCommandInput, cb: (err: any, data?: BatchGetUsersEmailNotificationsSettingsCommandOutput) => void): void;
47
- batchGetUsersEmailNotificationsSettings(args: BatchGetUsersEmailNotificationsSettingsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: BatchGetUsersEmailNotificationsSettingsCommandOutput) => void): void;
48
36
  /**
49
37
  * @see {@link BatchGetUsersPbxLinkDataCommand}
50
38
  */
@@ -111,12 +99,6 @@ export interface Users {
111
99
  getUser(args: GetUserCommandInput, options?: __HttpHandlerOptions): Promise<GetUserCommandOutput>;
112
100
  getUser(args: GetUserCommandInput, cb: (err: any, data?: GetUserCommandOutput) => void): void;
113
101
  getUser(args: GetUserCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetUserCommandOutput) => void): void;
114
- /**
115
- * @see {@link GetUserEmailNotificationsSettingsCommand}
116
- */
117
- getUserEmailNotificationsSettings(args: GetUserEmailNotificationsSettingsCommandInput, options?: __HttpHandlerOptions): Promise<GetUserEmailNotificationsSettingsCommandOutput>;
118
- getUserEmailNotificationsSettings(args: GetUserEmailNotificationsSettingsCommandInput, cb: (err: any, data?: GetUserEmailNotificationsSettingsCommandOutput) => void): void;
119
- getUserEmailNotificationsSettings(args: GetUserEmailNotificationsSettingsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetUserEmailNotificationsSettingsCommandOutput) => void): void;
120
102
  /**
121
103
  * @see {@link GetUserPbxLinkDataCommand}
122
104
  */
@@ -150,12 +132,6 @@ export interface Users {
150
132
  listBots(args: ListBotsCommandInput, options?: __HttpHandlerOptions): Promise<ListBotsCommandOutput>;
151
133
  listBots(args: ListBotsCommandInput, cb: (err: any, data?: ListBotsCommandOutput) => void): void;
152
134
  listBots(args: ListBotsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListBotsCommandOutput) => void): void;
153
- /**
154
- * @see {@link PartialUpdateUserEmailNotificationsSettingsCommand}
155
- */
156
- partialUpdateUserEmailNotificationsSettings(args: PartialUpdateUserEmailNotificationsSettingsCommandInput, options?: __HttpHandlerOptions): Promise<PartialUpdateUserEmailNotificationsSettingsCommandOutput>;
157
- partialUpdateUserEmailNotificationsSettings(args: PartialUpdateUserEmailNotificationsSettingsCommandInput, cb: (err: any, data?: PartialUpdateUserEmailNotificationsSettingsCommandOutput) => void): void;
158
- partialUpdateUserEmailNotificationsSettings(args: PartialUpdateUserEmailNotificationsSettingsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PartialUpdateUserEmailNotificationsSettingsCommandOutput) => void): void;
159
135
  /**
160
136
  * @see {@link QueryColleaguesCommand}
161
137
  */
@@ -175,18 +151,6 @@ export interface Users {
175
151
  queryUsers(args: QueryUsersCommandInput, options?: __HttpHandlerOptions): Promise<QueryUsersCommandOutput>;
176
152
  queryUsers(args: QueryUsersCommandInput, cb: (err: any, data?: QueryUsersCommandOutput) => void): void;
177
153
  queryUsers(args: QueryUsersCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: QueryUsersCommandOutput) => void): void;
178
- /**
179
- * @see {@link ToggleTranscriptionEmailNotificationsSubscriptionCommand}
180
- */
181
- toggleTranscriptionEmailNotificationsSubscription(args: ToggleTranscriptionEmailNotificationsSubscriptionCommandInput, options?: __HttpHandlerOptions): Promise<ToggleTranscriptionEmailNotificationsSubscriptionCommandOutput>;
182
- toggleTranscriptionEmailNotificationsSubscription(args: ToggleTranscriptionEmailNotificationsSubscriptionCommandInput, cb: (err: any, data?: ToggleTranscriptionEmailNotificationsSubscriptionCommandOutput) => void): void;
183
- toggleTranscriptionEmailNotificationsSubscription(args: ToggleTranscriptionEmailNotificationsSubscriptionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ToggleTranscriptionEmailNotificationsSubscriptionCommandOutput) => void): void;
184
- /**
185
- * @see {@link ToggleUnreadEmailNotificationsSubscriptionCommand}
186
- */
187
- toggleUnreadEmailNotificationsSubscription(args: ToggleUnreadEmailNotificationsSubscriptionCommandInput, options?: __HttpHandlerOptions): Promise<ToggleUnreadEmailNotificationsSubscriptionCommandOutput>;
188
- toggleUnreadEmailNotificationsSubscription(args: ToggleUnreadEmailNotificationsSubscriptionCommandInput, cb: (err: any, data?: ToggleUnreadEmailNotificationsSubscriptionCommandOutput) => void): void;
189
- toggleUnreadEmailNotificationsSubscription(args: ToggleUnreadEmailNotificationsSubscriptionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ToggleUnreadEmailNotificationsSubscriptionCommandOutput) => void): void;
190
154
  /**
191
155
  * @see {@link UpdateBotCommand}
192
156
  */
@@ -199,12 +163,6 @@ export interface Users {
199
163
  updateBotCallback(args: UpdateBotCallbackCommandInput, options?: __HttpHandlerOptions): Promise<UpdateBotCallbackCommandOutput>;
200
164
  updateBotCallback(args: UpdateBotCallbackCommandInput, cb: (err: any, data?: UpdateBotCallbackCommandOutput) => void): void;
201
165
  updateBotCallback(args: UpdateBotCallbackCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateBotCallbackCommandOutput) => void): void;
202
- /**
203
- * @see {@link UpdateUserEmailNotificationsSettingsCommand}
204
- */
205
- updateUserEmailNotificationsSettings(args: UpdateUserEmailNotificationsSettingsCommandInput, options?: __HttpHandlerOptions): Promise<UpdateUserEmailNotificationsSettingsCommandOutput>;
206
- updateUserEmailNotificationsSettings(args: UpdateUserEmailNotificationsSettingsCommandInput, cb: (err: any, data?: UpdateUserEmailNotificationsSettingsCommandOutput) => void): void;
207
- updateUserEmailNotificationsSettings(args: UpdateUserEmailNotificationsSettingsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateUserEmailNotificationsSettingsCommandOutput) => void): void;
208
166
  /**
209
167
  * @see {@link UploadPictureCommand}
210
168
  */
@@ -1,5 +1,4 @@
1
1
  import { BatchGetUsersCommandInput, BatchGetUsersCommandOutput } from "./commands/BatchGetUsersCommand";
2
- import { BatchGetUsersEmailNotificationsSettingsCommandInput, BatchGetUsersEmailNotificationsSettingsCommandOutput } from "./commands/BatchGetUsersEmailNotificationsSettingsCommand";
3
2
  import { BatchGetUsersPbxLinkDataCommandInput, BatchGetUsersPbxLinkDataCommandOutput } from "./commands/BatchGetUsersPbxLinkDataCommand";
4
3
  import { BatchGetUsersPbxLinkDataV1CommandInput, BatchGetUsersPbxLinkDataV1CommandOutput } from "./commands/BatchGetUsersPbxLinkDataV1Command";
5
4
  import { ChangeUserEmailCommandInput, ChangeUserEmailCommandOutput } from "./commands/ChangeUserEmailCommand";
@@ -11,21 +10,16 @@ import { DeleteBotCommandInput, DeleteBotCommandOutput } from "./commands/Delete
11
10
  import { GetBotCallbackCommandInput, GetBotCallbackCommandOutput } from "./commands/GetBotCallbackCommand";
12
11
  import { GetBotCommandInput, GetBotCommandOutput } from "./commands/GetBotCommand";
13
12
  import { GetUserCommandInput, GetUserCommandOutput } from "./commands/GetUserCommand";
14
- import { GetUserEmailNotificationsSettingsCommandInput, GetUserEmailNotificationsSettingsCommandOutput } from "./commands/GetUserEmailNotificationsSettingsCommand";
15
13
  import { GetUserPbxLinkDataCommandInput, GetUserPbxLinkDataCommandOutput } from "./commands/GetUserPbxLinkDataCommand";
16
14
  import { GetUserPbxLinkSuggestionCommandInput, GetUserPbxLinkSuggestionCommandOutput } from "./commands/GetUserPbxLinkSuggestionCommand";
17
15
  import { GetUserPbxLinkSuggestionV1CommandInput, GetUserPbxLinkSuggestionV1CommandOutput } from "./commands/GetUserPbxLinkSuggestionV1Command";
18
16
  import { ListBotApiKeysCommandInput, ListBotApiKeysCommandOutput } from "./commands/ListBotApiKeysCommand";
19
17
  import { ListBotsCommandInput, ListBotsCommandOutput } from "./commands/ListBotsCommand";
20
- import { PartialUpdateUserEmailNotificationsSettingsCommandInput, PartialUpdateUserEmailNotificationsSettingsCommandOutput } from "./commands/PartialUpdateUserEmailNotificationsSettingsCommand";
21
18
  import { QueryColleaguesCommandInput, QueryColleaguesCommandOutput } from "./commands/QueryColleaguesCommand";
22
19
  import { QueryUserCommandInput, QueryUserCommandOutput } from "./commands/QueryUserCommand";
23
20
  import { QueryUsersCommandInput, QueryUsersCommandOutput } from "./commands/QueryUsersCommand";
24
- import { ToggleTranscriptionEmailNotificationsSubscriptionCommandInput, ToggleTranscriptionEmailNotificationsSubscriptionCommandOutput } from "./commands/ToggleTranscriptionEmailNotificationsSubscriptionCommand";
25
- import { ToggleUnreadEmailNotificationsSubscriptionCommandInput, ToggleUnreadEmailNotificationsSubscriptionCommandOutput } from "./commands/ToggleUnreadEmailNotificationsSubscriptionCommand";
26
21
  import { UpdateBotCallbackCommandInput, UpdateBotCallbackCommandOutput } from "./commands/UpdateBotCallbackCommand";
27
22
  import { UpdateBotCommandInput, UpdateBotCommandOutput } from "./commands/UpdateBotCommand";
28
- import { UpdateUserEmailNotificationsSettingsCommandInput, UpdateUserEmailNotificationsSettingsCommandOutput } from "./commands/UpdateUserEmailNotificationsSettingsCommand";
29
23
  import { UploadPictureCommandInput, UploadPictureCommandOutput } from "./commands/UploadPictureCommand";
30
24
  import { UploadPictureV1CommandInput, UploadPictureV1CommandOutput } from "./commands/UploadPictureV1Command";
31
25
  import { VerifyBotSecretKeyCommandInput, VerifyBotSecretKeyCommandOutput } from "./commands/VerifyBotSecretKeyCommand";
@@ -41,11 +35,11 @@ export { __Client };
41
35
  /**
42
36
  * @public
43
37
  */
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 | ToggleTranscriptionEmailNotificationsSubscriptionCommandInput | ToggleUnreadEmailNotificationsSubscriptionCommandInput | UpdateBotCallbackCommandInput | UpdateBotCommandInput | UpdateUserEmailNotificationsSettingsCommandInput | UploadPictureCommandInput | UploadPictureV1CommandInput | VerifyBotSecretKeyCommandInput | VerifyBotSecretKeyV1CommandInput;
38
+ export type ServiceInputTypes = BatchGetUsersCommandInput | BatchGetUsersPbxLinkDataCommandInput | BatchGetUsersPbxLinkDataV1CommandInput | ChangeUserEmailCommandInput | CreateBotApiKeyCommandInput | CreateBotCommandInput | CreateSystemBotCommandInput | DeleteBotApiKeyCommandInput | DeleteBotCommandInput | GetBotCallbackCommandInput | GetBotCommandInput | GetUserCommandInput | GetUserPbxLinkDataCommandInput | GetUserPbxLinkSuggestionCommandInput | GetUserPbxLinkSuggestionV1CommandInput | ListBotApiKeysCommandInput | ListBotsCommandInput | QueryColleaguesCommandInput | QueryUserCommandInput | QueryUsersCommandInput | UpdateBotCallbackCommandInput | UpdateBotCommandInput | UploadPictureCommandInput | UploadPictureV1CommandInput | VerifyBotSecretKeyCommandInput | VerifyBotSecretKeyV1CommandInput;
45
39
  /**
46
40
  * @public
47
41
  */
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 | ToggleTranscriptionEmailNotificationsSubscriptionCommandOutput | ToggleUnreadEmailNotificationsSubscriptionCommandOutput | UpdateBotCallbackCommandOutput | UpdateBotCommandOutput | UpdateUserEmailNotificationsSettingsCommandOutput | UploadPictureCommandOutput | UploadPictureV1CommandOutput | VerifyBotSecretKeyCommandOutput | VerifyBotSecretKeyV1CommandOutput;
42
+ export type ServiceOutputTypes = BatchGetUsersCommandOutput | BatchGetUsersPbxLinkDataCommandOutput | BatchGetUsersPbxLinkDataV1CommandOutput | ChangeUserEmailCommandOutput | CreateBotApiKeyCommandOutput | CreateBotCommandOutput | CreateSystemBotCommandOutput | DeleteBotApiKeyCommandOutput | DeleteBotCommandOutput | GetBotCallbackCommandOutput | GetBotCommandOutput | GetUserCommandOutput | GetUserPbxLinkDataCommandOutput | GetUserPbxLinkSuggestionCommandOutput | GetUserPbxLinkSuggestionV1CommandOutput | ListBotApiKeysCommandOutput | ListBotsCommandOutput | QueryColleaguesCommandOutput | QueryUserCommandOutput | QueryUsersCommandOutput | UpdateBotCallbackCommandOutput | UpdateBotCommandOutput | UploadPictureCommandOutput | UploadPictureV1CommandOutput | VerifyBotSecretKeyCommandOutput | VerifyBotSecretKeyV1CommandOutput;
49
43
  /**
50
44
  * @public
51
45
  */
@@ -42,6 +42,55 @@ declare const CreateBotCommand_base: {
42
42
  * searchable: true || false,
43
43
  * callback: { // BotCallback
44
44
  * endpoint: { // BotEndpoint Union: only one key present
45
+ * llm: { // BotLlmEndpoint
46
+ * prompt: "STRING_VALUE", // required
47
+ * embeddedTools: [ // BotEmbeddedToolsList
48
+ * { // BotEmbeddedTool
49
+ * type: "HANDOVER" || "DELEGATE", // required
50
+ * name: "STRING_VALUE", // required
51
+ * parameters: "DOCUMENT_VALUE",
52
+ * },
53
+ * ],
54
+ * tools: [ // BotToolsList
55
+ * { // BotTool
56
+ * type: "function", // required
57
+ * function: { // BotFunctionDefinition
58
+ * name: "STRING_VALUE", // required
59
+ * description: "STRING_VALUE",
60
+ * parameters: "DOCUMENT_VALUE",
61
+ * integration: { // BotFunctionIntegration Union: only one key present
62
+ * webhook: { // BotFunctionIntegrationWebhook
63
+ * url: "STRING_VALUE", // required
64
+ * method: "get" || "post" || "put" || "delete" || "patch",
65
+ * async: true || false,
66
+ * authorization: { // BotFunctionIntegrationWebhookAuthorization Union: only one key present
67
+ * bearer: { // BotFunctionIntegrationWebhookAuthorizationBearer
68
+ * token: "STRING_VALUE", // required
69
+ * },
70
+ * basic: { // BotFunctionIntegrationWebhookAuthorizationBasic
71
+ * username: "STRING_VALUE", // required
72
+ * password: "STRING_VALUE", // required
73
+ * },
74
+ * oauth: { // BotFunctionIntegrationWebhookAuthorizationOAuth
75
+ * clientId: "STRING_VALUE", // required
76
+ * clientSecret: "STRING_VALUE", // required
77
+ * endpointUrl: "STRING_VALUE", // required
78
+ * scope: "STRING_VALUE",
79
+ * },
80
+ * },
81
+ * headers: [ // BotFunctionIntegrationWebhookHeadersList
82
+ * { // BotFunctionIntegrationWebhookHeader
83
+ * key: "STRING_VALUE", // required
84
+ * value: "STRING_VALUE", // required
85
+ * },
86
+ * ],
87
+ * parameters: "DOCUMENT_VALUE",
88
+ * },
89
+ * },
90
+ * },
91
+ * },
92
+ * ],
93
+ * },
45
94
  * dialogflowCx: { // BotDialogflowCxEndpoint
46
95
  * credentials: "DOCUMENT_VALUE", // required
47
96
  * agent: "STRING_VALUE", // required