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
@@ -38,7 +38,6 @@ declare const UpdateProfileCommand_base: {
38
38
  * const input = { // ProfileUpdateRequest
39
39
  * displayName: "STRING_VALUE",
40
40
  * bio: "STRING_VALUE",
41
- * age: Number("int"),
42
41
  * gender: "STRING_VALUE",
43
42
  * interestedIn: [ // StringList
44
43
  * "STRING_VALUE",
@@ -101,6 +100,7 @@ declare const UpdateProfileCommand_base: {
101
100
  * timeZone: "STRING_VALUE",
102
101
  * latitude: Number("double"),
103
102
  * longitude: Number("double"),
103
+ * placeName: "STRING_VALUE",
104
104
  * provisional: true || false,
105
105
  * },
106
106
  * };
@@ -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";
@@ -41,6 +44,7 @@ export * from "./GetRosesCommand";
41
44
  export * from "./IndexLocationCommand";
42
45
  export * from "./RecordSuggestionCommand";
43
46
  export * from "./RemoveLocationCommand";
47
+ export * from "./RemoveSuggestionCommand";
44
48
  export * from "./SwipeCommand";
45
49
  export * from "./SwipeByUsernameCommand";
46
50
  export * from "./UpdatePreferencesCommand";
@@ -50,9 +54,12 @@ export * from "./CreateLivenessSessionCommand";
50
54
  export * from "./DeleteProfileCommand";
51
55
  export * from "./GenerateDownloadUrlCommand";
52
56
  export * from "./GenerateUploadUrlCommand";
57
+ export * from "./GetBirthDateStatusCommand";
53
58
  export * from "./GetLivenessStatusCommand";
54
59
  export * from "./GetMyProfileCommand";
60
+ export * from "./GetPlaceCommand";
55
61
  export * from "./GetProfileCommand";
62
+ export * from "./SearchPlacesCommand";
56
63
  export * from "./UpdateProfileCommand";
57
64
  export * from "./CompleteOnboardingCommand";
58
65
  export * from "./GetMatchCommand";
@@ -751,6 +751,51 @@ export interface GetCredentialReadinessResponse {
751
751
  */
752
752
  gaps: (CredentialGap)[] | undefined;
753
753
  }
754
+ /**
755
+ * @public
756
+ */
757
+ export interface GetPreservationHoldRequest {
758
+ userId: string | undefined;
759
+ }
760
+ /**
761
+ * @public
762
+ */
763
+ export interface GetPreservationHoldResponse {
764
+ active: boolean | undefined;
765
+ /**
766
+ * Epoch ms the hold expires; absent when inactive.
767
+ * @public
768
+ */
769
+ until?: number | undefined;
770
+ version: number | undefined;
771
+ /**
772
+ * The reason code for the current hold; absent when inactive.
773
+ * @public
774
+ */
775
+ reasonCode?: string | undefined;
776
+ /**
777
+ * Case reference for audit; absent when inactive or never set.
778
+ * @public
779
+ */
780
+ caseRef?: string | undefined;
781
+ /**
782
+ * The admin actor id that last changed the hold; absent when never set.
783
+ * @public
784
+ */
785
+ setBy?: string | undefined;
786
+ /**
787
+ * Epoch ms the hold was last changed; absent when never set.
788
+ * @public
789
+ */
790
+ setAt?: number | undefined;
791
+ /**
792
+ * Epoch ms a CHILD_SAFETY hold was first set. Anchors the non-negotiable 180-day minimum: the
793
+ * hold cannot be released, nor its `until` shortened, before this instant + 180 days. Absent when
794
+ * the current hold is not a child-safety hold (or is inactive).
795
+ * @public
796
+ */
797
+ childSafetySince?: number | undefined;
798
+ }
754
799
  /**
755
800
  * @public
756
801
  */
@@ -877,6 +922,22 @@ export interface RequestPhoneUpdateOtpRequest {
877
922
  export interface RequestPhoneUpdateOtpResponse {
878
923
  status: string | undefined;
879
924
  }
925
+ /**
926
+ * @public
927
+ */
928
+ export interface RevokeUserAccessRequest {
929
+ userId: string | undefined;
930
+ }
931
+ /**
932
+ * @public
933
+ */
934
+ export interface RevokeUserAccessResponse {
935
+ /**
936
+ * Machine-readable outcome code (e.g. REVOKED). Never PII.
937
+ * @public
938
+ */
939
+ status: string | undefined;
940
+ }
880
941
  /**
881
942
  * @public
882
943
  */
@@ -958,6 +1019,61 @@ export interface SetAccountStateResponse {
958
1019
  until?: number | undefined;
959
1020
  version: number | undefined;
960
1021
  }
1022
+ /**
1023
+ * @public
1024
+ */
1025
+ export interface SetPreservationHoldRequest {
1026
+ userId: string | undefined;
1027
+ /**
1028
+ * True to place/extend the hold; false to release it.
1029
+ * @public
1030
+ */
1031
+ active: boolean | undefined;
1032
+ /**
1033
+ * Machine-readable reason code: one of CHILD_SAFETY, LEGAL_REQUEST, OTHER_LEGAL (never free text).
1034
+ * @public
1035
+ */
1036
+ reasonCode: string | undefined;
1037
+ /**
1038
+ * Epoch ms the hold expires. Defaults to now + 180 days when activating; may only be extended
1039
+ * forward. Ignored when releasing.
1040
+ * @public
1041
+ */
1042
+ until?: number | undefined;
1043
+ /**
1044
+ * The admin actor id taking the action (audit).
1045
+ * @public
1046
+ */
1047
+ actor: string | undefined;
1048
+ /**
1049
+ * Optional case reference for audit (e.g. an NCMEC/agency ticket id). Stored in Identity only;
1050
+ * never travels in the PreservationHoldChanged event.
1051
+ * @public
1052
+ */
1053
+ caseRef?: string | undefined;
1054
+ /**
1055
+ * Optional optimistic-concurrency token from GetPreservationHold; a mismatch returns 409.
1056
+ * @public
1057
+ */
1058
+ expectedVersion?: number | undefined;
1059
+ }
1060
+ /**
1061
+ * @public
1062
+ */
1063
+ export interface SetPreservationHoldResponse {
1064
+ active: boolean | undefined;
1065
+ /**
1066
+ * Epoch ms the hold expires; absent when released.
1067
+ * @public
1068
+ */
1069
+ until?: number | undefined;
1070
+ version: number | undefined;
1071
+ /**
1072
+ * The reason code for the current hold; absent when released.
1073
+ * @public
1074
+ */
1075
+ reasonCode?: string | undefined;
1076
+ }
961
1077
  /**
962
1078
  * @public
963
1079
  */
@@ -1243,11 +1359,33 @@ export interface GetNotificationPreferencesResponse {
1243
1359
  export interface GetPreferencesRequest {
1244
1360
  userId: string | undefined;
1245
1361
  }
1362
+ /**
1363
+ * The member's OneHook suggestion as shown in their preferences. The prompt is never returned.
1364
+ * @public
1365
+ */
1366
+ export interface CurrentSuggestion {
1367
+ suggestionId: string | undefined;
1368
+ /**
1369
+ * Why OneHook is suggesting these people (shown on the cards too).
1370
+ * @public
1371
+ */
1372
+ reasoning: string | undefined;
1373
+ /**
1374
+ * ISO-8601 time the member asked for it.
1375
+ * @public
1376
+ */
1377
+ createdAt: string | undefined;
1378
+ }
1246
1379
  /**
1247
1380
  * @public
1248
1381
  */
1249
1382
  export interface UserPreferencesResponse {
1250
1383
  userId: string | undefined;
1384
+ /**
1385
+ * The member's current OneHook suggestion (what they last asked Mr OneHook for). Absent when none.
1386
+ * @public
1387
+ */
1388
+ currentSuggestion?: CurrentSuggestion | undefined;
1251
1389
  minAge?: number | undefined;
1252
1390
  maxAge?: number | undefined;
1253
1391
  maxDistanceKm?: number | undefined;
@@ -1397,6 +1535,16 @@ export interface RecordSuggestionRequest {
1397
1535
  export interface RecordSuggestionResponse {
1398
1536
  suggestionId: string | undefined;
1399
1537
  }
1538
+ /**
1539
+ * @public
1540
+ */
1541
+ export interface RemoveSuggestionRequest {
1542
+ }
1543
+ /**
1544
+ * @public
1545
+ */
1546
+ export interface RemoveSuggestionResponse {
1547
+ }
1400
1548
  /**
1401
1549
  * @public
1402
1550
  */
@@ -1676,15 +1824,16 @@ export interface CorrectBirthDateRequest {
1676
1824
  */
1677
1825
  date: string | undefined;
1678
1826
  /**
1679
- * Why the correction is made (10-500 characters), e.g. "ID document shows 1991-03-02".
1827
+ * The approver's reasoning (10-500 characters), e.g. "Passport shows 1991-03-02". Kept so anyone
1828
+ * reviewing the change later can follow the decision.
1680
1829
  * @public
1681
1830
  */
1682
1831
  reason: string | undefined;
1683
1832
  /**
1684
- * Support ticket or case reference.
1833
+ * Optional support ticket or case reference.
1685
1834
  * @public
1686
1835
  */
1687
- reference: string | undefined;
1836
+ reference?: string | undefined;
1688
1837
  }
1689
1838
  /**
1690
1839
  * @public
@@ -1757,6 +1906,40 @@ export interface MediaUploadUrlResponse {
1757
1906
  objectKey: string | undefined;
1758
1907
  formData: Record<string, string> | undefined;
1759
1908
  }
1909
+ /**
1910
+ * @public
1911
+ */
1912
+ export interface GetBirthDateStatusRequest {
1913
+ userId: string | undefined;
1914
+ }
1915
+ /**
1916
+ * @public
1917
+ */
1918
+ export interface GetBirthDateStatusResponse {
1919
+ userId: string | undefined;
1920
+ /**
1921
+ * `yyyy-MM-dd`; absent for a legacy profile that never had one.
1922
+ * @public
1923
+ */
1924
+ date?: string | undefined;
1925
+ age?: number | undefined;
1926
+ provisional: boolean | undefined;
1927
+ birthDateOnFile: boolean | undefined;
1928
+ correctionsUsed: number | undefined;
1929
+ correctionsRemaining: number | undefined;
1930
+ /**
1931
+ * Epoch seconds of the most recent correction.
1932
+ * @public
1933
+ */
1934
+ lastCorrectedAt?: number | undefined;
1935
+ lastReason?: string | undefined;
1936
+ lastReference?: string | undefined;
1937
+ /**
1938
+ * IAM caller ARN of the most recent correction (includes the portal admin's session name).
1939
+ * @public
1940
+ */
1941
+ lastCorrectedBy?: string | undefined;
1942
+ }
1760
1943
  /**
1761
1944
  * @public
1762
1945
  */
@@ -1800,6 +1983,11 @@ export interface BirthDetails {
1800
1983
  * @public
1801
1984
  */
1802
1985
  longitude?: number | undefined;
1986
+ /**
1987
+ * Display label of the chosen birthplace (from `GET /profile/places`). Needs latitude/longitude.
1988
+ * @public
1989
+ */
1990
+ placeName?: string | undefined;
1803
1991
  /**
1804
1992
  * Server-set, ignored on input. True when `date` is a placeholder added for a profile created
1805
1993
  * before the birth date was compulsory. The member may replace a provisional date ONCE with
@@ -1834,7 +2022,7 @@ export interface ProfileResponse {
1834
2022
  displayName?: string | undefined;
1835
2023
  bio?: string | undefined;
1836
2024
  /**
1837
- * Derived from the immutable birth date on every read (stored value only for legacy profiles without one).
2025
+ * Derived from the birth date on every read. Never stored and never settable.
1838
2026
  * @public
1839
2027
  */
1840
2028
  age?: number | undefined;
@@ -1910,6 +2098,27 @@ export interface ProfileResponse {
1910
2098
  */
1911
2099
  birthDateOnFile?: boolean | undefined;
1912
2100
  }
2101
+ /**
2102
+ * @public
2103
+ */
2104
+ export interface GetPlaceRequest {
2105
+ placeId: string | undefined;
2106
+ lang?: string | undefined;
2107
+ }
2108
+ /**
2109
+ * @public
2110
+ */
2111
+ export interface GetPlaceResponse {
2112
+ placeId: string | undefined;
2113
+ label: string | undefined;
2114
+ latitude: number | undefined;
2115
+ longitude: number | undefined;
2116
+ /**
2117
+ * IANA time zone, e.g. `Asia/Kolkata`. Absent when Amazon Location has none for the place.
2118
+ * @public
2119
+ */
2120
+ timeZone?: string | undefined;
2121
+ }
1913
2122
  /**
1914
2123
  * @public
1915
2124
  */
@@ -1919,16 +2128,33 @@ export interface GetProfileRequest {
1919
2128
  /**
1920
2129
  * @public
1921
2130
  */
1922
- export interface ProfileUpdateRequest {
1923
- displayName?: string | undefined;
1924
- bio?: string | undefined;
2131
+ export interface SearchPlacesRequest {
2132
+ q: string | undefined;
1925
2133
  /**
1926
- * Deprecated and ignored: age is derived from `birthDetails.date` and cannot be set or changed.
1927
- *
1928
- * @deprecated
2134
+ * BCP-47 language for labels, e.g. `en`, `hi`.
1929
2135
  * @public
1930
2136
  */
1931
- age?: number | undefined;
2137
+ lang?: string | undefined;
2138
+ }
2139
+ /**
2140
+ * @public
2141
+ */
2142
+ export interface PlaceSuggestion {
2143
+ placeId: string | undefined;
2144
+ label: string | undefined;
2145
+ }
2146
+ /**
2147
+ * @public
2148
+ */
2149
+ export interface SearchPlacesResponse {
2150
+ places: (PlaceSuggestion)[] | undefined;
2151
+ }
2152
+ /**
2153
+ * @public
2154
+ */
2155
+ export interface ProfileUpdateRequest {
2156
+ displayName?: string | undefined;
2157
+ bio?: string | undefined;
1932
2158
  gender?: string | undefined;
1933
2159
  interestedIn?: (string)[] | undefined;
1934
2160
  interests?: (string)[] | undefined;
@@ -16,6 +16,7 @@ import { GenerateUploadUrlCommandInput, GenerateUploadUrlCommandOutput } from ".
16
16
  import { GetAccountStateCommandInput, GetAccountStateCommandOutput } from "../commands/GetAccountStateCommand";
17
17
  import { GetAdminPhoneStatusCommandInput, GetAdminPhoneStatusCommandOutput } from "../commands/GetAdminPhoneStatusCommand";
18
18
  import { GetAiContextMatchCommandInput, GetAiContextMatchCommandOutput } from "../commands/GetAiContextMatchCommand";
19
+ import { GetBirthDateStatusCommandInput, GetBirthDateStatusCommandOutput } from "../commands/GetBirthDateStatusCommand";
19
20
  import { GetChatSettingsCommandInput, GetChatSettingsCommandOutput } from "../commands/GetChatSettingsCommand";
20
21
  import { GetCredentialReadinessCommandInput, GetCredentialReadinessCommandOutput } from "../commands/GetCredentialReadinessCommand";
21
22
  import { GetLivenessStatusCommandInput, GetLivenessStatusCommandOutput } from "../commands/GetLivenessStatusCommand";
@@ -23,7 +24,9 @@ import { GetMatchCommandInput, GetMatchCommandOutput } from "../commands/GetMatc
23
24
  import { GetMyProfileCommandInput, GetMyProfileCommandOutput } from "../commands/GetMyProfileCommand";
24
25
  import { GetNotificationPreferencesCommandInput, GetNotificationPreferencesCommandOutput } from "../commands/GetNotificationPreferencesCommand";
25
26
  import { GetParticipantRegistryCommandInput, GetParticipantRegistryCommandOutput } from "../commands/GetParticipantRegistryCommand";
27
+ import { GetPlaceCommandInput, GetPlaceCommandOutput } from "../commands/GetPlaceCommand";
26
28
  import { GetPreferencesCommandInput, GetPreferencesCommandOutput } from "../commands/GetPreferencesCommand";
29
+ import { GetPreservationHoldCommandInput, GetPreservationHoldCommandOutput } from "../commands/GetPreservationHoldCommand";
27
30
  import { GetProfileCommandInput, GetProfileCommandOutput } from "../commands/GetProfileCommand";
28
31
  import { GetReceivedLikesCommandInput, GetReceivedLikesCommandOutput } from "../commands/GetReceivedLikesCommand";
29
32
  import { GetRosesCommandInput, GetRosesCommandOutput } from "../commands/GetRosesCommand";
@@ -41,12 +44,16 @@ import { RegisterDeviceCommandInput, RegisterDeviceCommandOutput } from "../comm
41
44
  import { RegisterPhoneCommandInput, RegisterPhoneCommandOutput } from "../commands/RegisterPhoneCommand";
42
45
  import { RegisterPushTokenCommandInput, RegisterPushTokenCommandOutput } from "../commands/RegisterPushTokenCommand";
43
46
  import { RemoveLocationCommandInput, RemoveLocationCommandOutput } from "../commands/RemoveLocationCommand";
47
+ import { RemoveSuggestionCommandInput, RemoveSuggestionCommandOutput } from "../commands/RemoveSuggestionCommand";
44
48
  import { RequestEmailOtpCommandInput, RequestEmailOtpCommandOutput } from "../commands/RequestEmailOtpCommand";
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";
@@ -134,6 +141,10 @@ export declare const se_GetAdminPhoneStatusCommand: (input: GetAdminPhoneStatusC
134
141
  * serializeAws_restJson1GetCredentialReadinessCommand
135
142
  */
136
143
  export declare const se_GetCredentialReadinessCommand: (input: GetCredentialReadinessCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
144
+ /**
145
+ * serializeAws_restJson1GetPreservationHoldCommand
146
+ */
147
+ export declare const se_GetPreservationHoldCommand: (input: GetPreservationHoldCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
137
148
  /**
138
149
  * serializeAws_restJson1GetUserCommand
139
150
  */
@@ -170,6 +181,10 @@ export declare const se_RequestPhoneOtpCommand: (input: RequestPhoneOtpCommandIn
170
181
  * serializeAws_restJson1RequestPhoneUpdateOtpCommand
171
182
  */
172
183
  export declare const se_RequestPhoneUpdateOtpCommand: (input: RequestPhoneUpdateOtpCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
184
+ /**
185
+ * serializeAws_restJson1RevokeUserAccessCommand
186
+ */
187
+ export declare const se_RevokeUserAccessCommand: (input: RevokeUserAccessCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
173
188
  /**
174
189
  * serializeAws_restJson1SendAdminLinkOtpCommand
175
190
  */
@@ -178,6 +193,10 @@ export declare const se_SendAdminLinkOtpCommand: (input: SendAdminLinkOtpCommand
178
193
  * serializeAws_restJson1SetAccountStateCommand
179
194
  */
180
195
  export declare const se_SetAccountStateCommand: (input: SetAccountStateCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
196
+ /**
197
+ * serializeAws_restJson1SetPreservationHoldCommand
198
+ */
199
+ export declare const se_SetPreservationHoldCommand: (input: SetPreservationHoldCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
181
200
  /**
182
201
  * serializeAws_restJson1UnlinkSocialCommand
183
202
  */
@@ -234,6 +253,10 @@ export declare const se_RecordSuggestionCommand: (input: RecordSuggestionCommand
234
253
  * serializeAws_restJson1RemoveLocationCommand
235
254
  */
236
255
  export declare const se_RemoveLocationCommand: (input: RemoveLocationCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
256
+ /**
257
+ * serializeAws_restJson1RemoveSuggestionCommand
258
+ */
259
+ export declare const se_RemoveSuggestionCommand: (input: RemoveSuggestionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
237
260
  /**
238
261
  * serializeAws_restJson1SwipeCommand
239
262
  */
@@ -270,6 +293,10 @@ export declare const se_GenerateDownloadUrlCommand: (input: GenerateDownloadUrlC
270
293
  * serializeAws_restJson1GenerateUploadUrlCommand
271
294
  */
272
295
  export declare const se_GenerateUploadUrlCommand: (input: GenerateUploadUrlCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
296
+ /**
297
+ * serializeAws_restJson1GetBirthDateStatusCommand
298
+ */
299
+ export declare const se_GetBirthDateStatusCommand: (input: GetBirthDateStatusCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
273
300
  /**
274
301
  * serializeAws_restJson1GetLivenessStatusCommand
275
302
  */
@@ -278,10 +305,18 @@ export declare const se_GetLivenessStatusCommand: (input: GetLivenessStatusComma
278
305
  * serializeAws_restJson1GetMyProfileCommand
279
306
  */
280
307
  export declare const se_GetMyProfileCommand: (input: GetMyProfileCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
308
+ /**
309
+ * serializeAws_restJson1GetPlaceCommand
310
+ */
311
+ export declare const se_GetPlaceCommand: (input: GetPlaceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
281
312
  /**
282
313
  * serializeAws_restJson1GetProfileCommand
283
314
  */
284
315
  export declare const se_GetProfileCommand: (input: GetProfileCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
316
+ /**
317
+ * serializeAws_restJson1SearchPlacesCommand
318
+ */
319
+ export declare const se_SearchPlacesCommand: (input: SearchPlacesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
285
320
  /**
286
321
  * serializeAws_restJson1UpdateProfileCommand
287
322
  */
@@ -382,6 +417,10 @@ export declare const de_GetAdminPhoneStatusCommand: (output: __HttpResponse, con
382
417
  * deserializeAws_restJson1GetCredentialReadinessCommand
383
418
  */
384
419
  export declare const de_GetCredentialReadinessCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetCredentialReadinessCommandOutput>;
420
+ /**
421
+ * deserializeAws_restJson1GetPreservationHoldCommand
422
+ */
423
+ export declare const de_GetPreservationHoldCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetPreservationHoldCommandOutput>;
385
424
  /**
386
425
  * deserializeAws_restJson1GetUserCommand
387
426
  */
@@ -418,6 +457,10 @@ export declare const de_RequestPhoneOtpCommand: (output: __HttpResponse, context
418
457
  * deserializeAws_restJson1RequestPhoneUpdateOtpCommand
419
458
  */
420
459
  export declare const de_RequestPhoneUpdateOtpCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<RequestPhoneUpdateOtpCommandOutput>;
460
+ /**
461
+ * deserializeAws_restJson1RevokeUserAccessCommand
462
+ */
463
+ export declare const de_RevokeUserAccessCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<RevokeUserAccessCommandOutput>;
421
464
  /**
422
465
  * deserializeAws_restJson1SendAdminLinkOtpCommand
423
466
  */
@@ -426,6 +469,10 @@ export declare const de_SendAdminLinkOtpCommand: (output: __HttpResponse, contex
426
469
  * deserializeAws_restJson1SetAccountStateCommand
427
470
  */
428
471
  export declare const de_SetAccountStateCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<SetAccountStateCommandOutput>;
472
+ /**
473
+ * deserializeAws_restJson1SetPreservationHoldCommand
474
+ */
475
+ export declare const de_SetPreservationHoldCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<SetPreservationHoldCommandOutput>;
429
476
  /**
430
477
  * deserializeAws_restJson1UnlinkSocialCommand
431
478
  */
@@ -482,6 +529,10 @@ export declare const de_RecordSuggestionCommand: (output: __HttpResponse, contex
482
529
  * deserializeAws_restJson1RemoveLocationCommand
483
530
  */
484
531
  export declare const de_RemoveLocationCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<RemoveLocationCommandOutput>;
532
+ /**
533
+ * deserializeAws_restJson1RemoveSuggestionCommand
534
+ */
535
+ export declare const de_RemoveSuggestionCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<RemoveSuggestionCommandOutput>;
485
536
  /**
486
537
  * deserializeAws_restJson1SwipeCommand
487
538
  */
@@ -518,6 +569,10 @@ export declare const de_GenerateDownloadUrlCommand: (output: __HttpResponse, con
518
569
  * deserializeAws_restJson1GenerateUploadUrlCommand
519
570
  */
520
571
  export declare const de_GenerateUploadUrlCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GenerateUploadUrlCommandOutput>;
572
+ /**
573
+ * deserializeAws_restJson1GetBirthDateStatusCommand
574
+ */
575
+ export declare const de_GetBirthDateStatusCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetBirthDateStatusCommandOutput>;
521
576
  /**
522
577
  * deserializeAws_restJson1GetLivenessStatusCommand
523
578
  */
@@ -526,10 +581,18 @@ export declare const de_GetLivenessStatusCommand: (output: __HttpResponse, conte
526
581
  * deserializeAws_restJson1GetMyProfileCommand
527
582
  */
528
583
  export declare const de_GetMyProfileCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetMyProfileCommandOutput>;
584
+ /**
585
+ * deserializeAws_restJson1GetPlaceCommand
586
+ */
587
+ export declare const de_GetPlaceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetPlaceCommandOutput>;
529
588
  /**
530
589
  * deserializeAws_restJson1GetProfileCommand
531
590
  */
532
591
  export declare const de_GetProfileCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetProfileCommandOutput>;
592
+ /**
593
+ * deserializeAws_restJson1SearchPlacesCommand
594
+ */
595
+ export declare const de_SearchPlacesCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<SearchPlacesCommandOutput>;
533
596
  /**
534
597
  * deserializeAws_restJson1UpdateProfileCommand
535
598
  */
@@ -1,5 +1,5 @@
1
- export declare const TELEMETRY_CATALOG_VERSION = "1.8.0";
2
- export declare const TELEMETRY_CATALOG_HASH = "9a56f9fef0ed4ae7";
1
+ export declare const TELEMETRY_CATALOG_VERSION = "1.10.0";
2
+ export declare const TELEMETRY_CATALOG_HASH = "1d9a5b9cd896cae9";
3
3
  /** Every signal type the ingest accepts. */
4
4
  export declare const SignalType: {
5
5
  readonly SCREEN_VIEW: "screen_view";
@@ -422,6 +422,7 @@ export declare const UiElement: {
422
422
  readonly PREFERENCES_SAVE: "preferences.save";
423
423
  readonly PREFERENCES_UPGRADE_OPEN: "preferences.upgrade_open";
424
424
  readonly PREFERENCES_LOCKED_FILTER_TAP: "preferences.locked_filter_tap";
425
+ readonly PREFERENCES_SUGGESTION_REMOVE: "preferences.suggestion_remove";
425
426
  readonly SETTINGS_EMAIL_MANAGE: "settings.email_manage";
426
427
  readonly SETTINGS_PHONE_UPDATE: "settings.phone_update";
427
428
  readonly SETTINGS_GOOGLE_LINK: "settings.google_link";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "onehook-api-client",
3
3
  "description": "OneHook API Client",
4
- "version": "1.0.31",
4
+ "version": "1.0.33",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -1,8 +1,8 @@
1
1
  // GENERATED FILE - DO NOT EDIT.
2
- // telemetry-integrity: sha256 a8e675bda96da4f1c8c821887aa245d35ce1236f0306a575ee356751dacd0bf0
2
+ // telemetry-integrity: sha256 aac1313159fd47e34f1a3f8e5d3578ae5470f782e679f1272269235e585c80ac
3
3
  // Source of truth: OneHookBackend/packages/telemetry/src/catalog.ts
4
4
  // Regenerate: (OneHookBackend) npm run telemetry:generate && npm run telemetry:sync
5
- // Catalog version 1.8.0, hash 9a56f9fef0ed4ae7.
5
+ // Catalog version 1.10.0, hash 1d9a5b9cd896cae9.
6
6
  //
7
7
  // HARD RULE: every user interaction MUST emit ui_interaction with an id from THIS file, and
8
8
  // ids are controlled by the backend. Read TELEMETRY_CONTRACT.txt (printed by every build).
@@ -12,8 +12,8 @@
12
12
  package club.onehook.telemetry
13
13
 
14
14
  object TelemetryCatalog {
15
- const val VERSION = "1.8.0"
16
- const val HASH = "9a56f9fef0ed4ae7"
15
+ const val VERSION = "1.10.0"
16
+ const val HASH = "1d9a5b9cd896cae9"
17
17
  /** The only allowed `telemetry-exempt: <category>: <reason>` categories (see the catalog). */
18
18
  val EXEMPT_CATEGORIES: List<String> = listOf("duplicate", "backdrop", "gesture", "continuous", "disabled")
19
19
  }
@@ -481,10 +481,11 @@ enum class UiElement(
481
481
  PROFILE_EDIT_PROMPT_REMOVE("profile_edit.prompt_remove", TelemetryScreen.PROFILE_EDIT, UiElementKind.BUTTON, listOf(UiAction.TAP), null, listOf(TelemetryPlatform.WEB, TelemetryPlatform.IOS)),
482
482
  PROFILE_EDIT_VOICE_ADD("profile_edit.voice_add", TelemetryScreen.PROFILE_EDIT, UiElementKind.BUTTON, listOf(UiAction.TAP), null, listOf(TelemetryPlatform.WEB, TelemetryPlatform.IOS)),
483
483
  PROFILE_EDIT_VOICE_REMOVE("profile_edit.voice_remove", TelemetryScreen.PROFILE_EDIT, UiElementKind.BUTTON, listOf(UiAction.TAP), null, listOf(TelemetryPlatform.WEB, TelemetryPlatform.IOS)),
484
- PROFILE_EDIT_CHOICE_SELECT("profile_edit.choice_select", TelemetryScreen.PROFILE_EDIT, UiElementKind.SEGMENTED, listOf(UiAction.SELECT, UiAction.TAP), null, listOf(TelemetryPlatform.WEB, TelemetryPlatform.IOS)),
484
+ PROFILE_EDIT_CHOICE_SELECT("profile_edit.choice_select", TelemetryScreen.PROFILE_EDIT, UiElementKind.SEGMENTED, listOf(UiAction.SELECT, UiAction.TAP), null, listOf(TelemetryPlatform.WEB, TelemetryPlatform.IOS, TelemetryPlatform.ANDROID)),
485
485
  PREFERENCES_SAVE("preferences.save", TelemetryScreen.PREFERENCES, UiElementKind.BUTTON, listOf(UiAction.SUBMIT), null, listOf(TelemetryPlatform.IOS, TelemetryPlatform.ANDROID)),
486
486
  PREFERENCES_UPGRADE_OPEN("preferences.upgrade_open", TelemetryScreen.PREFERENCES, UiElementKind.BUTTON, listOf(UiAction.TAP, UiAction.DISMISS), null, listOf(TelemetryPlatform.IOS)),
487
487
  PREFERENCES_LOCKED_FILTER_TAP("preferences.locked_filter_tap", TelemetryScreen.PREFERENCES, UiElementKind.BUTTON, listOf(UiAction.TAP), null, listOf(TelemetryPlatform.IOS)),
488
+ PREFERENCES_SUGGESTION_REMOVE("preferences.suggestion_remove", TelemetryScreen.PREFERENCES, UiElementKind.BUTTON, listOf(UiAction.TAP), null, listOf(TelemetryPlatform.WEB, TelemetryPlatform.IOS, TelemetryPlatform.ANDROID)),
488
489
  SETTINGS_EMAIL_MANAGE("settings.email_manage", TelemetryScreen.SETTINGS, UiElementKind.BUTTON, listOf(UiAction.TAP, UiAction.DISMISS), null, listOf(TelemetryPlatform.WEB, TelemetryPlatform.IOS, TelemetryPlatform.ANDROID)),
489
490
  SETTINGS_PHONE_UPDATE("settings.phone_update", TelemetryScreen.SETTINGS, UiElementKind.BUTTON, listOf(UiAction.TAP, UiAction.DISMISS), null, listOf(TelemetryPlatform.IOS, TelemetryPlatform.ANDROID)),
490
491
  SETTINGS_GOOGLE_LINK("settings.google_link", TelemetryScreen.SETTINGS, UiElementKind.TOGGLE, listOf(UiAction.TOGGLE), listOf("link", "unlink"), listOf(TelemetryPlatform.WEB, TelemetryPlatform.IOS, TelemetryPlatform.ANDROID)),
@@ -1,8 +1,8 @@
1
1
  // GENERATED FILE - DO NOT EDIT.
2
- // telemetry-integrity: sha256 09fe73b250348dbfb22adf2c33abc13e91b7174e499699a85e3a5dbdbcd9e467
2
+ // telemetry-integrity: sha256 b9f45d2a085aa15bf7faddbc829f18de626f3e0731267972075b2334fa85f34b
3
3
  // Source of truth: OneHookBackend/packages/telemetry/src/catalog.ts
4
4
  // Regenerate: (OneHookBackend) npm run telemetry:generate && npm run telemetry:sync
5
- // Catalog version 1.8.0, hash 9a56f9fef0ed4ae7.
5
+ // Catalog version 1.10.0, hash 1d9a5b9cd896cae9.
6
6
  //
7
7
  // HARD RULE: every user interaction MUST emit ui_interaction with an id from THIS file, and
8
8
  // ids are controlled by the backend. Read TELEMETRY_CONTRACT.txt (printed by every build).
@@ -10,8 +10,8 @@
10
10
  import Foundation
11
11
 
12
12
  public enum TelemetryCatalog {
13
- public static let version = "1.8.0"
14
- public static let hash = "9a56f9fef0ed4ae7"
13
+ public static let version = "1.10.0"
14
+ public static let hash = "1d9a5b9cd896cae9"
15
15
  /// The only allowed `telemetry-exempt: <category>: <reason>` categories (see the catalog).
16
16
  public static let exemptCategories: [String] = ["duplicate", "backdrop", "gesture", "continuous", "disabled"]
17
17
  }
@@ -423,6 +423,7 @@ public enum UiElement: String, CaseIterable, Codable, Sendable {
423
423
  case preferencesSave = "preferences.save"
424
424
  case preferencesUpgradeOpen = "preferences.upgrade_open"
425
425
  case preferencesLockedFilterTap = "preferences.locked_filter_tap"
426
+ case preferencesSuggestionRemove = "preferences.suggestion_remove"
426
427
  case settingsEmailManage = "settings.email_manage"
427
428
  case settingsPhoneUpdate = "settings.phone_update"
428
429
  case settingsGoogleLink = "settings.google_link"
@@ -664,10 +665,11 @@ public enum UiElement: String, CaseIterable, Codable, Sendable {
664
665
  case .profileEditPromptRemove: return UiElementSpec(screen: .profileEdit, kind: .button, actions: [.tap], allowedValues: nil, platforms: [.web, .ios])
665
666
  case .profileEditVoiceAdd: return UiElementSpec(screen: .profileEdit, kind: .button, actions: [.tap], allowedValues: nil, platforms: [.web, .ios])
666
667
  case .profileEditVoiceRemove: return UiElementSpec(screen: .profileEdit, kind: .button, actions: [.tap], allowedValues: nil, platforms: [.web, .ios])
667
- case .profileEditChoiceSelect: return UiElementSpec(screen: .profileEdit, kind: .segmented, actions: [.select, .tap], allowedValues: nil, platforms: [.web, .ios])
668
+ case .profileEditChoiceSelect: return UiElementSpec(screen: .profileEdit, kind: .segmented, actions: [.select, .tap], allowedValues: nil, platforms: [.web, .ios, .android])
668
669
  case .preferencesSave: return UiElementSpec(screen: .preferences, kind: .button, actions: [.submit], allowedValues: nil, platforms: [.ios, .android])
669
670
  case .preferencesUpgradeOpen: return UiElementSpec(screen: .preferences, kind: .button, actions: [.tap, .dismiss], allowedValues: nil, platforms: [.ios])
670
671
  case .preferencesLockedFilterTap: return UiElementSpec(screen: .preferences, kind: .button, actions: [.tap], allowedValues: nil, platforms: [.ios])
672
+ case .preferencesSuggestionRemove: return UiElementSpec(screen: .preferences, kind: .button, actions: [.tap], allowedValues: nil, platforms: [.web, .ios, .android])
671
673
  case .settingsEmailManage: return UiElementSpec(screen: .settings, kind: .button, actions: [.tap, .dismiss], allowedValues: nil, platforms: [.web, .ios, .android])
672
674
  case .settingsPhoneUpdate: return UiElementSpec(screen: .settings, kind: .button, actions: [.tap, .dismiss], allowedValues: nil, platforms: [.ios, .android])
673
675
  case .settingsGoogleLink: return UiElementSpec(screen: .settings, kind: .toggle, actions: [.toggle], allowedValues: ["link", "unlink"], platforms: [.web, .ios, .android])