onehook-api-client 1.0.14 → 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 +28 -0
- package/dist-cjs/OneHook.js +8 -0
- package/dist-cjs/commands/CreateMediaDownloadUrlCommand.js +21 -0
- package/dist-cjs/commands/CreateMediaUploadUrlCommand.js +21 -0
- package/dist-cjs/commands/GetReceivedLikesCommand.js +21 -0
- package/dist-cjs/commands/GetRosesCommand.js +21 -0
- package/dist-cjs/commands/index.js +4 -0
- package/dist-cjs/models/models_0.js +7 -1
- package/dist-cjs/protocols/Aws_restJson1.js +130 -2
- package/dist-es/OneHook.js +8 -0
- package/dist-es/commands/CreateMediaDownloadUrlCommand.js +17 -0
- package/dist-es/commands/CreateMediaUploadUrlCommand.js +17 -0
- package/dist-es/commands/GetReceivedLikesCommand.js +17 -0
- package/dist-es/commands/GetRosesCommand.js +17 -0
- package/dist-es/commands/index.js +4 -0
- package/dist-es/models/models_0.js +6 -0
- package/dist-es/protocols/Aws_restJson1.js +119 -0
- package/dist-types/OneHook.d.ts +30 -0
- package/dist-types/OneHookClient.d.ts +6 -2
- package/dist-types/commands/CreateMediaDownloadUrlCommand.d.ts +87 -0
- package/dist-types/commands/CreateMediaUploadUrlCommand.d.ts +92 -0
- package/dist-types/commands/GetReceivedLikesCommand.d.ts +89 -0
- package/dist-types/commands/GetRosesCommand.d.ts +85 -0
- package/dist-types/commands/SwipeCommand.d.ts +4 -0
- package/dist-types/commands/index.d.ts +4 -0
- package/dist-types/models/models_0.d.ts +205 -15
- package/dist-types/protocols/Aws_restJson1.d.ts +36 -0
- package/package.json +1 -1
|
@@ -3,6 +3,39 @@ import { BadRequestError, DeviceLimitError, ForbiddenError, InternalServerError,
|
|
|
3
3
|
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody, } from "@aws-sdk/core";
|
|
4
4
|
import { requestBuilder as rb } from "@smithy/core";
|
|
5
5
|
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, serializeFloat as __serializeFloat, _json, collectBody, map, take, withBaseException, } from "@smithy/smithy-client";
|
|
6
|
+
export const se_CreateMediaDownloadUrlCommand = async (input, context) => {
|
|
7
|
+
const b = rb(input, context);
|
|
8
|
+
const headers = {
|
|
9
|
+
'content-type': 'application/json',
|
|
10
|
+
};
|
|
11
|
+
b.bp("/chat/media/download-url");
|
|
12
|
+
let body;
|
|
13
|
+
body = JSON.stringify(take(input, {
|
|
14
|
+
'matchId': [],
|
|
15
|
+
'objectKey': [],
|
|
16
|
+
}));
|
|
17
|
+
b.m("POST")
|
|
18
|
+
.h(headers)
|
|
19
|
+
.b(body);
|
|
20
|
+
return b.build();
|
|
21
|
+
};
|
|
22
|
+
export const se_CreateMediaUploadUrlCommand = async (input, context) => {
|
|
23
|
+
const b = rb(input, context);
|
|
24
|
+
const headers = {
|
|
25
|
+
'content-type': 'application/json',
|
|
26
|
+
};
|
|
27
|
+
b.bp("/chat/media/upload-url");
|
|
28
|
+
let body;
|
|
29
|
+
body = JSON.stringify(take(input, {
|
|
30
|
+
'contentLength': [],
|
|
31
|
+
'kind': [],
|
|
32
|
+
'matchId': [],
|
|
33
|
+
}));
|
|
34
|
+
b.m("POST")
|
|
35
|
+
.h(headers)
|
|
36
|
+
.b(body);
|
|
37
|
+
return b.build();
|
|
38
|
+
};
|
|
6
39
|
export const se_DeleteMatchMessagesCommand = async (input, context) => {
|
|
7
40
|
const b = rb(input, context);
|
|
8
41
|
const headers = {};
|
|
@@ -412,6 +445,26 @@ export const se_GetPreferencesCommand = async (input, context) => {
|
|
|
412
445
|
.b(body);
|
|
413
446
|
return b.build();
|
|
414
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
|
+
};
|
|
415
468
|
export const se_IndexLocationCommand = async (input, context) => {
|
|
416
469
|
const b = rb(input, context);
|
|
417
470
|
const headers = {
|
|
@@ -452,7 +505,11 @@ export const se_SwipeCommand = async (input, context) => {
|
|
|
452
505
|
b.bp("/matching/swipe");
|
|
453
506
|
let body;
|
|
454
507
|
body = JSON.stringify(take(input, {
|
|
508
|
+
'comment': [],
|
|
455
509
|
'direction': [],
|
|
510
|
+
'likeKind': [],
|
|
511
|
+
'likeTargetRef': [],
|
|
512
|
+
'likeTargetType': [],
|
|
456
513
|
'targetId': [],
|
|
457
514
|
'viewedSection': [],
|
|
458
515
|
}));
|
|
@@ -736,6 +793,37 @@ export const se_UpgradeUserCommand = async (input, context) => {
|
|
|
736
793
|
.b(body);
|
|
737
794
|
return b.build();
|
|
738
795
|
};
|
|
796
|
+
export const de_CreateMediaDownloadUrlCommand = async (output, context) => {
|
|
797
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
798
|
+
return de_CommandError(output, context);
|
|
799
|
+
}
|
|
800
|
+
const contents = map({
|
|
801
|
+
$metadata: deserializeMetadata(output),
|
|
802
|
+
});
|
|
803
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
804
|
+
const doc = take(data, {
|
|
805
|
+
'downloadUrl': __expectString,
|
|
806
|
+
'expiresInSeconds': __expectInt32,
|
|
807
|
+
});
|
|
808
|
+
Object.assign(contents, doc);
|
|
809
|
+
return contents;
|
|
810
|
+
};
|
|
811
|
+
export const de_CreateMediaUploadUrlCommand = async (output, context) => {
|
|
812
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
813
|
+
return de_CommandError(output, context);
|
|
814
|
+
}
|
|
815
|
+
const contents = map({
|
|
816
|
+
$metadata: deserializeMetadata(output),
|
|
817
|
+
});
|
|
818
|
+
const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
|
|
819
|
+
const doc = take(data, {
|
|
820
|
+
'expiresInSeconds': __expectInt32,
|
|
821
|
+
'objectKey': __expectString,
|
|
822
|
+
'uploadUrl': __expectString,
|
|
823
|
+
});
|
|
824
|
+
Object.assign(contents, doc);
|
|
825
|
+
return contents;
|
|
826
|
+
};
|
|
739
827
|
export const de_DeleteMatchMessagesCommand = async (output, context) => {
|
|
740
828
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
741
829
|
return de_CommandError(output, context);
|
|
@@ -1217,6 +1305,37 @@ export const de_GetPreferencesCommand = async (output, context) => {
|
|
|
1217
1305
|
Object.assign(contents, doc);
|
|
1218
1306
|
return contents;
|
|
1219
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
|
+
};
|
|
1220
1339
|
export const de_IndexLocationCommand = async (output, context) => {
|
|
1221
1340
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1222
1341
|
return de_CommandError(output, context);
|
package/dist-types/OneHook.d.ts
CHANGED
|
@@ -3,6 +3,8 @@ import { AuthSocialCommandInput, AuthSocialCommandOutput } from "./commands/Auth
|
|
|
3
3
|
import { CompleteLivenessSessionCommandInput, CompleteLivenessSessionCommandOutput } from "./commands/CompleteLivenessSessionCommand";
|
|
4
4
|
import { CompleteOnboardingCommandInput, CompleteOnboardingCommandOutput } from "./commands/CompleteOnboardingCommand";
|
|
5
5
|
import { CreateLivenessSessionCommandInput, CreateLivenessSessionCommandOutput } from "./commands/CreateLivenessSessionCommand";
|
|
6
|
+
import { CreateMediaDownloadUrlCommandInput, CreateMediaDownloadUrlCommandOutput } from "./commands/CreateMediaDownloadUrlCommand";
|
|
7
|
+
import { CreateMediaUploadUrlCommandInput, CreateMediaUploadUrlCommandOutput } from "./commands/CreateMediaUploadUrlCommand";
|
|
6
8
|
import { DeleteMatchMessagesCommandInput, DeleteMatchMessagesCommandOutput } from "./commands/DeleteMatchMessagesCommand";
|
|
7
9
|
import { DeleteProfileCommandInput, DeleteProfileCommandOutput } from "./commands/DeleteProfileCommand";
|
|
8
10
|
import { DeletePushTokenCommandInput, DeletePushTokenCommandOutput } from "./commands/DeletePushTokenCommand";
|
|
@@ -19,6 +21,8 @@ import { GetNotificationPreferencesCommandInput, GetNotificationPreferencesComma
|
|
|
19
21
|
import { GetParticipantRegistryCommandInput, GetParticipantRegistryCommandOutput } from "./commands/GetParticipantRegistryCommand";
|
|
20
22
|
import { GetPreferencesCommandInput, GetPreferencesCommandOutput } from "./commands/GetPreferencesCommand";
|
|
21
23
|
import { GetProfileCommandInput, GetProfileCommandOutput } from "./commands/GetProfileCommand";
|
|
24
|
+
import { GetReceivedLikesCommandInput, GetReceivedLikesCommandOutput } from "./commands/GetReceivedLikesCommand";
|
|
25
|
+
import { GetRosesCommandInput, GetRosesCommandOutput } from "./commands/GetRosesCommand";
|
|
22
26
|
import { GetStateCommandInput, GetStateCommandOutput } from "./commands/GetStateCommand";
|
|
23
27
|
import { GetUserByEmailCommandInput, GetUserByEmailCommandOutput } from "./commands/GetUserByEmailCommand";
|
|
24
28
|
import { GetUserCommandInput, GetUserCommandOutput } from "./commands/GetUserCommand";
|
|
@@ -50,6 +54,18 @@ import { UpgradeUserCommandInput, UpgradeUserCommandOutput } from "./commands/Up
|
|
|
50
54
|
import { ValidateInviteCommandInput, ValidateInviteCommandOutput } from "./commands/ValidateInviteCommand";
|
|
51
55
|
import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
|
|
52
56
|
export interface OneHook {
|
|
57
|
+
/**
|
|
58
|
+
* @see {@link CreateMediaDownloadUrlCommand}
|
|
59
|
+
*/
|
|
60
|
+
createMediaDownloadUrl(args: CreateMediaDownloadUrlCommandInput, options?: __HttpHandlerOptions): Promise<CreateMediaDownloadUrlCommandOutput>;
|
|
61
|
+
createMediaDownloadUrl(args: CreateMediaDownloadUrlCommandInput, cb: (err: any, data?: CreateMediaDownloadUrlCommandOutput) => void): void;
|
|
62
|
+
createMediaDownloadUrl(args: CreateMediaDownloadUrlCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateMediaDownloadUrlCommandOutput) => void): void;
|
|
63
|
+
/**
|
|
64
|
+
* @see {@link CreateMediaUploadUrlCommand}
|
|
65
|
+
*/
|
|
66
|
+
createMediaUploadUrl(args: CreateMediaUploadUrlCommandInput, options?: __HttpHandlerOptions): Promise<CreateMediaUploadUrlCommandOutput>;
|
|
67
|
+
createMediaUploadUrl(args: CreateMediaUploadUrlCommandInput, cb: (err: any, data?: CreateMediaUploadUrlCommandOutput) => void): void;
|
|
68
|
+
createMediaUploadUrl(args: CreateMediaUploadUrlCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateMediaUploadUrlCommandOutput) => void): void;
|
|
53
69
|
/**
|
|
54
70
|
* @see {@link DeleteMatchMessagesCommand}
|
|
55
71
|
*/
|
|
@@ -227,6 +243,20 @@ export interface OneHook {
|
|
|
227
243
|
getPreferences(args: GetPreferencesCommandInput, options?: __HttpHandlerOptions): Promise<GetPreferencesCommandOutput>;
|
|
228
244
|
getPreferences(args: GetPreferencesCommandInput, cb: (err: any, data?: GetPreferencesCommandOutput) => void): void;
|
|
229
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;
|
|
230
260
|
/**
|
|
231
261
|
* @see {@link IndexLocationCommand}
|
|
232
262
|
*/
|
|
@@ -3,6 +3,8 @@ import { AuthSocialCommandInput, AuthSocialCommandOutput } from "./commands/Auth
|
|
|
3
3
|
import { CompleteLivenessSessionCommandInput, CompleteLivenessSessionCommandOutput } from "./commands/CompleteLivenessSessionCommand";
|
|
4
4
|
import { CompleteOnboardingCommandInput, CompleteOnboardingCommandOutput } from "./commands/CompleteOnboardingCommand";
|
|
5
5
|
import { CreateLivenessSessionCommandInput, CreateLivenessSessionCommandOutput } from "./commands/CreateLivenessSessionCommand";
|
|
6
|
+
import { CreateMediaDownloadUrlCommandInput, CreateMediaDownloadUrlCommandOutput } from "./commands/CreateMediaDownloadUrlCommand";
|
|
7
|
+
import { CreateMediaUploadUrlCommandInput, CreateMediaUploadUrlCommandOutput } from "./commands/CreateMediaUploadUrlCommand";
|
|
6
8
|
import { DeleteMatchMessagesCommandInput, DeleteMatchMessagesCommandOutput } from "./commands/DeleteMatchMessagesCommand";
|
|
7
9
|
import { DeleteProfileCommandInput, DeleteProfileCommandOutput } from "./commands/DeleteProfileCommand";
|
|
8
10
|
import { DeletePushTokenCommandInput, DeletePushTokenCommandOutput } from "./commands/DeletePushTokenCommand";
|
|
@@ -19,6 +21,8 @@ import { GetNotificationPreferencesCommandInput, GetNotificationPreferencesComma
|
|
|
19
21
|
import { GetParticipantRegistryCommandInput, GetParticipantRegistryCommandOutput } from "./commands/GetParticipantRegistryCommand";
|
|
20
22
|
import { GetPreferencesCommandInput, GetPreferencesCommandOutput } from "./commands/GetPreferencesCommand";
|
|
21
23
|
import { GetProfileCommandInput, GetProfileCommandOutput } from "./commands/GetProfileCommand";
|
|
24
|
+
import { GetReceivedLikesCommandInput, GetReceivedLikesCommandOutput } from "./commands/GetReceivedLikesCommand";
|
|
25
|
+
import { GetRosesCommandInput, GetRosesCommandOutput } from "./commands/GetRosesCommand";
|
|
22
26
|
import { GetStateCommandInput, GetStateCommandOutput } from "./commands/GetStateCommand";
|
|
23
27
|
import { GetUserByEmailCommandInput, GetUserByEmailCommandOutput } from "./commands/GetUserByEmailCommand";
|
|
24
28
|
import { GetUserCommandInput, GetUserCommandOutput } from "./commands/GetUserCommand";
|
|
@@ -60,11 +64,11 @@ export { __Client };
|
|
|
60
64
|
/**
|
|
61
65
|
* @public
|
|
62
66
|
*/
|
|
63
|
-
export type ServiceInputTypes = AuthSocialCommandInput | CompleteLivenessSessionCommandInput | CompleteOnboardingCommandInput | CreateLivenessSessionCommandInput | DeleteMatchMessagesCommandInput | DeleteProfileCommandInput | DeletePushTokenCommandInput | DiscoverCommandInput | GenerateDownloadUrlCommandInput | GenerateInviteCommandInput | GenerateUploadUrlCommandInput | GetChatSettingsCommandInput | GetCredentialReadinessCommandInput | GetLivenessStatusCommandInput | GetMatchCommandInput | GetMyProfileCommandInput | GetNotificationPreferencesCommandInput | GetParticipantRegistryCommandInput | GetPreferencesCommandInput | GetProfileCommandInput | GetStateCommandInput | GetUserByEmailCommandInput | GetUserCommandInput | GetUserIdByUsernameCommandInput | IndexLocationCommandInput | InitUserCommandInput | LinkEmailCommandInput | LinkSocialCommandInput | ListMyDevicesCommandInput | RegisterDeviceCommandInput | RegisterPhoneCommandInput | RegisterPushTokenCommandInput | RemoveLocationCommandInput | RequestEmailOtpCommandInput | RequestPhoneOtpCommandInput | RequestPhoneUpdateOtpCommandInput | RevokeDeviceCommandInput | SwipeByUsernameCommandInput | SwipeCommandInput | UnhookCommandInput | UnlinkSocialCommandInput | UpdateChatSettingsCommandInput | UpdateEntitlementsCommandInput | UpdatePhoneNumberCommandInput | UpdatePreferencesCommandInput | UpdateProfileCommandInput | UpdateUsernameCommandInput | UpgradeUserCommandInput | ValidateInviteCommandInput;
|
|
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;
|
|
64
68
|
/**
|
|
65
69
|
* @public
|
|
66
70
|
*/
|
|
67
|
-
export type ServiceOutputTypes = AuthSocialCommandOutput | CompleteLivenessSessionCommandOutput | CompleteOnboardingCommandOutput | CreateLivenessSessionCommandOutput | DeleteMatchMessagesCommandOutput | DeleteProfileCommandOutput | DeletePushTokenCommandOutput | DiscoverCommandOutput | GenerateDownloadUrlCommandOutput | GenerateInviteCommandOutput | GenerateUploadUrlCommandOutput | GetChatSettingsCommandOutput | GetCredentialReadinessCommandOutput | GetLivenessStatusCommandOutput | GetMatchCommandOutput | GetMyProfileCommandOutput | GetNotificationPreferencesCommandOutput | GetParticipantRegistryCommandOutput | GetPreferencesCommandOutput | GetProfileCommandOutput | GetStateCommandOutput | GetUserByEmailCommandOutput | GetUserCommandOutput | GetUserIdByUsernameCommandOutput | IndexLocationCommandOutput | InitUserCommandOutput | LinkEmailCommandOutput | LinkSocialCommandOutput | ListMyDevicesCommandOutput | RegisterDeviceCommandOutput | RegisterPhoneCommandOutput | RegisterPushTokenCommandOutput | RemoveLocationCommandOutput | RequestEmailOtpCommandOutput | RequestPhoneOtpCommandOutput | RequestPhoneUpdateOtpCommandOutput | RevokeDeviceCommandOutput | SwipeByUsernameCommandOutput | SwipeCommandOutput | UnhookCommandOutput | UnlinkSocialCommandOutput | UpdateChatSettingsCommandOutput | UpdateEntitlementsCommandOutput | UpdatePhoneNumberCommandOutput | UpdatePreferencesCommandOutput | UpdateProfileCommandOutput | UpdateUsernameCommandOutput | UpgradeUserCommandOutput | ValidateInviteCommandOutput;
|
|
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;
|
|
68
72
|
/**
|
|
69
73
|
* @public
|
|
70
74
|
*/
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OneHookClient";
|
|
2
|
+
import { CreateMediaDownloadUrlRequest, CreateMediaDownloadUrlResponse } 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 CreateMediaDownloadUrlCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface CreateMediaDownloadUrlCommandInput extends CreateMediaDownloadUrlRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link CreateMediaDownloadUrlCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface CreateMediaDownloadUrlCommandOutput extends CreateMediaDownloadUrlResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const CreateMediaDownloadUrlCommand_base: {
|
|
25
|
+
new (input: CreateMediaDownloadUrlCommandInput): import("@smithy/smithy-client").CommandImpl<CreateMediaDownloadUrlCommandInput, CreateMediaDownloadUrlCommandOutput, OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: CreateMediaDownloadUrlCommandInput): import("@smithy/smithy-client").CommandImpl<CreateMediaDownloadUrlCommandInput, CreateMediaDownloadUrlCommandOutput, OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Issues a presigned URL for downloading ONE encrypted attachment.
|
|
31
|
+
*
|
|
32
|
+
* Returns ciphertext; the caller decrypts with the content key from the message payload. Besides
|
|
33
|
+
* requiring match participation, this REJECTS any `objectKey` not under the caller's own `matchId`
|
|
34
|
+
* prefix — otherwise knowing or guessing a key from another conversation would be enough to read its
|
|
35
|
+
* media.
|
|
36
|
+
* @example
|
|
37
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
38
|
+
* ```javascript
|
|
39
|
+
* import { OneHookClient, CreateMediaDownloadUrlCommand } from "onehook-api-client"; // ES Modules import
|
|
40
|
+
* // const { OneHookClient, CreateMediaDownloadUrlCommand } = require("onehook-api-client"); // CommonJS import
|
|
41
|
+
* const client = new OneHookClient(config);
|
|
42
|
+
* const input = { // CreateMediaDownloadUrlRequest
|
|
43
|
+
* matchId: "STRING_VALUE", // required
|
|
44
|
+
* objectKey: "STRING_VALUE", // required
|
|
45
|
+
* };
|
|
46
|
+
* const command = new CreateMediaDownloadUrlCommand(input);
|
|
47
|
+
* const response = await client.send(command);
|
|
48
|
+
* // { // CreateMediaDownloadUrlResponse
|
|
49
|
+
* // downloadUrl: "STRING_VALUE", // required
|
|
50
|
+
* // expiresInSeconds: Number("int"), // required
|
|
51
|
+
* // };
|
|
52
|
+
*
|
|
53
|
+
* ```
|
|
54
|
+
*
|
|
55
|
+
* @param CreateMediaDownloadUrlCommandInput - {@link CreateMediaDownloadUrlCommandInput}
|
|
56
|
+
* @returns {@link CreateMediaDownloadUrlCommandOutput}
|
|
57
|
+
* @see {@link CreateMediaDownloadUrlCommandInput} for command's `input` shape.
|
|
58
|
+
* @see {@link CreateMediaDownloadUrlCommandOutput} 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 ForbiddenError} (client fault)
|
|
64
|
+
*
|
|
65
|
+
* @throws {@link NotFoundError} (client fault)
|
|
66
|
+
*
|
|
67
|
+
* @throws {@link InternalServerError} (server fault)
|
|
68
|
+
*
|
|
69
|
+
* @throws {@link OneHookServiceException}
|
|
70
|
+
* <p>Base exception class for all service exceptions from OneHook service.</p>
|
|
71
|
+
*
|
|
72
|
+
*
|
|
73
|
+
* @public
|
|
74
|
+
*/
|
|
75
|
+
export declare class CreateMediaDownloadUrlCommand extends CreateMediaDownloadUrlCommand_base {
|
|
76
|
+
/** @internal type navigation helper, not in runtime. */
|
|
77
|
+
protected static __types: {
|
|
78
|
+
api: {
|
|
79
|
+
input: CreateMediaDownloadUrlRequest;
|
|
80
|
+
output: CreateMediaDownloadUrlResponse;
|
|
81
|
+
};
|
|
82
|
+
sdk: {
|
|
83
|
+
input: CreateMediaDownloadUrlCommandInput;
|
|
84
|
+
output: CreateMediaDownloadUrlCommandOutput;
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OneHookClient";
|
|
2
|
+
import { CreateMediaUploadUrlRequest, CreateMediaUploadUrlResponse } 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 CreateMediaUploadUrlCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface CreateMediaUploadUrlCommandInput extends CreateMediaUploadUrlRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link CreateMediaUploadUrlCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface CreateMediaUploadUrlCommandOutput extends CreateMediaUploadUrlResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const CreateMediaUploadUrlCommand_base: {
|
|
25
|
+
new (input: CreateMediaUploadUrlCommandInput): import("@smithy/smithy-client").CommandImpl<CreateMediaUploadUrlCommandInput, CreateMediaUploadUrlCommandOutput, OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: CreateMediaUploadUrlCommandInput): import("@smithy/smithy-client").CommandImpl<CreateMediaUploadUrlCommandInput, CreateMediaUploadUrlCommandOutput, OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Issues a presigned URL for uploading ONE encrypted attachment.
|
|
31
|
+
*
|
|
32
|
+
* The client encrypts the file locally with a per-attachment AES-256-GCM key and uploads only the
|
|
33
|
+
* ciphertext, so the object this URL writes is unreadable by the service. That key travels to the
|
|
34
|
+
* recipient inside the E2EE message payload and is never sent here.
|
|
35
|
+
*
|
|
36
|
+
* Authorized by match participation, so an upload URL cannot be obtained for a conversation the
|
|
37
|
+
* caller is not in. The URL is signed for EXACTLY `contentLength` bytes, so it cannot be replayed to
|
|
38
|
+
* store something larger than was authorized.
|
|
39
|
+
* @example
|
|
40
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
41
|
+
* ```javascript
|
|
42
|
+
* import { OneHookClient, CreateMediaUploadUrlCommand } from "onehook-api-client"; // ES Modules import
|
|
43
|
+
* // const { OneHookClient, CreateMediaUploadUrlCommand } = require("onehook-api-client"); // CommonJS import
|
|
44
|
+
* const client = new OneHookClient(config);
|
|
45
|
+
* const input = { // CreateMediaUploadUrlRequest
|
|
46
|
+
* matchId: "STRING_VALUE", // required
|
|
47
|
+
* contentLength: Number("long"), // required
|
|
48
|
+
* kind: "IMAGE" || "VIDEO" || "AUDIO" || "FILE", // required
|
|
49
|
+
* };
|
|
50
|
+
* const command = new CreateMediaUploadUrlCommand(input);
|
|
51
|
+
* const response = await client.send(command);
|
|
52
|
+
* // { // CreateMediaUploadUrlResponse
|
|
53
|
+
* // objectKey: "STRING_VALUE", // required
|
|
54
|
+
* // uploadUrl: "STRING_VALUE", // required
|
|
55
|
+
* // expiresInSeconds: Number("int"), // required
|
|
56
|
+
* // };
|
|
57
|
+
*
|
|
58
|
+
* ```
|
|
59
|
+
*
|
|
60
|
+
* @param CreateMediaUploadUrlCommandInput - {@link CreateMediaUploadUrlCommandInput}
|
|
61
|
+
* @returns {@link CreateMediaUploadUrlCommandOutput}
|
|
62
|
+
* @see {@link CreateMediaUploadUrlCommandInput} for command's `input` shape.
|
|
63
|
+
* @see {@link CreateMediaUploadUrlCommandOutput} for command's `response` shape.
|
|
64
|
+
* @see {@link OneHookClientResolvedConfig | config} for OneHookClient's `config` shape.
|
|
65
|
+
*
|
|
66
|
+
* @throws {@link BadRequestError} (client fault)
|
|
67
|
+
*
|
|
68
|
+
* @throws {@link ForbiddenError} (client fault)
|
|
69
|
+
*
|
|
70
|
+
* @throws {@link NotFoundError} (client fault)
|
|
71
|
+
*
|
|
72
|
+
* @throws {@link InternalServerError} (server fault)
|
|
73
|
+
*
|
|
74
|
+
* @throws {@link OneHookServiceException}
|
|
75
|
+
* <p>Base exception class for all service exceptions from OneHook service.</p>
|
|
76
|
+
*
|
|
77
|
+
*
|
|
78
|
+
* @public
|
|
79
|
+
*/
|
|
80
|
+
export declare class CreateMediaUploadUrlCommand extends CreateMediaUploadUrlCommand_base {
|
|
81
|
+
/** @internal type navigation helper, not in runtime. */
|
|
82
|
+
protected static __types: {
|
|
83
|
+
api: {
|
|
84
|
+
input: CreateMediaUploadUrlRequest;
|
|
85
|
+
output: CreateMediaUploadUrlResponse;
|
|
86
|
+
};
|
|
87
|
+
sdk: {
|
|
88
|
+
input: CreateMediaUploadUrlCommandInput;
|
|
89
|
+
output: CreateMediaUploadUrlCommandOutput;
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
}
|
|
@@ -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,5 @@
|
|
|
1
|
+
export * from "./CreateMediaDownloadUrlCommand";
|
|
2
|
+
export * from "./CreateMediaUploadUrlCommand";
|
|
1
3
|
export * from "./DeleteMatchMessagesCommand";
|
|
2
4
|
export * from "./DeletePushTokenCommand";
|
|
3
5
|
export * from "./GetChatSettingsCommand";
|
|
@@ -27,6 +29,8 @@ export * from "./ValidateInviteCommand";
|
|
|
27
29
|
export * from "./DiscoverCommand";
|
|
28
30
|
export * from "./GetNotificationPreferencesCommand";
|
|
29
31
|
export * from "./GetPreferencesCommand";
|
|
32
|
+
export * from "./GetReceivedLikesCommand";
|
|
33
|
+
export * from "./GetRosesCommand";
|
|
30
34
|
export * from "./IndexLocationCommand";
|
|
31
35
|
export * from "./RemoveLocationCommand";
|
|
32
36
|
export * from "./SwipeCommand";
|