aboutsummaryrefslogtreecommitdiffstats
path: root/packages/meshbay-android/app/src/main/assets
diff options
context:
space:
mode:
Diffstat (limited to 'packages/meshbay-android/app/src/main/assets')
-rw-r--r--packages/meshbay-android/app/src/main/assets/bridge/meshbay-bridge.js53
1 files changed, 51 insertions, 2 deletions
diff --git a/packages/meshbay-android/app/src/main/assets/bridge/meshbay-bridge.js b/packages/meshbay-android/app/src/main/assets/bridge/meshbay-bridge.js
index fc7231c..a07399f 100644
--- a/packages/meshbay-android/app/src/main/assets/bridge/meshbay-bridge.js
+++ b/packages/meshbay-android/app/src/main/assets/bridge/meshbay-bridge.js
@@ -207,12 +207,14 @@
// The page decides when and does the sending. Phone-only, like `push`.
photoSync: {
status: () => call('photosync:status'),
- permit: () => call('photosync:permit'),
- albums: () => call('photosync:albums'),
+ permit: (withVideos) => call('photosync:permit', withVideos === true),
+ albums: (withVideos) => call('photosync:albums', withVideos === true),
configure: (settings) => call('photosync:configure', settings || null),
estimate: (settings) => call('photosync:estimate', settings),
plan: () => call('photosync:plan'),
sent: (token, dir, name) => call('photosync:sent', token, dir, name),
+ manifest: () => call('photosync:manifest'),
+ manifestSent: (token) => call('photosync:manifest-sent', token),
completed: () => call('photosync:completed'),
failed: (code, text) => call('photosync:failed', code, text),
keepAlive: (on, text) => call('photosync:keep-alive', on === true, text || ''),
@@ -236,6 +238,52 @@
sent: (token, dir, name) => call('contactsync:sent', token, dir, name),
completed: () => call('contactsync:completed'),
failed: (code, text) => call('contactsync:failed', code, text),
+ openSettings: () => call('contactsync:open-settings'),
+ },
+
+ // Calendar backup (§9.13), the same way: one iCalendar file of every
+ // calendar the person can write to, when it changed.
+ calendarSync: {
+ status: () => call('calendarsync:status'),
+ permit: () => call('calendarsync:permit'),
+ configure: (settings) => call('calendarsync:configure', settings || null),
+ plan: () => call('calendarsync:plan'),
+ sent: (token, dir, name) => call('calendarsync:sent', token, dir, name),
+ completed: () => call('calendarsync:completed'),
+ failed: (code, text) => call('calendarsync:failed', code, text),
+ openSettings: () => call('calendarsync:open-settings'),
+ },
+
+ // Files backup (§9.13): folders the person chose through the system's
+ // picker, sent like photos, a range at a time from /drivesync/<token>.
+ driveSync: {
+ status: () => call('drivesync:status'),
+ addFolder: () => call('drivesync:add-folder'),
+ removeFolder: (id) => call('drivesync:remove-folder', id),
+ configure: (settings) => call('drivesync:configure', settings || null),
+ plan: () => call('drivesync:plan'),
+ sent: (token, dir, name) => call('drivesync:sent', token, dir, name),
+ manifest: () => call('drivesync:manifest'),
+ manifestSent: (token) => call('drivesync:manifest-sent', token),
+ completed: () => call('drivesync:completed'),
+ failed: (code, text) => call('drivesync:failed', code, text),
+ keepAlive: (on, text) => call('drivesync:keep-alive', on === true, text || ''),
+ },
+
+ // WhatsApp's own folder (§9.13), the same way: its encrypted chat
+ // backups for a restore, and its media if the person ticks them.
+ whatsappSync: {
+ status: () => call('wasync:status'),
+ chooseFolder: () => call('wasync:add-folder'),
+ forgetFolder: (id) => call('wasync:remove-folder', id),
+ configure: (settings) => call('wasync:configure', settings || null),
+ plan: () => call('wasync:plan'),
+ sent: (token, dir, name) => call('wasync:sent', token, dir, name),
+ manifest: () => call('wasync:manifest'),
+ manifestSent: (token) => call('wasync:manifest-sent', token),
+ completed: () => call('wasync:completed'),
+ failed: (code, text) => call('wasync:failed', code, text),
+ keepAlive: (on, text) => call('wasync:keep-alive', on === true, text || ''),
},
} : {}),
@@ -249,6 +297,7 @@
sent: (token, dir, name) => call('messagesync:sent', token, dir, name),
completed: () => call('messagesync:completed'),
failed: (code, text) => call('messagesync:failed', code, text),
+ openSettings: () => call('messagesync:open-settings'),
} } : {}),
// Where downloads go, chosen once. A display name comes back, never a URI.