onehook-api-client 1.0.40 → 1.0.42

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 (33) hide show
  1. package/README.md +7 -0
  2. package/dist-cjs/OneHook.js +2 -0
  3. package/dist-cjs/commands/SetMatchingTabHiddenCommand.js +21 -0
  4. package/dist-cjs/commands/index.js +1 -0
  5. package/dist-cjs/protocols/Aws_restJson1.js +85 -17
  6. package/dist-cjs/telemetry/index.js +8 -2
  7. package/dist-es/OneHook.js +2 -0
  8. package/dist-es/commands/SetMatchingTabHiddenCommand.js +17 -0
  9. package/dist-es/commands/index.js +1 -0
  10. package/dist-es/protocols/Aws_restJson1.js +80 -14
  11. package/dist-es/telemetry/index.js +8 -2
  12. package/dist-types/OneHook.d.ts +7 -0
  13. package/dist-types/OneHookClient.d.ts +3 -2
  14. package/dist-types/commands/GetChatProfileCommand.d.ts +0 -5
  15. package/dist-types/commands/GetInternalProfileCommand.d.ts +1 -1
  16. package/dist-types/commands/GetMatchingProfileCommand.d.ts +7 -0
  17. package/dist-types/commands/GetMyProfileCommand.d.ts +7 -5
  18. package/dist-types/commands/GetPlaceCommand.d.ts +3 -2
  19. package/dist-types/commands/GetStateCommand.d.ts +1 -0
  20. package/dist-types/commands/KeepHooksCommand.d.ts +1 -0
  21. package/dist-types/commands/SearchPlacesCommand.d.ts +3 -2
  22. package/dist-types/commands/SetMatchingTabHiddenCommand.d.ts +106 -0
  23. package/dist-types/commands/UpgradeUserCommand.d.ts +1 -0
  24. package/dist-types/commands/UpsertChatProfileCommand.d.ts +0 -5
  25. package/dist-types/commands/UpsertMatchingProfileCommand.d.ts +7 -0
  26. package/dist-types/commands/index.d.ts +1 -0
  27. package/dist-types/models/models_0.d.ts +80 -35
  28. package/dist-types/protocols/Aws_restJson1.d.ts +9 -0
  29. package/dist-types/telemetry/index.d.ts +5 -2
  30. package/package.json +1 -1
  31. package/telemetry/TelemetryCatalog.kt +7 -4
  32. package/telemetry/TelemetryCatalog.swift +10 -4
  33. package/telemetry/telemetry-catalog.json +54 -3
@@ -1,8 +1,8 @@
1
1
  // GENERATED FILE - DO NOT EDIT.
2
- // telemetry-integrity: sha256 f5ce49a642d35eb2737d6fa6bdef7d90d23bb23f41d63e7d80d087874fe997b9
2
+ // telemetry-integrity: sha256 60042f48143e7fdc2a4899f085dffdf226fbc1c533ace96e4f37e74f07d08b1a
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.16.0, hash 3d27632e55e2d44f.
5
+ // Catalog version 1.17.0, hash 76d9d66743a9261c.
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.16.0"
14
- public static let hash = "3d27632e55e2d44f"
13
+ public static let version = "1.17.0"
14
+ public static let hash = "76d9d66743a9261c"
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,8 @@ public enum UiElement: String, CaseIterable, Codable, Sendable {
306
306
  case onboardingChoiceSelect = "onboarding.choice_select"
307
307
  case matchingIntroTurnOn = "matching_intro.turn_on"
308
308
  case matchingIntroShouldIJoin = "matching_intro.should_i_join"
309
+ case matchingIntroLockedTap = "matching_intro.locked_tap"
310
+ case matchingIntroHide = "matching_intro.hide"
309
311
  case discoverPassButton = "discover.pass_button"
310
312
  case discoverLikeButton = "discover.like_button"
311
313
  case discoverRoseButton = "discover.rose_button"
@@ -481,6 +483,7 @@ public enum UiElement: String, CaseIterable, Codable, Sendable {
481
483
  case settingsUnblockConfirm = "settings.unblock_confirm"
482
484
  case settingsMatchingEnable = "settings.matching_enable"
483
485
  case settingsMatchingProfileOpen = "settings.matching_profile_open"
486
+ case settingsMatchingTabToggle = "settings.matching_tab_toggle"
484
487
  case settingsMatchingDisable = "settings.matching_disable"
485
488
  case settingsMatchingDisableConfirm = "settings.matching_disable_confirm"
486
489
  case settingsVerifyCodeSubmit = "settings.verify_code_submit"
@@ -587,6 +590,8 @@ public enum UiElement: String, CaseIterable, Codable, Sendable {
587
590
  case .onboardingChoiceSelect: return UiElementSpec(screen: .onboarding, kind: .segmented, actions: [.select, .tap], allowedValues: nil, platforms: [.web, .ios, .android])
588
591
  case .matchingIntroTurnOn: return UiElementSpec(screen: .matchingIntro, kind: .button, actions: [.tap], allowedValues: nil, platforms: [.web, .ios, .android])
589
592
  case .matchingIntroShouldIJoin: return UiElementSpec(screen: .matchingIntro, kind: .button, actions: [.tap, .dismiss], allowedValues: nil, platforms: [.web, .ios, .android])
593
+ case .matchingIntroLockedTap: return UiElementSpec(screen: .matchingIntro, kind: .gesture, actions: [.tap], allowedValues: nil, platforms: [.web, .ios, .android])
594
+ case .matchingIntroHide: return UiElementSpec(screen: .matchingIntro, kind: .button, actions: [.tap], allowedValues: nil, platforms: [.web, .ios, .android])
590
595
  case .discoverPassButton: return UiElementSpec(screen: .discover, kind: .button, actions: [.tap], allowedValues: nil, platforms: [.web, .ios, .android])
591
596
  case .discoverLikeButton: return UiElementSpec(screen: .discover, kind: .button, actions: [.tap], allowedValues: nil, platforms: [.android])
592
597
  case .discoverRoseButton: return UiElementSpec(screen: .discover, kind: .button, actions: [.tap], allowedValues: nil, platforms: [.web, .ios, .android])
@@ -762,6 +767,7 @@ public enum UiElement: String, CaseIterable, Codable, Sendable {
762
767
  case .settingsUnblockConfirm: return UiElementSpec(screen: .settings, kind: .dialogButton, actions: [.submit, .dismiss], allowedValues: nil, platforms: [.ios])
763
768
  case .settingsMatchingEnable: return UiElementSpec(screen: .settings, kind: .button, actions: [.tap], allowedValues: nil, platforms: [.web, .ios])
764
769
  case .settingsMatchingProfileOpen: return UiElementSpec(screen: .settings, kind: .button, actions: [.tap], allowedValues: nil, platforms: [.web, .ios, .android])
770
+ case .settingsMatchingTabToggle: return UiElementSpec(screen: .settings, kind: .toggle, actions: [.toggle], allowedValues: ["show", "hide"], platforms: [.web, .ios, .android])
765
771
  case .settingsMatchingDisable: return UiElementSpec(screen: .settings, kind: .button, actions: [.tap], allowedValues: nil, platforms: [.web, .ios, .android])
766
772
  case .settingsMatchingDisableConfirm: return UiElementSpec(screen: .settings, kind: .dialogButton, actions: [.submit, .dismiss], allowedValues: nil, platforms: [.web, .ios, .android])
767
773
  case .settingsVerifyCodeSubmit: return UiElementSpec(screen: .settings, kind: .button, actions: [.submit, .dismiss], allowedValues: ["email", "phone"], platforms: [.ios, .android])
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.16.0",
2
+ "version": "1.17.0",
3
3
  "screens": {
4
4
  "NAV": {
5
5
  "viewable": false,
@@ -35,7 +35,7 @@
35
35
  },
36
36
  "MATCHING_INTRO": {
37
37
  "viewable": true,
38
- "description": "Matching tab for chat-only members (matching off): the Turn on matching opt-in plus a \"Should I sign up for matching?\" explainer. Replaced by DISCOVER once matching is on."
38
+ "description": "Matching tab for chat-only members (matching off): a locked preview of the Discover screen in its empty state, with the Turn on matching opt-in, a \"Should I sign up for matching?\" explainer and Hide matching screen. Replaced by DISCOVER once matching is on; absent while the member has hidden it."
39
39
  },
40
40
  "LIKE_COMPOSER": {
41
41
  "viewable": true,
@@ -1578,6 +1578,38 @@
1578
1578
  "deprecated": null,
1579
1579
  "legacy": null
1580
1580
  },
1581
+ "matching_intro.locked_tap": {
1582
+ "screen": "MATCHING_INTRO",
1583
+ "kind": "gesture",
1584
+ "description": "Tap on a locked control of the Discover preview (header buttons, category chips, refresh); shows \"Opt in to get access\".",
1585
+ "actions": [
1586
+ "tap"
1587
+ ],
1588
+ "values": null,
1589
+ "platforms": [
1590
+ "web",
1591
+ "ios",
1592
+ "android"
1593
+ ],
1594
+ "deprecated": null,
1595
+ "legacy": null
1596
+ },
1597
+ "matching_intro.hide": {
1598
+ "screen": "MATCHING_INTRO",
1599
+ "kind": "button",
1600
+ "description": "Hide matching screen: the Matching tab goes away (Chat and Profile only) until shown again from settings.",
1601
+ "actions": [
1602
+ "tap"
1603
+ ],
1604
+ "values": null,
1605
+ "platforms": [
1606
+ "web",
1607
+ "ios",
1608
+ "android"
1609
+ ],
1610
+ "deprecated": null,
1611
+ "legacy": null
1612
+ },
1581
1613
  "discover.pass_button": {
1582
1614
  "screen": "DISCOVER",
1583
1615
  "kind": "button",
@@ -4427,6 +4459,25 @@
4427
4459
  "deprecated": null,
4428
4460
  "legacy": null
4429
4461
  },
4462
+ "settings.matching_tab_toggle": {
4463
+ "screen": "SETTINGS",
4464
+ "kind": "toggle",
4465
+ "description": "Show or hide the Matching tab while matching is off (General settings). value = new state.",
4466
+ "actions": [
4467
+ "toggle"
4468
+ ],
4469
+ "values": [
4470
+ "show",
4471
+ "hide"
4472
+ ],
4473
+ "platforms": [
4474
+ "web",
4475
+ "ios",
4476
+ "android"
4477
+ ],
4478
+ "deprecated": null,
4479
+ "legacy": null
4480
+ },
4430
4481
  "settings.matching_disable": {
4431
4482
  "screen": "SETTINGS",
4432
4483
  "kind": "button",
@@ -5619,5 +5670,5 @@
5619
5670
  }
5620
5671
  }
5621
5672
  },
5622
- "hash": "3d27632e55e2d44f"
5673
+ "hash": "76d9d66743a9261c"
5623
5674
  }