ligun and sogup

This commit is contained in:
john 2025-05-06 16:31:55 +02:00
parent b6633d6f25
commit 4573048a47
24 changed files with 482 additions and 226 deletions

View file

@ -11,6 +11,8 @@ export interface paths {
query?: {
From?: string
Amount?: number
AuthorId?: string
Author?: string
}
header?: never
path?: never
@ -145,71 +147,26 @@ export interface paths {
patch?: never
trace?: never
}
'/authors/{username}/posts': {
parameters: {
query?: never
header?: never
path?: never
cookie?: never
}
get: {
parameters: {
query?: {
From?: string
Amount?: number
}
header?: never
path: {
username: string
}
cookie?: never
}
requestBody?: never
responses: {
/** @description OK */
200: {
headers: {
[name: string]: unknown
}
content: {
'text/plain': components['schemas']['GetAuthorPostsResponse']
'application/json': components['schemas']['GetAuthorPostsResponse']
'text/json': components['schemas']['GetAuthorPostsResponse']
}
}
}
}
put?: never
post?: never
delete?: never
options?: never
head?: never
patch?: never
trace?: never
}
}
export type webhooks = Record<string, never>
export interface components {
schemas: {
AuthoPostAuthorDto: {
/** Format: uuid */
authorId: string
username: string
}
AuthorPostDto: {
/** Format: uuid */
postId: string
content: string
media: string[]
/** Format: date-time */
createdAt: string
author: components['schemas']['AuthoPostAuthorDto']
}
CreatePostRequest: {
/** Format: uuid */
authorId: string
content: string
media: string[]
media: components['schemas']['CreatePostRequestMedia'][]
}
CreatePostRequestMedia: {
/** Format: uuid */
mediaId: string
/** Format: uri */
url: string
type: string | null
/** Format: int32 */
width: number | null
/** Format: int32 */
height: number | null
}
CreatePostResponse: {
/** Format: uuid */
@ -220,11 +177,6 @@ export interface components {
/** Format: uuid */
next: string | null
}
GetAuthorPostsResponse: {
posts: components['schemas']['AuthorPostDto'][]
/** Format: uuid */
next: string | null
}
PublicPostAuthorDto: {
/** Format: uuid */
authorId: string
@ -235,10 +187,18 @@ export interface components {
/** Format: uuid */
postId: string
content: string
media: string[]
media: components['schemas']['PublicPostMediaDto'][]
/** Format: date-time */
createdAt: string
}
PublicPostMediaDto: {
/** Format: uri */
url: string
/** Format: int32 */
width: number | null
/** Format: int32 */
height: number | null
}
UploadMediaResponse: {
/** Format: uuid */
mediaId: string