onehook-api-client 1.0.12 → 1.0.15

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 (50) hide show
  1. package/README.md +63 -0
  2. package/dist-cjs/OneHook.js +18 -0
  3. package/dist-cjs/commands/CreateMediaDownloadUrlCommand.js +21 -0
  4. package/dist-cjs/commands/CreateMediaUploadUrlCommand.js +21 -0
  5. package/dist-cjs/commands/DeletePushTokenCommand.js +21 -0
  6. package/dist-cjs/commands/GetChatSettingsCommand.js +21 -0
  7. package/dist-cjs/commands/GetNotificationPreferencesCommand.js +21 -0
  8. package/dist-cjs/commands/GetUserIdByUsernameCommand.js +21 -0
  9. package/dist-cjs/commands/RegisterPushTokenCommand.js +21 -0
  10. package/dist-cjs/commands/SwipeByUsernameCommand.js +21 -0
  11. package/dist-cjs/commands/UpdateChatSettingsCommand.js +21 -0
  12. package/dist-cjs/commands/index.js +9 -0
  13. package/dist-cjs/graphql/types.js +6 -1
  14. package/dist-cjs/models/models_0.js +17 -6
  15. package/dist-cjs/protocols/Aws_restJson1.js +345 -3
  16. package/dist-es/OneHook.js +18 -0
  17. package/dist-es/commands/CreateMediaDownloadUrlCommand.js +17 -0
  18. package/dist-es/commands/CreateMediaUploadUrlCommand.js +17 -0
  19. package/dist-es/commands/DeletePushTokenCommand.js +17 -0
  20. package/dist-es/commands/GetChatSettingsCommand.js +17 -0
  21. package/dist-es/commands/GetNotificationPreferencesCommand.js +17 -0
  22. package/dist-es/commands/GetUserIdByUsernameCommand.js +17 -0
  23. package/dist-es/commands/RegisterPushTokenCommand.js +17 -0
  24. package/dist-es/commands/SwipeByUsernameCommand.js +17 -0
  25. package/dist-es/commands/UpdateChatSettingsCommand.js +17 -0
  26. package/dist-es/commands/index.js +9 -0
  27. package/dist-es/graphql/types.js +5 -0
  28. package/dist-es/models/models_0.js +16 -5
  29. package/dist-es/protocols/Aws_restJson1.js +324 -1
  30. package/dist-types/OneHook.d.ts +65 -0
  31. package/dist-types/OneHookClient.d.ts +11 -2
  32. package/dist-types/commands/CreateMediaDownloadUrlCommand.d.ts +87 -0
  33. package/dist-types/commands/CreateMediaUploadUrlCommand.d.ts +92 -0
  34. package/dist-types/commands/DeletePushTokenCommand.d.ts +85 -0
  35. package/dist-types/commands/GetChatSettingsCommand.d.ts +85 -0
  36. package/dist-types/commands/GetMyProfileCommand.d.ts +4 -1
  37. package/dist-types/commands/GetNotificationPreferencesCommand.d.ts +91 -0
  38. package/dist-types/commands/GetPreferencesCommand.d.ts +37 -1
  39. package/dist-types/commands/GetProfileCommand.d.ts +4 -1
  40. package/dist-types/commands/GetUserIdByUsernameCommand.d.ts +84 -0
  41. package/dist-types/commands/RegisterPushTokenCommand.d.ts +93 -0
  42. package/dist-types/commands/SwipeByUsernameCommand.d.ts +93 -0
  43. package/dist-types/commands/UpdateChatSettingsCommand.d.ts +95 -0
  44. package/dist-types/commands/UpdatePreferencesCommand.d.ts +37 -1
  45. package/dist-types/commands/UpdateProfileCommand.d.ts +4 -1
  46. package/dist-types/commands/index.d.ts +9 -0
  47. package/dist-types/graphql/types.d.ts +33 -0
  48. package/dist-types/models/models_0.d.ts +511 -16
  49. package/dist-types/protocols/Aws_restJson1.d.ts +81 -0
  50. package/package.json +1 -1
@@ -0,0 +1,17 @@
1
+ import { de_GetUserIdByUsernameCommand, se_GetUserIdByUsernameCommand, } from "../protocols/Aws_restJson1";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ export { $Command };
5
+ export class GetUserIdByUsernameCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("OneHookService", "GetUserIdByUsername", {})
12
+ .n("OneHookClient", "GetUserIdByUsernameCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_GetUserIdByUsernameCommand)
15
+ .de(de_GetUserIdByUsernameCommand)
16
+ .build() {
17
+ }
@@ -0,0 +1,17 @@
1
+ import { de_RegisterPushTokenCommand, se_RegisterPushTokenCommand, } from "../protocols/Aws_restJson1";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ export { $Command };
5
+ export class RegisterPushTokenCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("OneHookService", "RegisterPushToken", {})
12
+ .n("OneHookClient", "RegisterPushTokenCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_RegisterPushTokenCommand)
15
+ .de(de_RegisterPushTokenCommand)
16
+ .build() {
17
+ }
@@ -0,0 +1,17 @@
1
+ import { de_SwipeByUsernameCommand, se_SwipeByUsernameCommand, } from "../protocols/Aws_restJson1";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ export { $Command };
5
+ export class SwipeByUsernameCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("OneHookService", "SwipeByUsername", {})
12
+ .n("OneHookClient", "SwipeByUsernameCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_SwipeByUsernameCommand)
15
+ .de(de_SwipeByUsernameCommand)
16
+ .build() {
17
+ }
@@ -0,0 +1,17 @@
1
+ import { de_UpdateChatSettingsCommand, se_UpdateChatSettingsCommand, } from "../protocols/Aws_restJson1";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ export { $Command };
5
+ export class UpdateChatSettingsCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("OneHookService", "UpdateChatSettings", {})
12
+ .n("OneHookClient", "UpdateChatSettingsCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_UpdateChatSettingsCommand)
15
+ .de(de_UpdateChatSettingsCommand)
16
+ .build() {
17
+ }
@@ -1,13 +1,20 @@
1
+ export * from "./CreateMediaDownloadUrlCommand";
2
+ export * from "./CreateMediaUploadUrlCommand";
1
3
  export * from "./DeleteMatchMessagesCommand";
4
+ export * from "./DeletePushTokenCommand";
5
+ export * from "./GetChatSettingsCommand";
2
6
  export * from "./GetParticipantRegistryCommand";
3
7
  export * from "./ListMyDevicesCommand";
4
8
  export * from "./RegisterDeviceCommand";
9
+ export * from "./RegisterPushTokenCommand";
5
10
  export * from "./RevokeDeviceCommand";
11
+ export * from "./UpdateChatSettingsCommand";
6
12
  export * from "./AuthSocialCommand";
7
13
  export * from "./GenerateInviteCommand";
8
14
  export * from "./GetCredentialReadinessCommand";
9
15
  export * from "./GetUserCommand";
10
16
  export * from "./GetUserByEmailCommand";
17
+ export * from "./GetUserIdByUsernameCommand";
11
18
  export * from "./LinkEmailCommand";
12
19
  export * from "./LinkSocialCommand";
13
20
  export * from "./RegisterPhoneCommand";
@@ -20,10 +27,12 @@ export * from "./UpdatePhoneNumberCommand";
20
27
  export * from "./UpdateUsernameCommand";
21
28
  export * from "./ValidateInviteCommand";
22
29
  export * from "./DiscoverCommand";
30
+ export * from "./GetNotificationPreferencesCommand";
23
31
  export * from "./GetPreferencesCommand";
24
32
  export * from "./IndexLocationCommand";
25
33
  export * from "./RemoveLocationCommand";
26
34
  export * from "./SwipeCommand";
35
+ export * from "./SwipeByUsernameCommand";
27
36
  export * from "./UpdatePreferencesCommand";
28
37
  export * from "./CompleteLivenessSessionCommand";
29
38
  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,22 @@ export class NotFoundError extends __BaseException {
60
55
  this.error = opts.error;
61
56
  }
62
57
  }
58
+ export const MediaKind = {
59
+ AUDIO: "AUDIO",
60
+ FILE: "FILE",
61
+ IMAGE: "IMAGE",
62
+ VIDEO: "VIDEO",
63
+ };
64
+ export const LastSeenVisibility = {
65
+ EVERYONE: "EVERYONE",
66
+ MATCHES: "MATCHES",
67
+ NOBODY: "NOBODY",
68
+ };
69
+ export const Platform = {
70
+ ANDROID: "ANDROID",
71
+ IOS: "IOS",
72
+ WEB: "WEB",
73
+ };
63
74
  export class DeviceLimitError extends __BaseException {
64
75
  name = "DeviceLimitError";
65
76
  $fault = "client";
@@ -3,6 +3,39 @@ import { BadRequestError, DeviceLimitError, ForbiddenError, InternalServerError,
3
3
  import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody, } from "@aws-sdk/core";
4
4
  import { requestBuilder as rb } from "@smithy/core";
5
5
  import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, serializeFloat as __serializeFloat, _json, collectBody, map, take, withBaseException, } from "@smithy/smithy-client";
6
+ export const se_CreateMediaDownloadUrlCommand = async (input, context) => {
7
+ const b = rb(input, context);
8
+ const headers = {
9
+ 'content-type': 'application/json',
10
+ };
11
+ b.bp("/chat/media/download-url");
12
+ let body;
13
+ body = JSON.stringify(take(input, {
14
+ 'matchId': [],
15
+ 'objectKey': [],
16
+ }));
17
+ b.m("POST")
18
+ .h(headers)
19
+ .b(body);
20
+ return b.build();
21
+ };
22
+ export const se_CreateMediaUploadUrlCommand = async (input, context) => {
23
+ const b = rb(input, context);
24
+ const headers = {
25
+ 'content-type': 'application/json',
26
+ };
27
+ b.bp("/chat/media/upload-url");
28
+ let body;
29
+ body = JSON.stringify(take(input, {
30
+ 'contentLength': [],
31
+ 'kind': [],
32
+ 'matchId': [],
33
+ }));
34
+ b.m("POST")
35
+ .h(headers)
36
+ .b(body);
37
+ return b.build();
38
+ };
6
39
  export const se_DeleteMatchMessagesCommand = async (input, context) => {
7
40
  const b = rb(input, context);
8
41
  const headers = {};
@@ -14,6 +47,27 @@ export const se_DeleteMatchMessagesCommand = async (input, context) => {
14
47
  .b(body);
15
48
  return b.build();
16
49
  };
50
+ export const se_DeletePushTokenCommand = async (input, context) => {
51
+ const b = rb(input, context);
52
+ const headers = {};
53
+ b.bp("/chat/devices/{deviceId}/push-token");
54
+ b.p('deviceId', () => input.deviceId, '{deviceId}', false);
55
+ let body;
56
+ b.m("DELETE")
57
+ .h(headers)
58
+ .b(body);
59
+ return b.build();
60
+ };
61
+ export const se_GetChatSettingsCommand = async (input, context) => {
62
+ const b = rb(input, context);
63
+ const headers = {};
64
+ b.bp("/chat/settings");
65
+ let body;
66
+ b.m("GET")
67
+ .h(headers)
68
+ .b(body);
69
+ return b.build();
70
+ };
17
71
  export const se_GetParticipantRegistryCommand = async (input, context) => {
18
72
  const b = rb(input, context);
19
73
  const headers = {};
@@ -59,6 +113,23 @@ export const se_RegisterDeviceCommand = async (input, context) => {
59
113
  .b(body);
60
114
  return b.build();
61
115
  };
116
+ export const se_RegisterPushTokenCommand = async (input, context) => {
117
+ const b = rb(input, context);
118
+ const headers = {
119
+ 'content-type': 'application/json',
120
+ };
121
+ b.bp("/chat/devices/{deviceId}/push-token");
122
+ b.p('deviceId', () => input.deviceId, '{deviceId}', false);
123
+ let body;
124
+ body = JSON.stringify(take(input, {
125
+ 'platform': [],
126
+ 'token': [],
127
+ }));
128
+ b.m("PUT")
129
+ .h(headers)
130
+ .b(body);
131
+ return b.build();
132
+ };
62
133
  export const se_RevokeDeviceCommand = async (input, context) => {
63
134
  const b = rb(input, context);
64
135
  const headers = {};
@@ -70,6 +141,28 @@ export const se_RevokeDeviceCommand = async (input, context) => {
70
141
  .b(body);
71
142
  return b.build();
72
143
  };
144
+ export const se_UpdateChatSettingsCommand = async (input, context) => {
145
+ const b = rb(input, context);
146
+ const headers = {
147
+ 'content-type': 'application/json',
148
+ };
149
+ b.bp("/chat/settings");
150
+ let body;
151
+ body = JSON.stringify(take(input, {
152
+ 'defaultDisappearingSeconds': [],
153
+ 'lastSeenVisibility': [],
154
+ 'messageNotifications': [],
155
+ 'reactionNotifications': [],
156
+ 'readReceipts': [],
157
+ 'screenshotProtection': [],
158
+ 'showPreviews': [],
159
+ 'typingIndicators': [],
160
+ }));
161
+ b.m("PUT")
162
+ .h(headers)
163
+ .b(body);
164
+ return b.build();
165
+ };
73
166
  export const se_AuthSocialCommand = async (input, context) => {
74
167
  const b = rb(input, context);
75
168
  const headers = {
@@ -135,6 +228,17 @@ export const se_GetUserByEmailCommand = async (input, context) => {
135
228
  .b(body);
136
229
  return b.build();
137
230
  };
231
+ export const se_GetUserIdByUsernameCommand = async (input, context) => {
232
+ const b = rb(input, context);
233
+ const headers = {};
234
+ b.bp("/identity/users/by-username/{username}");
235
+ b.p('username', () => input.username, '{username}', false);
236
+ let body;
237
+ b.m("GET")
238
+ .h(headers)
239
+ .b(body);
240
+ return b.build();
241
+ };
138
242
  export const se_LinkEmailCommand = async (input, context) => {
139
243
  const b = rb(input, context);
140
244
  const headers = {
@@ -319,6 +423,17 @@ export const se_DiscoverCommand = async (input, context) => {
319
423
  .b(body);
320
424
  return b.build();
321
425
  };
426
+ export const se_GetNotificationPreferencesCommand = async (input, context) => {
427
+ const b = rb(input, context);
428
+ const headers = {};
429
+ b.bp("/matching/internal/users/{userId}/notification-preferences");
430
+ b.p('userId', () => input.userId, '{userId}', false);
431
+ let body;
432
+ b.m("GET")
433
+ .h(headers)
434
+ .b(body);
435
+ return b.build();
436
+ };
322
437
  export const se_GetPreferencesCommand = async (input, context) => {
323
438
  const b = rb(input, context);
324
439
  const headers = {};
@@ -379,6 +494,21 @@ export const se_SwipeCommand = async (input, context) => {
379
494
  .b(body);
380
495
  return b.build();
381
496
  };
497
+ export const se_SwipeByUsernameCommand = async (input, context) => {
498
+ const b = rb(input, context);
499
+ const headers = {
500
+ 'content-type': 'application/json',
501
+ };
502
+ b.bp("/matching/swipe/by-username");
503
+ let body;
504
+ body = JSON.stringify(take(input, {
505
+ 'username': [],
506
+ }));
507
+ b.m("POST")
508
+ .h(headers)
509
+ .b(body);
510
+ return b.build();
511
+ };
382
512
  export const se_UpdatePreferencesCommand = async (input, context) => {
383
513
  const b = rb(input, context);
384
514
  const headers = {
@@ -388,10 +518,38 @@ export const se_UpdatePreferencesCommand = async (input, context) => {
388
518
  b.p('userId', () => input.userId, '{userId}', false);
389
519
  let body;
390
520
  body = JSON.stringify(take(input, {
521
+ 'cannabis': [],
522
+ 'dealbreakers': _ => _json(_),
523
+ 'discoverable': [],
524
+ 'distanceUnit': [],
525
+ 'drinking': [],
526
+ 'drugs': [],
527
+ 'educationLevel': [],
528
+ 'exercise': [],
529
+ 'familyPlans': [],
391
530
  'genders': _ => _json(_),
531
+ 'incognito': [],
532
+ 'interestedInGenders': _ => _json(_),
533
+ 'interests': _ => _json(_),
392
534
  'maxAge': [],
393
535
  'maxDistanceKm': [],
536
+ 'maxHeight': [],
394
537
  'minAge': [],
538
+ 'minHeight': [],
539
+ 'notifyDailyPicks': [],
540
+ 'notifyLikes': [],
541
+ 'notifyMatches': [],
542
+ 'politicalView': [],
543
+ 'preferredLanguages': _ => _json(_),
544
+ 'relationshipType': [],
545
+ 'religion': [],
546
+ 'requireBio': [],
547
+ 'requirePhoto': [],
548
+ 'requireRecentlyActive': [],
549
+ 'smoking': [],
550
+ 'starSigns': _ => _json(_),
551
+ 'verifiedOnly': [],
552
+ 'wantsKids': [],
395
553
  }));
396
554
  b.m("PUT")
397
555
  .h(headers)
@@ -524,6 +682,7 @@ export const se_UpdateProfileCommand = async (input, context) => {
524
682
  'interests': _ => _json(_),
525
683
  'languages': _ => _json(_),
526
684
  'openers': _ => _json(_),
685
+ 'pictureTransforms': _ => _json(_),
527
686
  'pictures': _ => _json(_),
528
687
  'politicalView': [],
529
688
  'prompts': _ => _json(_),
@@ -610,6 +769,37 @@ export const se_UpgradeUserCommand = async (input, context) => {
610
769
  .b(body);
611
770
  return b.build();
612
771
  };
772
+ export const de_CreateMediaDownloadUrlCommand = async (output, context) => {
773
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
774
+ return de_CommandError(output, context);
775
+ }
776
+ const contents = map({
777
+ $metadata: deserializeMetadata(output),
778
+ });
779
+ const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
780
+ const doc = take(data, {
781
+ 'downloadUrl': __expectString,
782
+ 'expiresInSeconds': __expectInt32,
783
+ });
784
+ Object.assign(contents, doc);
785
+ return contents;
786
+ };
787
+ export const de_CreateMediaUploadUrlCommand = async (output, context) => {
788
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
789
+ return de_CommandError(output, context);
790
+ }
791
+ const contents = map({
792
+ $metadata: deserializeMetadata(output),
793
+ });
794
+ const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
795
+ const doc = take(data, {
796
+ 'expiresInSeconds': __expectInt32,
797
+ 'objectKey': __expectString,
798
+ 'uploadUrl': __expectString,
799
+ });
800
+ Object.assign(contents, doc);
801
+ return contents;
802
+ };
613
803
  export const de_DeleteMatchMessagesCommand = async (output, context) => {
614
804
  if (output.statusCode !== 200 && output.statusCode >= 300) {
615
805
  return de_CommandError(output, context);
@@ -624,6 +814,35 @@ export const de_DeleteMatchMessagesCommand = async (output, context) => {
624
814
  Object.assign(contents, doc);
625
815
  return contents;
626
816
  };
817
+ export const de_DeletePushTokenCommand = async (output, context) => {
818
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
819
+ return de_CommandError(output, context);
820
+ }
821
+ const contents = map({
822
+ $metadata: deserializeMetadata(output),
823
+ });
824
+ const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
825
+ const doc = take(data, {
826
+ 'deleted': __expectBoolean,
827
+ 'deviceId': __expectString,
828
+ });
829
+ Object.assign(contents, doc);
830
+ return contents;
831
+ };
832
+ export const de_GetChatSettingsCommand = async (output, context) => {
833
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
834
+ return de_CommandError(output, context);
835
+ }
836
+ const contents = map({
837
+ $metadata: deserializeMetadata(output),
838
+ });
839
+ const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
840
+ const doc = take(data, {
841
+ 'settings': _json,
842
+ });
843
+ Object.assign(contents, doc);
844
+ return contents;
845
+ };
627
846
  export const de_GetParticipantRegistryCommand = async (output, context) => {
628
847
  if (output.statusCode !== 200 && output.statusCode >= 300) {
629
848
  return de_CommandError(output, context);
@@ -671,6 +890,21 @@ export const de_RegisterDeviceCommand = async (output, context) => {
671
890
  Object.assign(contents, doc);
672
891
  return contents;
673
892
  };
893
+ export const de_RegisterPushTokenCommand = async (output, context) => {
894
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
895
+ return de_CommandError(output, context);
896
+ }
897
+ const contents = map({
898
+ $metadata: deserializeMetadata(output),
899
+ });
900
+ const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
901
+ const doc = take(data, {
902
+ 'deviceId': __expectString,
903
+ 'registered': __expectBoolean,
904
+ });
905
+ Object.assign(contents, doc);
906
+ return contents;
907
+ };
674
908
  export const de_RevokeDeviceCommand = async (output, context) => {
675
909
  if (output.statusCode !== 200 && output.statusCode >= 300) {
676
910
  return de_CommandError(output, context);
@@ -686,6 +920,20 @@ export const de_RevokeDeviceCommand = async (output, context) => {
686
920
  Object.assign(contents, doc);
687
921
  return contents;
688
922
  };
923
+ export const de_UpdateChatSettingsCommand = async (output, context) => {
924
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
925
+ return de_CommandError(output, context);
926
+ }
927
+ const contents = map({
928
+ $metadata: deserializeMetadata(output),
929
+ });
930
+ const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
931
+ const doc = take(data, {
932
+ 'settings': _json,
933
+ });
934
+ Object.assign(contents, doc);
935
+ return contents;
936
+ };
689
937
  export const de_AuthSocialCommand = async (output, context) => {
690
938
  if (output.statusCode !== 200 && output.statusCode >= 300) {
691
939
  return de_CommandError(output, context);
@@ -779,6 +1027,20 @@ export const de_GetUserByEmailCommand = async (output, context) => {
779
1027
  Object.assign(contents, doc);
780
1028
  return contents;
781
1029
  };
1030
+ export const de_GetUserIdByUsernameCommand = async (output, context) => {
1031
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1032
+ return de_CommandError(output, context);
1033
+ }
1034
+ const contents = map({
1035
+ $metadata: deserializeMetadata(output),
1036
+ });
1037
+ const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
1038
+ const doc = take(data, {
1039
+ 'userId': __expectString,
1040
+ });
1041
+ Object.assign(contents, doc);
1042
+ return contents;
1043
+ };
782
1044
  export const de_LinkEmailCommand = async (output, context) => {
783
1045
  if (output.statusCode !== 200 && output.statusCode >= 300) {
784
1046
  return de_CommandError(output, context);
@@ -956,6 +1218,23 @@ export const de_DiscoverCommand = async (output, context) => {
956
1218
  Object.assign(contents, doc);
957
1219
  return contents;
958
1220
  };
1221
+ export const de_GetNotificationPreferencesCommand = async (output, context) => {
1222
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1223
+ return de_CommandError(output, context);
1224
+ }
1225
+ const contents = map({
1226
+ $metadata: deserializeMetadata(output),
1227
+ });
1228
+ const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
1229
+ const doc = take(data, {
1230
+ 'notifyDailyPicks': __expectBoolean,
1231
+ 'notifyLikes': __expectBoolean,
1232
+ 'notifyMatches': __expectBoolean,
1233
+ 'userId': __expectString,
1234
+ });
1235
+ Object.assign(contents, doc);
1236
+ return contents;
1237
+ };
959
1238
  export const de_GetPreferencesCommand = async (output, context) => {
960
1239
  if (output.statusCode !== 200 && output.statusCode >= 300) {
961
1240
  return de_CommandError(output, context);
@@ -965,11 +1244,39 @@ export const de_GetPreferencesCommand = async (output, context) => {
965
1244
  });
966
1245
  const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
967
1246
  const doc = take(data, {
968
- 'genders': _json,
1247
+ 'cannabis': __expectString,
1248
+ 'dealbreakers': _json,
1249
+ 'discoverable': __expectBoolean,
1250
+ 'distanceUnit': __expectString,
1251
+ 'drinking': __expectString,
1252
+ 'drugs': __expectString,
1253
+ 'educationLevel': __expectString,
1254
+ 'exercise': __expectString,
1255
+ 'familyPlans': __expectString,
1256
+ 'incognito': __expectBoolean,
1257
+ 'interestedInGenders': _json,
1258
+ 'interests': _json,
969
1259
  'maxAge': __expectInt32,
970
1260
  'maxDistanceKm': __expectInt32,
1261
+ 'maxHeight': __expectInt32,
971
1262
  'minAge': __expectInt32,
1263
+ 'minHeight': __expectInt32,
1264
+ 'notifyDailyPicks': __expectBoolean,
1265
+ 'notifyLikes': __expectBoolean,
1266
+ 'notifyMatches': __expectBoolean,
1267
+ 'politicalView': __expectString,
1268
+ 'preferredLanguages': _json,
1269
+ 'recentlyActiveDays': __expectInt32,
1270
+ 'relationshipType': __expectString,
1271
+ 'religion': __expectString,
1272
+ 'requireBio': __expectBoolean,
1273
+ 'requirePhoto': __expectBoolean,
1274
+ 'requireRecentlyActive': __expectBoolean,
1275
+ 'smoking': __expectString,
1276
+ 'starSigns': _json,
972
1277
  'userId': __expectString,
1278
+ 'verifiedOnly': __expectBoolean,
1279
+ 'wantsKids': __expectString,
973
1280
  });
974
1281
  Object.assign(contents, doc);
975
1282
  return contents;
@@ -1018,6 +1325,20 @@ export const de_SwipeCommand = async (output, context) => {
1018
1325
  Object.assign(contents, doc);
1019
1326
  return contents;
1020
1327
  };
1328
+ export const de_SwipeByUsernameCommand = async (output, context) => {
1329
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1330
+ return de_CommandError(output, context);
1331
+ }
1332
+ const contents = map({
1333
+ $metadata: deserializeMetadata(output),
1334
+ });
1335
+ const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
1336
+ const doc = take(data, {
1337
+ 'status': __expectString,
1338
+ });
1339
+ Object.assign(contents, doc);
1340
+ return contents;
1341
+ };
1021
1342
  export const de_UpdatePreferencesCommand = async (output, context) => {
1022
1343
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1023
1344
  return de_CommandError(output, context);
@@ -1151,6 +1472,7 @@ export const de_GetMyProfileCommand = async (output, context) => {
1151
1472
  'languages': _json,
1152
1473
  'moderationStatus': __expectString,
1153
1474
  'openers': _json,
1475
+ 'pictureTransforms': _json,
1154
1476
  'pictures': _json,
1155
1477
  'politicalView': __expectString,
1156
1478
  'prompts': _json,
@@ -1202,6 +1524,7 @@ export const de_GetProfileCommand = async (output, context) => {
1202
1524
  'languages': _json,
1203
1525
  'moderationStatus': __expectString,
1204
1526
  'openers': _json,
1527
+ 'pictureTransforms': _json,
1205
1528
  'pictures': _json,
1206
1529
  'politicalView': __expectString,
1207
1530
  'prompts': _json,