@wildix/xbees-users-client 1.0.28 → 1.0.29

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 (34) hide show
  1. package/dist-cjs/Users.js +12 -4
  2. package/dist-cjs/commands/BatchGetUsersEmailNotificationsSettingsCommand.js +21 -0
  3. package/dist-cjs/commands/{GetUserSettingsCommand.js → GetUserEmailNotificationsSettingsCommand.js} +7 -7
  4. package/dist-cjs/commands/PartialUpdateUserEmailNotificationsSettingsCommand.js +21 -0
  5. package/dist-cjs/commands/UnsubscribeFromTranscriptionEmailNotificationsCommand.js +21 -0
  6. package/dist-cjs/commands/UnsubscribeFromUnreadEmailNotificationsCommand.js +21 -0
  7. package/dist-cjs/commands/{PartialUpdateUserSettingsCommand.js → UpdateUserEmailNotificationsSettingsCommand.js} +7 -7
  8. package/dist-cjs/commands/index.js +6 -2
  9. package/dist-cjs/protocols/Aws_restJson1.js +152 -43
  10. package/dist-es/Users.js +12 -4
  11. package/dist-es/commands/BatchGetUsersEmailNotificationsSettingsCommand.js +17 -0
  12. package/dist-es/commands/GetUserEmailNotificationsSettingsCommand.js +17 -0
  13. package/dist-es/commands/PartialUpdateUserEmailNotificationsSettingsCommand.js +17 -0
  14. package/dist-es/commands/UnsubscribeFromTranscriptionEmailNotificationsCommand.js +17 -0
  15. package/dist-es/commands/UnsubscribeFromUnreadEmailNotificationsCommand.js +17 -0
  16. package/dist-es/commands/UpdateUserEmailNotificationsSettingsCommand.js +17 -0
  17. package/dist-es/commands/index.js +6 -2
  18. package/dist-es/protocols/Aws_restJson1.js +134 -33
  19. package/dist-types/Users.d.ts +40 -13
  20. package/dist-types/UsersClient.d.ts +8 -4
  21. package/dist-types/commands/BatchGetUsersEmailNotificationsSettingsCommand.d.ts +71 -0
  22. package/dist-types/commands/GetUserEmailNotificationsSettingsCommand.d.ts +69 -0
  23. package/dist-types/commands/PartialUpdateUserEmailNotificationsSettingsCommand.d.ts +69 -0
  24. package/dist-types/commands/UnsubscribeFromTranscriptionEmailNotificationsCommand.d.ts +62 -0
  25. package/dist-types/commands/UnsubscribeFromUnreadEmailNotificationsCommand.d.ts +62 -0
  26. package/dist-types/commands/UpdateUserEmailNotificationsSettingsCommand.d.ts +69 -0
  27. package/dist-types/commands/index.d.ts +6 -2
  28. package/dist-types/models/models_0.d.ts +101 -62
  29. package/dist-types/protocols/Aws_restJson1.d.ts +50 -14
  30. package/package.json +2 -2
  31. package/dist-es/commands/GetUserSettingsCommand.js +0 -17
  32. package/dist-es/commands/PartialUpdateUserSettingsCommand.js +0 -17
  33. package/dist-types/commands/GetUserSettingsCommand.d.ts +0 -69
  34. package/dist-types/commands/PartialUpdateUserSettingsCommand.d.ts +0 -76
@@ -214,6 +214,37 @@ export interface BatchGetUsersOutput {
214
214
  */
215
215
  users: (User)[];
216
216
  }
217
+ /**
218
+ * @public
219
+ */
220
+ export interface BatchGetUsersEmailNotificationsSettingsInput {
221
+ /**
222
+ * List of the unique identifier of the user
223
+ * @public
224
+ */
225
+ usersIds: (string)[];
226
+ }
227
+ /**
228
+ * @public
229
+ */
230
+ export interface UserEmailNotificationsSettings {
231
+ /**
232
+ * A flag that indicates whether the system should send email notifications about unread messages.
233
+ * @public
234
+ */
235
+ unread: boolean;
236
+ /**
237
+ * A flag that indicates whether the system should send email notifications about AI transcription.
238
+ * @public
239
+ */
240
+ transcription: boolean;
241
+ }
242
+ /**
243
+ * @public
244
+ */
245
+ export interface BatchGetUsersEmailNotificationsSettingsOutput {
246
+ notifications: Record<string, UserEmailNotificationsSettings>;
247
+ }
217
248
  /**
218
249
  * @public
219
250
  */
@@ -751,21 +782,6 @@ export interface DeleteBotApiKeyInput {
751
782
  */
752
783
  export interface DeleteBotApiKeyOutput {
753
784
  }
754
- /**
755
- * @public
756
- */
757
- export interface EmailNotificationsSettings {
758
- /**
759
- * Indicates whether the user wants to receive email notifications about unread messages.
760
- * @public
761
- */
762
- unread: boolean;
763
- /**
764
- * Indicates whether the user wants to receive email notifications about AI transcription.
765
- * @public
766
- */
767
- transcription: boolean;
768
- }
769
785
  /**
770
786
  * @public
771
787
  */
@@ -808,6 +824,22 @@ export interface GetUserInput {
808
824
  export interface GetUserOutput {
809
825
  user: User;
810
826
  }
827
+ /**
828
+ * @public
829
+ */
830
+ export interface GetUserEmailNotificationsSettingsInput {
831
+ /**
832
+ * The unique identifier of the user (Cloud ID, not ID of the user on PBX).
833
+ * @public
834
+ */
835
+ userId: string;
836
+ }
837
+ /**
838
+ * @public
839
+ */
840
+ export interface GetUserEmailNotificationsSettingsOutput {
841
+ notifications: UserEmailNotificationsSettings;
842
+ }
811
843
  /**
812
844
  * @public
813
845
  */
@@ -879,26 +911,6 @@ export interface GetUserPbxLinkSuggestionV1Output {
879
911
  */
880
912
  suggestion?: UserPbxLinkSuggestion;
881
913
  }
882
- /**
883
- * @public
884
- */
885
- export interface GetUserSettingsInput {
886
- /**
887
- * The unique identifier of the user (Cloud ID, not ID of the user on PBX).
888
- * @public
889
- */
890
- userId?: string;
891
- }
892
- /**
893
- * @public
894
- */
895
- export interface GetUserSettingsOutput {
896
- /**
897
- * Indicates whether the user wants to receive email notifications.
898
- * @public
899
- */
900
- emailNotifications?: EmailNotificationsSettings;
901
- }
902
914
  /**
903
915
  * @public
904
916
  */
@@ -927,49 +939,28 @@ export interface ListBotsOutput {
927
939
  /**
928
940
  * @public
929
941
  */
930
- export interface PartialEmailNotificationsSettings {
942
+ export interface PartialUpdateUserEmailNotificationsSettingsInput {
931
943
  /**
932
- * Indicates whether the user wants to receive email notifications about unread messages.
944
+ * A flag that indicates whether the system should send email notifications about unread messages.
933
945
  * @public
934
946
  */
935
947
  unread?: boolean;
936
948
  /**
937
- * Indicates whether the user wants to receive email notifications about AI transcription.
949
+ * A flag that indicates whether the system should send email notifications about AI transcription.
938
950
  * @public
939
951
  */
940
952
  transcription?: boolean;
941
- }
942
- /**
943
- * @public
944
- */
945
- export interface PartialUserSettings {
946
- /**
947
- * Indicates whether the user wants to receive email notifications.
948
- * @public
949
- */
950
- emailNotifications?: PartialEmailNotificationsSettings;
951
- }
952
- /**
953
- * @public
954
- */
955
- export interface PartialUpdateUserSettingsInput {
956
953
  /**
957
954
  * The unique identifier of the user (Cloud ID, not ID of the user on PBX).
958
955
  * @public
959
956
  */
960
- userId?: string;
961
- /**
962
- * Email unsubscribe token.
963
- * @public
964
- */
965
- token?: string;
966
- settings: PartialUserSettings;
957
+ userId: string;
967
958
  }
968
959
  /**
969
960
  * @public
970
961
  */
971
- export interface PartialUpdateUserSettingsOutput {
972
- emailNotifications?: EmailNotificationsSettings;
962
+ export interface PartialUpdateUserEmailNotificationsSettingsOutput {
963
+ notifications: UserEmailNotificationsSettings;
973
964
  }
974
965
  /**
975
966
  * @public
@@ -1136,6 +1127,28 @@ export interface QueryUsersOutput {
1136
1127
  */
1137
1128
  users: (User)[];
1138
1129
  }
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
+ }
1139
1152
  /**
1140
1153
  * @public
1141
1154
  */
@@ -1166,6 +1179,32 @@ export interface UpdateBotCallbackInput {
1166
1179
  export interface UpdateBotCallbackOutput {
1167
1180
  callback: BotCallback;
1168
1181
  }
1182
+ /**
1183
+ * @public
1184
+ */
1185
+ export interface UpdateUserEmailNotificationsSettingsInput {
1186
+ /**
1187
+ * A flag that indicates whether the system should send email notifications about unread messages.
1188
+ * @public
1189
+ */
1190
+ unread?: boolean;
1191
+ /**
1192
+ * A flag that indicates whether the system should send email notifications about AI transcription.
1193
+ * @public
1194
+ */
1195
+ transcription?: boolean;
1196
+ /**
1197
+ * The unique identifier of the user (Cloud ID, not ID of the user on PBX).
1198
+ * @public
1199
+ */
1200
+ userId: string;
1201
+ }
1202
+ /**
1203
+ * @public
1204
+ */
1205
+ export interface UpdateUserEmailNotificationsSettingsOutput {
1206
+ notifications: UserEmailNotificationsSettings;
1207
+ }
1169
1208
  /**
1170
1209
  * @public
1171
1210
  */
@@ -1,4 +1,5 @@
1
1
  import { BatchGetUsersCommandInput, BatchGetUsersCommandOutput } from "../commands/BatchGetUsersCommand";
2
+ import { BatchGetUsersEmailNotificationsSettingsCommandInput, BatchGetUsersEmailNotificationsSettingsCommandOutput } from "../commands/BatchGetUsersEmailNotificationsSettingsCommand";
2
3
  import { BatchGetUsersPbxLinkDataCommandInput, BatchGetUsersPbxLinkDataCommandOutput } from "../commands/BatchGetUsersPbxLinkDataCommand";
3
4
  import { BatchGetUsersPbxLinkDataV1CommandInput, BatchGetUsersPbxLinkDataV1CommandOutput } from "../commands/BatchGetUsersPbxLinkDataV1Command";
4
5
  import { ChangeUserEmailCommandInput, ChangeUserEmailCommandOutput } from "../commands/ChangeUserEmailCommand";
@@ -10,18 +11,21 @@ import { DeleteBotCommandInput, DeleteBotCommandOutput } from "../commands/Delet
10
11
  import { GetBotCallbackCommandInput, GetBotCallbackCommandOutput } from "../commands/GetBotCallbackCommand";
11
12
  import { GetBotCommandInput, GetBotCommandOutput } from "../commands/GetBotCommand";
12
13
  import { GetUserCommandInput, GetUserCommandOutput } from "../commands/GetUserCommand";
14
+ import { GetUserEmailNotificationsSettingsCommandInput, GetUserEmailNotificationsSettingsCommandOutput } from "../commands/GetUserEmailNotificationsSettingsCommand";
13
15
  import { GetUserPbxLinkDataCommandInput, GetUserPbxLinkDataCommandOutput } from "../commands/GetUserPbxLinkDataCommand";
14
16
  import { GetUserPbxLinkSuggestionCommandInput, GetUserPbxLinkSuggestionCommandOutput } from "../commands/GetUserPbxLinkSuggestionCommand";
15
17
  import { GetUserPbxLinkSuggestionV1CommandInput, GetUserPbxLinkSuggestionV1CommandOutput } from "../commands/GetUserPbxLinkSuggestionV1Command";
16
- import { GetUserSettingsCommandInput, GetUserSettingsCommandOutput } from "../commands/GetUserSettingsCommand";
17
18
  import { ListBotApiKeysCommandInput, ListBotApiKeysCommandOutput } from "../commands/ListBotApiKeysCommand";
18
19
  import { ListBotsCommandInput, ListBotsCommandOutput } from "../commands/ListBotsCommand";
19
- import { PartialUpdateUserSettingsCommandInput, PartialUpdateUserSettingsCommandOutput } from "../commands/PartialUpdateUserSettingsCommand";
20
+ import { PartialUpdateUserEmailNotificationsSettingsCommandInput, PartialUpdateUserEmailNotificationsSettingsCommandOutput } from "../commands/PartialUpdateUserEmailNotificationsSettingsCommand";
20
21
  import { QueryColleaguesCommandInput, QueryColleaguesCommandOutput } from "../commands/QueryColleaguesCommand";
21
22
  import { QueryUserCommandInput, QueryUserCommandOutput } from "../commands/QueryUserCommand";
22
23
  import { QueryUsersCommandInput, QueryUsersCommandOutput } from "../commands/QueryUsersCommand";
24
+ import { UnsubscribeFromTranscriptionEmailNotificationsCommandInput, UnsubscribeFromTranscriptionEmailNotificationsCommandOutput } from "../commands/UnsubscribeFromTranscriptionEmailNotificationsCommand";
25
+ import { UnsubscribeFromUnreadEmailNotificationsCommandInput, UnsubscribeFromUnreadEmailNotificationsCommandOutput } from "../commands/UnsubscribeFromUnreadEmailNotificationsCommand";
23
26
  import { UpdateBotCallbackCommandInput, UpdateBotCallbackCommandOutput } from "../commands/UpdateBotCallbackCommand";
24
27
  import { UpdateBotCommandInput, UpdateBotCommandOutput } from "../commands/UpdateBotCommand";
28
+ import { UpdateUserEmailNotificationsSettingsCommandInput, UpdateUserEmailNotificationsSettingsCommandOutput } from "../commands/UpdateUserEmailNotificationsSettingsCommand";
25
29
  import { UploadPictureCommandInput, UploadPictureCommandOutput } from "../commands/UploadPictureCommand";
26
30
  import { UploadPictureV1CommandInput, UploadPictureV1CommandOutput } from "../commands/UploadPictureV1Command";
27
31
  import { VerifyBotSecretKeyCommandInput, VerifyBotSecretKeyCommandOutput } from "../commands/VerifyBotSecretKeyCommand";
@@ -32,6 +36,10 @@ import { SerdeContext as __SerdeContext } from "@smithy/types";
32
36
  * serializeAws_restJson1BatchGetUsersCommand
33
37
  */
34
38
  export declare const se_BatchGetUsersCommand: (input: BatchGetUsersCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
39
+ /**
40
+ * serializeAws_restJson1BatchGetUsersEmailNotificationsSettingsCommand
41
+ */
42
+ export declare const se_BatchGetUsersEmailNotificationsSettingsCommand: (input: BatchGetUsersEmailNotificationsSettingsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
35
43
  /**
36
44
  * serializeAws_restJson1BatchGetUsersPbxLinkDataCommand
37
45
  */
@@ -76,6 +84,10 @@ export declare const se_GetBotCallbackCommand: (input: GetBotCallbackCommandInpu
76
84
  * serializeAws_restJson1GetUserCommand
77
85
  */
78
86
  export declare const se_GetUserCommand: (input: GetUserCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
87
+ /**
88
+ * serializeAws_restJson1GetUserEmailNotificationsSettingsCommand
89
+ */
90
+ export declare const se_GetUserEmailNotificationsSettingsCommand: (input: GetUserEmailNotificationsSettingsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
79
91
  /**
80
92
  * serializeAws_restJson1GetUserPbxLinkDataCommand
81
93
  */
@@ -88,10 +100,6 @@ export declare const se_GetUserPbxLinkSuggestionCommand: (input: GetUserPbxLinkS
88
100
  * serializeAws_restJson1GetUserPbxLinkSuggestionV1Command
89
101
  */
90
102
  export declare const se_GetUserPbxLinkSuggestionV1Command: (input: GetUserPbxLinkSuggestionV1CommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
91
- /**
92
- * serializeAws_restJson1GetUserSettingsCommand
93
- */
94
- export declare const se_GetUserSettingsCommand: (input: GetUserSettingsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
95
103
  /**
96
104
  * serializeAws_restJson1ListBotApiKeysCommand
97
105
  */
@@ -101,9 +109,9 @@ export declare const se_ListBotApiKeysCommand: (input: ListBotApiKeysCommandInpu
101
109
  */
102
110
  export declare const se_ListBotsCommand: (input: ListBotsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
103
111
  /**
104
- * serializeAws_restJson1PartialUpdateUserSettingsCommand
112
+ * serializeAws_restJson1PartialUpdateUserEmailNotificationsSettingsCommand
105
113
  */
106
- export declare const se_PartialUpdateUserSettingsCommand: (input: PartialUpdateUserSettingsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
114
+ export declare const se_PartialUpdateUserEmailNotificationsSettingsCommand: (input: PartialUpdateUserEmailNotificationsSettingsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
107
115
  /**
108
116
  * serializeAws_restJson1QueryColleaguesCommand
109
117
  */
@@ -116,6 +124,14 @@ export declare const se_QueryUserCommand: (input: QueryUserCommandInput, context
116
124
  * serializeAws_restJson1QueryUsersCommand
117
125
  */
118
126
  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>;
119
135
  /**
120
136
  * serializeAws_restJson1UpdateBotCommand
121
137
  */
@@ -124,6 +140,10 @@ export declare const se_UpdateBotCommand: (input: UpdateBotCommandInput, context
124
140
  * serializeAws_restJson1UpdateBotCallbackCommand
125
141
  */
126
142
  export declare const se_UpdateBotCallbackCommand: (input: UpdateBotCallbackCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
143
+ /**
144
+ * serializeAws_restJson1UpdateUserEmailNotificationsSettingsCommand
145
+ */
146
+ export declare const se_UpdateUserEmailNotificationsSettingsCommand: (input: UpdateUserEmailNotificationsSettingsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
127
147
  /**
128
148
  * serializeAws_restJson1UploadPictureCommand
129
149
  */
@@ -144,6 +164,10 @@ export declare const se_VerifyBotSecretKeyV1Command: (input: VerifyBotSecretKeyV
144
164
  * deserializeAws_restJson1BatchGetUsersCommand
145
165
  */
146
166
  export declare const de_BatchGetUsersCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<BatchGetUsersCommandOutput>;
167
+ /**
168
+ * deserializeAws_restJson1BatchGetUsersEmailNotificationsSettingsCommand
169
+ */
170
+ export declare const de_BatchGetUsersEmailNotificationsSettingsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<BatchGetUsersEmailNotificationsSettingsCommandOutput>;
147
171
  /**
148
172
  * deserializeAws_restJson1BatchGetUsersPbxLinkDataCommand
149
173
  */
@@ -188,6 +212,10 @@ export declare const de_GetBotCallbackCommand: (output: __HttpResponse, context:
188
212
  * deserializeAws_restJson1GetUserCommand
189
213
  */
190
214
  export declare const de_GetUserCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetUserCommandOutput>;
215
+ /**
216
+ * deserializeAws_restJson1GetUserEmailNotificationsSettingsCommand
217
+ */
218
+ export declare const de_GetUserEmailNotificationsSettingsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetUserEmailNotificationsSettingsCommandOutput>;
191
219
  /**
192
220
  * deserializeAws_restJson1GetUserPbxLinkDataCommand
193
221
  */
@@ -200,10 +228,6 @@ export declare const de_GetUserPbxLinkSuggestionCommand: (output: __HttpResponse
200
228
  * deserializeAws_restJson1GetUserPbxLinkSuggestionV1Command
201
229
  */
202
230
  export declare const de_GetUserPbxLinkSuggestionV1Command: (output: __HttpResponse, context: __SerdeContext) => Promise<GetUserPbxLinkSuggestionV1CommandOutput>;
203
- /**
204
- * deserializeAws_restJson1GetUserSettingsCommand
205
- */
206
- export declare const de_GetUserSettingsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetUserSettingsCommandOutput>;
207
231
  /**
208
232
  * deserializeAws_restJson1ListBotApiKeysCommand
209
233
  */
@@ -213,9 +237,9 @@ export declare const de_ListBotApiKeysCommand: (output: __HttpResponse, context:
213
237
  */
214
238
  export declare const de_ListBotsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListBotsCommandOutput>;
215
239
  /**
216
- * deserializeAws_restJson1PartialUpdateUserSettingsCommand
240
+ * deserializeAws_restJson1PartialUpdateUserEmailNotificationsSettingsCommand
217
241
  */
218
- export declare const de_PartialUpdateUserSettingsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<PartialUpdateUserSettingsCommandOutput>;
242
+ export declare const de_PartialUpdateUserEmailNotificationsSettingsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<PartialUpdateUserEmailNotificationsSettingsCommandOutput>;
219
243
  /**
220
244
  * deserializeAws_restJson1QueryColleaguesCommand
221
245
  */
@@ -228,6 +252,14 @@ export declare const de_QueryUserCommand: (output: __HttpResponse, context: __Se
228
252
  * deserializeAws_restJson1QueryUsersCommand
229
253
  */
230
254
  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>;
231
263
  /**
232
264
  * deserializeAws_restJson1UpdateBotCommand
233
265
  */
@@ -236,6 +268,10 @@ export declare const de_UpdateBotCommand: (output: __HttpResponse, context: __Se
236
268
  * deserializeAws_restJson1UpdateBotCallbackCommand
237
269
  */
238
270
  export declare const de_UpdateBotCallbackCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UpdateBotCallbackCommandOutput>;
271
+ /**
272
+ * deserializeAws_restJson1UpdateUserEmailNotificationsSettingsCommand
273
+ */
274
+ export declare const de_UpdateUserEmailNotificationsSettingsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UpdateUserEmailNotificationsSettingsCommandOutput>;
239
275
  /**
240
276
  * deserializeAws_restJson1UploadPictureCommand
241
277
  */
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.28",
4
+ "version": "1.0.29",
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",
@@ -76,4 +76,4 @@
76
76
  "react-native": {
77
77
  "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.native"
78
78
  }
79
- }
79
+ }
@@ -1,17 +0,0 @@
1
- import { de_GetUserSettingsCommand, se_GetUserSettingsCommand, } 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 GetUserSettingsCommand extends $Command.classBuilder()
6
- .m(function (Command, cs, config, o) {
7
- return [
8
- getSerdePlugin(config, this.serialize, this.deserialize),
9
- ];
10
- })
11
- .s("Users", "GetUserSettings", {})
12
- .n("UsersClient", "GetUserSettingsCommand")
13
- .f(void 0, void 0)
14
- .ser(se_GetUserSettingsCommand)
15
- .de(de_GetUserSettingsCommand)
16
- .build() {
17
- }
@@ -1,17 +0,0 @@
1
- import { de_PartialUpdateUserSettingsCommand, se_PartialUpdateUserSettingsCommand, } 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 PartialUpdateUserSettingsCommand extends $Command.classBuilder()
6
- .m(function (Command, cs, config, o) {
7
- return [
8
- getSerdePlugin(config, this.serialize, this.deserialize),
9
- ];
10
- })
11
- .s("Users", "PartialUpdateUserSettings", {})
12
- .n("UsersClient", "PartialUpdateUserSettingsCommand")
13
- .f(void 0, void 0)
14
- .ser(se_PartialUpdateUserSettingsCommand)
15
- .de(de_PartialUpdateUserSettingsCommand)
16
- .build() {
17
- }
@@ -1,69 +0,0 @@
1
- import { ServiceInputTypes, ServiceOutputTypes, UsersClientResolvedConfig } from "../UsersClient";
2
- import { GetUserSettingsInput, GetUserSettingsOutput } 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 GetUserSettingsCommand}.
14
- */
15
- export interface GetUserSettingsCommandInput extends GetUserSettingsInput {
16
- }
17
- /**
18
- * @public
19
- *
20
- * The output of {@link GetUserSettingsCommand}.
21
- */
22
- export interface GetUserSettingsCommandOutput extends GetUserSettingsOutput, __MetadataBearer {
23
- }
24
- declare const GetUserSettingsCommand_base: {
25
- new (input: GetUserSettingsCommandInput): import("@smithy/smithy-client").CommandImpl<GetUserSettingsCommandInput, GetUserSettingsCommandOutput, UsersClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (...[input]: [] | [GetUserSettingsCommandInput]): import("@smithy/smithy-client").CommandImpl<GetUserSettingsCommandInput, GetUserSettingsCommandOutput, UsersClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
- };
29
- /**
30
- * Getting settings for the user.
31
- * @example
32
- * Use a bare-bones client and the command you need to make an API call.
33
- * ```javascript
34
- * import { UsersClient, GetUserSettingsCommand } from "@wildix/xbees-users-client"; // ES Modules import
35
- * // const { UsersClient, GetUserSettingsCommand } = require("@wildix/xbees-users-client"); // CommonJS import
36
- * const client = new UsersClient(config);
37
- * const input = { // GetUserSettingsInput
38
- * userId: "STRING_VALUE",
39
- * };
40
- * const command = new GetUserSettingsCommand(input);
41
- * const response = await client.send(command);
42
- * // { // GetUserSettingsOutput
43
- * // emailNotifications: { // EmailNotificationsSettings
44
- * // unread: true || false, // required
45
- * // transcription: true || false, // required
46
- * // },
47
- * // };
48
- *
49
- * ```
50
- *
51
- * @param GetUserSettingsCommandInput - {@link GetUserSettingsCommandInput}
52
- * @returns {@link GetUserSettingsCommandOutput}
53
- * @see {@link GetUserSettingsCommandInput} for command's `input` shape.
54
- * @see {@link GetUserSettingsCommandOutput} for command's `response` shape.
55
- * @see {@link UsersClientResolvedConfig | config} for UsersClient's `config` shape.
56
- *
57
- * @throws {@link UserNotFoundException} (client fault)
58
- *
59
- * @throws {@link ForbiddenException} (client fault)
60
- *
61
- * @throws {@link ValidationException} (client fault)
62
- *
63
- * @throws {@link UsersServiceException}
64
- * <p>Base exception class for all service exceptions from Users service.</p>
65
- *
66
- * @public
67
- */
68
- export declare class GetUserSettingsCommand extends GetUserSettingsCommand_base {
69
- }
@@ -1,76 +0,0 @@
1
- import { ServiceInputTypes, ServiceOutputTypes, UsersClientResolvedConfig } from "../UsersClient";
2
- import { PartialUpdateUserSettingsInput, PartialUpdateUserSettingsOutput } 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 PartialUpdateUserSettingsCommand}.
14
- */
15
- export interface PartialUpdateUserSettingsCommandInput extends PartialUpdateUserSettingsInput {
16
- }
17
- /**
18
- * @public
19
- *
20
- * The output of {@link PartialUpdateUserSettingsCommand}.
21
- */
22
- export interface PartialUpdateUserSettingsCommandOutput extends PartialUpdateUserSettingsOutput, __MetadataBearer {
23
- }
24
- declare const PartialUpdateUserSettingsCommand_base: {
25
- new (input: PartialUpdateUserSettingsCommandInput): import("@smithy/smithy-client").CommandImpl<PartialUpdateUserSettingsCommandInput, PartialUpdateUserSettingsCommandOutput, UsersClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
- new (__0_0: PartialUpdateUserSettingsCommandInput): import("@smithy/smithy-client").CommandImpl<PartialUpdateUserSettingsCommandInput, PartialUpdateUserSettingsCommandOutput, UsersClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
- getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
- };
29
- /**
30
- * Getting settings for the user.
31
- * @example
32
- * Use a bare-bones client and the command you need to make an API call.
33
- * ```javascript
34
- * import { UsersClient, PartialUpdateUserSettingsCommand } from "@wildix/xbees-users-client"; // ES Modules import
35
- * // const { UsersClient, PartialUpdateUserSettingsCommand } = require("@wildix/xbees-users-client"); // CommonJS import
36
- * const client = new UsersClient(config);
37
- * const input = { // PartialUpdateUserSettingsInput
38
- * userId: "STRING_VALUE",
39
- * token: "STRING_VALUE",
40
- * settings: { // PartialUserSettings
41
- * emailNotifications: { // PartialEmailNotificationsSettings
42
- * unread: true || false,
43
- * transcription: true || false,
44
- * },
45
- * },
46
- * };
47
- * const command = new PartialUpdateUserSettingsCommand(input);
48
- * const response = await client.send(command);
49
- * // { // PartialUpdateUserSettingsOutput
50
- * // emailNotifications: { // EmailNotificationsSettings
51
- * // unread: true || false, // required
52
- * // transcription: true || false, // required
53
- * // },
54
- * // };
55
- *
56
- * ```
57
- *
58
- * @param PartialUpdateUserSettingsCommandInput - {@link PartialUpdateUserSettingsCommandInput}
59
- * @returns {@link PartialUpdateUserSettingsCommandOutput}
60
- * @see {@link PartialUpdateUserSettingsCommandInput} for command's `input` shape.
61
- * @see {@link PartialUpdateUserSettingsCommandOutput} for command's `response` shape.
62
- * @see {@link UsersClientResolvedConfig | config} for UsersClient's `config` shape.
63
- *
64
- * @throws {@link UserNotFoundException} (client fault)
65
- *
66
- * @throws {@link ForbiddenException} (client fault)
67
- *
68
- * @throws {@link ValidationException} (client fault)
69
- *
70
- * @throws {@link UsersServiceException}
71
- * <p>Base exception class for all service exceptions from Users service.</p>
72
- *
73
- * @public
74
- */
75
- export declare class PartialUpdateUserSettingsCommand extends PartialUpdateUserSettingsCommand_base {
76
- }