Commit Graph

588 Commits

Author SHA1 Message Date
Bernhard B
3573f6ae95 added json-rpc debug logging
see #482
2024-03-20 19:47:37 +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
91d7dc0a19 fixed concurrent map write
* protect map access with mutex to avoid concurrent map access

see #493
2024-02-28 16:37:40 +01:00
Bernhard B
d897ac3485 updated signal-cli to v0.13.1 2024-02-28 15:56:06 +01:00
Bernhard B
8910b6f317 Merge pull request #496 from marvinruder/marvinruder/issue495
Add `curl` to Docker image for health check
2024-02-25 17:37:55 +01:00
Marvin A. Ruder
c163e57809 Add curl to Docker image for health check
* Fixes #495

Signed-off-by: Marvin A. Ruder <signed@mruder.dev>
2024-02-25 17:15:26 +01:00
Bernhard B
08dc98eac2 removed JAVA_HOME env variable from supervisor configuration
* not needed and is causing some problems since we switched from
  the eclipse-temurin to the ubuntu base image.

see #489
2024-02-23 10:38:36 +01:00
Bernhard B
05f6434630 updated golang.org/x/net to v0.17.0 in order fix potential security vulnerability 2024-02-21 16:26:47 +01:00
Bernhard B
97c0e366f7 use standard ubuntu image instead of eclipse-temurin
* the eclipse-temurin project doesn't provide a OpenJDK 21 image for
  armv7. Until this is fixed, we use the standard ubuntu image.
2024-02-21 16:15:56 +01:00
Bernhard B
be95cb9a06 updated signal-cli to v 0.13.0 + added libsignal-client v0.39.2 2024-02-19 18:46:55 +01:00
Bernhard B
03af708f11 added hidden 'recipient' parameter to /v2/send endpoint
* some REST API consumers (like the Synology NAS) do not allow
  to use an array for the recipients. So, in order to support
  those platforms as well, a 'recipient' string parameter is added.

  As most users are perfectly fine with the array parameter, the
  recipient parameter won't be exposed in the Swagger UI.

see #428
2024-02-16 19:18:48 +01:00
Bernhard B
7be6169837 Merge pull request #474 from kleptog/java-opts-in-json-rpc
Pass JAVA_OPTS through to signal-cli in json-rpc mode
2024-02-15 19:27:43 +01:00
Martijn van Oosterhout
b00be631a4 Pass JAVA_OPTS through to signal-cli in json-rpc mode 2024-02-14 14:30:56 +01:00
Bernhard B
4c560800f7 Merge pull request #477 from richtier/patch-1
Upgrade `SIGNAL_CLI_VERSION` to `0.12.8`
2024-02-06 11:11:34 +01:00
Bernhard B
854821e214 updated signal-cli-native to version 0.12.8+1 2024-02-06 11:10:33 +01:00
Richard Tier
6f7742819b Update Dockerfile 2024-02-05 23:37:26 +00:00
Bernhard B
713889a974 bumped signal-cli-native version 2024-01-08 21:25:23 +01:00
Bernhard B
d5210041c6 fixed typo in swagger documentation
see #466
2024-01-08 20:49:29 +01:00
Bernhard B
7fcb70e673 bumped signal-cli-native version 2023-12-20 20:20:31 +01:00
Bernhard B
2b11f93cc4 bumped libsignal-client to v0.36.1 in Dockerfile 2023-12-15 22:31:43 +01:00
Bernhard B
aea778fcca added libsignal-client v0.36.1 2023-12-15 22:26:48 +01:00
Bernhard B
eee69c3ad7 updated signal-cli to version 0.12.7 2023-12-15 19:39:04 +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
844f1d7b91 bumped signal-cli version to v0.12.6 2023-12-11 20:05:21 +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
Bernhard B
e9503a2196 Merge pull request #459 from charles37/FixTypo
Fixed a Typo in endpointNotSupportedInJsonRpcMode
2023-11-28 23:21:01 +01:00
Benjamin Prevor
e4b2d21588 fix typo in endpointNotSupportedInJsonRpcMode 2023-11-27 11:33:42 -05:00
Bernhard B
6f2fadf5ac updated golang to version 1.21 2023-11-24 22:17:22 +01:00
Bernhard B
e4a21509c9 Merge branch 'master' of github.com:bbernhard/signal-cli-rest-api 2023-11-24 22:12:57 +01:00
Bernhard B
7188730dd6 updated signal-cli to v0.12.5 2023-11-24 22:12:23 +01:00
Bernhard B
bdf55a5cf7 Merge pull request #450 from marvinruder/master
Use JRE for runtime container
2023-11-16 23:13:14 +01:00
Marvin A. Ruder
95be54729a Use JRE for runtime container
Signed-off-by: Marvin A. Ruder <signed@mruder.dev>
2023-11-16 22:33:50 +01:00
Bernhard B
63c767e088 Merge pull request #447 from kxait/get_accounts
Get list of accounts
2023-11-13 18:08:07 +01:00
Bernhard B
e446c8f89b Merge pull request #445 from kxait/jsonrpc_linkdevice
Link device in JSON-RPC mode
2023-11-13 18:01:28 +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
b36d28f2c7 Merge pull request #432 from kxait/update_group_name
Allow updating group name
2023-10-30 20:02:42 +01:00
Bernhard B
6feb7078f1 improved misleading comment 2023-10-30 20:00:16 +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
0cab12c49d added spoiler to textstyleparser 2023-10-28 18:53:25 +02:00
Bernhard B
54fd4db81e updated signal-cli to version 0.12.4 2023-10-25 18:31:09 +02:00
Bernhard B
fa91a58bf2 fixed bug in response parsing
* strip info and warn messages from output
2023-10-19 20:19:16 +02:00
Bernhard B
58ee22e280 bumped graalvm to version 22.3.3
* bump was needed, as the native build was failing otherwise.
2023-10-19 19:45:55 +02:00