Skip to content

Commit

Permalink
Add 0.19.6 (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
MV-GH authored Nov 12, 2024
1 parent 95f56f2 commit bdcb3f4
Show file tree
Hide file tree
Showing 5 changed files with 209 additions and 19 deletions.
72 changes: 68 additions & 4 deletions lemmy_spec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
openapi: 3.0.3
info:
title: Unofficial Lemmy OpenAPI Documentation
version: v0.19.5
version: v0.19.6
license:
name: AGPLv3
url: https://www.gnu.org/licenses/agpl-3.0.en.html#license-text
Expand Down Expand Up @@ -1536,7 +1536,7 @@ paths:
responses:
'200':
description: OK
summary: '[MANUAL] Logout your user, which clears the cookie and invalidates the auth token'
summary: Invalidate the currently used auth token.
/post/like/list:
get:
tags:
Expand Down Expand Up @@ -1619,6 +1619,23 @@ paths:
'200':
description: OK
summary: Hide a post from list views.
/admin/registration_application:
get:
tags:
- Admin
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/GetRegistrationApplication'
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/RegistrationApplicationResponse'
summary: Get the application a user submitted when they first registered their account
components:
securitySchemes:
bearerAuth:
Expand Down Expand Up @@ -4021,6 +4038,9 @@ components:
limit:
title: Search.limit
type: integer
post_title_only:
title: Search.post_title_only
type: boolean
required:
- q
additionalProperties: false
Expand Down Expand Up @@ -4120,6 +4140,28 @@ components:
additionalProperties: false
title: CommentView
type: object
ImageDetails:
properties:
link:
title: ImageDetails.link
type: string
width:
title: ImageDetails.width
type: integer
height:
title: ImageDetails.height
type: integer
content_type:
title: ImageDetails.content_type
type: string
required:
- link
- width
- height
- content_type
additionalProperties: false
title: ImageDetails
type: object
PostAggregates:
properties:
post_id:
Expand Down Expand Up @@ -4165,6 +4207,9 @@ components:
community:
$ref: '#/components/schemas/Community'
title: PostView.community
image_details:
$ref: '#/components/schemas/ImageDetails'
title: PostView.image_details
creator_banned_from_community:
title: PostView.creator_banned_from_community
type: boolean
Expand Down Expand Up @@ -4923,6 +4968,12 @@ components:
show_hidden:
title: GetPosts.show_hidden
type: boolean
show_read:
title: GetPosts.show_read
type: boolean
show_nsfw:
title: GetPosts.show_nsfw
type: boolean
page_cursor:
$ref: '#/components/schemas/PaginationCursor'
title: GetPosts.page_cursor
Expand Down Expand Up @@ -6739,11 +6790,14 @@ components:
additionalProperties: false
title: ListRegistrationApplications
type: object
RegistrationApplicationId:
title: RegistrationApplicationId
type: integer
RegistrationApplication:
properties:
id:
$ref: '#/components/schemas/RegistrationApplicationId'
title: RegistrationApplication.id
type: integer
local_user_id:
$ref: '#/components/schemas/LocalUserId'
title: RegistrationApplication.local_user_id
Expand Down Expand Up @@ -6803,8 +6857,8 @@ components:
ApproveRegistrationApplication:
properties:
id:
$ref: '#/components/schemas/RegistrationApplicationId'
title: ApproveRegistrationApplication.id
type: integer
approve:
title: ApproveRegistrationApplication.approve
type: boolean
Expand Down Expand Up @@ -7181,3 +7235,13 @@ components:
additionalProperties: false
title: HidePost
type: object
GetRegistrationApplication:
properties:
person_id:
$ref: '#/components/schemas/PersonId'
title: GetRegistrationApplication.person_id
required:
- person_id
additionalProperties: false
title: GetRegistrationApplication
type: object
23 changes: 20 additions & 3 deletions partials/api_routes.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
openapi: "3.0.3"
info:
title: Unofficial Lemmy OpenAPI Documentation
version: v0.19.5
version: v0.19.6
license:
name: AGPLv3
url: https://www.gnu.org/licenses/agpl-3.0.en.html#license-text
Expand Down Expand Up @@ -1596,8 +1596,7 @@ paths:
responses:
200:
description: OK
summary: '[MANUAL] Logout your user, which clears the cookie and invalidates the
auth token'
summary: 'Invalidate the currently used auth token.'
/post/like/list:
get:
tags:
Expand Down Expand Up @@ -1680,3 +1679,21 @@ paths:
200:
description: OK
summary: Hide a post from list views.
/admin/registration_application:
get:
tags:
- Admin
requestBody:
content:
application/json:
schema:
$ref: 'components.yaml#/components/schemas/GetRegistrationApplication'
responses:
200:
description: OK
content:
application/json:
schema:
$ref: 'components.yaml#/components/schemas/RegistrationApplicationResponse'
summary: Get the application a user submitted when they first registered their
account
33 changes: 27 additions & 6 deletions partials/auto_gen_types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export interface AdminPurgePostView {


export interface ApproveRegistrationApplication {
id: bigint;
id: RegistrationApplicationId;
approve: boolean;
deny_reason?: string;
}
Expand Down Expand Up @@ -841,6 +841,8 @@ export interface GetPosts {
liked_only?: boolean;
disliked_only?: boolean;
show_hidden?: boolean;
show_read?: boolean;
show_nsfw?: boolean;
page_cursor?: PaginationCursor;
}

Expand All @@ -859,6 +861,11 @@ export interface GetPrivateMessages {
}


export interface GetRegistrationApplication {
person_id: PersonId;
}


export interface GetReplies {
sort?: CommentSortType;
page?: bigint;
Expand Down Expand Up @@ -933,6 +940,14 @@ export interface HidePost {
}


export interface ImageDetails {
link: string;
width: bigint;
height: bigint;
content_type: string;
}


export interface Instance {
id: InstanceId;
domain: string;
Expand Down Expand Up @@ -1003,6 +1018,8 @@ export type LemmyErrorType =
| { error: "not_top_admin" }
| { error: "not_top_mod" }
| { error: "not_logged_in" }
| { error: "not_higher_mod" }
| { error: "not_higher_admin" }
| { error: "site_ban" }
| { error: "deleted" }
| { error: "banned_from_community" }
Expand Down Expand Up @@ -1138,7 +1155,9 @@ export type LemmyErrorType =
| { error: "cant_block_local_instance" }
| { error: "url_without_domain" }
| { error: "inbox_timeout" }
| { error: "unknown"; message: string };
| { error: "unknown"; message: string }
| { error: "cant_delete_site" }
| { error: "url_length_overflow" };


export interface LinkMetadata {
Expand Down Expand Up @@ -1719,9 +1738,6 @@ export interface PersonAggregates {
}


export type PersonBlockId = bigint;


export interface PersonBlockView {
person: Person;
target: Person;
Expand Down Expand Up @@ -1874,6 +1890,7 @@ export interface PostView {
post: Post;
creator: Person;
community: Community;
image_details?: ImageDetails;
creator_banned_from_community: boolean;
banned_from_community: boolean;
creator_is_moderator: boolean;
Expand Down Expand Up @@ -2001,7 +2018,7 @@ export interface Register {


export interface RegistrationApplication {
id: bigint;
id: RegistrationApplicationId;
local_user_id: LocalUserId;
answer: string;
admin_id?: PersonId;
Expand All @@ -2010,6 +2027,9 @@ export interface RegistrationApplication {
}


export type RegistrationApplicationId = bigint;


export interface RegistrationApplicationResponse {
registration_application: RegistrationApplicationView;
}
Expand Down Expand Up @@ -2133,6 +2153,7 @@ export interface Search {
listing_type?: ListingType;
page?: bigint;
limit?: bigint;
post_title_only?: boolean;
}


Expand Down
Loading

0 comments on commit bdcb3f4

Please sign in to comment.