onehook-api-client 1.0.12 → 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 (44) hide show
  1. package/README.md +49 -0
  2. package/dist-cjs/OneHook.js +14 -0
  3. package/dist-cjs/commands/DeletePushTokenCommand.js +21 -0
  4. package/dist-cjs/commands/GetChatSettingsCommand.js +21 -0
  5. package/dist-cjs/commands/GetNotificationPreferencesCommand.js +21 -0
  6. package/dist-cjs/commands/GetUserIdByUsernameCommand.js +21 -0
  7. package/dist-cjs/commands/RegisterPushTokenCommand.js +21 -0
  8. package/dist-cjs/commands/SwipeByUsernameCommand.js +21 -0
  9. package/dist-cjs/commands/UpdateChatSettingsCommand.js +21 -0
  10. package/dist-cjs/commands/index.js +7 -0
  11. package/dist-cjs/graphql/types.js +6 -1
  12. package/dist-cjs/models/models_0.js +11 -6
  13. package/dist-cjs/protocols/Aws_restJson1.js +276 -3
  14. package/dist-es/OneHook.js +14 -0
  15. package/dist-es/commands/DeletePushTokenCommand.js +17 -0
  16. package/dist-es/commands/GetChatSettingsCommand.js +17 -0
  17. package/dist-es/commands/GetNotificationPreferencesCommand.js +17 -0
  18. package/dist-es/commands/GetUserIdByUsernameCommand.js +17 -0
  19. package/dist-es/commands/RegisterPushTokenCommand.js +17 -0
  20. package/dist-es/commands/SwipeByUsernameCommand.js +17 -0
  21. package/dist-es/commands/UpdateChatSettingsCommand.js +17 -0
  22. package/dist-es/commands/index.js +7 -0
  23. package/dist-es/graphql/types.js +5 -0
  24. package/dist-es/models/models_0.js +10 -5
  25. package/dist-es/protocols/Aws_restJson1.js +260 -1
  26. package/dist-types/OneHook.d.ts +51 -0
  27. package/dist-types/OneHookClient.d.ts +9 -2
  28. package/dist-types/commands/DeletePushTokenCommand.d.ts +85 -0
  29. package/dist-types/commands/GetChatSettingsCommand.d.ts +85 -0
  30. package/dist-types/commands/GetMyProfileCommand.d.ts +4 -1
  31. package/dist-types/commands/GetNotificationPreferencesCommand.d.ts +91 -0
  32. package/dist-types/commands/GetPreferencesCommand.d.ts +37 -1
  33. package/dist-types/commands/GetProfileCommand.d.ts +4 -1
  34. package/dist-types/commands/GetUserIdByUsernameCommand.d.ts +84 -0
  35. package/dist-types/commands/RegisterPushTokenCommand.d.ts +93 -0
  36. package/dist-types/commands/SwipeByUsernameCommand.d.ts +93 -0
  37. package/dist-types/commands/UpdateChatSettingsCommand.d.ts +95 -0
  38. package/dist-types/commands/UpdatePreferencesCommand.d.ts +37 -1
  39. package/dist-types/commands/UpdateProfileCommand.d.ts +4 -1
  40. package/dist-types/commands/index.d.ts +7 -0
  41. package/dist-types/graphql/types.d.ts +33 -0
  42. package/dist-types/models/models_0.d.ts +431 -13
  43. package/dist-types/protocols/Aws_restJson1.d.ts +63 -0
  44. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.de_GetCredentialReadinessCommand = exports.de_GenerateInviteCommand = exports.de_AuthSocialCommand = exports.de_RevokeDeviceCommand = exports.de_RegisterDeviceCommand = exports.de_ListMyDevicesCommand = exports.de_GetParticipantRegistryCommand = exports.de_DeleteMatchMessagesCommand = exports.se_UpgradeUserCommand = exports.se_UnhookCommand = exports.se_InitUserCommand = exports.se_GetStateCommand = exports.se_GetMatchCommand = exports.se_CompleteOnboardingCommand = exports.se_UpdateProfileCommand = exports.se_GetProfileCommand = exports.se_GetMyProfileCommand = exports.se_GetLivenessStatusCommand = exports.se_GenerateUploadUrlCommand = exports.se_GenerateDownloadUrlCommand = exports.se_DeleteProfileCommand = exports.se_CreateLivenessSessionCommand = exports.se_CompleteLivenessSessionCommand = exports.se_UpdatePreferencesCommand = exports.se_SwipeCommand = exports.se_RemoveLocationCommand = exports.se_IndexLocationCommand = exports.se_GetPreferencesCommand = exports.se_DiscoverCommand = exports.se_ValidateInviteCommand = exports.se_UpdateUsernameCommand = exports.se_UpdatePhoneNumberCommand = exports.se_UpdateEntitlementsCommand = exports.se_UnlinkSocialCommand = exports.se_RequestPhoneUpdateOtpCommand = exports.se_RequestPhoneOtpCommand = exports.se_RequestEmailOtpCommand = exports.se_RegisterPhoneCommand = exports.se_LinkSocialCommand = exports.se_LinkEmailCommand = exports.se_GetUserByEmailCommand = exports.se_GetUserCommand = exports.se_GetCredentialReadinessCommand = exports.se_GenerateInviteCommand = exports.se_AuthSocialCommand = exports.se_RevokeDeviceCommand = exports.se_RegisterDeviceCommand = exports.se_ListMyDevicesCommand = exports.se_GetParticipantRegistryCommand = exports.se_DeleteMatchMessagesCommand = void 0;
4
- exports.de_UpgradeUserCommand = exports.de_UnhookCommand = exports.de_InitUserCommand = exports.de_GetStateCommand = exports.de_GetMatchCommand = exports.de_CompleteOnboardingCommand = exports.de_UpdateProfileCommand = exports.de_GetProfileCommand = exports.de_GetMyProfileCommand = exports.de_GetLivenessStatusCommand = exports.de_GenerateUploadUrlCommand = exports.de_GenerateDownloadUrlCommand = exports.de_DeleteProfileCommand = exports.de_CreateLivenessSessionCommand = exports.de_CompleteLivenessSessionCommand = exports.de_UpdatePreferencesCommand = exports.de_SwipeCommand = exports.de_RemoveLocationCommand = exports.de_IndexLocationCommand = exports.de_GetPreferencesCommand = exports.de_DiscoverCommand = exports.de_ValidateInviteCommand = exports.de_UpdateUsernameCommand = exports.de_UpdatePhoneNumberCommand = exports.de_UpdateEntitlementsCommand = exports.de_UnlinkSocialCommand = exports.de_RequestPhoneUpdateOtpCommand = exports.de_RequestPhoneOtpCommand = exports.de_RequestEmailOtpCommand = exports.de_RegisterPhoneCommand = exports.de_LinkSocialCommand = exports.de_LinkEmailCommand = exports.de_GetUserByEmailCommand = exports.de_GetUserCommand = void 0;
3
+ exports.de_DeleteMatchMessagesCommand = exports.se_UpgradeUserCommand = exports.se_UnhookCommand = exports.se_InitUserCommand = exports.se_GetStateCommand = exports.se_GetMatchCommand = exports.se_CompleteOnboardingCommand = exports.se_UpdateProfileCommand = exports.se_GetProfileCommand = exports.se_GetMyProfileCommand = exports.se_GetLivenessStatusCommand = exports.se_GenerateUploadUrlCommand = exports.se_GenerateDownloadUrlCommand = exports.se_DeleteProfileCommand = exports.se_CreateLivenessSessionCommand = exports.se_CompleteLivenessSessionCommand = exports.se_UpdatePreferencesCommand = exports.se_SwipeByUsernameCommand = exports.se_SwipeCommand = exports.se_RemoveLocationCommand = exports.se_IndexLocationCommand = exports.se_GetPreferencesCommand = exports.se_GetNotificationPreferencesCommand = exports.se_DiscoverCommand = exports.se_ValidateInviteCommand = exports.se_UpdateUsernameCommand = exports.se_UpdatePhoneNumberCommand = exports.se_UpdateEntitlementsCommand = exports.se_UnlinkSocialCommand = exports.se_RequestPhoneUpdateOtpCommand = exports.se_RequestPhoneOtpCommand = exports.se_RequestEmailOtpCommand = exports.se_RegisterPhoneCommand = exports.se_LinkSocialCommand = exports.se_LinkEmailCommand = exports.se_GetUserIdByUsernameCommand = exports.se_GetUserByEmailCommand = exports.se_GetUserCommand = exports.se_GetCredentialReadinessCommand = exports.se_GenerateInviteCommand = exports.se_AuthSocialCommand = exports.se_UpdateChatSettingsCommand = exports.se_RevokeDeviceCommand = exports.se_RegisterPushTokenCommand = exports.se_RegisterDeviceCommand = exports.se_ListMyDevicesCommand = exports.se_GetParticipantRegistryCommand = exports.se_GetChatSettingsCommand = exports.se_DeletePushTokenCommand = exports.se_DeleteMatchMessagesCommand = void 0;
4
+ exports.de_UpgradeUserCommand = exports.de_UnhookCommand = exports.de_InitUserCommand = exports.de_GetStateCommand = exports.de_GetMatchCommand = exports.de_CompleteOnboardingCommand = exports.de_UpdateProfileCommand = exports.de_GetProfileCommand = exports.de_GetMyProfileCommand = exports.de_GetLivenessStatusCommand = exports.de_GenerateUploadUrlCommand = exports.de_GenerateDownloadUrlCommand = exports.de_DeleteProfileCommand = exports.de_CreateLivenessSessionCommand = exports.de_CompleteLivenessSessionCommand = exports.de_UpdatePreferencesCommand = exports.de_SwipeByUsernameCommand = exports.de_SwipeCommand = exports.de_RemoveLocationCommand = exports.de_IndexLocationCommand = exports.de_GetPreferencesCommand = exports.de_GetNotificationPreferencesCommand = exports.de_DiscoverCommand = exports.de_ValidateInviteCommand = exports.de_UpdateUsernameCommand = exports.de_UpdatePhoneNumberCommand = exports.de_UpdateEntitlementsCommand = exports.de_UnlinkSocialCommand = exports.de_RequestPhoneUpdateOtpCommand = exports.de_RequestPhoneOtpCommand = exports.de_RequestEmailOtpCommand = exports.de_RegisterPhoneCommand = exports.de_LinkSocialCommand = exports.de_LinkEmailCommand = exports.de_GetUserIdByUsernameCommand = exports.de_GetUserByEmailCommand = exports.de_GetUserCommand = exports.de_GetCredentialReadinessCommand = exports.de_GenerateInviteCommand = exports.de_AuthSocialCommand = exports.de_UpdateChatSettingsCommand = exports.de_RevokeDeviceCommand = exports.de_RegisterPushTokenCommand = exports.de_RegisterDeviceCommand = exports.de_ListMyDevicesCommand = exports.de_GetParticipantRegistryCommand = exports.de_GetChatSettingsCommand = exports.de_DeletePushTokenCommand = void 0;
5
5
  const OneHookServiceException_1 = require("../models/OneHookServiceException");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const core_1 = require("@aws-sdk/core");
@@ -19,6 +19,29 @@ const se_DeleteMatchMessagesCommand = async (input, context) => {
19
19
  return b.build();
20
20
  };
21
21
  exports.se_DeleteMatchMessagesCommand = se_DeleteMatchMessagesCommand;
22
+ const se_DeletePushTokenCommand = async (input, context) => {
23
+ const b = (0, core_2.requestBuilder)(input, context);
24
+ const headers = {};
25
+ b.bp("/chat/devices/{deviceId}/push-token");
26
+ b.p('deviceId', () => input.deviceId, '{deviceId}', false);
27
+ let body;
28
+ b.m("DELETE")
29
+ .h(headers)
30
+ .b(body);
31
+ return b.build();
32
+ };
33
+ exports.se_DeletePushTokenCommand = se_DeletePushTokenCommand;
34
+ const se_GetChatSettingsCommand = async (input, context) => {
35
+ const b = (0, core_2.requestBuilder)(input, context);
36
+ const headers = {};
37
+ b.bp("/chat/settings");
38
+ let body;
39
+ b.m("GET")
40
+ .h(headers)
41
+ .b(body);
42
+ return b.build();
43
+ };
44
+ exports.se_GetChatSettingsCommand = se_GetChatSettingsCommand;
22
45
  const se_GetParticipantRegistryCommand = async (input, context) => {
23
46
  const b = (0, core_2.requestBuilder)(input, context);
24
47
  const headers = {};
@@ -67,6 +90,24 @@ const se_RegisterDeviceCommand = async (input, context) => {
67
90
  return b.build();
68
91
  };
69
92
  exports.se_RegisterDeviceCommand = se_RegisterDeviceCommand;
93
+ const se_RegisterPushTokenCommand = async (input, context) => {
94
+ const b = (0, core_2.requestBuilder)(input, context);
95
+ const headers = {
96
+ 'content-type': 'application/json',
97
+ };
98
+ b.bp("/chat/devices/{deviceId}/push-token");
99
+ b.p('deviceId', () => input.deviceId, '{deviceId}', false);
100
+ let body;
101
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
102
+ 'platform': [],
103
+ 'token': [],
104
+ }));
105
+ b.m("PUT")
106
+ .h(headers)
107
+ .b(body);
108
+ return b.build();
109
+ };
110
+ exports.se_RegisterPushTokenCommand = se_RegisterPushTokenCommand;
70
111
  const se_RevokeDeviceCommand = async (input, context) => {
71
112
  const b = (0, core_2.requestBuilder)(input, context);
72
113
  const headers = {};
@@ -79,6 +120,29 @@ const se_RevokeDeviceCommand = async (input, context) => {
79
120
  return b.build();
80
121
  };
81
122
  exports.se_RevokeDeviceCommand = se_RevokeDeviceCommand;
123
+ const se_UpdateChatSettingsCommand = async (input, context) => {
124
+ const b = (0, core_2.requestBuilder)(input, context);
125
+ const headers = {
126
+ 'content-type': 'application/json',
127
+ };
128
+ b.bp("/chat/settings");
129
+ let body;
130
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
131
+ 'defaultDisappearingSeconds': [],
132
+ 'lastSeenVisibility': [],
133
+ 'messageNotifications': [],
134
+ 'reactionNotifications': [],
135
+ 'readReceipts': [],
136
+ 'screenshotProtection': [],
137
+ 'showPreviews': [],
138
+ 'typingIndicators': [],
139
+ }));
140
+ b.m("PUT")
141
+ .h(headers)
142
+ .b(body);
143
+ return b.build();
144
+ };
145
+ exports.se_UpdateChatSettingsCommand = se_UpdateChatSettingsCommand;
82
146
  const se_AuthSocialCommand = async (input, context) => {
83
147
  const b = (0, core_2.requestBuilder)(input, context);
84
148
  const headers = {
@@ -149,6 +213,18 @@ const se_GetUserByEmailCommand = async (input, context) => {
149
213
  return b.build();
150
214
  };
151
215
  exports.se_GetUserByEmailCommand = se_GetUserByEmailCommand;
216
+ const se_GetUserIdByUsernameCommand = async (input, context) => {
217
+ const b = (0, core_2.requestBuilder)(input, context);
218
+ const headers = {};
219
+ b.bp("/identity/users/by-username/{username}");
220
+ b.p('username', () => input.username, '{username}', false);
221
+ let body;
222
+ b.m("GET")
223
+ .h(headers)
224
+ .b(body);
225
+ return b.build();
226
+ };
227
+ exports.se_GetUserIdByUsernameCommand = se_GetUserIdByUsernameCommand;
152
228
  const se_LinkEmailCommand = async (input, context) => {
153
229
  const b = (0, core_2.requestBuilder)(input, context);
154
230
  const headers = {
@@ -345,6 +421,18 @@ const se_DiscoverCommand = async (input, context) => {
345
421
  return b.build();
346
422
  };
347
423
  exports.se_DiscoverCommand = se_DiscoverCommand;
424
+ const se_GetNotificationPreferencesCommand = async (input, context) => {
425
+ const b = (0, core_2.requestBuilder)(input, context);
426
+ const headers = {};
427
+ b.bp("/matching/internal/users/{userId}/notification-preferences");
428
+ b.p('userId', () => input.userId, '{userId}', false);
429
+ let body;
430
+ b.m("GET")
431
+ .h(headers)
432
+ .b(body);
433
+ return b.build();
434
+ };
435
+ exports.se_GetNotificationPreferencesCommand = se_GetNotificationPreferencesCommand;
348
436
  const se_GetPreferencesCommand = async (input, context) => {
349
437
  const b = (0, core_2.requestBuilder)(input, context);
350
438
  const headers = {};
@@ -409,6 +497,22 @@ const se_SwipeCommand = async (input, context) => {
409
497
  return b.build();
410
498
  };
411
499
  exports.se_SwipeCommand = se_SwipeCommand;
500
+ const se_SwipeByUsernameCommand = async (input, context) => {
501
+ const b = (0, core_2.requestBuilder)(input, context);
502
+ const headers = {
503
+ 'content-type': 'application/json',
504
+ };
505
+ b.bp("/matching/swipe/by-username");
506
+ let body;
507
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
508
+ 'username': [],
509
+ }));
510
+ b.m("POST")
511
+ .h(headers)
512
+ .b(body);
513
+ return b.build();
514
+ };
515
+ exports.se_SwipeByUsernameCommand = se_SwipeByUsernameCommand;
412
516
  const se_UpdatePreferencesCommand = async (input, context) => {
413
517
  const b = (0, core_2.requestBuilder)(input, context);
414
518
  const headers = {
@@ -418,10 +522,38 @@ const se_UpdatePreferencesCommand = async (input, context) => {
418
522
  b.p('userId', () => input.userId, '{userId}', false);
419
523
  let body;
420
524
  body = JSON.stringify((0, smithy_client_1.take)(input, {
525
+ 'cannabis': [],
526
+ 'dealbreakers': _ => (0, smithy_client_1._json)(_),
527
+ 'discoverable': [],
528
+ 'distanceUnit': [],
529
+ 'drinking': [],
530
+ 'drugs': [],
531
+ 'educationLevel': [],
532
+ 'exercise': [],
533
+ 'familyPlans': [],
421
534
  'genders': _ => (0, smithy_client_1._json)(_),
535
+ 'incognito': [],
536
+ 'interestedInGenders': _ => (0, smithy_client_1._json)(_),
537
+ 'interests': _ => (0, smithy_client_1._json)(_),
422
538
  'maxAge': [],
423
539
  'maxDistanceKm': [],
540
+ 'maxHeight': [],
424
541
  'minAge': [],
542
+ 'minHeight': [],
543
+ 'notifyDailyPicks': [],
544
+ 'notifyLikes': [],
545
+ 'notifyMatches': [],
546
+ 'politicalView': [],
547
+ 'preferredLanguages': _ => (0, smithy_client_1._json)(_),
548
+ 'relationshipType': [],
549
+ 'religion': [],
550
+ 'requireBio': [],
551
+ 'requirePhoto': [],
552
+ 'requireRecentlyActive': [],
553
+ 'smoking': [],
554
+ 'starSigns': _ => (0, smithy_client_1._json)(_),
555
+ 'verifiedOnly': [],
556
+ 'wantsKids': [],
425
557
  }));
426
558
  b.m("PUT")
427
559
  .h(headers)
@@ -563,6 +695,7 @@ const se_UpdateProfileCommand = async (input, context) => {
563
695
  'interests': _ => (0, smithy_client_1._json)(_),
564
696
  'languages': _ => (0, smithy_client_1._json)(_),
565
697
  'openers': _ => (0, smithy_client_1._json)(_),
698
+ 'pictureTransforms': _ => (0, smithy_client_1._json)(_),
566
699
  'pictures': _ => (0, smithy_client_1._json)(_),
567
700
  'politicalView': [],
568
701
  'prompts': _ => (0, smithy_client_1._json)(_),
@@ -671,6 +804,37 @@ const de_DeleteMatchMessagesCommand = async (output, context) => {
671
804
  return contents;
672
805
  };
673
806
  exports.de_DeleteMatchMessagesCommand = de_DeleteMatchMessagesCommand;
807
+ const de_DeletePushTokenCommand = async (output, context) => {
808
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
809
+ return de_CommandError(output, context);
810
+ }
811
+ const contents = (0, smithy_client_1.map)({
812
+ $metadata: deserializeMetadata(output),
813
+ });
814
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
815
+ const doc = (0, smithy_client_1.take)(data, {
816
+ 'deleted': smithy_client_1.expectBoolean,
817
+ 'deviceId': smithy_client_1.expectString,
818
+ });
819
+ Object.assign(contents, doc);
820
+ return contents;
821
+ };
822
+ exports.de_DeletePushTokenCommand = de_DeletePushTokenCommand;
823
+ const de_GetChatSettingsCommand = async (output, context) => {
824
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
825
+ return de_CommandError(output, context);
826
+ }
827
+ const contents = (0, smithy_client_1.map)({
828
+ $metadata: deserializeMetadata(output),
829
+ });
830
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
831
+ const doc = (0, smithy_client_1.take)(data, {
832
+ 'settings': smithy_client_1._json,
833
+ });
834
+ Object.assign(contents, doc);
835
+ return contents;
836
+ };
837
+ exports.de_GetChatSettingsCommand = de_GetChatSettingsCommand;
674
838
  const de_GetParticipantRegistryCommand = async (output, context) => {
675
839
  if (output.statusCode !== 200 && output.statusCode >= 300) {
676
840
  return de_CommandError(output, context);
@@ -721,6 +885,22 @@ const de_RegisterDeviceCommand = async (output, context) => {
721
885
  return contents;
722
886
  };
723
887
  exports.de_RegisterDeviceCommand = de_RegisterDeviceCommand;
888
+ const de_RegisterPushTokenCommand = async (output, context) => {
889
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
890
+ return de_CommandError(output, context);
891
+ }
892
+ const contents = (0, smithy_client_1.map)({
893
+ $metadata: deserializeMetadata(output),
894
+ });
895
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
896
+ const doc = (0, smithy_client_1.take)(data, {
897
+ 'deviceId': smithy_client_1.expectString,
898
+ 'registered': smithy_client_1.expectBoolean,
899
+ });
900
+ Object.assign(contents, doc);
901
+ return contents;
902
+ };
903
+ exports.de_RegisterPushTokenCommand = de_RegisterPushTokenCommand;
724
904
  const de_RevokeDeviceCommand = async (output, context) => {
725
905
  if (output.statusCode !== 200 && output.statusCode >= 300) {
726
906
  return de_CommandError(output, context);
@@ -737,6 +917,21 @@ const de_RevokeDeviceCommand = async (output, context) => {
737
917
  return contents;
738
918
  };
739
919
  exports.de_RevokeDeviceCommand = de_RevokeDeviceCommand;
920
+ const de_UpdateChatSettingsCommand = async (output, context) => {
921
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
922
+ return de_CommandError(output, context);
923
+ }
924
+ const contents = (0, smithy_client_1.map)({
925
+ $metadata: deserializeMetadata(output),
926
+ });
927
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
928
+ const doc = (0, smithy_client_1.take)(data, {
929
+ 'settings': smithy_client_1._json,
930
+ });
931
+ Object.assign(contents, doc);
932
+ return contents;
933
+ };
934
+ exports.de_UpdateChatSettingsCommand = de_UpdateChatSettingsCommand;
740
935
  const de_AuthSocialCommand = async (output, context) => {
741
936
  if (output.statusCode !== 200 && output.statusCode >= 300) {
742
937
  return de_CommandError(output, context);
@@ -835,6 +1030,21 @@ const de_GetUserByEmailCommand = async (output, context) => {
835
1030
  return contents;
836
1031
  };
837
1032
  exports.de_GetUserByEmailCommand = de_GetUserByEmailCommand;
1033
+ const de_GetUserIdByUsernameCommand = async (output, context) => {
1034
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1035
+ return de_CommandError(output, context);
1036
+ }
1037
+ const contents = (0, smithy_client_1.map)({
1038
+ $metadata: deserializeMetadata(output),
1039
+ });
1040
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1041
+ const doc = (0, smithy_client_1.take)(data, {
1042
+ 'userId': smithy_client_1.expectString,
1043
+ });
1044
+ Object.assign(contents, doc);
1045
+ return contents;
1046
+ };
1047
+ exports.de_GetUserIdByUsernameCommand = de_GetUserIdByUsernameCommand;
838
1048
  const de_LinkEmailCommand = async (output, context) => {
839
1049
  if (output.statusCode !== 200 && output.statusCode >= 300) {
840
1050
  return de_CommandError(output, context);
@@ -1024,6 +1234,24 @@ const de_DiscoverCommand = async (output, context) => {
1024
1234
  return contents;
1025
1235
  };
1026
1236
  exports.de_DiscoverCommand = de_DiscoverCommand;
1237
+ const de_GetNotificationPreferencesCommand = async (output, context) => {
1238
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1239
+ return de_CommandError(output, context);
1240
+ }
1241
+ const contents = (0, smithy_client_1.map)({
1242
+ $metadata: deserializeMetadata(output),
1243
+ });
1244
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1245
+ const doc = (0, smithy_client_1.take)(data, {
1246
+ 'notifyDailyPicks': smithy_client_1.expectBoolean,
1247
+ 'notifyLikes': smithy_client_1.expectBoolean,
1248
+ 'notifyMatches': smithy_client_1.expectBoolean,
1249
+ 'userId': smithy_client_1.expectString,
1250
+ });
1251
+ Object.assign(contents, doc);
1252
+ return contents;
1253
+ };
1254
+ exports.de_GetNotificationPreferencesCommand = de_GetNotificationPreferencesCommand;
1027
1255
  const de_GetPreferencesCommand = async (output, context) => {
1028
1256
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1029
1257
  return de_CommandError(output, context);
@@ -1033,11 +1261,39 @@ const de_GetPreferencesCommand = async (output, context) => {
1033
1261
  });
1034
1262
  const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1035
1263
  const doc = (0, smithy_client_1.take)(data, {
1036
- 'genders': smithy_client_1._json,
1264
+ 'cannabis': smithy_client_1.expectString,
1265
+ 'dealbreakers': smithy_client_1._json,
1266
+ 'discoverable': smithy_client_1.expectBoolean,
1267
+ 'distanceUnit': smithy_client_1.expectString,
1268
+ 'drinking': smithy_client_1.expectString,
1269
+ 'drugs': smithy_client_1.expectString,
1270
+ 'educationLevel': smithy_client_1.expectString,
1271
+ 'exercise': smithy_client_1.expectString,
1272
+ 'familyPlans': smithy_client_1.expectString,
1273
+ 'incognito': smithy_client_1.expectBoolean,
1274
+ 'interestedInGenders': smithy_client_1._json,
1275
+ 'interests': smithy_client_1._json,
1037
1276
  'maxAge': smithy_client_1.expectInt32,
1038
1277
  'maxDistanceKm': smithy_client_1.expectInt32,
1278
+ 'maxHeight': smithy_client_1.expectInt32,
1039
1279
  'minAge': smithy_client_1.expectInt32,
1280
+ 'minHeight': smithy_client_1.expectInt32,
1281
+ 'notifyDailyPicks': smithy_client_1.expectBoolean,
1282
+ 'notifyLikes': smithy_client_1.expectBoolean,
1283
+ 'notifyMatches': smithy_client_1.expectBoolean,
1284
+ 'politicalView': smithy_client_1.expectString,
1285
+ 'preferredLanguages': smithy_client_1._json,
1286
+ 'recentlyActiveDays': smithy_client_1.expectInt32,
1287
+ 'relationshipType': smithy_client_1.expectString,
1288
+ 'religion': smithy_client_1.expectString,
1289
+ 'requireBio': smithy_client_1.expectBoolean,
1290
+ 'requirePhoto': smithy_client_1.expectBoolean,
1291
+ 'requireRecentlyActive': smithy_client_1.expectBoolean,
1292
+ 'smoking': smithy_client_1.expectString,
1293
+ 'starSigns': smithy_client_1._json,
1040
1294
  'userId': smithy_client_1.expectString,
1295
+ 'verifiedOnly': smithy_client_1.expectBoolean,
1296
+ 'wantsKids': smithy_client_1.expectString,
1041
1297
  });
1042
1298
  Object.assign(contents, doc);
1043
1299
  return contents;
@@ -1090,6 +1346,21 @@ const de_SwipeCommand = async (output, context) => {
1090
1346
  return contents;
1091
1347
  };
1092
1348
  exports.de_SwipeCommand = de_SwipeCommand;
1349
+ const de_SwipeByUsernameCommand = async (output, context) => {
1350
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1351
+ return de_CommandError(output, context);
1352
+ }
1353
+ const contents = (0, smithy_client_1.map)({
1354
+ $metadata: deserializeMetadata(output),
1355
+ });
1356
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1357
+ const doc = (0, smithy_client_1.take)(data, {
1358
+ 'status': smithy_client_1.expectString,
1359
+ });
1360
+ Object.assign(contents, doc);
1361
+ return contents;
1362
+ };
1363
+ exports.de_SwipeByUsernameCommand = de_SwipeByUsernameCommand;
1093
1364
  const de_UpdatePreferencesCommand = async (output, context) => {
1094
1365
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1095
1366
  return de_CommandError(output, context);
@@ -1230,6 +1501,7 @@ const de_GetMyProfileCommand = async (output, context) => {
1230
1501
  'languages': smithy_client_1._json,
1231
1502
  'moderationStatus': smithy_client_1.expectString,
1232
1503
  'openers': smithy_client_1._json,
1504
+ 'pictureTransforms': smithy_client_1._json,
1233
1505
  'pictures': smithy_client_1._json,
1234
1506
  'politicalView': smithy_client_1.expectString,
1235
1507
  'prompts': smithy_client_1._json,
@@ -1282,6 +1554,7 @@ const de_GetProfileCommand = async (output, context) => {
1282
1554
  'languages': smithy_client_1._json,
1283
1555
  'moderationStatus': smithy_client_1.expectString,
1284
1556
  'openers': smithy_client_1._json,
1557
+ 'pictureTransforms': smithy_client_1._json,
1285
1558
  'pictures': smithy_client_1._json,
1286
1559
  'politicalView': smithy_client_1.expectString,
1287
1560
  'prompts': smithy_client_1._json,
@@ -5,20 +5,24 @@ import { CompleteOnboardingCommand, } from "./commands/CompleteOnboardingCommand
5
5
  import { CreateLivenessSessionCommand, } from "./commands/CreateLivenessSessionCommand";
6
6
  import { DeleteMatchMessagesCommand, } from "./commands/DeleteMatchMessagesCommand";
7
7
  import { DeleteProfileCommand, } from "./commands/DeleteProfileCommand";
8
+ import { DeletePushTokenCommand, } from "./commands/DeletePushTokenCommand";
8
9
  import { DiscoverCommand, } from "./commands/DiscoverCommand";
9
10
  import { GenerateDownloadUrlCommand, } from "./commands/GenerateDownloadUrlCommand";
10
11
  import { GenerateInviteCommand, } from "./commands/GenerateInviteCommand";
11
12
  import { GenerateUploadUrlCommand, } from "./commands/GenerateUploadUrlCommand";
13
+ import { GetChatSettingsCommand, } from "./commands/GetChatSettingsCommand";
12
14
  import { GetCredentialReadinessCommand, } from "./commands/GetCredentialReadinessCommand";
13
15
  import { GetLivenessStatusCommand, } from "./commands/GetLivenessStatusCommand";
14
16
  import { GetMatchCommand, } from "./commands/GetMatchCommand";
15
17
  import { GetMyProfileCommand, } from "./commands/GetMyProfileCommand";
18
+ import { GetNotificationPreferencesCommand, } from "./commands/GetNotificationPreferencesCommand";
16
19
  import { GetParticipantRegistryCommand, } from "./commands/GetParticipantRegistryCommand";
17
20
  import { GetPreferencesCommand, } from "./commands/GetPreferencesCommand";
18
21
  import { GetProfileCommand, } from "./commands/GetProfileCommand";
19
22
  import { GetStateCommand, } from "./commands/GetStateCommand";
20
23
  import { GetUserByEmailCommand, } from "./commands/GetUserByEmailCommand";
21
24
  import { GetUserCommand, } from "./commands/GetUserCommand";
25
+ import { GetUserIdByUsernameCommand, } from "./commands/GetUserIdByUsernameCommand";
22
26
  import { IndexLocationCommand, } from "./commands/IndexLocationCommand";
23
27
  import { InitUserCommand, } from "./commands/InitUserCommand";
24
28
  import { LinkEmailCommand, } from "./commands/LinkEmailCommand";
@@ -26,14 +30,17 @@ import { LinkSocialCommand, } from "./commands/LinkSocialCommand";
26
30
  import { ListMyDevicesCommand, } from "./commands/ListMyDevicesCommand";
27
31
  import { RegisterDeviceCommand, } from "./commands/RegisterDeviceCommand";
28
32
  import { RegisterPhoneCommand, } from "./commands/RegisterPhoneCommand";
33
+ import { RegisterPushTokenCommand, } from "./commands/RegisterPushTokenCommand";
29
34
  import { RemoveLocationCommand, } from "./commands/RemoveLocationCommand";
30
35
  import { RequestEmailOtpCommand, } from "./commands/RequestEmailOtpCommand";
31
36
  import { RequestPhoneOtpCommand, } from "./commands/RequestPhoneOtpCommand";
32
37
  import { RequestPhoneUpdateOtpCommand, } from "./commands/RequestPhoneUpdateOtpCommand";
33
38
  import { RevokeDeviceCommand, } from "./commands/RevokeDeviceCommand";
39
+ import { SwipeByUsernameCommand, } from "./commands/SwipeByUsernameCommand";
34
40
  import { SwipeCommand, } from "./commands/SwipeCommand";
35
41
  import { UnhookCommand, } from "./commands/UnhookCommand";
36
42
  import { UnlinkSocialCommand, } from "./commands/UnlinkSocialCommand";
43
+ import { UpdateChatSettingsCommand, } from "./commands/UpdateChatSettingsCommand";
37
44
  import { UpdateEntitlementsCommand, } from "./commands/UpdateEntitlementsCommand";
38
45
  import { UpdatePhoneNumberCommand, } from "./commands/UpdatePhoneNumberCommand";
39
46
  import { UpdatePreferencesCommand, } from "./commands/UpdatePreferencesCommand";
@@ -44,15 +51,20 @@ import { ValidateInviteCommand, } from "./commands/ValidateInviteCommand";
44
51
  import { createAggregatedClient } from "@smithy/smithy-client";
45
52
  const commands = {
46
53
  DeleteMatchMessagesCommand,
54
+ DeletePushTokenCommand,
55
+ GetChatSettingsCommand,
47
56
  GetParticipantRegistryCommand,
48
57
  ListMyDevicesCommand,
49
58
  RegisterDeviceCommand,
59
+ RegisterPushTokenCommand,
50
60
  RevokeDeviceCommand,
61
+ UpdateChatSettingsCommand,
51
62
  AuthSocialCommand,
52
63
  GenerateInviteCommand,
53
64
  GetCredentialReadinessCommand,
54
65
  GetUserCommand,
55
66
  GetUserByEmailCommand,
67
+ GetUserIdByUsernameCommand,
56
68
  LinkEmailCommand,
57
69
  LinkSocialCommand,
58
70
  RegisterPhoneCommand,
@@ -65,10 +77,12 @@ const commands = {
65
77
  UpdateUsernameCommand,
66
78
  ValidateInviteCommand,
67
79
  DiscoverCommand,
80
+ GetNotificationPreferencesCommand,
68
81
  GetPreferencesCommand,
69
82
  IndexLocationCommand,
70
83
  RemoveLocationCommand,
71
84
  SwipeCommand,
85
+ SwipeByUsernameCommand,
72
86
  UpdatePreferencesCommand,
73
87
  CompleteLivenessSessionCommand,
74
88
  CreateLivenessSessionCommand,
@@ -0,0 +1,17 @@
1
+ import { de_DeletePushTokenCommand, se_DeletePushTokenCommand, } 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 DeletePushTokenCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("OneHookService", "DeletePushToken", {})
12
+ .n("OneHookClient", "DeletePushTokenCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_DeletePushTokenCommand)
15
+ .de(de_DeletePushTokenCommand)
16
+ .build() {
17
+ }
@@ -0,0 +1,17 @@
1
+ import { de_GetChatSettingsCommand, se_GetChatSettingsCommand, } 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 GetChatSettingsCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("OneHookService", "GetChatSettings", {})
12
+ .n("OneHookClient", "GetChatSettingsCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_GetChatSettingsCommand)
15
+ .de(de_GetChatSettingsCommand)
16
+ .build() {
17
+ }
@@ -0,0 +1,17 @@
1
+ import { de_GetNotificationPreferencesCommand, se_GetNotificationPreferencesCommand, } 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 GetNotificationPreferencesCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("OneHookService", "GetNotificationPreferences", {})
12
+ .n("OneHookClient", "GetNotificationPreferencesCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_GetNotificationPreferencesCommand)
15
+ .de(de_GetNotificationPreferencesCommand)
16
+ .build() {
17
+ }
@@ -0,0 +1,17 @@
1
+ import { de_GetUserIdByUsernameCommand, se_GetUserIdByUsernameCommand, } 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 GetUserIdByUsernameCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("OneHookService", "GetUserIdByUsername", {})
12
+ .n("OneHookClient", "GetUserIdByUsernameCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_GetUserIdByUsernameCommand)
15
+ .de(de_GetUserIdByUsernameCommand)
16
+ .build() {
17
+ }
@@ -0,0 +1,17 @@
1
+ import { de_RegisterPushTokenCommand, se_RegisterPushTokenCommand, } 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 RegisterPushTokenCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("OneHookService", "RegisterPushToken", {})
12
+ .n("OneHookClient", "RegisterPushTokenCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_RegisterPushTokenCommand)
15
+ .de(de_RegisterPushTokenCommand)
16
+ .build() {
17
+ }
@@ -0,0 +1,17 @@
1
+ import { de_SwipeByUsernameCommand, se_SwipeByUsernameCommand, } 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 SwipeByUsernameCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("OneHookService", "SwipeByUsername", {})
12
+ .n("OneHookClient", "SwipeByUsernameCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_SwipeByUsernameCommand)
15
+ .de(de_SwipeByUsernameCommand)
16
+ .build() {
17
+ }
@@ -0,0 +1,17 @@
1
+ import { de_UpdateChatSettingsCommand, se_UpdateChatSettingsCommand, } 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 UpdateChatSettingsCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("OneHookService", "UpdateChatSettings", {})
12
+ .n("OneHookClient", "UpdateChatSettingsCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_UpdateChatSettingsCommand)
15
+ .de(de_UpdateChatSettingsCommand)
16
+ .build() {
17
+ }
@@ -1,13 +1,18 @@
1
1
  export * from "./DeleteMatchMessagesCommand";
2
+ export * from "./DeletePushTokenCommand";
3
+ export * from "./GetChatSettingsCommand";
2
4
  export * from "./GetParticipantRegistryCommand";
3
5
  export * from "./ListMyDevicesCommand";
4
6
  export * from "./RegisterDeviceCommand";
7
+ export * from "./RegisterPushTokenCommand";
5
8
  export * from "./RevokeDeviceCommand";
9
+ export * from "./UpdateChatSettingsCommand";
6
10
  export * from "./AuthSocialCommand";
7
11
  export * from "./GenerateInviteCommand";
8
12
  export * from "./GetCredentialReadinessCommand";
9
13
  export * from "./GetUserCommand";
10
14
  export * from "./GetUserByEmailCommand";
15
+ export * from "./GetUserIdByUsernameCommand";
11
16
  export * from "./LinkEmailCommand";
12
17
  export * from "./LinkSocialCommand";
13
18
  export * from "./RegisterPhoneCommand";
@@ -20,10 +25,12 @@ export * from "./UpdatePhoneNumberCommand";
20
25
  export * from "./UpdateUsernameCommand";
21
26
  export * from "./ValidateInviteCommand";
22
27
  export * from "./DiscoverCommand";
28
+ export * from "./GetNotificationPreferencesCommand";
23
29
  export * from "./GetPreferencesCommand";
24
30
  export * from "./IndexLocationCommand";
25
31
  export * from "./RemoveLocationCommand";
26
32
  export * from "./SwipeCommand";
33
+ export * from "./SwipeByUsernameCommand";
27
34
  export * from "./UpdatePreferencesCommand";
28
35
  export * from "./CompleteLivenessSessionCommand";
29
36
  export * from "./CreateLivenessSessionCommand";
@@ -13,3 +13,8 @@ export var MessageStatus;
13
13
  MessageStatus["Sending"] = "SENDING";
14
14
  MessageStatus["Sent"] = "SENT";
15
15
  })(MessageStatus || (MessageStatus = {}));
16
+ export var NotificationKind;
17
+ (function (NotificationKind) {
18
+ NotificationKind["MutualMatch"] = "MUTUAL_MATCH";
19
+ NotificationKind["ProfileLiked"] = "PROFILE_LIKED";
20
+ })(NotificationKind || (NotificationKind = {}));