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
@@ -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";
@@ -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 = {
@@ -135,6 +195,17 @@ export const se_GetUserByEmailCommand = async (input, context) => {
135
195
  .b(body);
136
196
  return b.build();
137
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
+ };
138
209
  export const se_LinkEmailCommand = async (input, context) => {
139
210
  const b = rb(input, context);
140
211
  const headers = {
@@ -319,6 +390,17 @@ export const se_DiscoverCommand = async (input, context) => {
319
390
  .b(body);
320
391
  return b.build();
321
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
+ };
322
404
  export const se_GetPreferencesCommand = async (input, context) => {
323
405
  const b = rb(input, context);
324
406
  const headers = {};
@@ -379,6 +461,21 @@ export const se_SwipeCommand = async (input, context) => {
379
461
  .b(body);
380
462
  return b.build();
381
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
+ };
382
479
  export const se_UpdatePreferencesCommand = async (input, context) => {
383
480
  const b = rb(input, context);
384
481
  const headers = {
@@ -388,10 +485,38 @@ export const se_UpdatePreferencesCommand = async (input, context) => {
388
485
  b.p('userId', () => input.userId, '{userId}', false);
389
486
  let body;
390
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': [],
391
497
  'genders': _ => _json(_),
498
+ 'incognito': [],
499
+ 'interestedInGenders': _ => _json(_),
500
+ 'interests': _ => _json(_),
392
501
  'maxAge': [],
393
502
  'maxDistanceKm': [],
503
+ 'maxHeight': [],
394
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': [],
395
520
  }));
396
521
  b.m("PUT")
397
522
  .h(headers)
@@ -524,6 +649,7 @@ export const se_UpdateProfileCommand = async (input, context) => {
524
649
  'interests': _ => _json(_),
525
650
  'languages': _ => _json(_),
526
651
  'openers': _ => _json(_),
652
+ 'pictureTransforms': _ => _json(_),
527
653
  'pictures': _ => _json(_),
528
654
  'politicalView': [],
529
655
  'prompts': _ => _json(_),
@@ -624,6 +750,35 @@ export const de_DeleteMatchMessagesCommand = async (output, context) => {
624
750
  Object.assign(contents, doc);
625
751
  return contents;
626
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
+ };
627
782
  export const de_GetParticipantRegistryCommand = async (output, context) => {
628
783
  if (output.statusCode !== 200 && output.statusCode >= 300) {
629
784
  return de_CommandError(output, context);
@@ -671,6 +826,21 @@ export const de_RegisterDeviceCommand = async (output, context) => {
671
826
  Object.assign(contents, doc);
672
827
  return contents;
673
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
+ };
674
844
  export const de_RevokeDeviceCommand = async (output, context) => {
675
845
  if (output.statusCode !== 200 && output.statusCode >= 300) {
676
846
  return de_CommandError(output, context);
@@ -686,6 +856,20 @@ export const de_RevokeDeviceCommand = async (output, context) => {
686
856
  Object.assign(contents, doc);
687
857
  return contents;
688
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
+ };
689
873
  export const de_AuthSocialCommand = async (output, context) => {
690
874
  if (output.statusCode !== 200 && output.statusCode >= 300) {
691
875
  return de_CommandError(output, context);
@@ -779,6 +963,20 @@ export const de_GetUserByEmailCommand = async (output, context) => {
779
963
  Object.assign(contents, doc);
780
964
  return contents;
781
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
+ };
782
980
  export const de_LinkEmailCommand = async (output, context) => {
783
981
  if (output.statusCode !== 200 && output.statusCode >= 300) {
784
982
  return de_CommandError(output, context);
@@ -956,6 +1154,23 @@ export const de_DiscoverCommand = async (output, context) => {
956
1154
  Object.assign(contents, doc);
957
1155
  return contents;
958
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
+ };
959
1174
  export const de_GetPreferencesCommand = async (output, context) => {
960
1175
  if (output.statusCode !== 200 && output.statusCode >= 300) {
961
1176
  return de_CommandError(output, context);
@@ -965,11 +1180,39 @@ export const de_GetPreferencesCommand = async (output, context) => {
965
1180
  });
966
1181
  const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
967
1182
  const doc = take(data, {
968
- '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,
969
1195
  'maxAge': __expectInt32,
970
1196
  'maxDistanceKm': __expectInt32,
1197
+ 'maxHeight': __expectInt32,
971
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,
972
1213
  'userId': __expectString,
1214
+ 'verifiedOnly': __expectBoolean,
1215
+ 'wantsKids': __expectString,
973
1216
  });
974
1217
  Object.assign(contents, doc);
975
1218
  return contents;
@@ -1018,6 +1261,20 @@ export const de_SwipeCommand = async (output, context) => {
1018
1261
  Object.assign(contents, doc);
1019
1262
  return contents;
1020
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
+ };
1021
1278
  export const de_UpdatePreferencesCommand = async (output, context) => {
1022
1279
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1023
1280
  return de_CommandError(output, context);
@@ -1151,6 +1408,7 @@ export const de_GetMyProfileCommand = async (output, context) => {
1151
1408
  'languages': _json,
1152
1409
  'moderationStatus': __expectString,
1153
1410
  'openers': _json,
1411
+ 'pictureTransforms': _json,
1154
1412
  'pictures': _json,
1155
1413
  'politicalView': __expectString,
1156
1414
  'prompts': _json,
@@ -1202,6 +1460,7 @@ export const de_GetProfileCommand = async (output, context) => {
1202
1460
  'languages': _json,
1203
1461
  'moderationStatus': __expectString,
1204
1462
  'openers': _json,
1463
+ 'pictureTransforms': _json,
1205
1464
  'pictures': _json,
1206
1465
  'politicalView': __expectString,
1207
1466
  'prompts': _json,
@@ -5,20 +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";
12
14
  import { GetCredentialReadinessCommandInput, GetCredentialReadinessCommandOutput } from "./commands/GetCredentialReadinessCommand";
13
15
  import { GetLivenessStatusCommandInput, GetLivenessStatusCommandOutput } from "./commands/GetLivenessStatusCommand";
14
16
  import { GetMatchCommandInput, GetMatchCommandOutput } from "./commands/GetMatchCommand";
15
17
  import { GetMyProfileCommandInput, GetMyProfileCommandOutput } from "./commands/GetMyProfileCommand";
18
+ import { GetNotificationPreferencesCommandInput, GetNotificationPreferencesCommandOutput } from "./commands/GetNotificationPreferencesCommand";
16
19
  import { GetParticipantRegistryCommandInput, GetParticipantRegistryCommandOutput } from "./commands/GetParticipantRegistryCommand";
17
20
  import { GetPreferencesCommandInput, GetPreferencesCommandOutput } from "./commands/GetPreferencesCommand";
18
21
  import { GetProfileCommandInput, GetProfileCommandOutput } from "./commands/GetProfileCommand";
19
22
  import { GetStateCommandInput, GetStateCommandOutput } from "./commands/GetStateCommand";
20
23
  import { GetUserByEmailCommandInput, GetUserByEmailCommandOutput } from "./commands/GetUserByEmailCommand";
21
24
  import { GetUserCommandInput, GetUserCommandOutput } from "./commands/GetUserCommand";
25
+ import { GetUserIdByUsernameCommandInput, GetUserIdByUsernameCommandOutput } from "./commands/GetUserIdByUsernameCommand";
22
26
  import { IndexLocationCommandInput, IndexLocationCommandOutput } from "./commands/IndexLocationCommand";
23
27
  import { InitUserCommandInput, InitUserCommandOutput } from "./commands/InitUserCommand";
24
28
  import { LinkEmailCommandInput, LinkEmailCommandOutput } from "./commands/LinkEmailCommand";
@@ -26,14 +30,17 @@ import { LinkSocialCommandInput, LinkSocialCommandOutput } from "./commands/Link
26
30
  import { ListMyDevicesCommandInput, ListMyDevicesCommandOutput } from "./commands/ListMyDevicesCommand";
27
31
  import { RegisterDeviceCommandInput, RegisterDeviceCommandOutput } from "./commands/RegisterDeviceCommand";
28
32
  import { RegisterPhoneCommandInput, RegisterPhoneCommandOutput } from "./commands/RegisterPhoneCommand";
33
+ import { RegisterPushTokenCommandInput, RegisterPushTokenCommandOutput } from "./commands/RegisterPushTokenCommand";
29
34
  import { RemoveLocationCommandInput, RemoveLocationCommandOutput } from "./commands/RemoveLocationCommand";
30
35
  import { RequestEmailOtpCommandInput, RequestEmailOtpCommandOutput } from "./commands/RequestEmailOtpCommand";
31
36
  import { RequestPhoneOtpCommandInput, RequestPhoneOtpCommandOutput } from "./commands/RequestPhoneOtpCommand";
32
37
  import { RequestPhoneUpdateOtpCommandInput, RequestPhoneUpdateOtpCommandOutput } from "./commands/RequestPhoneUpdateOtpCommand";
33
38
  import { RevokeDeviceCommandInput, RevokeDeviceCommandOutput } from "./commands/RevokeDeviceCommand";
39
+ import { SwipeByUsernameCommandInput, SwipeByUsernameCommandOutput } from "./commands/SwipeByUsernameCommand";
34
40
  import { SwipeCommandInput, SwipeCommandOutput } from "./commands/SwipeCommand";
35
41
  import { UnhookCommandInput, UnhookCommandOutput } from "./commands/UnhookCommand";
36
42
  import { UnlinkSocialCommandInput, UnlinkSocialCommandOutput } from "./commands/UnlinkSocialCommand";
43
+ import { UpdateChatSettingsCommandInput, UpdateChatSettingsCommandOutput } from "./commands/UpdateChatSettingsCommand";
37
44
  import { UpdateEntitlementsCommandInput, UpdateEntitlementsCommandOutput } from "./commands/UpdateEntitlementsCommand";
38
45
  import { UpdatePhoneNumberCommandInput, UpdatePhoneNumberCommandOutput } from "./commands/UpdatePhoneNumberCommand";
39
46
  import { UpdatePreferencesCommandInput, UpdatePreferencesCommandOutput } from "./commands/UpdatePreferencesCommand";
@@ -49,6 +56,19 @@ export interface OneHook {
49
56
  deleteMatchMessages(args: DeleteMatchMessagesCommandInput, options?: __HttpHandlerOptions): Promise<DeleteMatchMessagesCommandOutput>;
50
57
  deleteMatchMessages(args: DeleteMatchMessagesCommandInput, cb: (err: any, data?: DeleteMatchMessagesCommandOutput) => void): void;
51
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;
52
72
  /**
53
73
  * @see {@link GetParticipantRegistryCommand}
54
74
  */
@@ -68,12 +88,25 @@ export interface OneHook {
68
88
  registerDevice(args: RegisterDeviceCommandInput, options?: __HttpHandlerOptions): Promise<RegisterDeviceCommandOutput>;
69
89
  registerDevice(args: RegisterDeviceCommandInput, cb: (err: any, data?: RegisterDeviceCommandOutput) => void): void;
70
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;
71
97
  /**
72
98
  * @see {@link RevokeDeviceCommand}
73
99
  */
74
100
  revokeDevice(args: RevokeDeviceCommandInput, options?: __HttpHandlerOptions): Promise<RevokeDeviceCommandOutput>;
75
101
  revokeDevice(args: RevokeDeviceCommandInput, cb: (err: any, data?: RevokeDeviceCommandOutput) => void): void;
76
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;
77
110
  /**
78
111
  * @see {@link AuthSocialCommand}
79
112
  */
@@ -104,6 +137,12 @@ export interface OneHook {
104
137
  getUserByEmail(args: GetUserByEmailCommandInput, options?: __HttpHandlerOptions): Promise<GetUserByEmailCommandOutput>;
105
138
  getUserByEmail(args: GetUserByEmailCommandInput, cb: (err: any, data?: GetUserByEmailCommandOutput) => void): void;
106
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;
107
146
  /**
108
147
  * @see {@link LinkEmailCommand}
109
148
  */
@@ -176,6 +215,12 @@ export interface OneHook {
176
215
  discover(args: DiscoverCommandInput, options?: __HttpHandlerOptions): Promise<DiscoverCommandOutput>;
177
216
  discover(args: DiscoverCommandInput, cb: (err: any, data?: DiscoverCommandOutput) => void): void;
178
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;
179
224
  /**
180
225
  * @see {@link GetPreferencesCommand}
181
226
  */
@@ -200,6 +245,12 @@ export interface OneHook {
200
245
  swipe(args: SwipeCommandInput, options?: __HttpHandlerOptions): Promise<SwipeCommandOutput>;
201
246
  swipe(args: SwipeCommandInput, cb: (err: any, data?: SwipeCommandOutput) => void): void;
202
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;
203
254
  /**
204
255
  * @see {@link UpdatePreferencesCommand}
205
256
  */
@@ -5,20 +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";
12
14
  import { GetCredentialReadinessCommandInput, GetCredentialReadinessCommandOutput } from "./commands/GetCredentialReadinessCommand";
13
15
  import { GetLivenessStatusCommandInput, GetLivenessStatusCommandOutput } from "./commands/GetLivenessStatusCommand";
14
16
  import { GetMatchCommandInput, GetMatchCommandOutput } from "./commands/GetMatchCommand";
15
17
  import { GetMyProfileCommandInput, GetMyProfileCommandOutput } from "./commands/GetMyProfileCommand";
18
+ import { GetNotificationPreferencesCommandInput, GetNotificationPreferencesCommandOutput } from "./commands/GetNotificationPreferencesCommand";
16
19
  import { GetParticipantRegistryCommandInput, GetParticipantRegistryCommandOutput } from "./commands/GetParticipantRegistryCommand";
17
20
  import { GetPreferencesCommandInput, GetPreferencesCommandOutput } from "./commands/GetPreferencesCommand";
18
21
  import { GetProfileCommandInput, GetProfileCommandOutput } from "./commands/GetProfileCommand";
19
22
  import { GetStateCommandInput, GetStateCommandOutput } from "./commands/GetStateCommand";
20
23
  import { GetUserByEmailCommandInput, GetUserByEmailCommandOutput } from "./commands/GetUserByEmailCommand";
21
24
  import { GetUserCommandInput, GetUserCommandOutput } from "./commands/GetUserCommand";
25
+ import { GetUserIdByUsernameCommandInput, GetUserIdByUsernameCommandOutput } from "./commands/GetUserIdByUsernameCommand";
22
26
  import { IndexLocationCommandInput, IndexLocationCommandOutput } from "./commands/IndexLocationCommand";
23
27
  import { InitUserCommandInput, InitUserCommandOutput } from "./commands/InitUserCommand";
24
28
  import { LinkEmailCommandInput, LinkEmailCommandOutput } from "./commands/LinkEmailCommand";
@@ -26,14 +30,17 @@ import { LinkSocialCommandInput, LinkSocialCommandOutput } from "./commands/Link
26
30
  import { ListMyDevicesCommandInput, ListMyDevicesCommandOutput } from "./commands/ListMyDevicesCommand";
27
31
  import { RegisterDeviceCommandInput, RegisterDeviceCommandOutput } from "./commands/RegisterDeviceCommand";
28
32
  import { RegisterPhoneCommandInput, RegisterPhoneCommandOutput } from "./commands/RegisterPhoneCommand";
33
+ import { RegisterPushTokenCommandInput, RegisterPushTokenCommandOutput } from "./commands/RegisterPushTokenCommand";
29
34
  import { RemoveLocationCommandInput, RemoveLocationCommandOutput } from "./commands/RemoveLocationCommand";
30
35
  import { RequestEmailOtpCommandInput, RequestEmailOtpCommandOutput } from "./commands/RequestEmailOtpCommand";
31
36
  import { RequestPhoneOtpCommandInput, RequestPhoneOtpCommandOutput } from "./commands/RequestPhoneOtpCommand";
32
37
  import { RequestPhoneUpdateOtpCommandInput, RequestPhoneUpdateOtpCommandOutput } from "./commands/RequestPhoneUpdateOtpCommand";
33
38
  import { RevokeDeviceCommandInput, RevokeDeviceCommandOutput } from "./commands/RevokeDeviceCommand";
39
+ import { SwipeByUsernameCommandInput, SwipeByUsernameCommandOutput } from "./commands/SwipeByUsernameCommand";
34
40
  import { SwipeCommandInput, SwipeCommandOutput } from "./commands/SwipeCommand";
35
41
  import { UnhookCommandInput, UnhookCommandOutput } from "./commands/UnhookCommand";
36
42
  import { UnlinkSocialCommandInput, UnlinkSocialCommandOutput } from "./commands/UnlinkSocialCommand";
43
+ import { UpdateChatSettingsCommandInput, UpdateChatSettingsCommandOutput } from "./commands/UpdateChatSettingsCommand";
37
44
  import { UpdateEntitlementsCommandInput, UpdateEntitlementsCommandOutput } from "./commands/UpdateEntitlementsCommand";
38
45
  import { UpdatePhoneNumberCommandInput, UpdatePhoneNumberCommandOutput } from "./commands/UpdatePhoneNumberCommand";
39
46
  import { UpdatePreferencesCommandInput, UpdatePreferencesCommandOutput } from "./commands/UpdatePreferencesCommand";
@@ -53,11 +60,11 @@ export { __Client };
53
60
  /**
54
61
  * @public
55
62
  */
56
- export type ServiceInputTypes = AuthSocialCommandInput | CompleteLivenessSessionCommandInput | CompleteOnboardingCommandInput | CreateLivenessSessionCommandInput | DeleteMatchMessagesCommandInput | DeleteProfileCommandInput | DiscoverCommandInput | GenerateDownloadUrlCommandInput | GenerateInviteCommandInput | GenerateUploadUrlCommandInput | GetCredentialReadinessCommandInput | GetLivenessStatusCommandInput | GetMatchCommandInput | GetMyProfileCommandInput | GetParticipantRegistryCommandInput | GetPreferencesCommandInput | GetProfileCommandInput | GetStateCommandInput | GetUserByEmailCommandInput | GetUserCommandInput | IndexLocationCommandInput | InitUserCommandInput | LinkEmailCommandInput | LinkSocialCommandInput | ListMyDevicesCommandInput | RegisterDeviceCommandInput | RegisterPhoneCommandInput | RemoveLocationCommandInput | RequestEmailOtpCommandInput | RequestPhoneOtpCommandInput | RequestPhoneUpdateOtpCommandInput | RevokeDeviceCommandInput | SwipeCommandInput | UnhookCommandInput | UnlinkSocialCommandInput | UpdateEntitlementsCommandInput | UpdatePhoneNumberCommandInput | UpdatePreferencesCommandInput | UpdateProfileCommandInput | UpdateUsernameCommandInput | UpgradeUserCommandInput | ValidateInviteCommandInput;
63
+ export type ServiceInputTypes = AuthSocialCommandInput | CompleteLivenessSessionCommandInput | CompleteOnboardingCommandInput | CreateLivenessSessionCommandInput | DeleteMatchMessagesCommandInput | DeleteProfileCommandInput | DeletePushTokenCommandInput | DiscoverCommandInput | GenerateDownloadUrlCommandInput | GenerateInviteCommandInput | GenerateUploadUrlCommandInput | GetChatSettingsCommandInput | GetCredentialReadinessCommandInput | GetLivenessStatusCommandInput | GetMatchCommandInput | GetMyProfileCommandInput | GetNotificationPreferencesCommandInput | GetParticipantRegistryCommandInput | GetPreferencesCommandInput | GetProfileCommandInput | GetStateCommandInput | GetUserByEmailCommandInput | GetUserCommandInput | GetUserIdByUsernameCommandInput | IndexLocationCommandInput | InitUserCommandInput | LinkEmailCommandInput | LinkSocialCommandInput | ListMyDevicesCommandInput | RegisterDeviceCommandInput | RegisterPhoneCommandInput | RegisterPushTokenCommandInput | RemoveLocationCommandInput | RequestEmailOtpCommandInput | RequestPhoneOtpCommandInput | RequestPhoneUpdateOtpCommandInput | RevokeDeviceCommandInput | SwipeByUsernameCommandInput | SwipeCommandInput | UnhookCommandInput | UnlinkSocialCommandInput | UpdateChatSettingsCommandInput | UpdateEntitlementsCommandInput | UpdatePhoneNumberCommandInput | UpdatePreferencesCommandInput | UpdateProfileCommandInput | UpdateUsernameCommandInput | UpgradeUserCommandInput | ValidateInviteCommandInput;
57
64
  /**
58
65
  * @public
59
66
  */
60
- export type ServiceOutputTypes = AuthSocialCommandOutput | CompleteLivenessSessionCommandOutput | CompleteOnboardingCommandOutput | CreateLivenessSessionCommandOutput | DeleteMatchMessagesCommandOutput | DeleteProfileCommandOutput | DiscoverCommandOutput | GenerateDownloadUrlCommandOutput | GenerateInviteCommandOutput | GenerateUploadUrlCommandOutput | GetCredentialReadinessCommandOutput | GetLivenessStatusCommandOutput | GetMatchCommandOutput | GetMyProfileCommandOutput | GetParticipantRegistryCommandOutput | GetPreferencesCommandOutput | GetProfileCommandOutput | GetStateCommandOutput | GetUserByEmailCommandOutput | GetUserCommandOutput | IndexLocationCommandOutput | InitUserCommandOutput | LinkEmailCommandOutput | LinkSocialCommandOutput | ListMyDevicesCommandOutput | RegisterDeviceCommandOutput | RegisterPhoneCommandOutput | RemoveLocationCommandOutput | RequestEmailOtpCommandOutput | RequestPhoneOtpCommandOutput | RequestPhoneUpdateOtpCommandOutput | RevokeDeviceCommandOutput | SwipeCommandOutput | UnhookCommandOutput | UnlinkSocialCommandOutput | UpdateEntitlementsCommandOutput | UpdatePhoneNumberCommandOutput | UpdatePreferencesCommandOutput | UpdateProfileCommandOutput | UpdateUsernameCommandOutput | UpgradeUserCommandOutput | ValidateInviteCommandOutput;
67
+ export type ServiceOutputTypes = AuthSocialCommandOutput | CompleteLivenessSessionCommandOutput | CompleteOnboardingCommandOutput | CreateLivenessSessionCommandOutput | DeleteMatchMessagesCommandOutput | DeleteProfileCommandOutput | DeletePushTokenCommandOutput | DiscoverCommandOutput | GenerateDownloadUrlCommandOutput | GenerateInviteCommandOutput | GenerateUploadUrlCommandOutput | GetChatSettingsCommandOutput | GetCredentialReadinessCommandOutput | GetLivenessStatusCommandOutput | GetMatchCommandOutput | GetMyProfileCommandOutput | GetNotificationPreferencesCommandOutput | GetParticipantRegistryCommandOutput | GetPreferencesCommandOutput | GetProfileCommandOutput | GetStateCommandOutput | GetUserByEmailCommandOutput | GetUserCommandOutput | GetUserIdByUsernameCommandOutput | IndexLocationCommandOutput | InitUserCommandOutput | LinkEmailCommandOutput | LinkSocialCommandOutput | ListMyDevicesCommandOutput | RegisterDeviceCommandOutput | RegisterPhoneCommandOutput | RegisterPushTokenCommandOutput | RemoveLocationCommandOutput | RequestEmailOtpCommandOutput | RequestPhoneOtpCommandOutput | RequestPhoneUpdateOtpCommandOutput | RevokeDeviceCommandOutput | SwipeByUsernameCommandOutput | SwipeCommandOutput | UnhookCommandOutput | UnlinkSocialCommandOutput | UpdateChatSettingsCommandOutput | UpdateEntitlementsCommandOutput | UpdatePhoneNumberCommandOutput | UpdatePreferencesCommandOutput | UpdateProfileCommandOutput | UpdateUsernameCommandOutput | UpgradeUserCommandOutput | ValidateInviteCommandOutput;
61
68
  /**
62
69
  * @public
63
70
  */