@robono/messaging-react-native 0.22.0 → 0.23.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.
- package/BRIDGE-MESSENGER.md +72 -10
- package/CHANGELOG.md +6 -0
- package/SBOM.spdx.json +148 -100
- package/dist/chat-options.d.ts +5 -1
- package/dist/chat-options.js +2 -2
- package/dist/contact-directory.d.ts +2 -0
- package/dist/contact-directory.js +9 -1
- package/dist/expo-bridge.d.ts +6 -0
- package/dist/expo-bridge.js +13 -2
- package/dist/expo-notification-cleanup.js +3 -3
- package/dist/expo-notifications.js +7 -3
- package/dist/expo-screen.d.ts +3 -0
- package/dist/expo-screen.js +31 -22
- package/dist/index.js +1 -1
- package/dist/media-readiness.d.ts +2 -0
- package/dist/media-readiness.js +1 -0
- package/dist/playback-reporting.d.ts +8 -0
- package/dist/playback-reporting.js +32 -0
- package/package.json +9 -5
package/BRIDGE-MESSENGER.md
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
# Existing Bridge friends in the standard Messenger
|
|
2
2
|
|
|
3
|
-
Bridge
|
|
3
|
+
Shared Bridge Messenger — November 10, 2026. This guide covers the coordinated release versions below.
|
|
4
4
|
|
|
5
|
-
Required versions: `@robono/messaging` **0.
|
|
5
|
+
Required versions: `@robono/messaging` **0.17.0**, `@robono/server` **0.38.0**, and `@robono/messaging-react-native` **0.23.0** (Expo) or `@robono/messaging-web` **0.21.0** (web). Use `@robono/location` **0.4.1** for the screen package's shared appearance helpers; this does not enable Maps or location access.
|
|
6
6
|
|
|
7
|
-
Server: `npm install @robono/server@0.
|
|
7
|
+
Server: `npm install @robono/server@0.38.0`
|
|
8
8
|
|
|
9
|
-
Expo: `npm install @robono/messaging@0.
|
|
9
|
+
Expo: `npm install @robono/messaging@0.17.0 @robono/messaging-react-native@0.23.0 @robono/location@0.4.1`
|
|
10
10
|
|
|
11
|
-
Web: `npm install @robono/messaging@0.
|
|
11
|
+
Web: `npm install @robono/messaging@0.17.0 @robono/messaging-web@0.21.0 @robono/location@0.4.1`
|
|
12
12
|
|
|
13
|
-
The Expo integration uses the existing supported Expo 55/56 native dependencies.
|
|
13
|
+
The Expo integration uses the existing supported Expo 55/56 native dependencies. For managed background notification cleanup, install `expo-task-manager` with `npx expo install expo-task-manager`, keep the Robono notifications plugin, and rebuild if it is not already present. Bridge-only integrations retaining host-created notifications keep their existing push responsibilities. The service endpoint is `https://api.robono.com/v1/bridge/messenger`; a 404 there means the service route is not deployed yet, not that a replacement friend must be created.
|
|
14
14
|
|
|
15
15
|
## What the connector connects
|
|
16
16
|
|
|
@@ -59,7 +59,7 @@ The durable wake covers message creation/change/deletion, receipt changes and co
|
|
|
59
59
|
|
|
60
60
|
`conversationMode="walkie-talkie"` changes presentation, not retention. It does not repost recordings. Bridge history rules remain authoritative; previously expired or retired messages cannot be restored by switching back to full chat.
|
|
61
61
|
|
|
62
|
-
|
|
62
|
+
Bridge reactions, threaded replies, polls, groups and scheduled sends remain unavailable in these direct Bridge chats. Delivery/read/heard receipts retain their existing meanings; a heard receipt does not claim complete playback. Basic foreground online status, authorized phrase analysis and detailed playback reports use the explicit host callbacks and configuration described under “November 10 release: presence and reporting” below; they are not enabled merely by connecting a Bridge chat.
|
|
63
63
|
|
|
64
64
|
## Translation and transcripts
|
|
65
65
|
|
|
@@ -126,8 +126,70 @@ Release together: migrations `20261108040000_standard_bridge_messenger.sql` , `2
|
|
|
126
126
|
|
|
127
127
|
Local verification uses synthetic accepted Bridge connections in an isolated service, through the public adapter and standard screens. iPhone and Android checks cover photo, video, document and voice upload/send/download, thumbnails, native voice playback, changing permissions and revoked access. Browser checks cover opening retained history and sending through the standard composer. Service checks cover original IDs, pagination, private access, duplicate prevention after a lost response and recovery after a missed notification. This is not a claim that a new push notification was delivered through Apple's or Google's service in this check.
|
|
128
128
|
|
|
129
|
-
|
|
129
|
+
## Faster chat and media opening
|
|
130
130
|
|
|
131
|
-
|
|
131
|
+
These versions read local outgoing drafts alongside the authorized history request, skip draft-storage searches for remote attachments, and pause speculative media transfers while the viewer is open. Bridge thumbnails prepare short-lived access to the original media so opening it can avoid another authorization request. Expired access is renewed; explicit Download and Share actions still check permission again.
|
|
132
132
|
|
|
133
|
-
|
|
133
|
+
## Website colors
|
|
134
|
+
|
|
135
|
+
Use the customer network’s Features & Preview settings. Save preserves the draft; Go Live applies it. The standard Messenger uses the applied appearance on its next authorized chat load or refresh. This is not an instant push. Explicit appearance supplied by the host app takes precedence, and changing Robono Messenger’s own appearance does not change another customer’s app.
|
|
136
|
+
|
|
137
|
+
## November 9 compatibility and recovery updates
|
|
138
|
+
|
|
139
|
+
- Headless Bridge client: use `@robono/client@0.6.2`. Request timeouts and cancellation return handled errors on Hermes without requiring `DOMException`. Retried writes retain the same idempotency key.
|
|
140
|
+
- Direct calling: use `@robono/calling@0.6.3`. Pass the complete session returned by `RobonoCallingBackend` from `@robono/server`, including `eventsToken`. If an older adapter drops that field, the client exchanges its valid session for a separate event credential once and reuses it on reconnect. The service update is deployed. Keep per-friend authorization on the server.
|
|
141
|
+
- Expo disk maintenance: `configureExpoMessagingCache` and `maintainExpoMessagingCache` are public exports from `@robono/messaging-react-native/expo`. Configure `maxBytes`, `maxAgeMs` and `minFreeBytes`; call maintenance at startup or account changes. `{clearUnused: true}` clears unused SDK copies while retaining active files and drafts. This does not erase customer files or shared operating-system caches, and protected files can exceed the soft limit.
|
|
142
|
+
|
|
143
|
+
### Checking an interrupted translation's charge
|
|
144
|
+
|
|
145
|
+
In `authorizeCost`, save the supplied `receiptToken` with the reservation before returning true. Keep it on the server. Each transcription, translation or spoken-output stage has its own receipt.
|
|
146
|
+
|
|
147
|
+
```ts
|
|
148
|
+
import {getBridgeLanguageReceipt} from '@robono/server';
|
|
149
|
+
const receipt = await getBridgeLanguageReceipt({
|
|
150
|
+
apiKey: process.env.ROBONO_API_KEY!,
|
|
151
|
+
actorId: reservation.actorId,
|
|
152
|
+
receiptToken: reservation.receiptToken,
|
|
153
|
+
});
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
`completed` means usage was recorded; `saved` indicates whether the result remains stored. `running`, `failed` and `not_started` are not final proof that no charge can occur. Release an uncertain reservation only when `safeToReleaseReservation` is true. A failed receipt lookup or cancelled HTTP request does not authorize releasing it. Receipts expose processing metadata only, never translated text or audio. Ordinary permission checks still apply when retrieving content.
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
## November 10 release: presence and reporting
|
|
160
|
+
|
|
161
|
+
Release versions: `@robono/server@0.38.0`, `@robono/messaging@0.17.0`, `@robono/messaging-react-native@0.23.0`, `@robono/messaging-web@0.21.0`, `@robono/calling@0.7.0` and `@robono/calling-react-native@0.11.0`. Existing Bridge identity, permissions, receipts and history remain authoritative.
|
|
162
|
+
|
|
163
|
+
### Basic foreground online status
|
|
164
|
+
|
|
165
|
+
The standard chat header now displays authorized basic online status. Each device renews a separate session every 20 seconds; a missing renewal expires within 45 seconds. Closing/backgrounding one device does not clear another foreground device. The shared **Chat options → Hide my online status on all devices** control applies to the account and removes last-seen disclosure as well. Unhiding requires a new foreground update. Typing and private activity details are not exposed by this Bridge contract.
|
|
166
|
+
|
|
167
|
+
Supply `authorizePresence` on `createBridgeMessengerBackendAdapter`. Return `{visibleUntil}` only while the authenticated actor may disclose foreground status; cap that time at the next schedule/permission boundary. An absent callback advertises nothing, and device input cannot choose its own authorization deadline. Ordinary `authorize` still checks every read/update and the response after a held wait. Provider revocation, blocking, suspension and deleted-account checks also apply.
|
|
168
|
+
|
|
169
|
+
For activity outside an open chat, keep one `createBridgePresenceSession` at the signed-in app root, or pass `foregroundPresence:true` to the Expo/web Bridge factory and retain that connection at the app root. Expo AppState and browser visibility start/stop it. Dispose/sign out with the account. The chat wait uses durable revisions and wake hints; heartbeat traffic does not require a second rapid polling loop. Original Robono app builds that do not publish shared Messenger foreground activity remain offline rather than having status inferred from unrelated requests.
|
|
170
|
+
|
|
171
|
+
The shared directory accepts `onlineUntil` on an authorized `MessagingDirectoryContact`. Convert server deadlines to the current device clock as the SDK presence snapshot does, refresh from authorized data, and clear on revocation. The shared row expires its dot locally and never shows it on an unavailable contact. Existing within-network availability remains supported.
|
|
172
|
+
|
|
173
|
+
### Playback events without replacing the player
|
|
174
|
+
|
|
175
|
+
Pass `onPlaybackEvent` to `ExpoMessagingScreen`, `ExpoMessenger`, `WebMessagingScreen`, or the complete web mount options. The supplied audio/video players emit `started`, `paused`, throttled `progress`, `ended`, `completed` and `closed`. Events contain a stable message/conversation ID, actor ID, session ID, event ID, sequence, occurrence time, position, duration, measured played time and foreground-view state. No URL or media bytes enter a report.
|
|
176
|
+
|
|
177
|
+
A preview load is not playback. Seeking does not count skipped content. `completed` requires an actual end and at least 95% measured playback coverage in that session. This is a device observation, not proof of attention, comprehension, identity of the person holding the device, or a new interpretation of read/heard receipts.
|
|
178
|
+
|
|
179
|
+
For managed retention and replay, mount the exported `createPlaybackReportingHandler` with existing `authenticate` and current `authorize` callbacks. Connect `onPlaybackEvent` to `createMessagingPlaybackReporter(...).record`. Supply private persistent storage scoped to integration + user, plus the authenticated endpoint/token callback. The bounded 500-event queue retries, deduplicates stable event IDs and removes events after server acceptance or a permanent validation/permission rejection surfaced through `onError("reporting_rejected")`. A rejected old message cannot block reports for later messages. Handle `onError`; an exhausted queue is not evidence of no activity. Sign-out clears that account's pending queue. A report from a previous account is rejected rather than attributed to the new login.
|
|
180
|
+
|
|
181
|
+
`RobonoPlaybackReportingBackend.events(actorId, cursor, limit)` replays accepted reports for 30 days; persist its cursor and deduplicate event IDs. `erase(actorId)` removes the stored reports. Signed `messaging.playback.changed` webhook hints are queued on end/close, with bounded delivery retries; use replay after a missed hint. This is opt-in reporting, not automatic collection from apps that have not connected the reporter. Activity while the app is closed cannot be inferred from a delivery receipt. Existing Bridge read/heard webhooks continue to cover source receipts independently of whether the host recipient app is open.
|
|
182
|
+
|
|
183
|
+
### Authorized phrase analysis
|
|
184
|
+
|
|
185
|
+
Configure a per-user policy through server-only `RobonoAudioAnalysisBackend.configure(actorId, generation, policy)`. A policy contains a new word-list `revision`, transcription `language`, up to 100 phrases and 1–30 days of result retention. Read its current generation before changing it; use `null` to disable. Configuration alone starts no monitoring, recording, transcription or charge. Use only languages available in the installation's existing transcription catalog; the policy language is supplied to recognition rather than inferred from the user's identity. This release's real-speech acceptance fixture is English; other language quality is not claimed by that check.
|
|
186
|
+
|
|
187
|
+
For an original Bridge voice message, add `authorizePhraseAnalysis` to the existing server adapter. It receives the server-selected policy; approve only after current participant notice/authorization and parental rules are satisfied. Call `client.analyzeVoiceMessage(messageId)` explicitly. The existing `authorizeCost` callback approves any new transcription quote, including zero-cost test work. A phone cannot provide its own word list or bypass that approval. Matching itself introduces no extra billing metric; normal approved transcription pricing applies.
|
|
188
|
+
|
|
189
|
+
For live voice/video calls, this release adds phrase analysis to explicitly consented managed recording with captions. It is not hidden or automatic monitoring, and it does not enable recording for existing customers. Configure the existing recording/transcription features, then select **Check configured words and phrases** when requesting recording. Every participant must accept the phrase-analysis notice; an older client that cannot acknowledge the notice is blocked from approving it. Permission or policy changes stop the session. The requesting network's normal recording/transcription budget and retention rules apply; this path retains the consented recording/transcript as well as the separate match results.
|
|
190
|
+
|
|
191
|
+
Results distinguish `running`, `completed`, `partial` and `unavailable`. A completed empty match list differs from a failed analysis. They include source/call/message identity, word-list revision, language, matched phrase and approximate segment time. Isolated call tracks provide participant-index attribution; this identifies an audio track, not a verified human speaker. Voice-message results have no invented speaker identity. Matching recognizes normalized words across adjacent chunks on the same track, with no cross-speaker joining or substring match such as “danger” inside “dangerous.” Automatic recognition can miss or misrecognize speech.
|
|
192
|
+
|
|
193
|
+
Signed `audio.analysis.changed` hints carry result identifiers, not transcript/matched content. Retrieve authorized results with `RobonoAudioAnalysisBackend.results(actorId, {cursor,limit})`; store the cursor and deduplicate result ID + revision. Durable replay repairs missed webhook delivery. `remove(actorId,id)` removes matched content and leaves a deletion marker so a late retry cannot restore it. Removing a recording also makes its analysis unavailable; removing analysis alone does not delete a separately retained source recording. Results expire under the selected retention. The app's backend remains responsible for who may read a child's report.
|
|
194
|
+
|
|
195
|
+
Use the batch release report for exact native/browser/service coverage and deployed status. Phone integrations need a new native build if `expo-application` is not already installed.
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## 0.23.0 — 2026-11-10
|
|
4
|
+
|
|
5
|
+
Add signed device Apple environment registration, shared playback callbacks, Bridge presence/privacy and foreground lifecycle integration.
|
|
6
|
+
|
|
1
7
|
## 0.20.3
|
|
2
8
|
|
|
3
9
|
- Reuse short-lived original-media access returned with Bridge thumbnails to avoid another playback authorization request. Explicit exports still reauthorize; expired or mismatched grants are rejected.
|