onehook-api-client 1.0.32 → 1.0.34
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.
- package/README.md +21 -0
- package/dist-cjs/OneHook.js +6 -0
- package/dist-cjs/commands/GetSuggestionsCommand.js +21 -0
- package/dist-cjs/commands/RemoveOneHookSuggestionCommand.js +21 -0
- package/dist-cjs/commands/RemoveSuggestionCommand.js +21 -0
- package/dist-cjs/commands/index.js +3 -0
- package/dist-cjs/protocols/Aws_restJson1.js +75 -3
- package/dist-cjs/telemetry/index.js +18 -2
- package/dist-es/OneHook.js +6 -0
- package/dist-es/commands/GetSuggestionsCommand.js +17 -0
- package/dist-es/commands/RemoveOneHookSuggestionCommand.js +17 -0
- package/dist-es/commands/RemoveSuggestionCommand.js +17 -0
- package/dist-es/commands/index.js +3 -0
- package/dist-es/protocols/Aws_restJson1.js +66 -0
- package/dist-es/telemetry/index.js +18 -2
- package/dist-types/OneHook.d.ts +24 -0
- package/dist-types/OneHookClient.d.ts +5 -2
- package/dist-types/commands/GetPreferencesCommand.d.ts +5 -0
- package/dist-types/commands/GetSuggestionsCommand.d.ts +84 -0
- package/dist-types/commands/RecordSuggestionCommand.d.ts +5 -5
- package/dist-types/commands/RemoveOneHookSuggestionCommand.d.ts +72 -0
- package/dist-types/commands/RemoveSuggestionCommand.d.ts +72 -0
- package/dist-types/commands/index.d.ts +3 -0
- package/dist-types/models/models_0.d.ts +62 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +27 -0
- package/dist-types/telemetry/index.d.ts +10 -2
- package/package.json +1 -1
- package/telemetry/TelemetryCatalog.kt +12 -4
- package/telemetry/TelemetryCatalog.swift +20 -4
- package/telemetry/telemetry-catalog.json +136 -2
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// GENERATED FILE - DO NOT EDIT.
|
|
2
|
-
// telemetry-integrity: sha256
|
|
2
|
+
// telemetry-integrity: sha256 fa4dd6ce50cc0e7e34df7da28e65bb63a2878d094ca0b51f52889f7853472b2a
|
|
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.
|
|
5
|
+
// Catalog version 1.11.0, hash 12c7d6d70211f79c.
|
|
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.
|
|
14
|
-
public static let hash = "
|
|
13
|
+
public static let version = "1.11.0"
|
|
14
|
+
public static let hash = "12c7d6d70211f79c"
|
|
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
|
}
|
|
@@ -374,6 +374,11 @@ public enum UiElement: String, CaseIterable, Codable, Sendable {
|
|
|
374
374
|
case chatMrOnehookContextShare = "chat.mr_onehook_context_share"
|
|
375
375
|
case chatMrOnehookScopeOpen = "chat.mr_onehook_scope_open"
|
|
376
376
|
case chatMrOnehookScopeSelect = "chat.mr_onehook_scope_select"
|
|
377
|
+
case chatMrOnehookSessionsOpen = "chat.mr_onehook_sessions_open"
|
|
378
|
+
case chatMrOnehookSessionResume = "chat.mr_onehook_session_resume"
|
|
379
|
+
case chatMrOnehookSessionDelete = "chat.mr_onehook_session_delete"
|
|
380
|
+
case chatMrOnehookSessionNew = "chat.mr_onehook_session_new"
|
|
381
|
+
case chatMrOnehookSessionLimit = "chat.mr_onehook_session_limit"
|
|
377
382
|
case chatIntroTourOpen = "chat.intro_tour_open"
|
|
378
383
|
case chatIntroDismiss = "chat.intro_dismiss"
|
|
379
384
|
case chatIntroGetStarted = "chat.intro_get_started"
|
|
@@ -423,6 +428,9 @@ public enum UiElement: String, CaseIterable, Codable, Sendable {
|
|
|
423
428
|
case preferencesSave = "preferences.save"
|
|
424
429
|
case preferencesUpgradeOpen = "preferences.upgrade_open"
|
|
425
430
|
case preferencesLockedFilterTap = "preferences.locked_filter_tap"
|
|
431
|
+
case preferencesSuggestionRemove = "preferences.suggestion_remove"
|
|
432
|
+
case preferencesOwnSuggestionSave = "preferences.own_suggestion_save"
|
|
433
|
+
case preferencesOwnSuggestionRemove = "preferences.own_suggestion_remove"
|
|
426
434
|
case settingsEmailManage = "settings.email_manage"
|
|
427
435
|
case settingsPhoneUpdate = "settings.phone_update"
|
|
428
436
|
case settingsGoogleLink = "settings.google_link"
|
|
@@ -619,6 +627,11 @@ public enum UiElement: String, CaseIterable, Codable, Sendable {
|
|
|
619
627
|
case .chatMrOnehookContextShare: return UiElementSpec(screen: .chat, kind: .dialogButton, actions: [.submit, .dismiss], allowedValues: nil, platforms: [.web, .ios, .android])
|
|
620
628
|
case .chatMrOnehookScopeOpen: return UiElementSpec(screen: .chat, kind: .button, actions: [.tap, .dismiss], allowedValues: nil, platforms: [.web])
|
|
621
629
|
case .chatMrOnehookScopeSelect: return UiElementSpec(screen: .chat, kind: .menuItem, actions: [.tap], allowedValues: nil, platforms: [.web])
|
|
630
|
+
case .chatMrOnehookSessionsOpen: return UiElementSpec(screen: .chat, kind: .button, actions: [.tap, .dismiss], allowedValues: nil, platforms: [.web, .ios, .android])
|
|
631
|
+
case .chatMrOnehookSessionResume: return UiElementSpec(screen: .chat, kind: .menuItem, actions: [.tap], allowedValues: nil, platforms: [.web, .ios, .android])
|
|
632
|
+
case .chatMrOnehookSessionDelete: return UiElementSpec(screen: .chat, kind: .button, actions: [.tap], allowedValues: nil, platforms: [.web, .ios, .android])
|
|
633
|
+
case .chatMrOnehookSessionNew: return UiElementSpec(screen: .chat, kind: .button, actions: [.tap], allowedValues: nil, platforms: [.web, .ios, .android])
|
|
634
|
+
case .chatMrOnehookSessionLimit: return UiElementSpec(screen: .chat, kind: .dialogButton, actions: [.tap, .dismiss], allowedValues: ["replace_least_recent", "manage", "cancel"], platforms: [.web, .ios, .android])
|
|
622
635
|
case .chatIntroTourOpen: return UiElementSpec(screen: .chat, kind: .button, actions: [.tap], allowedValues: nil, platforms: [.ios])
|
|
623
636
|
case .chatIntroDismiss: return UiElementSpec(screen: .chat, kind: .button, actions: [.tap, .dismiss], allowedValues: nil, platforms: [.ios])
|
|
624
637
|
case .chatIntroGetStarted: return UiElementSpec(screen: .chat, kind: .button, actions: [.tap], allowedValues: nil, platforms: [.ios])
|
|
@@ -668,6 +681,9 @@ public enum UiElement: String, CaseIterable, Codable, Sendable {
|
|
|
668
681
|
case .preferencesSave: return UiElementSpec(screen: .preferences, kind: .button, actions: [.submit], allowedValues: nil, platforms: [.ios, .android])
|
|
669
682
|
case .preferencesUpgradeOpen: return UiElementSpec(screen: .preferences, kind: .button, actions: [.tap, .dismiss], allowedValues: nil, platforms: [.ios])
|
|
670
683
|
case .preferencesLockedFilterTap: return UiElementSpec(screen: .preferences, kind: .button, actions: [.tap], allowedValues: nil, platforms: [.ios])
|
|
684
|
+
case .preferencesSuggestionRemove: return UiElementSpec(screen: .preferences, kind: .button, actions: [.tap], allowedValues: nil, platforms: [.web, .ios, .android])
|
|
685
|
+
case .preferencesOwnSuggestionSave: return UiElementSpec(screen: .preferences, kind: .button, actions: [.submit], allowedValues: nil, platforms: [.web, .ios, .android])
|
|
686
|
+
case .preferencesOwnSuggestionRemove: return UiElementSpec(screen: .preferences, kind: .button, actions: [.tap], allowedValues: nil, platforms: [.web, .ios, .android])
|
|
671
687
|
case .settingsEmailManage: return UiElementSpec(screen: .settings, kind: .button, actions: [.tap, .dismiss], allowedValues: nil, platforms: [.web, .ios, .android])
|
|
672
688
|
case .settingsPhoneUpdate: return UiElementSpec(screen: .settings, kind: .button, actions: [.tap, .dismiss], allowedValues: nil, platforms: [.ios, .android])
|
|
673
689
|
case .settingsGoogleLink: return UiElementSpec(screen: .settings, kind: .toggle, actions: [.toggle], allowedValues: ["link", "unlink"], platforms: [.web, .ios, .android])
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.
|
|
2
|
+
"version": "1.11.0",
|
|
3
3
|
"screens": {
|
|
4
4
|
"NAV": {
|
|
5
5
|
"viewable": false,
|
|
@@ -2757,6 +2757,92 @@
|
|
|
2757
2757
|
"deprecated": null,
|
|
2758
2758
|
"legacy": null
|
|
2759
2759
|
},
|
|
2760
|
+
"chat.mr_onehook_sessions_open": {
|
|
2761
|
+
"screen": "CHAT",
|
|
2762
|
+
"kind": "button",
|
|
2763
|
+
"description": "Open the list of saved Mr OneHook chats (Super and above).",
|
|
2764
|
+
"actions": [
|
|
2765
|
+
"tap",
|
|
2766
|
+
"dismiss"
|
|
2767
|
+
],
|
|
2768
|
+
"values": null,
|
|
2769
|
+
"platforms": [
|
|
2770
|
+
"web",
|
|
2771
|
+
"ios",
|
|
2772
|
+
"android"
|
|
2773
|
+
],
|
|
2774
|
+
"deprecated": null,
|
|
2775
|
+
"legacy": null
|
|
2776
|
+
},
|
|
2777
|
+
"chat.mr_onehook_session_resume": {
|
|
2778
|
+
"screen": "CHAT",
|
|
2779
|
+
"kind": "menu_item",
|
|
2780
|
+
"description": "Resume a saved Mr OneHook chat.",
|
|
2781
|
+
"actions": [
|
|
2782
|
+
"tap"
|
|
2783
|
+
],
|
|
2784
|
+
"values": null,
|
|
2785
|
+
"platforms": [
|
|
2786
|
+
"web",
|
|
2787
|
+
"ios",
|
|
2788
|
+
"android"
|
|
2789
|
+
],
|
|
2790
|
+
"deprecated": null,
|
|
2791
|
+
"legacy": null
|
|
2792
|
+
},
|
|
2793
|
+
"chat.mr_onehook_session_delete": {
|
|
2794
|
+
"screen": "CHAT",
|
|
2795
|
+
"kind": "button",
|
|
2796
|
+
"description": "Delete a saved Mr OneHook chat.",
|
|
2797
|
+
"actions": [
|
|
2798
|
+
"tap"
|
|
2799
|
+
],
|
|
2800
|
+
"values": null,
|
|
2801
|
+
"platforms": [
|
|
2802
|
+
"web",
|
|
2803
|
+
"ios",
|
|
2804
|
+
"android"
|
|
2805
|
+
],
|
|
2806
|
+
"deprecated": null,
|
|
2807
|
+
"legacy": null
|
|
2808
|
+
},
|
|
2809
|
+
"chat.mr_onehook_session_new": {
|
|
2810
|
+
"screen": "CHAT",
|
|
2811
|
+
"kind": "button",
|
|
2812
|
+
"description": "Start a new Mr OneHook chat.",
|
|
2813
|
+
"actions": [
|
|
2814
|
+
"tap"
|
|
2815
|
+
],
|
|
2816
|
+
"values": null,
|
|
2817
|
+
"platforms": [
|
|
2818
|
+
"web",
|
|
2819
|
+
"ios",
|
|
2820
|
+
"android"
|
|
2821
|
+
],
|
|
2822
|
+
"deprecated": null,
|
|
2823
|
+
"legacy": null
|
|
2824
|
+
},
|
|
2825
|
+
"chat.mr_onehook_session_limit": {
|
|
2826
|
+
"screen": "CHAT",
|
|
2827
|
+
"kind": "dialog_button",
|
|
2828
|
+
"description": "At the saved-chat limit: replace the least recent chat, or manage chats. value = choice.",
|
|
2829
|
+
"actions": [
|
|
2830
|
+
"tap",
|
|
2831
|
+
"dismiss"
|
|
2832
|
+
],
|
|
2833
|
+
"values": [
|
|
2834
|
+
"replace_least_recent",
|
|
2835
|
+
"manage",
|
|
2836
|
+
"cancel"
|
|
2837
|
+
],
|
|
2838
|
+
"platforms": [
|
|
2839
|
+
"web",
|
|
2840
|
+
"ios",
|
|
2841
|
+
"android"
|
|
2842
|
+
],
|
|
2843
|
+
"deprecated": null,
|
|
2844
|
+
"legacy": null
|
|
2845
|
+
},
|
|
2760
2846
|
"chat.intro_tour_open": {
|
|
2761
2847
|
"screen": "CHAT",
|
|
2762
2848
|
"kind": "button",
|
|
@@ -3515,6 +3601,54 @@
|
|
|
3515
3601
|
"deprecated": null,
|
|
3516
3602
|
"legacy": null
|
|
3517
3603
|
},
|
|
3604
|
+
"preferences.suggestion_remove": {
|
|
3605
|
+
"screen": "PREFERENCES",
|
|
3606
|
+
"kind": "button",
|
|
3607
|
+
"description": "Remove the member's current Mr. OneHook suggestion.",
|
|
3608
|
+
"actions": [
|
|
3609
|
+
"tap"
|
|
3610
|
+
],
|
|
3611
|
+
"values": null,
|
|
3612
|
+
"platforms": [
|
|
3613
|
+
"web",
|
|
3614
|
+
"ios",
|
|
3615
|
+
"android"
|
|
3616
|
+
],
|
|
3617
|
+
"deprecated": null,
|
|
3618
|
+
"legacy": null
|
|
3619
|
+
},
|
|
3620
|
+
"preferences.own_suggestion_save": {
|
|
3621
|
+
"screen": "PREFERENCES",
|
|
3622
|
+
"kind": "button",
|
|
3623
|
+
"description": "Save the member's own suggestion (who they are looking for; Super and above).",
|
|
3624
|
+
"actions": [
|
|
3625
|
+
"submit"
|
|
3626
|
+
],
|
|
3627
|
+
"values": null,
|
|
3628
|
+
"platforms": [
|
|
3629
|
+
"web",
|
|
3630
|
+
"ios",
|
|
3631
|
+
"android"
|
|
3632
|
+
],
|
|
3633
|
+
"deprecated": null,
|
|
3634
|
+
"legacy": null
|
|
3635
|
+
},
|
|
3636
|
+
"preferences.own_suggestion_remove": {
|
|
3637
|
+
"screen": "PREFERENCES",
|
|
3638
|
+
"kind": "button",
|
|
3639
|
+
"description": "Remove the member's own suggestion.",
|
|
3640
|
+
"actions": [
|
|
3641
|
+
"tap"
|
|
3642
|
+
],
|
|
3643
|
+
"values": null,
|
|
3644
|
+
"platforms": [
|
|
3645
|
+
"web",
|
|
3646
|
+
"ios",
|
|
3647
|
+
"android"
|
|
3648
|
+
],
|
|
3649
|
+
"deprecated": null,
|
|
3650
|
+
"legacy": null
|
|
3651
|
+
},
|
|
3518
3652
|
"settings.email_manage": {
|
|
3519
3653
|
"screen": "SETTINGS",
|
|
3520
3654
|
"kind": "button",
|
|
@@ -4977,5 +5111,5 @@
|
|
|
4977
5111
|
}
|
|
4978
5112
|
}
|
|
4979
5113
|
},
|
|
4980
|
-
"hash": "
|
|
5114
|
+
"hash": "12c7d6d70211f79c"
|
|
4981
5115
|
}
|