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
13236b7c66
added /v1/rate-limit-challenge endpoint
...
see #456
2023-12-01 21:29:00 +01:00
Tomek Osika
385a591b32
get accounts
2023-11-12 02:19:13 +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
6feb7078f1
improved misleading comment
2023-10-30 20:00:16 +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
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
b39980e66b
added possibility to update the group description & the avatar
...
see #417
2023-10-03 19:49:36 +02:00
Bernhard B
2474238cb5
fixed typo in struct definition
2023-10-03 19:29: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
Bernhard B
e8bea4b477
Merge pull request #405 from greysonp/add-group-refresh
...
Add the ability to refresh a group.
2023-09-19 22:42:15 +02:00
Greyson Parrelli
4eaf9a971b
Update to a PUT request.
2023-09-09 08:00:33 -04:00
Bernhard B
35e2e903df
made qrcode version configureable via query parameter (e.g
...
?qrcode_version=11)
see #402
2023-09-08 22:45:50 +02:00
Greyson Parrelli
6ec00f4589
Add the ability to refresh a group.
2023-09-06 00:59:14 -04:00
Kostia Rybnikov
068a124a1a
Accept max_messages param
2023-08-31 10:36:52 +03:00
Bernhard B
2f6bbec3e9
added text formatting (bold & italic) for normal/native mode
2023-08-21 18:38:38 +02:00
Bernhard B
4dc19813b6
fixed bug in search endpoint
...
* when multiple accounts are registered, signal-cli expects the account
specified with '-a'. In order to stay backwards compatible, the search
endpoint was extended with an optional number parameter. i.e:
'/search/{number}'. In case only one account is registered, the number
parameter can be omitted.
see #369
2023-05-26 18:09:06 +02:00
Bernhard B
0dd742cb23
extended receive endpoint + AUTO_RECEIVE_SCHEDULE functionality
...
* added timeout, ignore_attachments and ignore_stories query parameter
to receive endpoint.
* added AUTO_RECEIVE_SCHEDULE_RECEIVE_TIMEOUT,
AUTO_RECEIVE_SCHEDULE_IGNORE_ATTACHMENTS and
AUTO_RECEIVE_SCHEDULE_IGNORE_STORIES environment variables to the
AUTO_RECEIVE_SCHEDULE functionality.
see #365
2023-05-14 21:21:38 +02:00
Martin Vasko
19c2f85c03
add stickers support in API and client
2023-04-05 14:37:27 +02:00
Robin THONI
fce14ba049
Added nested object for mentions (direct and quote)
2022-11-03 20:29:32 +01:00
Robin THONI
f89ae911e1
Added support for missing send arguments:
...
- Mentions
- Quote timestamp
- Quote author
- Quote message
- Quote mentions
2022-11-03 19:20:14 +01:00
zeetabit
270278ca30
Bugfix for support attachment base64 and custom filename.
...
Introduce tests for attachment data parsing. Use tests at build stage.
2022-07-31 13:45:29 +02:00
Bernhard B
7747944775
extended unregister API endpoint
...
* added possibility to delete the local data with the
"deleteLocalAccountData" signal-cli command
see #242
2022-05-28 18:50:48 +02:00
Bernhard B
798f897ad1
added trust mode parameter to json-rpc mode
...
see #240
2022-05-08 20:23:54 +02:00
Bernhard B
25775a4c10
implemented trust mode
...
* implemented possibility to set the trust mode globally
see #240
2022-05-06 19:28:23 +02:00
Bernhard B
00ea8809b2
extended trust endpoint
...
* added possibility to trust all known keys. This option doesn't require
the user to provide a safety number, but insted all known keys are
trusted. This option is obviously less secure and should only be used
for testing.
see #237
2022-04-09 09:23:34 +02:00
Bernhard B
0b6bd44838
ran go-fmt on complete sourcecode
2022-04-01 19:08:07 +02:00
Bernhard B
d34fcb905e
added new API endpoints to add/remove admins to/from Signal Groups
...
see #232
2022-03-29 19:20:57 +02:00
Bernhard B
3fcd6221d2
added new REST API endpoints
...
* added endpoint to add members to an existing group
* added endpoint to remove members from an existing group
see #210
2022-03-20 20:39:40 +01:00
Bernhard B
8292eac6fe
fixed small error in API documentation
2022-03-19 19:02:12 +01:00
Bernhard B
cc3277c64a
added 'add device' endpoint
...
see #165
2022-03-19 19:00:48 +01:00
Bernhard B
8a0ce92936
added "update contacts" endpoint
...
see #228
2022-03-13 20:10:15 +01:00
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
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
a6489ce742
Merge pull request #176 from filipre/reactions
...
Reactions Endpoint Proposal
2021-11-06 14:54:13 +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
80805c069d
added new API endpoints to show/hide typing indicators
...
see #166
2021-10-25 19:45:19 +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
0baa20f750
added websocket ping/pong mechanism (as described in rfc6455)
2021-10-06 21:40:37 +02:00
Bernhard B
760883bdca
implemented receive endpoint via websocket connection
2021-09-13 22:09:33 +02:00