onehook-api-client 1.0.25 → 1.0.27

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 (30) hide show
  1. package/README.md +21 -0
  2. package/dist-cjs/OneHook.js +6 -0
  3. package/dist-cjs/commands/CreateAdminInviteCommand.js +21 -0
  4. package/dist-cjs/commands/SendAdminLinkOtpCommand.js +21 -0
  5. package/dist-cjs/commands/VerifyAdminLinkOtpCommand.js +21 -0
  6. package/dist-cjs/commands/index.js +3 -0
  7. package/dist-cjs/protocols/Aws_restJson1.js +101 -3
  8. package/dist-cjs/telemetry/index.js +9 -3
  9. package/dist-es/OneHook.js +6 -0
  10. package/dist-es/commands/CreateAdminInviteCommand.js +17 -0
  11. package/dist-es/commands/SendAdminLinkOtpCommand.js +17 -0
  12. package/dist-es/commands/VerifyAdminLinkOtpCommand.js +17 -0
  13. package/dist-es/commands/index.js +3 -0
  14. package/dist-es/protocols/Aws_restJson1.js +92 -0
  15. package/dist-es/telemetry/index.js +9 -3
  16. package/dist-types/OneHook.d.ts +21 -0
  17. package/dist-types/OneHookClient.d.ts +5 -2
  18. package/dist-types/commands/CreateAdminInviteCommand.d.ts +87 -0
  19. package/dist-types/commands/GetChatSettingsCommand.d.ts +1 -0
  20. package/dist-types/commands/SendAdminLinkOtpCommand.d.ts +83 -0
  21. package/dist-types/commands/UpdateChatSettingsCommand.d.ts +2 -0
  22. package/dist-types/commands/VerifyAdminLinkOtpCommand.d.ts +84 -0
  23. package/dist-types/commands/index.d.ts +3 -0
  24. package/dist-types/models/models_0.d.ts +60 -0
  25. package/dist-types/protocols/Aws_restJson1.d.ts +27 -0
  26. package/dist-types/telemetry/index.d.ts +4 -1
  27. package/package.json +1 -1
  28. package/telemetry/TelemetryCatalog.kt +8 -5
  29. package/telemetry/TelemetryCatalog.swift +11 -5
  30. package/telemetry/telemetry-catalog.json +54 -3
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.25",
4
+ "version": "1.0.27",
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 0d559e383b1ff24b9304a97577d805ea5c1d9b7d8ded8aa7ace664f0c3a25e86
2
+ // telemetry-integrity: sha256 94d29118a67cfeca1488eb2adcee98ef46eebf3ba6e433a9fcc622a81ed01504
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.3.0, hash 47d859d40ce38e04.
5
+ // Catalog version 1.3.0, hash 9db35444cda2b7ba.
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).
@@ -13,7 +13,7 @@ package club.onehook.telemetry
13
13
 
14
14
  object TelemetryCatalog {
15
15
  const val VERSION = "1.3.0"
16
- const val HASH = "47d859d40ce38e04"
16
+ const val HASH = "9db35444cda2b7ba"
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
  }
@@ -341,8 +341,11 @@ enum class UiElement(
341
341
  CALL_CAMERA("call.camera", TelemetryScreen.CALL, UiElementKind.TOGGLE, listOf(UiAction.TOGGLE), listOf("on", "off"), listOf(TelemetryPlatform.WEB, TelemetryPlatform.IOS, TelemetryPlatform.ANDROID)),
342
342
  CALL_CAMERA_SWITCH("call.camera_switch", TelemetryScreen.CALL, UiElementKind.BUTTON, listOf(UiAction.TAP), null, listOf(TelemetryPlatform.IOS)),
343
343
  CALL_SPEAKER("call.speaker", TelemetryScreen.CALL, UiElementKind.TOGGLE, listOf(UiAction.TOGGLE), listOf("on", "off"), listOf(TelemetryPlatform.IOS, TelemetryPlatform.ANDROID)),
344
- CALL_SCREEN_SHARE("call.screen_share", TelemetryScreen.CALL, UiElementKind.TOGGLE, listOf(UiAction.TOGGLE), listOf("on", "off"), listOf(TelemetryPlatform.WEB, TelemetryPlatform.ANDROID)),
345
- CALL_SCREEN_SHARE_RESPOND("call.screen_share_respond", TelemetryScreen.CALL, UiElementKind.DIALOG_BUTTON, listOf(UiAction.TAP, UiAction.DISMISS), listOf("accept", "decline"), listOf(TelemetryPlatform.WEB, TelemetryPlatform.ANDROID)),
344
+ CALL_SCREEN_SHARE("call.screen_share", TelemetryScreen.CALL, UiElementKind.TOGGLE, listOf(UiAction.TOGGLE), listOf("on", "off"), listOf(TelemetryPlatform.WEB, TelemetryPlatform.IOS, TelemetryPlatform.ANDROID)),
345
+ CALL_SCREEN_SHARE_RESPOND("call.screen_share_respond", TelemetryScreen.CALL, UiElementKind.DIALOG_BUTTON, listOf(UiAction.TAP, UiAction.DISMISS), listOf("accept", "decline"), listOf(TelemetryPlatform.WEB, TelemetryPlatform.IOS, TelemetryPlatform.ANDROID)),
346
+ CALL_CAPTIONS("call.captions", TelemetryScreen.CALL, UiElementKind.TOGGLE, listOf(UiAction.TOGGLE), listOf("on", "off"), listOf(TelemetryPlatform.WEB, TelemetryPlatform.IOS, TelemetryPlatform.ANDROID)),
347
+ CALL_CAPTION_LANGUAGE_SELECT("call.caption_language_select", TelemetryScreen.CALL, UiElementKind.MENU_ITEM, listOf(UiAction.TAP), null, listOf(TelemetryPlatform.WEB, TelemetryPlatform.IOS, TelemetryPlatform.ANDROID)),
348
+ CHAT_SETTINGS_HELP_TRANSLATE_CAPTIONS("chat_settings.help_translate_captions", TelemetryScreen.CHAT_SETTINGS, UiElementKind.TOGGLE, listOf(UiAction.TOGGLE), listOf("on", "off"), listOf(TelemetryPlatform.WEB, TelemetryPlatform.IOS, TelemetryPlatform.ANDROID)),
346
349
  CHAT_MEDIA_OPEN("chat.media_open", TelemetryScreen.CHAT, UiElementKind.GESTURE, listOf(UiAction.TAP), null, listOf(TelemetryPlatform.WEB, TelemetryPlatform.IOS, TelemetryPlatform.ANDROID)),
347
350
  CHAT_AUDIO_PLAY("chat.audio_play", TelemetryScreen.CHAT, UiElementKind.TOGGLE, listOf(UiAction.TOGGLE), listOf("play", "pause"), listOf(TelemetryPlatform.WEB, TelemetryPlatform.IOS, TelemetryPlatform.ANDROID)),
348
351
  CHAT_FILE_OPEN("chat.file_open", TelemetryScreen.CHAT, UiElementKind.LIST_ITEM, listOf(UiAction.TAP), null, listOf(TelemetryPlatform.WEB, TelemetryPlatform.IOS, TelemetryPlatform.ANDROID)),
@@ -1,8 +1,8 @@
1
1
  // GENERATED FILE - DO NOT EDIT.
2
- // telemetry-integrity: sha256 0dc9e6db2083f5384054fd3557fb379b96b2dbed4de4a4873cc32f27f1a1c483
2
+ // telemetry-integrity: sha256 73f10d1858e08f4db1e6f237ec4ff955a07627d99aead4cb50d686f82961e459
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.3.0, hash 47d859d40ce38e04.
5
+ // Catalog version 1.3.0, hash 9db35444cda2b7ba.
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).
@@ -11,7 +11,7 @@ import Foundation
11
11
 
12
12
  public enum TelemetryCatalog {
13
13
  public static let version = "1.3.0"
14
- public static let hash = "47d859d40ce38e04"
14
+ public static let hash = "9db35444cda2b7ba"
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
  }
@@ -293,6 +293,9 @@ public enum UiElement: String, CaseIterable, Codable, Sendable {
293
293
  case callSpeaker = "call.speaker"
294
294
  case callScreenShare = "call.screen_share"
295
295
  case callScreenShareRespond = "call.screen_share_respond"
296
+ case callCaptions = "call.captions"
297
+ case callCaptionLanguageSelect = "call.caption_language_select"
298
+ case chatSettingsHelpTranslateCaptions = "chat_settings.help_translate_captions"
296
299
  case chatMediaOpen = "chat.media_open"
297
300
  case chatAudioPlay = "chat.audio_play"
298
301
  case chatFileOpen = "chat.file_open"
@@ -514,8 +517,11 @@ public enum UiElement: String, CaseIterable, Codable, Sendable {
514
517
  case .callCamera: return UiElementSpec(screen: .call, kind: .toggle, actions: [.toggle], allowedValues: ["on", "off"], platforms: [.web, .ios, .android])
515
518
  case .callCameraSwitch: return UiElementSpec(screen: .call, kind: .button, actions: [.tap], allowedValues: nil, platforms: [.ios])
516
519
  case .callSpeaker: return UiElementSpec(screen: .call, kind: .toggle, actions: [.toggle], allowedValues: ["on", "off"], platforms: [.ios, .android])
517
- case .callScreenShare: return UiElementSpec(screen: .call, kind: .toggle, actions: [.toggle], allowedValues: ["on", "off"], platforms: [.web, .android])
518
- case .callScreenShareRespond: return UiElementSpec(screen: .call, kind: .dialogButton, actions: [.tap, .dismiss], allowedValues: ["accept", "decline"], platforms: [.web, .android])
520
+ case .callScreenShare: return UiElementSpec(screen: .call, kind: .toggle, actions: [.toggle], allowedValues: ["on", "off"], platforms: [.web, .ios, .android])
521
+ case .callScreenShareRespond: return UiElementSpec(screen: .call, kind: .dialogButton, actions: [.tap, .dismiss], allowedValues: ["accept", "decline"], platforms: [.web, .ios, .android])
522
+ case .callCaptions: return UiElementSpec(screen: .call, kind: .toggle, actions: [.toggle], allowedValues: ["on", "off"], platforms: [.web, .ios, .android])
523
+ case .callCaptionLanguageSelect: return UiElementSpec(screen: .call, kind: .menuItem, actions: [.tap], allowedValues: nil, platforms: [.web, .ios, .android])
524
+ case .chatSettingsHelpTranslateCaptions: return UiElementSpec(screen: .chatSettings, kind: .toggle, actions: [.toggle], allowedValues: ["on", "off"], platforms: [.web, .ios, .android])
519
525
  case .chatMediaOpen: return UiElementSpec(screen: .chat, kind: .gesture, actions: [.tap], allowedValues: nil, platforms: [.web, .ios, .android])
520
526
  case .chatAudioPlay: return UiElementSpec(screen: .chat, kind: .toggle, actions: [.toggle], allowedValues: ["play", "pause"], platforms: [.web, .ios, .android])
521
527
  case .chatFileOpen: return UiElementSpec(screen: .chat, kind: .listItem, actions: [.tap], allowedValues: nil, platforms: [.web, .ios, .android])
@@ -1950,6 +1950,7 @@
1950
1950
  ],
1951
1951
  "platforms": [
1952
1952
  "web",
1953
+ "ios",
1953
1954
  "android"
1954
1955
  ],
1955
1956
  "deprecated": null
@@ -1968,6 +1969,58 @@
1968
1969
  ],
1969
1970
  "platforms": [
1970
1971
  "web",
1972
+ "ios",
1973
+ "android"
1974
+ ],
1975
+ "deprecated": null
1976
+ },
1977
+ "call.captions": {
1978
+ "screen": "CALL",
1979
+ "kind": "toggle",
1980
+ "description": "Turn live captions of your own speech on / off. value = new state.",
1981
+ "actions": [
1982
+ "toggle"
1983
+ ],
1984
+ "values": [
1985
+ "on",
1986
+ "off"
1987
+ ],
1988
+ "platforms": [
1989
+ "web",
1990
+ "ios",
1991
+ "android"
1992
+ ],
1993
+ "deprecated": null
1994
+ },
1995
+ "call.caption_language_select": {
1996
+ "screen": "CALL",
1997
+ "kind": "menu_item",
1998
+ "description": "Caption translation language. On choosing a language: targetId = its code (ISO 639-1 base subtag, e.g. \"hi\"). Opening a separate language menu (iOS) reports without targetId. Never caption text.",
1999
+ "actions": [
2000
+ "tap"
2001
+ ],
2002
+ "values": null,
2003
+ "platforms": [
2004
+ "web",
2005
+ "ios",
2006
+ "android"
2007
+ ],
2008
+ "deprecated": null
2009
+ },
2010
+ "chat_settings.help_translate_captions": {
2011
+ "screen": "CHAT_SETTINGS",
2012
+ "kind": "toggle",
2013
+ "description": "Help translate my captions for call partners whose device cannot. value = new state.",
2014
+ "actions": [
2015
+ "toggle"
2016
+ ],
2017
+ "values": [
2018
+ "on",
2019
+ "off"
2020
+ ],
2021
+ "platforms": [
2022
+ "web",
2023
+ "ios",
1971
2024
  "android"
1972
2025
  ],
1973
2026
  "deprecated": null
@@ -3724,8 +3777,6 @@
3724
3777
  "settings.verify_code_submit": "Web verifies a new email inline via settings.email_manage; there is no separate verify-code control, and phone updates are not offered (settings.phone_update is gapped)."
3725
3778
  },
3726
3779
  "ios": {
3727
- "call.screen_share": "iOS 1:1 calls have no in-call screen-sharing control; the call UI exposes only mute / camera / flip / speaker / end (screen-share is unbuilt — see the TODO(screen-share) markers in Core/Calls).",
3728
- "call.screen_share_respond": "iOS has no screen-sharing feature, so there is no incoming screen-share request dialog to accept or decline.",
3729
3780
  "chat.capture_option": "iOS captures via the system UIImagePickerController camera; photo vs video is chosen in the system camera UI, not an app control.",
3730
3781
  "chat.history_reset_confirm": "iOS message-history recovery has no last-resort reset flow; recovery is via a source device + QR (chat.history_recover / chat.history_recover_method / chat.history_recover_step), so there is no reset to confirm.",
3731
3782
  "chat.mr_onehook_close": "No explicit leave-Mr-OneHook control on iOS; the user switches away via the conversation switcher (chat.conversation_switch).",
@@ -4309,5 +4360,5 @@
4309
4360
  }
4310
4361
  }
4311
4362
  },
4312
- "hash": "47d859d40ce38e04"
4363
+ "hash": "9db35444cda2b7ba"
4313
4364
  }