livevoice-sdk-react-native 2.0.1 → 3.0.0

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 (207) hide show
  1. package/README.md +105 -66
  2. package/android/build.gradle +5 -4
  3. package/android/src/main/java/io/livevoice/react/LiveVoiceModule.kt +122 -188
  4. package/android/src/main/java/io/livevoice/react/__SDK.kt +2 -2
  5. package/ios/LiveVoiceRNBridge.swift +362 -0
  6. package/ios/LiveVoiceSdkReactNative.mm +187 -158
  7. package/ios/__SDK.h +1 -1
  8. package/ios/livevoice_spm_backport.rb +202 -0
  9. package/lib/module/components/BrandingView.js +58 -39
  10. package/lib/module/components/BrandingView.js.map +1 -1
  11. package/lib/module/components/ChannelView.js +355 -44
  12. package/lib/module/components/ChannelView.js.map +1 -1
  13. package/lib/module/components/ErrorView.js +5 -6
  14. package/lib/module/components/ErrorView.js.map +1 -1
  15. package/lib/module/components/LiveVoiceSpinner.js +81 -0
  16. package/lib/module/components/LiveVoiceSpinner.js.map +1 -0
  17. package/lib/module/components/LiveVoiceView.js +311 -133
  18. package/lib/module/components/LiveVoiceView.js.map +1 -1
  19. package/lib/module/components/PasswordPrompt.js +165 -0
  20. package/lib/module/components/PasswordPrompt.js.map +1 -0
  21. package/lib/module/components/PlayButtonView.js +180 -244
  22. package/lib/module/components/PlayButtonView.js.map +1 -1
  23. package/lib/module/components/ReconnectingView.js +31 -53
  24. package/lib/module/components/ReconnectingView.js.map +1 -1
  25. package/lib/module/icons/branding-ios.png +0 -0
  26. package/lib/module/icons/camera-off-android.png +0 -0
  27. package/lib/module/icons/camera-off-android@2x.png +0 -0
  28. package/lib/module/icons/camera-off-android@3x.png +0 -0
  29. package/lib/module/icons/cpu-android.png +0 -0
  30. package/lib/module/icons/cpu-android@2x.png +0 -0
  31. package/lib/module/icons/cpu-android@3x.png +0 -0
  32. package/lib/module/icons/cpu-ios.png +0 -0
  33. package/lib/module/icons/cpu-ios@2x.png +0 -0
  34. package/lib/module/icons/cpu-ios@3x.png +0 -0
  35. package/lib/module/icons/lock-android.png +0 -0
  36. package/lib/module/icons/lock-android@2x.png +0 -0
  37. package/lib/module/icons/lock-android@3x.png +0 -0
  38. package/lib/module/icons/lock-ios.png +0 -0
  39. package/lib/module/icons/lock-ios@2x.png +0 -0
  40. package/lib/module/icons/lock-ios@3x.png +0 -0
  41. package/lib/module/icons/mic-off-android.png +0 -0
  42. package/lib/module/icons/mic-off-android@2x.png +0 -0
  43. package/lib/module/icons/mic-off-android@3x.png +0 -0
  44. package/lib/module/icons/mic-slash-ios.png +0 -0
  45. package/lib/module/icons/mic-slash-ios@2x.png +0 -0
  46. package/lib/module/icons/mic-slash-ios@3x.png +0 -0
  47. package/lib/module/icons/video-slash-ios.png +0 -0
  48. package/lib/module/icons/video-slash-ios@2x.png +0 -0
  49. package/lib/module/icons/video-slash-ios@3x.png +0 -0
  50. package/lib/module/index.js +11 -6
  51. package/lib/module/index.js.map +1 -1
  52. package/lib/module/sdk/Bridge.js +236 -0
  53. package/lib/module/sdk/Bridge.js.map +1 -0
  54. package/lib/module/sdk/Event.js +160 -0
  55. package/lib/module/sdk/Event.js.map +1 -0
  56. package/lib/module/sdk/Lifecycle.js +331 -0
  57. package/lib/module/sdk/Lifecycle.js.map +1 -0
  58. package/lib/module/sdk/LiveVoiceSdk.js +262 -268
  59. package/lib/module/sdk/LiveVoiceSdk.js.map +1 -1
  60. package/lib/module/sdk/LiveVoiceState.js +208 -40
  61. package/lib/module/sdk/LiveVoiceState.js.map +1 -1
  62. package/lib/module/sdk/LogEntries.js +99 -0
  63. package/lib/module/sdk/LogEntries.js.map +1 -0
  64. package/lib/module/sdk/Models.js +2 -0
  65. package/lib/module/{util/UIState.js.map → sdk/Models.js.map} +1 -1
  66. package/lib/module/{util/PlayingState.js → sdk/NativeSdkVersions.js} +9 -8
  67. package/lib/module/sdk/NativeSdkVersions.js.map +1 -0
  68. package/lib/module/sdk/Observables.js +391 -0
  69. package/lib/module/sdk/Observables.js.map +1 -0
  70. package/lib/module/sdk/Passwords.js +298 -0
  71. package/lib/module/sdk/Passwords.js.map +1 -0
  72. package/lib/module/sdk/Playback.js +35 -0
  73. package/lib/module/sdk/Playback.js.map +1 -0
  74. package/lib/module/specs/NativeLiveVoiceSdk.js.map +1 -1
  75. package/lib/module/util/Colors.js +2 -1
  76. package/lib/module/util/Colors.js.map +1 -1
  77. package/lib/module/util/Translations.js +34 -11
  78. package/lib/module/util/Translations.js.map +1 -1
  79. package/lib/module/util/freeze.js +26 -0
  80. package/lib/module/util/freeze.js.map +1 -0
  81. package/lib/module/util/logger.js +79 -41
  82. package/lib/module/util/logger.js.map +1 -1
  83. package/lib/typescript/src/components/BrandingView.d.ts +4 -0
  84. package/lib/typescript/src/components/BrandingView.d.ts.map +1 -1
  85. package/lib/typescript/src/components/ChannelView.d.ts +29 -3
  86. package/lib/typescript/src/components/ChannelView.d.ts.map +1 -1
  87. package/lib/typescript/src/components/ErrorView.d.ts +5 -3
  88. package/lib/typescript/src/components/ErrorView.d.ts.map +1 -1
  89. package/lib/typescript/src/components/LiveVoiceSpinner.d.ts +16 -0
  90. package/lib/typescript/src/components/LiveVoiceSpinner.d.ts.map +1 -0
  91. package/lib/typescript/src/components/LiveVoiceView.d.ts +81 -21
  92. package/lib/typescript/src/components/LiveVoiceView.d.ts.map +1 -1
  93. package/lib/typescript/src/components/PasswordPrompt.d.ts +13 -0
  94. package/lib/typescript/src/components/PasswordPrompt.d.ts.map +1 -0
  95. package/lib/typescript/src/components/PlayButtonView.d.ts +12 -329
  96. package/lib/typescript/src/components/PlayButtonView.d.ts.map +1 -1
  97. package/lib/typescript/src/components/ReconnectingView.d.ts +6 -3
  98. package/lib/typescript/src/components/ReconnectingView.d.ts.map +1 -1
  99. package/lib/typescript/src/index.d.ts +15 -6
  100. package/lib/typescript/src/index.d.ts.map +1 -1
  101. package/lib/typescript/src/sdk/Bridge.d.ts +36 -0
  102. package/lib/typescript/src/sdk/Bridge.d.ts.map +1 -0
  103. package/lib/typescript/src/sdk/Event.d.ts +97 -0
  104. package/lib/typescript/src/sdk/Event.d.ts.map +1 -0
  105. package/lib/typescript/src/sdk/Lifecycle.d.ts +191 -0
  106. package/lib/typescript/src/sdk/Lifecycle.d.ts.map +1 -0
  107. package/lib/typescript/src/sdk/LiveVoiceSdk.d.ts +195 -190
  108. package/lib/typescript/src/sdk/LiveVoiceSdk.d.ts.map +1 -1
  109. package/lib/typescript/src/sdk/LiveVoiceState.d.ts +77 -9
  110. package/lib/typescript/src/sdk/LiveVoiceState.d.ts.map +1 -1
  111. package/lib/typescript/src/sdk/LogEntries.d.ts +28 -0
  112. package/lib/typescript/src/sdk/LogEntries.d.ts.map +1 -0
  113. package/lib/typescript/src/sdk/Models.d.ts +114 -0
  114. package/lib/typescript/src/sdk/Models.d.ts.map +1 -0
  115. package/lib/typescript/src/sdk/NativeSdkVersions.d.ts +6 -0
  116. package/lib/typescript/src/sdk/NativeSdkVersions.d.ts.map +1 -0
  117. package/lib/typescript/src/sdk/Observables.d.ts +123 -0
  118. package/lib/typescript/src/sdk/Observables.d.ts.map +1 -0
  119. package/lib/typescript/src/sdk/Passwords.d.ts +72 -0
  120. package/lib/typescript/src/sdk/Passwords.d.ts.map +1 -0
  121. package/lib/typescript/src/sdk/Playback.d.ts +9 -0
  122. package/lib/typescript/src/sdk/Playback.d.ts.map +1 -0
  123. package/lib/typescript/src/specs/NativeLiveVoiceSdk.d.ts +34 -31
  124. package/lib/typescript/src/specs/NativeLiveVoiceSdk.d.ts.map +1 -1
  125. package/lib/typescript/src/util/Colors.d.ts.map +1 -1
  126. package/lib/typescript/src/util/Translations.d.ts +30 -8
  127. package/lib/typescript/src/util/Translations.d.ts.map +1 -1
  128. package/lib/typescript/src/util/freeze.d.ts +6 -0
  129. package/lib/typescript/src/util/freeze.d.ts.map +1 -0
  130. package/lib/typescript/src/util/logger.d.ts +17 -7
  131. package/lib/typescript/src/util/logger.d.ts.map +1 -1
  132. package/livevoice-sdk-react-native.podspec +29 -4
  133. package/package.json +12 -9
  134. package/src/components/BrandingView.tsx +42 -55
  135. package/src/components/ChannelView.tsx +329 -38
  136. package/src/components/ErrorView.tsx +9 -12
  137. package/src/components/LiveVoiceSpinner.tsx +87 -0
  138. package/src/components/LiveVoiceView.tsx +319 -201
  139. package/src/components/PasswordPrompt.tsx +144 -0
  140. package/src/components/PlayButtonView.tsx +165 -269
  141. package/src/components/ReconnectingView.tsx +28 -81
  142. package/src/icons/branding-ios.png +0 -0
  143. package/src/icons/camera-off-android.png +0 -0
  144. package/src/icons/camera-off-android@2x.png +0 -0
  145. package/src/icons/camera-off-android@3x.png +0 -0
  146. package/src/icons/cpu-android.png +0 -0
  147. package/src/icons/cpu-android@2x.png +0 -0
  148. package/src/icons/cpu-android@3x.png +0 -0
  149. package/src/icons/cpu-ios.png +0 -0
  150. package/src/icons/cpu-ios@2x.png +0 -0
  151. package/src/icons/cpu-ios@3x.png +0 -0
  152. package/src/icons/lock-android.png +0 -0
  153. package/src/icons/lock-android@2x.png +0 -0
  154. package/src/icons/lock-android@3x.png +0 -0
  155. package/src/icons/lock-ios.png +0 -0
  156. package/src/icons/lock-ios@2x.png +0 -0
  157. package/src/icons/lock-ios@3x.png +0 -0
  158. package/src/icons/mic-off-android.png +0 -0
  159. package/src/icons/mic-off-android@2x.png +0 -0
  160. package/src/icons/mic-off-android@3x.png +0 -0
  161. package/src/icons/mic-slash-ios.png +0 -0
  162. package/src/icons/mic-slash-ios@2x.png +0 -0
  163. package/src/icons/mic-slash-ios@3x.png +0 -0
  164. package/src/icons/video-slash-ios.png +0 -0
  165. package/src/icons/video-slash-ios@2x.png +0 -0
  166. package/src/icons/video-slash-ios@3x.png +0 -0
  167. package/src/index.tsx +92 -6
  168. package/src/sdk/Bridge.ts +259 -0
  169. package/src/sdk/Event.ts +187 -0
  170. package/src/sdk/Lifecycle.ts +366 -0
  171. package/src/sdk/LiveVoiceSdk.ts +285 -309
  172. package/src/sdk/LiveVoiceState.ts +230 -60
  173. package/src/sdk/LogEntries.ts +88 -0
  174. package/src/sdk/Models.ts +129 -0
  175. package/src/{util/PlayingState.ts → sdk/NativeSdkVersions.ts} +7 -6
  176. package/src/sdk/Observables.ts +414 -0
  177. package/src/sdk/Passwords.ts +286 -0
  178. package/src/sdk/Playback.ts +30 -0
  179. package/src/specs/NativeLiveVoiceSdk.ts +42 -38
  180. package/src/util/Colors.ts +2 -1
  181. package/src/util/Translations.ts +34 -12
  182. package/src/util/freeze.ts +23 -0
  183. package/src/util/logger.ts +79 -52
  184. package/lib/module/components/AudioOutputSwitchView.js +0 -138
  185. package/lib/module/components/AudioOutputSwitchView.js.map +0 -1
  186. package/lib/module/components/index.js +0 -24
  187. package/lib/module/components/index.js.map +0 -1
  188. package/lib/module/icons/mic.png +0 -0
  189. package/lib/module/util/ForegroundServiceConfig.js +0 -38
  190. package/lib/module/util/ForegroundServiceConfig.js.map +0 -1
  191. package/lib/module/util/PlayingState.js.map +0 -1
  192. package/lib/module/util/UIState.js +0 -4
  193. package/lib/typescript/src/components/AudioOutputSwitchView.d.ts +0 -6
  194. package/lib/typescript/src/components/AudioOutputSwitchView.d.ts.map +0 -1
  195. package/lib/typescript/src/components/index.d.ts +0 -9
  196. package/lib/typescript/src/components/index.d.ts.map +0 -1
  197. package/lib/typescript/src/util/ForegroundServiceConfig.d.ts +0 -19
  198. package/lib/typescript/src/util/ForegroundServiceConfig.d.ts.map +0 -1
  199. package/lib/typescript/src/util/PlayingState.d.ts +0 -7
  200. package/lib/typescript/src/util/PlayingState.d.ts.map +0 -1
  201. package/lib/typescript/src/util/UIState.d.ts +0 -86
  202. package/lib/typescript/src/util/UIState.d.ts.map +0 -1
  203. package/src/components/AudioOutputSwitchView.tsx +0 -146
  204. package/src/components/index.tsx +0 -21
  205. package/src/icons/mic.png +0 -0
  206. package/src/util/ForegroundServiceConfig.tsx +0 -42
  207. package/src/util/UIState.ts +0 -106
@@ -0,0 +1,114 @@
1
+ /** A channel of the joined event. */
2
+ export type LiveVoiceChannel = {
3
+ /** The channel's id, shown in the admin web interface at the bottom of *Edit Channel*. */
4
+ id: number;
5
+ /** The channel's name, as listeners see it. */
6
+ name: string;
7
+ /**
8
+ * Whether a speaker is live on the channel. Playback of an offline channel cannot be started
9
+ * (`channel_offline`); its subtitles can.
10
+ */
11
+ isOnline: boolean;
12
+ /** Whether the channel carries audio. */
13
+ hasAudio: boolean;
14
+ /**
15
+ * Whether the channel carries video. The SDK plays no video: a channel with video and audio
16
+ * plays its audio, and one with only video cannot be played, though its subtitles still open.
17
+ */
18
+ hasVideo: boolean;
19
+ /** Whether subtitles can be started for the channel. */
20
+ hasSubtitles: boolean;
21
+ /** Whether a speaker has muted the channel's audio. */
22
+ isAudioMuted: boolean;
23
+ /** Whether listening to the channel needs a password. */
24
+ isPasswordProtected: boolean;
25
+ /** Whether an AI voice speaks on the channel. */
26
+ isAiSpeaker: boolean;
27
+ /**
28
+ * Whether the event added this AI translation channel because its language was requested. It is
29
+ * not recorded playback.
30
+ */
31
+ isOnDemand: boolean;
32
+ /** Set when the channel is an AI translation of another channel. */
33
+ aiTranslationInfo: LiveVoiceAiTranslationInfo | null;
34
+ /** The AI translation channels of this channel: each has audio, subtitles or both. */
35
+ dependentChannels: LiveVoiceDependentChannel[];
36
+ /** The channel's local playback on this device. */
37
+ playingState: LiveVoicePlayingState;
38
+ };
39
+ /**
40
+ * A channel's local playback; `transitioning` while a start or stop is under way. `playing` means
41
+ * local playback is confirmed.
42
+ */
43
+ export type LiveVoicePlayingState = 'stopped' | 'transitioning' | 'playing';
44
+ /** The channel an AI translation translates, and the language it translates into. */
45
+ export type LiveVoiceAiTranslationInfo = {
46
+ sourceChannelId: number;
47
+ targetLanguage: string;
48
+ };
49
+ /** An AI translation channel of a source channel, with audio, subtitles or both. */
50
+ export type LiveVoiceDependentChannel = {
51
+ id: number;
52
+ name: string;
53
+ sourceChannelId: number;
54
+ /** The channel's language; for a translation, the language it translates into. */
55
+ language: string | null;
56
+ hasAudio: boolean;
57
+ hasSubtitles: boolean;
58
+ };
59
+ /**
60
+ * Which subtitles the SDK receives, with the fragments received so far:
61
+ * - `disabled`: none. The state after a join, a leave and `stopSubtitles`.
62
+ * - `automatic`: those of the playing channel, following whichever channel plays. It stays on
63
+ * while nothing plays and when a channel's subtitles are refused.
64
+ * - `specific`: those of the channel `channelId`. It is restored after a reconnect; if the
65
+ * server then refuses it, the state becomes `disabled`.
66
+ *
67
+ * The observed value follows a call shortly, also an awaited `joinEvent`: right after the promise
68
+ * resolves it can still show the previous value, so observe it.
69
+ */
70
+ export type LiveVoiceSubtitleState = {
71
+ kind: 'disabled';
72
+ } | {
73
+ kind: 'automatic';
74
+ fragments: string[];
75
+ } | {
76
+ kind: 'specific';
77
+ channelId: number;
78
+ fragments: string[];
79
+ };
80
+ /** Subtitles that can be started for the joined event. */
81
+ export type LiveVoiceAvailableSubtitle = {
82
+ channelId: number;
83
+ name: string;
84
+ /** `null` for a transcript. */
85
+ language: string | null;
86
+ /** The channel these subtitles belong to, `null` for a transcript. */
87
+ parentChannelId: number | null;
88
+ };
89
+ /**
90
+ * Where LiveVoice plays its audio: a preference, not a claim about the route the device uses.
91
+ * `system` is the route the system chooses (connected headphones, a Bluetooth device, or the
92
+ * phone's receiver); `speaker` is the phone's loudspeaker.
93
+ */
94
+ export type LiveVoiceAudioOutput = 'system' | 'speaker';
95
+ /**
96
+ * What the API key of the joined event permits. Both stay unchanged through reconnects and are
97
+ * `false` after a leave and after a failure. They are not among the values an awaited `joinEvent`
98
+ * waits for: right after it resolves they can still show the previous value, so observe them with
99
+ * `addFeaturesListener` or `useLiveVoiceFeatures`.
100
+ */
101
+ export type LiveVoiceFeatures = {
102
+ /**
103
+ * Whether custom parts of `LiveVoiceView`, `switchToLinkedEvent` and the language calls are
104
+ * allowed. Without it, linked events and requestable languages are `null`.
105
+ */
106
+ customUiAllowed: boolean;
107
+ /** Whether the "Live Audio Streaming by LiveVoice" line is hidden. */
108
+ hideBranding: boolean;
109
+ };
110
+ /** Ends an observation. Calling `remove()` again does nothing. */
111
+ export type LiveVoiceSubscription = {
112
+ remove(): void;
113
+ };
114
+ //# sourceMappingURL=Models.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Models.d.ts","sourceRoot":"","sources":["../../../../src/sdk/Models.ts"],"names":[],"mappings":"AAgBA,qCAAqC;AACrC,MAAM,MAAM,gBAAgB,GAAG;IAC7B,0FAA0F;IAC1F,EAAE,EAAE,MAAM,CAAC;IACX,+CAA+C;IAC/C,IAAI,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,QAAQ,EAAE,OAAO,CAAC;IAClB,yCAAyC;IACzC,QAAQ,EAAE,OAAO,CAAC;IAClB;;;OAGG;IACH,QAAQ,EAAE,OAAO,CAAC;IAClB,wDAAwD;IACxD,YAAY,EAAE,OAAO,CAAC;IACtB,uDAAuD;IACvD,YAAY,EAAE,OAAO,CAAC;IACtB,yDAAyD;IACzD,mBAAmB,EAAE,OAAO,CAAC;IAC7B,iDAAiD;IACjD,WAAW,EAAE,OAAO,CAAC;IACrB;;;OAGG;IACH,UAAU,EAAE,OAAO,CAAC;IACpB,oEAAoE;IACpE,iBAAiB,EAAE,0BAA0B,GAAG,IAAI,CAAC;IACrD,sFAAsF;IACtF,iBAAiB,EAAE,yBAAyB,EAAE,CAAC;IAC/C,mDAAmD;IACnD,YAAY,EAAE,qBAAqB,CAAC;CACrC,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,qBAAqB,GAAG,SAAS,GAAG,eAAe,GAAG,SAAS,CAAC;AAE5E,qFAAqF;AACrF,MAAM,MAAM,0BAA0B,GAAG;IACvC,eAAe,EAAE,MAAM,CAAC;IACxB,cAAc,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,oFAAoF;AACpF,MAAM,MAAM,yBAAyB,GAAG;IACtC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,eAAe,EAAE,MAAM,CAAC;IACxB,kFAAkF;IAClF,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,QAAQ,EAAE,OAAO,CAAC;IAClB,YAAY,EAAE,OAAO,CAAC;CACvB,CAAC;AAEF;;;;;;;;;;GAUG;AACH,MAAM,MAAM,sBAAsB,GAC9B;IAAE,IAAI,EAAE,UAAU,CAAA;CAAE,GACpB;IAAE,IAAI,EAAE,WAAW,CAAC;IAAC,SAAS,EAAE,MAAM,EAAE,CAAA;CAAE,GAC1C;IAAE,IAAI,EAAE,UAAU,CAAC;IAAC,SAAS,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,EAAE,CAAA;CAAE,CAAC;AAEjE,0DAA0D;AAC1D,MAAM,MAAM,0BAA0B,GAAG;IACvC,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,+BAA+B;IAC/B,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,sEAAsE;IACtE,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;CAChC,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,oBAAoB,GAAG,QAAQ,GAAG,SAAS,CAAC;AAExD;;;;;GAKG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B;;;OAGG;IACH,eAAe,EAAE,OAAO,CAAC;IACzB,sEAAsE;IACtE,YAAY,EAAE,OAAO,CAAC;CACvB,CAAC;AAEF,kEAAkE;AAClE,MAAM,MAAM,qBAAqB,GAAG;IAAE,MAAM,IAAI,IAAI,CAAA;CAAE,CAAC"}
@@ -0,0 +1,6 @@
1
+ /** The native SDK versions this wrapper pins exactly, per platform. */
2
+ export declare const nativeSdkVersions: {
3
+ readonly ios: "3.0.0";
4
+ readonly android: "3.0.0";
5
+ };
6
+ //# sourceMappingURL=NativeSdkVersions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NativeSdkVersions.d.ts","sourceRoot":"","sources":["../../../../src/sdk/NativeSdkVersions.ts"],"names":[],"mappings":"AAgBA,uEAAuE;AACvE,eAAO,MAAM,iBAAiB;;;CAGpB,CAAC"}
@@ -0,0 +1,123 @@
1
+ import { type LiveVoiceEvent, type LiveVoiceLinkedEvent, type LiveVoiceRequestableLanguage } from './Event';
2
+ import { type LiveVoiceConnection } from './Lifecycle';
3
+ import { type LiveVoiceAudioOutput, type LiveVoiceAvailableSubtitle, type LiveVoiceFeatures, type LiveVoiceSubscription, type LiveVoiceSubtitleState } from './Models';
4
+ /**
5
+ * The connection to the event: `idle` before `initialize()` and while nothing is joined or
6
+ * joining.
7
+ */
8
+ export declare function getCurrentConnection(): LiveVoiceConnection;
9
+ /**
10
+ * Calls `listener` with the current connection at once, then on every change. A state change is a
11
+ * display update; await `joinEvent()` to confirm a particular join.
12
+ *
13
+ * @param listener - Called with the current value at once, then with every change.
14
+ * @returns A subscription; its `remove()` ends the observation.
15
+ */
16
+ export declare function addConnectionListener(listener: (connection: LiveVoiceConnection) => void): LiveVoiceSubscription;
17
+ /** The connection in a component. */
18
+ export declare function useLiveVoiceConnection(): LiveVoiceConnection;
19
+ /**
20
+ * Which subtitles the SDK receives, with the fragments so far. It is `disabled` after a join, a
21
+ * leave and `stopSubtitles`. The value follows a call shortly, also an awaited `joinEvent`: right
22
+ * after the promise resolves it can still show the previous value, so observe it with
23
+ * {@link addSubtitlesListener} or {@link useLiveVoiceSubtitles}.
24
+ */
25
+ export declare function getCurrentSubtitles(): LiveVoiceSubtitleState;
26
+ /**
27
+ * Calls `listener` with the current subtitles at once, then on every change.
28
+ *
29
+ * @param listener - Called with the current value at once, then with every change.
30
+ * @returns A subscription; its `remove()` ends the observation.
31
+ */
32
+ export declare function addSubtitlesListener(listener: (subtitles: LiveVoiceSubtitleState) => void): LiveVoiceSubscription;
33
+ /** The subtitles in a component. */
34
+ export declare function useLiveVoiceSubtitles(): LiveVoiceSubtitleState;
35
+ /**
36
+ * The subtitles that can be started: `null` while no event is joined, a list once `joinEvent` has
37
+ * resolved, `[]` when the event has none. The list stays during a reconnect.
38
+ */
39
+ export declare function getCurrentAvailableSubtitles(): LiveVoiceAvailableSubtitle[] | null;
40
+ /**
41
+ * Calls `listener` with the current available subtitles at once, then on every change.
42
+ *
43
+ * @param listener - Called with the current value at once, then with every change.
44
+ * @returns A subscription; its `remove()` ends the observation.
45
+ */
46
+ export declare function addAvailableSubtitlesListener(listener: (availableSubtitles: LiveVoiceAvailableSubtitle[] | null) => void): LiveVoiceSubscription;
47
+ /** The available subtitles in a component. */
48
+ export declare function useLiveVoiceAvailableSubtitles(): LiveVoiceAvailableSubtitle[] | null;
49
+ /**
50
+ * The audio output preference. Before `initialize()` it is `'system'` until `setAudioOutput()`
51
+ * sets a preference, then that preference.
52
+ */
53
+ export declare function getCurrentAudioOutput(): LiveVoiceAudioOutput;
54
+ /**
55
+ * Calls `listener` with the current audio output at once, then on every change.
56
+ *
57
+ * @param listener - Called with the current value at once, then with every change.
58
+ * @returns A subscription; its `remove()` ends the observation.
59
+ */
60
+ export declare function addAudioOutputListener(listener: (audioOutput: LiveVoiceAudioOutput) => void): LiveVoiceSubscription;
61
+ /** The audio output in a component. */
62
+ export declare function useLiveVoiceAudioOutput(): LiveVoiceAudioOutput;
63
+ /** Internal: `setAudioOutput()` before native reported a value, which then replaces it. */
64
+ export declare function presetAudioOutput(output: LiveVoiceAudioOutput): void;
65
+ /**
66
+ * What the API key of the joined event permits; `false` for both before the first join, after a
67
+ * leave and after a failure. Right after an awaited `joinEvent` it can still show the previous
68
+ * value; observe it with {@link addFeaturesListener} or {@link useLiveVoiceFeatures}.
69
+ */
70
+ export declare function getCurrentFeatures(): LiveVoiceFeatures;
71
+ /**
72
+ * Calls `listener` with the current features at once, then whenever they change.
73
+ *
74
+ * @param listener - Called with the current value at once, then with every change.
75
+ * @returns A subscription; its `remove()` ends the observation.
76
+ */
77
+ export declare function addFeaturesListener(listener: (features: LiveVoiceFeatures) => void): LiveVoiceSubscription;
78
+ /** The features in a component. */
79
+ export declare function useLiveVoiceFeatures(): LiveVoiceFeatures;
80
+ /**
81
+ * The joined event: `null` whenever no event is ready, set once the join is ready, kept during a
82
+ * reconnect, and following a linked switch. Its brand colours come with every API key.
83
+ */
84
+ export declare function getCurrentEvent(): LiveVoiceEvent | null;
85
+ /**
86
+ * Calls `listener` with the current event at once, then on every change.
87
+ *
88
+ * @param listener - Called with the current value at once, then with every change.
89
+ * @returns A subscription; its `remove()` ends the observation.
90
+ */
91
+ export declare function addCurrentEventListener(listener: (event: LiveVoiceEvent | null) => void): LiveVoiceSubscription;
92
+ /** The current event in a component. */
93
+ export declare function useLiveVoiceCurrentEvent(): LiveVoiceEvent | null;
94
+ /**
95
+ * The languages listeners can request: `null` until the join has authenticated, for a key without
96
+ * the custom-UI permission, when the event disables requests, and whenever no event is ready; kept
97
+ * during a reconnect.
98
+ */
99
+ export declare function getCurrentRequestableLanguages(): LiveVoiceRequestableLanguage[] | null;
100
+ /**
101
+ * Calls `listener` with the current languages at once, then on every change.
102
+ *
103
+ * @param listener - Called with the current value at once, then with every change.
104
+ * @returns A subscription; its `remove()` ends the observation.
105
+ */
106
+ export declare function addRequestableLanguagesListener(listener: (languages: LiveVoiceRequestableLanguage[] | null) => void): LiveVoiceSubscription;
107
+ /** The requestable languages in a component. */
108
+ export declare function useLiveVoiceRequestableLanguages(): LiveVoiceRequestableLanguage[] | null;
109
+ /**
110
+ * The events linked to the joined one: `null` until the join has authenticated, for a key without
111
+ * the custom-UI permission, and whenever no event is ready; kept during a reconnect.
112
+ */
113
+ export declare function getCurrentLinkedEvents(): LiveVoiceLinkedEvent[] | null;
114
+ /**
115
+ * Calls `listener` with the current linked events at once, then on every change.
116
+ *
117
+ * @param listener - Called with the current value at once, then with every change.
118
+ * @returns A subscription; its `remove()` ends the observation.
119
+ */
120
+ export declare function addLinkedEventsListener(listener: (linkedEvents: LiveVoiceLinkedEvent[] | null) => void): LiveVoiceSubscription;
121
+ /** The linked events in a component. */
122
+ export declare function useLiveVoiceLinkedEvents(): LiveVoiceLinkedEvent[] | null;
123
+ //# sourceMappingURL=Observables.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Observables.d.ts","sourceRoot":"","sources":["../../../../src/sdk/Observables.ts"],"names":[],"mappings":"AAsBA,OAAO,EAIL,KAAK,cAAc,EACnB,KAAK,oBAAoB,EACzB,KAAK,4BAA4B,EAClC,MAAM,SAAS,CAAC;AACjB,OAAO,EAIL,KAAK,mBAAmB,EACzB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,KAAK,oBAAoB,EACzB,KAAK,0BAA0B,EAC/B,KAAK,iBAAiB,EACtB,KAAK,qBAAqB,EAC1B,KAAK,sBAAsB,EAC5B,MAAM,UAAU,CAAC;AAiKlB;;;GAGG;AACH,wBAAgB,oBAAoB,IAAI,mBAAmB,CAE1D;AAED;;;;;;GAMG;AACH,wBAAgB,qBAAqB,CAAC,QAAQ,EAAE,CAAC,UAAU,EAAE,mBAAmB,KAAK,IAAI,GAAG,qBAAqB,CAEhH;AAED,qCAAqC;AACrC,wBAAgB,sBAAsB,IAAI,mBAAmB,CAE5D;AAID;;;;;GAKG;AACH,wBAAgB,mBAAmB,IAAI,sBAAsB,CAE5D;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,CAAC,SAAS,EAAE,sBAAsB,KAAK,IAAI,GAAG,qBAAqB,CAEjH;AAED,oCAAoC;AACpC,wBAAgB,qBAAqB,IAAI,sBAAsB,CAE9D;AAED;;;GAGG;AACH,wBAAgB,4BAA4B,IAAI,0BAA0B,EAAE,GAAG,IAAI,CAElF;AAED;;;;;GAKG;AACH,wBAAgB,6BAA6B,CAC3C,QAAQ,EAAE,CAAC,kBAAkB,EAAE,0BAA0B,EAAE,GAAG,IAAI,KAAK,IAAI,GAC1E,qBAAqB,CAEvB;AAED,8CAA8C;AAC9C,wBAAgB,8BAA8B,IAAI,0BAA0B,EAAE,GAAG,IAAI,CAEpF;AAID;;;GAGG;AACH,wBAAgB,qBAAqB,IAAI,oBAAoB,CAE5D;AAED;;;;;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B;AAED,wCAAwC;AACxC,wBAAgB,wBAAwB,IAAI,oBAAoB,EAAE,GAAG,IAAI,CAExE"}
@@ -0,0 +1,72 @@
1
+ /** What a password is for, keyed by join code, since an event's id is unknown before joining. */
2
+ export type LiveVoicePasswordSubject = {
3
+ kind: 'channel';
4
+ joinCode: string;
5
+ channelId: number;
6
+ } | {
7
+ kind: 'event';
8
+ joinCode: string;
9
+ };
10
+ /** A password the SDK needs. `isRetry` is `true` after a rejected password in the same operation. */
11
+ export type LiveVoicePasswordRequest = {
12
+ subject: LiveVoicePasswordSubject;
13
+ isRetry: boolean;
14
+ };
15
+ /**
16
+ * Supplies a password, or `null` to give up. Giving up fails the call with `password_required`
17
+ * (for a channel `channel_password_required`), or after a rejected password with `wrong_password`
18
+ * (`channel_wrong_password`). A rejection or a thrown error gives up as well.
19
+ */
20
+ export type LiveVoicePasswordProvider = (request: LiveVoicePasswordRequest) => Promise<string | null>;
21
+ /**
22
+ * Keeps passwords between launches. The SDK loads one before asking for it, saves it once the
23
+ * server accepted it and removes it once the server rejected it. Calls for one subject complete in
24
+ * the order they were made. A failure is a cache miss; it never fails an operation.
25
+ */
26
+ export type LiveVoicePasswordStore = {
27
+ load(subject: LiveVoicePasswordSubject): Promise<string | null>;
28
+ save(subject: LiveVoicePasswordSubject, password: string): Promise<void>;
29
+ remove(subject: LiveVoicePasswordSubject): Promise<void>;
30
+ };
31
+ /** A request waiting for the built-in prompt. `name` is its title when known. */
32
+ export type PromptRequest = {
33
+ requestId: string;
34
+ subject: LiveVoicePasswordSubject;
35
+ isRetry: boolean;
36
+ name: string | null;
37
+ };
38
+ /**
39
+ * Sets the provider every later password request asks, or `null` for the built-in prompt. It can
40
+ * be set before `initialize()`. The built-in prompt needs a `LiveVoiceView` on screen: without a
41
+ * provider and without a view, a request gives up and its call fails with the password error.
42
+ */
43
+ export declare function setPasswordProvider(newProvider: LiveVoicePasswordProvider | null): void;
44
+ /**
45
+ * Sets the store the SDK loads passwords from and saves them to, or `null` for none. It can be set
46
+ * before `initialize()`.
47
+ */
48
+ export declare function setPasswordStore(newStore: LiveVoicePasswordStore | null): void;
49
+ /** Whether a store is set, for `initialize`'s configuration. */
50
+ export declare function hasPasswordStore(): boolean;
51
+ /** `initialize` delivered its configuration; later store changes go to native at once. */
52
+ export declare function bridgeDidInitialize(): void;
53
+ /** `onPasswordRequest` and the snapshot's waiting requests. Each id is answered once. */
54
+ export declare function receivePasswordRequest(wire: unknown): void;
55
+ /** `onPasswordRequestCancelled`: the operation ended without the password. */
56
+ export declare function receivePasswordRequestCancellation(wire: unknown): void;
57
+ /** `onPasswordStoreRequest`: calls the host's store and answers once its call has finished. */
58
+ export declare function receivePasswordStoreRequest(wire: unknown): void;
59
+ /** A view that can present the prompt. The most recently registered one still mounted presents. */
60
+ export declare function registerPresenter(): number;
61
+ /**
62
+ * The view went away. If it was presenting, its request gives up with the password error; with no
63
+ * view left, every waiting request does.
64
+ */
65
+ export declare function unregisterPresenter(id: number): void;
66
+ /** The request `presenter` shows now, or `null`. */
67
+ export declare function promptFor(presenter: number): PromptRequest | null;
68
+ /** Calls `listener` whenever the shown prompt or its presenter changes. */
69
+ export declare function observePrompt(listener: () => void): () => void;
70
+ /** The prompt's answer: a password, or `null` for Cancel. */
71
+ export declare function answerPrompt(requestId: string, password: string | null): void;
72
+ //# sourceMappingURL=Passwords.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Passwords.d.ts","sourceRoot":"","sources":["../../../../src/sdk/Passwords.ts"],"names":[],"mappings":"AAqBA,iGAAiG;AACjG,MAAM,MAAM,wBAAwB,GAChC;IAAE,IAAI,EAAE,SAAS,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,GACxD;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,CAAC;AAExC,qGAAqG;AACrG,MAAM,MAAM,wBAAwB,GAAG;IACrC,OAAO,EAAE,w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C/D;AAID,mGAAmG;AACnG,wBAAgB,iBAAiB,IAAI,MAAM,CAK1C;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,CAiBpD;AAED,oDAAoD;AACpD,wBAAgB,SAAS,CAAC,SAAS,EAAE,MAAM,GAAG,aAAa,GAAG,IAAI,CAGjE;AAED,2EAA2E;AAC3E,wBAAgB,aAAa,CAAC,QAAQ,EAAE,MAAM,IAAI,GAAG,MAAM,IAAI,CAG9D;AAED,6DAA6D;AAC7D,wBAAgB,YAAY,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAO7E"}
@@ -0,0 +1,9 @@
1
+ /** Which kind of cell acts: native checks the custom-UI permission again for `custom`. */
2
+ export type CellKind = 'default' | 'custom';
3
+ /**
4
+ * Starts the channel if it is stopped, stops it if it is playing, as native decides from the
5
+ * current playback state at admission (bridge.md 3.3). Resolves once the channel plays or has
6
+ * stopped; rejects with the native error otherwise.
7
+ */
8
+ export declare function togglePlayback(channelId: number, cell: CellKind): Promise<void>;
9
+ //# sourceMappingURL=Playback.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Playback.d.ts","sourceRoot":"","sources":["../../../../src/sdk/Playback.ts"],"names":[],"mappings":"AAmBA,0FAA0F;AAC1F,MAAM,MAAM,QAAQ,GAAG,SAAS,GAAG,QAAQ,CAAC;AAE5C;;;;GAIG;AACH,wBAAsB,cAAc,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC,CAErF"}
@@ -1,50 +1,53 @@
1
1
  import { type TurboModule, type CodegenTypes } from 'react-native';
2
2
  type EventEmitter<T> = CodegenTypes.EventEmitter<T>;
3
3
  export interface Spec extends TurboModule {
4
- initialize(androidServiceConfig: string | null): void;
5
- joinEvent(joinCode: string, password: string | null, apiKey: string): void;
6
- leaveEvent(): void;
7
- reconnect(): void;
8
- getCurrentClaims(): string | null;
9
- getCurrentUiState(): string;
10
- getCurrentAudioState(): boolean;
11
- getCurrentSubtitles(): string;
12
- getCurrentSubtitleState(): string;
13
- getCurrentAvailableSubtitleConfigs(): string;
14
- setLiveVoiceUseSpeaker(value: boolean): void;
15
- startChannel(id: number): void;
16
- stopChannel(): void;
17
- /**
18
- * @param channelId: -1 denotes an unspecified channel (i.e: the currently playing one)
19
- */
20
- startSubtitles(channelId: number): void;
21
- stopSubtitles(): void;
4
+ /** Attaches the bridge, applies the configuration and resolves with the snapshot. */
5
+ initialize(configuration: string): Promise<string>;
6
+ /** Runs one command; resolves with its reply, rejects with the bridge form of its error. */
7
+ execute(command: string, payload: string): Promise<string>;
8
+ /** `{ "<code>": "<text>", … }`, the localised text of every error code. Works before `initialize`. */
9
+ getErrorMessages(): string;
10
+ /** `{output}`, the audio output preference. Works before `initialize`; never fails. */
11
+ setAudioOutput(payload: string): void;
12
+ /** `{event, level, fields}`: one of the wrapper's own entries for the SDK log. Works before `initialize`. */
13
+ writeLogEntry(payload: string): void;
14
+ /** `{requestId, password, failed?}`, the answer to an `onPasswordRequest`. */
15
+ answerPasswordRequest(payload: string): void;
16
+ /** `{requestId, ok, password?}`, the answer to an `onPasswordStoreRequest`. */
17
+ answerPasswordStoreRequest(payload: string): void;
18
+ /** `{isSet}`: whether the host set a password store, for changes after `initialize`. */
19
+ setPasswordStore(payload: string): void;
22
20
  openLiveVoiceWebsite(): void;
23
21
  getSdkVersion(): string;
24
- readonly onUiStateChanged: EventEmitter<string>;
25
- readonly onAudioOutputChanged: EventEmitter<boolean>;
26
- readonly onAvailableSubtitleConfigsChanged: EventEmitter<string>;
27
- readonly onSubtitlesChanged: EventEmitter<string>;
28
- readonly onSubtitleStateChanged: EventEmitter<string>;
22
+ getNativeSdkVersion(): string;
23
+ /** `{state, revision, value}` for every change of a state after `initialize`. */
24
+ readonly onState: EventEmitter<string>;
25
+ /** `{requestId, subject, isRetry, name?}`; answer each once with `answerPasswordRequest`. */
26
+ readonly onPasswordRequest: EventEmitter<string>;
27
+ /** `{requestId}` of a request no operation waits for any more; dismiss its prompt. */
28
+ readonly onPasswordRequestCancelled: EventEmitter<string>;
29
+ /** `{requestId, operation, subject, password?}` for the host's store; answer each once. */
30
+ readonly onPasswordStoreRequest: EventEmitter<string>;
31
+ readonly onLogEntry: EventEmitter<string>;
29
32
  channelStatusOffline(): string;
30
33
  noChannels(): string;
31
34
  isAiChannelStatusMessage(): string;
32
35
  sdkNoMatchingChannels(): string;
33
36
  errorScreenRetrying(): string;
34
37
  errorScreenRetryingIn(seconds: number): string;
35
- sdkErrorGeneric(): string;
36
- sdkErrorInactive(): string;
37
- sdkErrorInvalidApiKey(): string;
38
- sdkErrorListenerLimitReached(): string;
39
- sdkErrorNoNetwork(): string;
40
- sdkErrorNotFound(): string;
41
- sdkErrorRequestFailed(errorCode: number): string;
42
- sdkErrorWrongPassword(): string;
43
38
  streamingByTitle(): string;
44
39
  errorRetryNowButton(): string;
45
40
  accessibilityChannelPlay(): string;
46
41
  accessibilityChannelStatusMuted(): string;
47
42
  accessibilityChannelStop(): string;
43
+ passwordPromptTitle(): string;
44
+ passwordPromptChannelMessage(): string;
45
+ passwordPromptEventMessage(): string;
46
+ passwordPromptWrongPassword(): string;
47
+ passwordPromptField(): string;
48
+ passwordPromptCancelButton(): string;
49
+ passwordPromptChannelConfirmButton(): string;
50
+ passwordPromptEventConfirmButton(): string;
48
51
  }
49
52
  declare const _default: Spec;
50
53
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"NativeLiveVoiceSdk.d.ts","sourceRoot":"","sources":["../../../../src/specs/NativeLiveVoiceSdk.ts"],"names":[],"mappings":"AAaA,OAAO,EAAuB,KAAK,WAAW,EAAE,KAAK,YAAY,EAAE,MAAM,cAAc,CAAC;AAIxF,KAAK,YAAY,CAAC,CAAC,IAAI,YAAY,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC;AAEpD,MAAM,WAAW,IAAK,S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,IAAI,MAAM,CAAA;IAC7B,0BAA0B,IAAI,MAAM,CAAA;IACpC,kCAAkC,IAAI,MAAM,CAAA;IAC5C,gCAAgC,IAAI,MAAM,CAAA;CAC3C;;AAED,wBAAyE"}
@@ -1 +1 @@
1
- {"version":3,"file":"Colors.d.ts","sourceRoot":"","sources":["../../../../src/util/Colors.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,MAAM;;;;;;;;;;;;CAiBlB,CAAC"}
1
+ {"version":3,"file":"Colors.d.ts","sourceRoot":"","sources":["../../../../src/util/Colors.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,MAAM;;;;;;;;;;;;CAkBlB,CAAC"}
@@ -1,22 +1,44 @@
1
+ /**
2
+ * Localized strings the SDK uses for its default UI, in the device's language (English, German and
3
+ * Spanish).
4
+ *
5
+ * Reuse them in your own parts, such as a custom channel cell, so your UI matches the SDK's
6
+ * wording. Each call reads the text synchronously from the native SDK and needs no join. Error
7
+ * texts are not here: every error carries its own `message`.
8
+ */
1
9
  export declare const Translations: {
10
+ /** "Inactive": a channel without a speaker. */
2
11
  channelStatusOffline: () => string;
12
+ /** "This event currently has no channels visible for listeners." */
3
13
  noChannels: () => string;
14
+ /** "AI active": a channel whose speaker is an AI voice. */
4
15
  isAiChannelStatusMessage: () => string;
16
+ /** "No matching channels": a channel filter that leaves none. */
5
17
  sdkNoMatchingChannels: () => string;
18
+ /** "Attempting to reconnect…" */
6
19
  errorScreenRetrying: () => string;
20
+ /** "Reconnecting in `seconds` seconds…" */
7
21
  errorScreenRetryingIn: (seconds: number) => string;
8
- sdkErrorGeneric: () => string;
9
- sdkErrorInactive: () => string;
10
- sdkErrorInvalidApiKey: () => string;
11
- sdkErrorListenerLimitReached: () => string;
12
- sdkErrorNoNetwork: () => string;
13
- sdkErrorNotFound: () => string;
14
- sdkErrorRequestFailed: (errorCode: number) => string;
15
- sdkErrorWrongPassword: () => string;
22
+ /** "Retry now" */
16
23
  errorRetryNowButton: () => string;
24
+ /** "Live Audio Streaming by", before the LiveVoice logo. */
17
25
  streamingByTitle: () => string;
26
+ /** "Play channel", the accessibility label of a channel's play button. */
18
27
  accessibilityChannelPlay: () => string;
28
+ /** "Muted by speaker" */
19
29
  accessibilityChannelStatusMuted: () => string;
30
+ /** "Stop channel", the accessibility label of a channel's stop button. */
20
31
  accessibilityChannelStop: () => string;
21
32
  };
33
+ /** Internal: the built-in password prompt's texts. Its title is the channel's or event's name when known. */
34
+ export declare const PasswordPromptTexts: {
35
+ title: () => string;
36
+ channelMessage: () => string;
37
+ eventMessage: () => string;
38
+ wrongPassword: () => string;
39
+ field: () => string;
40
+ cancelButton: () => string;
41
+ channelConfirmButton: () => string;
42
+ eventConfirmButton: () => string;
43
+ };
22
44
  //# sourceMappingURL=Translations.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Translations.d.ts","sourceRoot":"","sources":["../../../../src/util/Translations.ts"],"names":[],"mappings":"AAoBA,eAAO,MAAM,YAAY;gCACG,MAAM;sBAChB,MAAM;oCACQ,MAAM;iCACT,MAAM;+BACR,MAAM;qCACE,MAAM,KAAG,MAAM;2BAC3B,MAAM;4BACL,MAAM;iCACD,MAAM;wCACC,MAAM;6BACjB,MAAM;4BACP,MAAM;uCACO,MAAM,KAAG,MAAM;iCACvB,MAAM;+BACR,MAAM;4BACT,MAAM;oCACE,MAAM;2CACC,MAAM;oCACb,MAAM;CACrC,CAAC"}
1
+ {"version":3,"file":"Translations.d.ts","sourceRoot":"","sources":["../../../../src/util/Translations.ts"],"names":[],"mappings":"AAmBA;;;;;;;GAOG;AACH,eAAO,MAAM,YAAY;IACvB,+CAA+C;gCACrB,MAAM;IAChC,oEAAoE;sBACpD,MAAM;IACtB,2DAA2D;oCAC7B,MAAM;IACpC,iEAAiE;iCACtC,MAAM;IACjC,iCAAiC;+BACR,MAAM;IAC/B,2CAA2C;qCACV,MAAM,KAAG,MAAM;IAChD,kBAAkB;+BACO,MAAM;IAC/B,4DAA4D;4BACtC,MAAM;IAC5B,0EAA0E;oCAC5C,MAAM;IACpC,yBAAyB;2CACY,MAAM;IAC3C,0EAA0E;oCAC5C,MAAM;CACrC,CAAC;AAEF,6GAA6G;AAC7G,eAAO,MAAM,mBAAmB;iBACnB,MAAM;0BACG,MAAM;wBACR,MAAM;yBACL,MAAM;iBACd,MAAM;wBACC,MAAM;gCACE,MAAM;8BACR,MAAM;CAC/B,CAAC"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Freezes `value` and every plain object and array inside it, so a host cannot change what the
3
+ * SDK handed out. `Date`s and errors are left as they are.
4
+ */
5
+ export declare function deepFreeze<T>(value: T): T;
6
+ //# sourceMappingURL=freeze.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"freeze.d.ts","sourceRoot":"","sources":["../../../../src/util/freeze.ts"],"names":[],"mappings":"AAaA;;;GAGG;AACH,wBAAgB,UAAU,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,CAAC,CAKzC"}
@@ -1,6 +1,6 @@
1
- import { type ForegroundServiceConfig } from "./ForegroundServiceConfig";
2
- import { type UiState } from "./UIState";
1
+ import type { ViewModel } from '../sdk/LiveVoiceState';
3
2
  type LogFields = Record<string, string | number | boolean | null | undefined>;
3
+ /** The console tags of development builds. They are not entries of the SDK log. */
4
4
  export declare const LiveVoiceLogEvent: {
5
5
  readonly init: "LV_INIT";
6
6
  readonly joinRequest: "LV_JOIN_REQUEST";
@@ -8,16 +8,26 @@ export declare const LiveVoiceLogEvent: {
8
8
  readonly reconnectRequest: "LV_RECONNECT_REQUEST";
9
9
  readonly uiState: "LV_UI_STATE";
10
10
  readonly audioOutputSet: "LV_AUDIO_OUTPUT_SET";
11
- readonly audioOutputChanged: "LV_AUDIO_OUTPUT_CHANGED";
12
- readonly channelStart: "LV_CHANNEL_START";
11
+ readonly nowPlayingArtworkSet: "LV_NOW_PLAYING_ARTWORK_SET";
13
12
  readonly channelStop: "LV_CHANNEL_STOP";
14
13
  readonly subtitlesStart: "LV_SUBTITLES_START";
15
14
  readonly subtitlesStop: "LV_SUBTITLES_STOP";
16
15
  readonly openWebsite: "LV_OPEN_WEBSITE";
17
16
  };
17
+ /** The entries the wrapper writes into the SDK log itself (bridge.md 3.6). */
18
+ export type WrapperLogEvent = 'LV_COMMAND_ERROR' | 'LV_USAGE_ERROR' | 'LV_CUSTOM_UI_DENIED' | 'LV_PASSWORD_PROMPT' | 'LV_BRIDGE_DECODE_ERROR';
19
+ /** A console line in development builds; nothing otherwise. */
18
20
  export declare function logInfo(event: string, fields?: LogFields): void;
19
- export declare function logUiState(state: UiState): void;
20
- export declare function logAudioOutputChanged(useSpeaker: boolean): void;
21
- export declare function describeForegroundServiceConfig(serviceConfig: ForegroundServiceConfig): string;
21
+ /** A host callback threw: reported on the console in development builds only, never in the log. */
22
+ export declare function logListenerError(event: string, error: unknown): void;
23
+ export declare function logViewState(model: ViewModel): void;
24
+ /**
25
+ * Writes one of the wrapper's own entries into the SDK log, where it reaches the system log and
26
+ * the log listeners like a native entry. Fields without a value are left out. Callers never pass
27
+ * a credential.
28
+ */
29
+ export declare function writeLogEntry(event: WrapperLogEvent, level: 'info' | 'error', fields: Record<string, string | undefined>): void;
30
+ /** Native sent something the wrapper cannot read: a bug, since the versions match exactly. */
31
+ export declare function logDecodeError(what: 'reply' | 'state' | 'callback', name: string): void;
22
32
  export {};
23
33
  //# sourceMappingURL=logger.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../../../src/util/logger.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACzE,OAAO,EAAE,KAAK,OAAO,EAAmB,MAAM,WAAW,CAAC;AAE1D,KAAK,SAAS,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,GAAG,SAAS,CAAC,CAAC;AAE9E,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;CAapB,CAAC;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OAAO,GAAG,OAAO,GAAG,UAAU,EAAE,IAAI,EAAE,MAAM,GAAG,IAAI,CAEvF"}
@@ -12,6 +12,7 @@
12
12
  #===----------------------------------------------------------------------===#
13
13
 
14
14
  require "json"
15
+ require_relative "ios/livevoice_spm_backport"
15
16
 
16
17
  package = JSON.parse(File.read(File.join(__dir__, "package.json")))
17
18
 
@@ -24,13 +25,37 @@ Pod::Spec.new do |s|
24
25
  s.authors = package["author"]
25
26
 
26
27
  s.platforms = { :ios => min_ios_version_supported }
27
- s.source = { :git => "#{package["repository"]}", :tag => "#{s.version}" }
28
+ # Autolinking reads this podspec from node_modules, so the source is never
29
+ # fetched; CocoaPods still needs one. It names the published npm package.
30
+ s.source = { :http => "https://registry.npmjs.org/livevoice-sdk-react-native/-/livevoice-sdk-react-native-#{s.version}.tgz" }
28
31
 
29
32
  s.source_files = "ios/**/*.{h,m,mm,swift,cpp}"
30
33
  s.exclude_files = "ios/generated/**/*"
31
-
32
- # The native LiveVoice SDK.
33
- s.dependency "LiveVoiceSDK", '2.0.2'
34
+ # The TurboModule's headers are internal to the pod; apps import nothing
35
+ # from it.
36
+ s.private_header_files = "ios/**/*.h"
37
+
38
+ # The native LiveVoice SDK, from its Swift package. The version is exact:
39
+ # each wrapper release pins the native SDK it was tested with.
40
+ # LIVEVOICE_SDK_SWIFT_URL replaces the package's URL, to test a build of
41
+ # the native SDK that is not published yet.
42
+ native_url = ENV.fetch("LIVEVOICE_SDK_SWIFT_URL", "https://github.com/LiveVoiceOfficial/livevoice-sdk-swift.git")
43
+ native_requirement = { kind: "exactVersion", version: "3.0.0" }
44
+ # The LiveVoiceSDK product brings both dynamic frameworks.
45
+ native_frameworks = ["LiveVoiceSDK", "WebRTC"]
46
+ if LiveVoiceSPMBackport.native_support?
47
+ spm_dependency(s, url: native_url, requirement: native_requirement,
48
+ products: ["LiveVoiceSDK"], embed_frameworks: native_frameworks)
49
+ else
50
+ spm_dependency(s, url: native_url, requirement: native_requirement,
51
+ products: ["LiveVoiceSDK"])
52
+ LiveVoiceSPMBackport.install(
53
+ pod_name: s.name,
54
+ frameworks: native_frameworks,
55
+ requirement_comment: "#{native_url} #{native_requirement}"
56
+ )
57
+ end
58
+ s.swift_version = "5.9"
34
59
 
35
60
 
36
61
  install_modules_dependencies(s)