onehook-api-client 1.0.11 → 1.0.14

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 (47) hide show
  1. package/README.md +56 -0
  2. package/dist-cjs/OneHook.js +16 -0
  3. package/dist-cjs/commands/DeletePushTokenCommand.js +21 -0
  4. package/dist-cjs/commands/GetChatSettingsCommand.js +21 -0
  5. package/dist-cjs/commands/GetCredentialReadinessCommand.js +21 -0
  6. package/dist-cjs/commands/GetNotificationPreferencesCommand.js +21 -0
  7. package/dist-cjs/commands/GetUserIdByUsernameCommand.js +21 -0
  8. package/dist-cjs/commands/RegisterPushTokenCommand.js +21 -0
  9. package/dist-cjs/commands/SwipeByUsernameCommand.js +21 -0
  10. package/dist-cjs/commands/UpdateChatSettingsCommand.js +21 -0
  11. package/dist-cjs/commands/index.js +8 -0
  12. package/dist-cjs/graphql/types.js +6 -1
  13. package/dist-cjs/models/models_0.js +17 -6
  14. package/dist-cjs/protocols/Aws_restJson1.js +304 -3
  15. package/dist-es/OneHook.js +16 -0
  16. package/dist-es/commands/DeletePushTokenCommand.js +17 -0
  17. package/dist-es/commands/GetChatSettingsCommand.js +17 -0
  18. package/dist-es/commands/GetCredentialReadinessCommand.js +17 -0
  19. package/dist-es/commands/GetNotificationPreferencesCommand.js +17 -0
  20. package/dist-es/commands/GetUserIdByUsernameCommand.js +17 -0
  21. package/dist-es/commands/RegisterPushTokenCommand.js +17 -0
  22. package/dist-es/commands/SwipeByUsernameCommand.js +17 -0
  23. package/dist-es/commands/UpdateChatSettingsCommand.js +17 -0
  24. package/dist-es/commands/index.js +8 -0
  25. package/dist-es/graphql/types.js +5 -0
  26. package/dist-es/models/models_0.js +16 -5
  27. package/dist-es/protocols/Aws_restJson1.js +286 -1
  28. package/dist-types/OneHook.d.ts +58 -0
  29. package/dist-types/OneHookClient.d.ts +10 -2
  30. package/dist-types/commands/DeletePushTokenCommand.d.ts +85 -0
  31. package/dist-types/commands/GetChatSettingsCommand.d.ts +85 -0
  32. package/dist-types/commands/GetCredentialReadinessCommand.d.ts +93 -0
  33. package/dist-types/commands/GetMyProfileCommand.d.ts +4 -1
  34. package/dist-types/commands/GetNotificationPreferencesCommand.d.ts +91 -0
  35. package/dist-types/commands/GetPreferencesCommand.d.ts +37 -1
  36. package/dist-types/commands/GetProfileCommand.d.ts +4 -1
  37. package/dist-types/commands/GetUserIdByUsernameCommand.d.ts +84 -0
  38. package/dist-types/commands/RegisterPushTokenCommand.d.ts +93 -0
  39. package/dist-types/commands/SwipeByUsernameCommand.d.ts +93 -0
  40. package/dist-types/commands/UpdateChatSettingsCommand.d.ts +95 -0
  41. package/dist-types/commands/UpdatePreferencesCommand.d.ts +37 -1
  42. package/dist-types/commands/UpdateProfileCommand.d.ts +4 -1
  43. package/dist-types/commands/index.d.ts +8 -0
  44. package/dist-types/graphql/types.d.ts +33 -0
  45. package/dist-types/models/models_0.d.ts +466 -13
  46. package/dist-types/protocols/Aws_restJson1.d.ts +72 -0
  47. package/package.json +1 -1
package/README.md CHANGED
@@ -206,6 +206,20 @@ DeleteMatchMessages
206
206
  </details>
207
207
  <details>
208
208
  <summary>
209
+ DeletePushToken
210
+ </summary>
211
+
212
+ [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/)
213
+ </details>
214
+ <details>
215
+ <summary>
216
+ GetChatSettings
217
+ </summary>
218
+
219
+ [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/)
220
+ </details>
221
+ <details>
222
+ <summary>
209
223
  GetParticipantRegistry
210
224
  </summary>
211
225
 
@@ -227,6 +241,13 @@ RegisterDevice
227
241
  </details>
228
242
  <details>
229
243
  <summary>
244
+ RegisterPushToken
245
+ </summary>
246
+
247
+ [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/)
248
+ </details>
249
+ <details>
250
+ <summary>
230
251
  RevokeDevice
231
252
  </summary>
232
253
 
@@ -234,6 +255,13 @@ RevokeDevice
234
255
  </details>
235
256
  <details>
236
257
  <summary>
258
+ UpdateChatSettings
259
+ </summary>
260
+
261
+ [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/)
262
+ </details>
263
+ <details>
264
+ <summary>
237
265
  AuthSocial
238
266
  </summary>
239
267
 
@@ -248,6 +276,13 @@ GenerateInvite
248
276
  </details>
249
277
  <details>
250
278
  <summary>
279
+ GetCredentialReadiness
280
+ </summary>
281
+
282
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/onehook/command/GetCredentialReadinessCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-onehook/Interface/GetCredentialReadinessCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-onehook/Interface/GetCredentialReadinessCommandOutput/)
283
+ </details>
284
+ <details>
285
+ <summary>
251
286
  GetUser
252
287
  </summary>
253
288
 
@@ -262,6 +297,13 @@ GetUserByEmail
262
297
  </details>
263
298
  <details>
264
299
  <summary>
300
+ GetUserIdByUsername
301
+ </summary>
302
+
303
+ [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/)
304
+ </details>
305
+ <details>
306
+ <summary>
265
307
  LinkEmail
266
308
  </summary>
267
309
 
@@ -346,6 +388,13 @@ Discover
346
388
  </details>
347
389
  <details>
348
390
  <summary>
391
+ GetNotificationPreferences
392
+ </summary>
393
+
394
+ [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/)
395
+ </details>
396
+ <details>
397
+ <summary>
349
398
  GetPreferences
350
399
  </summary>
351
400
 
@@ -374,6 +423,13 @@ Swipe
374
423
  </details>
375
424
  <details>
376
425
  <summary>
426
+ SwipeByUsername
427
+ </summary>
428
+
429
+ [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/)
430
+ </details>
431
+ <details>
432
+ <summary>
377
433
  UpdatePreferences
378
434
  </summary>
379
435
 
@@ -8,19 +8,24 @@ const CompleteOnboardingCommand_1 = require("./commands/CompleteOnboardingComman
8
8
  const CreateLivenessSessionCommand_1 = require("./commands/CreateLivenessSessionCommand");
9
9
  const DeleteMatchMessagesCommand_1 = require("./commands/DeleteMatchMessagesCommand");
10
10
  const DeleteProfileCommand_1 = require("./commands/DeleteProfileCommand");
11
+ const DeletePushTokenCommand_1 = require("./commands/DeletePushTokenCommand");
11
12
  const DiscoverCommand_1 = require("./commands/DiscoverCommand");
12
13
  const GenerateDownloadUrlCommand_1 = require("./commands/GenerateDownloadUrlCommand");
13
14
  const GenerateInviteCommand_1 = require("./commands/GenerateInviteCommand");
14
15
  const GenerateUploadUrlCommand_1 = require("./commands/GenerateUploadUrlCommand");
16
+ const GetChatSettingsCommand_1 = require("./commands/GetChatSettingsCommand");
17
+ const GetCredentialReadinessCommand_1 = require("./commands/GetCredentialReadinessCommand");
15
18
  const GetLivenessStatusCommand_1 = require("./commands/GetLivenessStatusCommand");
16
19
  const GetMatchCommand_1 = require("./commands/GetMatchCommand");
17
20
  const GetMyProfileCommand_1 = require("./commands/GetMyProfileCommand");
21
+ const GetNotificationPreferencesCommand_1 = require("./commands/GetNotificationPreferencesCommand");
18
22
  const GetParticipantRegistryCommand_1 = require("./commands/GetParticipantRegistryCommand");
19
23
  const GetPreferencesCommand_1 = require("./commands/GetPreferencesCommand");
20
24
  const GetProfileCommand_1 = require("./commands/GetProfileCommand");
21
25
  const GetStateCommand_1 = require("./commands/GetStateCommand");
22
26
  const GetUserByEmailCommand_1 = require("./commands/GetUserByEmailCommand");
23
27
  const GetUserCommand_1 = require("./commands/GetUserCommand");
28
+ const GetUserIdByUsernameCommand_1 = require("./commands/GetUserIdByUsernameCommand");
24
29
  const IndexLocationCommand_1 = require("./commands/IndexLocationCommand");
25
30
  const InitUserCommand_1 = require("./commands/InitUserCommand");
26
31
  const LinkEmailCommand_1 = require("./commands/LinkEmailCommand");
@@ -28,14 +33,17 @@ const LinkSocialCommand_1 = require("./commands/LinkSocialCommand");
28
33
  const ListMyDevicesCommand_1 = require("./commands/ListMyDevicesCommand");
29
34
  const RegisterDeviceCommand_1 = require("./commands/RegisterDeviceCommand");
30
35
  const RegisterPhoneCommand_1 = require("./commands/RegisterPhoneCommand");
36
+ const RegisterPushTokenCommand_1 = require("./commands/RegisterPushTokenCommand");
31
37
  const RemoveLocationCommand_1 = require("./commands/RemoveLocationCommand");
32
38
  const RequestEmailOtpCommand_1 = require("./commands/RequestEmailOtpCommand");
33
39
  const RequestPhoneOtpCommand_1 = require("./commands/RequestPhoneOtpCommand");
34
40
  const RequestPhoneUpdateOtpCommand_1 = require("./commands/RequestPhoneUpdateOtpCommand");
35
41
  const RevokeDeviceCommand_1 = require("./commands/RevokeDeviceCommand");
42
+ const SwipeByUsernameCommand_1 = require("./commands/SwipeByUsernameCommand");
36
43
  const SwipeCommand_1 = require("./commands/SwipeCommand");
37
44
  const UnhookCommand_1 = require("./commands/UnhookCommand");
38
45
  const UnlinkSocialCommand_1 = require("./commands/UnlinkSocialCommand");
46
+ const UpdateChatSettingsCommand_1 = require("./commands/UpdateChatSettingsCommand");
39
47
  const UpdateEntitlementsCommand_1 = require("./commands/UpdateEntitlementsCommand");
40
48
  const UpdatePhoneNumberCommand_1 = require("./commands/UpdatePhoneNumberCommand");
41
49
  const UpdatePreferencesCommand_1 = require("./commands/UpdatePreferencesCommand");
@@ -46,14 +54,20 @@ const ValidateInviteCommand_1 = require("./commands/ValidateInviteCommand");
46
54
  const smithy_client_1 = require("@smithy/smithy-client");
47
55
  const commands = {
48
56
  DeleteMatchMessagesCommand: DeleteMatchMessagesCommand_1.DeleteMatchMessagesCommand,
57
+ DeletePushTokenCommand: DeletePushTokenCommand_1.DeletePushTokenCommand,
58
+ GetChatSettingsCommand: GetChatSettingsCommand_1.GetChatSettingsCommand,
49
59
  GetParticipantRegistryCommand: GetParticipantRegistryCommand_1.GetParticipantRegistryCommand,
50
60
  ListMyDevicesCommand: ListMyDevicesCommand_1.ListMyDevicesCommand,
51
61
  RegisterDeviceCommand: RegisterDeviceCommand_1.RegisterDeviceCommand,
62
+ RegisterPushTokenCommand: RegisterPushTokenCommand_1.RegisterPushTokenCommand,
52
63
  RevokeDeviceCommand: RevokeDeviceCommand_1.RevokeDeviceCommand,
64
+ UpdateChatSettingsCommand: UpdateChatSettingsCommand_1.UpdateChatSettingsCommand,
53
65
  AuthSocialCommand: AuthSocialCommand_1.AuthSocialCommand,
54
66
  GenerateInviteCommand: GenerateInviteCommand_1.GenerateInviteCommand,
67
+ GetCredentialReadinessCommand: GetCredentialReadinessCommand_1.GetCredentialReadinessCommand,
55
68
  GetUserCommand: GetUserCommand_1.GetUserCommand,
56
69
  GetUserByEmailCommand: GetUserByEmailCommand_1.GetUserByEmailCommand,
70
+ GetUserIdByUsernameCommand: GetUserIdByUsernameCommand_1.GetUserIdByUsernameCommand,
57
71
  LinkEmailCommand: LinkEmailCommand_1.LinkEmailCommand,
58
72
  LinkSocialCommand: LinkSocialCommand_1.LinkSocialCommand,
59
73
  RegisterPhoneCommand: RegisterPhoneCommand_1.RegisterPhoneCommand,
@@ -66,10 +80,12 @@ const commands = {
66
80
  UpdateUsernameCommand: UpdateUsernameCommand_1.UpdateUsernameCommand,
67
81
  ValidateInviteCommand: ValidateInviteCommand_1.ValidateInviteCommand,
68
82
  DiscoverCommand: DiscoverCommand_1.DiscoverCommand,
83
+ GetNotificationPreferencesCommand: GetNotificationPreferencesCommand_1.GetNotificationPreferencesCommand,
69
84
  GetPreferencesCommand: GetPreferencesCommand_1.GetPreferencesCommand,
70
85
  IndexLocationCommand: IndexLocationCommand_1.IndexLocationCommand,
71
86
  RemoveLocationCommand: RemoveLocationCommand_1.RemoveLocationCommand,
72
87
  SwipeCommand: SwipeCommand_1.SwipeCommand,
88
+ SwipeByUsernameCommand: SwipeByUsernameCommand_1.SwipeByUsernameCommand,
73
89
  UpdatePreferencesCommand: UpdatePreferencesCommand_1.UpdatePreferencesCommand,
74
90
  CompleteLivenessSessionCommand: CompleteLivenessSessionCommand_1.CompleteLivenessSessionCommand,
75
91
  CreateLivenessSessionCommand: CreateLivenessSessionCommand_1.CreateLivenessSessionCommand,
@@ -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.GetCredentialReadinessCommand = 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 GetCredentialReadinessCommand 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", "GetCredentialReadiness", {})
15
+ .n("OneHookClient", "GetCredentialReadinessCommand")
16
+ .f(void 0, void 0)
17
+ .ser(Aws_restJson1_1.se_GetCredentialReadinessCommand)
18
+ .de(Aws_restJson1_1.de_GetCredentialReadinessCommand)
19
+ .build() {
20
+ }
21
+ exports.GetCredentialReadinessCommand = GetCredentialReadinessCommand;
@@ -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;
@@ -2,14 +2,20 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  tslib_1.__exportStar(require("./DeleteMatchMessagesCommand"), exports);
5
+ tslib_1.__exportStar(require("./DeletePushTokenCommand"), exports);
6
+ tslib_1.__exportStar(require("./GetChatSettingsCommand"), exports);
5
7
  tslib_1.__exportStar(require("./GetParticipantRegistryCommand"), exports);
6
8
  tslib_1.__exportStar(require("./ListMyDevicesCommand"), exports);
7
9
  tslib_1.__exportStar(require("./RegisterDeviceCommand"), exports);
10
+ tslib_1.__exportStar(require("./RegisterPushTokenCommand"), exports);
8
11
  tslib_1.__exportStar(require("./RevokeDeviceCommand"), exports);
12
+ tslib_1.__exportStar(require("./UpdateChatSettingsCommand"), exports);
9
13
  tslib_1.__exportStar(require("./AuthSocialCommand"), exports);
10
14
  tslib_1.__exportStar(require("./GenerateInviteCommand"), exports);
15
+ tslib_1.__exportStar(require("./GetCredentialReadinessCommand"), exports);
11
16
  tslib_1.__exportStar(require("./GetUserCommand"), exports);
12
17
  tslib_1.__exportStar(require("./GetUserByEmailCommand"), exports);
18
+ tslib_1.__exportStar(require("./GetUserIdByUsernameCommand"), exports);
13
19
  tslib_1.__exportStar(require("./LinkEmailCommand"), exports);
14
20
  tslib_1.__exportStar(require("./LinkSocialCommand"), exports);
15
21
  tslib_1.__exportStar(require("./RegisterPhoneCommand"), exports);
@@ -22,10 +28,12 @@ tslib_1.__exportStar(require("./UpdatePhoneNumberCommand"), exports);
22
28
  tslib_1.__exportStar(require("./UpdateUsernameCommand"), exports);
23
29
  tslib_1.__exportStar(require("./ValidateInviteCommand"), exports);
24
30
  tslib_1.__exportStar(require("./DiscoverCommand"), exports);
31
+ tslib_1.__exportStar(require("./GetNotificationPreferencesCommand"), exports);
25
32
  tslib_1.__exportStar(require("./GetPreferencesCommand"), exports);
26
33
  tslib_1.__exportStar(require("./IndexLocationCommand"), exports);
27
34
  tslib_1.__exportStar(require("./RemoveLocationCommand"), exports);
28
35
  tslib_1.__exportStar(require("./SwipeCommand"), exports);
36
+ tslib_1.__exportStar(require("./SwipeByUsernameCommand"), exports);
29
37
  tslib_1.__exportStar(require("./UpdatePreferencesCommand"), exports);
30
38
  tslib_1.__exportStar(require("./CompleteLivenessSessionCommand"), exports);
31
39
  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.DeviceLimitError = exports.NotFoundError = exports.Platform = exports.InternalServerError = exports.BadRequestError = exports.ForbiddenError = void 0;
3
+ exports.CredentialGap = exports.DeviceLimitError = exports.Platform = exports.LastSeenVisibility = 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,16 @@ class NotFoundError extends OneHookServiceException_1.OneHookServiceException {
67
62
  }
68
63
  }
69
64
  exports.NotFoundError = NotFoundError;
65
+ exports.LastSeenVisibility = {
66
+ EVERYONE: "EVERYONE",
67
+ MATCHES: "MATCHES",
68
+ NOBODY: "NOBODY",
69
+ };
70
+ exports.Platform = {
71
+ ANDROID: "ANDROID",
72
+ IOS: "IOS",
73
+ WEB: "WEB",
74
+ };
70
75
  class DeviceLimitError extends OneHookServiceException_1.OneHookServiceException {
71
76
  name = "DeviceLimitError";
72
77
  $fault = "client";
@@ -82,3 +87,9 @@ class DeviceLimitError extends OneHookServiceException_1.OneHookServiceException
82
87
  }
83
88
  }
84
89
  exports.DeviceLimitError = DeviceLimitError;
90
+ exports.CredentialGap = {
91
+ NO_COGNITO_USERNAME_ON_PROFILE: "NO_COGNITO_USERNAME_ON_PROFILE",
92
+ PHONE_NOT_VERIFIED: "PHONE_NOT_VERIFIED",
93
+ USERNAME_MISMATCHED_IN_COGNITO: "USERNAME_MISMATCHED_IN_COGNITO",
94
+ USERNAME_NOT_SYNCED_TO_COGNITO: "USERNAME_NOT_SYNCED_TO_COGNITO",
95
+ };