@robono/messaging-react-native 0.19.0 → 0.20.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 +17 -15
- package/CHANGELOG.md +4 -0
- package/SBOM.spdx.json +12 -12
- package/package.json +2 -2
package/BRIDGE-MESSENGER.md
CHANGED
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
Bridge language integration — November 9, 2026. This guide covers the package versions below.
|
|
4
4
|
|
|
5
|
-
Required versions: `@robono/messaging` **0.
|
|
5
|
+
Required versions: `@robono/messaging` **0.15.0**, `@robono/server` **0.34.0**, and `@robono/messaging-react-native` **0.20.0** (Expo) or `@robono/messaging-web` **0.19.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.34.0`
|
|
8
8
|
|
|
9
|
-
Expo: `npm install @robono/messaging@0.
|
|
9
|
+
Expo: `npm install @robono/messaging@0.15.0 @robono/messaging-react-native@0.20.0 @robono/location@0.4.1`
|
|
10
10
|
|
|
11
|
-
Web: `npm install @robono/messaging@0.
|
|
11
|
+
Web: `npm install @robono/messaging@0.15.0 @robono/messaging-web@0.19.0 @robono/location@0.4.1`
|
|
12
12
|
|
|
13
13
|
The Expo integration uses the existing supported Expo 55/56 native dependencies. This connector adds no new native dependency. Keep the host's existing supported peers and native configuration. 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
|
|
|
@@ -67,15 +67,15 @@ The same standard Expo and web screens offer:
|
|
|
67
67
|
|
|
68
68
|
| Original message | Available result |
|
|
69
69
|
| --- | --- |
|
|
70
|
-
| Text | Translated text |
|
|
71
|
-
| Voice message | Written transcript; translated text |
|
|
72
|
-
| Video with speech | Written transcript; translated text |
|
|
70
|
+
| Text | Translated text or spoken translation |
|
|
71
|
+
| Voice message | Written transcript; translated text or spoken translation |
|
|
72
|
+
| Video with speech | Written transcript; translated text or spoken translation |
|
|
73
73
|
|
|
74
|
-
|
|
74
|
+
Spoken translation reads the translated words aloud in the standard Messenger voice player. It does not dub a video or burn subtitles into it. The original recording/video remains available through **Show original**. Recordings and videos must be at most 20 MB and one hour; a silent video has no speech to transcribe. Spoken output supports up to 4,000 translated characters per message; longer results remain available as text and no speech-generation charge is authorized.
|
|
75
75
|
|
|
76
|
-
Enable **Transcription** and/or **Translation** in the existing website feature choices. Friend permissions still apply: `speech.stt.allowed` permits speech processing, `speech.stt.deliver_transcript` permits showing its transcript, and `speech.translation.allowed` plus `deliver_translated_text` permit translated text. Translating voice/video also requires speech processing. The website cannot override a friend restriction. Supply the friend's known language through `contact.language` or let the person choose it in Translation settings. The destination language
|
|
76
|
+
Enable **Transcription** and/or **Translation** in the existing website feature choices. Friend permissions still apply: `speech.stt.allowed` permits speech processing, `speech.stt.deliver_transcript` permits showing its transcript, and `speech.translation.allowed` plus `deliver_translated_text` permit translated text. Translating voice/video also requires speech processing. The website cannot override a friend restriction. Supply the friend's known language through `contact.language` or let the person choose it in Translation settings. The destination language and text/voice choice are saved per friend. To offer voice output, also enable **Spoken translations** in appearance settings. The friend must permit `speech.tts.allowed` and `speech.translation.deliver_translated_audio` as well as translated text. Network restrictions and a host’s `languageTools.voiceOutput: false` still take precedence.
|
|
77
77
|
|
|
78
|
-
The factories now connect these operations automatically. Keep using `createExpoBridgeMessenger` / `createWebBridgeMessenger` and the supplied screen; no custom translation UI or transport is needed. The underlying public operation is `client.transform(messageId, 'transcript' | 'translation', targetLanguage, 'text', {signal, sourceLanguage})`.
|
|
78
|
+
The factories now connect these operations automatically. Keep using `createExpoBridgeMessenger` / `createWebBridgeMessenger` and the supplied screen; no custom translation UI or transport is needed. The underlying public operation is `client.transform(messageId, 'transcript' | 'translation', targetLanguage, 'text' | 'voice', {signal, sourceLanguage})`.
|
|
79
79
|
|
|
80
80
|
### Approve costs on the customer's server
|
|
81
81
|
|
|
@@ -99,14 +99,16 @@ const route = createBridgeMessengerBackendAdapter({
|
|
|
99
99
|
|
|
100
100
|
`approveLanguageBudget` is the customer's own policy function, not a Robono export. Do not copy a callback that always returns `true` unless unrestricted spending is the intended policy. Resolve per-user spending rules on the server; device-supplied prices and approval tokens are ignored.
|
|
101
101
|
|
|
102
|
-
A voice/video translation has two approvals:
|
|
102
|
+
A voice/video translation has two approvals for text output and a third for voice output:
|
|
103
103
|
|
|
104
104
|
1. Robono reads the real recording duration without transcribing it. The callback approves **transcription** for that duration.
|
|
105
105
|
2. After the transcript is saved, Robono quotes **translation** for the exact input character count. The callback approves that amount before translation begins.
|
|
106
106
|
|
|
107
|
-
|
|
107
|
+
3. For voice output, Robono quotes **speech** for the exact translated character count before generating the recording. Text-message spoken translation uses only steps 2 and 3.
|
|
108
108
|
|
|
109
|
-
|
|
109
|
+
This avoids guessing either text length. If a later step is declined or cancelled, earlier completed processing remains saved and can still be charged. A retry reuses those results. Saved results require fresh permissions but no new processing approval or processing charge. Changes to the original message or source-language choice produce a new result rather than reusing the wrong one.
|
|
110
|
+
|
|
111
|
+
Use `quote.maximumChargeMicros` to approve the maximum for that stage; divide by 1,000,000 for dollars. It is a ceiling before applicable included usage/discounts, not a promise that the full amount will be charged. Stages are `transcription`, `translation` and `speech`; their metrics are `transcription_ms`, `translation_character` and `speech_character`. `metric`, `quantity`, `unitAmountMicros` and `unitQuantity` describe the rate. `billingModel` distinguishes `measured_usage`, legacy `fixed_unit`, `complimentary` and `sandbox`. Do not assume every plan has a fixed per-message price.
|
|
110
112
|
|
|
111
113
|
### Identify the actual current plan
|
|
112
114
|
|
|
@@ -116,10 +118,10 @@ The quote returned for each request is authoritative. Robono rechecks the plan,
|
|
|
116
118
|
|
|
117
119
|
### Cancellation and retained results
|
|
118
120
|
|
|
119
|
-
The standard bubble shows **Cancel** while processing. Custom hosts may pass an `AbortSignal` to `client.transform`. Cancellation stops subsequent stages and prevents a late result from appearing. It cannot undo a stage that already completed. Results stay attached to the original retained Bridge message; they do not create another conversation or another message. Deleting, expiring or denying access to the original also prevents reading its saved result.
|
|
121
|
+
The standard bubble shows **Cancel** while processing. Custom hosts may pass an `AbortSignal` to `client.transform`. Cancellation stops subsequent stages and prevents a late result from appearing. It cannot undo a stage that already completed. Results stay attached to the original retained Bridge message; they do not create another conversation or another message. Deleting, expiring or denying access to the original also prevents reading its saved result. Saved audio uses a short-lived playback link. Reopening it checks access and issues a fresh link without generating or charging for speech again; normal media delivery charges still follow the customer’s plan. Audio does not outlive the source message’s retention period.
|
|
120
122
|
|
|
121
123
|
## Release requirements
|
|
122
124
|
|
|
123
|
-
Release together: migrations `20261108040000_standard_bridge_messenger.sql`
|
|
125
|
+
Release together: migrations `20261108040000_standard_bridge_messenger.sql` , `20261108060000_bridge_language_authorization.sql` and `20261109010000_bridge_spoken_translation.sql`, functions `external-app-bridge-messenger` and `external-app-usage`, and the speech worker duration endpoint, API router `/v1/bridge/messenger`, and core/server/Expo/web packages. Verify deployment before publishing supported install versions. Website/API uploads remain owner-operated.
|
|
124
126
|
|
|
125
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.
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
## 0.18.0
|
|
2
2
|
|
|
3
|
+
## 0.20.0
|
|
4
|
+
|
|
5
|
+
- Existing Bridge conversations support spoken translations of text, voice messages and video speech through the standard Messenger. Each new processing stage requires server cost approval; saved audio retains permission and expiry checks.
|
|
6
|
+
|
|
3
7
|
Adds the standard Expo Bridge connector, original-message read receipts, retained history and shared attachment handling.
|
|
4
8
|
|
|
5
9
|
## Unreleased
|
package/SBOM.spdx.json
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
"spdxVersion": "SPDX-2.3",
|
|
3
3
|
"dataLicense": "CC0-1.0",
|
|
4
4
|
"SPDXID": "SPDXRef-DOCUMENT",
|
|
5
|
-
"name": "@robono/messaging-react-native@0.
|
|
6
|
-
"documentNamespace": "https://robono.com/sbom/messaging-react-native/0.
|
|
5
|
+
"name": "@robono/messaging-react-native@0.20.0",
|
|
6
|
+
"documentNamespace": "https://robono.com/sbom/messaging-react-native/0.20.0/a61e0fc855b40176420daec8025eaf2885f9bd22",
|
|
7
7
|
"creationInfo": {
|
|
8
|
-
"created": "2026-11-
|
|
8
|
+
"created": "2026-11-09T06:07:50.921Z",
|
|
9
9
|
"creators": [
|
|
10
10
|
"Organization: Robono (support@robono.com)"
|
|
11
11
|
]
|
|
@@ -14,11 +14,11 @@
|
|
|
14
14
|
{
|
|
15
15
|
"name": "@robono/messaging-react-native",
|
|
16
16
|
"SPDXID": "SPDXRef-Package",
|
|
17
|
-
"versionInfo": "0.
|
|
17
|
+
"versionInfo": "0.20.0",
|
|
18
18
|
"downloadLocation": "NOASSERTION",
|
|
19
19
|
"filesAnalyzed": true,
|
|
20
20
|
"packageVerificationCode": {
|
|
21
|
-
"packageVerificationCodeValue": "
|
|
21
|
+
"packageVerificationCodeValue": "a61e0fc855b40176420daec8025eaf2885f9bd22"
|
|
22
22
|
},
|
|
23
23
|
"licenseConcluded": "LicenseRef-RobonoSDK",
|
|
24
24
|
"licenseDeclared": "LicenseRef-RobonoSDK",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"LicenseRef-RobonoSDK"
|
|
27
27
|
],
|
|
28
28
|
"copyrightText": "Copyright (c) 2026 Add to Loop LLC.",
|
|
29
|
-
"comment": "Host-supplied peers (not bundled): {\"@robono/messaging\":\"^0.
|
|
29
|
+
"comment": "Host-supplied peers (not bundled): {\"@robono/messaging\":\"^0.15.0\",\"react\":\">=18.2 <20\",\"react-native\":\">=0.76 <1\",\"expo-audio\":\">=55 <57\",\"expo-image-picker\":\">=55 <57\",\"expo-document-picker\":\">=55 <57\",\"expo-file-system\":\">=55.0.5 <57\",\"expo-sharing\":\">=55 <57\",\"expo-video\":\">=55 <57\",\"expo-crypto\":\">=55 <57\",\"react-native-safe-area-context\":\">=5 <6\",\"react-native-svg\":\">=15 <16\",\"@robono/calling-react-native\":\"^0.9.3\",\"expo-clipboard\":\">=8 <57\",\"expo-image-manipulator\":\">=14 <57\",\"expo-video-thumbnails\":\">=14 <57\",\"react-native-webview\":\">=13 <14\",\"expo-blur\":\">=55 <57\",\"expo-notifications\":\">=55 <57\",\"expo-secure-store\":\">=55 <57\",\"@robono/location-react-native\":\"^0.4.1\",\"expo-location\":\">=55 <57\",\"expo-constants\":\">=55 <57\",\"@robono/location\":\"^0.4.1\",\"expo-haptics\":\">=55 <57\",\"@robono/calling\":\"^0.6.2\",\"expo-media-library\":\">=55 <57\"}"
|
|
30
30
|
}
|
|
31
31
|
],
|
|
32
32
|
"files": [
|
|
@@ -36,11 +36,11 @@
|
|
|
36
36
|
"checksums": [
|
|
37
37
|
{
|
|
38
38
|
"algorithm": "SHA256",
|
|
39
|
-
"checksumValue": "
|
|
39
|
+
"checksumValue": "a3b88b9e419af1002ae5b58c0078df79f1fb2d4e4f7d5934c79673f7cac48c8f"
|
|
40
40
|
},
|
|
41
41
|
{
|
|
42
42
|
"algorithm": "SHA1",
|
|
43
|
-
"checksumValue": "
|
|
43
|
+
"checksumValue": "51f781789ff11bb032a46da289d9f6eb00b1677c"
|
|
44
44
|
}
|
|
45
45
|
],
|
|
46
46
|
"licenseConcluded": "LicenseRef-RobonoSDK",
|
|
@@ -55,11 +55,11 @@
|
|
|
55
55
|
"checksums": [
|
|
56
56
|
{
|
|
57
57
|
"algorithm": "SHA256",
|
|
58
|
-
"checksumValue": "
|
|
58
|
+
"checksumValue": "ec9ba9cac621c90b8c8e7a19ed4f03a582fdda43a5173ebdd0b159584fa1f00d"
|
|
59
59
|
},
|
|
60
60
|
{
|
|
61
61
|
"algorithm": "SHA1",
|
|
62
|
-
"checksumValue": "
|
|
62
|
+
"checksumValue": "77096aea33f08af50256327bf6154ce36220ba1f"
|
|
63
63
|
}
|
|
64
64
|
],
|
|
65
65
|
"licenseConcluded": "LicenseRef-RobonoSDK",
|
|
@@ -3494,11 +3494,11 @@
|
|
|
3494
3494
|
"checksums": [
|
|
3495
3495
|
{
|
|
3496
3496
|
"algorithm": "SHA256",
|
|
3497
|
-
"checksumValue": "
|
|
3497
|
+
"checksumValue": "e9eba1648260083fe7d1d51ab904926bf6d33c89f1c0aaf35bb8ee3cb9f8af15"
|
|
3498
3498
|
},
|
|
3499
3499
|
{
|
|
3500
3500
|
"algorithm": "SHA1",
|
|
3501
|
-
"checksumValue": "
|
|
3501
|
+
"checksumValue": "4aecd0aca3c5ccdd32e087e3cda2716935143ca9"
|
|
3502
3502
|
}
|
|
3503
3503
|
],
|
|
3504
3504
|
"licenseConcluded": "LicenseRef-RobonoSDK",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@robono/messaging-react-native",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.20.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"description": "Optional, composable direct and group messaging screens for Robono.",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"prepack": "npm run build && node ../../scripts/generate-sdk-file-sbom.mjs"
|
|
58
58
|
},
|
|
59
59
|
"peerDependencies": {
|
|
60
|
-
"@robono/messaging": "^0.
|
|
60
|
+
"@robono/messaging": "^0.15.0",
|
|
61
61
|
"react": ">=18.2 <20",
|
|
62
62
|
"react-native": ">=0.76 <1",
|
|
63
63
|
"expo-audio": ">=55 <57",
|