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
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.de_GetUserByEmailCommand = exports.de_GetUserCommand = 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_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 = 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 = {
@@ -113,6 +177,18 @@ const se_GenerateInviteCommand = async (input, context) => {
113
177
  return b.build();
114
178
  };
115
179
  exports.se_GenerateInviteCommand = se_GenerateInviteCommand;
180
+ const se_GetCredentialReadinessCommand = async (input, context) => {
181
+ const b = (0, core_2.requestBuilder)(input, context);
182
+ const headers = {};
183
+ b.bp("/identity/users/{userId}/credential-readiness");
184
+ b.p('userId', () => input.userId, '{userId}', false);
185
+ let body;
186
+ b.m("GET")
187
+ .h(headers)
188
+ .b(body);
189
+ return b.build();
190
+ };
191
+ exports.se_GetCredentialReadinessCommand = se_GetCredentialReadinessCommand;
116
192
  const se_GetUserCommand = async (input, context) => {
117
193
  const b = (0, core_2.requestBuilder)(input, context);
118
194
  const headers = {};
@@ -137,6 +213,18 @@ const se_GetUserByEmailCommand = async (input, context) => {
137
213
  return b.build();
138
214
  };
139
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;
140
228
  const se_LinkEmailCommand = async (input, context) => {
141
229
  const b = (0, core_2.requestBuilder)(input, context);
142
230
  const headers = {
@@ -333,6 +421,18 @@ const se_DiscoverCommand = async (input, context) => {
333
421
  return b.build();
334
422
  };
335
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;
336
436
  const se_GetPreferencesCommand = async (input, context) => {
337
437
  const b = (0, core_2.requestBuilder)(input, context);
338
438
  const headers = {};
@@ -397,6 +497,22 @@ const se_SwipeCommand = async (input, context) => {
397
497
  return b.build();
398
498
  };
399
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;
400
516
  const se_UpdatePreferencesCommand = async (input, context) => {
401
517
  const b = (0, core_2.requestBuilder)(input, context);
402
518
  const headers = {
@@ -406,10 +522,38 @@ const se_UpdatePreferencesCommand = async (input, context) => {
406
522
  b.p('userId', () => input.userId, '{userId}', false);
407
523
  let body;
408
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': [],
409
534
  'genders': _ => (0, smithy_client_1._json)(_),
535
+ 'incognito': [],
536
+ 'interestedInGenders': _ => (0, smithy_client_1._json)(_),
537
+ 'interests': _ => (0, smithy_client_1._json)(_),
410
538
  'maxAge': [],
411
539
  'maxDistanceKm': [],
540
+ 'maxHeight': [],
412
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': [],
413
557
  }));
414
558
  b.m("PUT")
415
559
  .h(headers)
@@ -551,6 +695,7 @@ const se_UpdateProfileCommand = async (input, context) => {
551
695
  'interests': _ => (0, smithy_client_1._json)(_),
552
696
  'languages': _ => (0, smithy_client_1._json)(_),
553
697
  'openers': _ => (0, smithy_client_1._json)(_),
698
+ 'pictureTransforms': _ => (0, smithy_client_1._json)(_),
554
699
  'pictures': _ => (0, smithy_client_1._json)(_),
555
700
  'politicalView': [],
556
701
  'prompts': _ => (0, smithy_client_1._json)(_),
@@ -659,6 +804,37 @@ const de_DeleteMatchMessagesCommand = async (output, context) => {
659
804
  return contents;
660
805
  };
661
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;
662
838
  const de_GetParticipantRegistryCommand = async (output, context) => {
663
839
  if (output.statusCode !== 200 && output.statusCode >= 300) {
664
840
  return de_CommandError(output, context);
@@ -709,6 +885,22 @@ const de_RegisterDeviceCommand = async (output, context) => {
709
885
  return contents;
710
886
  };
711
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;
712
904
  const de_RevokeDeviceCommand = async (output, context) => {
713
905
  if (output.statusCode !== 200 && output.statusCode >= 300) {
714
906
  return de_CommandError(output, context);
@@ -725,6 +917,21 @@ const de_RevokeDeviceCommand = async (output, context) => {
725
917
  return contents;
726
918
  };
727
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;
728
935
  const de_AuthSocialCommand = async (output, context) => {
729
936
  if (output.statusCode !== 200 && output.statusCode >= 300) {
730
937
  return de_CommandError(output, context);
@@ -759,6 +966,22 @@ const de_GenerateInviteCommand = async (output, context) => {
759
966
  return contents;
760
967
  };
761
968
  exports.de_GenerateInviteCommand = de_GenerateInviteCommand;
969
+ const de_GetCredentialReadinessCommand = async (output, context) => {
970
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
971
+ return de_CommandError(output, context);
972
+ }
973
+ const contents = (0, smithy_client_1.map)({
974
+ $metadata: deserializeMetadata(output),
975
+ });
976
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
977
+ const doc = (0, smithy_client_1.take)(data, {
978
+ 'gaps': smithy_client_1._json,
979
+ 'ready': smithy_client_1.expectBoolean,
980
+ });
981
+ Object.assign(contents, doc);
982
+ return contents;
983
+ };
984
+ exports.de_GetCredentialReadinessCommand = de_GetCredentialReadinessCommand;
762
985
  const de_GetUserCommand = async (output, context) => {
763
986
  if (output.statusCode !== 200 && output.statusCode >= 300) {
764
987
  return de_CommandError(output, context);
@@ -807,6 +1030,21 @@ const de_GetUserByEmailCommand = async (output, context) => {
807
1030
  return contents;
808
1031
  };
809
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;
810
1048
  const de_LinkEmailCommand = async (output, context) => {
811
1049
  if (output.statusCode !== 200 && output.statusCode >= 300) {
812
1050
  return de_CommandError(output, context);
@@ -996,6 +1234,24 @@ const de_DiscoverCommand = async (output, context) => {
996
1234
  return contents;
997
1235
  };
998
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;
999
1255
  const de_GetPreferencesCommand = async (output, context) => {
1000
1256
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1001
1257
  return de_CommandError(output, context);
@@ -1005,11 +1261,39 @@ const de_GetPreferencesCommand = async (output, context) => {
1005
1261
  });
1006
1262
  const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1007
1263
  const doc = (0, smithy_client_1.take)(data, {
1008
- '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,
1009
1276
  'maxAge': smithy_client_1.expectInt32,
1010
1277
  'maxDistanceKm': smithy_client_1.expectInt32,
1278
+ 'maxHeight': smithy_client_1.expectInt32,
1011
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,
1012
1294
  'userId': smithy_client_1.expectString,
1295
+ 'verifiedOnly': smithy_client_1.expectBoolean,
1296
+ 'wantsKids': smithy_client_1.expectString,
1013
1297
  });
1014
1298
  Object.assign(contents, doc);
1015
1299
  return contents;
@@ -1062,6 +1346,21 @@ const de_SwipeCommand = async (output, context) => {
1062
1346
  return contents;
1063
1347
  };
1064
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;
1065
1364
  const de_UpdatePreferencesCommand = async (output, context) => {
1066
1365
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1067
1366
  return de_CommandError(output, context);
@@ -1202,6 +1501,7 @@ const de_GetMyProfileCommand = async (output, context) => {
1202
1501
  'languages': smithy_client_1._json,
1203
1502
  'moderationStatus': smithy_client_1.expectString,
1204
1503
  'openers': smithy_client_1._json,
1504
+ 'pictureTransforms': smithy_client_1._json,
1205
1505
  'pictures': smithy_client_1._json,
1206
1506
  'politicalView': smithy_client_1.expectString,
1207
1507
  'prompts': smithy_client_1._json,
@@ -1254,6 +1554,7 @@ const de_GetProfileCommand = async (output, context) => {
1254
1554
  'languages': smithy_client_1._json,
1255
1555
  'moderationStatus': smithy_client_1.expectString,
1256
1556
  'openers': smithy_client_1._json,
1557
+ 'pictureTransforms': smithy_client_1._json,
1257
1558
  'pictures': smithy_client_1._json,
1258
1559
  'politicalView': smithy_client_1.expectString,
1259
1560
  'prompts': smithy_client_1._json,
@@ -5,19 +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";
14
+ import { GetCredentialReadinessCommand, } from "./commands/GetCredentialReadinessCommand";
12
15
  import { GetLivenessStatusCommand, } from "./commands/GetLivenessStatusCommand";
13
16
  import { GetMatchCommand, } from "./commands/GetMatchCommand";
14
17
  import { GetMyProfileCommand, } from "./commands/GetMyProfileCommand";
18
+ import { GetNotificationPreferencesCommand, } from "./commands/GetNotificationPreferencesCommand";
15
19
  import { GetParticipantRegistryCommand, } from "./commands/GetParticipantRegistryCommand";
16
20
  import { GetPreferencesCommand, } from "./commands/GetPreferencesCommand";
17
21
  import { GetProfileCommand, } from "./commands/GetProfileCommand";
18
22
  import { GetStateCommand, } from "./commands/GetStateCommand";
19
23
  import { GetUserByEmailCommand, } from "./commands/GetUserByEmailCommand";
20
24
  import { GetUserCommand, } from "./commands/GetUserCommand";
25
+ import { GetUserIdByUsernameCommand, } from "./commands/GetUserIdByUsernameCommand";
21
26
  import { IndexLocationCommand, } from "./commands/IndexLocationCommand";
22
27
  import { InitUserCommand, } from "./commands/InitUserCommand";
23
28
  import { LinkEmailCommand, } from "./commands/LinkEmailCommand";
@@ -25,14 +30,17 @@ import { LinkSocialCommand, } from "./commands/LinkSocialCommand";
25
30
  import { ListMyDevicesCommand, } from "./commands/ListMyDevicesCommand";
26
31
  import { RegisterDeviceCommand, } from "./commands/RegisterDeviceCommand";
27
32
  import { RegisterPhoneCommand, } from "./commands/RegisterPhoneCommand";
33
+ import { RegisterPushTokenCommand, } from "./commands/RegisterPushTokenCommand";
28
34
  import { RemoveLocationCommand, } from "./commands/RemoveLocationCommand";
29
35
  import { RequestEmailOtpCommand, } from "./commands/RequestEmailOtpCommand";
30
36
  import { RequestPhoneOtpCommand, } from "./commands/RequestPhoneOtpCommand";
31
37
  import { RequestPhoneUpdateOtpCommand, } from "./commands/RequestPhoneUpdateOtpCommand";
32
38
  import { RevokeDeviceCommand, } from "./commands/RevokeDeviceCommand";
39
+ import { SwipeByUsernameCommand, } from "./commands/SwipeByUsernameCommand";
33
40
  import { SwipeCommand, } from "./commands/SwipeCommand";
34
41
  import { UnhookCommand, } from "./commands/UnhookCommand";
35
42
  import { UnlinkSocialCommand, } from "./commands/UnlinkSocialCommand";
43
+ import { UpdateChatSettingsCommand, } from "./commands/UpdateChatSettingsCommand";
36
44
  import { UpdateEntitlementsCommand, } from "./commands/UpdateEntitlementsCommand";
37
45
  import { UpdatePhoneNumberCommand, } from "./commands/UpdatePhoneNumberCommand";
38
46
  import { UpdatePreferencesCommand, } from "./commands/UpdatePreferencesCommand";
@@ -43,14 +51,20 @@ import { ValidateInviteCommand, } from "./commands/ValidateInviteCommand";
43
51
  import { createAggregatedClient } from "@smithy/smithy-client";
44
52
  const commands = {
45
53
  DeleteMatchMessagesCommand,
54
+ DeletePushTokenCommand,
55
+ GetChatSettingsCommand,
46
56
  GetParticipantRegistryCommand,
47
57
  ListMyDevicesCommand,
48
58
  RegisterDeviceCommand,
59
+ RegisterPushTokenCommand,
49
60
  RevokeDeviceCommand,
61
+ UpdateChatSettingsCommand,
50
62
  AuthSocialCommand,
51
63
  GenerateInviteCommand,
64
+ GetCredentialReadinessCommand,
52
65
  GetUserCommand,
53
66
  GetUserByEmailCommand,
67
+ GetUserIdByUsernameCommand,
54
68
  LinkEmailCommand,
55
69
  LinkSocialCommand,
56
70
  RegisterPhoneCommand,
@@ -63,10 +77,12 @@ const commands = {
63
77
  UpdateUsernameCommand,
64
78
  ValidateInviteCommand,
65
79
  DiscoverCommand,
80
+ GetNotificationPreferencesCommand,
66
81
  GetPreferencesCommand,
67
82
  IndexLocationCommand,
68
83
  RemoveLocationCommand,
69
84
  SwipeCommand,
85
+ SwipeByUsernameCommand,
70
86
  UpdatePreferencesCommand,
71
87
  CompleteLivenessSessionCommand,
72
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_GetCredentialReadinessCommand, se_GetCredentialReadinessCommand, } 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 GetCredentialReadinessCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("OneHookService", "GetCredentialReadiness", {})
12
+ .n("OneHookClient", "GetCredentialReadinessCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_GetCredentialReadinessCommand)
15
+ .de(de_GetCredentialReadinessCommand)
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
+ }