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.
@@ -2,7 +2,20 @@ import { OneHookServiceException as __BaseException } from "../models/OneHookSer
2
2
  import { BadRequestError, DeviceLimitError, ForbiddenError, InternalServerError, NotFoundError, } from "../models/models_0";
3
3
  import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody, } from "@aws-sdk/core";
4
4
  import { requestBuilder as rb } from "@smithy/core";
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";
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, isSerializableHeaderValue, map, take, withBaseException, } from "@smithy/smithy-client";
6
+ export const se_GetAiContextMatchCommand = async (input, context) => {
7
+ const b = rb(input, context);
8
+ const headers = map({}, isSerializableHeaderValue, {
9
+ [_xoui]: input[_rUI],
10
+ });
11
+ b.bp("/api/ai-context/matches/{matchId}");
12
+ b.p('matchId', () => input.matchId, '{matchId}', false);
13
+ let body;
14
+ b.m("GET")
15
+ .h(headers)
16
+ .b(body);
17
+ return b.build();
18
+ };
6
19
  export const se_CreateMediaDownloadUrlCommand = async (input, context) => {
7
20
  const b = rb(input, context);
8
21
  const headers = {
@@ -445,6 +458,26 @@ export const se_GetPreferencesCommand = async (input, context) => {
445
458
  .b(body);
446
459
  return b.build();
447
460
  };
461
+ export const se_GetReceivedLikesCommand = async (input, context) => {
462
+ const b = rb(input, context);
463
+ const headers = {};
464
+ b.bp("/matching/likes");
465
+ let body;
466
+ b.m("GET")
467
+ .h(headers)
468
+ .b(body);
469
+ return b.build();
470
+ };
471
+ export const se_GetRosesCommand = async (input, context) => {
472
+ const b = rb(input, context);
473
+ const headers = {};
474
+ b.bp("/matching/roses");
475
+ let body;
476
+ b.m("GET")
477
+ .h(headers)
478
+ .b(body);
479
+ return b.build();
480
+ };
448
481
  export const se_IndexLocationCommand = async (input, context) => {
449
482
  const b = rb(input, context);
450
483
  const headers = {
@@ -485,7 +518,11 @@ export const se_SwipeCommand = async (input, context) => {
485
518
  b.bp("/matching/swipe");
486
519
  let body;
487
520
  body = JSON.stringify(take(input, {
521
+ 'comment': [],
488
522
  'direction': [],
523
+ 'likeKind': [],
524
+ 'likeTargetRef': [],
525
+ 'likeTargetType': [],
489
526
  'targetId': [],
490
527
  'viewedSection': [],
491
528
  }));
@@ -769,6 +806,24 @@ export const se_UpgradeUserCommand = async (input, context) => {
769
806
  .b(body);
770
807
  return b.build();
771
808
  };
809
+ export const de_GetAiContextMatchCommand = async (output, context) => {
810
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
811
+ return de_CommandError(output, context);
812
+ }
813
+ const contents = map({
814
+ $metadata: deserializeMetadata(output),
815
+ });
816
+ const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
817
+ const doc = take(data, {
818
+ 'contextPolicy': _json,
819
+ 'matchId': __expectString,
820
+ 'matchedUser': _json,
821
+ 'requestingUser': _json,
822
+ 'status': __expectString,
823
+ });
824
+ Object.assign(contents, doc);
825
+ return contents;
826
+ };
772
827
  export const de_CreateMediaDownloadUrlCommand = async (output, context) => {
773
828
  if (output.statusCode !== 200 && output.statusCode >= 300) {
774
829
  return de_CommandError(output, context);
@@ -1281,6 +1336,37 @@ export const de_GetPreferencesCommand = async (output, context) => {
1281
1336
  Object.assign(contents, doc);
1282
1337
  return contents;
1283
1338
  };
1339
+ export const de_GetReceivedLikesCommand = async (output, context) => {
1340
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1341
+ return de_CommandError(output, context);
1342
+ }
1343
+ const contents = map({
1344
+ $metadata: deserializeMetadata(output),
1345
+ });
1346
+ const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
1347
+ const doc = take(data, {
1348
+ 'count': __expectInt32,
1349
+ 'likes': _json,
1350
+ });
1351
+ Object.assign(contents, doc);
1352
+ return contents;
1353
+ };
1354
+ export const de_GetRosesCommand = async (output, context) => {
1355
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1356
+ return de_CommandError(output, context);
1357
+ }
1358
+ const contents = map({
1359
+ $metadata: deserializeMetadata(output),
1360
+ });
1361
+ const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
1362
+ const doc = take(data, {
1363
+ 'limit': __expectInt32,
1364
+ 'remaining': __expectInt32,
1365
+ 'resetsAt': __expectString,
1366
+ });
1367
+ Object.assign(contents, doc);
1368
+ return contents;
1369
+ };
1284
1370
  export const de_IndexLocationCommand = async (output, context) => {
1285
1371
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1286
1372
  return de_CommandError(output, context);
@@ -1670,15 +1756,15 @@ const de_CommandError = async (output, context) => {
1670
1756
  case "BadRequestError":
1671
1757
  case "club.onehook.identity#BadRequestError":
1672
1758
  throw await de_BadRequestErrorRes(parsedOutput, context);
1673
- case "ForbiddenError":
1674
- case "club.onehook.chat#ForbiddenError":
1675
- throw await de_ForbiddenErrorRes(parsedOutput, context);
1676
1759
  case "InternalServerError":
1677
1760
  case "club.onehook.identity#InternalServerError":
1678
1761
  throw await de_InternalServerErrorRes(parsedOutput, context);
1679
1762
  case "NotFoundError":
1680
1763
  case "club.onehook.identity#NotFoundError":
1681
1764
  throw await de_NotFoundErrorRes(parsedOutput, context);
1765
+ case "ForbiddenError":
1766
+ case "club.onehook.chat#ForbiddenError":
1767
+ throw await de_ForbiddenErrorRes(parsedOutput, context);
1682
1768
  case "DeviceLimitError":
1683
1769
  case "club.onehook.chat#DeviceLimitError":
1684
1770
  throw await de_DeviceLimitErrorRes(parsedOutput, context);
@@ -1781,3 +1867,5 @@ const _k = "key";
1781
1867
  const _l = "lat";
1782
1868
  const _lo = "lon";
1783
1869
  const _mI = "matchId";
1870
+ const _rUI = "requestingUserId";
1871
+ const _xoui = "x-onehook-user-id";
@@ -12,6 +12,7 @@ import { DiscoverCommandInput, DiscoverCommandOutput } from "./commands/Discover
12
12
  import { GenerateDownloadUrlCommandInput, GenerateDownloadUrlCommandOutput } from "./commands/GenerateDownloadUrlCommand";
13
13
  import { GenerateInviteCommandInput, GenerateInviteCommandOutput } from "./commands/GenerateInviteCommand";
14
14
  import { GenerateUploadUrlCommandInput, GenerateUploadUrlCommandOutput } from "./commands/GenerateUploadUrlCommand";
15
+ import { GetAiContextMatchCommandInput, GetAiContextMatchCommandOutput } from "./commands/GetAiContextMatchCommand";
15
16
  import { GetChatSettingsCommandInput, GetChatSettingsCommandOutput } from "./commands/GetChatSettingsCommand";
16
17
  import { GetCredentialReadinessCommandInput, GetCredentialReadinessCommandOutput } from "./commands/GetCredentialReadinessCommand";
17
18
  import { GetLivenessStatusCommandInput, GetLivenessStatusCommandOutput } from "./commands/GetLivenessStatusCommand";
@@ -21,6 +22,8 @@ import { GetNotificationPreferencesCommandInput, GetNotificationPreferencesComma
21
22
  import { GetParticipantRegistryCommandInput, GetParticipantRegistryCommandOutput } from "./commands/GetParticipantRegistryCommand";
22
23
  import { GetPreferencesCommandInput, GetPreferencesCommandOutput } from "./commands/GetPreferencesCommand";
23
24
  import { GetProfileCommandInput, GetProfileCommandOutput } from "./commands/GetProfileCommand";
25
+ import { GetReceivedLikesCommandInput, GetReceivedLikesCommandOutput } from "./commands/GetReceivedLikesCommand";
26
+ import { GetRosesCommandInput, GetRosesCommandOutput } from "./commands/GetRosesCommand";
24
27
  import { GetStateCommandInput, GetStateCommandOutput } from "./commands/GetStateCommand";
25
28
  import { GetUserByEmailCommandInput, GetUserByEmailCommandOutput } from "./commands/GetUserByEmailCommand";
26
29
  import { GetUserCommandInput, GetUserCommandOutput } from "./commands/GetUserCommand";
@@ -52,6 +55,12 @@ import { UpgradeUserCommandInput, UpgradeUserCommandOutput } from "./commands/Up
52
55
  import { ValidateInviteCommandInput, ValidateInviteCommandOutput } from "./commands/ValidateInviteCommand";
53
56
  import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
54
57
  export interface OneHook {
58
+ /**
59
+ * @see {@link GetAiContextMatchCommand}
60
+ */
61
+ getAiContextMatch(args: GetAiContextMatchCommandInput, options?: __HttpHandlerOptions): Promise<GetAiContextMatchCommandOutput>;
62
+ getAiContextMatch(args: GetAiContextMatchCommandInput, cb: (err: any, data?: GetAiContextMatchCommandOutput) => void): void;
63
+ getAiContextMatch(args: GetAiContextMatchCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetAiContextMatchCommandOutput) => void): void;
55
64
  /**
56
65
  * @see {@link CreateMediaDownloadUrlCommand}
57
66
  */
@@ -241,6 +250,20 @@ export interface OneHook {
241
250
  getPreferences(args: GetPreferencesCommandInput, options?: __HttpHandlerOptions): Promise<GetPreferencesCommandOutput>;
242
251
  getPreferences(args: GetPreferencesCommandInput, cb: (err: any, data?: GetPreferencesCommandOutput) => void): void;
243
252
  getPreferences(args: GetPreferencesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetPreferencesCommandOutput) => void): void;
253
+ /**
254
+ * @see {@link GetReceivedLikesCommand}
255
+ */
256
+ getReceivedLikes(): Promise<GetReceivedLikesCommandOutput>;
257
+ getReceivedLikes(args: GetReceivedLikesCommandInput, options?: __HttpHandlerOptions): Promise<GetReceivedLikesCommandOutput>;
258
+ getReceivedLikes(args: GetReceivedLikesCommandInput, cb: (err: any, data?: GetReceivedLikesCommandOutput) => void): void;
259
+ getReceivedLikes(args: GetReceivedLikesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetReceivedLikesCommandOutput) => void): void;
260
+ /**
261
+ * @see {@link GetRosesCommand}
262
+ */
263
+ getRoses(): Promise<GetRosesCommandOutput>;
264
+ getRoses(args: GetRosesCommandInput, options?: __HttpHandlerOptions): Promise<GetRosesCommandOutput>;
265
+ getRoses(args: GetRosesCommandInput, cb: (err: any, data?: GetRosesCommandOutput) => void): void;
266
+ getRoses(args: GetRosesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetRosesCommandOutput) => void): void;
244
267
  /**
245
268
  * @see {@link IndexLocationCommand}
246
269
  */
@@ -12,6 +12,7 @@ import { DiscoverCommandInput, DiscoverCommandOutput } from "./commands/Discover
12
12
  import { GenerateDownloadUrlCommandInput, GenerateDownloadUrlCommandOutput } from "./commands/GenerateDownloadUrlCommand";
13
13
  import { GenerateInviteCommandInput, GenerateInviteCommandOutput } from "./commands/GenerateInviteCommand";
14
14
  import { GenerateUploadUrlCommandInput, GenerateUploadUrlCommandOutput } from "./commands/GenerateUploadUrlCommand";
15
+ import { GetAiContextMatchCommandInput, GetAiContextMatchCommandOutput } from "./commands/GetAiContextMatchCommand";
15
16
  import { GetChatSettingsCommandInput, GetChatSettingsCommandOutput } from "./commands/GetChatSettingsCommand";
16
17
  import { GetCredentialReadinessCommandInput, GetCredentialReadinessCommandOutput } from "./commands/GetCredentialReadinessCommand";
17
18
  import { GetLivenessStatusCommandInput, GetLivenessStatusCommandOutput } from "./commands/GetLivenessStatusCommand";
@@ -21,6 +22,8 @@ import { GetNotificationPreferencesCommandInput, GetNotificationPreferencesComma
21
22
  import { GetParticipantRegistryCommandInput, GetParticipantRegistryCommandOutput } from "./commands/GetParticipantRegistryCommand";
22
23
  import { GetPreferencesCommandInput, GetPreferencesCommandOutput } from "./commands/GetPreferencesCommand";
23
24
  import { GetProfileCommandInput, GetProfileCommandOutput } from "./commands/GetProfileCommand";
25
+ import { GetReceivedLikesCommandInput, GetReceivedLikesCommandOutput } from "./commands/GetReceivedLikesCommand";
26
+ import { GetRosesCommandInput, GetRosesCommandOutput } from "./commands/GetRosesCommand";
24
27
  import { GetStateCommandInput, GetStateCommandOutput } from "./commands/GetStateCommand";
25
28
  import { GetUserByEmailCommandInput, GetUserByEmailCommandOutput } from "./commands/GetUserByEmailCommand";
26
29
  import { GetUserCommandInput, GetUserCommandOutput } from "./commands/GetUserCommand";
@@ -62,11 +65,11 @@ export { __Client };
62
65
  /**
63
66
  * @public
64
67
  */
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;
68
+ export type ServiceInputTypes = AuthSocialCommandInput | CompleteLivenessSessionCommandInput | CompleteOnboardingCommandInput | CreateLivenessSessionCommandInput | CreateMediaDownloadUrlCommandInput | CreateMediaUploadUrlCommandInput | DeleteMatchMessagesCommandInput | DeleteProfileCommandInput | DeletePushTokenCommandInput | DiscoverCommandInput | GenerateDownloadUrlCommandInput | GenerateInviteCommandInput | GenerateUploadUrlCommandInput | GetAiContextMatchCommandInput | 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
69
  /**
67
70
  * @public
68
71
  */
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;
72
+ export type ServiceOutputTypes = AuthSocialCommandOutput | CompleteLivenessSessionCommandOutput | CompleteOnboardingCommandOutput | CreateLivenessSessionCommandOutput | CreateMediaDownloadUrlCommandOutput | CreateMediaUploadUrlCommandOutput | DeleteMatchMessagesCommandOutput | DeleteProfileCommandOutput | DeletePushTokenCommandOutput | DiscoverCommandOutput | GenerateDownloadUrlCommandOutput | GenerateInviteCommandOutput | GenerateUploadUrlCommandOutput | GetAiContextMatchCommandOutput | 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
73
  /**
71
74
  * @public
72
75
  */
@@ -0,0 +1,117 @@
1
+ import { OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OneHookClient";
2
+ import { AiContextMatch, GetAiContextMatchRequest } 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 GetAiContextMatchCommand}.
14
+ */
15
+ export interface GetAiContextMatchCommandInput extends GetAiContextMatchRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link GetAiContextMatchCommand}.
21
+ */
22
+ export interface GetAiContextMatchCommandOutput extends AiContextMatch, __MetadataBearer {
23
+ }
24
+ declare const GetAiContextMatchCommand_base: {
25
+ new (input: GetAiContextMatchCommandInput): import("@smithy/smithy-client").CommandImpl<GetAiContextMatchCommandInput, GetAiContextMatchCommandOutput, OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: GetAiContextMatchCommandInput): import("@smithy/smithy-client").CommandImpl<GetAiContextMatchCommandInput, GetAiContextMatchCommandOutput, OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * @public
31
+ *
32
+ * @example
33
+ * Use a bare-bones client and the command you need to make an API call.
34
+ * ```javascript
35
+ * import { OneHookClient, GetAiContextMatchCommand } from "onehook-api-client"; // ES Modules import
36
+ * // const { OneHookClient, GetAiContextMatchCommand } = require("onehook-api-client"); // CommonJS import
37
+ * const client = new OneHookClient(config);
38
+ * const input = { // GetAiContextMatchRequest
39
+ * matchId: "STRING_VALUE", // required
40
+ * requestingUserId: "STRING_VALUE", // required
41
+ * };
42
+ * const command = new GetAiContextMatchCommand(input);
43
+ * const response = await client.send(command);
44
+ * // { // AiContextMatch
45
+ * // matchId: "STRING_VALUE", // required
46
+ * // status: "STRING_VALUE", // required
47
+ * // requestingUser: { // AiContextParticipant
48
+ * // id: "STRING_VALUE",
49
+ * // visibleProfile: { // AiVisibleProfile
50
+ * // displayName: "STRING_VALUE",
51
+ * // pronouns: "STRING_VALUE",
52
+ * // bio: "STRING_VALUE",
53
+ * // interests: [ // StringList
54
+ * // "STRING_VALUE",
55
+ * // ],
56
+ * // communicationPreferences: [
57
+ * // "STRING_VALUE",
58
+ * // ],
59
+ * // relationshipGoals: [
60
+ * // "STRING_VALUE",
61
+ * // ],
62
+ * // },
63
+ * // },
64
+ * // matchedUser: {
65
+ * // id: "STRING_VALUE",
66
+ * // visibleProfile: {
67
+ * // displayName: "STRING_VALUE",
68
+ * // pronouns: "STRING_VALUE",
69
+ * // bio: "STRING_VALUE",
70
+ * // interests: [
71
+ * // "STRING_VALUE",
72
+ * // ],
73
+ * // communicationPreferences: [
74
+ * // "STRING_VALUE",
75
+ * // ],
76
+ * // relationshipGoals: "<StringList>",
77
+ * // },
78
+ * // },
79
+ * // contextPolicy: { // AiContextPolicy
80
+ * // profileAllowed: true || false, // required
81
+ * // messageHistoryAllowed: true || false, // required
82
+ * // policyVersion: "STRING_VALUE", // required
83
+ * // },
84
+ * // };
85
+ *
86
+ * ```
87
+ *
88
+ * @param GetAiContextMatchCommandInput - {@link GetAiContextMatchCommandInput}
89
+ * @returns {@link GetAiContextMatchCommandOutput}
90
+ * @see {@link GetAiContextMatchCommandInput} for command's `input` shape.
91
+ * @see {@link GetAiContextMatchCommandOutput} for command's `response` shape.
92
+ * @see {@link OneHookClientResolvedConfig | config} for OneHookClient's `config` shape.
93
+ *
94
+ * @throws {@link BadRequestError} (client fault)
95
+ *
96
+ * @throws {@link NotFoundError} (client fault)
97
+ *
98
+ * @throws {@link InternalServerError} (server fault)
99
+ *
100
+ * @throws {@link OneHookServiceException}
101
+ * <p>Base exception class for all service exceptions from OneHook service.</p>
102
+ *
103
+ *
104
+ */
105
+ export declare class GetAiContextMatchCommand extends GetAiContextMatchCommand_base {
106
+ /** @internal type navigation helper, not in runtime. */
107
+ protected static __types: {
108
+ api: {
109
+ input: GetAiContextMatchRequest;
110
+ output: AiContextMatch;
111
+ };
112
+ sdk: {
113
+ input: GetAiContextMatchCommandInput;
114
+ output: GetAiContextMatchCommandOutput;
115
+ };
116
+ };
117
+ }
@@ -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);
@@ -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";