358 Commits

Author SHA1 Message Date
Bernhard B
eb34542216 increased timeout to account for slow startup on slow machines 2026-04-01 22:47:21 +02:00
Bernhard B
7687c5240b added API endpoints for pinning/unpinning messages in groups
see #820
2026-04-01 22:47:21 +02:00
Bernhard B
5c6fd14944 improved error handling in jsonrpc2-helper 2026-03-22 22:18:16 +01:00
Bernhard B
6ca5ff1aee added expand query parameter to /groups endpoints
see #790
2026-03-21 21:38:49 +01:00
Bernhard B
f142e8089c added new json-rpc-native mode 2026-03-21 19:49:26 +01:00
Bernhard B
d45b906aa9 regenerated swagger documentation 2026-03-21 19:48:10 +01:00
Bernhard B
5435b12e81 Revert "added query parameter 'use_only_uuid_as_identifier' to group(s) GET endpoint"
This reverts commit 44ce4fe83d964f39d6677fa46186bc1126fd069c.
2026-03-19 17:24:30 +01:00
Bernhard B
07260c0811 fixed bug in json-rpc webhook
* only post messages that were received via 'receive'

see #813
2026-03-14 15:54:49 +01:00
Bernhard B
baca954dcc updated swagger documentation 2026-03-13 21:24:15 +01:00
Bernhard B
44ce4fe83d added query parameter 'use_only_uuid_as_identifier' to group(s) GET endpoint
see #790
2026-03-13 21:18:28 +01:00
Bernhard B.
fcc62a7fe7
Merge branch 'master' into feature/ignore-avatars-stickers 2026-03-07 23:17:01 +01:00
Bernhard B
d7ffe54883 removed debug logging 2026-03-07 22:58:57 +01:00
Brian (bex) Exelbierd
2760fe0b70 add --ignore-avatars and --ignore-stickers support
Expose the new signal-cli v0.14.0 --ignore-avatars and --ignore-stickers
flags across all modes:

* JSON-RPC mode: JSON_RPC_IGNORE_AVATARS and JSON_RPC_IGNORE_STICKERS
  environment variables
* Normal/Native mode: ignore_avatars and ignore_stickers query parameters
  on the /v1/receive endpoint
* Auto-receive scheduler: AUTO_RECEIVE_SCHEDULE_IGNORE_AVATARS and
  AUTO_RECEIVE_SCHEDULE_IGNORE_STICKERS environment variables

Follows the existing pattern of --ignore-attachments and --ignore-stories.

Refs #776, #723

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-07 22:52:26 +01:00
Bernhard B
4fb1be6657 removed fifo pathname from json-rpc config
* not needed anymore
2026-03-07 21:17:45 +01:00
Bernhard B
af34a0881c fixed small bug in json-rpc reconnect mechanism
* after we successfully reconnected, wait for new data
2026-03-05 20:50:42 +01:00
Bernhard B
c7cb9ab13e improved json-rpc reconnection logic
* when the connection the signal-cli daemon is lost in json-rpc mode,
  the open connection will be closed and a new connection attempt will
  be made. If after 15 connection attempts we are unable to connect to
  the signal-cli daemon, we give up and abort.
2026-03-05 20:43:22 +01:00
Bernhard B
af18c7aea8 switched to signal-cli daemon mode
* this gets rid off the ugly netcat workaround and should improve
  the general stability of the connection to the signal-cli binary
  in json-rpc mode.
2026-03-05 20:41:17 +01:00
Bernhard B.
d080e8d478
Merge pull request #793 from revilo951/master
Swap PendingRequests and PendingInvites assignments
2026-03-03 21:25:24 +01:00
Bernhard B
a9c367a5b1 updated golang buildcontainer 2026-03-03 21:16:20 +01:00
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
dependabot[bot]
4a2bf9182d
Bump github.com/sirupsen/logrus from 1.9.0 to 1.9.1 in /src
Bumps [github.com/sirupsen/logrus](https://github.com/sirupsen/logrus) from 1.9.0 to 1.9.1.
- [Release notes](https://github.com/sirupsen/logrus/releases)
- [Changelog](https://github.com/sirupsen/logrus/blob/master/CHANGELOG.md)
- [Commits](https://github.com/sirupsen/logrus/compare/v1.9.0...v1.9.1)

---
updated-dependencies:
- dependency-name: github.com/sirupsen/logrus
  dependency-version: 1.9.1
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-05 02:36:43 +00:00
dependabot[bot]
b6f619b7db
Bump golang.org/x/crypto from 0.36.0 to 0.45.0 in /src
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.36.0 to 0.45.0.
- [Commits](https://github.com/golang/crypto/compare/v0.36.0...v0.45.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-version: 0.45.0
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-20 02:01:57 +00:00
Bernhard B
d6488d6c8e fixed escaping of formatting characters
see #757
2025-11-01 23:31:45 +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
Bernhard B.
3c2a8a2156
Merge pull request #740 from Era-Dorta/remote-delete
Add message deletion endpoint
2025-09-10 22:18:06 +02:00
Era Dorta
de2cb043fc fix: use getRecipientType instead of HasPrefix in RemoteDelete 2025-09-09 13:29:17 +01:00
Bernhard B.
cfc652dfbc
Merge pull request #741 from Era-Dorta/contributing-readme
docs: add contributing.md and additional instructions on building the docs
2025-09-09 12:50:16 +02:00
Bernhard B
7222b931ae fixed bug in phone number verification
* allow whitespaces in phone number

see #743
2025-09-08 14:36:24 +02:00
Era Dorta
ae342a4403 Better wording in readme in docs 2025-09-04 22:17:04 +01:00
Era Dorta
3eb3db0a9f docs: add contributing.md and additional instructions on building the docs. 2025-08-29 20:19:25 +02:00
Era Dorta
af3eadbbc0 Replace the handler from post to delete 2025-08-29 19:59:56 +02:00
Era Dorta
f078e1a2ae Add documentation 2025-08-29 19:55:45 +02: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