@robono/server 0.25.0 → 0.27.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/CHANGELOG.md +8 -0
- package/HISTORY-IMPORT.md +117 -5
- package/INTEGRATION-ASSISTANT.md +103 -0
- package/README.md +16 -0
- package/SBOM.spdx.json +9 -9
- package/dist/calling.d.ts +30 -0
- package/dist/calling.d.ts.map +1 -1
- package/dist/calling.js +13 -0
- package/dist/calling.js.map +1 -1
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +2 -1
- package/dist/client.js.map +1 -1
- package/dist/generated/custom-messages.d.ts +31 -0
- package/dist/generated/custom-messages.d.ts.map +1 -0
- package/dist/generated/custom-messages.js +84 -0
- package/dist/generated/custom-messages.js.map +1 -0
- package/dist/generated/history-import-interactions.d.ts +17 -0
- package/dist/generated/history-import-interactions.d.ts.map +1 -0
- package/dist/generated/history-import-interactions.js +40 -0
- package/dist/generated/history-import-interactions.js.map +1 -0
- package/dist/generated/interactions.d.ts +199 -0
- package/dist/generated/interactions.d.ts.map +1 -0
- package/dist/generated/interactions.js +89 -0
- package/dist/generated/interactions.js.map +1 -0
- package/dist/generated/sdk-versions.d.ts +13 -0
- package/dist/generated/sdk-versions.d.ts.map +1 -0
- package/dist/generated/sdk-versions.js +4 -0
- package/dist/generated/sdk-versions.js.map +1 -0
- package/dist/history-convert.d.ts +52 -0
- package/dist/history-convert.d.ts.map +1 -0
- package/dist/history-convert.js +276 -0
- package/dist/history-convert.js.map +1 -0
- package/dist/history-export-cli.d.ts +4 -0
- package/dist/history-export-cli.d.ts.map +1 -0
- package/dist/history-export-cli.js +166 -0
- package/dist/history-export-cli.js.map +1 -0
- package/dist/history-export-files.d.ts +39 -0
- package/dist/history-export-files.d.ts.map +1 -0
- package/dist/history-export-files.js +119 -0
- package/dist/history-export-files.js.map +1 -0
- package/dist/history-export.d.ts +92 -0
- package/dist/history-export.d.ts.map +1 -0
- package/dist/history-export.js +78 -0
- package/dist/history-export.js.map +1 -0
- package/dist/history-import-cli.d.ts +1 -7
- package/dist/history-import-cli.d.ts.map +1 -1
- package/dist/history-import-cli.js +4 -33
- package/dist/history-import-cli.js.map +1 -1
- package/dist/history-import-validation.d.ts +8 -0
- package/dist/history-import-validation.d.ts.map +1 -0
- package/dist/history-import-validation.js +85 -0
- package/dist/history-import-validation.js.map +1 -0
- package/dist/history-import.d.ts +10 -1
- package/dist/history-import.d.ts.map +1 -1
- package/dist/history-import.js +27 -6
- package/dist/history-import.js.map +1 -1
- package/dist/history-migrate-cli.d.ts +3 -0
- package/dist/history-migrate-cli.d.ts.map +1 -0
- package/dist/history-migrate-cli.js +260 -0
- package/dist/history-migrate-cli.js.map +1 -0
- package/dist/history-polls.d.ts +4 -0
- package/dist/history-polls.d.ts.map +1 -0
- package/dist/history-polls.js +66 -0
- package/dist/history-polls.js.map +1 -0
- package/dist/index.d.ts +7 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/integration-assistant.txt +103 -0
- package/dist/messaging-notification-providers.d.ts +2 -3
- package/dist/messaging-notification-providers.d.ts.map +1 -1
- package/dist/messaging-notification-providers.js.map +1 -1
- package/dist/messaging.d.ts +5 -0
- package/dist/messaging.d.ts.map +1 -1
- package/dist/messaging.js +11 -2
- package/dist/messaging.js.map +1 -1
- package/dist/messenger-example-cli.d.ts +3 -0
- package/dist/messenger-example-cli.d.ts.map +1 -0
- package/dist/messenger-example-cli.js +47 -0
- package/dist/messenger-example-cli.js.map +1 -0
- package/dist/messenger-example.d.ts +9 -0
- package/dist/messenger-example.d.ts.map +1 -0
- package/dist/messenger-example.js +42 -0
- package/dist/messenger-example.js.map +1 -0
- package/dist/messenger-example.json +1 -0
- package/dist/messenger-hosted-install.d.ts.map +1 -1
- package/dist/messenger-hosted-install.js +4 -2
- package/dist/messenger-hosted-install.js.map +1 -1
- package/dist/messenger-install.d.ts +1 -1
- package/dist/messenger-install.d.ts.map +1 -1
- package/dist/messenger-install.js +5 -4
- package/dist/messenger-install.js.map +1 -1
- package/dist/messenger-preview-template.d.ts.map +1 -1
- package/dist/messenger-preview-template.js +1 -0
- package/dist/messenger-preview-template.js.map +1 -1
- package/package.json +8 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
## 0.26.0 — release candidate
|
|
2
|
+
|
|
3
|
+
## 0.27.0
|
|
4
|
+
|
|
5
|
+
Adds Sendbird/Stream history conversion with resumable private media uploads, reactions, poll votes, threads and pins; adds paged recording history, short-lived downloads and deletion.
|
|
6
|
+
|
|
7
|
+
Add complete runnable examples, maintained assistant instructions, business-message validation, public-group management, app availability and resumable history export including optional private attachment files. Keep installer/example package versions coordinated.
|
|
8
|
+
|
|
1
9
|
## 0.25.0 — release candidate
|
|
2
10
|
|
|
3
11
|
Make Robono-hosted connections the default, add framework installation and sign-in examples, and import historical conversations with validation and retry-safe jobs. Customer-hosted forwarding remains optional.
|
package/HISTORY-IMPORT.md
CHANGED
|
@@ -1,12 +1,102 @@
|
|
|
1
1
|
# Bring existing conversations to Robono
|
|
2
2
|
|
|
3
3
|
Use this server-only tool before opening the destination conversation to users.
|
|
4
|
-
It preserves original authors, dates
|
|
4
|
+
It preserves original authors, dates, replies, supported reactions, complete poll
|
|
5
|
+
results, group threads, pins and validated custom message data, and keeps attachment files private.
|
|
5
6
|
It does not send old push notifications, create unread badges, fabricate read
|
|
6
7
|
receipts, or charge old messages as new sends. Storage, transfer and any enabled
|
|
7
8
|
screening still follow your selected plan and spending limits.
|
|
8
9
|
|
|
9
|
-
##
|
|
10
|
+
## Move a Sendbird or Stream export
|
|
11
|
+
|
|
12
|
+
Use the migration command to prepare and review several conversations together.
|
|
13
|
+
Give it the provider's JSON or JSONL export and a small mapping file:
|
|
14
|
+
|
|
15
|
+
```json
|
|
16
|
+
{
|
|
17
|
+
"conversations": {"old-channel-id": "c829bd4f-1f67-4cd1-b285-6502923885b5"},
|
|
18
|
+
"users": {"old-user-1": "alice", "old-user-2": "bob"},
|
|
19
|
+
"reactions": {"love": "❤️"}
|
|
20
|
+
}
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
For Stream, channel keys use `type:id`, such as `messaging:general`. The destination
|
|
24
|
+
IDs are authorized, empty Robono conversations created through your existing server
|
|
25
|
+
connection. When both systems use exactly the same authenticated user IDs, replace
|
|
26
|
+
`users` with `"preserveUserIds": true`. Importing history never grants membership.
|
|
27
|
+
|
|
28
|
+
```sh
|
|
29
|
+
npx --package @robono/server robono-history-migrate --provider sendbird --source export.json --mapping mapping.json --out private-migration
|
|
30
|
+
# Read private-migration/report.json. Resolve any listed issues first.
|
|
31
|
+
# Set ROBONO_API_KEY privately on your server, then:
|
|
32
|
+
npx --package @robono/server robono-history-migrate --apply private-migration
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
Use `--provider stream` for Stream exports. Preparation is local and needs no key.
|
|
36
|
+
The command converts supported records, checks the whole plan before sending,
|
|
37
|
+
uploads prepared attachments and resumes interrupted conversations. Rerun the same
|
|
38
|
+
`--apply` command; keep the prepared folder and its checkpoints unchanged. Completed
|
|
39
|
+
conversations are confirmed with Robono rather than sent again.
|
|
40
|
+
|
|
41
|
+
For attachments, save the original files beside the mapping file and add a mapping
|
|
42
|
+
by channel and original message ID. The command copies them into the private
|
|
43
|
+
migration folder, checks their fingerprints and handles the private upload:
|
|
44
|
+
|
|
45
|
+
```json
|
|
46
|
+
{
|
|
47
|
+
"attachments": {
|
|
48
|
+
"old-channel-id": {
|
|
49
|
+
"old-photo-message": {"path":"files/photo.jpg","mimeType":"image/jpeg"},
|
|
50
|
+
"old-video-message": {"path":"files/video.mp4","mimeType":"video/mp4","durationMs":12000}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
Merge this `attachments` section into your mapping file. Paths are relative to that
|
|
57
|
+
file; links and paths outside its folder are rejected. Do not put file URLs or
|
|
58
|
+
provider keys in the mapping. Each file can be up to 100 MiB, subject to your selected
|
|
59
|
+
attachment rules. A prepared batch can contain up to 512 MiB of files; use separate
|
|
60
|
+
conversation batches for larger archives. The command does not fetch arbitrary
|
|
61
|
+
URLs from message content or reuse old provider credentials.
|
|
62
|
+
|
|
63
|
+
Stream poll and vote records are converted together. For Sendbird, ordinary message
|
|
64
|
+
exports omit poll details: obtain the original definitions and full option voter
|
|
65
|
+
lists through its server API, then supply the definitions under `polls` in the mapping,
|
|
66
|
+
keyed by original poll ID. Include each option's complete `voters` list. A partial
|
|
67
|
+
voter preview is accepted only when its count proves it is the complete list.
|
|
68
|
+
Missing people are never invented from vote totals.
|
|
69
|
+
|
|
70
|
+
The private report identifies unsupported items before applying. These include
|
|
71
|
+
anonymous polls, incomplete voter/reaction lists, unsupported poll rules, missing pin
|
|
72
|
+
authors/dates and non-text custom metadata. Resolve these explicitly; the
|
|
73
|
+
command does not silently discard them. Keep the original export for provenance.
|
|
74
|
+
|
|
75
|
+
## Threads, pins and multiple files
|
|
76
|
+
|
|
77
|
+
A group thread keeps its original root and replies. A quote within a thread must
|
|
78
|
+
refer to its root or another reply in that same thread. Missing or later roots are
|
|
79
|
+
rejected. Thread imports require a group with replies enabled; they do not turn a
|
|
80
|
+
direct chat into a group. Pins keep their mapped author and original date, with the
|
|
81
|
+
same limit of 20 pins per group. The pin author must be supplied by the old export;
|
|
82
|
+
Robono does not guess who pinned a message.
|
|
83
|
+
|
|
84
|
+
For several files in one source message, use an array in its attachment mapping:
|
|
85
|
+
|
|
86
|
+
```json
|
|
87
|
+
{"attachments":{"old-channel-id":{"old-album":[
|
|
88
|
+
{"path":"files/one.jpg","mimeType":"image/jpeg"},
|
|
89
|
+
{"path":"files/two.jpg","mimeType":"image/jpeg"}
|
|
90
|
+
]}}}
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
Robono turns these into consecutive messages by the same author at the original
|
|
94
|
+
time. The first retains the original source ID, caption, reactions and pin. Later
|
|
95
|
+
files receive stable derived IDs; quotes of the original message still target the
|
|
96
|
+
first. This conversion appears in `report.json` before anything is sent. The file
|
|
97
|
+
count must match the export, so a missing mapping never silently drops a file.
|
|
98
|
+
|
|
99
|
+
## Import your own JSON format
|
|
10
100
|
|
|
11
101
|
1. Create the authorized empty conversation using your existing Robono connection.
|
|
12
102
|
Full history must be selected. For direct chats, authors must be the two members.
|
|
@@ -81,7 +171,7 @@ when the imported message is committed and uses your selected storage retention.
|
|
|
81
171
|
|
|
82
172
|
## Limits and recovery
|
|
83
173
|
|
|
84
|
-
- Up to
|
|
174
|
+
- Up to 100,000 messages and 256 MiB of staged content per conversation;
|
|
85
175
|
three active imports per customer. Each HTTP append accepts up to 100 messages;
|
|
86
176
|
the SDK uses smaller batches. Existing nonempty conversations cannot be merged.
|
|
87
177
|
- A job expires after 24 hours. Call `status(jobId)` to check it or `cancel(jobId)`
|
|
@@ -91,7 +181,29 @@ when the imported message is committed and uses your selected storage retention.
|
|
|
91
181
|
seven days; the content-free job result remains for safe retries.
|
|
92
182
|
- User erasure cancels affected unfinished imports and removes their staging
|
|
93
183
|
copies, so an old import cannot restore erased content.
|
|
94
|
-
-
|
|
95
|
-
|
|
184
|
+
- Reactions and poll results can be supplied as `interactions` on each message:
|
|
185
|
+
`reactions: [{userId, emoji}]`, `votes: [{userId, options: [0]}]`, and `closed: true`.
|
|
186
|
+
Option positions start at zero. Include every named person in `authors`, including
|
|
187
|
+
former participants; this does not grant them current access. Each message supports
|
|
188
|
+
up to 2,000 historical reactors/voters. Direct chats support Robono's Yes/No question
|
|
189
|
+
format; other polls belong in groups. No delivered/read receipts are invented.
|
|
190
|
+
- Custom message data is supported after mapping
|
|
191
|
+
it to Robono's versioned `custom` structure with a readable text fallback.
|
|
192
|
+
All data and action labels pass the same size limits and screening as new messages.
|
|
96
193
|
|
|
97
194
|
This is an import into Robono-managed messaging, not a live cross-provider bridge.
|
|
195
|
+
|
|
196
|
+
## Custom cards and customer data
|
|
197
|
+
|
|
198
|
+
A text record may include `custom: {type, version, data}`. The original type, version
|
|
199
|
+
and JSON data are preserved; supplied `robono.card` messages must match the card
|
|
200
|
+
schema. A nonempty `text` fallback is required for search, notifications and clients
|
|
201
|
+
without your renderer. Unknown custom fields outside this structure are rejected,
|
|
202
|
+
not silently discarded. Current word/link and AI screening cover all strings in
|
|
203
|
+
the custom data, including action labels. See the [business message guide](https://robono.com/guides/business-messages.html).
|
|
204
|
+
|
|
205
|
+
For exporting existing Robono data, see the [export guide](https://robono.com/guides/history-export.html).
|
|
206
|
+
|
|
207
|
+
For the JSON API, use `threadRootSourceId` together with `replyToSourceId`, and `interactions.pin: {userId, createdAt}`. Both refer to the explicitly authorized conversation and mapped user IDs.
|
|
208
|
+
|
|
209
|
+
Provider-specific fields on text messages are preserved as custom metadata. Unsupported file/poll metadata and expiring-message behavior block import with a report rather than being silently discarded. Conversion restores the exported current message content, not a provider’s earlier edit revisions or historical read receipts.
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
# Robono integration instructions for coding assistants
|
|
2
|
+
|
|
3
|
+
These instructions describe the supported customer integration. Use the same
|
|
4
|
+
setup with or without an AI assistant. An assistant is optional and never needs
|
|
5
|
+
the customer's Robono private key pasted into a chat.
|
|
6
|
+
|
|
7
|
+
## Choose the supplied path
|
|
8
|
+
|
|
9
|
+
1. Read the application's package.json and existing sign-in, routing and layout.
|
|
10
|
+
Keep its framework and login. Do not add a second authentication system.
|
|
11
|
+
2. Read https://robono.com/guides/hosted-messenger.html and inspect the installed
|
|
12
|
+
package versions. Use their published types; do not guess SDK methods.
|
|
13
|
+
3. In the application directory, review the generated plan:
|
|
14
|
+
|
|
15
|
+
```sh
|
|
16
|
+
npx --package @robono/server robono-messenger-install --project . --origin https://your-company.com --company 'Your company' --dry-run
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
4. Apply that same command without `--dry-run` after reviewing its files. Use
|
|
20
|
+
`--yes` only when authorized to apply that plan. The default uses Robono hosting.
|
|
21
|
+
Do not create a separate messaging server, forwarding service or hosting bill.
|
|
22
|
+
5. Follow `.robono/SETUP.md`. Import the generated `CustomerMessenger` in React or
|
|
23
|
+
Expo. In Vue, Svelte, Angular or plain JavaScript, use the generated framework
|
|
24
|
+
wrapper. Give the web container a height and retain the customer's navigation.
|
|
25
|
+
6. Connect the existing verified login and authorized contact directory. The
|
|
26
|
+
application owns employee/customer records, names, avatars and permissions.
|
|
27
|
+
Do not make all users visible to each other to produce a working demonstration.
|
|
28
|
+
|
|
29
|
+
For a separate local demonstration, `robono-messenger-example --start` creates a
|
|
30
|
+
complete fictional preview. `--live` creates a localhost test-account example.
|
|
31
|
+
Neither demonstration login is a production authentication solution.
|
|
32
|
+
|
|
33
|
+
## Authentication and permissions
|
|
34
|
+
|
|
35
|
+
- Keep `ROBONO_API_KEY` exclusively on the existing trusted server. Never put it
|
|
36
|
+
in frontend environment variables, the mobile bundle, URLs, logs or screenshots.
|
|
37
|
+
- The small token route verifies the existing login before issuing a short-lived
|
|
38
|
+
Robono session. Derive identity from verified credentials, never request-body IDs.
|
|
39
|
+
Supabase/Firebase verification is generated when selected; custom login requires
|
|
40
|
+
the application's own signature, expiry, revocation and disabled-user checks.
|
|
41
|
+
- Keep exact browser origin restrictions. A different token-server origin needs
|
|
42
|
+
explicit CORS permission for the application's origin and bearer-token header.
|
|
43
|
+
- Synchronize conversation/contact permissions and location grants from the
|
|
44
|
+
customer's trusted server. Client-side controls do not grant access. Apply
|
|
45
|
+
suspensions, deletion and revoked access through the documented server methods.
|
|
46
|
+
- Create one connection per signed-in account. Preserve the supplied lifecycle.
|
|
47
|
+
Stop sharing, unregister notifications and sign out Messenger before ending the
|
|
48
|
+
application's login. Do not reuse one user's connection for another user.
|
|
49
|
+
|
|
50
|
+
## Features and customization
|
|
51
|
+
|
|
52
|
+
Choose services and their appearance in **Features & preview**. Read saved feature
|
|
53
|
+
availability; do not override disabled paid services in the browser. Use documented
|
|
54
|
+
appearance options and component replacements instead of forking the whole UI.
|
|
55
|
+
Retain supplied send, attachments, previews, statuses and permission handling when
|
|
56
|
+
replacing one visual part. The desktop Messenger responds to its container width.
|
|
57
|
+
|
|
58
|
+
Maps may appear separately, inside Messenger, or both. Register the website origin
|
|
59
|
+
or each native app identifier in Robono Maps setup. Robono provides restricted map
|
|
60
|
+
access; customers do not need a separate map-provider account. Viewing eligibility
|
|
61
|
+
does not start location capture: the supplied Share/Stop controls govern it.
|
|
62
|
+
|
|
63
|
+
## Native apps and notifications
|
|
64
|
+
|
|
65
|
+
For iPhone/Android, use the supported Expo version shown by the installer. Do not
|
|
66
|
+
silently upgrade the customer's framework. Native dependencies require rebuilt
|
|
67
|
+
apps. Register both Maps app identifiers and follow the generated configuration.
|
|
68
|
+
|
|
69
|
+
Background phone notifications require the customer's own Apple and Google
|
|
70
|
+
credentials, because the notifications are sent as their app. Enter them privately
|
|
71
|
+
in Robono's notification setup. The installer cannot invent those credentials.
|
|
72
|
+
Use the grouped native setup plugin; do not add duplicate audio or push handlers.
|
|
73
|
+
Preserve any existing global notification handler using the documented composition.
|
|
74
|
+
|
|
75
|
+
Website notifications use HTTPS and the supplied service worker. Preserve an
|
|
76
|
+
existing website worker and follow the dedicated Robono worker scope. Users opt in;
|
|
77
|
+
iPhone browser notifications require an installed Home Screen web app. Do not
|
|
78
|
+
promise notifications after every force-quit or denied operating-system permission.
|
|
79
|
+
|
|
80
|
+
## Safe maintenance
|
|
81
|
+
|
|
82
|
+
- Check `.robono/setup.json`, `.robono/SETUP.md` and installed package versions
|
|
83
|
+
before changing an existing integration. Keep secrets and custom login code.
|
|
84
|
+
- Use `robono-messenger-install --project . --upgrade --dry-run` to review an
|
|
85
|
+
upgrade, then apply it. The installer preserves edited files and creates review
|
|
86
|
+
proposals. Review proposals individually; do not overwrite customer edits.
|
|
87
|
+
- Use `--resume` when dependency installation was interrupted. Do not regenerate
|
|
88
|
+
the integration in another directory or reinstall a second copy of the app.
|
|
89
|
+
- Use `robono-messenger-install --project . --check --json` for setup diagnostics.
|
|
90
|
+
Investigate the actual reported error. Do not disable permission checks or
|
|
91
|
+
substitute fictional success responses to make an error disappear.
|
|
92
|
+
- Keep production service URLs supplied by the hosted session. Never copy internal
|
|
93
|
+
infrastructure URLs, demonstration credentials or local development endpoints.
|
|
94
|
+
- Report which files changed, package versions, checks performed and remaining
|
|
95
|
+
customer-owned steps. Distinguish a local preview from actual delivery.
|
|
96
|
+
|
|
97
|
+
## Reference order
|
|
98
|
+
|
|
99
|
+
Start with https://robono.com/llms.txt for the maintained documentation index.
|
|
100
|
+
The hosted guide explains the normal setup; published package types and generated
|
|
101
|
+
files define exact code. The API reference is for direct or advanced integrations.
|
|
102
|
+
Use self-hosted forwarding only when the customer explicitly chooses it.
|
|
103
|
+
If sources conflict, report the mismatch rather than inventing a configuration.
|
package/README.md
CHANGED
|
@@ -4,6 +4,16 @@ Server SDK and project installer for Robono Messenger, Maps, calling and Bridge.
|
|
|
4
4
|
|
|
5
5
|
## Start with the hosted connection
|
|
6
6
|
|
|
7
|
+
To try the supplied website interface first, run
|
|
8
|
+
`npx --package @robono/server robono-messenger-example --start`. It creates a complete
|
|
9
|
+
local fictional preview. Use `--live` for a separate test-account example, then
|
|
10
|
+
set its test key privately and run `npm start`. Existing folders are never overwritten.
|
|
11
|
+
The production application keeps its own verified login, using the installer below.
|
|
12
|
+
|
|
13
|
+
Coding assistants can follow [the integration instructions](https://robono.com/guides/assistant-integration.html)
|
|
14
|
+
and [documentation index](https://robono.com/llms.txt). The installer includes
|
|
15
|
+
`.robono/ASSISTANT.md` alongside its human-readable setup steps. AI use is optional.
|
|
16
|
+
|
|
7
17
|
Robono runs the messaging, media, calling and Maps services. Your server verifies your existing user login and returns a short-lived Robono session; it does not forward chat requests. Your company continues to supply its users, permitted contacts and group memberships.
|
|
8
18
|
|
|
9
19
|
Run `npx --package @robono/server robono-messenger-install` in your application project. The installer detects supported projects, creates the connection files and explains the remaining login and platform credentials. See [the hosted setup guide](https://robono.com/guides/hosted-messenger.html) for the recommended setup, supported frameworks and non-JavaScript server examples. The older self-hosted adapters below remain available with `--self-hosted`.
|
|
@@ -498,3 +508,9 @@ Add `authorize` only when you need extra company-specific restrictions. Existing
|
|
|
498
508
|
custom callbacks remain supported and can only restrict Robono's own checks.
|
|
499
509
|
Omitting both `permissions` and `authorize` is rejected; the SDK does not silently
|
|
500
510
|
change an existing customer's security policy.
|
|
511
|
+
|
|
512
|
+
## Moving conversation history
|
|
513
|
+
|
|
514
|
+
Use `RobonoHistoryImport` or `robono-history-import` to bring existing messages into an empty conversation. Use `RobonoHistoryExport` or `robono-history-export` for private, resumable JSONL exports. These require a server-only `messaging:manage` key. [Import guide](https://robono.com/guides/history-import.html) · [Export guide](https://robono.com/guides/history-export.html). Exports include retained messages, pins, replies, threads and file references. Use `--files` to save verified managed attachments privately as well; unavailable or customer-managed files are reported. `robono-history-migrate` prepares Sendbird/Stream exports locally, then applies or resumes the reviewed plan. It preserves mapped authors, dates, reactions, complete named poll votes, pins and group threads. Multi-file messages become consecutive attachment messages, with the original caption and reactions on the first. The report identifies every conversion and blocks unsupported or incomplete records before applying. Each conversation supports up to 100,000 messages / 256 MiB; private attachment files have separate limits.
|
|
515
|
+
|
|
516
|
+
Public communities: [discovery, joining and moderator controls](https://robono.com/guides/public-groups.html).
|
package/SBOM.spdx.json
CHANGED
|
@@ -2,22 +2,22 @@
|
|
|
2
2
|
"spdxVersion": "SPDX-2.3",
|
|
3
3
|
"dataLicense": "CC0-1.0",
|
|
4
4
|
"SPDXID": "SPDXRef-DOCUMENT",
|
|
5
|
-
"name": "@robono/server@0.
|
|
6
|
-
"documentNamespace": "http://spdx.org/spdxdocs/@robono%2fserver-0.
|
|
5
|
+
"name": "@robono/server@0.27.0",
|
|
6
|
+
"documentNamespace": "http://spdx.org/spdxdocs/@robono%2fserver-0.27.0-***",
|
|
7
7
|
"creationInfo": {
|
|
8
|
-
"created": "2026-11-
|
|
8
|
+
"created": "2026-11-05T15:11:33.074Z",
|
|
9
9
|
"creators": [
|
|
10
10
|
"Tool: npm/cli-11.6.2"
|
|
11
11
|
]
|
|
12
12
|
},
|
|
13
13
|
"documentDescribes": [
|
|
14
|
-
"SPDXRef-Package-robono.server-0.
|
|
14
|
+
"SPDXRef-Package-robono.server-0.27.0"
|
|
15
15
|
],
|
|
16
16
|
"packages": [
|
|
17
17
|
{
|
|
18
18
|
"name": "@robono/server",
|
|
19
|
-
"SPDXID": "SPDXRef-Package-robono.server-0.
|
|
20
|
-
"versionInfo": "0.
|
|
19
|
+
"SPDXID": "SPDXRef-Package-robono.server-0.27.0",
|
|
20
|
+
"versionInfo": "0.27.0",
|
|
21
21
|
"packageFileName": "",
|
|
22
22
|
"description": "Provider-neutral server SDK for the Robono Bridge API.",
|
|
23
23
|
"primaryPackagePurpose": "LIBRARY",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
{
|
|
30
30
|
"referenceCategory": "PACKAGE-MANAGER",
|
|
31
31
|
"referenceType": "purl",
|
|
32
|
-
"referenceLocator": "pkg:npm/%40robono/server@0.
|
|
32
|
+
"referenceLocator": "pkg:npm/%40robono/server@0.27.0"
|
|
33
33
|
}
|
|
34
34
|
]
|
|
35
35
|
},
|
|
@@ -175,12 +175,12 @@
|
|
|
175
175
|
"relationships": [
|
|
176
176
|
{
|
|
177
177
|
"spdxElementId": "SPDXRef-DOCUMENT",
|
|
178
|
-
"relatedSpdxElement": "SPDXRef-Package-robono.server-0.
|
|
178
|
+
"relatedSpdxElement": "SPDXRef-Package-robono.server-0.27.0",
|
|
179
179
|
"relationshipType": "DESCRIBES"
|
|
180
180
|
},
|
|
181
181
|
{
|
|
182
182
|
"spdxElementId": "SPDXRef-Package-cross-spawn-7.0.6",
|
|
183
|
-
"relatedSpdxElement": "SPDXRef-Package-robono.server-0.
|
|
183
|
+
"relatedSpdxElement": "SPDXRef-Package-robono.server-0.27.0",
|
|
184
184
|
"relationshipType": "DEPENDENCY_OF"
|
|
185
185
|
},
|
|
186
186
|
{
|
package/dist/calling.d.ts
CHANGED
|
@@ -22,6 +22,19 @@ export interface CallingRelationshipResult {
|
|
|
22
22
|
screenSharingAllowed?: boolean;
|
|
23
23
|
revision: number;
|
|
24
24
|
}
|
|
25
|
+
export interface CallingRecording {
|
|
26
|
+
id: string;
|
|
27
|
+
callId: string;
|
|
28
|
+
mode: 'audio' | 'video';
|
|
29
|
+
transcribe: boolean;
|
|
30
|
+
state: 'reserved' | 'complete' | 'failed' | 'declined' | 'cancelled';
|
|
31
|
+
durationMs: number | null;
|
|
32
|
+
reason: string | null;
|
|
33
|
+
createdAt: string;
|
|
34
|
+
endedAt: string | null;
|
|
35
|
+
expiresAt: string | null;
|
|
36
|
+
available: boolean;
|
|
37
|
+
}
|
|
25
38
|
export interface CallingSession {
|
|
26
39
|
serviceUrl: string;
|
|
27
40
|
token: string;
|
|
@@ -87,6 +100,23 @@ export declare class RobonoCallingBackend {
|
|
|
87
100
|
startedAt: number;
|
|
88
101
|
endsAt: number;
|
|
89
102
|
}>;
|
|
103
|
+
/** Backend-only archive; your server decides which staff/users may access it. */
|
|
104
|
+
recordings(options?: {
|
|
105
|
+
limit?: number;
|
|
106
|
+
cursor?: string;
|
|
107
|
+
}): Promise<{
|
|
108
|
+
recordings: CallingRecording[];
|
|
109
|
+
nextCursor: string | null;
|
|
110
|
+
}>;
|
|
111
|
+
/** Private link, valid for two minutes. Never put it in analytics or public pages. */
|
|
112
|
+
recordingDownload(id: string, kind?: 'media' | 'transcript'): Promise<{
|
|
113
|
+
url: string;
|
|
114
|
+
expiresAt: number;
|
|
115
|
+
}>;
|
|
116
|
+
/** Permanently remove a completed recording; repeating this is safe. */
|
|
117
|
+
deleteRecording(id: string): Promise<{
|
|
118
|
+
deleted: true;
|
|
119
|
+
}>;
|
|
90
120
|
/** Current technical limits, call usage, alerts and organization spending. Backend only. */
|
|
91
121
|
monitoring(): Promise<Record<string, unknown>>;
|
|
92
122
|
/** Apply current user permissions to all own-network and Bridge calls. Persist a strictly increasing revision. */
|
package/dist/calling.d.ts.map
CHANGED
|
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AA4F;IAC5F,UAAU,IAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAC,OAAO,CAAC,CAAC;IAC5C,kHAAkH;IAClH,kBAAkB,CAAC,KAAK,EAAC;QAAC,cAAc,EAAC,MAAM,CAAC;QAAA,OAAO,EAAC,OAAO,CAAC;QAAA,KAAK,EAAC,OAAO,CAAC;QAAA,KAAK,EAAC,OAAO,CAAC;QAAA,QAAQ,EAAC,MAAM,CAAA;KAAC,GAAE,OAAO,CAAC;QAAC,QAAQ,EAAC,MAAM,CAAC;QAAA,OAAO,EAAC,OAAO,CAAC;QAAA,KAAK,EAAC,OAAO,CAAC;QAAA,KAAK,EAAC,OAAO,CAAA;KAAC,CAAC;IAIpL,aAAa,CAAC,OAAO,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;QAAC,OAAO,EAAC,OAAO,CAAC;QAAA,MAAM,EAAC,MAAM,EAAE,CAAA;KAAC,CAAC;IAG5E,wGAAwG;IAClG,cAAc,CAAC,cAAc,EAAC,MAAM,EAAC,MAAM,EAAC,MAAM,GAAE,OAAO,CAAC;QAAC,MAAM,EAAC,MAAM,CAAC;QAAA,YAAY,EAAC,MAAM,CAAC;QAAA,IAAI,EAAC,OAAO,GAAC,OAAO,CAAC;QAAA,KAAK,EAAC,OAAO,CAAC;QAAA,MAAM,EAAC,MAAM,CAAC;QAAA,UAAU,EAAC,MAAM,GAAC,IAAI,CAAC;QAAA,WAAW,EAAC,MAAM,GAAC,IAAI,CAAC;QAAA,YAAY,EAAC,OAAO,CAAC;QAAA,YAAY,EAAC,OAAO,CAAA;KAAC,CAAC;CAWjP"}
|
package/dist/calling.js
CHANGED
|
@@ -87,6 +87,19 @@ export class RobonoCallingBackend {
|
|
|
87
87
|
throw Error('Invalid call countdown.');
|
|
88
88
|
return this.post(this.admissionUrl, { ...input, operation: 'start-countdown' });
|
|
89
89
|
}
|
|
90
|
+
/** Backend-only archive; your server decides which staff/users may access it. */
|
|
91
|
+
recordings(options = {}) {
|
|
92
|
+
if (options.limit !== undefined && (!Number.isInteger(options.limit) || options.limit < 1 || options.limit > 100) || options.cursor !== undefined && (typeof options.cursor !== 'string' || options.cursor.length > 300))
|
|
93
|
+
throw Error('Invalid recording page.');
|
|
94
|
+
return this.post(this.admissionUrl, { operation: 'recordings', ...options });
|
|
95
|
+
}
|
|
96
|
+
/** Private link, valid for two minutes. Never put it in analytics or public pages. */
|
|
97
|
+
recordingDownload(id, kind = 'media') { if (!/^[0-9a-f-]{36}$/i.test(id))
|
|
98
|
+
throw Error('Invalid recording ID.'); if (!['media', 'transcript'].includes(kind))
|
|
99
|
+
throw Error('Invalid recording format.'); return this.post(this.admissionUrl, { operation: 'recording-download', id, kind }); }
|
|
100
|
+
/** Permanently remove a completed recording; repeating this is safe. */
|
|
101
|
+
deleteRecording(id) { if (!/^[0-9a-f-]{36}$/i.test(id))
|
|
102
|
+
throw Error('Invalid recording ID.'); return this.post(this.admissionUrl, { operation: 'recording-delete', id }); }
|
|
90
103
|
/** Current technical limits, call usage, alerts and organization spending. Backend only. */
|
|
91
104
|
monitoring() { return this.post(this.admissionUrl, { operation: 'monitoring' }); }
|
|
92
105
|
/** Apply current user permissions to all own-network and Bridge calls. Persist a strictly increasing revision. */
|
package/dist/calling.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"calling.js","sourceRoot":"","sources":["../src/calling.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"calling.js","sourceRoot":"","sources":["../src/calling.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAuB1C,SAAS,YAAY,CAAC,KAAa;IACjC,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,KAAK,CAAC,CAAC;IAC3B,IAAI,GAAG,CAAC,QAAQ,KAAK,QAAQ,IAAI,GAAG,CAAC,QAAQ,IAAI,GAAG,CAAC,QAAQ,IA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,cAAc,CAAC,CAAC;QACvD,MAAM,IAAI,GAAC,KAAK,EAAC,IAAW,EAAC,IAAY,EAAC,EAAE;YAC1C,MAAM,QAAQ,GAAC,MAAM,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,UAAU,GAAC,IAAI,EAAC,EAAC,MAAM,EAAC,MAAM,EAAC,QAAQ,EAAC,OAAO,EAAC,MAAM,EAAC,WAAW,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,EAAC,OAAO,EAAC,EAAC,cAAc,EAAC,kBAAkB,EAAC,aAAa,EAAC,UAAU,OAAO,CAAC,KAAK,EAAE,EAAC,EAAC,IAAI,EAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,EAAC,CAAC,CAAC;YAClP,IAAG,CAAC,QAAQ,CAAC,EAAE;gBAAC,MAAM,IAAI,WAAW,CAAC,0BAA0B,EAAC,EAAC,IAAI,EAAC,kBAAkB,EAAC,MAAM,EAAC,QAAQ,CAAC,MAAM,EAAC,CAAC,CAAC;YACnH,OAAO,QAAQ,CAAC,IAAI,EAAE,CAAC;QACzB,CAAC,CAAC;QACF,IAAG,CAAC;YAAA,OAAO,MAAM,IAAI,CAAC,aAAa,EAAC,EAAC,MAAM,EAAC,CAAC,CAAC;QAAA,CAAC;gBACxC,CAAC;YAAA,MAAM,IAAI,CAAC,QAAQ,EAAC,EAAE,CAAC,CAAC,KAAK,CAAC,GAAE,EAAE,GAAC,CAAC,CAAC,CAAC;QAAA,CAAC;IACjD,CAAC;CACF"}
|
package/dist/client.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAGA,OAAO,EAEL,KAAK,eAAe,EACpB,eAAe,EAChB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,KAAK,EACV,gBAAgB,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OAAO;YAeP,eAAe;CAsG9B"}
|
package/dist/client.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { robonoSdkVersions } from './generated/sdk-versions.js';
|
|
1
2
|
import { randomUUID } from "node:crypto";
|
|
2
3
|
import { RobonoError } from "./errors.js";
|
|
3
4
|
import { assertMessageAllowed, restrictionsFor, } from "./restrictions.js";
|
|
@@ -48,7 +49,7 @@ export class RobonoServer {
|
|
|
48
49
|
code: "fetch_required",
|
|
49
50
|
});
|
|
50
51
|
}
|
|
51
|
-
this.userAgent = options.userAgent ?? "@robono/server/
|
|
52
|
+
this.userAgent = options.userAgent ?? "@robono/server/" + robonoSdkVersions.server;
|
|
52
53
|
this.apiVersion = options.apiVersion?.trim() || DEFAULT_API_VERSION;
|
|
53
54
|
this.defaultLanguage = options.language?.trim() || undefined;
|
|
54
55
|
this.directory = {
|