onehook-api-client 1.0.5 → 1.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -381,6 +381,13 @@ DeleteProfile
381
381
  </details>
382
382
  <details>
383
383
  <summary>
384
+ GenerateDownloadUrl
385
+ </summary>
386
+
387
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/onehook/command/GenerateDownloadUrlCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-onehook/Interface/GenerateDownloadUrlCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-onehook/Interface/GenerateDownloadUrlCommandOutput/)
388
+ </details>
389
+ <details>
390
+ <summary>
384
391
  GenerateUploadUrl
385
392
  </summary>
386
393
 
@@ -388,6 +395,13 @@ GenerateUploadUrl
388
395
  </details>
389
396
  <details>
390
397
  <summary>
398
+ GetLivenessStatus
399
+ </summary>
400
+
401
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/onehook/command/GetLivenessStatusCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-onehook/Interface/GetLivenessStatusCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-onehook/Interface/GetLivenessStatusCommandOutput/)
402
+ </details>
403
+ <details>
404
+ <summary>
391
405
  GetMyProfile
392
406
  </summary>
393
407
 
@@ -10,8 +10,10 @@ const CreateLivenessSessionCommand_1 = require("./commands/CreateLivenessSession
10
10
  const DeleteMatchMessagesCommand_1 = require("./commands/DeleteMatchMessagesCommand");
11
11
  const DeleteProfileCommand_1 = require("./commands/DeleteProfileCommand");
12
12
  const DiscoverCommand_1 = require("./commands/DiscoverCommand");
13
+ const GenerateDownloadUrlCommand_1 = require("./commands/GenerateDownloadUrlCommand");
13
14
  const GenerateInviteCommand_1 = require("./commands/GenerateInviteCommand");
14
15
  const GenerateUploadUrlCommand_1 = require("./commands/GenerateUploadUrlCommand");
16
+ const GetLivenessStatusCommand_1 = require("./commands/GetLivenessStatusCommand");
15
17
  const GetMatchCommand_1 = require("./commands/GetMatchCommand");
16
18
  const GetMyProfileCommand_1 = require("./commands/GetMyProfileCommand");
17
19
  const GetPreferencesCommand_1 = require("./commands/GetPreferencesCommand");
@@ -66,7 +68,9 @@ const commands = {
66
68
  CompleteLivenessSessionCommand: CompleteLivenessSessionCommand_1.CompleteLivenessSessionCommand,
67
69
  CreateLivenessSessionCommand: CreateLivenessSessionCommand_1.CreateLivenessSessionCommand,
68
70
  DeleteProfileCommand: DeleteProfileCommand_1.DeleteProfileCommand,
71
+ GenerateDownloadUrlCommand: GenerateDownloadUrlCommand_1.GenerateDownloadUrlCommand,
69
72
  GenerateUploadUrlCommand: GenerateUploadUrlCommand_1.GenerateUploadUrlCommand,
73
+ GetLivenessStatusCommand: GetLivenessStatusCommand_1.GetLivenessStatusCommand,
70
74
  GetMyProfileCommand: GetMyProfileCommand_1.GetMyProfileCommand,
71
75
  GetProfileCommand: GetProfileCommand_1.GetProfileCommand,
72
76
  UpdateProfileCommand: UpdateProfileCommand_1.UpdateProfileCommand,
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GenerateDownloadUrlCommand = 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 GenerateDownloadUrlCommand 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", "GenerateDownloadUrl", {})
15
+ .n("OneHookClient", "GenerateDownloadUrlCommand")
16
+ .f(void 0, void 0)
17
+ .ser(Aws_restJson1_1.se_GenerateDownloadUrlCommand)
18
+ .de(Aws_restJson1_1.de_GenerateDownloadUrlCommand)
19
+ .build() {
20
+ }
21
+ exports.GenerateDownloadUrlCommand = GenerateDownloadUrlCommand;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetLivenessStatusCommand = 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 GetLivenessStatusCommand 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", "GetLivenessStatus", {})
15
+ .n("OneHookClient", "GetLivenessStatusCommand")
16
+ .f(void 0, void 0)
17
+ .ser(Aws_restJson1_1.se_GetLivenessStatusCommand)
18
+ .de(Aws_restJson1_1.de_GetLivenessStatusCommand)
19
+ .build() {
20
+ }
21
+ exports.GetLivenessStatusCommand = GetLivenessStatusCommand;
@@ -27,7 +27,9 @@ tslib_1.__exportStar(require("./UpdatePreferencesCommand"), exports);
27
27
  tslib_1.__exportStar(require("./CompleteLivenessSessionCommand"), exports);
28
28
  tslib_1.__exportStar(require("./CreateLivenessSessionCommand"), exports);
29
29
  tslib_1.__exportStar(require("./DeleteProfileCommand"), exports);
30
+ tslib_1.__exportStar(require("./GenerateDownloadUrlCommand"), exports);
30
31
  tslib_1.__exportStar(require("./GenerateUploadUrlCommand"), exports);
32
+ tslib_1.__exportStar(require("./GetLivenessStatusCommand"), exports);
31
33
  tslib_1.__exportStar(require("./GetMyProfileCommand"), exports);
32
34
  tslib_1.__exportStar(require("./GetProfileCommand"), exports);
33
35
  tslib_1.__exportStar(require("./UpdateProfileCommand"), exports);
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.de_UnlinkSocialCommand = exports.de_RequestPhoneUpdateOtpCommand = exports.de_RequestPhoneOtpCommand = exports.de_RequestEmailOtpCommand = exports.de_RegisterPhoneCommand = exports.de_LinkSocialCommand = exports.de_LinkEmailCommand = exports.de_GetUserByEmailCommand = exports.de_GetUserCommand = exports.de_GenerateInviteCommand = exports.de_AuthSocialCommand = exports.de_UploadPreKeysCommand = exports.de_DeleteMatchMessagesCommand = exports.de_ClaimPreKeyBundleCommand = exports.se_UpgradeUserCommand = exports.se_UnhookCommand = exports.se_InitUserCommand = exports.se_GetStateCommand = exports.se_GetMatchCommand = exports.se_CompleteOnboardingCommand = exports.se_UpdateProfileCommand = exports.se_GetProfileCommand = exports.se_GetMyProfileCommand = exports.se_GenerateUploadUrlCommand = exports.se_DeleteProfileCommand = exports.se_CreateLivenessSessionCommand = exports.se_CompleteLivenessSessionCommand = exports.se_UpdatePreferencesCommand = exports.se_SwipeCommand = exports.se_RemoveLocationCommand = exports.se_IndexLocationCommand = exports.se_GetPreferencesCommand = exports.se_DiscoverCommand = exports.se_ValidateInviteCommand = 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_GetUserByEmailCommand = exports.se_GetUserCommand = exports.se_GenerateInviteCommand = exports.se_AuthSocialCommand = exports.se_UploadPreKeysCommand = exports.se_DeleteMatchMessagesCommand = exports.se_ClaimPreKeyBundleCommand = void 0;
4
- exports.de_UpgradeUserCommand = exports.de_UnhookCommand = exports.de_InitUserCommand = exports.de_GetStateCommand = exports.de_GetMatchCommand = exports.de_CompleteOnboardingCommand = exports.de_UpdateProfileCommand = exports.de_GetProfileCommand = exports.de_GetMyProfileCommand = exports.de_GenerateUploadUrlCommand = exports.de_DeleteProfileCommand = exports.de_CreateLivenessSessionCommand = exports.de_CompleteLivenessSessionCommand = exports.de_UpdatePreferencesCommand = exports.de_SwipeCommand = exports.de_RemoveLocationCommand = exports.de_IndexLocationCommand = exports.de_GetPreferencesCommand = exports.de_DiscoverCommand = exports.de_ValidateInviteCommand = exports.de_UpdatePhoneNumberCommand = exports.de_UpdateEntitlementsCommand = void 0;
3
+ exports.de_RequestPhoneOtpCommand = exports.de_RequestEmailOtpCommand = exports.de_RegisterPhoneCommand = exports.de_LinkSocialCommand = exports.de_LinkEmailCommand = exports.de_GetUserByEmailCommand = exports.de_GetUserCommand = exports.de_GenerateInviteCommand = exports.de_AuthSocialCommand = exports.de_UploadPreKeysCommand = exports.de_DeleteMatchMessagesCommand = exports.de_ClaimPreKeyBundleCommand = exports.se_UpgradeUserCommand = exports.se_UnhookCommand = exports.se_InitUserCommand = exports.se_GetStateCommand = exports.se_GetMatchCommand = exports.se_CompleteOnboardingCommand = exports.se_UpdateProfileCommand = exports.se_GetProfileCommand = exports.se_GetMyProfileCommand = exports.se_GetLivenessStatusCommand = exports.se_GenerateUploadUrlCommand = exports.se_GenerateDownloadUrlCommand = exports.se_DeleteProfileCommand = exports.se_CreateLivenessSessionCommand = exports.se_CompleteLivenessSessionCommand = exports.se_UpdatePreferencesCommand = exports.se_SwipeCommand = exports.se_RemoveLocationCommand = exports.se_IndexLocationCommand = exports.se_GetPreferencesCommand = exports.se_DiscoverCommand = exports.se_ValidateInviteCommand = 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_GetUserByEmailCommand = exports.se_GetUserCommand = exports.se_GenerateInviteCommand = exports.se_AuthSocialCommand = exports.se_UploadPreKeysCommand = exports.se_DeleteMatchMessagesCommand = exports.se_ClaimPreKeyBundleCommand = void 0;
4
+ exports.de_UpgradeUserCommand = exports.de_UnhookCommand = exports.de_InitUserCommand = exports.de_GetStateCommand = exports.de_GetMatchCommand = exports.de_CompleteOnboardingCommand = exports.de_UpdateProfileCommand = exports.de_GetProfileCommand = exports.de_GetMyProfileCommand = exports.de_GetLivenessStatusCommand = exports.de_GenerateUploadUrlCommand = exports.de_GenerateDownloadUrlCommand = exports.de_DeleteProfileCommand = exports.de_CreateLivenessSessionCommand = exports.de_CompleteLivenessSessionCommand = exports.de_UpdatePreferencesCommand = exports.de_SwipeCommand = exports.de_RemoveLocationCommand = exports.de_IndexLocationCommand = exports.de_GetPreferencesCommand = exports.de_DiscoverCommand = exports.de_ValidateInviteCommand = exports.de_UpdatePhoneNumberCommand = exports.de_UpdateEntitlementsCommand = exports.de_UnlinkSocialCommand = exports.de_RequestPhoneUpdateOtpCommand = void 0;
5
5
  const OneHookServiceException_1 = require("../models/OneHookServiceException");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const core_1 = require("@aws-sdk/core");
@@ -413,6 +413,21 @@ const se_DeleteProfileCommand = async (input, context) => {
413
413
  return b.build();
414
414
  };
415
415
  exports.se_DeleteProfileCommand = se_DeleteProfileCommand;
416
+ const se_GenerateDownloadUrlCommand = async (input, context) => {
417
+ const b = (0, core_2.requestBuilder)(input, context);
418
+ const headers = {};
419
+ b.bp("/profile/media/download-url");
420
+ const query = (0, smithy_client_1.map)({
421
+ [_k]: [, (0, smithy_client_1.expectNonNull)(input[_k], `key`)],
422
+ });
423
+ let body;
424
+ b.m("GET")
425
+ .h(headers)
426
+ .q(query)
427
+ .b(body);
428
+ return b.build();
429
+ };
430
+ exports.se_GenerateDownloadUrlCommand = se_GenerateDownloadUrlCommand;
416
431
  const se_GenerateUploadUrlCommand = async (input, context) => {
417
432
  const b = (0, core_2.requestBuilder)(input, context);
418
433
  const headers = {
@@ -430,6 +445,17 @@ const se_GenerateUploadUrlCommand = async (input, context) => {
430
445
  return b.build();
431
446
  };
432
447
  exports.se_GenerateUploadUrlCommand = se_GenerateUploadUrlCommand;
448
+ const se_GetLivenessStatusCommand = async (input, context) => {
449
+ const b = (0, core_2.requestBuilder)(input, context);
450
+ const headers = {};
451
+ b.bp("/profile/liveness/status");
452
+ let body;
453
+ b.m("GET")
454
+ .h(headers)
455
+ .b(body);
456
+ return b.build();
457
+ };
458
+ exports.se_GetLivenessStatusCommand = se_GetLivenessStatusCommand;
433
459
  const se_GetMyProfileCommand = async (input, context) => {
434
460
  const b = (0, core_2.requestBuilder)(input, context);
435
461
  const headers = {};
@@ -1001,6 +1027,22 @@ const de_DeleteProfileCommand = async (output, context) => {
1001
1027
  return contents;
1002
1028
  };
1003
1029
  exports.de_DeleteProfileCommand = de_DeleteProfileCommand;
1030
+ const de_GenerateDownloadUrlCommand = async (output, context) => {
1031
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1032
+ return de_CommandError(output, context);
1033
+ }
1034
+ const contents = (0, smithy_client_1.map)({
1035
+ $metadata: deserializeMetadata(output),
1036
+ });
1037
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1038
+ const doc = (0, smithy_client_1.take)(data, {
1039
+ 'downloadUrl': smithy_client_1.expectString,
1040
+ 'expiresInSeconds': smithy_client_1.expectInt32,
1041
+ });
1042
+ Object.assign(contents, doc);
1043
+ return contents;
1044
+ };
1045
+ exports.de_GenerateDownloadUrlCommand = de_GenerateDownloadUrlCommand;
1004
1046
  const de_GenerateUploadUrlCommand = async (output, context) => {
1005
1047
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1006
1048
  return de_CommandError(output, context);
@@ -1018,6 +1060,21 @@ const de_GenerateUploadUrlCommand = async (output, context) => {
1018
1060
  return contents;
1019
1061
  };
1020
1062
  exports.de_GenerateUploadUrlCommand = de_GenerateUploadUrlCommand;
1063
+ const de_GetLivenessStatusCommand = async (output, context) => {
1064
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1065
+ return de_CommandError(output, context);
1066
+ }
1067
+ const contents = (0, smithy_client_1.map)({
1068
+ $metadata: deserializeMetadata(output),
1069
+ });
1070
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1071
+ const doc = (0, smithy_client_1.take)(data, {
1072
+ 'status': smithy_client_1.expectString,
1073
+ });
1074
+ Object.assign(contents, doc);
1075
+ return contents;
1076
+ };
1077
+ exports.de_GetLivenessStatusCommand = de_GetLivenessStatusCommand;
1021
1078
  const de_GetMyProfileCommand = async (output, context) => {
1022
1079
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1023
1080
  return de_CommandError(output, context);
@@ -1041,6 +1098,7 @@ const de_GetMyProfileCommand = async (output, context) => {
1041
1098
  'educationLevel': smithy_client_1.expectString,
1042
1099
  'exercise': smithy_client_1.expectString,
1043
1100
  'familyPlans': smithy_client_1.expectString,
1101
+ 'fieldModerationStatus': smithy_client_1._json,
1044
1102
  'gender': smithy_client_1.expectString,
1045
1103
  'height': smithy_client_1.expectInt32,
1046
1104
  'hometown': smithy_client_1.expectString,
@@ -1092,6 +1150,7 @@ const de_GetProfileCommand = async (output, context) => {
1092
1150
  'educationLevel': smithy_client_1.expectString,
1093
1151
  'exercise': smithy_client_1.expectString,
1094
1152
  'familyPlans': smithy_client_1.expectString,
1153
+ 'fieldModerationStatus': smithy_client_1._json,
1095
1154
  'gender': smithy_client_1.expectString,
1096
1155
  'height': smithy_client_1.expectInt32,
1097
1156
  'hometown': smithy_client_1.expectString,
@@ -1344,6 +1403,7 @@ const deserializeMetadata = (output) => ({
1344
1403
  cfId: output.headers["x-amz-cf-id"],
1345
1404
  });
1346
1405
  const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then(body => context.utf8Encoder(body));
1406
+ const _k = "key";
1347
1407
  const _l = "lat";
1348
1408
  const _lo = "lon";
1349
1409
  const _mI = "matchId";
@@ -7,8 +7,10 @@ import { CreateLivenessSessionCommand, } from "./commands/CreateLivenessSessionC
7
7
  import { DeleteMatchMessagesCommand, } from "./commands/DeleteMatchMessagesCommand";
8
8
  import { DeleteProfileCommand, } from "./commands/DeleteProfileCommand";
9
9
  import { DiscoverCommand, } from "./commands/DiscoverCommand";
10
+ import { GenerateDownloadUrlCommand, } from "./commands/GenerateDownloadUrlCommand";
10
11
  import { GenerateInviteCommand, } from "./commands/GenerateInviteCommand";
11
12
  import { GenerateUploadUrlCommand, } from "./commands/GenerateUploadUrlCommand";
13
+ import { GetLivenessStatusCommand, } from "./commands/GetLivenessStatusCommand";
12
14
  import { GetMatchCommand, } from "./commands/GetMatchCommand";
13
15
  import { GetMyProfileCommand, } from "./commands/GetMyProfileCommand";
14
16
  import { GetPreferencesCommand, } from "./commands/GetPreferencesCommand";
@@ -63,7 +65,9 @@ const commands = {
63
65
  CompleteLivenessSessionCommand,
64
66
  CreateLivenessSessionCommand,
65
67
  DeleteProfileCommand,
68
+ GenerateDownloadUrlCommand,
66
69
  GenerateUploadUrlCommand,
70
+ GetLivenessStatusCommand,
67
71
  GetMyProfileCommand,
68
72
  GetProfileCommand,
69
73
  UpdateProfileCommand,
@@ -0,0 +1,17 @@
1
+ import { de_GenerateDownloadUrlCommand, se_GenerateDownloadUrlCommand, } 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 GenerateDownloadUrlCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("OneHookService", "GenerateDownloadUrl", {})
12
+ .n("OneHookClient", "GenerateDownloadUrlCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_GenerateDownloadUrlCommand)
15
+ .de(de_GenerateDownloadUrlCommand)
16
+ .build() {
17
+ }
@@ -0,0 +1,17 @@
1
+ import { de_GetLivenessStatusCommand, se_GetLivenessStatusCommand, } 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 GetLivenessStatusCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("OneHookService", "GetLivenessStatus", {})
12
+ .n("OneHookClient", "GetLivenessStatusCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_GetLivenessStatusCommand)
15
+ .de(de_GetLivenessStatusCommand)
16
+ .build() {
17
+ }
@@ -24,7 +24,9 @@ export * from "./UpdatePreferencesCommand";
24
24
  export * from "./CompleteLivenessSessionCommand";
25
25
  export * from "./CreateLivenessSessionCommand";
26
26
  export * from "./DeleteProfileCommand";
27
+ export * from "./GenerateDownloadUrlCommand";
27
28
  export * from "./GenerateUploadUrlCommand";
29
+ export * from "./GetLivenessStatusCommand";
28
30
  export * from "./GetMyProfileCommand";
29
31
  export * from "./GetProfileCommand";
30
32
  export * from "./UpdateProfileCommand";
@@ -383,6 +383,20 @@ export const se_DeleteProfileCommand = async (input, context) => {
383
383
  .b(body);
384
384
  return b.build();
385
385
  };
386
+ export const se_GenerateDownloadUrlCommand = async (input, context) => {
387
+ const b = rb(input, context);
388
+ const headers = {};
389
+ b.bp("/profile/media/download-url");
390
+ const query = map({
391
+ [_k]: [, __expectNonNull(input[_k], `key`)],
392
+ });
393
+ let body;
394
+ b.m("GET")
395
+ .h(headers)
396
+ .q(query)
397
+ .b(body);
398
+ return b.build();
399
+ };
386
400
  export const se_GenerateUploadUrlCommand = async (input, context) => {
387
401
  const b = rb(input, context);
388
402
  const headers = {
@@ -399,6 +413,16 @@ export const se_GenerateUploadUrlCommand = async (input, context) => {
399
413
  .b(body);
400
414
  return b.build();
401
415
  };
416
+ export const se_GetLivenessStatusCommand = async (input, context) => {
417
+ const b = rb(input, context);
418
+ const headers = {};
419
+ b.bp("/profile/liveness/status");
420
+ let body;
421
+ b.m("GET")
422
+ .h(headers)
423
+ .b(body);
424
+ return b.build();
425
+ };
402
426
  export const se_GetMyProfileCommand = async (input, context) => {
403
427
  const b = rb(input, context);
404
428
  const headers = {};
@@ -935,6 +959,21 @@ export const de_DeleteProfileCommand = async (output, context) => {
935
959
  Object.assign(contents, doc);
936
960
  return contents;
937
961
  };
962
+ export const de_GenerateDownloadUrlCommand = async (output, context) => {
963
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
964
+ return de_CommandError(output, context);
965
+ }
966
+ const contents = map({
967
+ $metadata: deserializeMetadata(output),
968
+ });
969
+ const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
970
+ const doc = take(data, {
971
+ 'downloadUrl': __expectString,
972
+ 'expiresInSeconds': __expectInt32,
973
+ });
974
+ Object.assign(contents, doc);
975
+ return contents;
976
+ };
938
977
  export const de_GenerateUploadUrlCommand = async (output, context) => {
939
978
  if (output.statusCode !== 200 && output.statusCode >= 300) {
940
979
  return de_CommandError(output, context);
@@ -951,6 +990,20 @@ export const de_GenerateUploadUrlCommand = async (output, context) => {
951
990
  Object.assign(contents, doc);
952
991
  return contents;
953
992
  };
993
+ export const de_GetLivenessStatusCommand = async (output, context) => {
994
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
995
+ return de_CommandError(output, context);
996
+ }
997
+ const contents = map({
998
+ $metadata: deserializeMetadata(output),
999
+ });
1000
+ const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
1001
+ const doc = take(data, {
1002
+ 'status': __expectString,
1003
+ });
1004
+ Object.assign(contents, doc);
1005
+ return contents;
1006
+ };
954
1007
  export const de_GetMyProfileCommand = async (output, context) => {
955
1008
  if (output.statusCode !== 200 && output.statusCode >= 300) {
956
1009
  return de_CommandError(output, context);
@@ -974,6 +1027,7 @@ export const de_GetMyProfileCommand = async (output, context) => {
974
1027
  'educationLevel': __expectString,
975
1028
  'exercise': __expectString,
976
1029
  'familyPlans': __expectString,
1030
+ 'fieldModerationStatus': _json,
977
1031
  'gender': __expectString,
978
1032
  'height': __expectInt32,
979
1033
  'hometown': __expectString,
@@ -1024,6 +1078,7 @@ export const de_GetProfileCommand = async (output, context) => {
1024
1078
  'educationLevel': __expectString,
1025
1079
  'exercise': __expectString,
1026
1080
  'familyPlans': __expectString,
1081
+ 'fieldModerationStatus': _json,
1027
1082
  'gender': __expectString,
1028
1083
  'height': __expectInt32,
1029
1084
  'hometown': __expectString,
@@ -1268,6 +1323,7 @@ const deserializeMetadata = (output) => ({
1268
1323
  cfId: output.headers["x-amz-cf-id"],
1269
1324
  });
1270
1325
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then(body => context.utf8Encoder(body));
1326
+ const _k = "key";
1271
1327
  const _l = "lat";
1272
1328
  const _lo = "lon";
1273
1329
  const _mI = "matchId";
@@ -7,8 +7,10 @@ import { CreateLivenessSessionCommandInput, CreateLivenessSessionCommandOutput }
7
7
  import { DeleteMatchMessagesCommandInput, DeleteMatchMessagesCommandOutput } from "./commands/DeleteMatchMessagesCommand";
8
8
  import { DeleteProfileCommandInput, DeleteProfileCommandOutput } from "./commands/DeleteProfileCommand";
9
9
  import { DiscoverCommandInput, DiscoverCommandOutput } from "./commands/DiscoverCommand";
10
+ import { GenerateDownloadUrlCommandInput, GenerateDownloadUrlCommandOutput } from "./commands/GenerateDownloadUrlCommand";
10
11
  import { GenerateInviteCommandInput, GenerateInviteCommandOutput } from "./commands/GenerateInviteCommand";
11
12
  import { GenerateUploadUrlCommandInput, GenerateUploadUrlCommandOutput } from "./commands/GenerateUploadUrlCommand";
13
+ import { GetLivenessStatusCommandInput, GetLivenessStatusCommandOutput } from "./commands/GetLivenessStatusCommand";
12
14
  import { GetMatchCommandInput, GetMatchCommandOutput } from "./commands/GetMatchCommand";
13
15
  import { GetMyProfileCommandInput, GetMyProfileCommandOutput } from "./commands/GetMyProfileCommand";
14
16
  import { GetPreferencesCommandInput, GetPreferencesCommandOutput } from "./commands/GetPreferencesCommand";
@@ -194,12 +196,25 @@ export interface OneHook {
194
196
  deleteProfile(args: DeleteProfileCommandInput, options?: __HttpHandlerOptions): Promise<DeleteProfileCommandOutput>;
195
197
  deleteProfile(args: DeleteProfileCommandInput, cb: (err: any, data?: DeleteProfileCommandOutput) => void): void;
196
198
  deleteProfile(args: DeleteProfileCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteProfileCommandOutput) => void): void;
199
+ /**
200
+ * @see {@link GenerateDownloadUrlCommand}
201
+ */
202
+ generateDownloadUrl(args: GenerateDownloadUrlCommandInput, options?: __HttpHandlerOptions): Promise<GenerateDownloadUrlCommandOutput>;
203
+ generateDownloadUrl(args: GenerateDownloadUrlCommandInput, cb: (err: any, data?: GenerateDownloadUrlCommandOutput) => void): void;
204
+ generateDownloadUrl(args: GenerateDownloadUrlCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GenerateDownloadUrlCommandOutput) => void): void;
197
205
  /**
198
206
  * @see {@link GenerateUploadUrlCommand}
199
207
  */
200
208
  generateUploadUrl(args: GenerateUploadUrlCommandInput, options?: __HttpHandlerOptions): Promise<GenerateUploadUrlCommandOutput>;
201
209
  generateUploadUrl(args: GenerateUploadUrlCommandInput, cb: (err: any, data?: GenerateUploadUrlCommandOutput) => void): void;
202
210
  generateUploadUrl(args: GenerateUploadUrlCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GenerateUploadUrlCommandOutput) => void): void;
211
+ /**
212
+ * @see {@link GetLivenessStatusCommand}
213
+ */
214
+ getLivenessStatus(): Promise<GetLivenessStatusCommandOutput>;
215
+ getLivenessStatus(args: GetLivenessStatusCommandInput, options?: __HttpHandlerOptions): Promise<GetLivenessStatusCommandOutput>;
216
+ getLivenessStatus(args: GetLivenessStatusCommandInput, cb: (err: any, data?: GetLivenessStatusCommandOutput) => void): void;
217
+ getLivenessStatus(args: GetLivenessStatusCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetLivenessStatusCommandOutput) => void): void;
203
218
  /**
204
219
  * @see {@link GetMyProfileCommand}
205
220
  */
@@ -7,8 +7,10 @@ import { CreateLivenessSessionCommandInput, CreateLivenessSessionCommandOutput }
7
7
  import { DeleteMatchMessagesCommandInput, DeleteMatchMessagesCommandOutput } from "./commands/DeleteMatchMessagesCommand";
8
8
  import { DeleteProfileCommandInput, DeleteProfileCommandOutput } from "./commands/DeleteProfileCommand";
9
9
  import { DiscoverCommandInput, DiscoverCommandOutput } from "./commands/DiscoverCommand";
10
+ import { GenerateDownloadUrlCommandInput, GenerateDownloadUrlCommandOutput } from "./commands/GenerateDownloadUrlCommand";
10
11
  import { GenerateInviteCommandInput, GenerateInviteCommandOutput } from "./commands/GenerateInviteCommand";
11
12
  import { GenerateUploadUrlCommandInput, GenerateUploadUrlCommandOutput } from "./commands/GenerateUploadUrlCommand";
13
+ import { GetLivenessStatusCommandInput, GetLivenessStatusCommandOutput } from "./commands/GetLivenessStatusCommand";
12
14
  import { GetMatchCommandInput, GetMatchCommandOutput } from "./commands/GetMatchCommand";
13
15
  import { GetMyProfileCommandInput, GetMyProfileCommandOutput } from "./commands/GetMyProfileCommand";
14
16
  import { GetPreferencesCommandInput, GetPreferencesCommandOutput } from "./commands/GetPreferencesCommand";
@@ -47,11 +49,11 @@ export { __Client };
47
49
  /**
48
50
  * @public
49
51
  */
50
- export type ServiceInputTypes = AuthSocialCommandInput | ClaimPreKeyBundleCommandInput | CompleteLivenessSessionCommandInput | CompleteOnboardingCommandInput | CreateLivenessSessionCommandInput | DeleteMatchMessagesCommandInput | DeleteProfileCommandInput | DiscoverCommandInput | GenerateInviteCommandInput | GenerateUploadUrlCommandInput | GetMatchCommandInput | GetMyProfileCommandInput | GetPreferencesCommandInput | GetProfileCommandInput | GetStateCommandInput | GetUserByEmailCommandInput | GetUserCommandInput | IndexLocationCommandInput | InitUserCommandInput | LinkEmailCommandInput | LinkSocialCommandInput | RegisterPhoneCommandInput | RemoveLocationCommandInput | RequestEmailOtpCommandInput | RequestPhoneOtpCommandInput | RequestPhoneUpdateOtpCommandInput | SwipeCommandInput | UnhookCommandInput | UnlinkSocialCommandInput | UpdateEntitlementsCommandInput | UpdatePhoneNumberCommandInput | UpdatePreferencesCommandInput | UpdateProfileCommandInput | UpgradeUserCommandInput | UploadPreKeysCommandInput | ValidateInviteCommandInput;
52
+ export type ServiceInputTypes = AuthSocialCommandInput | ClaimPreKeyBundleCommandInput | CompleteLivenessSessionCommandInput | CompleteOnboardingCommandInput | CreateLivenessSessionCommandInput | DeleteMatchMessagesCommandInput | DeleteProfileCommandInput | DiscoverCommandInput | GenerateDownloadUrlCommandInput | GenerateInviteCommandInput | GenerateUploadUrlCommandInput | GetLivenessStatusCommandInput | GetMatchCommandInput | GetMyProfileCommandInput | GetPreferencesCommandInput | GetProfileCommandInput | GetStateCommandInput | GetUserByEmailCommandInput | GetUserCommandInput | IndexLocationCommandInput | InitUserCommandInput | LinkEmailCommandInput | LinkSocialCommandInput | RegisterPhoneCommandInput | RemoveLocationCommandInput | RequestEmailOtpCommandInput | RequestPhoneOtpCommandInput | RequestPhoneUpdateOtpCommandInput | SwipeCommandInput | UnhookCommandInput | UnlinkSocialCommandInput | UpdateEntitlementsCommandInput | UpdatePhoneNumberCommandInput | UpdatePreferencesCommandInput | UpdateProfileCommandInput | UpgradeUserCommandInput | UploadPreKeysCommandInput | ValidateInviteCommandInput;
51
53
  /**
52
54
  * @public
53
55
  */
54
- export type ServiceOutputTypes = AuthSocialCommandOutput | ClaimPreKeyBundleCommandOutput | CompleteLivenessSessionCommandOutput | CompleteOnboardingCommandOutput | CreateLivenessSessionCommandOutput | DeleteMatchMessagesCommandOutput | DeleteProfileCommandOutput | DiscoverCommandOutput | GenerateInviteCommandOutput | GenerateUploadUrlCommandOutput | GetMatchCommandOutput | GetMyProfileCommandOutput | GetPreferencesCommandOutput | GetProfileCommandOutput | GetStateCommandOutput | GetUserByEmailCommandOutput | GetUserCommandOutput | IndexLocationCommandOutput | InitUserCommandOutput | LinkEmailCommandOutput | LinkSocialCommandOutput | RegisterPhoneCommandOutput | RemoveLocationCommandOutput | RequestEmailOtpCommandOutput | RequestPhoneOtpCommandOutput | RequestPhoneUpdateOtpCommandOutput | SwipeCommandOutput | UnhookCommandOutput | UnlinkSocialCommandOutput | UpdateEntitlementsCommandOutput | UpdatePhoneNumberCommandOutput | UpdatePreferencesCommandOutput | UpdateProfileCommandOutput | UpgradeUserCommandOutput | UploadPreKeysCommandOutput | ValidateInviteCommandOutput;
56
+ export type ServiceOutputTypes = AuthSocialCommandOutput | ClaimPreKeyBundleCommandOutput | CompleteLivenessSessionCommandOutput | CompleteOnboardingCommandOutput | CreateLivenessSessionCommandOutput | DeleteMatchMessagesCommandOutput | DeleteProfileCommandOutput | DiscoverCommandOutput | GenerateDownloadUrlCommandOutput | GenerateInviteCommandOutput | GenerateUploadUrlCommandOutput | GetLivenessStatusCommandOutput | GetMatchCommandOutput | GetMyProfileCommandOutput | GetPreferencesCommandOutput | GetProfileCommandOutput | GetStateCommandOutput | GetUserByEmailCommandOutput | GetUserCommandOutput | IndexLocationCommandOutput | InitUserCommandOutput | LinkEmailCommandOutput | LinkSocialCommandOutput | RegisterPhoneCommandOutput | RemoveLocationCommandOutput | RequestEmailOtpCommandOutput | RequestPhoneOtpCommandOutput | RequestPhoneUpdateOtpCommandOutput | SwipeCommandOutput | UnhookCommandOutput | UnlinkSocialCommandOutput | UpdateEntitlementsCommandOutput | UpdatePhoneNumberCommandOutput | UpdatePreferencesCommandOutput | UpdateProfileCommandOutput | UpgradeUserCommandOutput | UploadPreKeysCommandOutput | ValidateInviteCommandOutput;
55
57
  /**
56
58
  * @public
57
59
  */
@@ -0,0 +1,82 @@
1
+ import { OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OneHookClient";
2
+ import { MediaDownloadUrlRequest, MediaDownloadUrlResponse } 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 GenerateDownloadUrlCommand}.
14
+ */
15
+ export interface GenerateDownloadUrlCommandInput extends MediaDownloadUrlRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link GenerateDownloadUrlCommand}.
21
+ */
22
+ export interface GenerateDownloadUrlCommandOutput extends MediaDownloadUrlResponse, __MetadataBearer {
23
+ }
24
+ declare const GenerateDownloadUrlCommand_base: {
25
+ new (input: GenerateDownloadUrlCommandInput): import("@smithy/smithy-client").CommandImpl<GenerateDownloadUrlCommandInput, GenerateDownloadUrlCommandOutput, OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: GenerateDownloadUrlCommandInput): import("@smithy/smithy-client").CommandImpl<GenerateDownloadUrlCommandInput, GenerateDownloadUrlCommandOutput, OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * Issues a short-lived presigned GET URL for a private media object so authorized clients can
31
+ * display it. The media bucket blocks all public access, so this is the only read path. The
32
+ * caller must be authenticated; a caller may fetch a URL for their own media, or for another
33
+ * user's media only when that object is part of that user's moderation-visible profile.
34
+ * @example
35
+ * Use a bare-bones client and the command you need to make an API call.
36
+ * ```javascript
37
+ * import { OneHookClient, GenerateDownloadUrlCommand } from "onehook-api-client"; // ES Modules import
38
+ * // const { OneHookClient, GenerateDownloadUrlCommand } = require("onehook-api-client"); // CommonJS import
39
+ * const client = new OneHookClient(config);
40
+ * const input = { // MediaDownloadUrlRequest
41
+ * key: "STRING_VALUE", // required
42
+ * };
43
+ * const command = new GenerateDownloadUrlCommand(input);
44
+ * const response = await client.send(command);
45
+ * // { // MediaDownloadUrlResponse
46
+ * // downloadUrl: "STRING_VALUE", // required
47
+ * // expiresInSeconds: Number("int"), // required
48
+ * // };
49
+ *
50
+ * ```
51
+ *
52
+ * @param GenerateDownloadUrlCommandInput - {@link GenerateDownloadUrlCommandInput}
53
+ * @returns {@link GenerateDownloadUrlCommandOutput}
54
+ * @see {@link GenerateDownloadUrlCommandInput} for command's `input` shape.
55
+ * @see {@link GenerateDownloadUrlCommandOutput} for command's `response` shape.
56
+ * @see {@link OneHookClientResolvedConfig | config} for OneHookClient's `config` shape.
57
+ *
58
+ * @throws {@link BadRequestError} (client fault)
59
+ *
60
+ * @throws {@link NotFoundError} (client fault)
61
+ *
62
+ * @throws {@link InternalServerError} (server fault)
63
+ *
64
+ * @throws {@link OneHookServiceException}
65
+ * <p>Base exception class for all service exceptions from OneHook service.</p>
66
+ *
67
+ *
68
+ * @public
69
+ */
70
+ export declare class GenerateDownloadUrlCommand extends GenerateDownloadUrlCommand_base {
71
+ /** @internal type navigation helper, not in runtime. */
72
+ protected static __types: {
73
+ api: {
74
+ input: MediaDownloadUrlRequest;
75
+ output: MediaDownloadUrlResponse;
76
+ };
77
+ sdk: {
78
+ input: GenerateDownloadUrlCommandInput;
79
+ output: GenerateDownloadUrlCommandOutput;
80
+ };
81
+ };
82
+ }
@@ -0,0 +1,77 @@
1
+ import { OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OneHookClient";
2
+ import { LivenessStatusResponse } 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 GetLivenessStatusCommand}.
14
+ */
15
+ export interface GetLivenessStatusCommandInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link GetLivenessStatusCommand}.
21
+ */
22
+ export interface GetLivenessStatusCommandOutput extends LivenessStatusResponse, __MetadataBearer {
23
+ }
24
+ declare const GetLivenessStatusCommand_base: {
25
+ new (input: GetLivenessStatusCommandInput): import("@smithy/smithy-client").CommandImpl<GetLivenessStatusCommandInput, GetLivenessStatusCommandOutput, OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (...[input]: [] | [GetLivenessStatusCommandInput]): import("@smithy/smithy-client").CommandImpl<GetLivenessStatusCommandInput, GetLivenessStatusCommandOutput, OneHookClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * Returns the authoritative liveness verification status for the authenticated caller, so clients
31
+ * can render an accurate state (NONE / PENDING / APPROVED / REJECTED) that survives reloads —
32
+ * rather than inferring it from the boolean `verified` flag, which cannot distinguish
33
+ * "under review" from "rejected".
34
+ * @example
35
+ * Use a bare-bones client and the command you need to make an API call.
36
+ * ```javascript
37
+ * import { OneHookClient, GetLivenessStatusCommand } from "onehook-api-client"; // ES Modules import
38
+ * // const { OneHookClient, GetLivenessStatusCommand } = require("onehook-api-client"); // CommonJS import
39
+ * const client = new OneHookClient(config);
40
+ * const input = {};
41
+ * const command = new GetLivenessStatusCommand(input);
42
+ * const response = await client.send(command);
43
+ * // { // LivenessStatusResponse
44
+ * // status: "STRING_VALUE", // required
45
+ * // };
46
+ *
47
+ * ```
48
+ *
49
+ * @param GetLivenessStatusCommandInput - {@link GetLivenessStatusCommandInput}
50
+ * @returns {@link GetLivenessStatusCommandOutput}
51
+ * @see {@link GetLivenessStatusCommandInput} for command's `input` shape.
52
+ * @see {@link GetLivenessStatusCommandOutput} for command's `response` shape.
53
+ * @see {@link OneHookClientResolvedConfig | config} for OneHookClient's `config` shape.
54
+ *
55
+ * @throws {@link BadRequestError} (client fault)
56
+ *
57
+ * @throws {@link InternalServerError} (server fault)
58
+ *
59
+ * @throws {@link OneHookServiceException}
60
+ * <p>Base exception class for all service exceptions from OneHook service.</p>
61
+ *
62
+ *
63
+ * @public
64
+ */
65
+ export declare class GetLivenessStatusCommand extends GetLivenessStatusCommand_base {
66
+ /** @internal type navigation helper, not in runtime. */
67
+ protected static __types: {
68
+ api: {
69
+ input: {};
70
+ output: LivenessStatusResponse;
71
+ };
72
+ sdk: {
73
+ input: GetLivenessStatusCommandInput;
74
+ output: GetLivenessStatusCommandOutput;
75
+ };
76
+ };
77
+ }
@@ -70,6 +70,9 @@ declare const GetMyProfileCommand_base: {
70
70
  * // ],
71
71
  * // audioPrompt: "STRING_VALUE",
72
72
  * // moderationStatus: "STRING_VALUE",
73
+ * // fieldModerationStatus: { // StringMap
74
+ * // "<keys>": "STRING_VALUE",
75
+ * // },
73
76
  * // causes: [
74
77
  * // "STRING_VALUE",
75
78
  * // ],
@@ -82,7 +85,7 @@ declare const GetMyProfileCommand_base: {
82
85
  * // imageKey: "STRING_VALUE",
83
86
  * // },
84
87
  * // ],
85
- * // socialLinks: { // StringMap
88
+ * // socialLinks: {
86
89
  * // "<keys>": "STRING_VALUE",
87
90
  * // },
88
91
  * // openers: [ // OpenerList
@@ -71,6 +71,9 @@ declare const GetProfileCommand_base: {
71
71
  * // ],
72
72
  * // audioPrompt: "STRING_VALUE",
73
73
  * // moderationStatus: "STRING_VALUE",
74
+ * // fieldModerationStatus: { // StringMap
75
+ * // "<keys>": "STRING_VALUE",
76
+ * // },
74
77
  * // causes: [
75
78
  * // "STRING_VALUE",
76
79
  * // ],
@@ -83,7 +86,7 @@ declare const GetProfileCommand_base: {
83
86
  * // imageKey: "STRING_VALUE",
84
87
  * // },
85
88
  * // ],
86
- * // socialLinks: { // StringMap
89
+ * // socialLinks: {
87
90
  * // "<keys>": "STRING_VALUE",
88
91
  * // },
89
92
  * // openers: [ // OpenerList
@@ -24,7 +24,9 @@ export * from "./UpdatePreferencesCommand";
24
24
  export * from "./CompleteLivenessSessionCommand";
25
25
  export * from "./CreateLivenessSessionCommand";
26
26
  export * from "./DeleteProfileCommand";
27
+ export * from "./GenerateDownloadUrlCommand";
27
28
  export * from "./GenerateUploadUrlCommand";
29
+ export * from "./GetLivenessStatusCommand";
28
30
  export * from "./GetMyProfileCommand";
29
31
  export * from "./GetProfileCommand";
30
32
  export * from "./UpdateProfileCommand";
@@ -427,6 +427,31 @@ export interface CreateLivenessSessionResponse {
427
427
  export interface DeleteProfileRequest {
428
428
  userId: string | undefined;
429
429
  }
430
+ /**
431
+ * @public
432
+ */
433
+ export interface MediaDownloadUrlRequest {
434
+ /**
435
+ * The S3 object key to sign, e.g. "media/\{userId\}/\{uuid\}".
436
+ * @public
437
+ */
438
+ key: string | undefined;
439
+ }
440
+ /**
441
+ * @public
442
+ */
443
+ export interface MediaDownloadUrlResponse {
444
+ /**
445
+ * Short-lived presigned GET URL for the requested object.
446
+ * @public
447
+ */
448
+ downloadUrl: string | undefined;
449
+ /**
450
+ * Seconds until the presigned URL expires.
451
+ * @public
452
+ */
453
+ expiresInSeconds: number | undefined;
454
+ }
430
455
  /**
431
456
  * @public
432
457
  */
@@ -442,6 +467,16 @@ export interface MediaUploadUrlResponse {
442
467
  objectKey: string | undefined;
443
468
  formData: Record<string, string> | undefined;
444
469
  }
470
+ /**
471
+ * @public
472
+ */
473
+ export interface LivenessStatusResponse {
474
+ /**
475
+ * Authoritative liveness status: one of NONE | PENDING | APPROVED | REJECTED.
476
+ * @public
477
+ */
478
+ status: string | undefined;
479
+ }
445
480
  /**
446
481
  * A user-authored conversation opener: free text plus an optional image.
447
482
  * The image (if present) is moderated by the same async decency flow as profile pictures
@@ -496,6 +531,11 @@ export interface ProfileResponse {
496
531
  * @public
497
532
  */
498
533
  moderationStatus?: string | undefined;
534
+ /**
535
+ * Granular status per field and asset key (e.g. bio -> APPROVED, picture key -> APPROVED, prompt -> REJECTED)
536
+ * @public
537
+ */
538
+ fieldModerationStatus?: Record<string, string> | undefined;
499
539
  causes?: (string)[] | undefined;
500
540
  communities?: (string)[] | undefined;
501
541
  qualities?: (string)[] | undefined;
@@ -6,8 +6,10 @@ import { CreateLivenessSessionCommandInput, CreateLivenessSessionCommandOutput }
6
6
  import { DeleteMatchMessagesCommandInput, DeleteMatchMessagesCommandOutput } from "../commands/DeleteMatchMessagesCommand";
7
7
  import { DeleteProfileCommandInput, DeleteProfileCommandOutput } from "../commands/DeleteProfileCommand";
8
8
  import { DiscoverCommandInput, DiscoverCommandOutput } from "../commands/DiscoverCommand";
9
+ import { GenerateDownloadUrlCommandInput, GenerateDownloadUrlCommandOutput } from "../commands/GenerateDownloadUrlCommand";
9
10
  import { GenerateInviteCommandInput, GenerateInviteCommandOutput } from "../commands/GenerateInviteCommand";
10
11
  import { GenerateUploadUrlCommandInput, GenerateUploadUrlCommandOutput } from "../commands/GenerateUploadUrlCommand";
12
+ import { GetLivenessStatusCommandInput, GetLivenessStatusCommandOutput } from "../commands/GetLivenessStatusCommand";
11
13
  import { GetMatchCommandInput, GetMatchCommandOutput } from "../commands/GetMatchCommand";
12
14
  import { GetMyProfileCommandInput, GetMyProfileCommandOutput } from "../commands/GetMyProfileCommand";
13
15
  import { GetPreferencesCommandInput, GetPreferencesCommandOutput } from "../commands/GetPreferencesCommand";
@@ -140,10 +142,18 @@ export declare const se_CreateLivenessSessionCommand: (input: CreateLivenessSess
140
142
  * serializeAws_restJson1DeleteProfileCommand
141
143
  */
142
144
  export declare const se_DeleteProfileCommand: (input: DeleteProfileCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
145
+ /**
146
+ * serializeAws_restJson1GenerateDownloadUrlCommand
147
+ */
148
+ export declare const se_GenerateDownloadUrlCommand: (input: GenerateDownloadUrlCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
143
149
  /**
144
150
  * serializeAws_restJson1GenerateUploadUrlCommand
145
151
  */
146
152
  export declare const se_GenerateUploadUrlCommand: (input: GenerateUploadUrlCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
153
+ /**
154
+ * serializeAws_restJson1GetLivenessStatusCommand
155
+ */
156
+ export declare const se_GetLivenessStatusCommand: (input: GetLivenessStatusCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
147
157
  /**
148
158
  * serializeAws_restJson1GetMyProfileCommand
149
159
  */
@@ -284,10 +294,18 @@ export declare const de_CreateLivenessSessionCommand: (output: __HttpResponse, c
284
294
  * deserializeAws_restJson1DeleteProfileCommand
285
295
  */
286
296
  export declare const de_DeleteProfileCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DeleteProfileCommandOutput>;
297
+ /**
298
+ * deserializeAws_restJson1GenerateDownloadUrlCommand
299
+ */
300
+ export declare const de_GenerateDownloadUrlCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GenerateDownloadUrlCommandOutput>;
287
301
  /**
288
302
  * deserializeAws_restJson1GenerateUploadUrlCommand
289
303
  */
290
304
  export declare const de_GenerateUploadUrlCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GenerateUploadUrlCommandOutput>;
305
+ /**
306
+ * deserializeAws_restJson1GetLivenessStatusCommand
307
+ */
308
+ export declare const de_GetLivenessStatusCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetLivenessStatusCommandOutput>;
291
309
  /**
292
310
  * deserializeAws_restJson1GetMyProfileCommand
293
311
  */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "onehook-api-client",
3
3
  "description": "OneHook API Client",
4
- "version": "1.0.5",
4
+ "version": "1.0.6",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",