onehook-api-client 1.0.30 → 1.0.32

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 (43) hide show
  1. package/README.md +49 -0
  2. package/dist-cjs/OneHook.js +14 -0
  3. package/dist-cjs/commands/CorrectBirthDateCommand.js +21 -0
  4. package/dist-cjs/commands/GetBirthDateStatusCommand.js +21 -0
  5. package/dist-cjs/commands/GetPlaceCommand.js +21 -0
  6. package/dist-cjs/commands/GetPreservationHoldCommand.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 +274 -4
  12. package/dist-cjs/telemetry/index.js +5 -3
  13. package/dist-es/OneHook.js +14 -0
  14. package/dist-es/commands/CorrectBirthDateCommand.js +17 -0
  15. package/dist-es/commands/GetBirthDateStatusCommand.js +17 -0
  16. package/dist-es/commands/GetPlaceCommand.js +17 -0
  17. package/dist-es/commands/GetPreservationHoldCommand.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 +257 -1
  23. package/dist-es/telemetry/index.js +5 -3
  24. package/dist-types/OneHook.d.ts +49 -0
  25. package/dist-types/OneHookClient.d.ts +9 -2
  26. package/dist-types/commands/CorrectBirthDateCommand.d.ts +88 -0
  27. package/dist-types/commands/GetBirthDateStatusCommand.d.ts +89 -0
  28. package/dist-types/commands/GetMyProfileCommand.d.ts +10 -0
  29. package/dist-types/commands/GetPlaceCommand.d.ts +84 -0
  30. package/dist-types/commands/GetPreservationHoldCommand.d.ts +87 -0
  31. package/dist-types/commands/GetProfileCommand.d.ts +10 -0
  32. package/dist-types/commands/RevokeUserAccessCommand.d.ts +94 -0
  33. package/dist-types/commands/SearchPlacesCommand.d.ts +83 -0
  34. package/dist-types/commands/SetPreservationHoldCommand.d.ts +98 -0
  35. package/dist-types/commands/UpdateProfileCommand.d.ts +9 -1
  36. package/dist-types/commands/index.d.ts +7 -0
  37. package/dist-types/models/models_0.d.ts +301 -1
  38. package/dist-types/protocols/Aws_restJson1.d.ts +63 -0
  39. package/dist-types/telemetry/index.d.ts +3 -2
  40. package/package.json +1 -1
  41. package/telemetry/TelemetryCatalog.kt +6 -5
  42. package/telemetry/TelemetryCatalog.swift +7 -5
  43. package/telemetry/telemetry-catalog.json +25 -4
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- 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_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_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_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 = 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_CompleteLivenessSessionCommand = exports.de_UpdatePreferencesCommand = exports.de_SwipeByUsernameCommand = exports.de_SwipeCommand = exports.de_RemoveLocationCommand = exports.de_RecordSuggestionCommand = exports.de_IndexLocationCommand = exports.de_GetRosesCommand = void 0;
3
+ 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_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_SetPreservationHoldCommand = 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 = 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_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 = 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 = {};
@@ -769,6 +815,25 @@ const se_CompleteLivenessSessionCommand = async (input, context) => {
769
815
  return b.build();
770
816
  };
771
817
  exports.se_CompleteLivenessSessionCommand = se_CompleteLivenessSessionCommand;
818
+ const se_CorrectBirthDateCommand = async (input, context) => {
819
+ const b = (0, core_2.requestBuilder)(input, context);
820
+ const headers = {
821
+ 'content-type': 'application/json',
822
+ };
823
+ b.bp("/profile-admin/{userId}/birth-date");
824
+ b.p('userId', () => input.userId, '{userId}', false);
825
+ let body;
826
+ body = JSON.stringify((0, smithy_client_1.take)(input, {
827
+ 'date': [],
828
+ 'reason': [],
829
+ 'reference': [],
830
+ }));
831
+ b.m("PUT")
832
+ .h(headers)
833
+ .b(body);
834
+ return b.build();
835
+ };
836
+ exports.se_CorrectBirthDateCommand = se_CorrectBirthDateCommand;
772
837
  const se_CreateLivenessSessionCommand = async (input, context) => {
773
838
  const b = (0, core_2.requestBuilder)(input, context);
774
839
  const headers = {};
@@ -824,6 +889,18 @@ const se_GenerateUploadUrlCommand = async (input, context) => {
824
889
  return b.build();
825
890
  };
826
891
  exports.se_GenerateUploadUrlCommand = se_GenerateUploadUrlCommand;
892
+ const se_GetBirthDateStatusCommand = async (input, context) => {
893
+ const b = (0, core_2.requestBuilder)(input, context);
894
+ const headers = {};
895
+ b.bp("/profile-admin/{userId}/birth-date");
896
+ b.p('userId', () => input.userId, '{userId}', false);
897
+ let body;
898
+ b.m("GET")
899
+ .h(headers)
900
+ .b(body);
901
+ return b.build();
902
+ };
903
+ exports.se_GetBirthDateStatusCommand = se_GetBirthDateStatusCommand;
827
904
  const se_GetLivenessStatusCommand = async (input, context) => {
828
905
  const b = (0, core_2.requestBuilder)(input, context);
829
906
  const headers = {};
@@ -846,6 +923,22 @@ const se_GetMyProfileCommand = async (input, context) => {
846
923
  return b.build();
847
924
  };
848
925
  exports.se_GetMyProfileCommand = se_GetMyProfileCommand;
926
+ const se_GetPlaceCommand = async (input, context) => {
927
+ const b = (0, core_2.requestBuilder)(input, context);
928
+ const headers = {};
929
+ b.bp("/profile/places/{placeId}");
930
+ b.p('placeId', () => input.placeId, '{placeId}', false);
931
+ const query = (0, smithy_client_1.map)({
932
+ [_la]: [, input[_la]],
933
+ });
934
+ let body;
935
+ b.m("GET")
936
+ .h(headers)
937
+ .q(query)
938
+ .b(body);
939
+ return b.build();
940
+ };
941
+ exports.se_GetPlaceCommand = se_GetPlaceCommand;
849
942
  const se_GetProfileCommand = async (input, context) => {
850
943
  const b = (0, core_2.requestBuilder)(input, context);
851
944
  const headers = {};
@@ -858,6 +951,22 @@ const se_GetProfileCommand = async (input, context) => {
858
951
  return b.build();
859
952
  };
860
953
  exports.se_GetProfileCommand = se_GetProfileCommand;
954
+ const se_SearchPlacesCommand = async (input, context) => {
955
+ const b = (0, core_2.requestBuilder)(input, context);
956
+ const headers = {};
957
+ b.bp("/profile/places");
958
+ const query = (0, smithy_client_1.map)({
959
+ [_q]: [, (0, smithy_client_1.expectNonNull)(input[_q], `q`)],
960
+ [_la]: [, input[_la]],
961
+ });
962
+ let body;
963
+ b.m("GET")
964
+ .h(headers)
965
+ .q(query)
966
+ .b(body);
967
+ return b.build();
968
+ };
969
+ exports.se_SearchPlacesCommand = se_SearchPlacesCommand;
861
970
  const se_UpdateProfileCommand = async (input, context) => {
862
971
  const b = (0, core_2.requestBuilder)(input, context);
863
972
  const headers = {
@@ -866,9 +975,9 @@ const se_UpdateProfileCommand = async (input, context) => {
866
975
  b.bp("/profile");
867
976
  let body;
868
977
  body = JSON.stringify((0, smithy_client_1.take)(input, {
869
- 'age': [],
870
978
  'audioPrompt': [],
871
979
  'bio': [],
980
+ 'birthDetails': _ => se_BirthDetails(_, context),
872
981
  'cannabisStatus': [],
873
982
  'causes': _ => (0, smithy_client_1._json)(_),
874
983
  'communities': _ => (0, smithy_client_1._json)(_),
@@ -1276,6 +1385,28 @@ const de_GetCredentialReadinessCommand = async (output, context) => {
1276
1385
  return contents;
1277
1386
  };
1278
1387
  exports.de_GetCredentialReadinessCommand = de_GetCredentialReadinessCommand;
1388
+ const de_GetPreservationHoldCommand = async (output, context) => {
1389
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1390
+ return de_CommandError(output, context);
1391
+ }
1392
+ const contents = (0, smithy_client_1.map)({
1393
+ $metadata: deserializeMetadata(output),
1394
+ });
1395
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1396
+ const doc = (0, smithy_client_1.take)(data, {
1397
+ 'active': smithy_client_1.expectBoolean,
1398
+ 'caseRef': smithy_client_1.expectString,
1399
+ 'childSafetySince': smithy_client_1.expectLong,
1400
+ 'reasonCode': smithy_client_1.expectString,
1401
+ 'setAt': smithy_client_1.expectLong,
1402
+ 'setBy': smithy_client_1.expectString,
1403
+ 'until': smithy_client_1.expectLong,
1404
+ 'version': smithy_client_1.expectInt32,
1405
+ });
1406
+ Object.assign(contents, doc);
1407
+ return contents;
1408
+ };
1409
+ exports.de_GetPreservationHoldCommand = de_GetPreservationHoldCommand;
1279
1410
  const de_GetUserCommand = async (output, context) => {
1280
1411
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1281
1412
  return de_CommandError(output, context);
@@ -1430,6 +1561,21 @@ const de_RequestPhoneUpdateOtpCommand = async (output, context) => {
1430
1561
  return contents;
1431
1562
  };
1432
1563
  exports.de_RequestPhoneUpdateOtpCommand = de_RequestPhoneUpdateOtpCommand;
1564
+ const de_RevokeUserAccessCommand = async (output, context) => {
1565
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1566
+ return de_CommandError(output, context);
1567
+ }
1568
+ const contents = (0, smithy_client_1.map)({
1569
+ $metadata: deserializeMetadata(output),
1570
+ });
1571
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1572
+ const doc = (0, smithy_client_1.take)(data, {
1573
+ 'status': smithy_client_1.expectString,
1574
+ });
1575
+ Object.assign(contents, doc);
1576
+ return contents;
1577
+ };
1578
+ exports.de_RevokeUserAccessCommand = de_RevokeUserAccessCommand;
1433
1579
  const de_SendAdminLinkOtpCommand = async (output, context) => {
1434
1580
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1435
1581
  return de_CommandError(output, context);
@@ -1463,6 +1609,24 @@ const de_SetAccountStateCommand = async (output, context) => {
1463
1609
  return contents;
1464
1610
  };
1465
1611
  exports.de_SetAccountStateCommand = de_SetAccountStateCommand;
1612
+ const de_SetPreservationHoldCommand = async (output, context) => {
1613
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1614
+ return de_CommandError(output, context);
1615
+ }
1616
+ const contents = (0, smithy_client_1.map)({
1617
+ $metadata: deserializeMetadata(output),
1618
+ });
1619
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1620
+ const doc = (0, smithy_client_1.take)(data, {
1621
+ 'active': smithy_client_1.expectBoolean,
1622
+ 'reasonCode': smithy_client_1.expectString,
1623
+ 'until': smithy_client_1.expectLong,
1624
+ 'version': smithy_client_1.expectInt32,
1625
+ });
1626
+ Object.assign(contents, doc);
1627
+ return contents;
1628
+ };
1629
+ exports.de_SetPreservationHoldCommand = de_SetPreservationHoldCommand;
1466
1630
  const de_UnlinkSocialCommand = async (output, context) => {
1467
1631
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1468
1632
  return de_CommandError(output, context);
@@ -1785,6 +1949,25 @@ const de_CompleteLivenessSessionCommand = async (output, context) => {
1785
1949
  return contents;
1786
1950
  };
1787
1951
  exports.de_CompleteLivenessSessionCommand = de_CompleteLivenessSessionCommand;
1952
+ const de_CorrectBirthDateCommand = async (output, context) => {
1953
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1954
+ return de_CommandError(output, context);
1955
+ }
1956
+ const contents = (0, smithy_client_1.map)({
1957
+ $metadata: deserializeMetadata(output),
1958
+ });
1959
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
1960
+ const doc = (0, smithy_client_1.take)(data, {
1961
+ 'age': smithy_client_1.expectInt32,
1962
+ 'correctionsRemaining': smithy_client_1.expectInt32,
1963
+ 'correctionsUsed': smithy_client_1.expectInt32,
1964
+ 'date': smithy_client_1.expectString,
1965
+ 'userId': smithy_client_1.expectString,
1966
+ });
1967
+ Object.assign(contents, doc);
1968
+ return contents;
1969
+ };
1970
+ exports.de_CorrectBirthDateCommand = de_CorrectBirthDateCommand;
1788
1971
  const de_CreateLivenessSessionCommand = async (output, context) => {
1789
1972
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1790
1973
  return de_CommandError(output, context);
@@ -1848,6 +2031,31 @@ const de_GenerateUploadUrlCommand = async (output, context) => {
1848
2031
  return contents;
1849
2032
  };
1850
2033
  exports.de_GenerateUploadUrlCommand = de_GenerateUploadUrlCommand;
2034
+ const de_GetBirthDateStatusCommand = async (output, context) => {
2035
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2036
+ return de_CommandError(output, context);
2037
+ }
2038
+ const contents = (0, smithy_client_1.map)({
2039
+ $metadata: deserializeMetadata(output),
2040
+ });
2041
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
2042
+ const doc = (0, smithy_client_1.take)(data, {
2043
+ 'age': smithy_client_1.expectInt32,
2044
+ 'birthDateOnFile': smithy_client_1.expectBoolean,
2045
+ 'correctionsRemaining': smithy_client_1.expectInt32,
2046
+ 'correctionsUsed': smithy_client_1.expectInt32,
2047
+ 'date': smithy_client_1.expectString,
2048
+ 'lastCorrectedAt': smithy_client_1.expectLong,
2049
+ 'lastCorrectedBy': smithy_client_1.expectString,
2050
+ 'lastReason': smithy_client_1.expectString,
2051
+ 'lastReference': smithy_client_1.expectString,
2052
+ 'provisional': smithy_client_1.expectBoolean,
2053
+ 'userId': smithy_client_1.expectString,
2054
+ });
2055
+ Object.assign(contents, doc);
2056
+ return contents;
2057
+ };
2058
+ exports.de_GetBirthDateStatusCommand = de_GetBirthDateStatusCommand;
1851
2059
  const de_GetLivenessStatusCommand = async (output, context) => {
1852
2060
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1853
2061
  return de_CommandError(output, context);
@@ -1875,6 +2083,8 @@ const de_GetMyProfileCommand = async (output, context) => {
1875
2083
  'age': smithy_client_1.expectInt32,
1876
2084
  'audioPrompt': smithy_client_1.expectString,
1877
2085
  'bio': smithy_client_1.expectString,
2086
+ 'birthDateOnFile': smithy_client_1.expectBoolean,
2087
+ 'birthDetails': _ => de_BirthDetails(_, context),
1878
2088
  'cannabisStatus': smithy_client_1.expectString,
1879
2089
  'causes': smithy_client_1._json,
1880
2090
  'communities': smithy_client_1._json,
@@ -1916,6 +2126,25 @@ const de_GetMyProfileCommand = async (output, context) => {
1916
2126
  return contents;
1917
2127
  };
1918
2128
  exports.de_GetMyProfileCommand = de_GetMyProfileCommand;
2129
+ const de_GetPlaceCommand = async (output, context) => {
2130
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2131
+ return de_CommandError(output, context);
2132
+ }
2133
+ const contents = (0, smithy_client_1.map)({
2134
+ $metadata: deserializeMetadata(output),
2135
+ });
2136
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
2137
+ const doc = (0, smithy_client_1.take)(data, {
2138
+ 'label': smithy_client_1.expectString,
2139
+ 'latitude': smithy_client_1.limitedParseDouble,
2140
+ 'longitude': smithy_client_1.limitedParseDouble,
2141
+ 'placeId': smithy_client_1.expectString,
2142
+ 'timeZone': smithy_client_1.expectString,
2143
+ });
2144
+ Object.assign(contents, doc);
2145
+ return contents;
2146
+ };
2147
+ exports.de_GetPlaceCommand = de_GetPlaceCommand;
1919
2148
  const de_GetProfileCommand = async (output, context) => {
1920
2149
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1921
2150
  return de_CommandError(output, context);
@@ -1928,6 +2157,8 @@ const de_GetProfileCommand = async (output, context) => {
1928
2157
  'age': smithy_client_1.expectInt32,
1929
2158
  'audioPrompt': smithy_client_1.expectString,
1930
2159
  'bio': smithy_client_1.expectString,
2160
+ 'birthDateOnFile': smithy_client_1.expectBoolean,
2161
+ 'birthDetails': _ => de_BirthDetails(_, context),
1931
2162
  'cannabisStatus': smithy_client_1.expectString,
1932
2163
  'causes': smithy_client_1._json,
1933
2164
  'communities': smithy_client_1._json,
@@ -1969,6 +2200,21 @@ const de_GetProfileCommand = async (output, context) => {
1969
2200
  return contents;
1970
2201
  };
1971
2202
  exports.de_GetProfileCommand = de_GetProfileCommand;
2203
+ const de_SearchPlacesCommand = async (output, context) => {
2204
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2205
+ return de_CommandError(output, context);
2206
+ }
2207
+ const contents = (0, smithy_client_1.map)({
2208
+ $metadata: deserializeMetadata(output),
2209
+ });
2210
+ const data = (0, smithy_client_1.expectNonNull)(((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context))), "body");
2211
+ const doc = (0, smithy_client_1.take)(data, {
2212
+ 'places': smithy_client_1._json,
2213
+ });
2214
+ Object.assign(contents, doc);
2215
+ return contents;
2216
+ };
2217
+ exports.de_SearchPlacesCommand = de_SearchPlacesCommand;
1972
2218
  const de_UpdateProfileCommand = async (output, context) => {
1973
2219
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1974
2220
  return de_CommandError(output, context);
@@ -2205,6 +2451,17 @@ const de_NotFoundErrorRes = async (parsedOutput, context) => {
2205
2451
  });
2206
2452
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
2207
2453
  };
2454
+ const se_BirthDetails = (input, context) => {
2455
+ return (0, smithy_client_1.take)(input, {
2456
+ 'date': [],
2457
+ 'latitude': smithy_client_1.serializeFloat,
2458
+ 'longitude': smithy_client_1.serializeFloat,
2459
+ 'placeName': [],
2460
+ 'provisional': [],
2461
+ 'time': [],
2462
+ 'timeZone': [],
2463
+ });
2464
+ };
2208
2465
  const de_CandidateDto = (output, context) => {
2209
2466
  return (0, smithy_client_1.take)(output, {
2210
2467
  'distanceKm': smithy_client_1.limitedParseDouble,
@@ -2224,6 +2481,17 @@ const de_CandidateList = (output, context) => {
2224
2481
  });
2225
2482
  return retVal;
2226
2483
  };
2484
+ const de_BirthDetails = (output, context) => {
2485
+ return (0, smithy_client_1.take)(output, {
2486
+ 'date': smithy_client_1.expectString,
2487
+ 'latitude': smithy_client_1.limitedParseDouble,
2488
+ 'longitude': smithy_client_1.limitedParseDouble,
2489
+ 'placeName': smithy_client_1.expectString,
2490
+ 'provisional': smithy_client_1.expectBoolean,
2491
+ 'time': smithy_client_1.expectString,
2492
+ 'timeZone': smithy_client_1.expectString,
2493
+ });
2494
+ };
2227
2495
  const deserializeMetadata = (output) => ({
2228
2496
  httpStatusCode: output.statusCode,
2229
2497
  requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
@@ -2234,7 +2502,9 @@ const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBo
2234
2502
  const _c = "category";
2235
2503
  const _k = "key";
2236
2504
  const _l = "lat";
2505
+ const _la = "lang";
2237
2506
  const _lo = "lon";
2238
2507
  const _mI = "matchId";
2508
+ const _q = "q";
2239
2509
  const _rUI = "requestingUserId";
2240
2510
  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.7.0";
5
- exports.TELEMETRY_CATALOG_HASH = "4a3328962531236a";
4
+ exports.TELEMETRY_CATALOG_VERSION = "1.9.0";
5
+ exports.TELEMETRY_CATALOG_HASH = "7f0a0b33ce88bee5";
6
6
  exports.SignalType = {
7
7
  SCREEN_VIEW: "screen_view",
8
8
  UI_INTERACTION: "ui_interaction",
@@ -269,6 +269,7 @@ exports.UiElement = {
269
269
  DISCOVER_LIKES_YOU_OPEN: "discover.likes_you_open",
270
270
  DISCOVER_ADD_HOOK_OPEN: "discover.add_hook_open",
271
271
  DISCOVER_RETRY: "discover.retry",
272
+ DISCOVER_CATEGORY_SELECT: "discover.category_select",
272
273
  DISCOVER_ADD_HOOK_SUBMIT: "discover.add_hook_submit",
273
274
  DISCOVER_UPGRADE_OPEN: "discover.upgrade_open",
274
275
  LIKE_COMPOSER_SEND: "like_composer.send",
@@ -512,6 +513,7 @@ exports.UI_ELEMENTS = {
512
513
  "discover.likes_you_open": { screen: "DISCOVER", kind: "button", actions: ["tap", "dismiss"], values: null, platforms: ["ios", "android"] },
513
514
  "discover.add_hook_open": { screen: "DISCOVER", kind: "button", actions: ["tap", "dismiss"], values: null, platforms: ["ios"] },
514
515
  "discover.retry": { screen: "DISCOVER", kind: "button", actions: ["tap"], values: null, platforms: ["web", "ios", "android"] },
516
+ "discover.category_select": { screen: "DISCOVER", kind: "button", actions: ["tap"], values: ["all", "profile_match", "onehook_suggested", "similar"], platforms: ["web", "ios", "android"] },
515
517
  "discover.add_hook_submit": { screen: "DISCOVER", kind: "button", actions: ["submit"], values: null, platforms: ["web", "ios"] },
516
518
  "discover.upgrade_open": { screen: "DISCOVER", kind: "button", actions: ["tap", "dismiss"], values: null, platforms: ["ios"] },
517
519
  "like_composer.send": { screen: "LIKE_COMPOSER", kind: "button", actions: ["submit"], values: null, platforms: ["web", "ios", "android"] },
@@ -624,7 +626,7 @@ exports.UI_ELEMENTS = {
624
626
  "profile_edit.prompt_remove": { screen: "PROFILE_EDIT", kind: "button", actions: ["tap"], values: null, platforms: ["web", "ios"] },
625
627
  "profile_edit.voice_add": { screen: "PROFILE_EDIT", kind: "button", actions: ["tap"], values: null, platforms: ["web", "ios"] },
626
628
  "profile_edit.voice_remove": { screen: "PROFILE_EDIT", kind: "button", actions: ["tap"], values: null, platforms: ["web", "ios"] },
627
- "profile_edit.choice_select": { screen: "PROFILE_EDIT", kind: "segmented", actions: ["select", "tap"], values: null, platforms: ["web", "ios"] },
629
+ "profile_edit.choice_select": { screen: "PROFILE_EDIT", kind: "segmented", actions: ["select", "tap"], values: null, platforms: ["web", "ios", "android"] },
628
630
  "preferences.save": { screen: "PREFERENCES", kind: "button", actions: ["submit"], values: null, platforms: ["ios", "android"] },
629
631
  "preferences.upgrade_open": { screen: "PREFERENCES", kind: "button", actions: ["tap", "dismiss"], values: null, platforms: ["ios"] },
630
632
  "preferences.locked_filter_tap": { screen: "PREFERENCES", kind: "button", actions: ["tap"], values: null, platforms: ["ios"] },
@@ -2,6 +2,7 @@ import { OneHookClient, } from "./OneHookClient";
2
2
  import { AuthSocialCommand, } from "./commands/AuthSocialCommand";
3
3
  import { CompleteLivenessSessionCommand, } from "./commands/CompleteLivenessSessionCommand";
4
4
  import { CompleteOnboardingCommand, } from "./commands/CompleteOnboardingCommand";
5
+ import { CorrectBirthDateCommand, } from "./commands/CorrectBirthDateCommand";
5
6
  import { CreateAdminInviteCommand, } from "./commands/CreateAdminInviteCommand";
6
7
  import { CreateLivenessSessionCommand, } from "./commands/CreateLivenessSessionCommand";
7
8
  import { CreateMediaDownloadUrlCommand, } from "./commands/CreateMediaDownloadUrlCommand";
@@ -16,6 +17,7 @@ import { GenerateUploadUrlCommand, } from "./commands/GenerateUploadUrlCommand";
16
17
  import { GetAccountStateCommand, } from "./commands/GetAccountStateCommand";
17
18
  import { GetAdminPhoneStatusCommand, } from "./commands/GetAdminPhoneStatusCommand";
18
19
  import { GetAiContextMatchCommand, } from "./commands/GetAiContextMatchCommand";
20
+ import { GetBirthDateStatusCommand, } from "./commands/GetBirthDateStatusCommand";
19
21
  import { GetChatSettingsCommand, } from "./commands/GetChatSettingsCommand";
20
22
  import { GetCredentialReadinessCommand, } from "./commands/GetCredentialReadinessCommand";
21
23
  import { GetLivenessStatusCommand, } from "./commands/GetLivenessStatusCommand";
@@ -23,7 +25,9 @@ import { GetMatchCommand, } from "./commands/GetMatchCommand";
23
25
  import { GetMyProfileCommand, } from "./commands/GetMyProfileCommand";
24
26
  import { GetNotificationPreferencesCommand, } from "./commands/GetNotificationPreferencesCommand";
25
27
  import { GetParticipantRegistryCommand, } from "./commands/GetParticipantRegistryCommand";
28
+ import { GetPlaceCommand, } from "./commands/GetPlaceCommand";
26
29
  import { GetPreferencesCommand, } from "./commands/GetPreferencesCommand";
30
+ import { GetPreservationHoldCommand, } from "./commands/GetPreservationHoldCommand";
27
31
  import { GetProfileCommand, } from "./commands/GetProfileCommand";
28
32
  import { GetReceivedLikesCommand, } from "./commands/GetReceivedLikesCommand";
29
33
  import { GetRosesCommand, } from "./commands/GetRosesCommand";
@@ -45,8 +49,11 @@ import { RequestEmailOtpCommand, } from "./commands/RequestEmailOtpCommand";
45
49
  import { RequestPhoneOtpCommand, } from "./commands/RequestPhoneOtpCommand";
46
50
  import { RequestPhoneUpdateOtpCommand, } from "./commands/RequestPhoneUpdateOtpCommand";
47
51
  import { RevokeDeviceCommand, } from "./commands/RevokeDeviceCommand";
52
+ import { RevokeUserAccessCommand, } from "./commands/RevokeUserAccessCommand";
53
+ import { SearchPlacesCommand, } from "./commands/SearchPlacesCommand";
48
54
  import { SendAdminLinkOtpCommand, } from "./commands/SendAdminLinkOtpCommand";
49
55
  import { SetAccountStateCommand, } from "./commands/SetAccountStateCommand";
56
+ import { SetPreservationHoldCommand, } from "./commands/SetPreservationHoldCommand";
50
57
  import { SwipeByUsernameCommand, } from "./commands/SwipeByUsernameCommand";
51
58
  import { SwipeCommand, } from "./commands/SwipeCommand";
52
59
  import { UnhookCommand, } from "./commands/UnhookCommand";
@@ -80,6 +87,7 @@ const commands = {
80
87
  GetAccountStateCommand,
81
88
  GetAdminPhoneStatusCommand,
82
89
  GetCredentialReadinessCommand,
90
+ GetPreservationHoldCommand,
83
91
  GetUserCommand,
84
92
  GetUserByEmailCommand,
85
93
  GetUserIdByUsernameCommand,
@@ -89,8 +97,10 @@ const commands = {
89
97
  RequestEmailOtpCommand,
90
98
  RequestPhoneOtpCommand,
91
99
  RequestPhoneUpdateOtpCommand,
100
+ RevokeUserAccessCommand,
92
101
  SendAdminLinkOtpCommand,
93
102
  SetAccountStateCommand,
103
+ SetPreservationHoldCommand,
94
104
  UnlinkSocialCommand,
95
105
  UpdateEntitlementsCommand,
96
106
  UpdatePhoneNumberCommand,
@@ -109,13 +119,17 @@ const commands = {
109
119
  SwipeByUsernameCommand,
110
120
  UpdatePreferencesCommand,
111
121
  CompleteLivenessSessionCommand,
122
+ CorrectBirthDateCommand,
112
123
  CreateLivenessSessionCommand,
113
124
  DeleteProfileCommand,
114
125
  GenerateDownloadUrlCommand,
115
126
  GenerateUploadUrlCommand,
127
+ GetBirthDateStatusCommand,
116
128
  GetLivenessStatusCommand,
117
129
  GetMyProfileCommand,
130
+ GetPlaceCommand,
118
131
  GetProfileCommand,
132
+ SearchPlacesCommand,
119
133
  UpdateProfileCommand,
120
134
  CompleteOnboardingCommand,
121
135
  GetMatchCommand,
@@ -0,0 +1,17 @@
1
+ import { de_CorrectBirthDateCommand, se_CorrectBirthDateCommand, } 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 CorrectBirthDateCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("OneHookService", "CorrectBirthDate", {})
12
+ .n("OneHookClient", "CorrectBirthDateCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_CorrectBirthDateCommand)
15
+ .de(de_CorrectBirthDateCommand)
16
+ .build() {
17
+ }
@@ -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_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
+ }