Bernhard B
284e92107c
fixed bug in json-rpc mode
...
* properly close websocket connection when client disconnects
see #198
2022-01-16 22:00:12 +01:00
Bernhard B
b64ee6bbb8
re-generated swagger documentation
2022-01-15 19:55:04 +01:00
Bernhard B
1f622e3305
added unregister API endpoint
...
see #71
2022-01-15 19:54:09 +01:00
Bernhard B
8e2403bee4
fixed swagger documentation for search endpoint
...
see #50
2022-01-03 15:21:29 +01:00
Bernhard B
43747af9d4
added search endpoint
...
* check whether one or more phone numbers are registered with
the signal service.
see #50
2022-01-02 14:52:45 +01:00
Bernhard B
18dcc49ff4
set version during build process
...
see #47
2022-01-01 14:53:18 +01:00
Bernhard B
259e1ece8e
fixed bug in qrcodelink endpoint
...
* generate QR code with version 10 and the highest error correction
level.
see #190
2021-12-31 21:12:35 +01:00
Bernhard B
7c8135e119
use "-a" instead of "-u" for specifying the number
...
* due to the upcoming username support in Signal, signal-cli renamed
"-u" to "-a".
2021-12-14 21:20:13 +01:00
Bernhard B
0d0b061b37
Reverted last commits
...
* updating to signal-cli v 0.10.0 is more work than anticipated; changes
will be reverted here and development continues on dedicated feature
branch.
2021-12-14 21:14:13 +01:00
Bernhard B
7c480f73a2
use "-a" instead of "-u" for specifying the number
...
* due to the upcoming username support in Signal, signal-cli renamed
"-u" to "-a".
2021-12-12 14:21:10 +01:00
Bernhard B
8a2970cb2d
fixed bugs in list groups endpoint
...
* pendingMembers and requestingMembers were incorrectly parsed from
signal-cli's JSON output
see #187
2021-12-11 09:35:54 +01:00
Bernhard B
ed8916ce0e
do not spam log file in case JsonRpc2 client can't read data
...
* only log an error message at max every 5 minutes
see #186
2021-12-05 17:48:44 +01:00
Bernhard B
f8f601a498
fixed bug in json-rpc mode
...
* do not hardcode path to signal-cli config directory in supervisor
config file.
2021-11-06 22:49:25 +01:00
Bernhard B
e5d170eaf6
rebuild swagger documentation
2021-11-06 14:55:09 +01:00
Bernhard B
a6489ce742
Merge pull request #176 from filipre/reactions
...
Reactions Endpoint Proposal
2021-11-06 14:54:13 +01:00
Bernhard B
f472e51984
fixed bug in JSON-RPC mode
...
* use signal-cli's 'block' command to block a group
see #177
2021-11-06 09:18:13 +01:00
René Filip
cfcbe43c4b
use reactions instead of reaction
2021-11-06 01:14:09 +01:00
René Filip
3bd0d97970
activate endpoint and write swagger documentation
2021-11-06 00:43:02 +01:00
René Filip
6bf60a23e6
change react to reactions
2021-11-03 23:27:56 +01:00
René Filip
5aebc46fa6
change remove property to DELETE
2021-11-02 20:10:52 +01:00
René Filip
73f251906b
Finish api proposal, tbd
2021-11-01 19:50:48 +01:00
Bernhard B
d4b2dbea7f
fixed swagger documentation
...
* some endpoints had a wrong HTTP status code in the swagger
documentation.
see #175
2021-11-01 18:52:51 +01:00
René Filip
55d63c90b6
WIP, define new endpoints for send reaction
2021-11-01 18:09:21 +01:00
Bernhard B
2d80ff91a2
use SIGNAL_CLI_CONFIG_DIR env variable in jsonrpc2-helper script
...
* do not hardcode path, but use path specified by SIGNAL_CLI_CONFIG_DIR
env variable.
2021-11-01 10:55:07 +01:00
Bernhard B
80805c069d
added new API endpoints to show/hide typing indicators
...
see #166
2021-10-25 19:45:19 +02:00
Bernhard B
d1190f8299
improved log message
...
* notify users that registering a phone number only works in
normal/native mode.
2021-10-20 21:49:11 +02:00
Bernhard B
405b7f0f9e
fixed bug in create group endpoint
...
* the group id of the newly created signal group wasn't correctly
returned in json-rpc mode.
2021-10-20 19:16:09 +02:00
Bernhard B
6c28b782fa
return mode (normal,native,json-rpc) in "about" endpoint
2021-10-20 18:56:25 +02:00
Bernhard B
02f360e42c
updated swagger documentation for receive endpoint
2021-10-18 18:45:41 +02:00
Bernhard B
795b4c3f99
Do not set any deadlines in websocket connection
...
* The websocket rfc doesn't specify what to do when a client doesn't
respond to a ping message. It just states that it must respond with a
pong message. But it is unclear what should happen when the client
doesn't respond with a pong message. So instead of closing the
connection, we are keeping the connection open as long as possible.
2021-10-10 22:37:16 +02:00
Bernhard B
094e42059d
improved error handling in jsonrpc2 client
2021-10-10 18:42:39 +02:00
Bernhard B
0023ebaf83
fixed bug in jsonrpc2-helper script
...
* only look for registered numbers in the signal-cli-config/data folder
and do NOT traverse the whole signal-cli-config folder (as there might
be other files starting with '+...'
2021-10-10 18:39:03 +02:00
Bernhard B
9fad77c922
added IsPhoneNumber helper function to utils
2021-10-10 18:03:27 +02:00
Bernhard B
82fd577d48
remove any existing named pipe before creating a new one
2021-10-10 17:57:36 +02:00
Bernhard B
d7825a4da8
only add numbers to jsonrpc2.yml config file; skip any other files
...
starting with a '+'
2021-10-10 17:54:08 +02:00
Bernhard B
0baa20f750
added websocket ping/pong mechanism (as described in rfc6455)
2021-10-06 21:40:37 +02:00
Bernhard B
c1e514b29c
improved log output
2021-09-29 09:57:04 +02:00
Bernhard B
444e7d7608
replaced info log with debug log
2021-09-14 18:21:06 +02:00
Bernhard B
760883bdca
implemented receive endpoint via websocket connection
2021-09-13 22:09:33 +02:00
Bernhard B
d8a5ddfc98
implemented more JSON-RPC endpoints
2021-09-13 19:57:51 +02:00
Bernhard B
f894364665
added support for sending messages via JSON-RPC
2021-09-12 18:11:45 +02:00
Bernhard B
a3843b9f12
added another sanity check
2021-09-11 23:11:11 +02:00
Bernhard B
2a0347eea2
added more sanity checks + restructured code a bit
2021-09-11 23:03:01 +02:00
Bernhard B
310d07536e
formatted code with gofmt
2021-09-11 22:32:31 +02:00
Bernhard B
8617aacba5
added jsonrpc2-helper script
2021-09-11 22:31:43 +02:00
Bernhard B
27b7f28c42
formatted code with gofmt
2021-09-11 22:30:56 +02:00
Bernhard B
ae857c7a69
started working on JSON-RPC integration
...
* still WIP
2021-09-11 22:28:55 +02:00
Bernhard B
314f9c47e2
fixed swaggo annotations
2021-09-05 18:59:37 +02:00
Bernhard B
1295fd7452
move signal-cli specific code into own library
...
* still WIP and APIs might change lateron, but at least it compiles.
see #150
2021-09-05 18:25:12 +02:00
Bernhard B
719d8d6400
increased default command timeout to 120 seconds
...
* libsignal-client performs really bad on armv7 now, so
increase the default command timeout to 120 seconds to make
it somehow useable on armv7.
see #145
2021-07-29 20:55:28 +02:00