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
package/README.md
CHANGED
|
@@ -197,6 +197,20 @@ see LICENSE for more information.
|
|
|
197
197
|
|
|
198
198
|
## Client Commands (Operations List)
|
|
199
199
|
|
|
200
|
+
<details>
|
|
201
|
+
<summary>
|
|
202
|
+
CreateMediaDownloadUrl
|
|
203
|
+
</summary>
|
|
204
|
+
|
|
205
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/onehook/command/CreateMediaDownloadUrlCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-onehook/Interface/CreateMediaDownloadUrlCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-onehook/Interface/CreateMediaDownloadUrlCommandOutput/)
|
|
206
|
+
</details>
|
|
207
|
+
<details>
|
|
208
|
+
<summary>
|
|
209
|
+
CreateMediaUploadUrl
|
|
210
|
+
</summary>
|
|
211
|
+
|
|
212
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/onehook/command/CreateMediaUploadUrlCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-onehook/Interface/CreateMediaUploadUrlCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-onehook/Interface/CreateMediaUploadUrlCommandOutput/)
|
|
213
|
+
</details>
|
|
200
214
|
<details>
|
|
201
215
|
<summary>
|
|
202
216
|
DeleteMatchMessages
|
|
@@ -402,6 +416,20 @@ GetPreferences
|
|
|
402
416
|
</details>
|
|
403
417
|
<details>
|
|
404
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>
|
|
405
433
|
IndexLocation
|
|
406
434
|
</summary>
|
|
407
435
|
|
package/dist-cjs/OneHook.js
CHANGED
|
@@ -6,6 +6,8 @@ const AuthSocialCommand_1 = require("./commands/AuthSocialCommand");
|
|
|
6
6
|
const CompleteLivenessSessionCommand_1 = require("./commands/CompleteLivenessSessionCommand");
|
|
7
7
|
const CompleteOnboardingCommand_1 = require("./commands/CompleteOnboardingCommand");
|
|
8
8
|
const CreateLivenessSessionCommand_1 = require("./commands/CreateLivenessSessionCommand");
|
|
9
|
+
const CreateMediaDownloadUrlCommand_1 = require("./commands/CreateMediaDownloadUrlCommand");
|
|
10
|
+
const CreateMediaUploadUrlCommand_1 = require("./commands/CreateMediaUploadUrlCommand");
|
|
9
11
|
const DeleteMatchMessagesCommand_1 = require("./commands/DeleteMatchMessagesCommand");
|
|
10
12
|
const DeleteProfileCommand_1 = require("./commands/DeleteProfileCommand");
|
|
11
13
|
const DeletePushTokenCommand_1 = require("./commands/DeletePushTokenCommand");
|
|
@@ -22,6 +24,8 @@ const GetNotificationPreferencesCommand_1 = require("./commands/GetNotificationP
|
|
|
22
24
|
const GetParticipantRegistryCommand_1 = require("./commands/GetParticipantRegistryCommand");
|
|
23
25
|
const GetPreferencesCommand_1 = require("./commands/GetPreferencesCommand");
|
|
24
26
|
const GetProfileCommand_1 = require("./commands/GetProfileCommand");
|
|
27
|
+
const GetReceivedLikesCommand_1 = require("./commands/GetReceivedLikesCommand");
|
|
28
|
+
const GetRosesCommand_1 = require("./commands/GetRosesCommand");
|
|
25
29
|
const GetStateCommand_1 = require("./commands/GetStateCommand");
|
|
26
30
|
const GetUserByEmailCommand_1 = require("./commands/GetUserByEmailCommand");
|
|
27
31
|
const GetUserCommand_1 = require("./commands/GetUserCommand");
|
|
@@ -53,6 +57,8 @@ const UpgradeUserCommand_1 = require("./commands/UpgradeUserCommand");
|
|
|
53
57
|
const ValidateInviteCommand_1 = require("./commands/ValidateInviteCommand");
|
|
54
58
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
55
59
|
const commands = {
|
|
60
|
+
CreateMediaDownloadUrlCommand: CreateMediaDownloadUrlCommand_1.CreateMediaDownloadUrlCommand,
|
|
61
|
+
CreateMediaUploadUrlCommand: CreateMediaUploadUrlCommand_1.CreateMediaUploadUrlCommand,
|
|
56
62
|
DeleteMatchMessagesCommand: DeleteMatchMessagesCommand_1.DeleteMatchMessagesCommand,
|
|
57
63
|
DeletePushTokenCommand: DeletePushTokenCommand_1.DeletePushTokenCommand,
|
|
58
64
|
GetChatSettingsCommand: GetChatSettingsCommand_1.GetChatSettingsCommand,
|
|
@@ -82,6 +88,8 @@ const commands = {
|
|
|
82
88
|
DiscoverCommand: DiscoverCommand_1.DiscoverCommand,
|
|
83
89
|
GetNotificationPreferencesCommand: GetNotificationPreferencesCommand_1.GetNotificationPreferencesCommand,
|
|
84
90
|
GetPreferencesCommand: GetPreferencesCommand_1.GetPreferencesCommand,
|
|
91
|
+
GetReceivedLikesCommand: GetReceivedLikesCommand_1.GetReceivedLikesCommand,
|
|
92
|
+
GetRosesCommand: GetRosesCommand_1.GetRosesCommand,
|
|
85
93
|
IndexLocationCommand: IndexLocationCommand_1.IndexLocationCommand,
|
|
86
94
|
RemoveLocationCommand: RemoveLocationCommand_1.RemoveLocationCommand,
|
|
87
95
|
SwipeCommand: SwipeCommand_1.SwipeCommand,
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateMediaDownloadUrlCommand = 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 CreateMediaDownloadUrlCommand 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", "CreateMediaDownloadUrl", {})
|
|
15
|
+
.n("OneHookClient", "CreateMediaDownloadUrlCommand")
|
|
16
|
+
.f(void 0, void 0)
|
|
17
|
+
.ser(Aws_restJson1_1.se_CreateMediaDownloadUrlCommand)
|
|
18
|
+
.de(Aws_restJson1_1.de_CreateMediaDownloadUrlCommand)
|
|
19
|
+
.build() {
|
|
20
|
+
}
|
|
21
|
+
exports.CreateMediaDownloadUrlCommand = CreateMediaDownloadUrlCommand;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateMediaUploadUrlCommand = 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 CreateMediaUploadUrlCommand 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", "CreateMediaUploadUrl", {})
|
|
15
|
+
.n("OneHookClient", "CreateMediaUploadUrlCommand")
|
|
16
|
+
.f(void 0, void 0)
|
|
17
|
+
.ser(Aws_restJson1_1.se_CreateMediaUploadUrlCommand)
|
|
18
|
+
.de(Aws_restJson1_1.de_CreateMediaUploadUrlCommand)
|
|
19
|
+
.build() {
|
|
20
|
+
}
|
|
21
|
+
exports.CreateMediaUploadUrlCommand = CreateMediaUploadUrlCommand;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetReceivedLikesCommand = exports.$Command = void 0;
|
|
4
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
class GetReceivedLikesCommand extends smithy_client_1.Command.classBuilder()
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [
|
|
11
|
+
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
12
|
+
];
|
|
13
|
+
})
|
|
14
|
+
.s("OneHookService", "GetReceivedLikes", {})
|
|
15
|
+
.n("OneHookClient", "GetReceivedLikesCommand")
|
|
16
|
+
.f(void 0, void 0)
|
|
17
|
+
.ser(Aws_restJson1_1.se_GetReceivedLikesCommand)
|
|
18
|
+
.de(Aws_restJson1_1.de_GetReceivedLikesCommand)
|
|
19
|
+
.build() {
|
|
20
|
+
}
|
|
21
|
+
exports.GetReceivedLikesCommand = GetReceivedLikesCommand;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetRosesCommand = exports.$Command = void 0;
|
|
4
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
class GetRosesCommand extends smithy_client_1.Command.classBuilder()
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [
|
|
11
|
+
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
12
|
+
];
|
|
13
|
+
})
|
|
14
|
+
.s("OneHookService", "GetRoses", {})
|
|
15
|
+
.n("OneHookClient", "GetRosesCommand")
|
|
16
|
+
.f(void 0, void 0)
|
|
17
|
+
.ser(Aws_restJson1_1.se_GetRosesCommand)
|
|
18
|
+
.de(Aws_restJson1_1.de_GetRosesCommand)
|
|
19
|
+
.build() {
|
|
20
|
+
}
|
|
21
|
+
exports.GetRosesCommand = GetRosesCommand;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./CreateMediaDownloadUrlCommand"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./CreateMediaUploadUrlCommand"), exports);
|
|
4
6
|
tslib_1.__exportStar(require("./DeleteMatchMessagesCommand"), exports);
|
|
5
7
|
tslib_1.__exportStar(require("./DeletePushTokenCommand"), exports);
|
|
6
8
|
tslib_1.__exportStar(require("./GetChatSettingsCommand"), exports);
|
|
@@ -30,6 +32,8 @@ tslib_1.__exportStar(require("./ValidateInviteCommand"), exports);
|
|
|
30
32
|
tslib_1.__exportStar(require("./DiscoverCommand"), exports);
|
|
31
33
|
tslib_1.__exportStar(require("./GetNotificationPreferencesCommand"), exports);
|
|
32
34
|
tslib_1.__exportStar(require("./GetPreferencesCommand"), exports);
|
|
35
|
+
tslib_1.__exportStar(require("./GetReceivedLikesCommand"), exports);
|
|
36
|
+
tslib_1.__exportStar(require("./GetRosesCommand"), exports);
|
|
33
37
|
tslib_1.__exportStar(require("./IndexLocationCommand"), exports);
|
|
34
38
|
tslib_1.__exportStar(require("./RemoveLocationCommand"), exports);
|
|
35
39
|
tslib_1.__exportStar(require("./SwipeCommand"), exports);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CredentialGap = exports.DeviceLimitError = exports.Platform = exports.LastSeenVisibility = exports.NotFoundError = exports.InternalServerError = exports.BadRequestError = exports.ForbiddenError = void 0;
|
|
3
|
+
exports.CredentialGap = exports.DeviceLimitError = exports.Platform = exports.LastSeenVisibility = exports.MediaKind = exports.NotFoundError = exports.InternalServerError = exports.BadRequestError = exports.ForbiddenError = void 0;
|
|
4
4
|
const OneHookServiceException_1 = require("./OneHookServiceException");
|
|
5
5
|
class ForbiddenError extends OneHookServiceException_1.OneHookServiceException {
|
|
6
6
|
name = "ForbiddenError";
|
|
@@ -62,6 +62,12 @@ class NotFoundError extends OneHookServiceException_1.OneHookServiceException {
|
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
64
|
exports.NotFoundError = NotFoundError;
|
|
65
|
+
exports.MediaKind = {
|
|
66
|
+
AUDIO: "AUDIO",
|
|
67
|
+
FILE: "FILE",
|
|
68
|
+
IMAGE: "IMAGE",
|
|
69
|
+
VIDEO: "VIDEO",
|
|
70
|
+
};
|
|
65
71
|
exports.LastSeenVisibility = {
|
|
66
72
|
EVERYONE: "EVERYONE",
|
|
67
73
|
MATCHES: "MATCHES",
|
|
@@ -1,12 +1,48 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
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;
|
|
5
6
|
const OneHookServiceException_1 = require("../models/OneHookServiceException");
|
|
6
7
|
const models_0_1 = require("../models/models_0");
|
|
7
8
|
const core_1 = require("@aws-sdk/core");
|
|
8
9
|
const core_2 = require("@smithy/core");
|
|
9
10
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
11
|
+
const se_CreateMediaDownloadUrlCommand = async (input, context) => {
|
|
12
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
13
|
+
const headers = {
|
|
14
|
+
'content-type': 'application/json',
|
|
15
|
+
};
|
|
16
|
+
b.bp("/chat/media/download-url");
|
|
17
|
+
let body;
|
|
18
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
19
|
+
'matchId': [],
|
|
20
|
+
'objectKey': [],
|
|
21
|
+
}));
|
|
22
|
+
b.m("POST")
|
|
23
|
+
.h(headers)
|
|
24
|
+
.b(body);
|
|
25
|
+
return b.build();
|
|
26
|
+
};
|
|
27
|
+
exports.se_CreateMediaDownloadUrlCommand = se_CreateMediaDownloadUrlCommand;
|
|
28
|
+
const se_CreateMediaUploadUrlCommand = async (input, context) => {
|
|
29
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
30
|
+
const headers = {
|
|
31
|
+
'content-type': 'application/json',
|
|
32
|
+
};
|
|
33
|
+
b.bp("/chat/media/upload-url");
|
|
34
|
+
let body;
|
|
35
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
36
|
+
'contentLength': [],
|
|
37
|
+
'kind': [],
|
|
38
|
+
'matchId': [],
|
|
39
|
+
}));
|
|
40
|
+
b.m("POST")
|
|
41
|
+
.h(headers)
|
|
42
|
+
.b(body);
|
|
43
|
+
return b.build();
|
|
44
|
+
};
|
|
45
|
+
exports.se_CreateMediaUploadUrlCommand = se_CreateMediaUploadUrlCommand;
|
|
10
46
|
const se_DeleteMatchMessagesCommand = async (input, context) => {
|
|
11
47
|
const b = (0, core_2.requestBuilder)(input, context);
|
|
12
48
|
const headers = {};
|
|
@@ -445,6 +481,28 @@ const se_GetPreferencesCommand = async (input, context) => {
|
|
|
445
481
|
return b.build();
|
|
446
482
|
};
|
|
447
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;
|
|
448
506
|
const se_IndexLocationCommand = async (input, context) => {
|
|
449
507
|
const b = (0, core_2.requestBuilder)(input, context);
|
|
450
508
|
const headers = {
|
|
@@ -487,7 +545,11 @@ const se_SwipeCommand = async (input, context) => {
|
|
|
487
545
|
b.bp("/matching/swipe");
|
|
488
546
|
let body;
|
|
489
547
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
548
|
+
'comment': [],
|
|
490
549
|
'direction': [],
|
|
550
|
+
'likeKind': [],
|
|
551
|
+
'likeTargetRef': [],
|
|
552
|
+
'likeTargetType': [],
|
|
491
553
|
'targetId': [],
|
|
492
554
|
'viewedSection': [],
|
|
493
555
|
}));
|
|
@@ -789,6 +851,39 @@ const se_UpgradeUserCommand = async (input, context) => {
|
|
|
789
851
|
return b.build();
|
|
790
852
|
};
|
|
791
853
|
exports.se_UpgradeUserCommand = se_UpgradeUserCommand;
|
|
854
|
+
const de_CreateMediaDownloadUrlCommand = async (output, context) => {
|
|
855
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
856
|
+
return de_CommandError(output, context);
|
|
857
|
+
}
|
|
858
|
+
const contents = (0, smithy_client_1.map)({
|
|
859
|
+
$metadata: deserializeMetadata(output),
|
|
860
|
+
});
|
|
861
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
862
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
863
|
+
'downloadUrl': smithy_client_1.expectString,
|
|
864
|
+
'expiresInSeconds': smithy_client_1.expectInt32,
|
|
865
|
+
});
|
|
866
|
+
Object.assign(contents, doc);
|
|
867
|
+
return contents;
|
|
868
|
+
};
|
|
869
|
+
exports.de_CreateMediaDownloadUrlCommand = de_CreateMediaDownloadUrlCommand;
|
|
870
|
+
const de_CreateMediaUploadUrlCommand = async (output, context) => {
|
|
871
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
872
|
+
return de_CommandError(output, context);
|
|
873
|
+
}
|
|
874
|
+
const contents = (0, smithy_client_1.map)({
|
|
875
|
+
$metadata: deserializeMetadata(output),
|
|
876
|
+
});
|
|
877
|
+
const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
|
|
878
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
879
|
+
'expiresInSeconds': smithy_client_1.expectInt32,
|
|
880
|
+
'objectKey': smithy_client_1.expectString,
|
|
881
|
+
'uploadUrl': smithy_client_1.expectString,
|
|
882
|
+
});
|
|
883
|
+
Object.assign(contents, doc);
|
|
884
|
+
return contents;
|
|
885
|
+
};
|
|
886
|
+
exports.de_CreateMediaUploadUrlCommand = de_CreateMediaUploadUrlCommand;
|
|
792
887
|
const de_DeleteMatchMessagesCommand = async (output, context) => {
|
|
793
888
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
794
889
|
return de_CommandError(output, context);
|
|
@@ -1299,6 +1394,39 @@ const de_GetPreferencesCommand = async (output, context) => {
|
|
|
1299
1394
|
return contents;
|
|
1300
1395
|
};
|
|
1301
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;
|
|
1302
1430
|
const de_IndexLocationCommand = async (output, context) => {
|
|
1303
1431
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1304
1432
|
return de_CommandError(output, context);
|
package/dist-es/OneHook.js
CHANGED
|
@@ -3,6 +3,8 @@ import { AuthSocialCommand, } from "./commands/AuthSocialCommand";
|
|
|
3
3
|
import { CompleteLivenessSessionCommand, } from "./commands/CompleteLivenessSessionCommand";
|
|
4
4
|
import { CompleteOnboardingCommand, } from "./commands/CompleteOnboardingCommand";
|
|
5
5
|
import { CreateLivenessSessionCommand, } from "./commands/CreateLivenessSessionCommand";
|
|
6
|
+
import { CreateMediaDownloadUrlCommand, } from "./commands/CreateMediaDownloadUrlCommand";
|
|
7
|
+
import { CreateMediaUploadUrlCommand, } from "./commands/CreateMediaUploadUrlCommand";
|
|
6
8
|
import { DeleteMatchMessagesCommand, } from "./commands/DeleteMatchMessagesCommand";
|
|
7
9
|
import { DeleteProfileCommand, } from "./commands/DeleteProfileCommand";
|
|
8
10
|
import { DeletePushTokenCommand, } from "./commands/DeletePushTokenCommand";
|
|
@@ -19,6 +21,8 @@ import { GetNotificationPreferencesCommand, } from "./commands/GetNotificationPr
|
|
|
19
21
|
import { GetParticipantRegistryCommand, } from "./commands/GetParticipantRegistryCommand";
|
|
20
22
|
import { GetPreferencesCommand, } from "./commands/GetPreferencesCommand";
|
|
21
23
|
import { GetProfileCommand, } from "./commands/GetProfileCommand";
|
|
24
|
+
import { GetReceivedLikesCommand, } from "./commands/GetReceivedLikesCommand";
|
|
25
|
+
import { GetRosesCommand, } from "./commands/GetRosesCommand";
|
|
22
26
|
import { GetStateCommand, } from "./commands/GetStateCommand";
|
|
23
27
|
import { GetUserByEmailCommand, } from "./commands/GetUserByEmailCommand";
|
|
24
28
|
import { GetUserCommand, } from "./commands/GetUserCommand";
|
|
@@ -50,6 +54,8 @@ import { UpgradeUserCommand, } from "./commands/UpgradeUserCommand";
|
|
|
50
54
|
import { ValidateInviteCommand, } from "./commands/ValidateInviteCommand";
|
|
51
55
|
import { createAggregatedClient } from "@smithy/smithy-client";
|
|
52
56
|
const commands = {
|
|
57
|
+
CreateMediaDownloadUrlCommand,
|
|
58
|
+
CreateMediaUploadUrlCommand,
|
|
53
59
|
DeleteMatchMessagesCommand,
|
|
54
60
|
DeletePushTokenCommand,
|
|
55
61
|
GetChatSettingsCommand,
|
|
@@ -79,6 +85,8 @@ const commands = {
|
|
|
79
85
|
DiscoverCommand,
|
|
80
86
|
GetNotificationPreferencesCommand,
|
|
81
87
|
GetPreferencesCommand,
|
|
88
|
+
GetReceivedLikesCommand,
|
|
89
|
+
GetRosesCommand,
|
|
82
90
|
IndexLocationCommand,
|
|
83
91
|
RemoveLocationCommand,
|
|
84
92
|
SwipeCommand,
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { de_CreateMediaDownloadUrlCommand, se_CreateMediaDownloadUrlCommand, } 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 CreateMediaDownloadUrlCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("OneHookService", "CreateMediaDownloadUrl", {})
|
|
12
|
+
.n("OneHookClient", "CreateMediaDownloadUrlCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_CreateMediaDownloadUrlCommand)
|
|
15
|
+
.de(de_CreateMediaDownloadUrlCommand)
|
|
16
|
+
.build() {
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { de_CreateMediaUploadUrlCommand, se_CreateMediaUploadUrlCommand, } 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 CreateMediaUploadUrlCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("OneHookService", "CreateMediaUploadUrl", {})
|
|
12
|
+
.n("OneHookClient", "CreateMediaUploadUrlCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_CreateMediaUploadUrlCommand)
|
|
15
|
+
.de(de_CreateMediaUploadUrlCommand)
|
|
16
|
+
.build() {
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { de_GetReceivedLikesCommand, se_GetReceivedLikesCommand, } from "../protocols/Aws_restJson1";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
export { $Command };
|
|
5
|
+
export class GetReceivedLikesCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("OneHookService", "GetReceivedLikes", {})
|
|
12
|
+
.n("OneHookClient", "GetReceivedLikesCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_GetReceivedLikesCommand)
|
|
15
|
+
.de(de_GetReceivedLikesCommand)
|
|
16
|
+
.build() {
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { de_GetRosesCommand, se_GetRosesCommand, } from "../protocols/Aws_restJson1";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
export { $Command };
|
|
5
|
+
export class GetRosesCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("OneHookService", "GetRoses", {})
|
|
12
|
+
.n("OneHookClient", "GetRosesCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_GetRosesCommand)
|
|
15
|
+
.de(de_GetRosesCommand)
|
|
16
|
+
.build() {
|
|
17
|
+
}
|
|
@@ -1,3 +1,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";
|
|
@@ -55,6 +55,12 @@ export class NotFoundError extends __BaseException {
|
|
|
55
55
|
this.error = opts.error;
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
|
+
export const MediaKind = {
|
|
59
|
+
AUDIO: "AUDIO",
|
|
60
|
+
FILE: "FILE",
|
|
61
|
+
IMAGE: "IMAGE",
|
|
62
|
+
VIDEO: "VIDEO",
|
|
63
|
+
};
|
|
58
64
|
export const LastSeenVisibility = {
|
|
59
65
|
EVERYONE: "EVERYONE",
|
|
60
66
|
MATCHES: "MATCHES",
|