Commit graph

58 commits

Author SHA1 Message Date
batuhan içöz
fea9e99e6f
Merge branch 'main' into batuhan/com-beeper-ephemeral
Some checks are pending
Go / Lint (latest) (push) Waiting to run
Go / Build (old, libolm) (push) Waiting to run
Go / Build (latest, libolm) (push) Waiting to run
Go / Build (old, goolm) (push) Waiting to run
Go / Build (latest, goolm) (push) Waiting to run
2026-03-02 06:27:50 +01:00
batuhan içöz
de8b6bbbc8
Handle action-response ephemerals and MSS errors
Register and handle action-response ephemeral events and improve MSS error reporting across the bridge.

- Add ErrActionResponseNotSupported and register BeeperActionResponse event handler in the Matrix connector.
- Short-circuit AI stream ephemerals when ignored in matrix event handling.
- Return EventHandlingResult* values with MSS error context in portal ephemeral handling (failed and success paths) and return Ignored with ErrActionResponseNotSupported when network API lacks action-response support.
- Minor cleanup: remove/adjust redundant comments, small formatting tweaks, and update copyright years in tests.
2026-03-02 06:20:49 +01:00
batuhan içöz
33911f0790
Add action hints types and routing for com.beeper.action_response
Add BeeperActionHint, BeeperActionHints, and BeeperActionResponseEventContent
structs. Register BeeperActionResponse event type with TypeMap and GuessClass.
Add ActionResponseHandlingNetworkAPI interface and route action response events
through portal.handleMatrixActionResponse. This enables clients to send
structured button responses (Allow/Always/Deny) for tool approval flows.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-02 01:42:53 +01:00
batuhan içöz
4e29d87ff2
Route custom ephemeral through com.beeper.ai.stream_event
Some checks are pending
Go / Lint (latest) (push) Waiting to run
Go / Build (old, libolm) (push) Waiting to run
Go / Build (latest, libolm) (push) Waiting to run
Go / Build (old, goolm) (push) Waiting to run
Go / Build (latest, goolm) (push) Waiting to run
2026-03-01 18:29:51 +01:00
Tulir Asokan
f8234ecf85 event: add m.room.policy event type 2026-03-01 13:23:32 +02:00
batuhan içöz
27aa251a8d
Restrict bridge ephemeral handling to com.beeper.ephemeral
Some checks are pending
Go / Lint (latest) (push) Waiting to run
Go / Build (old, libolm) (push) Waiting to run
Go / Build (latest, libolm) (push) Waiting to run
Go / Build (old, goolm) (push) Waiting to run
Go / Build (latest, goolm) (push) Waiting to run
2026-03-01 01:51:11 +01:00
Tulir Asokan
5ac73563b0 event/cmdschema: add MSC4391 types, parser and stringifier 2026-01-10 20:55:11 +02:00
Tulir Asokan
be22286000 event: drop MSC4332 support 2026-01-10 20:55:11 +02:00
Tulir Asokan
31579be20a bridgev2,event: add interface for message requests
Some checks are pending
Go / Lint (latest) (push) Waiting to run
Go / Build (old, libolm) (push) Waiting to run
Go / Build (latest, libolm) (push) Waiting to run
Go / Build (old, goolm) (push) Waiting to run
Go / Build (latest, goolm) (push) Waiting to run
2025-12-09 16:41:56 +02:00
Tulir Asokan
57657d54ee
bridgev2: add custom event for requesting state change (#428)
Some checks are pending
Go / Lint (latest) (push) Waiting to run
Go / Build (old, libolm) (push) Waiting to run
Go / Build (latest, libolm) (push) Waiting to run
Go / Build (old, goolm) (push) Waiting to run
Go / Build (latest, goolm) (push) Waiting to run
2025-11-19 13:15:38 +02:00
Tulir Asokan
b3c883bc7f event: add beeper chat delete event 2025-09-22 16:05:28 +03:00
Tiago Loureiro
e19d009d59
event: add EventUnstablePollEnd to GuessClass() (#414)
Some checks are pending
Go / Lint (latest) (push) Waiting to run
Go / Build (old, libolm) (push) Waiting to run
Go / Build (latest, libolm) (push) Waiting to run
Go / Build (old, goolm) (push) Waiting to run
Go / Build (latest, goolm) (push) Waiting to run
2025-09-18 11:07:13 -03:00
Tiago Loureiro
4603a344ce
event: add org.matrix.msc3381.poll.end type (#412)
Some checks are pending
Go / Lint (latest) (push) Waiting to run
Go / Build (old, libolm) (push) Waiting to run
Go / Build (latest, libolm) (push) Waiting to run
Go / Build (old, goolm) (push) Waiting to run
Go / Build (latest, goolm) (push) Waiting to run
2025-09-11 15:10:14 -03:00
Tulir Asokan
cd927c2796 event: add types for MSC4332
Some checks failed
Go / Lint (latest) (push) Has been cancelled
Go / Build (old, libolm) (push) Has been cancelled
Go / Build (latest, libolm) (push) Has been cancelled
Go / Build (old, goolm) (push) Has been cancelled
Go / Build (latest, goolm) (push) Has been cancelled
2025-08-30 19:54:58 +03:00
Tulir Asokan
35b805440f federation/pdu: add auth event selection 2025-08-22 19:37:53 +03:00
Kishan Bagaria
1d484e01d0
event: implement disappearing timer types (#399)
Some checks are pending
Go / Lint (latest) (push) Waiting to run
Go / Build (old, libolm) (push) Waiting to run
Go / Build (latest, libolm) (push) Waiting to run
Go / Build (old, goolm) (push) Waiting to run
Go / Build (latest, goolm) (push) Waiting to run
Co-authored-by: Tulir Asokan <tulir@maunium.net>
2025-08-22 02:16:56 -07:00
Tulir Asokan
6eced49860 client,event: remove deprecated MSC2716 structs 2025-08-17 13:32:07 +03:00
SpiritCroc
d3ca9472cb
event: add Beeper transcription event definitions (#364)
Some checks failed
Go / Lint (latest) (push) Has been cancelled
Go / Build (old, libolm) (push) Has been cancelled
Go / Build (latest, libolm) (push) Has been cancelled
Go / Build (old, goolm) (push) Has been cancelled
Go / Build (latest, goolm) (push) Has been cancelled
2025-03-31 09:53:01 +02:00
Tulir Asokan
2851065869
bridgev2: send room capabilities as a state event (#344) 2025-01-10 16:55:18 +02:00
Sumner Evans
7066beb946
event: fix receivers for event.Type
Signed-off-by: Sumner Evans <sumner.evans@automattic.com>
2024-10-28 23:02:40 -06:00
Tulir Asokan
092ba65cad bridgev2,event: add basic support for polls 2024-10-07 16:07:02 +03:00
Tulir Asokan
79391515ed event: add unstable prefixes for policy events
Some checks failed
Go / Lint (latest) (push) Has been cancelled
Go / Build (old, libolm) (push) Has been cancelled
Go / Build (latest, libolm) (push) Has been cancelled
Go / Build (old, goolm) (push) Has been cancelled
Go / Build (latest, goolm) (push) Has been cancelled
2024-08-31 02:41:28 +03:00
Tulir Asokan
81028a6a08 bridgev2: add interfaces for mutes, tags and marked unread bridging 2024-07-19 16:04:55 +03:00
Tulir Asokan
7c2fdc703d bridgev2: add remote->matrix mark unread interfaces 2024-06-20 15:21:17 +03:00
Tulir Asokan
2ed8d0d0b3 Add proper room name calculation and fix some bugs 2024-06-01 03:08:41 +03:00
Tulir Asokan
797aed1e83 Update m.megolm_backup.v1 event type to reference secret ID constant 2024-05-26 00:59:30 +03:00
Sumner Evans
6aa214ad1a
events: reorder and add done event
This commit reorders the events to match what's in the spec, and adds
the missing m.key.verification.done event.

Signed-off-by: Sumner Evans <sumner@beeper.com>
2024-02-09 10:30:36 -07:00
Toni Spets
a36dc59187 Plumb event.AccountDataMegolmBackupKey properly 2024-02-01 10:23:14 +02:00
Tulir Asokan
0ecb22e6f0 Add m.fully_read to event type class guesser 2024-01-26 19:55:58 +02:00
Toni Spets
94664f1c8a Secret sharing implementation 2024-01-24 12:56:46 +02:00
saces
97d19484a3
add missing declarations for m.key.verification.ready
Signed-off-by: saces <saces@c-base.org>
2024-01-19 13:15:31 -07:00
Sumner Evans
c77d6fe1f9
event/type: add megolm backup key account data type
Signed-off-by: Sumner Evans <sumner@beeper.com>
2024-01-18 09:17:19 -07:00
Tulir Asokan
c710d4aa8f Deprecate MSC2716 methods and add Beeper batch send methods 2023-06-19 01:24:44 +03:00
Tulir Asokan
20df20d25a Ratchet inbound sessions on decrypt and delete outbound on ack 2023-04-10 16:27:05 +03:00
Tulir Asokan
1f3cdabc5e Add msc2716 marker event type 2022-07-12 22:51:05 +03:00
Tulir Asokan
5853dab580 Add com.beeper.message_send_status event type 2022-05-31 16:29:03 +03:00
qua3k
f7a6fd2a8b Add event type and content struct for moderation policy lists 2022-01-14 23:20:19 +02:00
qua3k
6d8ff28f5d
Add event type and content struct for server ACLs (#59) 2022-01-07 17:58:16 +02:00
Tulir Asokan
8916ec32ce Add space stuff. Fixes #53 2021-12-29 18:54:08 +02:00
Tulir Asokan
835194fa2d Automatically create new Olm sessions if decryption fails 2021-12-03 16:23:24 +02:00
Tulir Asokan
9371f46a3c Add m.bridge event content struct 2021-09-30 16:04:50 +03:00
Tulir Asokan
42d0adaa7d Improve debug log for unsupported event types and add call events to GuessClass (ref #32) 2021-05-07 15:11:42 +03:00
Tulir Asokan
ba8ea0c90b Add content structs for VoIP events 2021-04-19 17:24:35 +03:00
Tulir Asokan
495d77b3a0 Merge branch 'master' into cross-sign 2020-10-27 00:38:52 +02:00
Tulir Asokan
488e1811bb Add support for receiving MSC2409 ephemeral events 2020-10-26 18:31:14 +02:00
Tulir Asokan
2f4c0570c0 Even more changes 2020-09-12 23:37:50 +03:00
Tulir Asokan
8db8373594 Separate SSSS from cross-signing properly 2020-09-11 01:35:38 +03:00
Nikos Filippakis
8b7e8a8cae Support for starting the in-room verification process
Signed-off-by: Nikos Filippakis <me@nfil.dev>
2020-08-30 20:51:17 +02:00
Nikos Filippakis
cbcbbd97fa Handle in-room verification requests
Signed-off-by: Nikos Filippakis <me@nfil.dev>
2020-08-30 20:51:17 +02:00
Tulir Asokan
24127da284 Add support for storing m.room_key.withheld events 2020-08-03 22:05:01 +03:00