onehook-api-client 1.0.31 → 1.0.33

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.
Files changed (46) hide show
  1. package/README.md +49 -0
  2. package/dist-cjs/OneHook.js +14 -0
  3. package/dist-cjs/commands/GetBirthDateStatusCommand.js +21 -0
  4. package/dist-cjs/commands/GetPlaceCommand.js +21 -0
  5. package/dist-cjs/commands/GetPreservationHoldCommand.js +21 -0
  6. package/dist-cjs/commands/RemoveSuggestionCommand.js +21 -0
  7. package/dist-cjs/commands/RevokeUserAccessCommand.js +21 -0
  8. package/dist-cjs/commands/SearchPlacesCommand.js +21 -0
  9. package/dist-cjs/commands/SetPreservationHoldCommand.js +21 -0
  10. package/dist-cjs/commands/index.js +7 -0
  11. package/dist-cjs/protocols/Aws_restJson1.js +234 -4
  12. package/dist-cjs/telemetry/index.js +5 -3
  13. package/dist-es/OneHook.js +14 -0
  14. package/dist-es/commands/GetBirthDateStatusCommand.js +17 -0
  15. package/dist-es/commands/GetPlaceCommand.js +17 -0
  16. package/dist-es/commands/GetPreservationHoldCommand.js +17 -0
  17. package/dist-es/commands/RemoveSuggestionCommand.js +17 -0
  18. package/dist-es/commands/RevokeUserAccessCommand.js +17 -0
  19. package/dist-es/commands/SearchPlacesCommand.js +17 -0
  20. package/dist-es/commands/SetPreservationHoldCommand.js +17 -0
  21. package/dist-es/commands/index.js +7 -0
  22. package/dist-es/protocols/Aws_restJson1.js +217 -1
  23. package/dist-es/telemetry/index.js +5 -3
  24. package/dist-types/OneHook.d.ts +50 -0
  25. package/dist-types/OneHookClient.d.ts +9 -2
  26. package/dist-types/commands/CorrectBirthDateCommand.d.ts +1 -1
  27. package/dist-types/commands/GetBirthDateStatusCommand.d.ts +89 -0
  28. package/dist-types/commands/GetMyProfileCommand.d.ts +1 -0
  29. package/dist-types/commands/GetPlaceCommand.d.ts +84 -0
  30. package/dist-types/commands/GetPreferencesCommand.d.ts +5 -0
  31. package/dist-types/commands/GetPreservationHoldCommand.d.ts +87 -0
  32. package/dist-types/commands/GetProfileCommand.d.ts +1 -0
  33. package/dist-types/commands/RecordSuggestionCommand.d.ts +6 -5
  34. package/dist-types/commands/RemoveSuggestionCommand.d.ts +72 -0
  35. package/dist-types/commands/RevokeUserAccessCommand.d.ts +94 -0
  36. package/dist-types/commands/SearchPlacesCommand.d.ts +83 -0
  37. package/dist-types/commands/SetPreservationHoldCommand.d.ts +98 -0
  38. package/dist-types/commands/UpdateProfileCommand.d.ts +1 -1
  39. package/dist-types/commands/index.d.ts +7 -0
  40. package/dist-types/models/models_0.d.ts +237 -11
  41. package/dist-types/protocols/Aws_restJson1.d.ts +63 -0
  42. package/dist-types/telemetry/index.d.ts +3 -2
  43. package/package.json +1 -1
  44. package/telemetry/TelemetryCatalog.kt +6 -5
  45. package/telemetry/TelemetryCatalog.swift +7 -5
  46. package/telemetry/telemetry-catalog.json +20 -4
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.se_DeleteProfileCommand = exports.se_CreateLivenessSessionCommand = exports.se_CorrectBirthDateCommand = exports.se_CompleteLivenessSessionCommand = exports.se_UpdatePreferencesCommand = exports.se_SwipeByUsernameCommand = exports.se_SwipeCommand = exports.se_RemoveLocationCommand = exports.se_RecordSuggestionCommand = exports.se_IndexLocationCommand = exports.se_GetRosesCommand = exports.se_GetReceivedLikesCommand = exports.se_GetPreferencesCommand = exports.se_GetNotificationPreferencesCommand = exports.se_DiscoverCommand = exports.se_VerifyAdminLinkOtpCommand = exports.se_ValidateInviteCommand = exports.se_UpdateUsernameCommand = exports.se_UpdatePhoneNumberCommand = exports.se_UpdateEntitlementsCommand = exports.se_UnlinkSocialCommand = exports.se_SetAccountStateCommand = exports.se_SendAdminLinkOtpCommand = 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_GetAdminPhoneStatusCommand = exports.se_GetAccountStateCommand = exports.se_GenerateInviteCommand = exports.se_CreateAdminInviteCommand = 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 = exports.se_GetAiContextMatchCommand = void 0;
4
- exports.de_GetPreferencesCommand = exports.de_GetNotificationPreferencesCommand = exports.de_DiscoverCommand = exports.de_VerifyAdminLinkOtpCommand = exports.de_ValidateInviteCommand = exports.de_UpdateUsernameCommand = exports.de_UpdatePhoneNumberCommand = exports.de_UpdateEntitlementsCommand = exports.de_UnlinkSocialCommand = exports.de_SetAccountStateCommand = exports.de_SendAdminLinkOtpCommand = 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_GetAdminPhoneStatusCommand = exports.de_GetAccountStateCommand = exports.de_GenerateInviteCommand = exports.de_CreateAdminInviteCommand = 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.de_GetAiContextMatchCommand = 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 = void 0;
5
- 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_CorrectBirthDateCommand = exports.de_CompleteLivenessSessionCommand = exports.de_UpdatePreferencesCommand = exports.de_SwipeByUsernameCommand = exports.de_SwipeCommand = exports.de_RemoveLocationCommand = exports.de_RecordSuggestionCommand = exports.de_IndexLocationCommand = exports.de_GetRosesCommand = exports.de_GetReceivedLikesCommand = void 0;
3
+ exports.se_UpdatePreferencesCommand = exports.se_SwipeByUsernameCommand = exports.se_SwipeCommand = exports.se_RemoveSuggestionCommand = exports.se_RemoveLocationCommand = exports.se_RecordSuggestionCommand = exports.se_IndexLocationCommand = exports.se_GetRosesCommand = exports.se_GetReceivedLikesCommand = exports.se_GetPreferencesCommand = exports.se_GetNotificationPreferencesCommand = exports.se_DiscoverCommand = exports.se_VerifyAdminLinkOtpCommand = exports.se_ValidateInviteCommand = exports.se_UpdateUsernameCommand = exports.se_UpdatePhoneNumberCommand = exports.se_UpdateEntitlementsCommand = exports.se_UnlinkSocialCommand = exports.se_SetPreservationHoldCommand = exports.se_SetAccountStateCommand = exports.se_SendAdminLinkOtpCommand = exports.se_RevokeUserAccessCommand = 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_GetPreservationHoldCommand = exports.se_GetCredentialReadinessCommand = exports.se_GetAdminPhoneStatusCommand = exports.se_GetAccountStateCommand = exports.se_GenerateInviteCommand = exports.se_CreateAdminInviteCommand = 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 = exports.se_GetAiContextMatchCommand = void 0;
4
+ exports.de_SetAccountStateCommand = exports.de_SendAdminLinkOtpCommand = exports.de_RevokeUserAccessCommand = 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_GetPreservationHoldCommand = exports.de_GetCredentialReadinessCommand = exports.de_GetAdminPhoneStatusCommand = exports.de_GetAccountStateCommand = exports.de_GenerateInviteCommand = exports.de_CreateAdminInviteCommand = 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.de_GetAiContextMatchCommand = exports.se_UpgradeUserCommand = exports.se_UnhookCommand = exports.se_InitUserCommand = exports.se_GetStateCommand = exports.se_GetMatchCommand = exports.se_CompleteOnboardingCommand = exports.se_UpdateProfileCommand = exports.se_SearchPlacesCommand = exports.se_GetProfileCommand = exports.se_GetPlaceCommand = exports.se_GetMyProfileCommand = exports.se_GetLivenessStatusCommand = exports.se_GetBirthDateStatusCommand = exports.se_GenerateUploadUrlCommand = exports.se_GenerateDownloadUrlCommand = exports.se_DeleteProfileCommand = exports.se_CreateLivenessSessionCommand = exports.se_CorrectBirthDateCommand = exports.se_CompleteLivenessSessionCommand = void 0;
5
+ exports.de_UpgradeUserCommand = exports.de_UnhookCommand = exports.de_InitUserCommand = exports.de_GetStateCommand = exports.de_GetMatchCommand = exports.de_CompleteOnboardingCommand = exports.de_UpdateProfileCommand = exports.de_SearchPlacesCommand = exports.de_GetProfileCommand = exports.de_GetPlaceCommand = exports.de_GetMyProfileCommand = exports.de_GetLivenessStatusCommand = exports.de_GetBirthDateStatusCommand = exports.de_GenerateUploadUrlCommand = exports.de_GenerateDownloadUrlCommand = exports.de_DeleteProfileCommand = exports.de_CreateLivenessSessionCommand = exports.de_CorrectBirthDateCommand = exports.de_CompleteLivenessSessionCommand = exports.de_UpdatePreferencesCommand = exports.de_SwipeByUsernameCommand = exports.de_SwipeCommand = exports.de_RemoveSuggestionCommand = exports.de_RemoveLocationCommand = exports.de_RecordSuggestionCommand = exports.de_IndexLocationCommand = exports.de_GetRosesCommand = exports.de_GetReceivedLikesCommand = exports.de_GetPreferencesCommand = exports.de_GetNotificationPreferencesCommand = exports.de_DiscoverCommand = exports.de_VerifyAdminLinkOtpCommand = exports.de_ValidateInviteCommand = exports.de_UpdateUsernameCommand = exports.de_UpdatePhoneNumberCommand = exports.de_UpdateEntitlementsCommand = exports.de_UnlinkSocialCommand = exports.de_SetPreservationHoldCommand = void 0;
6
6
  const OneHookServiceException_1 = require("../models/OneHookServiceException");
7
7
  const models_0_1 = require("../models/models_0");
8
8
  const core_1 = require("@aws-sdk/core");
@@ -287,6 +287,18 @@ const se_GetCredentialReadinessCommand = async (input, context) => {
287
287
  return b.build();
288
288
  };
289
289
  exports.se_GetCredentialReadinessCommand = se_GetCredentialReadinessCommand;
290
+ const se_GetPreservationHoldCommand = async (input, context) => {
291
+ const b = (0, core_2.requestBuilder)(input, context);
292
+ const headers = {};
293
+ b.bp("/identity/admin/users/{userId}/preservation-hold");
294
+ b.p('userId', () => input.userId, '{userId}', false);
295
+ let body;
296
+ b.m("GET")
297
+ .h(headers)
298
+ .b(body);
299
+ return b.build();
300
+ };
301
+ exports.se_GetPreservationHoldCommand = se_GetPreservationHoldCommand;
290
302
  const se_GetUserCommand = async (input, context) => {
291
303
  const b = (0, core_2.requestBuilder)(input, context);
292
304
  const headers = {};
@@ -426,6 +438,18 @@ const se_RequestPhoneUpdateOtpCommand = async (input, context) => {
426
438
  return b.build();
427
439
  };
428
440
  exports.se_RequestPhoneUpdateOtpCommand = se_RequestPhoneUpdateOtpCommand;
441
+ const se_RevokeUserAccessCommand = async (input, context) => {
442
+ const b = (0, core_2.requestBuilder)(input, context);
443
+ const headers = {};
444
+ b.bp("/identity/admin/users/{userId}/revoke-access");
445
+ b.p('userId', () => input.userId, '{userId}', false);
446
+ let body;
447
+ b.m("POST")
448
+ .h(headers)
449
+ .b(body);
450
+ return b.build();
451
+ };
452
+ exports.se_RevokeUserAccessCommand = se_RevokeUserAccessCommand;
429
453
  const se_SendAdminLinkOtpCommand = async (input, context) => {
430
454
  const b = (0, core_2.requestBuilder)(input, context);
431
455
  const headers = {};
@@ -459,6 +483,28 @@ const se_SetAccountStateCommand = async (input, context) => {
459
483
  return b.build();
460
484
  };
461
485
  exports.se_SetAccountStateCommand = se_SetAccountStateCommand;
486
+ const se_SetPreservationHoldCommand = async (input, context) => {
487
+ const b = (0, core_2.requestBuilder)(input, context);
488
+ const headers = {
489
+ 'content-type': 'application/json',
490
+ };
491
+ b.bp("/identity/admin/users/{userId}/preservation-hold");
492
+ b.p('userId', () => input.userId, '{userId}', false);
493
+ let body;
494
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
495
+ 'active': [],
496
+ 'actor': [],
497
+ 'caseRef': [],
498
+ 'expectedVersion': [],
499
+ 'reasonCode': [],
500
+ 'until': [],
501
+ }));
502
+ b.m("PUT")
503
+ .h(headers)
504
+ .b(body);
505
+ return b.build();
506
+ };
507
+ exports.se_SetPreservationHoldCommand = se_SetPreservationHoldCommand;
462
508
  const se_UnlinkSocialCommand = async (input, context) => {
463
509
  const b = (0, core_2.requestBuilder)(input, context);
464
510
  const headers = {};
@@ -667,6 +713,17 @@ const se_RemoveLocationCommand = async (input, context) => {
667
713
  return b.build();
668
714
  };
669
715
  exports.se_RemoveLocationCommand = se_RemoveLocationCommand;
716
+ const se_RemoveSuggestionCommand = async (input, context) => {
717
+ const b = (0, core_2.requestBuilder)(input, context);
718
+ const headers = {};
719
+ b.bp("/matching/suggestions");
720
+ let body;
721
+ b.m("DELETE")
722
+ .h(headers)
723
+ .b(body);
724
+ return b.build();
725
+ };
726
+ exports.se_RemoveSuggestionCommand = se_RemoveSuggestionCommand;
670
727
  const se_SwipeCommand = async (input, context) => {
671
728
  const b = (0, core_2.requestBuilder)(input, context);
672
729
  const headers = {
@@ -843,6 +900,18 @@ const se_GenerateUploadUrlCommand = async (input, context) => {
843
900
  return b.build();
844
901
  };
845
902
  exports.se_GenerateUploadUrlCommand = se_GenerateUploadUrlCommand;
903
+ const se_GetBirthDateStatusCommand = async (input, context) => {
904
+ const b = (0, core_2.requestBuilder)(input, context);
905
+ const headers = {};
906
+ b.bp("/profile-admin/{userId}/birth-date");
907
+ b.p('userId', () => input.userId, '{userId}', false);
908
+ let body;
909
+ b.m("GET")
910
+ .h(headers)
911
+ .b(body);
912
+ return b.build();
913
+ };
914
+ exports.se_GetBirthDateStatusCommand = se_GetBirthDateStatusCommand;
846
915
  const se_GetLivenessStatusCommand = async (input, context) => {
847
916
  const b = (0, core_2.requestBuilder)(input, context);
848
917
  const headers = {};
@@ -865,6 +934,22 @@ const se_GetMyProfileCommand = async (input, context) => {
865
934
  return b.build();
866
935
  };
867
936
  exports.se_GetMyProfileCommand = se_GetMyProfileCommand;
937
+ const se_GetPlaceCommand = async (input, context) => {
938
+ const b = (0, core_2.requestBuilder)(input, context);
939
+ const headers = {};
940
+ b.bp("/profile/places/{placeId}");
941
+ b.p('placeId', () => input.placeId, '{placeId}', false);
942
+ const query = (0, smithy_client_1.map)({
943
+ [_la]: [, input[_la]],
944
+ });
945
+ let body;
946
+ b.m("GET")
947
+ .h(headers)
948
+ .q(query)
949
+ .b(body);
950
+ return b.build();
951
+ };
952
+ exports.se_GetPlaceCommand = se_GetPlaceCommand;
868
953
  const se_GetProfileCommand = async (input, context) => {
869
954
  const b = (0, core_2.requestBuilder)(input, context);
870
955
  const headers = {};
@@ -877,6 +962,22 @@ const se_GetProfileCommand = async (input, context) => {
877
962
  return b.build();
878
963
  };
879
964
  exports.se_GetProfileCommand = se_GetProfileCommand;
965
+ const se_SearchPlacesCommand = async (input, context) => {
966
+ const b = (0, core_2.requestBuilder)(input, context);
967
+ const headers = {};
968
+ b.bp("/profile/places");
969
+ const query = (0, smithy_client_1.map)({
970
+ [_q]: [, (0, smithy_client_1.expectNonNull)(input[_q], `q`)],
971
+ [_la]: [, input[_la]],
972
+ });
973
+ let body;
974
+ b.m("GET")
975
+ .h(headers)
976
+ .q(query)
977
+ .b(body);
978
+ return b.build();
979
+ };
980
+ exports.se_SearchPlacesCommand = se_SearchPlacesCommand;
880
981
  const se_UpdateProfileCommand = async (input, context) => {
881
982
  const b = (0, core_2.requestBuilder)(input, context);
882
983
  const headers = {
@@ -885,7 +986,6 @@ const se_UpdateProfileCommand = async (input, context) => {
885
986
  b.bp("/profile");
886
987
  let body;
887
988
  body = JSON.stringify((0, smithy_client_1.take)(input, {
888
- 'age': [],
889
989
  'audioPrompt': [],
890
990
  'bio': [],
891
991
  'birthDetails': _ => se_BirthDetails(_, context),
@@ -1296,6 +1396,28 @@ const de_GetCredentialReadinessCommand = async (output, context) => {
1296
1396
  return contents;
1297
1397
  };
1298
1398
  exports.de_GetCredentialReadinessCommand = de_GetCredentialReadinessCommand;
1399
+ const de_GetPreservationHoldCommand = async (output, context) => {
1400
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1401
+ return de_CommandError(output, context);
1402
+ }
1403
+ const contents = (0, smithy_client_1.map)({
1404
+ $metadata: deserializeMetadata(output),
1405
+ });
1406
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1407
+ const doc = (0, smithy_client_1.take)(data, {
1408
+ 'active': smithy_client_1.expectBoolean,
1409
+ 'caseRef': smithy_client_1.expectString,
1410
+ 'childSafetySince': smithy_client_1.expectLong,
1411
+ 'reasonCode': smithy_client_1.expectString,
1412
+ 'setAt': smithy_client_1.expectLong,
1413
+ 'setBy': smithy_client_1.expectString,
1414
+ 'until': smithy_client_1.expectLong,
1415
+ 'version': smithy_client_1.expectInt32,
1416
+ });
1417
+ Object.assign(contents, doc);
1418
+ return contents;
1419
+ };
1420
+ exports.de_GetPreservationHoldCommand = de_GetPreservationHoldCommand;
1299
1421
  const de_GetUserCommand = async (output, context) => {
1300
1422
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1301
1423
  return de_CommandError(output, context);
@@ -1450,6 +1572,21 @@ const de_RequestPhoneUpdateOtpCommand = async (output, context) => {
1450
1572
  return contents;
1451
1573
  };
1452
1574
  exports.de_RequestPhoneUpdateOtpCommand = de_RequestPhoneUpdateOtpCommand;
1575
+ const de_RevokeUserAccessCommand = async (output, context) => {
1576
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1577
+ return de_CommandError(output, context);
1578
+ }
1579
+ const contents = (0, smithy_client_1.map)({
1580
+ $metadata: deserializeMetadata(output),
1581
+ });
1582
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1583
+ const doc = (0, smithy_client_1.take)(data, {
1584
+ 'status': smithy_client_1.expectString,
1585
+ });
1586
+ Object.assign(contents, doc);
1587
+ return contents;
1588
+ };
1589
+ exports.de_RevokeUserAccessCommand = de_RevokeUserAccessCommand;
1453
1590
  const de_SendAdminLinkOtpCommand = async (output, context) => {
1454
1591
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1455
1592
  return de_CommandError(output, context);
@@ -1483,6 +1620,24 @@ const de_SetAccountStateCommand = async (output, context) => {
1483
1620
  return contents;
1484
1621
  };
1485
1622
  exports.de_SetAccountStateCommand = de_SetAccountStateCommand;
1623
+ const de_SetPreservationHoldCommand = async (output, context) => {
1624
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1625
+ return de_CommandError(output, context);
1626
+ }
1627
+ const contents = (0, smithy_client_1.map)({
1628
+ $metadata: deserializeMetadata(output),
1629
+ });
1630
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1631
+ const doc = (0, smithy_client_1.take)(data, {
1632
+ 'active': smithy_client_1.expectBoolean,
1633
+ 'reasonCode': smithy_client_1.expectString,
1634
+ 'until': smithy_client_1.expectLong,
1635
+ 'version': smithy_client_1.expectInt32,
1636
+ });
1637
+ Object.assign(contents, doc);
1638
+ return contents;
1639
+ };
1640
+ exports.de_SetPreservationHoldCommand = de_SetPreservationHoldCommand;
1486
1641
  const de_UnlinkSocialCommand = async (output, context) => {
1487
1642
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1488
1643
  return de_CommandError(output, context);
@@ -1628,6 +1783,7 @@ const de_GetPreferencesCommand = async (output, context) => {
1628
1783
  const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1629
1784
  const doc = (0, smithy_client_1.take)(data, {
1630
1785
  'cannabis': smithy_client_1.expectString,
1786
+ 'currentSuggestion': smithy_client_1._json,
1631
1787
  'dealbreakers': smithy_client_1._json,
1632
1788
  'discoverable': smithy_client_1.expectBoolean,
1633
1789
  'distanceUnit': smithy_client_1.expectString,
@@ -1743,6 +1899,17 @@ const de_RemoveLocationCommand = async (output, context) => {
1743
1899
  return contents;
1744
1900
  };
1745
1901
  exports.de_RemoveLocationCommand = de_RemoveLocationCommand;
1902
+ const de_RemoveSuggestionCommand = async (output, context) => {
1903
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
1904
+ return de_CommandError(output, context);
1905
+ }
1906
+ const contents = (0, smithy_client_1.map)({
1907
+ $metadata: deserializeMetadata(output),
1908
+ });
1909
+ await (0, smithy_client_1.collectBody)(output.body, context);
1910
+ return contents;
1911
+ };
1912
+ exports.de_RemoveSuggestionCommand = de_RemoveSuggestionCommand;
1746
1913
  const de_SwipeCommand = async (output, context) => {
1747
1914
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1748
1915
  return de_CommandError(output, context);
@@ -1887,6 +2054,31 @@ const de_GenerateUploadUrlCommand = async (output, context) => {
1887
2054
  return contents;
1888
2055
  };
1889
2056
  exports.de_GenerateUploadUrlCommand = de_GenerateUploadUrlCommand;
2057
+ const de_GetBirthDateStatusCommand = async (output, context) => {
2058
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2059
+ return de_CommandError(output, context);
2060
+ }
2061
+ const contents = (0, smithy_client_1.map)({
2062
+ $metadata: deserializeMetadata(output),
2063
+ });
2064
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
2065
+ const doc = (0, smithy_client_1.take)(data, {
2066
+ 'age': smithy_client_1.expectInt32,
2067
+ 'birthDateOnFile': smithy_client_1.expectBoolean,
2068
+ 'correctionsRemaining': smithy_client_1.expectInt32,
2069
+ 'correctionsUsed': smithy_client_1.expectInt32,
2070
+ 'date': smithy_client_1.expectString,
2071
+ 'lastCorrectedAt': smithy_client_1.expectLong,
2072
+ 'lastCorrectedBy': smithy_client_1.expectString,
2073
+ 'lastReason': smithy_client_1.expectString,
2074
+ 'lastReference': smithy_client_1.expectString,
2075
+ 'provisional': smithy_client_1.expectBoolean,
2076
+ 'userId': smithy_client_1.expectString,
2077
+ });
2078
+ Object.assign(contents, doc);
2079
+ return contents;
2080
+ };
2081
+ exports.de_GetBirthDateStatusCommand = de_GetBirthDateStatusCommand;
1890
2082
  const de_GetLivenessStatusCommand = async (output, context) => {
1891
2083
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1892
2084
  return de_CommandError(output, context);
@@ -1957,6 +2149,25 @@ const de_GetMyProfileCommand = async (output, context) => {
1957
2149
  return contents;
1958
2150
  };
1959
2151
  exports.de_GetMyProfileCommand = de_GetMyProfileCommand;
2152
+ const de_GetPlaceCommand = async (output, context) => {
2153
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2154
+ return de_CommandError(output, context);
2155
+ }
2156
+ const contents = (0, smithy_client_1.map)({
2157
+ $metadata: deserializeMetadata(output),
2158
+ });
2159
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
2160
+ const doc = (0, smithy_client_1.take)(data, {
2161
+ 'label': smithy_client_1.expectString,
2162
+ 'latitude': smithy_client_1.limitedParseDouble,
2163
+ 'longitude': smithy_client_1.limitedParseDouble,
2164
+ 'placeId': smithy_client_1.expectString,
2165
+ 'timeZone': smithy_client_1.expectString,
2166
+ });
2167
+ Object.assign(contents, doc);
2168
+ return contents;
2169
+ };
2170
+ exports.de_GetPlaceCommand = de_GetPlaceCommand;
1960
2171
  const de_GetProfileCommand = async (output, context) => {
1961
2172
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1962
2173
  return de_CommandError(output, context);
@@ -2012,6 +2223,21 @@ const de_GetProfileCommand = async (output, context) => {
2012
2223
  return contents;
2013
2224
  };
2014
2225
  exports.de_GetProfileCommand = de_GetProfileCommand;
2226
+ const de_SearchPlacesCommand = async (output, context) => {
2227
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2228
+ return de_CommandError(output, context);
2229
+ }
2230
+ const contents = (0, smithy_client_1.map)({
2231
+ $metadata: deserializeMetadata(output),
2232
+ });
2233
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
2234
+ const doc = (0, smithy_client_1.take)(data, {
2235
+ 'places': smithy_client_1._json,
2236
+ });
2237
+ Object.assign(contents, doc);
2238
+ return contents;
2239
+ };
2240
+ exports.de_SearchPlacesCommand = de_SearchPlacesCommand;
2015
2241
  const de_UpdateProfileCommand = async (output, context) => {
2016
2242
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2017
2243
  return de_CommandError(output, context);
@@ -2253,6 +2479,7 @@ const se_BirthDetails = (input, context) => {
2253
2479
  'date': [],
2254
2480
  'latitude': smithy_client_1.serializeFloat,
2255
2481
  'longitude': smithy_client_1.serializeFloat,
2482
+ 'placeName': [],
2256
2483
  'provisional': [],
2257
2484
  'time': [],
2258
2485
  'timeZone': [],
@@ -2282,6 +2509,7 @@ const de_BirthDetails = (output, context) => {
2282
2509
  'date': smithy_client_1.expectString,
2283
2510
  'latitude': smithy_client_1.limitedParseDouble,
2284
2511
  'longitude': smithy_client_1.limitedParseDouble,
2512
+ 'placeName': smithy_client_1.expectString,
2285
2513
  'provisional': smithy_client_1.expectBoolean,
2286
2514
  'time': smithy_client_1.expectString,
2287
2515
  'timeZone': smithy_client_1.expectString,
@@ -2297,7 +2525,9 @@ const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBo
2297
2525
  const _c = "category";
2298
2526
  const _k = "key";
2299
2527
  const _l = "lat";
2528
+ const _la = "lang";
2300
2529
  const _lo = "lon";
2301
2530
  const _mI = "matchId";
2531
+ const _q = "q";
2302
2532
  const _rUI = "requestingUserId";
2303
2533
  const _xoui = "x-onehook-user-id";
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.isUiElementId = exports.TELEMETRY_EXEMPT_CATEGORIES = exports.uiElementsForPlatform = exports.UI_ELEMENTS = exports.UiElement = exports.ReportEvent = exports.ReportSource = exports.ReportCategory = exports.HookedStateAction = exports.NotificationChannel = exports.NotificationType = exports.CardVariant = exports.SafetyAction = exports.LikeTargetType = exports.ProfileSection = exports.MediaType = exports.SwipeDirection = exports.UiElementKind = exports.UiAction = exports.TabScreen = exports.ViewableScreen = exports.Screen = exports.Platform = exports.SignalType = exports.TELEMETRY_CATALOG_HASH = exports.TELEMETRY_CATALOG_VERSION = void 0;
4
- exports.TELEMETRY_CATALOG_VERSION = "1.8.0";
5
- exports.TELEMETRY_CATALOG_HASH = "9a56f9fef0ed4ae7";
4
+ exports.TELEMETRY_CATALOG_VERSION = "1.10.0";
5
+ exports.TELEMETRY_CATALOG_HASH = "1d9a5b9cd896cae9";
6
6
  exports.SignalType = {
7
7
  SCREEN_VIEW: "screen_view",
8
8
  UI_INTERACTION: "ui_interaction",
@@ -386,6 +386,7 @@ exports.UiElement = {
386
386
  PREFERENCES_SAVE: "preferences.save",
387
387
  PREFERENCES_UPGRADE_OPEN: "preferences.upgrade_open",
388
388
  PREFERENCES_LOCKED_FILTER_TAP: "preferences.locked_filter_tap",
389
+ PREFERENCES_SUGGESTION_REMOVE: "preferences.suggestion_remove",
389
390
  SETTINGS_EMAIL_MANAGE: "settings.email_manage",
390
391
  SETTINGS_PHONE_UPDATE: "settings.phone_update",
391
392
  SETTINGS_GOOGLE_LINK: "settings.google_link",
@@ -626,10 +627,11 @@ exports.UI_ELEMENTS = {
626
627
  "profile_edit.prompt_remove": { screen: "PROFILE_EDIT", kind: "button", actions: ["tap"], values: null, platforms: ["web", "ios"] },
627
628
  "profile_edit.voice_add": { screen: "PROFILE_EDIT", kind: "button", actions: ["tap"], values: null, platforms: ["web", "ios"] },
628
629
  "profile_edit.voice_remove": { screen: "PROFILE_EDIT", kind: "button", actions: ["tap"], values: null, platforms: ["web", "ios"] },
629
- "profile_edit.choice_select": { screen: "PROFILE_EDIT", kind: "segmented", actions: ["select", "tap"], values: null, platforms: ["web", "ios"] },
630
+ "profile_edit.choice_select": { screen: "PROFILE_EDIT", kind: "segmented", actions: ["select", "tap"], values: null, platforms: ["web", "ios", "android"] },
630
631
  "preferences.save": { screen: "PREFERENCES", kind: "button", actions: ["submit"], values: null, platforms: ["ios", "android"] },
631
632
  "preferences.upgrade_open": { screen: "PREFERENCES", kind: "button", actions: ["tap", "dismiss"], values: null, platforms: ["ios"] },
632
633
  "preferences.locked_filter_tap": { screen: "PREFERENCES", kind: "button", actions: ["tap"], values: null, platforms: ["ios"] },
634
+ "preferences.suggestion_remove": { screen: "PREFERENCES", kind: "button", actions: ["tap"], values: null, platforms: ["web", "ios", "android"] },
633
635
  "settings.email_manage": { screen: "SETTINGS", kind: "button", actions: ["tap", "dismiss"], values: null, platforms: ["web", "ios", "android"] },
634
636
  "settings.phone_update": { screen: "SETTINGS", kind: "button", actions: ["tap", "dismiss"], values: null, platforms: ["ios", "android"] },
635
637
  "settings.google_link": { screen: "SETTINGS", kind: "toggle", actions: ["toggle"], values: ["link", "unlink"], platforms: ["web", "ios", "android"] },
@@ -17,6 +17,7 @@ import { GenerateUploadUrlCommand, } from "./commands/GenerateUploadUrlCommand";
17
17
  import { GetAccountStateCommand, } from "./commands/GetAccountStateCommand";
18
18
  import { GetAdminPhoneStatusCommand, } from "./commands/GetAdminPhoneStatusCommand";
19
19
  import { GetAiContextMatchCommand, } from "./commands/GetAiContextMatchCommand";
20
+ import { GetBirthDateStatusCommand, } from "./commands/GetBirthDateStatusCommand";
20
21
  import { GetChatSettingsCommand, } from "./commands/GetChatSettingsCommand";
21
22
  import { GetCredentialReadinessCommand, } from "./commands/GetCredentialReadinessCommand";
22
23
  import { GetLivenessStatusCommand, } from "./commands/GetLivenessStatusCommand";
@@ -24,7 +25,9 @@ import { GetMatchCommand, } from "./commands/GetMatchCommand";
24
25
  import { GetMyProfileCommand, } from "./commands/GetMyProfileCommand";
25
26
  import { GetNotificationPreferencesCommand, } from "./commands/GetNotificationPreferencesCommand";
26
27
  import { GetParticipantRegistryCommand, } from "./commands/GetParticipantRegistryCommand";
28
+ import { GetPlaceCommand, } from "./commands/GetPlaceCommand";
27
29
  import { GetPreferencesCommand, } from "./commands/GetPreferencesCommand";
30
+ import { GetPreservationHoldCommand, } from "./commands/GetPreservationHoldCommand";
28
31
  import { GetProfileCommand, } from "./commands/GetProfileCommand";
29
32
  import { GetReceivedLikesCommand, } from "./commands/GetReceivedLikesCommand";
30
33
  import { GetRosesCommand, } from "./commands/GetRosesCommand";
@@ -42,12 +45,16 @@ import { RegisterDeviceCommand, } from "./commands/RegisterDeviceCommand";
42
45
  import { RegisterPhoneCommand, } from "./commands/RegisterPhoneCommand";
43
46
  import { RegisterPushTokenCommand, } from "./commands/RegisterPushTokenCommand";
44
47
  import { RemoveLocationCommand, } from "./commands/RemoveLocationCommand";
48
+ import { RemoveSuggestionCommand, } from "./commands/RemoveSuggestionCommand";
45
49
  import { RequestEmailOtpCommand, } from "./commands/RequestEmailOtpCommand";
46
50
  import { RequestPhoneOtpCommand, } from "./commands/RequestPhoneOtpCommand";
47
51
  import { RequestPhoneUpdateOtpCommand, } from "./commands/RequestPhoneUpdateOtpCommand";
48
52
  import { RevokeDeviceCommand, } from "./commands/RevokeDeviceCommand";
53
+ import { RevokeUserAccessCommand, } from "./commands/RevokeUserAccessCommand";
54
+ import { SearchPlacesCommand, } from "./commands/SearchPlacesCommand";
49
55
  import { SendAdminLinkOtpCommand, } from "./commands/SendAdminLinkOtpCommand";
50
56
  import { SetAccountStateCommand, } from "./commands/SetAccountStateCommand";
57
+ import { SetPreservationHoldCommand, } from "./commands/SetPreservationHoldCommand";
51
58
  import { SwipeByUsernameCommand, } from "./commands/SwipeByUsernameCommand";
52
59
  import { SwipeCommand, } from "./commands/SwipeCommand";
53
60
  import { UnhookCommand, } from "./commands/UnhookCommand";
@@ -81,6 +88,7 @@ const commands = {
81
88
  GetAccountStateCommand,
82
89
  GetAdminPhoneStatusCommand,
83
90
  GetCredentialReadinessCommand,
91
+ GetPreservationHoldCommand,
84
92
  GetUserCommand,
85
93
  GetUserByEmailCommand,
86
94
  GetUserIdByUsernameCommand,
@@ -90,8 +98,10 @@ const commands = {
90
98
  RequestEmailOtpCommand,
91
99
  RequestPhoneOtpCommand,
92
100
  RequestPhoneUpdateOtpCommand,
101
+ RevokeUserAccessCommand,
93
102
  SendAdminLinkOtpCommand,
94
103
  SetAccountStateCommand,
104
+ SetPreservationHoldCommand,
95
105
  UnlinkSocialCommand,
96
106
  UpdateEntitlementsCommand,
97
107
  UpdatePhoneNumberCommand,
@@ -106,6 +116,7 @@ const commands = {
106
116
  IndexLocationCommand,
107
117
  RecordSuggestionCommand,
108
118
  RemoveLocationCommand,
119
+ RemoveSuggestionCommand,
109
120
  SwipeCommand,
110
121
  SwipeByUsernameCommand,
111
122
  UpdatePreferencesCommand,
@@ -115,9 +126,12 @@ const commands = {
115
126
  DeleteProfileCommand,
116
127
  GenerateDownloadUrlCommand,
117
128
  GenerateUploadUrlCommand,
129
+ GetBirthDateStatusCommand,
118
130
  GetLivenessStatusCommand,
119
131
  GetMyProfileCommand,
132
+ GetPlaceCommand,
120
133
  GetProfileCommand,
134
+ SearchPlacesCommand,
121
135
  UpdateProfileCommand,
122
136
  CompleteOnboardingCommand,
123
137
  GetMatchCommand,
@@ -0,0 +1,17 @@
1
+ import { de_GetBirthDateStatusCommand, se_GetBirthDateStatusCommand, } 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 GetBirthDateStatusCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("OneHookService", "GetBirthDateStatus", {})
12
+ .n("OneHookClient", "GetBirthDateStatusCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_GetBirthDateStatusCommand)
15
+ .de(de_GetBirthDateStatusCommand)
16
+ .build() {
17
+ }
@@ -0,0 +1,17 @@
1
+ import { de_GetPlaceCommand, se_GetPlaceCommand, } 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 GetPlaceCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("OneHookService", "GetPlace", {})
12
+ .n("OneHookClient", "GetPlaceCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_GetPlaceCommand)
15
+ .de(de_GetPlaceCommand)
16
+ .build() {
17
+ }
@@ -0,0 +1,17 @@
1
+ import { de_GetPreservationHoldCommand, se_GetPreservationHoldCommand, } 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 GetPreservationHoldCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("OneHookService", "GetPreservationHold", {})
12
+ .n("OneHookClient", "GetPreservationHoldCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_GetPreservationHoldCommand)
15
+ .de(de_GetPreservationHoldCommand)
16
+ .build() {
17
+ }
@@ -0,0 +1,17 @@
1
+ import { de_RemoveSuggestionCommand, se_RemoveSuggestionCommand, } 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 RemoveSuggestionCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("OneHookService", "RemoveSuggestion", {})
12
+ .n("OneHookClient", "RemoveSuggestionCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_RemoveSuggestionCommand)
15
+ .de(de_RemoveSuggestionCommand)
16
+ .build() {
17
+ }
@@ -0,0 +1,17 @@
1
+ import { de_RevokeUserAccessCommand, se_RevokeUserAccessCommand, } 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 RevokeUserAccessCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("OneHookService", "RevokeUserAccess", {})
12
+ .n("OneHookClient", "RevokeUserAccessCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_RevokeUserAccessCommand)
15
+ .de(de_RevokeUserAccessCommand)
16
+ .build() {
17
+ }
@@ -0,0 +1,17 @@
1
+ import { de_SearchPlacesCommand, se_SearchPlacesCommand, } 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 SearchPlacesCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("OneHookService", "SearchPlaces", {})
12
+ .n("OneHookClient", "SearchPlacesCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_SearchPlacesCommand)
15
+ .de(de_SearchPlacesCommand)
16
+ .build() {
17
+ }
@@ -0,0 +1,17 @@
1
+ import { de_SetPreservationHoldCommand, se_SetPreservationHoldCommand, } 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 SetPreservationHoldCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("OneHookService", "SetPreservationHold", {})
12
+ .n("OneHookClient", "SetPreservationHoldCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_SetPreservationHoldCommand)
15
+ .de(de_SetPreservationHoldCommand)
16
+ .build() {
17
+ }