blob: 5219ac8b944cfce60be5e2397d19e43323bbd0f8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
|
/**
* This file was auto-generated by openapi-typescript.
* Do not make direct changes to the file.
*/
export interface paths {
"/api/login": {
parameters: {
query?: never;
header?: never;
path?: never;
cookie?: never;
};
get?: never;
put?: never;
/** User login */
post: {
parameters: {
query?: never;
header?: never;
path?: never;
cookie?: never;
};
requestBody: {
content: {
"application/json": {
/** @example john */
username: string;
/** @example password123 */
password: string;
};
};
};
responses: {
/** @description Successfully authenticated */
200: {
headers: {
[name: string]: unknown;
};
content: {
"application/json": {
/** @example xxxxx.xxxxx.xxxxx */
token: string;
};
};
};
/** @description Invalid username or password */
401: {
headers: {
[name: string]: unknown;
};
content: {
"application/json": {
/** @example Invalid credentials */
message: string;
};
};
};
};
};
delete?: never;
options?: never;
head?: never;
patch?: never;
trace?: never;
};
}
export type webhooks = Record<string, never>;
export interface components {
schemas: {
JwtPayload: {
/** @example 123 */
user_id: number;
/** @example john */
username: string;
/** @example John Doe */
display_name: string;
/** @example /images/john.jpg */
icon_path?: string | null;
/** @example false */
is_admin: boolean;
};
};
responses: never;
parameters: never;
requestBodies: never;
headers: never;
pathItems: never;
}
export type $defs = Record<string, never>;
export type operations = Record<string, never>;
|