162 Commits

Author SHA1 Message Date
Era Dorta
40f299deff fix: add omitempty and generate swagger json with required fields 2026-04-06 16:57:14 +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
6ca5ff1aee added expand query parameter to /groups endpoints
see #790
2026-03-21 21:38:49 +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
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
a9c367a5b1 updated golang buildcontainer 2026-03-03 21:16:20 +01:00
Dan Gabel
eece5f4e92 remove ListContact, extended ListContacts to accept uuid 2026-02-12 21:52:22 -06:00
Dan Gabel
6ec6e198d7 Adds --all-recipient handling for ListContact endpoints 2026-02-12 15:36:42 -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
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
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
af3eadbbc0 Replace the handler from post to delete 2025-08-29 19:59:56 +02:00
Era Dorta
bcb2100169 Fix comments for the RemoteDelete function 2025-08-28 00:32:10 +02:00
Era Dorta
9325022e46 Add message deletion endpoint 2025-08-28 00:27:09 +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
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
6eacfb0890 added support for link previews
see #439
2025-05-01 23:29:23 +02:00
Bernhard B
40bbdc63f1 added env variable LOG_LEVEL
* this environment variable allows to change the log level of the
  application
2025-04-22 23:35:01 +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
a30c63f1b1 added DEFAULT_SIGNAL_TEXT_MODE env variable
* allows to set the default text mode globally.
  The setting is only used when the 'text_mode' is not
  explicitly set in the payload.

see #671
2025-03-20 22:24:03 +01:00
Bernhard B
8346f9072a fixed error in swagger documentation
* set pin request needs to be a POST request
* added payload to swagger documentation
2025-03-16 00:24:16 +01:00
Bernhard B
4404929c90 added API endpoints to set/remove a pin
see #660
2025-02-26 22:26:13 +01:00
Malcolm Crum
4b05e8b409
Path parameter is required 2025-02-25 20:31:00 +11:00
Bernhard B
4f07a64d68 improved swagger documentation
* documented styling options in v2/send endpoint
2025-02-09 22:40:01 +01:00
Bernhard B
49f121a249 implemented plugin endpoints as shared objects
* the plugin mechanism is an optional extension to the REST
  API. As the plugin mechanism depends on gopher-lua (and a bunch of
  gopher-lua plugins), it adds quite some dependencies to the project.
  Since most of the REST API users won't need the plugin mechanism, it
  makes sense to move that functionality (including all the
  dependencies) to a dedicated shared object, which gets loaded when
  needed.
2025-02-03 23:23:07 +01:00
Bernhard B
3752538e9b added plugin mechanism 2025-01-06 22:08:29 +01:00
Bernhard B
d5a1d252a2 fixed swagger API documentation 2024-12-24 23:16:50 +01:00
Bernhard B
a70c2994c3 added possibility to escape formatting characters
see #562
2024-12-24 23:05:22 +01:00
Bernhard B
db97de3d81 fixed swagger documentation for search endpoint
see #622
2024-11-29 22:21:31 +01:00
Bernhard B
2c4ef753ab added expiration_time to Update Groups endpoint
see #616
2024-11-15 22:43:02 +01:00
Bernhard B.
6b08159fe3
Merge pull request #609 from crummy/master
Swagger fixes
2024-11-04 21:59:48 +01:00
crummy
3eeaafca4d Correct field name 2024-11-04 19:41:14 +13:00
crummy
d652d418d3 Return upon failure 2024-11-01 21:15:23 +13:00
crummy
1237c528f5 Found a proper way to escape it 2024-10-28 21:00:52 +13:00
crummy
d17e3d7eb9 Handle phone numbers that start with "%25" (as + is commonly escaped with) 2024-10-28 20:49:29 +13:00
crummy
8ac02d28eb Correct "number" - it's actually the phone number 2024-10-28 13:37:50 +13:00
crummy
26a5a6039b Update swagger files from code, with swag tool 2024-10-28 13:07:05 +13: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
Jonathan Beaulieu
47390f85df Add missing groupid parameter
Was missing from delete and add group admin and member.
2024-09-13 11:24:48 +00: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