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,6 +1,7 @@
1
1
  import { AuthSocialCommandInput, AuthSocialCommandOutput } from "../commands/AuthSocialCommand";
2
2
  import { CompleteLivenessSessionCommandInput, CompleteLivenessSessionCommandOutput } from "../commands/CompleteLivenessSessionCommand";
3
3
  import { CompleteOnboardingCommandInput, CompleteOnboardingCommandOutput } from "../commands/CompleteOnboardingCommand";
4
+ import { CorrectBirthDateCommandInput, CorrectBirthDateCommandOutput } from "../commands/CorrectBirthDateCommand";
4
5
  import { CreateAdminInviteCommandInput, CreateAdminInviteCommandOutput } from "../commands/CreateAdminInviteCommand";
5
6
  import { CreateLivenessSessionCommandInput, CreateLivenessSessionCommandOutput } from "../commands/CreateLivenessSessionCommand";
6
7
  import { CreateMediaDownloadUrlCommandInput, CreateMediaDownloadUrlCommandOutput } from "../commands/CreateMediaDownloadUrlCommand";
@@ -15,6 +16,7 @@ import { GenerateUploadUrlCommandInput, GenerateUploadUrlCommandOutput } from ".
15
16
  import { GetAccountStateCommandInput, GetAccountStateCommandOutput } from "../commands/GetAccountStateCommand";
16
17
  import { GetAdminPhoneStatusCommandInput, GetAdminPhoneStatusCommandOutput } from "../commands/GetAdminPhoneStatusCommand";
17
18
  import { GetAiContextMatchCommandInput, GetAiContextMatchCommandOutput } from "../commands/GetAiContextMatchCommand";
19
+ import { GetBirthDateStatusCommandInput, GetBirthDateStatusCommandOutput } from "../commands/GetBirthDateStatusCommand";
18
20
  import { GetChatSettingsCommandInput, GetChatSettingsCommandOutput } from "../commands/GetChatSettingsCommand";
19
21
  import { GetCredentialReadinessCommandInput, GetCredentialReadinessCommandOutput } from "../commands/GetCredentialReadinessCommand";
20
22
  import { GetLivenessStatusCommandInput, GetLivenessStatusCommandOutput } from "../commands/GetLivenessStatusCommand";
@@ -22,7 +24,9 @@ import { GetMatchCommandInput, GetMatchCommandOutput } from "../commands/GetMatc
22
24
  import { GetMyProfileCommandInput, GetMyProfileCommandOutput } from "../commands/GetMyProfileCommand";
23
25
  import { GetNotificationPreferencesCommandInput, GetNotificationPreferencesCommandOutput } from "../commands/GetNotificationPreferencesCommand";
24
26
  import { GetParticipantRegistryCommandInput, GetParticipantRegistryCommandOutput } from "../commands/GetParticipantRegistryCommand";
27
+ import { GetPlaceCommandInput, GetPlaceCommandOutput } from "../commands/GetPlaceCommand";
25
28
  import { GetPreferencesCommandInput, GetPreferencesCommandOutput } from "../commands/GetPreferencesCommand";
29
+ import { GetPreservationHoldCommandInput, GetPreservationHoldCommandOutput } from "../commands/GetPreservationHoldCommand";
26
30
  import { GetProfileCommandInput, GetProfileCommandOutput } from "../commands/GetProfileCommand";
27
31
  import { GetReceivedLikesCommandInput, GetReceivedLikesCommandOutput } from "../commands/GetReceivedLikesCommand";
28
32
  import { GetRosesCommandInput, GetRosesCommandOutput } from "../commands/GetRosesCommand";
@@ -44,8 +48,11 @@ import { RequestEmailOtpCommandInput, RequestEmailOtpCommandOutput } from "../co
44
48
  import { RequestPhoneOtpCommandInput, RequestPhoneOtpCommandOutput } from "../commands/RequestPhoneOtpCommand";
45
49
  import { RequestPhoneUpdateOtpCommandInput, RequestPhoneUpdateOtpCommandOutput } from "../commands/RequestPhoneUpdateOtpCommand";
46
50
  import { RevokeDeviceCommandInput, RevokeDeviceCommandOutput } from "../commands/RevokeDeviceCommand";
51
+ import { RevokeUserAccessCommandInput, RevokeUserAccessCommandOutput } from "../commands/RevokeUserAccessCommand";
52
+ import { SearchPlacesCommandInput, SearchPlacesCommandOutput } from "../commands/SearchPlacesCommand";
47
53
  import { SendAdminLinkOtpCommandInput, SendAdminLinkOtpCommandOutput } from "../commands/SendAdminLinkOtpCommand";
48
54
  import { SetAccountStateCommandInput, SetAccountStateCommandOutput } from "../commands/SetAccountStateCommand";
55
+ import { SetPreservationHoldCommandInput, SetPreservationHoldCommandOutput } from "../commands/SetPreservationHoldCommand";
49
56
  import { SwipeByUsernameCommandInput, SwipeByUsernameCommandOutput } from "../commands/SwipeByUsernameCommand";
50
57
  import { SwipeCommandInput, SwipeCommandOutput } from "../commands/SwipeCommand";
51
58
  import { UnhookCommandInput, UnhookCommandOutput } from "../commands/UnhookCommand";
@@ -133,6 +140,10 @@ export declare const se_GetAdminPhoneStatusCommand: (input: GetAdminPhoneStatusC
133
140
  * serializeAws_restJson1GetCredentialReadinessCommand
134
141
  */
135
142
  export declare const se_GetCredentialReadinessCommand: (input: GetCredentialReadinessCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
143
+ /**
144
+ * serializeAws_restJson1GetPreservationHoldCommand
145
+ */
146
+ export declare const se_GetPreservationHoldCommand: (input: GetPreservationHoldCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
136
147
  /**
137
148
  * serializeAws_restJson1GetUserCommand
138
149
  */
@@ -169,6 +180,10 @@ export declare const se_RequestPhoneOtpCommand: (input: RequestPhoneOtpCommandIn
169
180
  * serializeAws_restJson1RequestPhoneUpdateOtpCommand
170
181
  */
171
182
  export declare const se_RequestPhoneUpdateOtpCommand: (input: RequestPhoneUpdateOtpCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
183
+ /**
184
+ * serializeAws_restJson1RevokeUserAccessCommand
185
+ */
186
+ export declare const se_RevokeUserAccessCommand: (input: RevokeUserAccessCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
172
187
  /**
173
188
  * serializeAws_restJson1SendAdminLinkOtpCommand
174
189
  */
@@ -177,6 +192,10 @@ export declare const se_SendAdminLinkOtpCommand: (input: SendAdminLinkOtpCommand
177
192
  * serializeAws_restJson1SetAccountStateCommand
178
193
  */
179
194
  export declare const se_SetAccountStateCommand: (input: SetAccountStateCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
195
+ /**
196
+ * serializeAws_restJson1SetPreservationHoldCommand
197
+ */
198
+ export declare const se_SetPreservationHoldCommand: (input: SetPreservationHoldCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
180
199
  /**
181
200
  * serializeAws_restJson1UnlinkSocialCommand
182
201
  */
@@ -249,6 +268,10 @@ export declare const se_UpdatePreferencesCommand: (input: UpdatePreferencesComma
249
268
  * serializeAws_restJson1CompleteLivenessSessionCommand
250
269
  */
251
270
  export declare const se_CompleteLivenessSessionCommand: (input: CompleteLivenessSessionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
271
+ /**
272
+ * serializeAws_restJson1CorrectBirthDateCommand
273
+ */
274
+ export declare const se_CorrectBirthDateCommand: (input: CorrectBirthDateCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
252
275
  /**
253
276
  * serializeAws_restJson1CreateLivenessSessionCommand
254
277
  */
@@ -265,6 +288,10 @@ export declare const se_GenerateDownloadUrlCommand: (input: GenerateDownloadUrlC
265
288
  * serializeAws_restJson1GenerateUploadUrlCommand
266
289
  */
267
290
  export declare const se_GenerateUploadUrlCommand: (input: GenerateUploadUrlCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
291
+ /**
292
+ * serializeAws_restJson1GetBirthDateStatusCommand
293
+ */
294
+ export declare const se_GetBirthDateStatusCommand: (input: GetBirthDateStatusCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
268
295
  /**
269
296
  * serializeAws_restJson1GetLivenessStatusCommand
270
297
  */
@@ -273,10 +300,18 @@ export declare const se_GetLivenessStatusCommand: (input: GetLivenessStatusComma
273
300
  * serializeAws_restJson1GetMyProfileCommand
274
301
  */
275
302
  export declare const se_GetMyProfileCommand: (input: GetMyProfileCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
303
+ /**
304
+ * serializeAws_restJson1GetPlaceCommand
305
+ */
306
+ export declare const se_GetPlaceCommand: (input: GetPlaceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
276
307
  /**
277
308
  * serializeAws_restJson1GetProfileCommand
278
309
  */
279
310
  export declare const se_GetProfileCommand: (input: GetProfileCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
311
+ /**
312
+ * serializeAws_restJson1SearchPlacesCommand
313
+ */
314
+ export declare const se_SearchPlacesCommand: (input: SearchPlacesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
280
315
  /**
281
316
  * serializeAws_restJson1UpdateProfileCommand
282
317
  */
@@ -377,6 +412,10 @@ export declare const de_GetAdminPhoneStatusCommand: (output: __HttpResponse, con
377
412
  * deserializeAws_restJson1GetCredentialReadinessCommand
378
413
  */
379
414
  export declare const de_GetCredentialReadinessCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetCredentialReadinessCommandOutput>;
415
+ /**
416
+ * deserializeAws_restJson1GetPreservationHoldCommand
417
+ */
418
+ export declare const de_GetPreservationHoldCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetPreservationHoldCommandOutput>;
380
419
  /**
381
420
  * deserializeAws_restJson1GetUserCommand
382
421
  */
@@ -413,6 +452,10 @@ export declare const de_RequestPhoneOtpCommand: (output: __HttpResponse, context
413
452
  * deserializeAws_restJson1RequestPhoneUpdateOtpCommand
414
453
  */
415
454
  export declare const de_RequestPhoneUpdateOtpCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<RequestPhoneUpdateOtpCommandOutput>;
455
+ /**
456
+ * deserializeAws_restJson1RevokeUserAccessCommand
457
+ */
458
+ export declare const de_RevokeUserAccessCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<RevokeUserAccessCommandOutput>;
416
459
  /**
417
460
  * deserializeAws_restJson1SendAdminLinkOtpCommand
418
461
  */
@@ -421,6 +464,10 @@ export declare const de_SendAdminLinkOtpCommand: (output: __HttpResponse, contex
421
464
  * deserializeAws_restJson1SetAccountStateCommand
422
465
  */
423
466
  export declare const de_SetAccountStateCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<SetAccountStateCommandOutput>;
467
+ /**
468
+ * deserializeAws_restJson1SetPreservationHoldCommand
469
+ */
470
+ export declare const de_SetPreservationHoldCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<SetPreservationHoldCommandOutput>;
424
471
  /**
425
472
  * deserializeAws_restJson1UnlinkSocialCommand
426
473
  */
@@ -493,6 +540,10 @@ export declare const de_UpdatePreferencesCommand: (output: __HttpResponse, conte
493
540
  * deserializeAws_restJson1CompleteLivenessSessionCommand
494
541
  */
495
542
  export declare const de_CompleteLivenessSessionCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CompleteLivenessSessionCommandOutput>;
543
+ /**
544
+ * deserializeAws_restJson1CorrectBirthDateCommand
545
+ */
546
+ export declare const de_CorrectBirthDateCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CorrectBirthDateCommandOutput>;
496
547
  /**
497
548
  * deserializeAws_restJson1CreateLivenessSessionCommand
498
549
  */
@@ -509,6 +560,10 @@ export declare const de_GenerateDownloadUrlCommand: (output: __HttpResponse, con
509
560
  * deserializeAws_restJson1GenerateUploadUrlCommand
510
561
  */
511
562
  export declare const de_GenerateUploadUrlCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GenerateUploadUrlCommandOutput>;
563
+ /**
564
+ * deserializeAws_restJson1GetBirthDateStatusCommand
565
+ */
566
+ export declare const de_GetBirthDateStatusCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetBirthDateStatusCommandOutput>;
512
567
  /**
513
568
  * deserializeAws_restJson1GetLivenessStatusCommand
514
569
  */
@@ -517,10 +572,18 @@ export declare const de_GetLivenessStatusCommand: (output: __HttpResponse, conte
517
572
  * deserializeAws_restJson1GetMyProfileCommand
518
573
  */
519
574
  export declare const de_GetMyProfileCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetMyProfileCommandOutput>;
575
+ /**
576
+ * deserializeAws_restJson1GetPlaceCommand
577
+ */
578
+ export declare const de_GetPlaceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetPlaceCommandOutput>;
520
579
  /**
521
580
  * deserializeAws_restJson1GetProfileCommand
522
581
  */
523
582
  export declare const de_GetProfileCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetProfileCommandOutput>;
583
+ /**
584
+ * deserializeAws_restJson1SearchPlacesCommand
585
+ */
586
+ export declare const de_SearchPlacesCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<SearchPlacesCommandOutput>;
524
587
  /**
525
588
  * deserializeAws_restJson1UpdateProfileCommand
526
589
  */
@@ -1,5 +1,5 @@
1
- export declare const TELEMETRY_CATALOG_VERSION = "1.7.0";
2
- export declare const TELEMETRY_CATALOG_HASH = "4a3328962531236a";
1
+ export declare const TELEMETRY_CATALOG_VERSION = "1.9.0";
2
+ export declare const TELEMETRY_CATALOG_HASH = "7f0a0b33ce88bee5";
3
3
  /** Every signal type the ingest accepts. */
4
4
  export declare const SignalType: {
5
5
  readonly SCREEN_VIEW: "screen_view";
@@ -305,6 +305,7 @@ export declare const UiElement: {
305
305
  readonly DISCOVER_LIKES_YOU_OPEN: "discover.likes_you_open";
306
306
  readonly DISCOVER_ADD_HOOK_OPEN: "discover.add_hook_open";
307
307
  readonly DISCOVER_RETRY: "discover.retry";
308
+ readonly DISCOVER_CATEGORY_SELECT: "discover.category_select";
308
309
  readonly DISCOVER_ADD_HOOK_SUBMIT: "discover.add_hook_submit";
309
310
  readonly DISCOVER_UPGRADE_OPEN: "discover.upgrade_open";
310
311
  readonly LIKE_COMPOSER_SEND: "like_composer.send";
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.30",
4
+ "version": "1.0.32",
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 fe621b683c87030c3da995991deaf051eecdf7c1bebc9f0436d49281addafe6b
2
+ // telemetry-integrity: sha256 cf7ca486e49b9199ff1f0133e008a1278779e932cbc7ee34b6911505cb32e2d2
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.7.0, hash 4a3328962531236a.
5
+ // Catalog version 1.9.0, hash 7f0a0b33ce88bee5.
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.7.0"
16
- const val HASH = "4a3328962531236a"
15
+ const val VERSION = "1.9.0"
16
+ const val HASH = "7f0a0b33ce88bee5"
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
  }
@@ -368,6 +368,7 @@ enum class UiElement(
368
368
  DISCOVER_LIKES_YOU_OPEN("discover.likes_you_open", TelemetryScreen.DISCOVER, UiElementKind.BUTTON, listOf(UiAction.TAP, UiAction.DISMISS), null, listOf(TelemetryPlatform.IOS, TelemetryPlatform.ANDROID)),
369
369
  DISCOVER_ADD_HOOK_OPEN("discover.add_hook_open", TelemetryScreen.DISCOVER, UiElementKind.BUTTON, listOf(UiAction.TAP, UiAction.DISMISS), null, listOf(TelemetryPlatform.IOS)),
370
370
  DISCOVER_RETRY("discover.retry", TelemetryScreen.DISCOVER, UiElementKind.BUTTON, listOf(UiAction.TAP), null, listOf(TelemetryPlatform.WEB, TelemetryPlatform.IOS, TelemetryPlatform.ANDROID)),
371
+ DISCOVER_CATEGORY_SELECT("discover.category_select", TelemetryScreen.DISCOVER, UiElementKind.BUTTON, listOf(UiAction.TAP), listOf("all", "profile_match", "onehook_suggested", "similar"), listOf(TelemetryPlatform.WEB, TelemetryPlatform.IOS, TelemetryPlatform.ANDROID)),
371
372
  DISCOVER_ADD_HOOK_SUBMIT("discover.add_hook_submit", TelemetryScreen.DISCOVER, UiElementKind.BUTTON, listOf(UiAction.SUBMIT), null, listOf(TelemetryPlatform.WEB, TelemetryPlatform.IOS)),
372
373
  DISCOVER_UPGRADE_OPEN("discover.upgrade_open", TelemetryScreen.DISCOVER, UiElementKind.BUTTON, listOf(UiAction.TAP, UiAction.DISMISS), null, listOf(TelemetryPlatform.IOS)),
373
374
  LIKE_COMPOSER_SEND("like_composer.send", TelemetryScreen.LIKE_COMPOSER, UiElementKind.BUTTON, listOf(UiAction.SUBMIT), null, listOf(TelemetryPlatform.WEB, TelemetryPlatform.IOS, TelemetryPlatform.ANDROID)),
@@ -480,7 +481,7 @@ enum class UiElement(
480
481
  PROFILE_EDIT_PROMPT_REMOVE("profile_edit.prompt_remove", TelemetryScreen.PROFILE_EDIT, UiElementKind.BUTTON, listOf(UiAction.TAP), null, listOf(TelemetryPlatform.WEB, TelemetryPlatform.IOS)),
481
482
  PROFILE_EDIT_VOICE_ADD("profile_edit.voice_add", TelemetryScreen.PROFILE_EDIT, UiElementKind.BUTTON, listOf(UiAction.TAP), null, listOf(TelemetryPlatform.WEB, TelemetryPlatform.IOS)),
482
483
  PROFILE_EDIT_VOICE_REMOVE("profile_edit.voice_remove", TelemetryScreen.PROFILE_EDIT, UiElementKind.BUTTON, listOf(UiAction.TAP), null, listOf(TelemetryPlatform.WEB, TelemetryPlatform.IOS)),
483
- 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)),
484
485
  PREFERENCES_SAVE("preferences.save", TelemetryScreen.PREFERENCES, UiElementKind.BUTTON, listOf(UiAction.SUBMIT), null, listOf(TelemetryPlatform.IOS, TelemetryPlatform.ANDROID)),
485
486
  PREFERENCES_UPGRADE_OPEN("preferences.upgrade_open", TelemetryScreen.PREFERENCES, UiElementKind.BUTTON, listOf(UiAction.TAP, UiAction.DISMISS), null, listOf(TelemetryPlatform.IOS)),
486
487
  PREFERENCES_LOCKED_FILTER_TAP("preferences.locked_filter_tap", TelemetryScreen.PREFERENCES, UiElementKind.BUTTON, listOf(UiAction.TAP), null, listOf(TelemetryPlatform.IOS)),
@@ -1,8 +1,8 @@
1
1
  // GENERATED FILE - DO NOT EDIT.
2
- // telemetry-integrity: sha256 538edb7a38421501aed60248034c2f0b322a7974de5f7be9162d2605f9d67a1e
2
+ // telemetry-integrity: sha256 5bcd831b61a3da089414bf5baca00e64f091df82b44eb2059d4043c16281b0c3
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.7.0, hash 4a3328962531236a.
5
+ // Catalog version 1.9.0, hash 7f0a0b33ce88bee5.
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.7.0"
14
- public static let hash = "4a3328962531236a"
13
+ public static let version = "1.9.0"
14
+ public static let hash = "7f0a0b33ce88bee5"
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
  }
@@ -306,6 +306,7 @@ public enum UiElement: String, CaseIterable, Codable, Sendable {
306
306
  case discoverLikesYouOpen = "discover.likes_you_open"
307
307
  case discoverAddHookOpen = "discover.add_hook_open"
308
308
  case discoverRetry = "discover.retry"
309
+ case discoverCategorySelect = "discover.category_select"
309
310
  case discoverAddHookSubmit = "discover.add_hook_submit"
310
311
  case discoverUpgradeOpen = "discover.upgrade_open"
311
312
  case likeComposerSend = "like_composer.send"
@@ -550,6 +551,7 @@ public enum UiElement: String, CaseIterable, Codable, Sendable {
550
551
  case .discoverLikesYouOpen: return UiElementSpec(screen: .discover, kind: .button, actions: [.tap, .dismiss], allowedValues: nil, platforms: [.ios, .android])
551
552
  case .discoverAddHookOpen: return UiElementSpec(screen: .discover, kind: .button, actions: [.tap, .dismiss], allowedValues: nil, platforms: [.ios])
552
553
  case .discoverRetry: return UiElementSpec(screen: .discover, kind: .button, actions: [.tap], allowedValues: nil, platforms: [.web, .ios, .android])
554
+ case .discoverCategorySelect: return UiElementSpec(screen: .discover, kind: .button, actions: [.tap], allowedValues: ["all", "profile_match", "onehook_suggested", "similar"], platforms: [.web, .ios, .android])
553
555
  case .discoverAddHookSubmit: return UiElementSpec(screen: .discover, kind: .button, actions: [.submit], allowedValues: nil, platforms: [.web, .ios])
554
556
  case .discoverUpgradeOpen: return UiElementSpec(screen: .discover, kind: .button, actions: [.tap, .dismiss], allowedValues: nil, platforms: [.ios])
555
557
  case .likeComposerSend: return UiElementSpec(screen: .likeComposer, kind: .button, actions: [.submit], allowedValues: nil, platforms: [.web, .ios, .android])
@@ -662,7 +664,7 @@ public enum UiElement: String, CaseIterable, Codable, Sendable {
662
664
  case .profileEditPromptRemove: return UiElementSpec(screen: .profileEdit, kind: .button, actions: [.tap], allowedValues: nil, platforms: [.web, .ios])
663
665
  case .profileEditVoiceAdd: return UiElementSpec(screen: .profileEdit, kind: .button, actions: [.tap], allowedValues: nil, platforms: [.web, .ios])
664
666
  case .profileEditVoiceRemove: return UiElementSpec(screen: .profileEdit, kind: .button, actions: [.tap], allowedValues: nil, platforms: [.web, .ios])
665
- case .profileEditChoiceSelect: return UiElementSpec(screen: .profileEdit, kind: .segmented, actions: [.select, .tap], allowedValues: nil, platforms: [.web, .ios])
667
+ case .profileEditChoiceSelect: return UiElementSpec(screen: .profileEdit, kind: .segmented, actions: [.select, .tap], allowedValues: nil, platforms: [.web, .ios, .android])
666
668
  case .preferencesSave: return UiElementSpec(screen: .preferences, kind: .button, actions: [.submit], allowedValues: nil, platforms: [.ios, .android])
667
669
  case .preferencesUpgradeOpen: return UiElementSpec(screen: .preferences, kind: .button, actions: [.tap, .dismiss], allowedValues: nil, platforms: [.ios])
668
670
  case .preferencesLockedFilterTap: return UiElementSpec(screen: .preferences, kind: .button, actions: [.tap], allowedValues: nil, platforms: [.ios])
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.7.0",
2
+ "version": "1.9.0",
3
3
  "screens": {
4
4
  "NAV": {
5
5
  "viewable": false,
@@ -1652,6 +1652,27 @@
1652
1652
  "deprecated": null,
1653
1653
  "legacy": null
1654
1654
  },
1655
+ "discover.category_select": {
1656
+ "screen": "DISCOVER",
1657
+ "kind": "button",
1658
+ "description": "Choose a discovery category (Super and above). value = category, lower-cased.",
1659
+ "actions": [
1660
+ "tap"
1661
+ ],
1662
+ "values": [
1663
+ "all",
1664
+ "profile_match",
1665
+ "onehook_suggested",
1666
+ "similar"
1667
+ ],
1668
+ "platforms": [
1669
+ "web",
1670
+ "ios",
1671
+ "android"
1672
+ ],
1673
+ "deprecated": null,
1674
+ "legacy": null
1675
+ },
1655
1676
  "discover.add_hook_submit": {
1656
1677
  "screen": "DISCOVER",
1657
1678
  "kind": "button",
@@ -3444,7 +3465,8 @@
3444
3465
  "values": null,
3445
3466
  "platforms": [
3446
3467
  "web",
3447
- "ios"
3468
+ "ios",
3469
+ "android"
3448
3470
  ],
3449
3471
  "deprecated": null,
3450
3472
  "legacy": null
@@ -4473,7 +4495,6 @@
4473
4495
  "profile.settings_open": "Web-only: Android shows settings inline on the profile, with no separate settings entry button.",
4474
4496
  "profile.tab_select": "Not built on Android: the profile is a single scrolling screen with no sub-section tabs.",
4475
4497
  "profile.voice_play": "Not built on Android: the profile shows no own-voice-prompt player.",
4476
- "profile_edit.choice_select": "Not built on Android: profile editing uses free-text fields, not segmented choice chips.",
4477
4498
  "profile_edit.photo_adjust": "Not built on Android: no in-app photo crop/adjust control.",
4478
4499
  "profile_edit.photo_remove": "Not built on Android: profile editing cannot remove individual photos.",
4479
4500
  "profile_edit.photo_remove_confirm": "Not built on Android: profile editing cannot remove individual photos, so there is no confirmation.",
@@ -4956,5 +4977,5 @@
4956
4977
  }
4957
4978
  }
4958
4979
  },
4959
- "hash": "4a3328962531236a"
4980
+ "hash": "7f0a0b33ce88bee5"
4960
4981
  }