onehook-api-client 1.0.15 → 1.0.17

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.
package/README.md CHANGED
@@ -197,6 +197,13 @@ see LICENSE for more information.
197
197
 
198
198
  ## Client Commands (Operations List)
199
199
 
200
+ <details>
201
+ <summary>
202
+ GetAiContextMatch
203
+ </summary>
204
+
205
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/onehook/command/GetAiContextMatchCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-onehook/Interface/GetAiContextMatchCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-onehook/Interface/GetAiContextMatchCommandOutput/)
206
+ </details>
200
207
  <details>
201
208
  <summary>
202
209
  CreateMediaDownloadUrl
@@ -416,6 +423,20 @@ GetPreferences
416
423
  </details>
417
424
  <details>
418
425
  <summary>
426
+ GetReceivedLikes
427
+ </summary>
428
+
429
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/onehook/command/GetReceivedLikesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-onehook/Interface/GetReceivedLikesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-onehook/Interface/GetReceivedLikesCommandOutput/)
430
+ </details>
431
+ <details>
432
+ <summary>
433
+ GetRoses
434
+ </summary>
435
+
436
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/onehook/command/GetRosesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-onehook/Interface/GetRosesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-onehook/Interface/GetRosesCommandOutput/)
437
+ </details>
438
+ <details>
439
+ <summary>
419
440
  IndexLocation
420
441
  </summary>
421
442
 
@@ -15,6 +15,7 @@ const DiscoverCommand_1 = require("./commands/DiscoverCommand");
15
15
  const GenerateDownloadUrlCommand_1 = require("./commands/GenerateDownloadUrlCommand");
16
16
  const GenerateInviteCommand_1 = require("./commands/GenerateInviteCommand");
17
17
  const GenerateUploadUrlCommand_1 = require("./commands/GenerateUploadUrlCommand");
18
+ const GetAiContextMatchCommand_1 = require("./commands/GetAiContextMatchCommand");
18
19
  const GetChatSettingsCommand_1 = require("./commands/GetChatSettingsCommand");
19
20
  const GetCredentialReadinessCommand_1 = require("./commands/GetCredentialReadinessCommand");
20
21
  const GetLivenessStatusCommand_1 = require("./commands/GetLivenessStatusCommand");
@@ -24,6 +25,8 @@ const GetNotificationPreferencesCommand_1 = require("./commands/GetNotificationP
24
25
  const GetParticipantRegistryCommand_1 = require("./commands/GetParticipantRegistryCommand");
25
26
  const GetPreferencesCommand_1 = require("./commands/GetPreferencesCommand");
26
27
  const GetProfileCommand_1 = require("./commands/GetProfileCommand");
28
+ const GetReceivedLikesCommand_1 = require("./commands/GetReceivedLikesCommand");
29
+ const GetRosesCommand_1 = require("./commands/GetRosesCommand");
27
30
  const GetStateCommand_1 = require("./commands/GetStateCommand");
28
31
  const GetUserByEmailCommand_1 = require("./commands/GetUserByEmailCommand");
29
32
  const GetUserCommand_1 = require("./commands/GetUserCommand");
@@ -55,6 +58,7 @@ const UpgradeUserCommand_1 = require("./commands/UpgradeUserCommand");
55
58
  const ValidateInviteCommand_1 = require("./commands/ValidateInviteCommand");
56
59
  const smithy_client_1 = require("@smithy/smithy-client");
57
60
  const commands = {
61
+ GetAiContextMatchCommand: GetAiContextMatchCommand_1.GetAiContextMatchCommand,
58
62
  CreateMediaDownloadUrlCommand: CreateMediaDownloadUrlCommand_1.CreateMediaDownloadUrlCommand,
59
63
  CreateMediaUploadUrlCommand: CreateMediaUploadUrlCommand_1.CreateMediaUploadUrlCommand,
60
64
  DeleteMatchMessagesCommand: DeleteMatchMessagesCommand_1.DeleteMatchMessagesCommand,
@@ -86,6 +90,8 @@ const commands = {
86
90
  DiscoverCommand: DiscoverCommand_1.DiscoverCommand,
87
91
  GetNotificationPreferencesCommand: GetNotificationPreferencesCommand_1.GetNotificationPreferencesCommand,
88
92
  GetPreferencesCommand: GetPreferencesCommand_1.GetPreferencesCommand,
93
+ GetReceivedLikesCommand: GetReceivedLikesCommand_1.GetReceivedLikesCommand,
94
+ GetRosesCommand: GetRosesCommand_1.GetRosesCommand,
89
95
  IndexLocationCommand: IndexLocationCommand_1.IndexLocationCommand,
90
96
  RemoveLocationCommand: RemoveLocationCommand_1.RemoveLocationCommand,
91
97
  SwipeCommand: SwipeCommand_1.SwipeCommand,
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetAiContextMatchCommand = exports.$Command = void 0;
4
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ class GetAiContextMatchCommand extends smithy_client_1.Command.classBuilder()
9
+ .m(function (Command, cs, config, o) {
10
+ return [
11
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
12
+ ];
13
+ })
14
+ .s("OneHookService", "GetAiContextMatch", {})
15
+ .n("OneHookClient", "GetAiContextMatchCommand")
16
+ .f(void 0, void 0)
17
+ .ser(Aws_restJson1_1.se_GetAiContextMatchCommand)
18
+ .de(Aws_restJson1_1.de_GetAiContextMatchCommand)
19
+ .build() {
20
+ }
21
+ exports.GetAiContextMatchCommand = GetAiContextMatchCommand;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetReceivedLikesCommand = exports.$Command = void 0;
4
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ class GetReceivedLikesCommand extends smithy_client_1.Command.classBuilder()
9
+ .m(function (Command, cs, config, o) {
10
+ return [
11
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
12
+ ];
13
+ })
14
+ .s("OneHookService", "GetReceivedLikes", {})
15
+ .n("OneHookClient", "GetReceivedLikesCommand")
16
+ .f(void 0, void 0)
17
+ .ser(Aws_restJson1_1.se_GetReceivedLikesCommand)
18
+ .de(Aws_restJson1_1.de_GetReceivedLikesCommand)
19
+ .build() {
20
+ }
21
+ exports.GetReceivedLikesCommand = GetReceivedLikesCommand;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetRosesCommand = exports.$Command = void 0;
4
+ const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ class GetRosesCommand extends smithy_client_1.Command.classBuilder()
9
+ .m(function (Command, cs, config, o) {
10
+ return [
11
+ (0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
12
+ ];
13
+ })
14
+ .s("OneHookService", "GetRoses", {})
15
+ .n("OneHookClient", "GetRosesCommand")
16
+ .f(void 0, void 0)
17
+ .ser(Aws_restJson1_1.se_GetRosesCommand)
18
+ .de(Aws_restJson1_1.de_GetRosesCommand)
19
+ .build() {
20
+ }
21
+ exports.GetRosesCommand = GetRosesCommand;
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./GetAiContextMatchCommand"), exports);
4
5
  tslib_1.__exportStar(require("./CreateMediaDownloadUrlCommand"), exports);
5
6
  tslib_1.__exportStar(require("./CreateMediaUploadUrlCommand"), exports);
6
7
  tslib_1.__exportStar(require("./DeleteMatchMessagesCommand"), exports);
@@ -32,6 +33,8 @@ tslib_1.__exportStar(require("./ValidateInviteCommand"), exports);
32
33
  tslib_1.__exportStar(require("./DiscoverCommand"), exports);
33
34
  tslib_1.__exportStar(require("./GetNotificationPreferencesCommand"), exports);
34
35
  tslib_1.__exportStar(require("./GetPreferencesCommand"), exports);
36
+ tslib_1.__exportStar(require("./GetReceivedLikesCommand"), exports);
37
+ tslib_1.__exportStar(require("./GetRosesCommand"), exports);
35
38
  tslib_1.__exportStar(require("./IndexLocationCommand"), exports);
36
39
  tslib_1.__exportStar(require("./RemoveLocationCommand"), exports);
37
40
  tslib_1.__exportStar(require("./SwipeCommand"), exports);
@@ -1,22 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CredentialGap = exports.DeviceLimitError = exports.Platform = exports.LastSeenVisibility = exports.MediaKind = exports.NotFoundError = exports.InternalServerError = exports.BadRequestError = exports.ForbiddenError = void 0;
3
+ exports.CredentialGap = exports.DeviceLimitError = exports.Platform = exports.LastSeenVisibility = exports.MediaKind = exports.ForbiddenError = exports.NotFoundError = exports.InternalServerError = exports.BadRequestError = void 0;
4
4
  const OneHookServiceException_1 = require("./OneHookServiceException");
5
- class ForbiddenError extends OneHookServiceException_1.OneHookServiceException {
6
- name = "ForbiddenError";
7
- $fault = "client";
8
- error;
9
- constructor(opts) {
10
- super({
11
- name: "ForbiddenError",
12
- $fault: "client",
13
- ...opts
14
- });
15
- Object.setPrototypeOf(this, ForbiddenError.prototype);
16
- this.error = opts.error;
17
- }
18
- }
19
- exports.ForbiddenError = ForbiddenError;
20
5
  class BadRequestError extends OneHookServiceException_1.OneHookServiceException {
21
6
  name = "BadRequestError";
22
7
  $fault = "client";
@@ -62,6 +47,21 @@ class NotFoundError extends OneHookServiceException_1.OneHookServiceException {
62
47
  }
63
48
  }
64
49
  exports.NotFoundError = NotFoundError;
50
+ class ForbiddenError extends OneHookServiceException_1.OneHookServiceException {
51
+ name = "ForbiddenError";
52
+ $fault = "client";
53
+ error;
54
+ constructor(opts) {
55
+ super({
56
+ name: "ForbiddenError",
57
+ $fault: "client",
58
+ ...opts
59
+ });
60
+ Object.setPrototypeOf(this, ForbiddenError.prototype);
61
+ this.error = opts.error;
62
+ }
63
+ }
64
+ exports.ForbiddenError = ForbiddenError;
65
65
  exports.MediaKind = {
66
66
  AUDIO: "AUDIO",
67
67
  FILE: "FILE",
@@ -1,13 +1,27 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.se_UnhookCommand = exports.se_InitUserCommand = exports.se_GetStateCommand = exports.se_GetMatchCommand = exports.se_CompleteOnboardingCommand = exports.se_UpdateProfileCommand = exports.se_GetProfileCommand = exports.se_GetMyProfileCommand = exports.se_GetLivenessStatusCommand = exports.se_GenerateUploadUrlCommand = exports.se_GenerateDownloadUrlCommand = exports.se_DeleteProfileCommand = exports.se_CreateLivenessSessionCommand = exports.se_CompleteLivenessSessionCommand = exports.se_UpdatePreferencesCommand = exports.se_SwipeByUsernameCommand = exports.se_SwipeCommand = exports.se_RemoveLocationCommand = exports.se_IndexLocationCommand = exports.se_GetPreferencesCommand = exports.se_GetNotificationPreferencesCommand = exports.se_DiscoverCommand = exports.se_ValidateInviteCommand = exports.se_UpdateUsernameCommand = exports.se_UpdatePhoneNumberCommand = exports.se_UpdateEntitlementsCommand = exports.se_UnlinkSocialCommand = exports.se_RequestPhoneUpdateOtpCommand = exports.se_RequestPhoneOtpCommand = exports.se_RequestEmailOtpCommand = exports.se_RegisterPhoneCommand = exports.se_LinkSocialCommand = exports.se_LinkEmailCommand = exports.se_GetUserIdByUsernameCommand = exports.se_GetUserByEmailCommand = exports.se_GetUserCommand = exports.se_GetCredentialReadinessCommand = exports.se_GenerateInviteCommand = exports.se_AuthSocialCommand = exports.se_UpdateChatSettingsCommand = exports.se_RevokeDeviceCommand = exports.se_RegisterPushTokenCommand = exports.se_RegisterDeviceCommand = exports.se_ListMyDevicesCommand = exports.se_GetParticipantRegistryCommand = exports.se_GetChatSettingsCommand = exports.se_DeletePushTokenCommand = exports.se_DeleteMatchMessagesCommand = exports.se_CreateMediaUploadUrlCommand = exports.se_CreateMediaDownloadUrlCommand = void 0;
4
- exports.de_InitUserCommand = exports.de_GetStateCommand = exports.de_GetMatchCommand = exports.de_CompleteOnboardingCommand = exports.de_UpdateProfileCommand = exports.de_GetProfileCommand = exports.de_GetMyProfileCommand = exports.de_GetLivenessStatusCommand = exports.de_GenerateUploadUrlCommand = exports.de_GenerateDownloadUrlCommand = exports.de_DeleteProfileCommand = exports.de_CreateLivenessSessionCommand = exports.de_CompleteLivenessSessionCommand = exports.de_UpdatePreferencesCommand = exports.de_SwipeByUsernameCommand = exports.de_SwipeCommand = exports.de_RemoveLocationCommand = exports.de_IndexLocationCommand = exports.de_GetPreferencesCommand = exports.de_GetNotificationPreferencesCommand = exports.de_DiscoverCommand = exports.de_ValidateInviteCommand = exports.de_UpdateUsernameCommand = exports.de_UpdatePhoneNumberCommand = exports.de_UpdateEntitlementsCommand = exports.de_UnlinkSocialCommand = exports.de_RequestPhoneUpdateOtpCommand = exports.de_RequestPhoneOtpCommand = exports.de_RequestEmailOtpCommand = exports.de_RegisterPhoneCommand = exports.de_LinkSocialCommand = exports.de_LinkEmailCommand = exports.de_GetUserIdByUsernameCommand = exports.de_GetUserByEmailCommand = exports.de_GetUserCommand = exports.de_GetCredentialReadinessCommand = exports.de_GenerateInviteCommand = exports.de_AuthSocialCommand = exports.de_UpdateChatSettingsCommand = exports.de_RevokeDeviceCommand = exports.de_RegisterPushTokenCommand = exports.de_RegisterDeviceCommand = exports.de_ListMyDevicesCommand = exports.de_GetParticipantRegistryCommand = exports.de_GetChatSettingsCommand = exports.de_DeletePushTokenCommand = exports.de_DeleteMatchMessagesCommand = exports.de_CreateMediaUploadUrlCommand = exports.de_CreateMediaDownloadUrlCommand = exports.se_UpgradeUserCommand = void 0;
5
- exports.de_UpgradeUserCommand = exports.de_UnhookCommand = void 0;
3
+ exports.se_GetMatchCommand = exports.se_CompleteOnboardingCommand = exports.se_UpdateProfileCommand = exports.se_GetProfileCommand = exports.se_GetMyProfileCommand = exports.se_GetLivenessStatusCommand = exports.se_GenerateUploadUrlCommand = exports.se_GenerateDownloadUrlCommand = exports.se_DeleteProfileCommand = exports.se_CreateLivenessSessionCommand = exports.se_CompleteLivenessSessionCommand = exports.se_UpdatePreferencesCommand = exports.se_SwipeByUsernameCommand = exports.se_SwipeCommand = exports.se_RemoveLocationCommand = exports.se_IndexLocationCommand = exports.se_GetRosesCommand = exports.se_GetReceivedLikesCommand = exports.se_GetPreferencesCommand = exports.se_GetNotificationPreferencesCommand = exports.se_DiscoverCommand = exports.se_ValidateInviteCommand = exports.se_UpdateUsernameCommand = exports.se_UpdatePhoneNumberCommand = exports.se_UpdateEntitlementsCommand = exports.se_UnlinkSocialCommand = exports.se_RequestPhoneUpdateOtpCommand = exports.se_RequestPhoneOtpCommand = exports.se_RequestEmailOtpCommand = exports.se_RegisterPhoneCommand = exports.se_LinkSocialCommand = exports.se_LinkEmailCommand = exports.se_GetUserIdByUsernameCommand = exports.se_GetUserByEmailCommand = exports.se_GetUserCommand = exports.se_GetCredentialReadinessCommand = exports.se_GenerateInviteCommand = exports.se_AuthSocialCommand = exports.se_UpdateChatSettingsCommand = exports.se_RevokeDeviceCommand = exports.se_RegisterPushTokenCommand = exports.se_RegisterDeviceCommand = exports.se_ListMyDevicesCommand = exports.se_GetParticipantRegistryCommand = exports.se_GetChatSettingsCommand = exports.se_DeletePushTokenCommand = exports.se_DeleteMatchMessagesCommand = exports.se_CreateMediaUploadUrlCommand = exports.se_CreateMediaDownloadUrlCommand = exports.se_GetAiContextMatchCommand = void 0;
4
+ exports.de_GetMyProfileCommand = exports.de_GetLivenessStatusCommand = exports.de_GenerateUploadUrlCommand = exports.de_GenerateDownloadUrlCommand = exports.de_DeleteProfileCommand = exports.de_CreateLivenessSessionCommand = exports.de_CompleteLivenessSessionCommand = exports.de_UpdatePreferencesCommand = exports.de_SwipeByUsernameCommand = exports.de_SwipeCommand = exports.de_RemoveLocationCommand = exports.de_IndexLocationCommand = exports.de_GetRosesCommand = exports.de_GetReceivedLikesCommand = exports.de_GetPreferencesCommand = exports.de_GetNotificationPreferencesCommand = exports.de_DiscoverCommand = exports.de_ValidateInviteCommand = exports.de_UpdateUsernameCommand = exports.de_UpdatePhoneNumberCommand = exports.de_UpdateEntitlementsCommand = exports.de_UnlinkSocialCommand = exports.de_RequestPhoneUpdateOtpCommand = exports.de_RequestPhoneOtpCommand = exports.de_RequestEmailOtpCommand = exports.de_RegisterPhoneCommand = exports.de_LinkSocialCommand = exports.de_LinkEmailCommand = exports.de_GetUserIdByUsernameCommand = exports.de_GetUserByEmailCommand = exports.de_GetUserCommand = exports.de_GetCredentialReadinessCommand = exports.de_GenerateInviteCommand = exports.de_AuthSocialCommand = exports.de_UpdateChatSettingsCommand = exports.de_RevokeDeviceCommand = exports.de_RegisterPushTokenCommand = exports.de_RegisterDeviceCommand = exports.de_ListMyDevicesCommand = exports.de_GetParticipantRegistryCommand = exports.de_GetChatSettingsCommand = exports.de_DeletePushTokenCommand = exports.de_DeleteMatchMessagesCommand = exports.de_CreateMediaUploadUrlCommand = exports.de_CreateMediaDownloadUrlCommand = exports.de_GetAiContextMatchCommand = exports.se_UpgradeUserCommand = exports.se_UnhookCommand = exports.se_InitUserCommand = exports.se_GetStateCommand = void 0;
5
+ exports.de_UpgradeUserCommand = exports.de_UnhookCommand = exports.de_InitUserCommand = exports.de_GetStateCommand = exports.de_GetMatchCommand = exports.de_CompleteOnboardingCommand = exports.de_UpdateProfileCommand = exports.de_GetProfileCommand = void 0;
6
6
  const OneHookServiceException_1 = require("../models/OneHookServiceException");
7
7
  const models_0_1 = require("../models/models_0");
8
8
  const core_1 = require("@aws-sdk/core");
9
9
  const core_2 = require("@smithy/core");
10
10
  const smithy_client_1 = require("@smithy/smithy-client");
11
+ const se_GetAiContextMatchCommand = async (input, context) => {
12
+ const b = (0, core_2.requestBuilder)(input, context);
13
+ const headers = (0, smithy_client_1.map)({}, smithy_client_1.isSerializableHeaderValue, {
14
+ [_xoui]: input[_rUI],
15
+ });
16
+ b.bp("/api/ai-context/matches/{matchId}");
17
+ b.p('matchId', () => input.matchId, '{matchId}', false);
18
+ let body;
19
+ b.m("GET")
20
+ .h(headers)
21
+ .b(body);
22
+ return b.build();
23
+ };
24
+ exports.se_GetAiContextMatchCommand = se_GetAiContextMatchCommand;
11
25
  const se_CreateMediaDownloadUrlCommand = async (input, context) => {
12
26
  const b = (0, core_2.requestBuilder)(input, context);
13
27
  const headers = {
@@ -481,6 +495,28 @@ const se_GetPreferencesCommand = async (input, context) => {
481
495
  return b.build();
482
496
  };
483
497
  exports.se_GetPreferencesCommand = se_GetPreferencesCommand;
498
+ const se_GetReceivedLikesCommand = async (input, context) => {
499
+ const b = (0, core_2.requestBuilder)(input, context);
500
+ const headers = {};
501
+ b.bp("/matching/likes");
502
+ let body;
503
+ b.m("GET")
504
+ .h(headers)
505
+ .b(body);
506
+ return b.build();
507
+ };
508
+ exports.se_GetReceivedLikesCommand = se_GetReceivedLikesCommand;
509
+ const se_GetRosesCommand = async (input, context) => {
510
+ const b = (0, core_2.requestBuilder)(input, context);
511
+ const headers = {};
512
+ b.bp("/matching/roses");
513
+ let body;
514
+ b.m("GET")
515
+ .h(headers)
516
+ .b(body);
517
+ return b.build();
518
+ };
519
+ exports.se_GetRosesCommand = se_GetRosesCommand;
484
520
  const se_IndexLocationCommand = async (input, context) => {
485
521
  const b = (0, core_2.requestBuilder)(input, context);
486
522
  const headers = {
@@ -523,7 +559,11 @@ const se_SwipeCommand = async (input, context) => {
523
559
  b.bp("/matching/swipe");
524
560
  let body;
525
561
  body = JSON.stringify((0, smithy_client_1.take)(input, {
562
+ 'comment': [],
526
563
  'direction': [],
564
+ 'likeKind': [],
565
+ 'likeTargetRef': [],
566
+ 'likeTargetType': [],
527
567
  'targetId': [],
528
568
  'viewedSection': [],
529
569
  }));
@@ -825,6 +865,25 @@ const se_UpgradeUserCommand = async (input, context) => {
825
865
  return b.build();
826
866
  };
827
867
  exports.se_UpgradeUserCommand = se_UpgradeUserCommand;
868
+ const de_GetAiContextMatchCommand = async (output, context) => {
869
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
870
+ return de_CommandError(output, context);
871
+ }
872
+ const contents = (0, smithy_client_1.map)({
873
+ $metadata: deserializeMetadata(output),
874
+ });
875
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
876
+ const doc = (0, smithy_client_1.take)(data, {
877
+ 'contextPolicy': smithy_client_1._json,
878
+ 'matchId': smithy_client_1.expectString,
879
+ 'matchedUser': smithy_client_1._json,
880
+ 'requestingUser': smithy_client_1._json,
881
+ 'status': smithy_client_1.expectString,
882
+ });
883
+ Object.assign(contents, doc);
884
+ return contents;
885
+ };
886
+ exports.de_GetAiContextMatchCommand = de_GetAiContextMatchCommand;
828
887
  const de_CreateMediaDownloadUrlCommand = async (output, context) => {
829
888
  if (output.statusCode !== 200 && output.statusCode >= 300) {
830
889
  return de_CommandError(output, context);
@@ -1368,6 +1427,39 @@ const de_GetPreferencesCommand = async (output, context) => {
1368
1427
  return contents;
1369
1428
  };
1370
1429
  exports.de_GetPreferencesCommand = de_GetPreferencesCommand;
1430
+ const de_GetReceivedLikesCommand = async (output, context) => {
1431
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1432
+ return de_CommandError(output, context);
1433
+ }
1434
+ const contents = (0, smithy_client_1.map)({
1435
+ $metadata: deserializeMetadata(output),
1436
+ });
1437
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1438
+ const doc = (0, smithy_client_1.take)(data, {
1439
+ 'count': smithy_client_1.expectInt32,
1440
+ 'likes': smithy_client_1._json,
1441
+ });
1442
+ Object.assign(contents, doc);
1443
+ return contents;
1444
+ };
1445
+ exports.de_GetReceivedLikesCommand = de_GetReceivedLikesCommand;
1446
+ const de_GetRosesCommand = async (output, context) => {
1447
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1448
+ return de_CommandError(output, context);
1449
+ }
1450
+ const contents = (0, smithy_client_1.map)({
1451
+ $metadata: deserializeMetadata(output),
1452
+ });
1453
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1454
+ const doc = (0, smithy_client_1.take)(data, {
1455
+ 'limit': smithy_client_1.expectInt32,
1456
+ 'remaining': smithy_client_1.expectInt32,
1457
+ 'resetsAt': smithy_client_1.expectString,
1458
+ });
1459
+ Object.assign(contents, doc);
1460
+ return contents;
1461
+ };
1462
+ exports.de_GetRosesCommand = de_GetRosesCommand;
1371
1463
  const de_IndexLocationCommand = async (output, context) => {
1372
1464
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1373
1465
  return de_CommandError(output, context);
@@ -1777,15 +1869,15 @@ const de_CommandError = async (output, context) => {
1777
1869
  case "BadRequestError":
1778
1870
  case "club.onehook.identity#BadRequestError":
1779
1871
  throw await de_BadRequestErrorRes(parsedOutput, context);
1780
- case "ForbiddenError":
1781
- case "club.onehook.chat#ForbiddenError":
1782
- throw await de_ForbiddenErrorRes(parsedOutput, context);
1783
1872
  case "InternalServerError":
1784
1873
  case "club.onehook.identity#InternalServerError":
1785
1874
  throw await de_InternalServerErrorRes(parsedOutput, context);
1786
1875
  case "NotFoundError":
1787
1876
  case "club.onehook.identity#NotFoundError":
1788
1877
  throw await de_NotFoundErrorRes(parsedOutput, context);
1878
+ case "ForbiddenError":
1879
+ case "club.onehook.chat#ForbiddenError":
1880
+ throw await de_ForbiddenErrorRes(parsedOutput, context);
1789
1881
  case "DeviceLimitError":
1790
1882
  case "club.onehook.chat#DeviceLimitError":
1791
1883
  throw await de_DeviceLimitErrorRes(parsedOutput, context);
@@ -1888,3 +1980,5 @@ const _k = "key";
1888
1980
  const _l = "lat";
1889
1981
  const _lo = "lon";
1890
1982
  const _mI = "matchId";
1983
+ const _rUI = "requestingUserId";
1984
+ const _xoui = "x-onehook-user-id";
@@ -12,6 +12,7 @@ import { DiscoverCommand, } from "./commands/DiscoverCommand";
12
12
  import { GenerateDownloadUrlCommand, } from "./commands/GenerateDownloadUrlCommand";
13
13
  import { GenerateInviteCommand, } from "./commands/GenerateInviteCommand";
14
14
  import { GenerateUploadUrlCommand, } from "./commands/GenerateUploadUrlCommand";
15
+ import { GetAiContextMatchCommand, } from "./commands/GetAiContextMatchCommand";
15
16
  import { GetChatSettingsCommand, } from "./commands/GetChatSettingsCommand";
16
17
  import { GetCredentialReadinessCommand, } from "./commands/GetCredentialReadinessCommand";
17
18
  import { GetLivenessStatusCommand, } from "./commands/GetLivenessStatusCommand";
@@ -21,6 +22,8 @@ import { GetNotificationPreferencesCommand, } from "./commands/GetNotificationPr
21
22
  import { GetParticipantRegistryCommand, } from "./commands/GetParticipantRegistryCommand";
22
23
  import { GetPreferencesCommand, } from "./commands/GetPreferencesCommand";
23
24
  import { GetProfileCommand, } from "./commands/GetProfileCommand";
25
+ import { GetReceivedLikesCommand, } from "./commands/GetReceivedLikesCommand";
26
+ import { GetRosesCommand, } from "./commands/GetRosesCommand";
24
27
  import { GetStateCommand, } from "./commands/GetStateCommand";
25
28
  import { GetUserByEmailCommand, } from "./commands/GetUserByEmailCommand";
26
29
  import { GetUserCommand, } from "./commands/GetUserCommand";
@@ -52,6 +55,7 @@ import { UpgradeUserCommand, } from "./commands/UpgradeUserCommand";
52
55
  import { ValidateInviteCommand, } from "./commands/ValidateInviteCommand";
53
56
  import { createAggregatedClient } from "@smithy/smithy-client";
54
57
  const commands = {
58
+ GetAiContextMatchCommand,
55
59
  CreateMediaDownloadUrlCommand,
56
60
  CreateMediaUploadUrlCommand,
57
61
  DeleteMatchMessagesCommand,
@@ -83,6 +87,8 @@ const commands = {
83
87
  DiscoverCommand,
84
88
  GetNotificationPreferencesCommand,
85
89
  GetPreferencesCommand,
90
+ GetReceivedLikesCommand,
91
+ GetRosesCommand,
86
92
  IndexLocationCommand,
87
93
  RemoveLocationCommand,
88
94
  SwipeCommand,
@@ -0,0 +1,17 @@
1
+ import { de_GetAiContextMatchCommand, se_GetAiContextMatchCommand, } 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 GetAiContextMatchCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("OneHookService", "GetAiContextMatch", {})
12
+ .n("OneHookClient", "GetAiContextMatchCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_GetAiContextMatchCommand)
15
+ .de(de_GetAiContextMatchCommand)
16
+ .build() {
17
+ }
@@ -0,0 +1,17 @@
1
+ import { de_GetReceivedLikesCommand, se_GetReceivedLikesCommand, } 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 GetReceivedLikesCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("OneHookService", "GetReceivedLikes", {})
12
+ .n("OneHookClient", "GetReceivedLikesCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_GetReceivedLikesCommand)
15
+ .de(de_GetReceivedLikesCommand)
16
+ .build() {
17
+ }
@@ -0,0 +1,17 @@
1
+ import { de_GetRosesCommand, se_GetRosesCommand, } 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 GetRosesCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("OneHookService", "GetRoses", {})
12
+ .n("OneHookClient", "GetRosesCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_GetRosesCommand)
15
+ .de(de_GetRosesCommand)
16
+ .build() {
17
+ }
@@ -1,3 +1,4 @@
1
+ export * from "./GetAiContextMatchCommand";
1
2
  export * from "./CreateMediaDownloadUrlCommand";
2
3
  export * from "./CreateMediaUploadUrlCommand";
3
4
  export * from "./DeleteMatchMessagesCommand";
@@ -29,6 +30,8 @@ export * from "./ValidateInviteCommand";
29
30
  export * from "./DiscoverCommand";
30
31
  export * from "./GetNotificationPreferencesCommand";
31
32
  export * from "./GetPreferencesCommand";
33
+ export * from "./GetReceivedLikesCommand";
34
+ export * from "./GetRosesCommand";
32
35
  export * from "./IndexLocationCommand";
33
36
  export * from "./RemoveLocationCommand";
34
37
  export * from "./SwipeCommand";
@@ -1,18 +1,4 @@
1
1
  import { OneHookServiceException as __BaseException } from "./OneHookServiceException";
2
- export class ForbiddenError extends __BaseException {
3
- name = "ForbiddenError";
4
- $fault = "client";
5
- error;
6
- constructor(opts) {
7
- super({
8
- name: "ForbiddenError",
9
- $fault: "client",
10
- ...opts
11
- });
12
- Object.setPrototypeOf(this, ForbiddenError.prototype);
13
- this.error = opts.error;
14
- }
15
- }
16
2
  export class BadRequestError extends __BaseException {
17
3
  name = "BadRequestError";
18
4
  $fault = "client";
@@ -55,6 +41,20 @@ export class NotFoundError extends __BaseException {
55
41
  this.error = opts.error;
56
42
  }
57
43
  }
44
+ export class ForbiddenError extends __BaseException {
45
+ name = "ForbiddenError";
46
+ $fault = "client";
47
+ error;
48
+ constructor(opts) {
49
+ super({
50
+ name: "ForbiddenError",
51
+ $fault: "client",
52
+ ...opts
53
+ });
54
+ Object.setPrototypeOf(this, ForbiddenError.prototype);
55
+ this.error = opts.error;
56
+ }
57
+ }
58
58
  export const MediaKind = {
59
59
  AUDIO: "AUDIO",
60
60
  FILE: "FILE",