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
@@ -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,12 +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";
12
+ export * from "./GetCredentialReadinessCommand";
8
13
  export * from "./GetUserCommand";
9
14
  export * from "./GetUserByEmailCommand";
15
+ export * from "./GetUserIdByUsernameCommand";
10
16
  export * from "./LinkEmailCommand";
11
17
  export * from "./LinkSocialCommand";
12
18
  export * from "./RegisterPhoneCommand";
@@ -19,10 +25,12 @@ export * from "./UpdatePhoneNumberCommand";
19
25
  export * from "./UpdateUsernameCommand";
20
26
  export * from "./ValidateInviteCommand";
21
27
  export * from "./DiscoverCommand";
28
+ export * from "./GetNotificationPreferencesCommand";
22
29
  export * from "./GetPreferencesCommand";
23
30
  export * from "./IndexLocationCommand";
24
31
  export * from "./RemoveLocationCommand";
25
32
  export * from "./SwipeCommand";
33
+ export * from "./SwipeByUsernameCommand";
26
34
  export * from "./UpdatePreferencesCommand";
27
35
  export * from "./CompleteLivenessSessionCommand";
28
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 = {}));
@@ -41,11 +41,6 @@ export class InternalServerError extends __BaseException {
41
41
  this.error = opts.error;
42
42
  }
43
43
  }
44
- export const Platform = {
45
- ANDROID: "ANDROID",
46
- IOS: "IOS",
47
- WEB: "WEB",
48
- };
49
44
  export class NotFoundError extends __BaseException {
50
45
  name = "NotFoundError";
51
46
  $fault = "client";
@@ -60,6 +55,16 @@ export class NotFoundError extends __BaseException {
60
55
  this.error = opts.error;
61
56
  }
62
57
  }
58
+ export const LastSeenVisibility = {
59
+ EVERYONE: "EVERYONE",
60
+ MATCHES: "MATCHES",
61
+ NOBODY: "NOBODY",
62
+ };
63
+ export const Platform = {
64
+ ANDROID: "ANDROID",
65
+ IOS: "IOS",
66
+ WEB: "WEB",
67
+ };
63
68
  export class DeviceLimitError extends __BaseException {
64
69
  name = "DeviceLimitError";
65
70
  $fault = "client";
@@ -74,3 +79,9 @@ export class DeviceLimitError extends __BaseException {
74
79
  this.error = opts.error;
75
80
  }
76
81
  }
82
+ export const CredentialGap = {
83
+ NO_COGNITO_USERNAME_ON_PROFILE: "NO_COGNITO_USERNAME_ON_PROFILE",
84
+ PHONE_NOT_VERIFIED: "PHONE_NOT_VERIFIED",
85
+ USERNAME_MISMATCHED_IN_COGNITO: "USERNAME_MISMATCHED_IN_COGNITO",
86
+ USERNAME_NOT_SYNCED_TO_COGNITO: "USERNAME_NOT_SYNCED_TO_COGNITO",
87
+ };
@@ -14,6 +14,27 @@ export const se_DeleteMatchMessagesCommand = async (input, context) => {
14
14
  .b(body);
15
15
  return b.build();
16
16
  };
17
+ export const se_DeletePushTokenCommand = async (input, context) => {
18
+ const b = rb(input, context);
19
+ const headers = {};
20
+ b.bp("/chat/devices/{deviceId}/push-token");
21
+ b.p('deviceId', () => input.deviceId, '{deviceId}', false);
22
+ let body;
23
+ b.m("DELETE")
24
+ .h(headers)
25
+ .b(body);
26
+ return b.build();
27
+ };
28
+ export const se_GetChatSettingsCommand = async (input, context) => {
29
+ const b = rb(input, context);
30
+ const headers = {};
31
+ b.bp("/chat/settings");
32
+ let body;
33
+ b.m("GET")
34
+ .h(headers)
35
+ .b(body);
36
+ return b.build();
37
+ };
17
38
  export const se_GetParticipantRegistryCommand = async (input, context) => {
18
39
  const b = rb(input, context);
19
40
  const headers = {};
@@ -59,6 +80,23 @@ export const se_RegisterDeviceCommand = async (input, context) => {
59
80
  .b(body);
60
81
  return b.build();
61
82
  };
83
+ export const se_RegisterPushTokenCommand = async (input, context) => {
84
+ const b = rb(input, context);
85
+ const headers = {
86
+ 'content-type': 'application/json',
87
+ };
88
+ b.bp("/chat/devices/{deviceId}/push-token");
89
+ b.p('deviceId', () => input.deviceId, '{deviceId}', false);
90
+ let body;
91
+ body = JSON.stringify(take(input, {
92
+ 'platform': [],
93
+ 'token': [],
94
+ }));
95
+ b.m("PUT")
96
+ .h(headers)
97
+ .b(body);
98
+ return b.build();
99
+ };
62
100
  export const se_RevokeDeviceCommand = async (input, context) => {
63
101
  const b = rb(input, context);
64
102
  const headers = {};
@@ -70,6 +108,28 @@ export const se_RevokeDeviceCommand = async (input, context) => {
70
108
  .b(body);
71
109
  return b.build();
72
110
  };
111
+ export const se_UpdateChatSettingsCommand = async (input, context) => {
112
+ const b = rb(input, context);
113
+ const headers = {
114
+ 'content-type': 'application/json',
115
+ };
116
+ b.bp("/chat/settings");
117
+ let body;
118
+ body = JSON.stringify(take(input, {
119
+ 'defaultDisappearingSeconds': [],
120
+ 'lastSeenVisibility': [],
121
+ 'messageNotifications': [],
122
+ 'reactionNotifications': [],
123
+ 'readReceipts': [],
124
+ 'screenshotProtection': [],
125
+ 'showPreviews': [],
126
+ 'typingIndicators': [],
127
+ }));
128
+ b.m("PUT")
129
+ .h(headers)
130
+ .b(body);
131
+ return b.build();
132
+ };
73
133
  export const se_AuthSocialCommand = async (input, context) => {
74
134
  const b = rb(input, context);
75
135
  const headers = {
@@ -102,6 +162,17 @@ export const se_GenerateInviteCommand = async (input, context) => {
102
162
  .b(body);
103
163
  return b.build();
104
164
  };
165
+ export const se_GetCredentialReadinessCommand = async (input, context) => {
166
+ const b = rb(input, context);
167
+ const headers = {};
168
+ b.bp("/identity/users/{userId}/credential-readiness");
169
+ b.p('userId', () => input.userId, '{userId}', false);
170
+ let body;
171
+ b.m("GET")
172
+ .h(headers)
173
+ .b(body);
174
+ return b.build();
175
+ };
105
176
  export const se_GetUserCommand = async (input, context) => {
106
177
  const b = rb(input, context);
107
178
  const headers = {};
@@ -124,6 +195,17 @@ export const se_GetUserByEmailCommand = async (input, context) => {
124
195
  .b(body);
125
196
  return b.build();
126
197
  };
198
+ export const se_GetUserIdByUsernameCommand = async (input, context) => {
199
+ const b = rb(input, context);
200
+ const headers = {};
201
+ b.bp("/identity/users/by-username/{username}");
202
+ b.p('username', () => input.username, '{username}', false);
203
+ let body;
204
+ b.m("GET")
205
+ .h(headers)
206
+ .b(body);
207
+ return b.build();
208
+ };
127
209
  export const se_LinkEmailCommand = async (input, context) => {
128
210
  const b = rb(input, context);
129
211
  const headers = {
@@ -308,6 +390,17 @@ export const se_DiscoverCommand = async (input, context) => {
308
390
  .b(body);
309
391
  return b.build();
310
392
  };
393
+ export const se_GetNotificationPreferencesCommand = async (input, context) => {
394
+ const b = rb(input, context);
395
+ const headers = {};
396
+ b.bp("/matching/internal/users/{userId}/notification-preferences");
397
+ b.p('userId', () => input.userId, '{userId}', false);
398
+ let body;
399
+ b.m("GET")
400
+ .h(headers)
401
+ .b(body);
402
+ return b.build();
403
+ };
311
404
  export const se_GetPreferencesCommand = async (input, context) => {
312
405
  const b = rb(input, context);
313
406
  const headers = {};
@@ -368,6 +461,21 @@ export const se_SwipeCommand = async (input, context) => {
368
461
  .b(body);
369
462
  return b.build();
370
463
  };
464
+ export const se_SwipeByUsernameCommand = async (input, context) => {
465
+ const b = rb(input, context);
466
+ const headers = {
467
+ 'content-type': 'application/json',
468
+ };
469
+ b.bp("/matching/swipe/by-username");
470
+ let body;
471
+ body = JSON.stringify(take(input, {
472
+ 'username': [],
473
+ }));
474
+ b.m("POST")
475
+ .h(headers)
476
+ .b(body);
477
+ return b.build();
478
+ };
371
479
  export const se_UpdatePreferencesCommand = async (input, context) => {
372
480
  const b = rb(input, context);
373
481
  const headers = {
@@ -377,10 +485,38 @@ export const se_UpdatePreferencesCommand = async (input, context) => {
377
485
  b.p('userId', () => input.userId, '{userId}', false);
378
486
  let body;
379
487
  body = JSON.stringify(take(input, {
488
+ 'cannabis': [],
489
+ 'dealbreakers': _ => _json(_),
490
+ 'discoverable': [],
491
+ 'distanceUnit': [],
492
+ 'drinking': [],
493
+ 'drugs': [],
494
+ 'educationLevel': [],
495
+ 'exercise': [],
496
+ 'familyPlans': [],
380
497
  'genders': _ => _json(_),
498
+ 'incognito': [],
499
+ 'interestedInGenders': _ => _json(_),
500
+ 'interests': _ => _json(_),
381
501
  'maxAge': [],
382
502
  'maxDistanceKm': [],
503
+ 'maxHeight': [],
383
504
  'minAge': [],
505
+ 'minHeight': [],
506
+ 'notifyDailyPicks': [],
507
+ 'notifyLikes': [],
508
+ 'notifyMatches': [],
509
+ 'politicalView': [],
510
+ 'preferredLanguages': _ => _json(_),
511
+ 'relationshipType': [],
512
+ 'religion': [],
513
+ 'requireBio': [],
514
+ 'requirePhoto': [],
515
+ 'requireRecentlyActive': [],
516
+ 'smoking': [],
517
+ 'starSigns': _ => _json(_),
518
+ 'verifiedOnly': [],
519
+ 'wantsKids': [],
384
520
  }));
385
521
  b.m("PUT")
386
522
  .h(headers)
@@ -513,6 +649,7 @@ export const se_UpdateProfileCommand = async (input, context) => {
513
649
  'interests': _ => _json(_),
514
650
  'languages': _ => _json(_),
515
651
  'openers': _ => _json(_),
652
+ 'pictureTransforms': _ => _json(_),
516
653
  'pictures': _ => _json(_),
517
654
  'politicalView': [],
518
655
  'prompts': _ => _json(_),
@@ -613,6 +750,35 @@ export const de_DeleteMatchMessagesCommand = async (output, context) => {
613
750
  Object.assign(contents, doc);
614
751
  return contents;
615
752
  };
753
+ export const de_DeletePushTokenCommand = async (output, context) => {
754
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
755
+ return de_CommandError(output, context);
756
+ }
757
+ const contents = map({
758
+ $metadata: deserializeMetadata(output),
759
+ });
760
+ const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
761
+ const doc = take(data, {
762
+ 'deleted': __expectBoolean,
763
+ 'deviceId': __expectString,
764
+ });
765
+ Object.assign(contents, doc);
766
+ return contents;
767
+ };
768
+ export const de_GetChatSettingsCommand = async (output, context) => {
769
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
770
+ return de_CommandError(output, context);
771
+ }
772
+ const contents = map({
773
+ $metadata: deserializeMetadata(output),
774
+ });
775
+ const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
776
+ const doc = take(data, {
777
+ 'settings': _json,
778
+ });
779
+ Object.assign(contents, doc);
780
+ return contents;
781
+ };
616
782
  export const de_GetParticipantRegistryCommand = async (output, context) => {
617
783
  if (output.statusCode !== 200 && output.statusCode >= 300) {
618
784
  return de_CommandError(output, context);
@@ -660,6 +826,21 @@ export const de_RegisterDeviceCommand = async (output, context) => {
660
826
  Object.assign(contents, doc);
661
827
  return contents;
662
828
  };
829
+ export const de_RegisterPushTokenCommand = async (output, context) => {
830
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
831
+ return de_CommandError(output, context);
832
+ }
833
+ const contents = map({
834
+ $metadata: deserializeMetadata(output),
835
+ });
836
+ const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
837
+ const doc = take(data, {
838
+ 'deviceId': __expectString,
839
+ 'registered': __expectBoolean,
840
+ });
841
+ Object.assign(contents, doc);
842
+ return contents;
843
+ };
663
844
  export const de_RevokeDeviceCommand = async (output, context) => {
664
845
  if (output.statusCode !== 200 && output.statusCode >= 300) {
665
846
  return de_CommandError(output, context);
@@ -675,6 +856,20 @@ export const de_RevokeDeviceCommand = async (output, context) => {
675
856
  Object.assign(contents, doc);
676
857
  return contents;
677
858
  };
859
+ export const de_UpdateChatSettingsCommand = async (output, context) => {
860
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
861
+ return de_CommandError(output, context);
862
+ }
863
+ const contents = map({
864
+ $metadata: deserializeMetadata(output),
865
+ });
866
+ const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
867
+ const doc = take(data, {
868
+ 'settings': _json,
869
+ });
870
+ Object.assign(contents, doc);
871
+ return contents;
872
+ };
678
873
  export const de_AuthSocialCommand = async (output, context) => {
679
874
  if (output.statusCode !== 200 && output.statusCode >= 300) {
680
875
  return de_CommandError(output, context);
@@ -707,6 +902,21 @@ export const de_GenerateInviteCommand = async (output, context) => {
707
902
  Object.assign(contents, doc);
708
903
  return contents;
709
904
  };
905
+ export const de_GetCredentialReadinessCommand = async (output, context) => {
906
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
907
+ return de_CommandError(output, context);
908
+ }
909
+ const contents = map({
910
+ $metadata: deserializeMetadata(output),
911
+ });
912
+ const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
913
+ const doc = take(data, {
914
+ 'gaps': _json,
915
+ 'ready': __expectBoolean,
916
+ });
917
+ Object.assign(contents, doc);
918
+ return contents;
919
+ };
710
920
  export const de_GetUserCommand = async (output, context) => {
711
921
  if (output.statusCode !== 200 && output.statusCode >= 300) {
712
922
  return de_CommandError(output, context);
@@ -753,6 +963,20 @@ export const de_GetUserByEmailCommand = async (output, context) => {
753
963
  Object.assign(contents, doc);
754
964
  return contents;
755
965
  };
966
+ export const de_GetUserIdByUsernameCommand = async (output, context) => {
967
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
968
+ return de_CommandError(output, context);
969
+ }
970
+ const contents = map({
971
+ $metadata: deserializeMetadata(output),
972
+ });
973
+ const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
974
+ const doc = take(data, {
975
+ 'userId': __expectString,
976
+ });
977
+ Object.assign(contents, doc);
978
+ return contents;
979
+ };
756
980
  export const de_LinkEmailCommand = async (output, context) => {
757
981
  if (output.statusCode !== 200 && output.statusCode >= 300) {
758
982
  return de_CommandError(output, context);
@@ -930,6 +1154,23 @@ export const de_DiscoverCommand = async (output, context) => {
930
1154
  Object.assign(contents, doc);
931
1155
  return contents;
932
1156
  };
1157
+ export const de_GetNotificationPreferencesCommand = async (output, context) => {
1158
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1159
+ return de_CommandError(output, context);
1160
+ }
1161
+ const contents = map({
1162
+ $metadata: deserializeMetadata(output),
1163
+ });
1164
+ const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
1165
+ const doc = take(data, {
1166
+ 'notifyDailyPicks': __expectBoolean,
1167
+ 'notifyLikes': __expectBoolean,
1168
+ 'notifyMatches': __expectBoolean,
1169
+ 'userId': __expectString,
1170
+ });
1171
+ Object.assign(contents, doc);
1172
+ return contents;
1173
+ };
933
1174
  export const de_GetPreferencesCommand = async (output, context) => {
934
1175
  if (output.statusCode !== 200 && output.statusCode >= 300) {
935
1176
  return de_CommandError(output, context);
@@ -939,11 +1180,39 @@ export const de_GetPreferencesCommand = async (output, context) => {
939
1180
  });
940
1181
  const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
941
1182
  const doc = take(data, {
942
- 'genders': _json,
1183
+ 'cannabis': __expectString,
1184
+ 'dealbreakers': _json,
1185
+ 'discoverable': __expectBoolean,
1186
+ 'distanceUnit': __expectString,
1187
+ 'drinking': __expectString,
1188
+ 'drugs': __expectString,
1189
+ 'educationLevel': __expectString,
1190
+ 'exercise': __expectString,
1191
+ 'familyPlans': __expectString,
1192
+ 'incognito': __expectBoolean,
1193
+ 'interestedInGenders': _json,
1194
+ 'interests': _json,
943
1195
  'maxAge': __expectInt32,
944
1196
  'maxDistanceKm': __expectInt32,
1197
+ 'maxHeight': __expectInt32,
945
1198
  'minAge': __expectInt32,
1199
+ 'minHeight': __expectInt32,
1200
+ 'notifyDailyPicks': __expectBoolean,
1201
+ 'notifyLikes': __expectBoolean,
1202
+ 'notifyMatches': __expectBoolean,
1203
+ 'politicalView': __expectString,
1204
+ 'preferredLanguages': _json,
1205
+ 'recentlyActiveDays': __expectInt32,
1206
+ 'relationshipType': __expectString,
1207
+ 'religion': __expectString,
1208
+ 'requireBio': __expectBoolean,
1209
+ 'requirePhoto': __expectBoolean,
1210
+ 'requireRecentlyActive': __expectBoolean,
1211
+ 'smoking': __expectString,
1212
+ 'starSigns': _json,
946
1213
  'userId': __expectString,
1214
+ 'verifiedOnly': __expectBoolean,
1215
+ 'wantsKids': __expectString,
947
1216
  });
948
1217
  Object.assign(contents, doc);
949
1218
  return contents;
@@ -992,6 +1261,20 @@ export const de_SwipeCommand = async (output, context) => {
992
1261
  Object.assign(contents, doc);
993
1262
  return contents;
994
1263
  };
1264
+ export const de_SwipeByUsernameCommand = async (output, context) => {
1265
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1266
+ return de_CommandError(output, context);
1267
+ }
1268
+ const contents = map({
1269
+ $metadata: deserializeMetadata(output),
1270
+ });
1271
+ const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
1272
+ const doc = take(data, {
1273
+ 'status': __expectString,
1274
+ });
1275
+ Object.assign(contents, doc);
1276
+ return contents;
1277
+ };
995
1278
  export const de_UpdatePreferencesCommand = async (output, context) => {
996
1279
  if (output.statusCode !== 200 && output.statusCode >= 300) {
997
1280
  return de_CommandError(output, context);
@@ -1125,6 +1408,7 @@ export const de_GetMyProfileCommand = async (output, context) => {
1125
1408
  'languages': _json,
1126
1409
  'moderationStatus': __expectString,
1127
1410
  'openers': _json,
1411
+ 'pictureTransforms': _json,
1128
1412
  'pictures': _json,
1129
1413
  'politicalView': __expectString,
1130
1414
  'prompts': _json,
@@ -1176,6 +1460,7 @@ export const de_GetProfileCommand = async (output, context) => {
1176
1460
  'languages': _json,
1177
1461
  'moderationStatus': __expectString,
1178
1462
  'openers': _json,
1463
+ 'pictureTransforms': _json,
1179
1464
  'pictures': _json,
1180
1465
  'politicalView': __expectString,
1181
1466
  'prompts': _json,
@@ -5,19 +5,24 @@ import { CompleteOnboardingCommandInput, CompleteOnboardingCommandOutput } from
5
5
  import { CreateLivenessSessionCommandInput, CreateLivenessSessionCommandOutput } from "./commands/CreateLivenessSessionCommand";
6
6
  import { DeleteMatchMessagesCommandInput, DeleteMatchMessagesCommandOutput } from "./commands/DeleteMatchMessagesCommand";
7
7
  import { DeleteProfileCommandInput, DeleteProfileCommandOutput } from "./commands/DeleteProfileCommand";
8
+ import { DeletePushTokenCommandInput, DeletePushTokenCommandOutput } from "./commands/DeletePushTokenCommand";
8
9
  import { DiscoverCommandInput, DiscoverCommandOutput } from "./commands/DiscoverCommand";
9
10
  import { GenerateDownloadUrlCommandInput, GenerateDownloadUrlCommandOutput } from "./commands/GenerateDownloadUrlCommand";
10
11
  import { GenerateInviteCommandInput, GenerateInviteCommandOutput } from "./commands/GenerateInviteCommand";
11
12
  import { GenerateUploadUrlCommandInput, GenerateUploadUrlCommandOutput } from "./commands/GenerateUploadUrlCommand";
13
+ import { GetChatSettingsCommandInput, GetChatSettingsCommandOutput } from "./commands/GetChatSettingsCommand";
14
+ import { GetCredentialReadinessCommandInput, GetCredentialReadinessCommandOutput } from "./commands/GetCredentialReadinessCommand";
12
15
  import { GetLivenessStatusCommandInput, GetLivenessStatusCommandOutput } from "./commands/GetLivenessStatusCommand";
13
16
  import { GetMatchCommandInput, GetMatchCommandOutput } from "./commands/GetMatchCommand";
14
17
  import { GetMyProfileCommandInput, GetMyProfileCommandOutput } from "./commands/GetMyProfileCommand";
18
+ import { GetNotificationPreferencesCommandInput, GetNotificationPreferencesCommandOutput } from "./commands/GetNotificationPreferencesCommand";
15
19
  import { GetParticipantRegistryCommandInput, GetParticipantRegistryCommandOutput } from "./commands/GetParticipantRegistryCommand";
16
20
  import { GetPreferencesCommandInput, GetPreferencesCommandOutput } from "./commands/GetPreferencesCommand";
17
21
  import { GetProfileCommandInput, GetProfileCommandOutput } from "./commands/GetProfileCommand";
18
22
  import { GetStateCommandInput, GetStateCommandOutput } from "./commands/GetStateCommand";
19
23
  import { GetUserByEmailCommandInput, GetUserByEmailCommandOutput } from "./commands/GetUserByEmailCommand";
20
24
  import { GetUserCommandInput, GetUserCommandOutput } from "./commands/GetUserCommand";
25
+ import { GetUserIdByUsernameCommandInput, GetUserIdByUsernameCommandOutput } from "./commands/GetUserIdByUsernameCommand";
21
26
  import { IndexLocationCommandInput, IndexLocationCommandOutput } from "./commands/IndexLocationCommand";
22
27
  import { InitUserCommandInput, InitUserCommandOutput } from "./commands/InitUserCommand";
23
28
  import { LinkEmailCommandInput, LinkEmailCommandOutput } from "./commands/LinkEmailCommand";
@@ -25,14 +30,17 @@ import { LinkSocialCommandInput, LinkSocialCommandOutput } from "./commands/Link
25
30
  import { ListMyDevicesCommandInput, ListMyDevicesCommandOutput } from "./commands/ListMyDevicesCommand";
26
31
  import { RegisterDeviceCommandInput, RegisterDeviceCommandOutput } from "./commands/RegisterDeviceCommand";
27
32
  import { RegisterPhoneCommandInput, RegisterPhoneCommandOutput } from "./commands/RegisterPhoneCommand";
33
+ import { RegisterPushTokenCommandInput, RegisterPushTokenCommandOutput } from "./commands/RegisterPushTokenCommand";
28
34
  import { RemoveLocationCommandInput, RemoveLocationCommandOutput } from "./commands/RemoveLocationCommand";
29
35
  import { RequestEmailOtpCommandInput, RequestEmailOtpCommandOutput } from "./commands/RequestEmailOtpCommand";
30
36
  import { RequestPhoneOtpCommandInput, RequestPhoneOtpCommandOutput } from "./commands/RequestPhoneOtpCommand";
31
37
  import { RequestPhoneUpdateOtpCommandInput, RequestPhoneUpdateOtpCommandOutput } from "./commands/RequestPhoneUpdateOtpCommand";
32
38
  import { RevokeDeviceCommandInput, RevokeDeviceCommandOutput } from "./commands/RevokeDeviceCommand";
39
+ import { SwipeByUsernameCommandInput, SwipeByUsernameCommandOutput } from "./commands/SwipeByUsernameCommand";
33
40
  import { SwipeCommandInput, SwipeCommandOutput } from "./commands/SwipeCommand";
34
41
  import { UnhookCommandInput, UnhookCommandOutput } from "./commands/UnhookCommand";
35
42
  import { UnlinkSocialCommandInput, UnlinkSocialCommandOutput } from "./commands/UnlinkSocialCommand";
43
+ import { UpdateChatSettingsCommandInput, UpdateChatSettingsCommandOutput } from "./commands/UpdateChatSettingsCommand";
36
44
  import { UpdateEntitlementsCommandInput, UpdateEntitlementsCommandOutput } from "./commands/UpdateEntitlementsCommand";
37
45
  import { UpdatePhoneNumberCommandInput, UpdatePhoneNumberCommandOutput } from "./commands/UpdatePhoneNumberCommand";
38
46
  import { UpdatePreferencesCommandInput, UpdatePreferencesCommandOutput } from "./commands/UpdatePreferencesCommand";
@@ -48,6 +56,19 @@ export interface OneHook {
48
56
  deleteMatchMessages(args: DeleteMatchMessagesCommandInput, options?: __HttpHandlerOptions): Promise<DeleteMatchMessagesCommandOutput>;
49
57
  deleteMatchMessages(args: DeleteMatchMessagesCommandInput, cb: (err: any, data?: DeleteMatchMessagesCommandOutput) => void): void;
50
58
  deleteMatchMessages(args: DeleteMatchMessagesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteMatchMessagesCommandOutput) => void): void;
59
+ /**
60
+ * @see {@link DeletePushTokenCommand}
61
+ */
62
+ deletePushToken(args: DeletePushTokenCommandInput, options?: __HttpHandlerOptions): Promise<DeletePushTokenCommandOutput>;
63
+ deletePushToken(args: DeletePushTokenCommandInput, cb: (err: any, data?: DeletePushTokenCommandOutput) => void): void;
64
+ deletePushToken(args: DeletePushTokenCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeletePushTokenCommandOutput) => void): void;
65
+ /**
66
+ * @see {@link GetChatSettingsCommand}
67
+ */
68
+ getChatSettings(): Promise<GetChatSettingsCommandOutput>;
69
+ getChatSettings(args: GetChatSettingsCommandInput, options?: __HttpHandlerOptions): Promise<GetChatSettingsCommandOutput>;
70
+ getChatSettings(args: GetChatSettingsCommandInput, cb: (err: any, data?: GetChatSettingsCommandOutput) => void): void;
71
+ getChatSettings(args: GetChatSettingsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetChatSettingsCommandOutput) => void): void;
51
72
  /**
52
73
  * @see {@link GetParticipantRegistryCommand}
53
74
  */
@@ -67,12 +88,25 @@ export interface OneHook {
67
88
  registerDevice(args: RegisterDeviceCommandInput, options?: __HttpHandlerOptions): Promise<RegisterDeviceCommandOutput>;
68
89
  registerDevice(args: RegisterDeviceCommandInput, cb: (err: any, data?: RegisterDeviceCommandOutput) => void): void;
69
90
  registerDevice(args: RegisterDeviceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: RegisterDeviceCommandOutput) => void): void;
91
+ /**
92
+ * @see {@link RegisterPushTokenCommand}
93
+ */
94
+ registerPushToken(args: RegisterPushTokenCommandInput, options?: __HttpHandlerOptions): Promise<RegisterPushTokenCommandOutput>;
95
+ registerPushToken(args: RegisterPushTokenCommandInput, cb: (err: any, data?: RegisterPushTokenCommandOutput) => void): void;
96
+ registerPushToken(args: RegisterPushTokenCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: RegisterPushTokenCommandOutput) => void): void;
70
97
  /**
71
98
  * @see {@link RevokeDeviceCommand}
72
99
  */
73
100
  revokeDevice(args: RevokeDeviceCommandInput, options?: __HttpHandlerOptions): Promise<RevokeDeviceCommandOutput>;
74
101
  revokeDevice(args: RevokeDeviceCommandInput, cb: (err: any, data?: RevokeDeviceCommandOutput) => void): void;
75
102
  revokeDevice(args: RevokeDeviceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: RevokeDeviceCommandOutput) => void): void;
103
+ /**
104
+ * @see {@link UpdateChatSettingsCommand}
105
+ */
106
+ updateChatSettings(): Promise<UpdateChatSettingsCommandOutput>;
107
+ updateChatSettings(args: UpdateChatSettingsCommandInput, options?: __HttpHandlerOptions): Promise<UpdateChatSettingsCommandOutput>;
108
+ updateChatSettings(args: UpdateChatSettingsCommandInput, cb: (err: any, data?: UpdateChatSettingsCommandOutput) => void): void;
109
+ updateChatSettings(args: UpdateChatSettingsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateChatSettingsCommandOutput) => void): void;
76
110
  /**
77
111
  * @see {@link AuthSocialCommand}
78
112
  */
@@ -85,6 +119,12 @@ export interface OneHook {
85
119
  generateInvite(args: GenerateInviteCommandInput, options?: __HttpHandlerOptions): Promise<GenerateInviteCommandOutput>;
86
120
  generateInvite(args: GenerateInviteCommandInput, cb: (err: any, data?: GenerateInviteCommandOutput) => void): void;
87
121
  generateInvite(args: GenerateInviteCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GenerateInviteCommandOutput) => void): void;
122
+ /**
123
+ * @see {@link GetCredentialReadinessCommand}
124
+ */
125
+ getCredentialReadiness(args: GetCredentialReadinessCommandInput, options?: __HttpHandlerOptions): Promise<GetCredentialReadinessCommandOutput>;
126
+ getCredentialReadiness(args: GetCredentialReadinessCommandInput, cb: (err: any, data?: GetCredentialReadinessCommandOutput) => void): void;
127
+ getCredentialReadiness(args: GetCredentialReadinessCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetCredentialReadinessCommandOutput) => void): void;
88
128
  /**
89
129
  * @see {@link GetUserCommand}
90
130
  */
@@ -97,6 +137,12 @@ export interface OneHook {
97
137
  getUserByEmail(args: GetUserByEmailCommandInput, options?: __HttpHandlerOptions): Promise<GetUserByEmailCommandOutput>;
98
138
  getUserByEmail(args: GetUserByEmailCommandInput, cb: (err: any, data?: GetUserByEmailCommandOutput) => void): void;
99
139
  getUserByEmail(args: GetUserByEmailCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetUserByEmailCommandOutput) => void): void;
140
+ /**
141
+ * @see {@link GetUserIdByUsernameCommand}
142
+ */
143
+ getUserIdByUsername(args: GetUserIdByUsernameCommandInput, options?: __HttpHandlerOptions): Promise<GetUserIdByUsernameCommandOutput>;
144
+ getUserIdByUsername(args: GetUserIdByUsernameCommandInput, cb: (err: any, data?: GetUserIdByUsernameCommandOutput) => void): void;
145
+ getUserIdByUsername(args: GetUserIdByUsernameCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetUserIdByUsernameCommandOutput) => void): void;
100
146
  /**
101
147
  * @see {@link LinkEmailCommand}
102
148
  */
@@ -169,6 +215,12 @@ export interface OneHook {
169
215
  discover(args: DiscoverCommandInput, options?: __HttpHandlerOptions): Promise<DiscoverCommandOutput>;
170
216
  discover(args: DiscoverCommandInput, cb: (err: any, data?: DiscoverCommandOutput) => void): void;
171
217
  discover(args: DiscoverCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DiscoverCommandOutput) => void): void;
218
+ /**
219
+ * @see {@link GetNotificationPreferencesCommand}
220
+ */
221
+ getNotificationPreferences(args: GetNotificationPreferencesCommandInput, options?: __HttpHandlerOptions): Promise<GetNotificationPreferencesCommandOutput>;
222
+ getNotificationPreferences(args: GetNotificationPreferencesCommandInput, cb: (err: any, data?: GetNotificationPreferencesCommandOutput) => void): void;
223
+ getNotificationPreferences(args: GetNotificationPreferencesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetNotificationPreferencesCommandOutput) => void): void;
172
224
  /**
173
225
  * @see {@link GetPreferencesCommand}
174
226
  */
@@ -193,6 +245,12 @@ export interface OneHook {
193
245
  swipe(args: SwipeCommandInput, options?: __HttpHandlerOptions): Promise<SwipeCommandOutput>;
194
246
  swipe(args: SwipeCommandInput, cb: (err: any, data?: SwipeCommandOutput) => void): void;
195
247
  swipe(args: SwipeCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SwipeCommandOutput) => void): void;
248
+ /**
249
+ * @see {@link SwipeByUsernameCommand}
250
+ */
251
+ swipeByUsername(args: SwipeByUsernameCommandInput, options?: __HttpHandlerOptions): Promise<SwipeByUsernameCommandOutput>;
252
+ swipeByUsername(args: SwipeByUsernameCommandInput, cb: (err: any, data?: SwipeByUsernameCommandOutput) => void): void;
253
+ swipeByUsername(args: SwipeByUsernameCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SwipeByUsernameCommandOutput) => void): void;
196
254
  /**
197
255
  * @see {@link UpdatePreferencesCommand}
198
256
  */