Bernhard B
59207541c1
added uuid to list identities response
...
see #703
2025-05-26 21:56:28 +02:00
Bernhard B
6eacfb0890
added support for link previews
...
see #439
2025-05-01 23:29:23 +02:00
Bernhard B
3497b3d806
exposed 'listDevices' signal-cli command via REST
...
* the signal-cli command 'listDevices' is now exposed as
/v1/devices/<number> endpoint.
see #676
2025-03-30 23:14:16 +02:00
Bernhard B
bf929a3aa1
extended list contacts GET endpoint
...
* exposed some more fields
see #675
2025-03-29 22:33:37 +01:00
Bernhard B
e452205c38
handle non existent attachments folder gracefully
2025-03-24 23:15:22 +01:00
Bernhard B
4404929c90
added API endpoints to set/remove a pin
...
see #660
2025-02-26 22:26:13 +01:00
Bernhard B
9144ee8156
return group description in groups GET endpoint
...
see #657
2025-02-14 20:18:06 +01:00
Bernhard B
845ea54d0a
fixed bug in send method
...
* allow notify self not only when sending a message to a group, but also
to individual recipients.
see #654
2025-02-09 20:06:31 +01:00
Bernhard B
f0a49e6aac
added new TextstyleParser implementation
...
* the old implementation was cumbersome to maintain and had some
problems with nested formatting.
see #630
2024-12-21 22:10:35 +01:00
Bernhard B
2c4ef753ab
added expiration_time to Update Groups endpoint
...
see #616
2024-11-15 22:43:02 +01:00
Bernhard B
cddf3c166a
GET groups endpoint: return uuid instead of number in case no number is set
...
see #611
2024-11-14 22:50:15 +01:00
ahatius
7cfc53cad9
Add notify-self-flag support for json-rpc mode
2024-11-09 21:04:12 +01:00
Matthew Rider
57dcb2f281
Add a pointer to conditionally send about string to signal-cli
2024-10-22 10:27:32 +02:00
Matthew Rider
f6c3f263e8
Add ability to update about text in UpdateProfileRequest
2024-10-21 11:35:39 +02:00
Bernhard B
94e93cbe35
added expiration_time parameter to create group endpoint
...
see #587
2024-10-07 23:02:33 +02:00
ahatius
8cd60ff6c3
Add support to disable notify-self flag on /v2/send endpoint
2024-08-07 18:54:24 +02:00
Bernhard B
911b686778
fixed bug in send method
...
* allow sending messages to the sourceUuid
see #550
2024-06-20 18:29:31 +02:00
Bernhard B
8929326f5f
beautified code with gofmt
2024-06-18 19:49:47 +02:00
mattwr18
ee10b6bc32
Expose listContacts endpoint
2024-06-18 18:40:32 +02:00
Bernhard B
bbd088fc0b
added username support to /v2/send endpoint
2024-05-22 19:22:39 +02:00
Bernhard B
70763ae9d9
reworked code to make it more maintainable
...
* added recipient type. This change is necessary to implement sending
messages to usernames/username links.
2024-05-11 17:48:24 +02:00
Brett Profitt
44cc1692a9
Add endpoint support for read receipts.
2024-05-10 20:29:57 -04:00
Bernhard B
b274fd2e49
format code with gofmt
2024-05-07 22:25:18 +02:00
Bernhard B
6522dcf8c8
code improvements
...
* restructured the code a bit to make it more readable
2024-05-07 22:22:53 +02:00
Jonathan Neidel
b23ee29b1f
Add support for read receipts on /receive
2024-04-26 12:50:53 +02:00
Bernhard B
dfdcfa3725
fixed bug in send method
...
* with signal-cli 0.13.0 the default behavior changed
and message to oneself did not trigger a notification anymore.
As this is a behavioral change and we try to avoid any behavioral
changes in the REST API, the previous behavior was reinstated again
by explicitly adding "--notify-self".
see #511
2024-04-04 19:58:03 +02:00
Bernhard B
d083ba84e3
fixed bug in /v2/send error parsing
2024-03-27 16:34:24 +01:00
Bernhard B
a627d3e1ab
fixed error handling in send method
2024-03-26 17:36:30 +01:00
Bernhard B
de631edfb0
return challenge tokens in send endpoint as explicit key
2024-03-25 16:11:04 +01:00
Bernhard B
efee49e792
add API endpoints to list and add sticker packs
...
see #398
2024-03-13 21:10:23 +01:00
Bernhard B
9c365e6f84
add possibility to edit messages
...
see #485
2024-03-07 20:11:57 +01:00
Bernhard B
f57512216c
added endpoints to set/remove a username + change the account settings
2024-03-06 18:27:17 +01:00
Bernhard B
3d7b73560a
fixed bug in golang channel handling (json-rpc mode)
...
* golang channels are meant to be 1:1 channels, so if multiple
goroutines listen on the same channel for messages, only one will
receive the message and the others are not, which lead to lost
messages.
In order to fix that, we create a dedicated golang channel for every
websocket connection.
see #451
2023-12-11 22:18:23 +01:00
Bernhard B
f564cffd67
Merge branch 'master' of github.com:bbernhard/signal-cli-rest-api
2023-12-01 21:33:18 +01:00
Bernhard B
13236b7c66
added /v1/rate-limit-challenge endpoint
...
see #456
2023-12-01 21:29:00 +01:00
Benjamin Prevor
e4b2d21588
fix typo in endpointNotSupportedInJsonRpcMode
2023-11-27 11:33:42 -05:00
Bernhard B
63c767e088
Merge pull request #447 from kxait/get_accounts
...
Get list of accounts
2023-11-13 18:08:07 +01:00
Tomek Osika
385a591b32
get accounts
2023-11-12 02:19:13 +01:00
Tomek Osika
3ea7949c10
also reload config after device was linked successfully
2023-11-11 22:23:26 +01:00
Tomek Osika
4444beaf98
link device in json-rpc mode
2023-11-11 14:34:47 +01:00
Bernhard B
c493655f14
Merge pull request #434 from bbernhard/multimaster_mode
...
Multimaster mode
2023-10-30 20:03:28 +01:00
Bernhard B
512458b202
json-rpc mode: fixed bug in register endpoint + added verify endpoint
2023-10-30 19:56:01 +01:00
Bernhard B
a06a9f873b
switched implementation to multi-account mode
...
* instead of starting signal-cli in json-rpc mode with the '-u',
we start signal-cli without the '-u' parameter (also known as
multi-account mode). This makes it possible to register a number in
json-rpc mode.
2023-10-30 14:49:11 +01:00
Tomek Osika
56eaa7b79b
update group name
2023-10-29 17:04:52 +01:00
Bernhard B
9e09775d94
implemented "sendContacts" functionality
...
see #416
2023-10-07 11:18:16 +02:00
Bernhard B
6f269d3e1d
improved error handling in send method
...
* when a message is successfully sent, signal-cli returns a timestamp,
which we convert to an integer. in case, we, for some reason can't
convert the timestamp to an integer, it means that signal-cli returned
some non-numeric characters as well (which is a strong indication that
there was an error). So, instead of returning the parsing error,
return the actual signal-cli error message.
see #412
2023-10-04 20:44:42 +02:00
Bernhard B
661fe568e2
json-rpc mode: fixed bug in group deletion
...
* deleting a group in json-rpc mode didn't work.
see #387
2023-10-04 19:07:17 +02:00
Bernhard B
b39980e66b
added possibility to update the group description & the avatar
...
see #417
2023-10-03 19:49:36 +02:00
Bernhard B
fc2982c25f
fixed crash in create group request
...
see #410
2023-10-03 19:28:26 +02:00
Bernhard B
4f3ebf0bfc
fixed bug in create group endpoint
...
link & permissions weren't correctly set
see #410
2023-09-26 22:30:43 +02:00