155 Commits

Author SHA1 Message Date
revilo951
3a36a04b09
Swap PendingRequests and PendingInvites assignments
Fix for https://github.com/bbernhard/signal-cli-rest-api/issues/792
2026-02-23 11:00:15 +11:00
Bernhard B
1129e5a7be fixed error handling in updateGroupAdmins function
see #790
2026-02-22 22:11:46 +01:00
Bernhard B
5d5fa64f01 code cleanup: removed unused variable 2026-02-17 22:04:07 +01:00
Bernhard B
6c5dcdad2e fixed error handling in updateGroupMembers function
see #790
2026-02-17 22:02:31 +01:00
Dan Gabel
59f9cd3140 revert moving list contact types around 2026-02-12 22:00:42 -06:00
Dan Gabel
eece5f4e92 remove ListContact, extended ListContacts to accept uuid 2026-02-12 21:52:22 -06:00
Dan Gabel
5fcaa2ca2c type cleanup, fix typo 2026-02-12 15:51:21 -06:00
Dan Gabel
6ec6e198d7 Adds --all-recipient handling for ListContact endpoints 2026-02-12 15:36:42 -06:00
Dan Gabel
379ff16ca6 direct uuid contact search 2026-02-11 21:40:20 -06:00
Bernhard B
23c53382c2 return group permissions in groups request
see #781
2026-02-07 00:16:05 +01:00
Bernhard B
7711ad5503 added REST API endpoints for Signal Polls
see #765
2026-01-24 17:37:20 +01:00
Bernhard B
e5e21518a5 reformatted code with gofmt 2026-01-13 22:23:02 +01:00
Bernhard B
354df7472c implemented unregister in json-rpc mode
see #774
2026-01-13 22:21:20 +01:00
Samuel Rodrigues
2e507699c5 Changed the ListDevices endpoint to return the device id, created three new endpoints, one to return the device link to permit new device links without the qrcode, one to remove the linked devices and another to delete local-data 2026-01-08 15:46:13 +00:00
Bernhard B
5714161567 fixed bug in json-rpc mode
* handle 'trust-new-identities' setting in json-rpc mode

see #771
2025-12-08 22:40:03 +01:00
Bernhard B
08cd2bd12c added two new endpoints
* added endpoint to list a contact
* added endpoint to get a contact's avatar
2025-09-30 22:31:10 +02:00
Bernhard B
7c9e9ce04f extended groups POST/PUT request
* added possibility to change permissions with the groups PUT request
* added possibility to change the send messages permission when creating
  a group with the POST request

see #746
2025-09-15 12:37:45 +02:00
Era Dorta
de2cb043fc fix: use getRecipientType instead of HasPrefix in RemoteDelete 2025-09-09 13:29:17 +01:00
Era Dorta
d25a454f39 Fix tab error 2025-08-28 00:40:22 +02:00
Era Dorta
6b3916e597 Remove if statement 2025-08-28 00:37:56 +02:00
Era Dorta
a93eed6e56 Add extra error check after unmarshal 2025-08-28 00:34:41 +02:00
Era Dorta
9325022e46 Add message deletion endpoint 2025-08-28 00:27:09 +02:00
Bernhard B
5330e0dff5 fixed getContainerId() function
* since switching to podman builds in the CI, the getContainerId()
  function wasn't working anymore. As per default the hostname of the
  container is the same as the container id, we use the GetHostname()
  function to get the container id inside the container.
2025-08-26 23:18:14 +02:00
Bernhard B
3b7ade3dad fixed bug in /v2/send request
* added missing linkpreview description parameter

see #732
2025-08-06 22:46:02 +02:00
Bernhard B
aa1924aa8c prefix usernames with 'u:' when creating/updating a group's members 2025-07-25 22:59:00 +02:00
Bernhard B
4102331404 added view_once parameter to send endpoint
see #724
2025-07-17 23:18:41 +02:00
Bernhard B
e9e8731f6b made it possible to modify link state in groups PUT endpoint 2025-07-17 19:02:49 +02:00
Bernhard B
94cf8100ba added possibility to call a webhook when a message is received 2025-06-29 16:42:43 +02:00
Bernhard B
fb6ec6013b format sourcecode with gofmt 2025-06-03 22:19:22 +02:00
Bernhard B
b3a6ee1e5d added new endpoint to return a group's avatar 2025-06-03 22:18:29 +02:00
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
Bernhard B.
4bf70dd456
Merge pull request #573 from ahatius/master
Add support to disable notify-self flag on /v2/send endpoint
2024-08-20 21:43:26 +02:00
Bernhard B
e6ff51e3d8 fixed deadlock in json-rpc mode
* properly unlock mutex to avoid deadlock

see #572
2024-08-09 23:03:22 +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
dc1efc1a14 protect map write with mutex
* in order to make the r.receivedResponsesById map goroutine-safe, a
  mutex was added. This is not particular nice, but rewriting the
  jsonrpc connection handling would be quite a lot of work and has a
  big regression potential. So, if it is not absolutely necessary, I'd
  like to avoid that.

see #555
2024-07-09 21:27:49 +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