Commit Graph

776 Commits

Author SHA1 Message Date
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
Bernhard B
2dd1668819 fixed URL to signal-cli source code 2023-10-19 19:03:52 +02:00
Bernhard B
bf905984d4 Merge branch 'master' of github.com:bbernhard/signal-cli-rest-api 2023-10-19 18:42:05 +02:00
Bernhard B
b77956530d updated signal-cli to version 0.12.3 2023-10-19 18:41:04 +02:00
Bernhard B
c83768a30b Merge branch 'graalvm_fix' 2023-10-19 18:40:44 +02:00
Bernhard B
9f4bf03b77 reverted graalvm back to 22.3.0 to work around some issues with missing
CPU features

see #425
2023-10-12 21:16:25 +02:00
Bernhard B
b45aab70a7 improved REST API documentation 2023-10-07 11:29:41 +02:00
Bernhard B
9e09775d94 implemented "sendContacts" functionality
see #416
2023-10-07 11:18:16 +02:00
Bernhard B
07aee21672 handle multicharacter emojis in textstyleparser
see #413
2023-10-06 19:11:07 +02:00
Bernhard B
8271d53746 fixed small bug in cli client 2023-10-05 21:16:40 +02:00
Bernhard B
bc74d4cb48 add debug logging to cli client
* log the stdout & stderr buffers in case debug logging is enabled.

see #412
2023-10-05 18:02:57 +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