Commit graph

112 commits

Author SHA1 Message Date
37be8419d7 Merge remote-tracking branch 'origin/combined_reports' into image-api-rework 2025-01-03 15:51:04 +01:00
8cbffad86a build full url 2024-12-17 11:10:06 +01:00
4bf613ef68 fix upload urls 2024-12-17 11:06:07 +01:00
c862bd816e Rework image api 2024-12-13 12:47:46 +01:00
e7957b4db3 Merge remote-tracking branch 'origin/main' into combined_reports 2024-12-07 21:14:14 -05:00
792bed9a01
Changes for api v4 (#410)
* Instance blocks with mod log entry and expiration

* 0.20.0-instance-blocks.0

* fix methods

* 0.20.0-instance-blocks.1

* remove params

* 0.20.0-instance-blocks.2

* pass domain

* 0.20.0-instance-blocks.3

* add file

* 0.20.0-instance-blocks.4

* pass instance domain

* 0.20.0-instance-blocks.5

* Changes for api v4

* 0.20.0-api-v4.0

* 0.20.0-api-v4.1

* remove param

* 0.20.0-api-v4.2

* remove GetSiteResponse.my_user

* 0.20.0-api-v4.3

* 0.20.0-api-v4.4

* fix path

* 0.20.0-api-v4.5

* fix path

* 0.20.0-api-v4.6

* 0.20.0-api-v4.7

* 0.20.0-api-v4.8

* move block endpoints

* 0.20.0-api-v4.9

* fix path

* 0.20.0-api-v4.10

* fix

* 0.20.0-api-v4.11

* change /admin/block_instance to /admin/instance/block (and same for allow)

* 0.20.0-api-v4.12

* fix mark all read

* 0.20.0-api-v4.13

* fix user endpoints

* 0.20.0-api-v4.14

* add MarkManyPostsAsRead

* change account route

* 0.20.0-api-v4.15

* rename mention mark as read

* 0.20.0-api-v4.16

---------

Co-authored-by: Dessalines <tyhou13@gmx.com>
2024-12-07 17:53:44 -05:00
54e4b0a707 Fix comment. 2024-12-02 17:39:06 -05:00
c4acf02b89 Merge remote-tracking branch 'origin/main' into combined_reports 2024-12-02 17:36:46 -05:00
d3d7f81741 Adding list reports. 2024-12-02 17:28:27 -05:00
efffc3c6e8
Instance blocks with mod log entry and expiration (#409)
* Instance blocks with mod log entry and expiration

* 0.20.0-instance-blocks.0

* fix methods

* 0.20.0-instance-blocks.1

* remove params

* 0.20.0-instance-blocks.2

* pass domain

* 0.20.0-instance-blocks.3

* add file

* 0.20.0-instance-blocks.4

* pass instance domain

* 0.20.0-instance-blocks.5
2024-12-02 17:26:30 -05:00
22fbe7eaeb
Private community (#371)
* Private community

* 0.20.0-private-community.1

* add missing files

* 0.20.0-private-community.2

* update

* 0.20.0-private-community.3

* rename

* 0.20.0-private-community.4

* change

* 0.20.0-private-community.5

* add file

* 0.20.0-private-community.6

* update

* 0.20.0-private-community.7

* 0.20.0-private-community.8

* lint

* 0.20.0-private-community.9

* fix null

* Updating types from main.

---------

Co-authored-by: Dessalines <tyhou13@gmx.com>
2024-11-07 12:19:30 -05:00
Alexander Harding
e284e7df14
Add support for request abort signal (#387) 2024-11-01 10:35:35 -04:00
Dessalines
482e4c65d0
Adding get random community, updating types from main. (#366) 2024-10-02 12:53:36 -04:00
Dessalines
3398af0f19
Update types 3 (#359)
* Updating types from main.

* 0.20.0-alpha.13

* 0.20.0-alpha.14

* Adding tagline http calls.

* 0.20.0-alpha.15

* Regenerating types from main.

- Also adding exports from other_types to node script.

* 0.20.0-alpha.16

* Add list custom emojis (#360)

* 0.20.0-alpha.17

---------

Co-authored-by: matc-pub <161147791+matc-pub@users.noreply.github.com>
2024-09-30 08:14:59 -04:00
Dessalines
eb84a74b99
Sso support dess (#348)
* WIP Implemented OAuth

* Added OAUTH2 OIDC support

* update based on the latest changes in the lemmy repo PR

* updating types based on the latest changes in the Lemmy PR

* removed the auto_approve_application

* support registration application with sso

* update to reflect the changes in lemmy

* updated the latest types from main

---------

Co-authored-by: Anthony Lawn <thepaperpilot@gmail.com>
Co-authored-by: privacyguard <privacyguard@users.noreply.github.com>
2024-09-18 09:36:47 -04:00
SleeplessOne1917
8a65fc0ca5
0.19.6 update (#326)
* Generate types needed to use v0.19.6 API

* Add method for getting individual application
2024-08-03 09:45:37 -04:00
26d4656093 Fixing 2024-07-31 17:58:41 -04:00
Dessalines
261791dddc
Fixing error lint. (#324) 2024-07-31 21:54:25 +00:00
matc-pub
0923a67c93
Allow falsey get parameter values (#257) 2024-04-15 13:04:19 +00:00
Richard Schwab
b577deee2f
Add missing docs for logout endpoint (#256) 2024-03-29 14:03:35 -04:00
Dessalines
5157c28aba
Add list media (#247)
* Adding listMedia, and a few more additions from main.

* 0.19.4-alpha.7

* Make local_user optional.

* Adding listAllMedia.

* 0.19.4-alpha.9

* Default param.

* 0.19.4-alpha.10

* Move list_media to /account/

* 0.19.4-alpha.12

* Adding other is_banned fields.

* 0.19.4-alpha.13

* Adding more from main.

---------

Co-authored-by: SleeplessOne1917 <28871516+SleeplessOne1917@users.noreply.github.com>
2024-03-26 18:36:20 -04:00
Alexander Harding
e0b12ffbb6
Remove dependencies (#251) 2024-03-20 01:46:31 +00:00
Dessalines
42874f0348
Adding vote display modes and other additions from main. (#246) 2024-03-13 15:40:53 -04:00
Dessalines
c89acdd8df
Add list media (#244)
* Adding listMedia, and a few more additions from main.

* 0.19.4-alpha.7
2024-03-06 00:49:47 +00:00
Dessalines
97a3b59e8a
Adding hide post. (#243)
Co-authored-by: SleeplessOne1917 <28871516+SleeplessOne1917@users.noreply.github.com>
2024-03-01 17:05:36 -05:00
Maarten Vercruysse
c01fc0c017
Fix jsdoc comment for listCommentLikes (#231)
* Fix jsdoc comment for listCommentLikes

* Fix another jsdoc comment
2024-01-23 01:13:57 +00:00
Dessalines
b2b290b69b
Use string type instead of any for exportSettings. Fixes #229 (#230) 2024-01-10 03:00:00 +00:00
Dessalines
81684bc84e
Adding admin view votes. (#225)
* Adding admin view votes.

* Forgot to add endpoints.

* v0.19.2-alpha.1
2024-01-03 18:54:56 +00:00
Dessalines
6530816821
Revert "Upgrading deps, removing cross_fetch." (#217)
* Revert "Upgrading deps, removing cross_fetch. (#216)"

This reverts commit 50e04a9703.

* Adding back in cross-fetch.

* Remove pointless await.
2023-11-29 12:24:43 -05:00
Dessalines
50e04a9703
Upgrading deps, removing cross_fetch. (#216) 2023-11-29 08:27:09 +00:00
8f4860c01b
Properly handle pictrs delete image response (#214) 2023-11-15 08:37:40 -05:00
8d2364559d
Remove separate auth params for image endpoints (#212)
These use the same header/cookie auth now as all other api endpoints,
so there is no reason for separate auth param.
2023-11-14 13:26:25 -05:00
Dessalines
991af27e42
Updating types from lemmy. (#209) 2023-10-31 09:00:44 -04:00
c47102bfb1
Add logout endpoint (fixes #206) (#208) 2023-10-31 08:44:04 -04:00
ArseniyGl
79710354bd
#186 wrap bare strings to Error object (#207)
Co-authored-by: Arseniy Golushkov <ars@MacBook-Pro-Arseniy.local>
2023-10-26 11:56:24 -04:00
Maarten Vercruysse
e65588ae3e
Fix other successResponses (#204)
* Fix other successResponses

* Remove remnants

---------

Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-10-21 08:44:04 -04:00
TheBrokenRail
6c7030cb13
Fix updateTotp Type Information (#205) 2023-10-20 20:55:23 -04:00
Maarten Vercruysse
a616cf017d
Fix MarkPostAsRead, wrong response (#203) 2023-10-20 18:00:59 -04:00
Dessalines
24eed9e7be
Adding mark multiple posts as read, and other API changes. (#201)
* Adding mark multiple posts as read, and other API changes.

* v0.19.0-alpha.10

* Adding animated_images boolean.

* v0.19.0-alpha.11

* Updating successresponses.

* v0.19.0-alpha.12

* Adding a few missing routes.

* Revert "Updating successresponses."

This reverts commit 6de51027d4.

* v0.19.0-alpha.13

* update before rc.3.
2023-10-19 20:22:35 -04:00
Dessalines
140c756ea2
Adding deleteImage endpoint. Fixes #193 (#196) 2023-10-04 17:36:41 -04:00
Dessalines
b4f1bbcd63
Add totp token (#192)
* Adding new TOTP generate and update methods. Fixes #191

* Fix husky mode.
2023-09-27 14:55:29 +00:00
Dessalines
ab7af88a2b
Removing auth and useless interfaces. (#181)
* Removing auth and useless interfaces.

* v0.19.0-rc.8

* v0.19.0-rc.10

* Changing jwt cookie to auth.

* Adding a few types merged from main.

* v0.19.0-rc.11

* Adding blockInstance fn.

* v0.19.0-rc.12
2023-09-25 21:47:28 -04:00
SleeplessOne1917
61d4dbabea
Merge branch 'main' into add_community_hide 2023-09-18 19:47:24 -04:00
576b4b85d9 Adding a set header function. 2023-09-18 18:46:53 -04:00
51b17fe7f9 Adding hide community. Fixes #183 2023-09-18 18:08:34 -04:00
Dessalines
4439d22157
Adding block instance. (#178)
* Adding block instance.

- https://github.com/LemmyNet/lemmy/pull/3869

* v0.19.0-rc.4

* Forgot to add types.

* v0.19.0-rc.5

* Fixing optional site issue.
2023-09-06 08:28:00 -04:00
SleeplessOne1917
b5355233fd
Generate error enum types (#161)
* Generate error enum types

* Remove unnecessary newline

* Catch errors not covered by LemmyErrorType

---------

Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-07-17 11:37:53 -04:00
33519b2be7 Upgrade prettier. 2023-07-12 08:37:34 -04:00
Sander Saarend
d497a1efea
Handle 413 response on image uploads (#154)
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-07-03 17:59:54 -04:00
SleeplessOne1917
f577df0a07
Make fetch function optional (#148) 2023-06-26 18:35:23 -04:00