onehook-api-client 1.0.15 → 1.0.16

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
@@ -416,6 +416,20 @@ GetPreferences
416
416
  </details>
417
417
  <details>
418
418
  <summary>
419
+ GetReceivedLikes
420
+ </summary>
421
+
422
+ [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/)
423
+ </details>
424
+ <details>
425
+ <summary>
426
+ GetRoses
427
+ </summary>
428
+
429
+ [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/)
430
+ </details>
431
+ <details>
432
+ <summary>
419
433
  IndexLocation
420
434
  </summary>
421
435
 
@@ -24,6 +24,8 @@ const GetNotificationPreferencesCommand_1 = require("./commands/GetNotificationP
24
24
  const GetParticipantRegistryCommand_1 = require("./commands/GetParticipantRegistryCommand");
25
25
  const GetPreferencesCommand_1 = require("./commands/GetPreferencesCommand");
26
26
  const GetProfileCommand_1 = require("./commands/GetProfileCommand");
27
+ const GetReceivedLikesCommand_1 = require("./commands/GetReceivedLikesCommand");
28
+ const GetRosesCommand_1 = require("./commands/GetRosesCommand");
27
29
  const GetStateCommand_1 = require("./commands/GetStateCommand");
28
30
  const GetUserByEmailCommand_1 = require("./commands/GetUserByEmailCommand");
29
31
  const GetUserCommand_1 = require("./commands/GetUserCommand");
@@ -86,6 +88,8 @@ const commands = {
86
88
  DiscoverCommand: DiscoverCommand_1.DiscoverCommand,
87
89
  GetNotificationPreferencesCommand: GetNotificationPreferencesCommand_1.GetNotificationPreferencesCommand,
88
90
  GetPreferencesCommand: GetPreferencesCommand_1.GetPreferencesCommand,
91
+ GetReceivedLikesCommand: GetReceivedLikesCommand_1.GetReceivedLikesCommand,
92
+ GetRosesCommand: GetRosesCommand_1.GetRosesCommand,
89
93
  IndexLocationCommand: IndexLocationCommand_1.IndexLocationCommand,
90
94
  RemoveLocationCommand: RemoveLocationCommand_1.RemoveLocationCommand,
91
95
  SwipeCommand: SwipeCommand_1.SwipeCommand,
@@ -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;
@@ -32,6 +32,8 @@ tslib_1.__exportStar(require("./ValidateInviteCommand"), exports);
32
32
  tslib_1.__exportStar(require("./DiscoverCommand"), exports);
33
33
  tslib_1.__exportStar(require("./GetNotificationPreferencesCommand"), exports);
34
34
  tslib_1.__exportStar(require("./GetPreferencesCommand"), exports);
35
+ tslib_1.__exportStar(require("./GetReceivedLikesCommand"), exports);
36
+ tslib_1.__exportStar(require("./GetRosesCommand"), exports);
35
37
  tslib_1.__exportStar(require("./IndexLocationCommand"), exports);
36
38
  tslib_1.__exportStar(require("./RemoveLocationCommand"), exports);
37
39
  tslib_1.__exportStar(require("./SwipeCommand"), exports);
@@ -1,8 +1,8 @@
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_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_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 = void 0;
4
+ 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_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.se_UpgradeUserCommand = exports.se_UnhookCommand = exports.se_InitUserCommand = void 0;
5
+ exports.de_UpgradeUserCommand = exports.de_UnhookCommand = exports.de_InitUserCommand = exports.de_GetStateCommand = exports.de_GetMatchCommand = exports.de_CompleteOnboardingCommand = 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");
@@ -481,6 +481,28 @@ const se_GetPreferencesCommand = async (input, context) => {
481
481
  return b.build();
482
482
  };
483
483
  exports.se_GetPreferencesCommand = se_GetPreferencesCommand;
484
+ const se_GetReceivedLikesCommand = async (input, context) => {
485
+ const b = (0, core_2.requestBuilder)(input, context);
486
+ const headers = {};
487
+ b.bp("/matching/likes");
488
+ let body;
489
+ b.m("GET")
490
+ .h(headers)
491
+ .b(body);
492
+ return b.build();
493
+ };
494
+ exports.se_GetReceivedLikesCommand = se_GetReceivedLikesCommand;
495
+ const se_GetRosesCommand = async (input, context) => {
496
+ const b = (0, core_2.requestBuilder)(input, context);
497
+ const headers = {};
498
+ b.bp("/matching/roses");
499
+ let body;
500
+ b.m("GET")
501
+ .h(headers)
502
+ .b(body);
503
+ return b.build();
504
+ };
505
+ exports.se_GetRosesCommand = se_GetRosesCommand;
484
506
  const se_IndexLocationCommand = async (input, context) => {
485
507
  const b = (0, core_2.requestBuilder)(input, context);
486
508
  const headers = {
@@ -523,7 +545,11 @@ const se_SwipeCommand = async (input, context) => {
523
545
  b.bp("/matching/swipe");
524
546
  let body;
525
547
  body = JSON.stringify((0, smithy_client_1.take)(input, {
548
+ 'comment': [],
526
549
  'direction': [],
550
+ 'likeKind': [],
551
+ 'likeTargetRef': [],
552
+ 'likeTargetType': [],
527
553
  'targetId': [],
528
554
  'viewedSection': [],
529
555
  }));
@@ -1368,6 +1394,39 @@ const de_GetPreferencesCommand = async (output, context) => {
1368
1394
  return contents;
1369
1395
  };
1370
1396
  exports.de_GetPreferencesCommand = de_GetPreferencesCommand;
1397
+ const de_GetReceivedLikesCommand = async (output, context) => {
1398
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1399
+ return de_CommandError(output, context);
1400
+ }
1401
+ const contents = (0, smithy_client_1.map)({
1402
+ $metadata: deserializeMetadata(output),
1403
+ });
1404
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1405
+ const doc = (0, smithy_client_1.take)(data, {
1406
+ 'count': smithy_client_1.expectInt32,
1407
+ 'likes': smithy_client_1._json,
1408
+ });
1409
+ Object.assign(contents, doc);
1410
+ return contents;
1411
+ };
1412
+ exports.de_GetReceivedLikesCommand = de_GetReceivedLikesCommand;
1413
+ const de_GetRosesCommand = async (output, context) => {
1414
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1415
+ return de_CommandError(output, context);
1416
+ }
1417
+ const contents = (0, smithy_client_1.map)({
1418
+ $metadata: deserializeMetadata(output),
1419
+ });
1420
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1421
+ const doc = (0, smithy_client_1.take)(data, {
1422
+ 'limit': smithy_client_1.expectInt32,
1423
+ 'remaining': smithy_client_1.expectInt32,
1424
+ 'resetsAt': smithy_client_1.expectString,
1425
+ });
1426
+ Object.assign(contents, doc);
1427
+ return contents;
1428
+ };
1429
+ exports.de_GetRosesCommand = de_GetRosesCommand;
1371
1430
  const de_IndexLocationCommand = async (output, context) => {
1372
1431
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1373
1432
  return de_CommandError(output, context);
@@ -21,6 +21,8 @@ import { GetNotificationPreferencesCommand, } from "./commands/GetNotificationPr
21
21
  import { GetParticipantRegistryCommand, } from "./commands/GetParticipantRegistryCommand";
22
22
  import { GetPreferencesCommand, } from "./commands/GetPreferencesCommand";
23
23
  import { GetProfileCommand, } from "./commands/GetProfileCommand";
24
+ import { GetReceivedLikesCommand, } from "./commands/GetReceivedLikesCommand";
25
+ import { GetRosesCommand, } from "./commands/GetRosesCommand";
24
26
  import { GetStateCommand, } from "./commands/GetStateCommand";
25
27
  import { GetUserByEmailCommand, } from "./commands/GetUserByEmailCommand";
26
28
  import { GetUserCommand, } from "./commands/GetUserCommand";
@@ -83,6 +85,8 @@ const commands = {
83
85
  DiscoverCommand,
84
86
  GetNotificationPreferencesCommand,
85
87
  GetPreferencesCommand,
88
+ GetReceivedLikesCommand,
89
+ GetRosesCommand,
86
90
  IndexLocationCommand,
87
91
  RemoveLocationCommand,
88
92
  SwipeCommand,
@@ -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
+ }
@@ -29,6 +29,8 @@ export * from "./ValidateInviteCommand";
29
29
  export * from "./DiscoverCommand";
30
30
  export * from "./GetNotificationPreferencesCommand";
31
31
  export * from "./GetPreferencesCommand";
32
+ export * from "./GetReceivedLikesCommand";
33
+ export * from "./GetRosesCommand";
32
34
  export * from "./IndexLocationCommand";
33
35
  export * from "./RemoveLocationCommand";
34
36
  export * from "./SwipeCommand";
@@ -445,6 +445,26 @@ export const se_GetPreferencesCommand = async (input, context) => {
445
445
  .b(body);
446
446
  return b.build();
447
447
  };
448
+ export const se_GetReceivedLikesCommand = async (input, context) => {
449
+ const b = rb(input, context);
450
+ const headers = {};
451
+ b.bp("/matching/likes");
452
+ let body;
453
+ b.m("GET")
454
+ .h(headers)
455
+ .b(body);
456
+ return b.build();
457
+ };
458
+ export const se_GetRosesCommand = async (input, context) => {
459
+ const b = rb(input, context);
460
+ const headers = {};
461
+ b.bp("/matching/roses");
462
+ let body;
463
+ b.m("GET")
464
+ .h(headers)
465
+ .b(body);
466
+ return b.build();
467
+ };
448
468
  export const se_IndexLocationCommand = async (input, context) => {
449
469
  const b = rb(input, context);
450
470
  const headers = {
@@ -485,7 +505,11 @@ export const se_SwipeCommand = async (input, context) => {
485
505
  b.bp("/matching/swipe");
486
506
  let body;
487
507
  body = JSON.stringify(take(input, {
508
+ 'comment': [],
488
509
  'direction': [],
510
+ 'likeKind': [],
511
+ 'likeTargetRef': [],
512
+ 'likeTargetType': [],
489
513
  'targetId': [],
490
514
  'viewedSection': [],
491
515
  }));
@@ -1281,6 +1305,37 @@ export const de_GetPreferencesCommand = async (output, context) => {
1281
1305
  Object.assign(contents, doc);
1282
1306
  return contents;
1283
1307
  };
1308
+ export const de_GetReceivedLikesCommand = async (output, context) => {
1309
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1310
+ return de_CommandError(output, context);
1311
+ }
1312
+ const contents = map({
1313
+ $metadata: deserializeMetadata(output),
1314
+ });
1315
+ const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
1316
+ const doc = take(data, {
1317
+ 'count': __expectInt32,
1318
+ 'likes': _json,
1319
+ });
1320
+ Object.assign(contents, doc);
1321
+ return contents;
1322
+ };
1323
+ export const de_GetRosesCommand = async (output, context) => {
1324
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1325
+ return de_CommandError(output, context);
1326
+ }
1327
+ const contents = map({
1328
+ $metadata: deserializeMetadata(output),
1329
+ });
1330
+ const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
1331
+ const doc = take(data, {
1332
+ 'limit': __expectInt32,
1333
+ 'remaining': __expectInt32,
1334
+ 'resetsAt': __expectString,
1335
+ });
1336
+ Object.assign(contents, doc);
1337
+ return contents;
1338
+ };
1284
1339
  export const de_IndexLocationCommand = async (output, context) => {
1285
1340
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1286
1341
  return de_CommandError(output, context);
@@ -21,6 +21,8 @@ import { GetNotificationPreferencesCommandInput, GetNotificationPreferencesComma
21
21
  import { GetParticipantRegistryCommandInput, GetParticipantRegistryCommandOutput } from "./commands/GetParticipantRegistryCommand";
22
22
  import { GetPreferencesCommandInput, GetPreferencesCommandOutput } from "./commands/GetPreferencesCommand";
23
23
  import { GetProfileCommandInput, GetProfileCommandOutput } from "./commands/GetProfileCommand";
24
+ import { GetReceivedLikesCommandInput, GetReceivedLikesCommandOutput } from "./commands/GetReceivedLikesCommand";
25
+ import { GetRosesCommandInput, GetRosesCommandOutput } from "./commands/GetRosesCommand";
24
26
  import { GetStateCommandInput, GetStateCommandOutput } from "./commands/GetStateCommand";
25
27
  import { GetUserByEmailCommandInput, GetUserByEmailCommandOutput } from "./commands/GetUserByEmailCommand";
26
28
  import { GetUserCommandInput, GetUserCommandOutput } from "./commands/GetUserCommand";
@@ -241,6 +243,20 @@ export interface OneHook {
241
243
  getPreferences(args: GetPreferencesCommandInput, options?: __HttpHandlerOptions): Promise<GetPreferencesCommandOutput>;
242
244
  getPreferences(args: GetPreferencesCommandInput, cb: (err: any, data?: GetPreferencesCommandOutput) => void): void;
243
245
  getPreferences(args: GetPreferencesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetPreferencesCommandOutput) => void): void;
246
+ /**
247
+ * @see {@link GetReceivedLikesCommand}
248
+ */
249
+ getReceivedLikes(): Promise<GetReceivedLikesCommandOutput>;
250
+ getReceivedLikes(args: GetReceivedLikesCommandInput, options?: __HttpHandlerOptions): Promise<GetReceivedLikesCommandOutput>;
251
+ getReceivedLikes(args: GetReceivedLikesCommandInput, cb: (err: any, data?: GetReceivedLikesCommandOutput) => void): void;
252
+ getReceivedLikes(args: GetReceivedLikesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetReceivedLikesCommandOutput) => void): void;
253
+ /**
254
+ * @see {@link GetRosesCommand}
255
+ */
256
+ getRoses(): Promise<GetRosesCommandOutput>;
257
+ getRoses(args: GetRosesCommandInput, options?: __HttpHandlerOptions): Promise<GetRosesCommandOutput>;
258
+ getRoses(args: GetRosesCommandInput, cb: (err: any, data?: GetRosesCommandOutput) => void): void;
259
+ getRoses(args: GetRosesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetRosesCommandOutput) => void): void;
244
260
  /**
245
261
  * @see {@link IndexLocationCommand}
246
262
  */
@@ -21,6 +21,8 @@ import { GetNotificationPreferencesCommandInput, GetNotificationPreferencesComma
21
21
  import { GetParticipantRegistryCommandInput, GetParticipantRegistryCommandOutput } from "./commands/GetParticipantRegistryCommand";
22
22
  import { GetPreferencesCommandInput, GetPreferencesCommandOutput } from "./commands/GetPreferencesCommand";
23
23
  import { GetProfileCommandInput, GetProfileCommandOutput } from "./commands/GetProfileCommand";
24
+ import { GetReceivedLikesCommandInput, GetReceivedLikesCommandOutput } from "./commands/GetReceivedLikesCommand";
25
+ import { GetRosesCommandInput, GetRosesCommandOutput } from "./commands/GetRosesCommand";
24
26
  import { GetStateCommandInput, GetStateCommandOutput } from "./commands/GetStateCommand";
25
27
  import { GetUserByEmailCommandInput, GetUserByEmailCommandOutput } from "./commands/GetUserByEmailCommand";
26
28
  import { GetUserCommandInput, GetUserCommandOutput } from "./commands/GetUserCommand";
@@ -62,11 +64,11 @@ export { __Client };
62
64
  /**
63
65
  * @public
64
66
  */
65
- export type ServiceInputTypes = AuthSocialCommandInput | CompleteLivenessSessionCommandInput | CompleteOnboardingCommandInput | CreateLivenessSessionCommandInput | CreateMediaDownloadUrlCommandInput | CreateMediaUploadUrlCommandInput | 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;
67
+ export type ServiceInputTypes = AuthSocialCommandInput | CompleteLivenessSessionCommandInput | CompleteOnboardingCommandInput | CreateLivenessSessionCommandInput | CreateMediaDownloadUrlCommandInput | CreateMediaUploadUrlCommandInput | DeleteMatchMessagesCommandInput | DeleteProfileCommandInput | DeletePushTokenCommandInput | DiscoverCommandInput | GenerateDownloadUrlCommandInput | GenerateInviteCommandInput | GenerateUploadUrlCommandInput | GetChatSettingsCommandInput | GetCredentialReadinessCommandInput | GetLivenessStatusCommandInput | GetMatchCommandInput | GetMyProfileCommandInput | GetNotificationPreferencesCommandInput | GetParticipantRegistryCommandInput | GetPreferencesCommandInput | GetProfileCommandInput | GetReceivedLikesCommandInput | GetRosesCommandInput | 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;
66
68
  /**
67
69
  * @public
68
70
  */
69
- export type ServiceOutputTypes = AuthSocialCommandOutput | CompleteLivenessSessionCommandOutput | CompleteOnboardingCommandOutput | CreateLivenessSessionCommandOutput | CreateMediaDownloadUrlCommandOutput | CreateMediaUploadUrlCommandOutput | 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;
71
+ export type ServiceOutputTypes = AuthSocialCommandOutput | CompleteLivenessSessionCommandOutput | CompleteOnboardingCommandOutput | CreateLivenessSessionCommandOutput | CreateMediaDownloadUrlCommandOutput | CreateMediaUploadUrlCommandOutput | DeleteMatchMessagesCommandOutput | DeleteProfileCommandOutput | DeletePushTokenCommandOutput | DiscoverCommandOutput | GenerateDownloadUrlCommandOutput | GenerateInviteCommandOutput | GenerateUploadUrlCommandOutput | GetChatSettingsCommandOutput | GetCredentialReadinessCommandOutput | GetLivenessStatusCommandOutput | GetMatchCommandOutput | GetMyProfileCommandOutput | GetNotificationPreferencesCommandOutput | GetParticipantRegistryCommandOutput | GetPreferencesCommandOutput | GetProfileCommandOutput | GetReceivedLikesCommandOutput | GetRosesCommandOutput | 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;
70
72
  /**
71
73
  * @public
72
74
  */
@@ -0,0 +1,89 @@
1
+ import { OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OneHookClient";
2
+ import { GetReceivedLikesResponse } from "../models/models_0";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link GetReceivedLikesCommand}.
14
+ */
15
+ export interface GetReceivedLikesCommandInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link GetReceivedLikesCommand}.
21
+ */
22
+ export interface GetReceivedLikesCommandOutput extends GetReceivedLikesResponse, __MetadataBearer {
23
+ }
24
+ declare const GetReceivedLikesCommand_base: {
25
+ new (input: GetReceivedLikesCommandInput): import("@smithy/smithy-client").CommandImpl<GetReceivedLikesCommandInput, GetReceivedLikesCommandOutput, OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (...[input]: [] | [GetReceivedLikesCommandInput]): import("@smithy/smithy-client").CommandImpl<GetReceivedLikesCommandInput, GetReceivedLikesCommandOutput, OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * Lists the likes the CALLER has RECEIVED that are still pending — not yet reciprocated (which
31
+ * would be a match) and not yet passed on. Newest first. This is the read side of the Hinge-style
32
+ * comment-to-like model: it surfaces each liker's comment and the exact profile element they
33
+ * commented on, so the comment captured on `Swipe` is not write-only.
34
+ *
35
+ * The caller is always the authenticated principal (`X-User-Id`); there are no inputs. Blocked
36
+ * pairs are excluded in BOTH directions, exactly like discovery and partner-distance.
37
+ * @example
38
+ * Use a bare-bones client and the command you need to make an API call.
39
+ * ```javascript
40
+ * import { OneHookClient, GetReceivedLikesCommand } from "onehook-api-client"; // ES Modules import
41
+ * // const { OneHookClient, GetReceivedLikesCommand } = require("onehook-api-client"); // CommonJS import
42
+ * const client = new OneHookClient(config);
43
+ * const input = {};
44
+ * const command = new GetReceivedLikesCommand(input);
45
+ * const response = await client.send(command);
46
+ * // { // GetReceivedLikesResponse
47
+ * // likes: [ // ReceivedLikeList // required
48
+ * // { // ReceivedLike
49
+ * // fromUserId: "STRING_VALUE", // required
50
+ * // comment: "STRING_VALUE",
51
+ * // likeTargetType: "STRING_VALUE",
52
+ * // likeTargetRef: "STRING_VALUE",
53
+ * // createdAt: "STRING_VALUE", // required
54
+ * // },
55
+ * // ],
56
+ * // count: Number("int"), // required
57
+ * // };
58
+ *
59
+ * ```
60
+ *
61
+ * @param GetReceivedLikesCommandInput - {@link GetReceivedLikesCommandInput}
62
+ * @returns {@link GetReceivedLikesCommandOutput}
63
+ * @see {@link GetReceivedLikesCommandInput} for command's `input` shape.
64
+ * @see {@link GetReceivedLikesCommandOutput} for command's `response` shape.
65
+ * @see {@link OneHookClientResolvedConfig | config} for OneHookClient's `config` shape.
66
+ *
67
+ * @throws {@link BadRequestError} (client fault)
68
+ *
69
+ * @throws {@link InternalServerError} (server fault)
70
+ *
71
+ * @throws {@link OneHookServiceException}
72
+ * <p>Base exception class for all service exceptions from OneHook service.</p>
73
+ *
74
+ *
75
+ * @public
76
+ */
77
+ export declare class GetReceivedLikesCommand extends GetReceivedLikesCommand_base {
78
+ /** @internal type navigation helper, not in runtime. */
79
+ protected static __types: {
80
+ api: {
81
+ input: {};
82
+ output: GetReceivedLikesResponse;
83
+ };
84
+ sdk: {
85
+ input: GetReceivedLikesCommandInput;
86
+ output: GetReceivedLikesCommandOutput;
87
+ };
88
+ };
89
+ }
@@ -0,0 +1,85 @@
1
+ import { OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OneHookClient";
2
+ import { GetRosesResponse } from "../models/models_0";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link GetRosesCommand}.
14
+ */
15
+ export interface GetRosesCommandInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link GetRosesCommand}.
21
+ */
22
+ export interface GetRosesCommandOutput extends GetRosesResponse, __MetadataBearer {
23
+ }
24
+ declare const GetRosesCommand_base: {
25
+ new (input: GetRosesCommandInput): import("@smithy/smithy-client").CommandImpl<GetRosesCommandInput, GetRosesCommandOutput, OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (...[input]: [] | [GetRosesCommandInput]): import("@smithy/smithy-client").CommandImpl<GetRosesCommandInput, GetRosesCommandOutput, OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * Reports the caller's remaining premium "rose" likes for the current UTC calendar day, so the
31
+ * client can show the rose control's availability without guessing.
32
+ *
33
+ * The caller is always the authenticated principal (`X-User-Id`); there are no inputs. `limit` is
34
+ * derived server-side from the caller's STORED subscription tier (Must=1, Super=3, Infinity=10 — a
35
+ * caller with an unknown/missing tier is treated as Must). `remaining` is `limit` minus the roses
36
+ * already sent since the last UTC midnight (never negative). `resetsAt` is the next UTC midnight
37
+ * (ISO-8601), when `remaining` returns to `limit`.
38
+ * @example
39
+ * Use a bare-bones client and the command you need to make an API call.
40
+ * ```javascript
41
+ * import { OneHookClient, GetRosesCommand } from "onehook-api-client"; // ES Modules import
42
+ * // const { OneHookClient, GetRosesCommand } = require("onehook-api-client"); // CommonJS import
43
+ * const client = new OneHookClient(config);
44
+ * const input = {};
45
+ * const command = new GetRosesCommand(input);
46
+ * const response = await client.send(command);
47
+ * // { // GetRosesResponse
48
+ * // remaining: Number("int"), // required
49
+ * // limit: Number("int"), // required
50
+ * // resetsAt: "STRING_VALUE", // required
51
+ * // };
52
+ *
53
+ * ```
54
+ *
55
+ * @param GetRosesCommandInput - {@link GetRosesCommandInput}
56
+ * @returns {@link GetRosesCommandOutput}
57
+ * @see {@link GetRosesCommandInput} for command's `input` shape.
58
+ * @see {@link GetRosesCommandOutput} for command's `response` shape.
59
+ * @see {@link OneHookClientResolvedConfig | config} for OneHookClient's `config` shape.
60
+ *
61
+ * @throws {@link BadRequestError} (client fault)
62
+ *
63
+ * @throws {@link NotFoundError} (client fault)
64
+ *
65
+ * @throws {@link InternalServerError} (server fault)
66
+ *
67
+ * @throws {@link OneHookServiceException}
68
+ * <p>Base exception class for all service exceptions from OneHook service.</p>
69
+ *
70
+ *
71
+ * @public
72
+ */
73
+ export declare class GetRosesCommand extends GetRosesCommand_base {
74
+ /** @internal type navigation helper, not in runtime. */
75
+ protected static __types: {
76
+ api: {
77
+ input: {};
78
+ output: GetRosesResponse;
79
+ };
80
+ sdk: {
81
+ input: GetRosesCommandInput;
82
+ output: GetRosesCommandOutput;
83
+ };
84
+ };
85
+ }
@@ -39,6 +39,10 @@ declare const SwipeCommand_base: {
39
39
  * targetId: "STRING_VALUE", // required
40
40
  * direction: "STRING_VALUE", // required
41
41
  * viewedSection: "STRING_VALUE",
42
+ * comment: "STRING_VALUE",
43
+ * likeTargetType: "STRING_VALUE",
44
+ * likeTargetRef: "STRING_VALUE",
45
+ * likeKind: "STRING_VALUE",
42
46
  * };
43
47
  * const command = new SwipeCommand(input);
44
48
  * const response = await client.send(command);
@@ -29,6 +29,8 @@ export * from "./ValidateInviteCommand";
29
29
  export * from "./DiscoverCommand";
30
30
  export * from "./GetNotificationPreferencesCommand";
31
31
  export * from "./GetPreferencesCommand";
32
+ export * from "./GetReceivedLikesCommand";
33
+ export * from "./GetRosesCommand";
32
34
  export * from "./IndexLocationCommand";
33
35
  export * from "./RemoveLocationCommand";
34
36
  export * from "./SwipeCommand";
@@ -883,6 +883,71 @@ export interface UserPreferencesResponse {
883
883
  notifyLikes?: boolean | undefined;
884
884
  notifyDailyPicks?: boolean | undefined;
885
885
  }
886
+ /**
887
+ * One received, still-pending like: who sent it, the comment they left, and which profile element
888
+ * it was attached to.
889
+ * @public
890
+ */
891
+ export interface ReceivedLike {
892
+ /**
893
+ * The user who liked the caller.
894
+ * @public
895
+ */
896
+ fromUserId: string | undefined;
897
+ /**
898
+ * The liker's comment. NULL only for a `SwipeByUsername` like (recorded with no profile element
899
+ * in view), which carries no comment.
900
+ * @public
901
+ */
902
+ comment?: string | undefined;
903
+ /**
904
+ * The KIND of element the comment is attached to: PHOTO | VIDEO | PROMPT | INTEREST | BIO |
905
+ * VOICE. NULL for a `SwipeByUsername` like.
906
+ * @public
907
+ */
908
+ likeTargetType?: string | undefined;
909
+ /**
910
+ * Which specific element the comment is attached to (media key / promptId / interest value /
911
+ * "bio"), per `likeTargetType`. NULL for a `SwipeByUsername` like.
912
+ * @public
913
+ */
914
+ likeTargetRef?: string | undefined;
915
+ /**
916
+ * When the like was recorded, ISO-8601 (UTC).
917
+ * @public
918
+ */
919
+ createdAt: string | undefined;
920
+ }
921
+ /**
922
+ * The pending likes the caller has received, newest first, plus their count. See
923
+ * `GetReceivedLikes`.
924
+ * @public
925
+ */
926
+ export interface GetReceivedLikesResponse {
927
+ likes: (ReceivedLike)[] | undefined;
928
+ count: number | undefined;
929
+ }
930
+ /**
931
+ * The caller's rose availability for the current UTC day. See `GetRoses`.
932
+ * @public
933
+ */
934
+ export interface GetRosesResponse {
935
+ /**
936
+ * Roses the caller may still send today (never negative).
937
+ * @public
938
+ */
939
+ remaining: number | undefined;
940
+ /**
941
+ * The caller's per-day rose allowance, from their stored tier (Must=1, Super=3, Infinity=10).
942
+ * @public
943
+ */
944
+ limit: number | undefined;
945
+ /**
946
+ * The next UTC midnight (ISO-8601), when `remaining` resets to `limit`.
947
+ * @public
948
+ */
949
+ resetsAt: string | undefined;
950
+ }
886
951
  /**
887
952
  * @public
888
953
  */
@@ -910,6 +975,54 @@ export interface SwipeRequest {
910
975
  * @public
911
976
  */
912
977
  viewedSection?: string | undefined;
978
+ /**
979
+ * The like's comment. In the Hinge-style model a like is never bare — it must carry a comment
980
+ * attached to a specific element of the target's profile.
981
+ *
982
+ * REQUIRED when `direction == RIGHT`: a RIGHT swipe with a blank/missing `comment` is rejected
983
+ * (HTTP 400). Trimmed server-side and capped at 500 characters (longer is rejected).
984
+ *
985
+ * MUST be absent for `direction == LEFT` (a pass). Any value a client sends on a LEFT swipe is
986
+ * IGNORED and never persisted. (`SwipeByUsername` is the one exempt like-path — it records a
987
+ * like with no profile element in view and therefore no comment.)
988
+ * @public
989
+ */
990
+ comment?: string | undefined;
991
+ /**
992
+ * Which KIND of profile element the `comment` is attached to. REQUIRED (and validated against
993
+ * the allowlist) when `direction == RIGHT`; an unknown value is rejected (HTTP 400). Ignored on
994
+ * a LEFT swipe.
995
+ *
996
+ * Valid values: PHOTO | VIDEO | PROMPT | INTEREST | BIO | VOICE.
997
+ * @public
998
+ */
999
+ likeTargetType?: string | undefined;
1000
+ /**
1001
+ * Which SPECIFIC element the `comment` is attached to, interpreted per `likeTargetType`:
1002
+ * * PHOTO / VIDEO / VOICE → the media object key,
1003
+ * * PROMPT → the promptId,
1004
+ * * INTEREST → the interest value,
1005
+ * * BIO → not needed (empty or the literal "bio").
1006
+ *
1007
+ * REQUIRED for every `likeTargetType` EXCEPT BIO when `direction == RIGHT`. Ignored on a LEFT
1008
+ * swipe. Capped at 512 characters.
1009
+ * @public
1010
+ */
1011
+ likeTargetRef?: string | undefined;
1012
+ /**
1013
+ * The KIND of like this swipe records. Optional; defaults to "LIKE" when absent.
1014
+ *
1015
+ * Valid values: "LIKE" (an ordinary like) | "ROSE" (a premium, daily-limited like). Validated
1016
+ * server-side against that allowlist — an unknown value is rejected (HTTP 400).
1017
+ *
1018
+ * A ROSE is still a LIKE for matching purposes: a reciprocated rose creates a match exactly as a
1019
+ * like does. It must accompany a RIGHT swipe, and it is subject to a per-tier DAILY QUOTA
1020
+ * (Must=1, Super=3, Infinity=10) enforced server-side from the caller's STORED subscription tier —
1021
+ * never a tier value sent by the client. Over quota returns HTTP 429. The tier-aware comment rules
1022
+ * are identical to an ordinary like (Must must write >= 10 words; Super/Infinity may send none).
1023
+ * @public
1024
+ */
1025
+ likeKind?: string | undefined;
913
1026
  }
914
1027
  /**
915
1028
  * @public
@@ -20,6 +20,8 @@ import { GetNotificationPreferencesCommandInput, GetNotificationPreferencesComma
20
20
  import { GetParticipantRegistryCommandInput, GetParticipantRegistryCommandOutput } from "../commands/GetParticipantRegistryCommand";
21
21
  import { GetPreferencesCommandInput, GetPreferencesCommandOutput } from "../commands/GetPreferencesCommand";
22
22
  import { GetProfileCommandInput, GetProfileCommandOutput } from "../commands/GetProfileCommand";
23
+ import { GetReceivedLikesCommandInput, GetReceivedLikesCommandOutput } from "../commands/GetReceivedLikesCommand";
24
+ import { GetRosesCommandInput, GetRosesCommandOutput } from "../commands/GetRosesCommand";
23
25
  import { GetStateCommandInput, GetStateCommandOutput } from "../commands/GetStateCommand";
24
26
  import { GetUserByEmailCommandInput, GetUserByEmailCommandOutput } from "../commands/GetUserByEmailCommand";
25
27
  import { GetUserCommandInput, GetUserCommandOutput } from "../commands/GetUserCommand";
@@ -175,6 +177,14 @@ export declare const se_GetNotificationPreferencesCommand: (input: GetNotificati
175
177
  * serializeAws_restJson1GetPreferencesCommand
176
178
  */
177
179
  export declare const se_GetPreferencesCommand: (input: GetPreferencesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
180
+ /**
181
+ * serializeAws_restJson1GetReceivedLikesCommand
182
+ */
183
+ export declare const se_GetReceivedLikesCommand: (input: GetReceivedLikesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
184
+ /**
185
+ * serializeAws_restJson1GetRosesCommand
186
+ */
187
+ export declare const se_GetRosesCommand: (input: GetRosesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
178
188
  /**
179
189
  * serializeAws_restJson1IndexLocationCommand
180
190
  */
@@ -379,6 +389,14 @@ export declare const de_GetNotificationPreferencesCommand: (output: __HttpRespon
379
389
  * deserializeAws_restJson1GetPreferencesCommand
380
390
  */
381
391
  export declare const de_GetPreferencesCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetPreferencesCommandOutput>;
392
+ /**
393
+ * deserializeAws_restJson1GetReceivedLikesCommand
394
+ */
395
+ export declare const de_GetReceivedLikesCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetReceivedLikesCommandOutput>;
396
+ /**
397
+ * deserializeAws_restJson1GetRosesCommand
398
+ */
399
+ export declare const de_GetRosesCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetRosesCommandOutput>;
382
400
  /**
383
401
  * deserializeAws_restJson1IndexLocationCommand
384
402
  */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "onehook-api-client",
3
3
  "description": "OneHook API Client",
4
- "version": "1.0.15",
4
+ "version": "1.0.16",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",