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
@@ -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
+ }
@@ -16,6 +16,7 @@ export * from "./GenerateInviteCommand";
16
16
  export * from "./GetAccountStateCommand";
17
17
  export * from "./GetAdminPhoneStatusCommand";
18
18
  export * from "./GetCredentialReadinessCommand";
19
+ export * from "./GetPreservationHoldCommand";
19
20
  export * from "./GetUserCommand";
20
21
  export * from "./GetUserByEmailCommand";
21
22
  export * from "./GetUserIdByUsernameCommand";
@@ -25,8 +26,10 @@ export * from "./RegisterPhoneCommand";
25
26
  export * from "./RequestEmailOtpCommand";
26
27
  export * from "./RequestPhoneOtpCommand";
27
28
  export * from "./RequestPhoneUpdateOtpCommand";
29
+ export * from "./RevokeUserAccessCommand";
28
30
  export * from "./SendAdminLinkOtpCommand";
29
31
  export * from "./SetAccountStateCommand";
32
+ export * from "./SetPreservationHoldCommand";
30
33
  export * from "./UnlinkSocialCommand";
31
34
  export * from "./UpdateEntitlementsCommand";
32
35
  export * from "./UpdatePhoneNumberCommand";
@@ -45,13 +48,17 @@ export * from "./SwipeCommand";
45
48
  export * from "./SwipeByUsernameCommand";
46
49
  export * from "./UpdatePreferencesCommand";
47
50
  export * from "./CompleteLivenessSessionCommand";
51
+ export * from "./CorrectBirthDateCommand";
48
52
  export * from "./CreateLivenessSessionCommand";
49
53
  export * from "./DeleteProfileCommand";
50
54
  export * from "./GenerateDownloadUrlCommand";
51
55
  export * from "./GenerateUploadUrlCommand";
56
+ export * from "./GetBirthDateStatusCommand";
52
57
  export * from "./GetLivenessStatusCommand";
53
58
  export * from "./GetMyProfileCommand";
59
+ export * from "./GetPlaceCommand";
54
60
  export * from "./GetProfileCommand";
61
+ export * from "./SearchPlacesCommand";
55
62
  export * from "./UpdateProfileCommand";
56
63
  export * from "./CompleteOnboardingCommand";
57
64
  export * from "./GetMatchCommand";
@@ -264,6 +264,17 @@ export const se_GetCredentialReadinessCommand = async (input, context) => {
264
264
  .b(body);
265
265
  return b.build();
266
266
  };
267
+ export const se_GetPreservationHoldCommand = async (input, context) => {
268
+ const b = rb(input, context);
269
+ const headers = {};
270
+ b.bp("/identity/admin/users/{userId}/preservation-hold");
271
+ b.p('userId', () => input.userId, '{userId}', false);
272
+ let body;
273
+ b.m("GET")
274
+ .h(headers)
275
+ .b(body);
276
+ return b.build();
277
+ };
267
278
  export const se_GetUserCommand = async (input, context) => {
268
279
  const b = rb(input, context);
269
280
  const headers = {};
@@ -394,6 +405,17 @@ export const se_RequestPhoneUpdateOtpCommand = async (input, context) => {
394
405
  .b(body);
395
406
  return b.build();
396
407
  };
408
+ export const se_RevokeUserAccessCommand = async (input, context) => {
409
+ const b = rb(input, context);
410
+ const headers = {};
411
+ b.bp("/identity/admin/users/{userId}/revoke-access");
412
+ b.p('userId', () => input.userId, '{userId}', false);
413
+ let body;
414
+ b.m("POST")
415
+ .h(headers)
416
+ .b(body);
417
+ return b.build();
418
+ };
397
419
  export const se_SendAdminLinkOtpCommand = async (input, context) => {
398
420
  const b = rb(input, context);
399
421
  const headers = {};
@@ -425,6 +447,27 @@ export const se_SetAccountStateCommand = async (input, context) => {
425
447
  .b(body);
426
448
  return b.build();
427
449
  };
450
+ export const se_SetPreservationHoldCommand = async (input, context) => {
451
+ const b = rb(input, context);
452
+ const headers = {
453
+ 'content-type': 'application/json',
454
+ };
455
+ b.bp("/identity/admin/users/{userId}/preservation-hold");
456
+ b.p('userId', () => input.userId, '{userId}', false);
457
+ let body;
458
+ body = JSON.stringify(take(input, {
459
+ 'active': [],
460
+ 'actor': [],
461
+ 'caseRef': [],
462
+ 'expectedVersion': [],
463
+ 'reasonCode': [],
464
+ 'until': [],
465
+ }));
466
+ b.m("PUT")
467
+ .h(headers)
468
+ .b(body);
469
+ return b.build();
470
+ };
428
471
  export const se_UnlinkSocialCommand = async (input, context) => {
429
472
  const b = rb(input, context);
430
473
  const headers = {};
@@ -717,6 +760,24 @@ export const se_CompleteLivenessSessionCommand = async (input, context) => {
717
760
  .b(body);
718
761
  return b.build();
719
762
  };
763
+ export const se_CorrectBirthDateCommand = async (input, context) => {
764
+ const b = rb(input, context);
765
+ const headers = {
766
+ 'content-type': 'application/json',
767
+ };
768
+ b.bp("/profile-admin/{userId}/birth-date");
769
+ b.p('userId', () => input.userId, '{userId}', false);
770
+ let body;
771
+ body = JSON.stringify(take(input, {
772
+ 'date': [],
773
+ 'reason': [],
774
+ 'reference': [],
775
+ }));
776
+ b.m("PUT")
777
+ .h(headers)
778
+ .b(body);
779
+ return b.build();
780
+ };
720
781
  export const se_CreateLivenessSessionCommand = async (input, context) => {
721
782
  const b = rb(input, context);
722
783
  const headers = {};
@@ -768,6 +829,17 @@ export const se_GenerateUploadUrlCommand = async (input, context) => {
768
829
  .b(body);
769
830
  return b.build();
770
831
  };
832
+ export const se_GetBirthDateStatusCommand = async (input, context) => {
833
+ const b = rb(input, context);
834
+ const headers = {};
835
+ b.bp("/profile-admin/{userId}/birth-date");
836
+ b.p('userId', () => input.userId, '{userId}', false);
837
+ let body;
838
+ b.m("GET")
839
+ .h(headers)
840
+ .b(body);
841
+ return b.build();
842
+ };
771
843
  export const se_GetLivenessStatusCommand = async (input, context) => {
772
844
  const b = rb(input, context);
773
845
  const headers = {};
@@ -788,6 +860,21 @@ export const se_GetMyProfileCommand = async (input, context) => {
788
860
  .b(body);
789
861
  return b.build();
790
862
  };
863
+ export const se_GetPlaceCommand = async (input, context) => {
864
+ const b = rb(input, context);
865
+ const headers = {};
866
+ b.bp("/profile/places/{placeId}");
867
+ b.p('placeId', () => input.placeId, '{placeId}', false);
868
+ const query = map({
869
+ [_la]: [, input[_la]],
870
+ });
871
+ let body;
872
+ b.m("GET")
873
+ .h(headers)
874
+ .q(query)
875
+ .b(body);
876
+ return b.build();
877
+ };
791
878
  export const se_GetProfileCommand = async (input, context) => {
792
879
  const b = rb(input, context);
793
880
  const headers = {};
@@ -799,6 +886,21 @@ export const se_GetProfileCommand = async (input, context) => {
799
886
  .b(body);
800
887
  return b.build();
801
888
  };
889
+ export const se_SearchPlacesCommand = async (input, context) => {
890
+ const b = rb(input, context);
891
+ const headers = {};
892
+ b.bp("/profile/places");
893
+ const query = map({
894
+ [_q]: [, __expectNonNull(input[_q], `q`)],
895
+ [_la]: [, input[_la]],
896
+ });
897
+ let body;
898
+ b.m("GET")
899
+ .h(headers)
900
+ .q(query)
901
+ .b(body);
902
+ return b.build();
903
+ };
802
904
  export const se_UpdateProfileCommand = async (input, context) => {
803
905
  const b = rb(input, context);
804
906
  const headers = {
@@ -807,9 +909,9 @@ export const se_UpdateProfileCommand = async (input, context) => {
807
909
  b.bp("/profile");
808
910
  let body;
809
911
  body = JSON.stringify(take(input, {
810
- 'age': [],
811
912
  'audioPrompt': [],
812
913
  'bio': [],
914
+ 'birthDetails': _ => se_BirthDetails(_, context),
813
915
  'cannabisStatus': [],
814
916
  'causes': _ => _json(_),
815
917
  'communities': _ => _json(_),
@@ -1192,6 +1294,27 @@ export const de_GetCredentialReadinessCommand = async (output, context) => {
1192
1294
  Object.assign(contents, doc);
1193
1295
  return contents;
1194
1296
  };
1297
+ export const de_GetPreservationHoldCommand = async (output, context) => {
1298
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1299
+ return de_CommandError(output, context);
1300
+ }
1301
+ const contents = map({
1302
+ $metadata: deserializeMetadata(output),
1303
+ });
1304
+ const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
1305
+ const doc = take(data, {
1306
+ 'active': __expectBoolean,
1307
+ 'caseRef': __expectString,
1308
+ 'childSafetySince': __expectLong,
1309
+ 'reasonCode': __expectString,
1310
+ 'setAt': __expectLong,
1311
+ 'setBy': __expectString,
1312
+ 'until': __expectLong,
1313
+ 'version': __expectInt32,
1314
+ });
1315
+ Object.assign(contents, doc);
1316
+ return contents;
1317
+ };
1195
1318
  export const de_GetUserCommand = async (output, context) => {
1196
1319
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1197
1320
  return de_CommandError(output, context);
@@ -1337,6 +1460,20 @@ export const de_RequestPhoneUpdateOtpCommand = async (output, context) => {
1337
1460
  Object.assign(contents, doc);
1338
1461
  return contents;
1339
1462
  };
1463
+ export const de_RevokeUserAccessCommand = async (output, context) => {
1464
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1465
+ return de_CommandError(output, context);
1466
+ }
1467
+ const contents = map({
1468
+ $metadata: deserializeMetadata(output),
1469
+ });
1470
+ const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
1471
+ const doc = take(data, {
1472
+ 'status': __expectString,
1473
+ });
1474
+ Object.assign(contents, doc);
1475
+ return contents;
1476
+ };
1340
1477
  export const de_SendAdminLinkOtpCommand = async (output, context) => {
1341
1478
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1342
1479
  return de_CommandError(output, context);
@@ -1368,6 +1505,23 @@ export const de_SetAccountStateCommand = async (output, context) => {
1368
1505
  Object.assign(contents, doc);
1369
1506
  return contents;
1370
1507
  };
1508
+ export const de_SetPreservationHoldCommand = async (output, context) => {
1509
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1510
+ return de_CommandError(output, context);
1511
+ }
1512
+ const contents = map({
1513
+ $metadata: deserializeMetadata(output),
1514
+ });
1515
+ const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
1516
+ const doc = take(data, {
1517
+ 'active': __expectBoolean,
1518
+ 'reasonCode': __expectString,
1519
+ 'until': __expectLong,
1520
+ 'version': __expectInt32,
1521
+ });
1522
+ Object.assign(contents, doc);
1523
+ return contents;
1524
+ };
1371
1525
  export const de_UnlinkSocialCommand = async (output, context) => {
1372
1526
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1373
1527
  return de_CommandError(output, context);
@@ -1672,6 +1826,24 @@ export const de_CompleteLivenessSessionCommand = async (output, context) => {
1672
1826
  Object.assign(contents, doc);
1673
1827
  return contents;
1674
1828
  };
1829
+ export const de_CorrectBirthDateCommand = async (output, context) => {
1830
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1831
+ return de_CommandError(output, context);
1832
+ }
1833
+ const contents = map({
1834
+ $metadata: deserializeMetadata(output),
1835
+ });
1836
+ const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
1837
+ const doc = take(data, {
1838
+ 'age': __expectInt32,
1839
+ 'correctionsRemaining': __expectInt32,
1840
+ 'correctionsUsed': __expectInt32,
1841
+ 'date': __expectString,
1842
+ 'userId': __expectString,
1843
+ });
1844
+ Object.assign(contents, doc);
1845
+ return contents;
1846
+ };
1675
1847
  export const de_CreateLivenessSessionCommand = async (output, context) => {
1676
1848
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1677
1849
  return de_CommandError(output, context);
@@ -1731,6 +1903,30 @@ export const de_GenerateUploadUrlCommand = async (output, context) => {
1731
1903
  Object.assign(contents, doc);
1732
1904
  return contents;
1733
1905
  };
1906
+ export const de_GetBirthDateStatusCommand = async (output, context) => {
1907
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1908
+ return de_CommandError(output, context);
1909
+ }
1910
+ const contents = map({
1911
+ $metadata: deserializeMetadata(output),
1912
+ });
1913
+ const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
1914
+ const doc = take(data, {
1915
+ 'age': __expectInt32,
1916
+ 'birthDateOnFile': __expectBoolean,
1917
+ 'correctionsRemaining': __expectInt32,
1918
+ 'correctionsUsed': __expectInt32,
1919
+ 'date': __expectString,
1920
+ 'lastCorrectedAt': __expectLong,
1921
+ 'lastCorrectedBy': __expectString,
1922
+ 'lastReason': __expectString,
1923
+ 'lastReference': __expectString,
1924
+ 'provisional': __expectBoolean,
1925
+ 'userId': __expectString,
1926
+ });
1927
+ Object.assign(contents, doc);
1928
+ return contents;
1929
+ };
1734
1930
  export const de_GetLivenessStatusCommand = async (output, context) => {
1735
1931
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1736
1932
  return de_CommandError(output, context);
@@ -1757,6 +1953,8 @@ export const de_GetMyProfileCommand = async (output, context) => {
1757
1953
  'age': __expectInt32,
1758
1954
  'audioPrompt': __expectString,
1759
1955
  'bio': __expectString,
1956
+ 'birthDateOnFile': __expectBoolean,
1957
+ 'birthDetails': _ => de_BirthDetails(_, context),
1760
1958
  'cannabisStatus': __expectString,
1761
1959
  'causes': _json,
1762
1960
  'communities': _json,
@@ -1797,6 +1995,24 @@ export const de_GetMyProfileCommand = async (output, context) => {
1797
1995
  Object.assign(contents, doc);
1798
1996
  return contents;
1799
1997
  };
1998
+ export const de_GetPlaceCommand = async (output, context) => {
1999
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2000
+ return de_CommandError(output, context);
2001
+ }
2002
+ const contents = map({
2003
+ $metadata: deserializeMetadata(output),
2004
+ });
2005
+ const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
2006
+ const doc = take(data, {
2007
+ 'label': __expectString,
2008
+ 'latitude': __limitedParseDouble,
2009
+ 'longitude': __limitedParseDouble,
2010
+ 'placeId': __expectString,
2011
+ 'timeZone': __expectString,
2012
+ });
2013
+ Object.assign(contents, doc);
2014
+ return contents;
2015
+ };
1800
2016
  export const de_GetProfileCommand = async (output, context) => {
1801
2017
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1802
2018
  return de_CommandError(output, context);
@@ -1809,6 +2025,8 @@ export const de_GetProfileCommand = async (output, context) => {
1809
2025
  'age': __expectInt32,
1810
2026
  'audioPrompt': __expectString,
1811
2027
  'bio': __expectString,
2028
+ 'birthDateOnFile': __expectBoolean,
2029
+ 'birthDetails': _ => de_BirthDetails(_, context),
1812
2030
  'cannabisStatus': __expectString,
1813
2031
  'causes': _json,
1814
2032
  'communities': _json,
@@ -1849,6 +2067,20 @@ export const de_GetProfileCommand = async (output, context) => {
1849
2067
  Object.assign(contents, doc);
1850
2068
  return contents;
1851
2069
  };
2070
+ export const de_SearchPlacesCommand = async (output, context) => {
2071
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2072
+ return de_CommandError(output, context);
2073
+ }
2074
+ const contents = map({
2075
+ $metadata: deserializeMetadata(output),
2076
+ });
2077
+ const data = __expectNonNull((__expectObject(await parseBody(output.body, context))), "body");
2078
+ const doc = take(data, {
2079
+ 'places': _json,
2080
+ });
2081
+ Object.assign(contents, doc);
2082
+ return contents;
2083
+ };
1852
2084
  export const de_UpdateProfileCommand = async (output, context) => {
1853
2085
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1854
2086
  return de_CommandError(output, context);
@@ -2078,6 +2310,17 @@ const de_NotFoundErrorRes = async (parsedOutput, context) => {
2078
2310
  });
2079
2311
  return __decorateServiceException(exception, parsedOutput.body);
2080
2312
  };
2313
+ const se_BirthDetails = (input, context) => {
2314
+ return take(input, {
2315
+ 'date': [],
2316
+ 'latitude': __serializeFloat,
2317
+ 'longitude': __serializeFloat,
2318
+ 'placeName': [],
2319
+ 'provisional': [],
2320
+ 'time': [],
2321
+ 'timeZone': [],
2322
+ });
2323
+ };
2081
2324
  const de_CandidateDto = (output, context) => {
2082
2325
  return take(output, {
2083
2326
  'distanceKm': __limitedParseDouble,
@@ -2097,6 +2340,17 @@ const de_CandidateList = (output, context) => {
2097
2340
  });
2098
2341
  return retVal;
2099
2342
  };
2343
+ const de_BirthDetails = (output, context) => {
2344
+ return take(output, {
2345
+ 'date': __expectString,
2346
+ 'latitude': __limitedParseDouble,
2347
+ 'longitude': __limitedParseDouble,
2348
+ 'placeName': __expectString,
2349
+ 'provisional': __expectBoolean,
2350
+ 'time': __expectString,
2351
+ 'timeZone': __expectString,
2352
+ });
2353
+ };
2100
2354
  const deserializeMetadata = (output) => ({
2101
2355
  httpStatusCode: output.statusCode,
2102
2356
  requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
@@ -2107,7 +2361,9 @@ const collectBodyString = (streamBody, context) => collectBody(streamBody, conte
2107
2361
  const _c = "category";
2108
2362
  const _k = "key";
2109
2363
  const _l = "lat";
2364
+ const _la = "lang";
2110
2365
  const _lo = "lon";
2111
2366
  const _mI = "matchId";
2367
+ const _q = "q";
2112
2368
  const _rUI = "requestingUserId";
2113
2369
  const _xoui = "x-onehook-user-id";
@@ -1,5 +1,5 @@
1
- export const TELEMETRY_CATALOG_VERSION = "1.7.0";
2
- export const TELEMETRY_CATALOG_HASH = "4a3328962531236a";
1
+ export const TELEMETRY_CATALOG_VERSION = "1.9.0";
2
+ export const TELEMETRY_CATALOG_HASH = "7f0a0b33ce88bee5";
3
3
  export const SignalType = {
4
4
  SCREEN_VIEW: "screen_view",
5
5
  UI_INTERACTION: "ui_interaction",
@@ -266,6 +266,7 @@ export const UiElement = {
266
266
  DISCOVER_LIKES_YOU_OPEN: "discover.likes_you_open",
267
267
  DISCOVER_ADD_HOOK_OPEN: "discover.add_hook_open",
268
268
  DISCOVER_RETRY: "discover.retry",
269
+ DISCOVER_CATEGORY_SELECT: "discover.category_select",
269
270
  DISCOVER_ADD_HOOK_SUBMIT: "discover.add_hook_submit",
270
271
  DISCOVER_UPGRADE_OPEN: "discover.upgrade_open",
271
272
  LIKE_COMPOSER_SEND: "like_composer.send",
@@ -509,6 +510,7 @@ export const UI_ELEMENTS = {
509
510
  "discover.likes_you_open": { screen: "DISCOVER", kind: "button", actions: ["tap", "dismiss"], values: null, platforms: ["ios", "android"] },
510
511
  "discover.add_hook_open": { screen: "DISCOVER", kind: "button", actions: ["tap", "dismiss"], values: null, platforms: ["ios"] },
511
512
  "discover.retry": { screen: "DISCOVER", kind: "button", actions: ["tap"], values: null, platforms: ["web", "ios", "android"] },
513
+ "discover.category_select": { screen: "DISCOVER", kind: "button", actions: ["tap"], values: ["all", "profile_match", "onehook_suggested", "similar"], platforms: ["web", "ios", "android"] },
512
514
  "discover.add_hook_submit": { screen: "DISCOVER", kind: "button", actions: ["submit"], values: null, platforms: ["web", "ios"] },
513
515
  "discover.upgrade_open": { screen: "DISCOVER", kind: "button", actions: ["tap", "dismiss"], values: null, platforms: ["ios"] },
514
516
  "like_composer.send": { screen: "LIKE_COMPOSER", kind: "button", actions: ["submit"], values: null, platforms: ["web", "ios", "android"] },
@@ -621,7 +623,7 @@ export const UI_ELEMENTS = {
621
623
  "profile_edit.prompt_remove": { screen: "PROFILE_EDIT", kind: "button", actions: ["tap"], values: null, platforms: ["web", "ios"] },
622
624
  "profile_edit.voice_add": { screen: "PROFILE_EDIT", kind: "button", actions: ["tap"], values: null, platforms: ["web", "ios"] },
623
625
  "profile_edit.voice_remove": { screen: "PROFILE_EDIT", kind: "button", actions: ["tap"], values: null, platforms: ["web", "ios"] },
624
- "profile_edit.choice_select": { screen: "PROFILE_EDIT", kind: "segmented", actions: ["select", "tap"], values: null, platforms: ["web", "ios"] },
626
+ "profile_edit.choice_select": { screen: "PROFILE_EDIT", kind: "segmented", actions: ["select", "tap"], values: null, platforms: ["web", "ios", "android"] },
625
627
  "preferences.save": { screen: "PREFERENCES", kind: "button", actions: ["submit"], values: null, platforms: ["ios", "android"] },
626
628
  "preferences.upgrade_open": { screen: "PREFERENCES", kind: "button", actions: ["tap", "dismiss"], values: null, platforms: ["ios"] },
627
629
  "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 { AuthSocialCommandInput, AuthSocialCommandOutput } from "./commands/AuthSocialCommand";
3
3
  import { CompleteLivenessSessionCommandInput, CompleteLivenessSessionCommandOutput } from "./commands/CompleteLivenessSessionCommand";
4
4
  import { CompleteOnboardingCommandInput, CompleteOnboardingCommandOutput } from "./commands/CompleteOnboardingCommand";
5
+ import { CorrectBirthDateCommandInput, CorrectBirthDateCommandOutput } from "./commands/CorrectBirthDateCommand";
5
6
  import { CreateAdminInviteCommandInput, CreateAdminInviteCommandOutput } from "./commands/CreateAdminInviteCommand";
6
7
  import { CreateLivenessSessionCommandInput, CreateLivenessSessionCommandOutput } from "./commands/CreateLivenessSessionCommand";
7
8
  import { CreateMediaDownloadUrlCommandInput, CreateMediaDownloadUrlCommandOutput } from "./commands/CreateMediaDownloadUrlCommand";
@@ -16,6 +17,7 @@ import { GenerateUploadUrlCommandInput, GenerateUploadUrlCommandOutput } from ".
16
17
  import { GetAccountStateCommandInput, GetAccountStateCommandOutput } from "./commands/GetAccountStateCommand";
17
18
  import { GetAdminPhoneStatusCommandInput, GetAdminPhoneStatusCommandOutput } from "./commands/GetAdminPhoneStatusCommand";
18
19
  import { GetAiContextMatchCommandInput, GetAiContextMatchCommandOutput } from "./commands/GetAiContextMatchCommand";
20
+ import { GetBirthDateStatusCommandInput, GetBirthDateStatusCommandOutput } from "./commands/GetBirthDateStatusCommand";
19
21
  import { GetChatSettingsCommandInput, GetChatSettingsCommandOutput } from "./commands/GetChatSettingsCommand";
20
22
  import { GetCredentialReadinessCommandInput, GetCredentialReadinessCommandOutput } from "./commands/GetCredentialReadinessCommand";
21
23
  import { GetLivenessStatusCommandInput, GetLivenessStatusCommandOutput } from "./commands/GetLivenessStatusCommand";
@@ -23,7 +25,9 @@ import { GetMatchCommandInput, GetMatchCommandOutput } from "./commands/GetMatch
23
25
  import { GetMyProfileCommandInput, GetMyProfileCommandOutput } from "./commands/GetMyProfileCommand";
24
26
  import { GetNotificationPreferencesCommandInput, GetNotificationPreferencesCommandOutput } from "./commands/GetNotificationPreferencesCommand";
25
27
  import { GetParticipantRegistryCommandInput, GetParticipantRegistryCommandOutput } from "./commands/GetParticipantRegistryCommand";
28
+ import { GetPlaceCommandInput, GetPlaceCommandOutput } from "./commands/GetPlaceCommand";
26
29
  import { GetPreferencesCommandInput, GetPreferencesCommandOutput } from "./commands/GetPreferencesCommand";
30
+ import { GetPreservationHoldCommandInput, GetPreservationHoldCommandOutput } from "./commands/GetPreservationHoldCommand";
27
31
  import { GetProfileCommandInput, GetProfileCommandOutput } from "./commands/GetProfileCommand";
28
32
  import { GetReceivedLikesCommandInput, GetReceivedLikesCommandOutput } from "./commands/GetReceivedLikesCommand";
29
33
  import { GetRosesCommandInput, GetRosesCommandOutput } from "./commands/GetRosesCommand";
@@ -45,8 +49,11 @@ import { RequestEmailOtpCommandInput, RequestEmailOtpCommandOutput } from "./com
45
49
  import { RequestPhoneOtpCommandInput, RequestPhoneOtpCommandOutput } from "./commands/RequestPhoneOtpCommand";
46
50
  import { RequestPhoneUpdateOtpCommandInput, RequestPhoneUpdateOtpCommandOutput } from "./commands/RequestPhoneUpdateOtpCommand";
47
51
  import { RevokeDeviceCommandInput, RevokeDeviceCommandOutput } from "./commands/RevokeDeviceCommand";
52
+ import { RevokeUserAccessCommandInput, RevokeUserAccessCommandOutput } from "./commands/RevokeUserAccessCommand";
53
+ import { SearchPlacesCommandInput, SearchPlacesCommandOutput } from "./commands/SearchPlacesCommand";
48
54
  import { SendAdminLinkOtpCommandInput, SendAdminLinkOtpCommandOutput } from "./commands/SendAdminLinkOtpCommand";
49
55
  import { SetAccountStateCommandInput, SetAccountStateCommandOutput } from "./commands/SetAccountStateCommand";
56
+ import { SetPreservationHoldCommandInput, SetPreservationHoldCommandOutput } from "./commands/SetPreservationHoldCommand";
50
57
  import { SwipeByUsernameCommandInput, SwipeByUsernameCommandOutput } from "./commands/SwipeByUsernameCommand";
51
58
  import { SwipeCommandInput, SwipeCommandOutput } from "./commands/SwipeCommand";
52
59
  import { UnhookCommandInput, UnhookCommandOutput } from "./commands/UnhookCommand";
@@ -173,6 +180,12 @@ export interface OneHook {
173
180
  getCredentialReadiness(args: GetCredentialReadinessCommandInput, options?: __HttpHandlerOptions): Promise<GetCredentialReadinessCommandOutput>;
174
181
  getCredentialReadiness(args: GetCredentialReadinessCommandInput, cb: (err: any, data?: GetCredentialReadinessCommandOutput) => void): void;
175
182
  getCredentialReadiness(args: GetCredentialReadinessCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetCredentialReadinessCommandOutput) => void): void;
183
+ /**
184
+ * @see {@link GetPreservationHoldCommand}
185
+ */
186
+ getPreservationHold(args: GetPreservationHoldCommandInput, options?: __HttpHandlerOptions): Promise<GetPreservationHoldCommandOutput>;
187
+ getPreservationHold(args: GetPreservationHoldCommandInput, cb: (err: any, data?: GetPreservationHoldCommandOutput) => void): void;
188
+ getPreservationHold(args: GetPreservationHoldCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetPreservationHoldCommandOutput) => void): void;
176
189
  /**
177
190
  * @see {@link GetUserCommand}
178
191
  */
@@ -227,6 +240,12 @@ export interface OneHook {
227
240
  requestPhoneUpdateOtp(args: RequestPhoneUpdateOtpCommandInput, options?: __HttpHandlerOptions): Promise<RequestPhoneUpdateOtpCommandOutput>;
228
241
  requestPhoneUpdateOtp(args: RequestPhoneUpdateOtpCommandInput, cb: (err: any, data?: RequestPhoneUpdateOtpCommandOutput) => void): void;
229
242
  requestPhoneUpdateOtp(args: RequestPhoneUpdateOtpCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: RequestPhoneUpdateOtpCommandOutput) => void): void;
243
+ /**
244
+ * @see {@link RevokeUserAccessCommand}
245
+ */
246
+ revokeUserAccess(args: RevokeUserAccessCommandInput, options?: __HttpHandlerOptions): Promise<RevokeUserAccessCommandOutput>;
247
+ revokeUserAccess(args: RevokeUserAccessCommandInput, cb: (err: any, data?: RevokeUserAccessCommandOutput) => void): void;
248
+ revokeUserAccess(args: RevokeUserAccessCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: RevokeUserAccessCommandOutput) => void): void;
230
249
  /**
231
250
  * @see {@link SendAdminLinkOtpCommand}
232
251
  */
@@ -239,6 +258,12 @@ export interface OneHook {
239
258
  setAccountState(args: SetAccountStateCommandInput, options?: __HttpHandlerOptions): Promise<SetAccountStateCommandOutput>;
240
259
  setAccountState(args: SetAccountStateCommandInput, cb: (err: any, data?: SetAccountStateCommandOutput) => void): void;
241
260
  setAccountState(args: SetAccountStateCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SetAccountStateCommandOutput) => void): void;
261
+ /**
262
+ * @see {@link SetPreservationHoldCommand}
263
+ */
264
+ setPreservationHold(args: SetPreservationHoldCommandInput, options?: __HttpHandlerOptions): Promise<SetPreservationHoldCommandOutput>;
265
+ setPreservationHold(args: SetPreservationHoldCommandInput, cb: (err: any, data?: SetPreservationHoldCommandOutput) => void): void;
266
+ setPreservationHold(args: SetPreservationHoldCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SetPreservationHoldCommandOutput) => void): void;
242
267
  /**
243
268
  * @see {@link UnlinkSocialCommand}
244
269
  */
@@ -349,6 +374,12 @@ export interface OneHook {
349
374
  completeLivenessSession(args: CompleteLivenessSessionCommandInput, options?: __HttpHandlerOptions): Promise<CompleteLivenessSessionCommandOutput>;
350
375
  completeLivenessSession(args: CompleteLivenessSessionCommandInput, cb: (err: any, data?: CompleteLivenessSessionCommandOutput) => void): void;
351
376
  completeLivenessSession(args: CompleteLivenessSessionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CompleteLivenessSessionCommandOutput) => void): void;
377
+ /**
378
+ * @see {@link CorrectBirthDateCommand}
379
+ */
380
+ correctBirthDate(args: CorrectBirthDateCommandInput, options?: __HttpHandlerOptions): Promise<CorrectBirthDateCommandOutput>;
381
+ correctBirthDate(args: CorrectBirthDateCommandInput, cb: (err: any, data?: CorrectBirthDateCommandOutput) => void): void;
382
+ correctBirthDate(args: CorrectBirthDateCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CorrectBirthDateCommandOutput) => void): void;
352
383
  /**
353
384
  * @see {@link CreateLivenessSessionCommand}
354
385
  */
@@ -374,6 +405,12 @@ export interface OneHook {
374
405
  generateUploadUrl(args: GenerateUploadUrlCommandInput, options?: __HttpHandlerOptions): Promise<GenerateUploadUrlCommandOutput>;
375
406
  generateUploadUrl(args: GenerateUploadUrlCommandInput, cb: (err: any, data?: GenerateUploadUrlCommandOutput) => void): void;
376
407
  generateUploadUrl(args: GenerateUploadUrlCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GenerateUploadUrlCommandOutput) => void): void;
408
+ /**
409
+ * @see {@link GetBirthDateStatusCommand}
410
+ */
411
+ getBirthDateStatus(args: GetBirthDateStatusCommandInput, options?: __HttpHandlerOptions): Promise<GetBirthDateStatusCommandOutput>;
412
+ getBirthDateStatus(args: GetBirthDateStatusCommandInput, cb: (err: any, data?: GetBirthDateStatusCommandOutput) => void): void;
413
+ getBirthDateStatus(args: GetBirthDateStatusCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetBirthDateStatusCommandOutput) => void): void;
377
414
  /**
378
415
  * @see {@link GetLivenessStatusCommand}
379
416
  */
@@ -388,12 +425,24 @@ export interface OneHook {
388
425
  getMyProfile(args: GetMyProfileCommandInput, options?: __HttpHandlerOptions): Promise<GetMyProfileCommandOutput>;
389
426
  getMyProfile(args: GetMyProfileCommandInput, cb: (err: any, data?: GetMyProfileCommandOutput) => void): void;
390
427
  getMyProfile(args: GetMyProfileCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetMyProfileCommandOutput) => void): void;
428
+ /**
429
+ * @see {@link GetPlaceCommand}
430
+ */
431
+ getPlace(args: GetPlaceCommandInput, options?: __HttpHandlerOptions): Promise<GetPlaceCommandOutput>;
432
+ getPlace(args: GetPlaceCommandInput, cb: (err: any, data?: GetPlaceCommandOutput) => void): void;
433
+ getPlace(args: GetPlaceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetPlaceCommandOutput) => void): void;
391
434
  /**
392
435
  * @see {@link GetProfileCommand}
393
436
  */
394
437
  getProfile(args: GetProfileCommandInput, options?: __HttpHandlerOptions): Promise<GetProfileCommandOutput>;
395
438
  getProfile(args: GetProfileCommandInput, cb: (err: any, data?: GetProfileCommandOutput) => void): void;
396
439
  getProfile(args: GetProfileCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetProfileCommandOutput) => void): void;
440
+ /**
441
+ * @see {@link SearchPlacesCommand}
442
+ */
443
+ searchPlaces(args: SearchPlacesCommandInput, options?: __HttpHandlerOptions): Promise<SearchPlacesCommandOutput>;
444
+ searchPlaces(args: SearchPlacesCommandInput, cb: (err: any, data?: SearchPlacesCommandOutput) => void): void;
445
+ searchPlaces(args: SearchPlacesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SearchPlacesCommandOutput) => void): void;
397
446
  /**
398
447
  * @see {@link UpdateProfileCommand}
399
448
  */