onehook-api-client 1.0.12 → 1.0.15

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 (50) hide show
  1. package/README.md +63 -0
  2. package/dist-cjs/OneHook.js +18 -0
  3. package/dist-cjs/commands/CreateMediaDownloadUrlCommand.js +21 -0
  4. package/dist-cjs/commands/CreateMediaUploadUrlCommand.js +21 -0
  5. package/dist-cjs/commands/DeletePushTokenCommand.js +21 -0
  6. package/dist-cjs/commands/GetChatSettingsCommand.js +21 -0
  7. package/dist-cjs/commands/GetNotificationPreferencesCommand.js +21 -0
  8. package/dist-cjs/commands/GetUserIdByUsernameCommand.js +21 -0
  9. package/dist-cjs/commands/RegisterPushTokenCommand.js +21 -0
  10. package/dist-cjs/commands/SwipeByUsernameCommand.js +21 -0
  11. package/dist-cjs/commands/UpdateChatSettingsCommand.js +21 -0
  12. package/dist-cjs/commands/index.js +9 -0
  13. package/dist-cjs/graphql/types.js +6 -1
  14. package/dist-cjs/models/models_0.js +17 -6
  15. package/dist-cjs/protocols/Aws_restJson1.js +345 -3
  16. package/dist-es/OneHook.js +18 -0
  17. package/dist-es/commands/CreateMediaDownloadUrlCommand.js +17 -0
  18. package/dist-es/commands/CreateMediaUploadUrlCommand.js +17 -0
  19. package/dist-es/commands/DeletePushTokenCommand.js +17 -0
  20. package/dist-es/commands/GetChatSettingsCommand.js +17 -0
  21. package/dist-es/commands/GetNotificationPreferencesCommand.js +17 -0
  22. package/dist-es/commands/GetUserIdByUsernameCommand.js +17 -0
  23. package/dist-es/commands/RegisterPushTokenCommand.js +17 -0
  24. package/dist-es/commands/SwipeByUsernameCommand.js +17 -0
  25. package/dist-es/commands/UpdateChatSettingsCommand.js +17 -0
  26. package/dist-es/commands/index.js +9 -0
  27. package/dist-es/graphql/types.js +5 -0
  28. package/dist-es/models/models_0.js +16 -5
  29. package/dist-es/protocols/Aws_restJson1.js +324 -1
  30. package/dist-types/OneHook.d.ts +65 -0
  31. package/dist-types/OneHookClient.d.ts +11 -2
  32. package/dist-types/commands/CreateMediaDownloadUrlCommand.d.ts +87 -0
  33. package/dist-types/commands/CreateMediaUploadUrlCommand.d.ts +92 -0
  34. package/dist-types/commands/DeletePushTokenCommand.d.ts +85 -0
  35. package/dist-types/commands/GetChatSettingsCommand.d.ts +85 -0
  36. package/dist-types/commands/GetMyProfileCommand.d.ts +4 -1
  37. package/dist-types/commands/GetNotificationPreferencesCommand.d.ts +91 -0
  38. package/dist-types/commands/GetPreferencesCommand.d.ts +37 -1
  39. package/dist-types/commands/GetProfileCommand.d.ts +4 -1
  40. package/dist-types/commands/GetUserIdByUsernameCommand.d.ts +84 -0
  41. package/dist-types/commands/RegisterPushTokenCommand.d.ts +93 -0
  42. package/dist-types/commands/SwipeByUsernameCommand.d.ts +93 -0
  43. package/dist-types/commands/UpdateChatSettingsCommand.d.ts +95 -0
  44. package/dist-types/commands/UpdatePreferencesCommand.d.ts +37 -1
  45. package/dist-types/commands/UpdateProfileCommand.d.ts +4 -1
  46. package/dist-types/commands/index.d.ts +9 -0
  47. package/dist-types/graphql/types.d.ts +33 -0
  48. package/dist-types/models/models_0.d.ts +511 -16
  49. package/dist-types/protocols/Aws_restJson1.d.ts +81 -0
  50. package/package.json +1 -1
package/README.md CHANGED
@@ -197,6 +197,20 @@ see LICENSE for more information.
197
197
 
198
198
  ## Client Commands (Operations List)
199
199
 
200
+ <details>
201
+ <summary>
202
+ CreateMediaDownloadUrl
203
+ </summary>
204
+
205
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/onehook/command/CreateMediaDownloadUrlCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-onehook/Interface/CreateMediaDownloadUrlCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-onehook/Interface/CreateMediaDownloadUrlCommandOutput/)
206
+ </details>
207
+ <details>
208
+ <summary>
209
+ CreateMediaUploadUrl
210
+ </summary>
211
+
212
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/onehook/command/CreateMediaUploadUrlCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-onehook/Interface/CreateMediaUploadUrlCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-onehook/Interface/CreateMediaUploadUrlCommandOutput/)
213
+ </details>
200
214
  <details>
201
215
  <summary>
202
216
  DeleteMatchMessages
@@ -206,6 +220,20 @@ DeleteMatchMessages
206
220
  </details>
207
221
  <details>
208
222
  <summary>
223
+ DeletePushToken
224
+ </summary>
225
+
226
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/onehook/command/DeletePushTokenCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-onehook/Interface/DeletePushTokenCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-onehook/Interface/DeletePushTokenCommandOutput/)
227
+ </details>
228
+ <details>
229
+ <summary>
230
+ GetChatSettings
231
+ </summary>
232
+
233
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/onehook/command/GetChatSettingsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-onehook/Interface/GetChatSettingsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-onehook/Interface/GetChatSettingsCommandOutput/)
234
+ </details>
235
+ <details>
236
+ <summary>
209
237
  GetParticipantRegistry
210
238
  </summary>
211
239
 
@@ -227,6 +255,13 @@ RegisterDevice
227
255
  </details>
228
256
  <details>
229
257
  <summary>
258
+ RegisterPushToken
259
+ </summary>
260
+
261
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/onehook/command/RegisterPushTokenCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-onehook/Interface/RegisterPushTokenCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-onehook/Interface/RegisterPushTokenCommandOutput/)
262
+ </details>
263
+ <details>
264
+ <summary>
230
265
  RevokeDevice
231
266
  </summary>
232
267
 
@@ -234,6 +269,13 @@ RevokeDevice
234
269
  </details>
235
270
  <details>
236
271
  <summary>
272
+ UpdateChatSettings
273
+ </summary>
274
+
275
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/onehook/command/UpdateChatSettingsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-onehook/Interface/UpdateChatSettingsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-onehook/Interface/UpdateChatSettingsCommandOutput/)
276
+ </details>
277
+ <details>
278
+ <summary>
237
279
  AuthSocial
238
280
  </summary>
239
281
 
@@ -269,6 +311,13 @@ GetUserByEmail
269
311
  </details>
270
312
  <details>
271
313
  <summary>
314
+ GetUserIdByUsername
315
+ </summary>
316
+
317
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/onehook/command/GetUserIdByUsernameCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-onehook/Interface/GetUserIdByUsernameCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-onehook/Interface/GetUserIdByUsernameCommandOutput/)
318
+ </details>
319
+ <details>
320
+ <summary>
272
321
  LinkEmail
273
322
  </summary>
274
323
 
@@ -353,6 +402,13 @@ Discover
353
402
  </details>
354
403
  <details>
355
404
  <summary>
405
+ GetNotificationPreferences
406
+ </summary>
407
+
408
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/onehook/command/GetNotificationPreferencesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-onehook/Interface/GetNotificationPreferencesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-onehook/Interface/GetNotificationPreferencesCommandOutput/)
409
+ </details>
410
+ <details>
411
+ <summary>
356
412
  GetPreferences
357
413
  </summary>
358
414
 
@@ -381,6 +437,13 @@ Swipe
381
437
  </details>
382
438
  <details>
383
439
  <summary>
440
+ SwipeByUsername
441
+ </summary>
442
+
443
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/onehook/command/SwipeByUsernameCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-onehook/Interface/SwipeByUsernameCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-onehook/Interface/SwipeByUsernameCommandOutput/)
444
+ </details>
445
+ <details>
446
+ <summary>
384
447
  UpdatePreferences
385
448
  </summary>
386
449
 
@@ -6,22 +6,28 @@ const AuthSocialCommand_1 = require("./commands/AuthSocialCommand");
6
6
  const CompleteLivenessSessionCommand_1 = require("./commands/CompleteLivenessSessionCommand");
7
7
  const CompleteOnboardingCommand_1 = require("./commands/CompleteOnboardingCommand");
8
8
  const CreateLivenessSessionCommand_1 = require("./commands/CreateLivenessSessionCommand");
9
+ const CreateMediaDownloadUrlCommand_1 = require("./commands/CreateMediaDownloadUrlCommand");
10
+ const CreateMediaUploadUrlCommand_1 = require("./commands/CreateMediaUploadUrlCommand");
9
11
  const DeleteMatchMessagesCommand_1 = require("./commands/DeleteMatchMessagesCommand");
10
12
  const DeleteProfileCommand_1 = require("./commands/DeleteProfileCommand");
13
+ const DeletePushTokenCommand_1 = require("./commands/DeletePushTokenCommand");
11
14
  const DiscoverCommand_1 = require("./commands/DiscoverCommand");
12
15
  const GenerateDownloadUrlCommand_1 = require("./commands/GenerateDownloadUrlCommand");
13
16
  const GenerateInviteCommand_1 = require("./commands/GenerateInviteCommand");
14
17
  const GenerateUploadUrlCommand_1 = require("./commands/GenerateUploadUrlCommand");
18
+ const GetChatSettingsCommand_1 = require("./commands/GetChatSettingsCommand");
15
19
  const GetCredentialReadinessCommand_1 = require("./commands/GetCredentialReadinessCommand");
16
20
  const GetLivenessStatusCommand_1 = require("./commands/GetLivenessStatusCommand");
17
21
  const GetMatchCommand_1 = require("./commands/GetMatchCommand");
18
22
  const GetMyProfileCommand_1 = require("./commands/GetMyProfileCommand");
23
+ const GetNotificationPreferencesCommand_1 = require("./commands/GetNotificationPreferencesCommand");
19
24
  const GetParticipantRegistryCommand_1 = require("./commands/GetParticipantRegistryCommand");
20
25
  const GetPreferencesCommand_1 = require("./commands/GetPreferencesCommand");
21
26
  const GetProfileCommand_1 = require("./commands/GetProfileCommand");
22
27
  const GetStateCommand_1 = require("./commands/GetStateCommand");
23
28
  const GetUserByEmailCommand_1 = require("./commands/GetUserByEmailCommand");
24
29
  const GetUserCommand_1 = require("./commands/GetUserCommand");
30
+ const GetUserIdByUsernameCommand_1 = require("./commands/GetUserIdByUsernameCommand");
25
31
  const IndexLocationCommand_1 = require("./commands/IndexLocationCommand");
26
32
  const InitUserCommand_1 = require("./commands/InitUserCommand");
27
33
  const LinkEmailCommand_1 = require("./commands/LinkEmailCommand");
@@ -29,14 +35,17 @@ const LinkSocialCommand_1 = require("./commands/LinkSocialCommand");
29
35
  const ListMyDevicesCommand_1 = require("./commands/ListMyDevicesCommand");
30
36
  const RegisterDeviceCommand_1 = require("./commands/RegisterDeviceCommand");
31
37
  const RegisterPhoneCommand_1 = require("./commands/RegisterPhoneCommand");
38
+ const RegisterPushTokenCommand_1 = require("./commands/RegisterPushTokenCommand");
32
39
  const RemoveLocationCommand_1 = require("./commands/RemoveLocationCommand");
33
40
  const RequestEmailOtpCommand_1 = require("./commands/RequestEmailOtpCommand");
34
41
  const RequestPhoneOtpCommand_1 = require("./commands/RequestPhoneOtpCommand");
35
42
  const RequestPhoneUpdateOtpCommand_1 = require("./commands/RequestPhoneUpdateOtpCommand");
36
43
  const RevokeDeviceCommand_1 = require("./commands/RevokeDeviceCommand");
44
+ const SwipeByUsernameCommand_1 = require("./commands/SwipeByUsernameCommand");
37
45
  const SwipeCommand_1 = require("./commands/SwipeCommand");
38
46
  const UnhookCommand_1 = require("./commands/UnhookCommand");
39
47
  const UnlinkSocialCommand_1 = require("./commands/UnlinkSocialCommand");
48
+ const UpdateChatSettingsCommand_1 = require("./commands/UpdateChatSettingsCommand");
40
49
  const UpdateEntitlementsCommand_1 = require("./commands/UpdateEntitlementsCommand");
41
50
  const UpdatePhoneNumberCommand_1 = require("./commands/UpdatePhoneNumberCommand");
42
51
  const UpdatePreferencesCommand_1 = require("./commands/UpdatePreferencesCommand");
@@ -46,16 +55,23 @@ const UpgradeUserCommand_1 = require("./commands/UpgradeUserCommand");
46
55
  const ValidateInviteCommand_1 = require("./commands/ValidateInviteCommand");
47
56
  const smithy_client_1 = require("@smithy/smithy-client");
48
57
  const commands = {
58
+ CreateMediaDownloadUrlCommand: CreateMediaDownloadUrlCommand_1.CreateMediaDownloadUrlCommand,
59
+ CreateMediaUploadUrlCommand: CreateMediaUploadUrlCommand_1.CreateMediaUploadUrlCommand,
49
60
  DeleteMatchMessagesCommand: DeleteMatchMessagesCommand_1.DeleteMatchMessagesCommand,
61
+ DeletePushTokenCommand: DeletePushTokenCommand_1.DeletePushTokenCommand,
62
+ GetChatSettingsCommand: GetChatSettingsCommand_1.GetChatSettingsCommand,
50
63
  GetParticipantRegistryCommand: GetParticipantRegistryCommand_1.GetParticipantRegistryCommand,
51
64
  ListMyDevicesCommand: ListMyDevicesCommand_1.ListMyDevicesCommand,
52
65
  RegisterDeviceCommand: RegisterDeviceCommand_1.RegisterDeviceCommand,
66
+ RegisterPushTokenCommand: RegisterPushTokenCommand_1.RegisterPushTokenCommand,
53
67
  RevokeDeviceCommand: RevokeDeviceCommand_1.RevokeDeviceCommand,
68
+ UpdateChatSettingsCommand: UpdateChatSettingsCommand_1.UpdateChatSettingsCommand,
54
69
  AuthSocialCommand: AuthSocialCommand_1.AuthSocialCommand,
55
70
  GenerateInviteCommand: GenerateInviteCommand_1.GenerateInviteCommand,
56
71
  GetCredentialReadinessCommand: GetCredentialReadinessCommand_1.GetCredentialReadinessCommand,
57
72
  GetUserCommand: GetUserCommand_1.GetUserCommand,
58
73
  GetUserByEmailCommand: GetUserByEmailCommand_1.GetUserByEmailCommand,
74
+ GetUserIdByUsernameCommand: GetUserIdByUsernameCommand_1.GetUserIdByUsernameCommand,
59
75
  LinkEmailCommand: LinkEmailCommand_1.LinkEmailCommand,
60
76
  LinkSocialCommand: LinkSocialCommand_1.LinkSocialCommand,
61
77
  RegisterPhoneCommand: RegisterPhoneCommand_1.RegisterPhoneCommand,
@@ -68,10 +84,12 @@ const commands = {
68
84
  UpdateUsernameCommand: UpdateUsernameCommand_1.UpdateUsernameCommand,
69
85
  ValidateInviteCommand: ValidateInviteCommand_1.ValidateInviteCommand,
70
86
  DiscoverCommand: DiscoverCommand_1.DiscoverCommand,
87
+ GetNotificationPreferencesCommand: GetNotificationPreferencesCommand_1.GetNotificationPreferencesCommand,
71
88
  GetPreferencesCommand: GetPreferencesCommand_1.GetPreferencesCommand,
72
89
  IndexLocationCommand: IndexLocationCommand_1.IndexLocationCommand,
73
90
  RemoveLocationCommand: RemoveLocationCommand_1.RemoveLocationCommand,
74
91
  SwipeCommand: SwipeCommand_1.SwipeCommand,
92
+ SwipeByUsernameCommand: SwipeByUsernameCommand_1.SwipeByUsernameCommand,
75
93
  UpdatePreferencesCommand: UpdatePreferencesCommand_1.UpdatePreferencesCommand,
76
94
  CompleteLivenessSessionCommand: CompleteLivenessSessionCommand_1.CompleteLivenessSessionCommand,
77
95
  CreateLivenessSessionCommand: CreateLivenessSessionCommand_1.CreateLivenessSessionCommand,
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreateMediaDownloadUrlCommand = exports.$Command = void 0;
4
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ class CreateMediaDownloadUrlCommand extends smithy_client_1.Command.classBuilder()
9
+ .m(function (Command, cs, config, o) {
10
+ return [
11
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
12
+ ];
13
+ })
14
+ .s("OneHookService", "CreateMediaDownloadUrl", {})
15
+ .n("OneHookClient", "CreateMediaDownloadUrlCommand")
16
+ .f(void 0, void 0)
17
+ .ser(Aws_restJson1_1.se_CreateMediaDownloadUrlCommand)
18
+ .de(Aws_restJson1_1.de_CreateMediaDownloadUrlCommand)
19
+ .build() {
20
+ }
21
+ exports.CreateMediaDownloadUrlCommand = CreateMediaDownloadUrlCommand;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreateMediaUploadUrlCommand = exports.$Command = void 0;
4
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ class CreateMediaUploadUrlCommand extends smithy_client_1.Command.classBuilder()
9
+ .m(function (Command, cs, config, o) {
10
+ return [
11
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
12
+ ];
13
+ })
14
+ .s("OneHookService", "CreateMediaUploadUrl", {})
15
+ .n("OneHookClient", "CreateMediaUploadUrlCommand")
16
+ .f(void 0, void 0)
17
+ .ser(Aws_restJson1_1.se_CreateMediaUploadUrlCommand)
18
+ .de(Aws_restJson1_1.de_CreateMediaUploadUrlCommand)
19
+ .build() {
20
+ }
21
+ exports.CreateMediaUploadUrlCommand = CreateMediaUploadUrlCommand;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DeletePushTokenCommand = exports.$Command = void 0;
4
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ class DeletePushTokenCommand extends smithy_client_1.Command.classBuilder()
9
+ .m(function (Command, cs, config, o) {
10
+ return [
11
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
12
+ ];
13
+ })
14
+ .s("OneHookService", "DeletePushToken", {})
15
+ .n("OneHookClient", "DeletePushTokenCommand")
16
+ .f(void 0, void 0)
17
+ .ser(Aws_restJson1_1.se_DeletePushTokenCommand)
18
+ .de(Aws_restJson1_1.de_DeletePushTokenCommand)
19
+ .build() {
20
+ }
21
+ exports.DeletePushTokenCommand = DeletePushTokenCommand;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetChatSettingsCommand = exports.$Command = void 0;
4
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ class GetChatSettingsCommand extends smithy_client_1.Command.classBuilder()
9
+ .m(function (Command, cs, config, o) {
10
+ return [
11
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
12
+ ];
13
+ })
14
+ .s("OneHookService", "GetChatSettings", {})
15
+ .n("OneHookClient", "GetChatSettingsCommand")
16
+ .f(void 0, void 0)
17
+ .ser(Aws_restJson1_1.se_GetChatSettingsCommand)
18
+ .de(Aws_restJson1_1.de_GetChatSettingsCommand)
19
+ .build() {
20
+ }
21
+ exports.GetChatSettingsCommand = GetChatSettingsCommand;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetNotificationPreferencesCommand = exports.$Command = void 0;
4
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ class GetNotificationPreferencesCommand extends smithy_client_1.Command.classBuilder()
9
+ .m(function (Command, cs, config, o) {
10
+ return [
11
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
12
+ ];
13
+ })
14
+ .s("OneHookService", "GetNotificationPreferences", {})
15
+ .n("OneHookClient", "GetNotificationPreferencesCommand")
16
+ .f(void 0, void 0)
17
+ .ser(Aws_restJson1_1.se_GetNotificationPreferencesCommand)
18
+ .de(Aws_restJson1_1.de_GetNotificationPreferencesCommand)
19
+ .build() {
20
+ }
21
+ exports.GetNotificationPreferencesCommand = GetNotificationPreferencesCommand;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetUserIdByUsernameCommand = exports.$Command = void 0;
4
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ class GetUserIdByUsernameCommand extends smithy_client_1.Command.classBuilder()
9
+ .m(function (Command, cs, config, o) {
10
+ return [
11
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
12
+ ];
13
+ })
14
+ .s("OneHookService", "GetUserIdByUsername", {})
15
+ .n("OneHookClient", "GetUserIdByUsernameCommand")
16
+ .f(void 0, void 0)
17
+ .ser(Aws_restJson1_1.se_GetUserIdByUsernameCommand)
18
+ .de(Aws_restJson1_1.de_GetUserIdByUsernameCommand)
19
+ .build() {
20
+ }
21
+ exports.GetUserIdByUsernameCommand = GetUserIdByUsernameCommand;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RegisterPushTokenCommand = exports.$Command = void 0;
4
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ class RegisterPushTokenCommand extends smithy_client_1.Command.classBuilder()
9
+ .m(function (Command, cs, config, o) {
10
+ return [
11
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
12
+ ];
13
+ })
14
+ .s("OneHookService", "RegisterPushToken", {})
15
+ .n("OneHookClient", "RegisterPushTokenCommand")
16
+ .f(void 0, void 0)
17
+ .ser(Aws_restJson1_1.se_RegisterPushTokenCommand)
18
+ .de(Aws_restJson1_1.de_RegisterPushTokenCommand)
19
+ .build() {
20
+ }
21
+ exports.RegisterPushTokenCommand = RegisterPushTokenCommand;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SwipeByUsernameCommand = exports.$Command = void 0;
4
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ class SwipeByUsernameCommand extends smithy_client_1.Command.classBuilder()
9
+ .m(function (Command, cs, config, o) {
10
+ return [
11
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
12
+ ];
13
+ })
14
+ .s("OneHookService", "SwipeByUsername", {})
15
+ .n("OneHookClient", "SwipeByUsernameCommand")
16
+ .f(void 0, void 0)
17
+ .ser(Aws_restJson1_1.se_SwipeByUsernameCommand)
18
+ .de(Aws_restJson1_1.de_SwipeByUsernameCommand)
19
+ .build() {
20
+ }
21
+ exports.SwipeByUsernameCommand = SwipeByUsernameCommand;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateChatSettingsCommand = exports.$Command = void 0;
4
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ class UpdateChatSettingsCommand extends smithy_client_1.Command.classBuilder()
9
+ .m(function (Command, cs, config, o) {
10
+ return [
11
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
12
+ ];
13
+ })
14
+ .s("OneHookService", "UpdateChatSettings", {})
15
+ .n("OneHookClient", "UpdateChatSettingsCommand")
16
+ .f(void 0, void 0)
17
+ .ser(Aws_restJson1_1.se_UpdateChatSettingsCommand)
18
+ .de(Aws_restJson1_1.de_UpdateChatSettingsCommand)
19
+ .build() {
20
+ }
21
+ exports.UpdateChatSettingsCommand = UpdateChatSettingsCommand;
@@ -1,16 +1,23 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./CreateMediaDownloadUrlCommand"), exports);
5
+ tslib_1.__exportStar(require("./CreateMediaUploadUrlCommand"), exports);
4
6
  tslib_1.__exportStar(require("./DeleteMatchMessagesCommand"), exports);
7
+ tslib_1.__exportStar(require("./DeletePushTokenCommand"), exports);
8
+ tslib_1.__exportStar(require("./GetChatSettingsCommand"), exports);
5
9
  tslib_1.__exportStar(require("./GetParticipantRegistryCommand"), exports);
6
10
  tslib_1.__exportStar(require("./ListMyDevicesCommand"), exports);
7
11
  tslib_1.__exportStar(require("./RegisterDeviceCommand"), exports);
12
+ tslib_1.__exportStar(require("./RegisterPushTokenCommand"), exports);
8
13
  tslib_1.__exportStar(require("./RevokeDeviceCommand"), exports);
14
+ tslib_1.__exportStar(require("./UpdateChatSettingsCommand"), exports);
9
15
  tslib_1.__exportStar(require("./AuthSocialCommand"), exports);
10
16
  tslib_1.__exportStar(require("./GenerateInviteCommand"), exports);
11
17
  tslib_1.__exportStar(require("./GetCredentialReadinessCommand"), exports);
12
18
  tslib_1.__exportStar(require("./GetUserCommand"), exports);
13
19
  tslib_1.__exportStar(require("./GetUserByEmailCommand"), exports);
20
+ tslib_1.__exportStar(require("./GetUserIdByUsernameCommand"), exports);
14
21
  tslib_1.__exportStar(require("./LinkEmailCommand"), exports);
15
22
  tslib_1.__exportStar(require("./LinkSocialCommand"), exports);
16
23
  tslib_1.__exportStar(require("./RegisterPhoneCommand"), exports);
@@ -23,10 +30,12 @@ tslib_1.__exportStar(require("./UpdatePhoneNumberCommand"), exports);
23
30
  tslib_1.__exportStar(require("./UpdateUsernameCommand"), exports);
24
31
  tslib_1.__exportStar(require("./ValidateInviteCommand"), exports);
25
32
  tslib_1.__exportStar(require("./DiscoverCommand"), exports);
33
+ tslib_1.__exportStar(require("./GetNotificationPreferencesCommand"), exports);
26
34
  tslib_1.__exportStar(require("./GetPreferencesCommand"), exports);
27
35
  tslib_1.__exportStar(require("./IndexLocationCommand"), exports);
28
36
  tslib_1.__exportStar(require("./RemoveLocationCommand"), exports);
29
37
  tslib_1.__exportStar(require("./SwipeCommand"), exports);
38
+ tslib_1.__exportStar(require("./SwipeByUsernameCommand"), exports);
30
39
  tslib_1.__exportStar(require("./UpdatePreferencesCommand"), exports);
31
40
  tslib_1.__exportStar(require("./CompleteLivenessSessionCommand"), exports);
32
41
  tslib_1.__exportStar(require("./CreateLivenessSessionCommand"), exports);
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MessageStatus = exports.KeyRecoveryStatus = void 0;
3
+ exports.NotificationKind = exports.MessageStatus = exports.KeyRecoveryStatus = void 0;
4
4
  var KeyRecoveryStatus;
5
5
  (function (KeyRecoveryStatus) {
6
6
  KeyRecoveryStatus["Completed"] = "COMPLETED";
@@ -16,3 +16,8 @@ var MessageStatus;
16
16
  MessageStatus["Sending"] = "SENDING";
17
17
  MessageStatus["Sent"] = "SENT";
18
18
  })(MessageStatus || (exports.MessageStatus = MessageStatus = {}));
19
+ var NotificationKind;
20
+ (function (NotificationKind) {
21
+ NotificationKind["MutualMatch"] = "MUTUAL_MATCH";
22
+ NotificationKind["ProfileLiked"] = "PROFILE_LIKED";
23
+ })(NotificationKind || (exports.NotificationKind = NotificationKind = {}));
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CredentialGap = exports.DeviceLimitError = exports.NotFoundError = exports.Platform = exports.InternalServerError = exports.BadRequestError = exports.ForbiddenError = void 0;
3
+ exports.CredentialGap = exports.DeviceLimitError = exports.Platform = exports.LastSeenVisibility = exports.MediaKind = exports.NotFoundError = exports.InternalServerError = exports.BadRequestError = exports.ForbiddenError = void 0;
4
4
  const OneHookServiceException_1 = require("./OneHookServiceException");
5
5
  class ForbiddenError extends OneHookServiceException_1.OneHookServiceException {
6
6
  name = "ForbiddenError";
@@ -47,11 +47,6 @@ class InternalServerError extends OneHookServiceException_1.OneHookServiceExcept
47
47
  }
48
48
  }
49
49
  exports.InternalServerError = InternalServerError;
50
- exports.Platform = {
51
- ANDROID: "ANDROID",
52
- IOS: "IOS",
53
- WEB: "WEB",
54
- };
55
50
  class NotFoundError extends OneHookServiceException_1.OneHookServiceException {
56
51
  name = "NotFoundError";
57
52
  $fault = "client";
@@ -67,6 +62,22 @@ class NotFoundError extends OneHookServiceException_1.OneHookServiceException {
67
62
  }
68
63
  }
69
64
  exports.NotFoundError = NotFoundError;
65
+ exports.MediaKind = {
66
+ AUDIO: "AUDIO",
67
+ FILE: "FILE",
68
+ IMAGE: "IMAGE",
69
+ VIDEO: "VIDEO",
70
+ };
71
+ exports.LastSeenVisibility = {
72
+ EVERYONE: "EVERYONE",
73
+ MATCHES: "MATCHES",
74
+ NOBODY: "NOBODY",
75
+ };
76
+ exports.Platform = {
77
+ ANDROID: "ANDROID",
78
+ IOS: "IOS",
79
+ WEB: "WEB",
80
+ };
70
81
  class DeviceLimitError extends OneHookServiceException_1.OneHookServiceException {
71
82
  name = "DeviceLimitError";
72
83
  $fault = "client";