@profcomff/api-uilib 2024.7.2-5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/autogen.yaml +3 -0
- package/.github/workflows/publish.yaml +27 -0
- package/LICENSE +28 -0
- package/README.md +29 -0
- package/package.json +23 -0
- package/redocly.yaml +44 -0
- package/src/index.d.ts +24 -0
- package/src/index.ts +59 -0
- package/src/openapi/achievement.ts +506 -0
- package/src/openapi/auth.ts +4022 -0
- package/src/openapi/marketing.ts +213 -0
- package/src/openapi/pinger.ts +895 -0
- package/src/openapi/print.ts +716 -0
- package/src/openapi/services.ts +722 -0
- package/src/openapi/social.ts +488 -0
- package/src/openapi/timetable.ts +2189 -0
- package/src/openapi/userdata.ts +899 -0
- package/tsconfig.json +9 -0
|
@@ -0,0 +1,899 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by openapi-typescript.
|
|
3
|
+
* Do not make direct changes to the file.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
export interface paths {
|
|
7
|
+
"/category": {
|
|
8
|
+
parameters: {
|
|
9
|
+
query?: never;
|
|
10
|
+
header?: never;
|
|
11
|
+
path?: never;
|
|
12
|
+
cookie?: never;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* Get Categories
|
|
16
|
+
* @description Получить все категории
|
|
17
|
+
*/
|
|
18
|
+
get: operations["get_categories_category_get"];
|
|
19
|
+
put?: never;
|
|
20
|
+
/**
|
|
21
|
+
* Create Category
|
|
22
|
+
* @description Создать категорию пользовательских данных. Получить категорию можно будет со скоупами, имена которых в category_inp.scopes
|
|
23
|
+
* Ручка обновит документацию
|
|
24
|
+
*/
|
|
25
|
+
post: operations["create_category_category_post"];
|
|
26
|
+
delete?: never;
|
|
27
|
+
options?: never;
|
|
28
|
+
head?: never;
|
|
29
|
+
patch?: never;
|
|
30
|
+
trace?: never;
|
|
31
|
+
};
|
|
32
|
+
[path: `/category/${integer}/param`]: {
|
|
33
|
+
parameters: {
|
|
34
|
+
query?: never;
|
|
35
|
+
header?: never;
|
|
36
|
+
path?: never;
|
|
37
|
+
cookie?: never;
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* Get Params
|
|
41
|
+
* @description Получить все параметры категории
|
|
42
|
+
*/
|
|
43
|
+
get: operations["get_params_category__category_id__param_get"];
|
|
44
|
+
put?: never;
|
|
45
|
+
/**
|
|
46
|
+
* Create Param
|
|
47
|
+
* @description Создать поле внутри категории. Ответ на пользовательские данные будет такой {..., category: {...,param: '', ...}}
|
|
48
|
+
*/
|
|
49
|
+
post: operations["create_param_category__category_id__param_post"];
|
|
50
|
+
delete?: never;
|
|
51
|
+
options?: never;
|
|
52
|
+
head?: never;
|
|
53
|
+
patch?: never;
|
|
54
|
+
trace?: never;
|
|
55
|
+
};
|
|
56
|
+
[path: `/category/${integer}/param/${integer}`]: {
|
|
57
|
+
parameters: {
|
|
58
|
+
query?: never;
|
|
59
|
+
header?: never;
|
|
60
|
+
path?: never;
|
|
61
|
+
cookie?: never;
|
|
62
|
+
};
|
|
63
|
+
/**
|
|
64
|
+
* Get Param
|
|
65
|
+
* @description Получить параметр по айди
|
|
66
|
+
*/
|
|
67
|
+
get: operations["get_param_category__category_id__param__id__get"];
|
|
68
|
+
put?: never;
|
|
69
|
+
post?: never;
|
|
70
|
+
/**
|
|
71
|
+
* Delete Param
|
|
72
|
+
* @description Удалить параметр внутри категории
|
|
73
|
+
*/
|
|
74
|
+
delete: operations["delete_param_category__category_id__param__id__delete"];
|
|
75
|
+
options?: never;
|
|
76
|
+
head?: never;
|
|
77
|
+
/**
|
|
78
|
+
* Patch Param
|
|
79
|
+
* @description Обновить параметр внутри категории
|
|
80
|
+
*/
|
|
81
|
+
patch: operations["patch_param_category__category_id__param__id__patch"];
|
|
82
|
+
trace?: never;
|
|
83
|
+
};
|
|
84
|
+
[path: `/category/${integer}`]: {
|
|
85
|
+
parameters: {
|
|
86
|
+
query?: never;
|
|
87
|
+
header?: never;
|
|
88
|
+
path?: never;
|
|
89
|
+
cookie?: never;
|
|
90
|
+
};
|
|
91
|
+
/**
|
|
92
|
+
* Get Category
|
|
93
|
+
* @description Получить категорию
|
|
94
|
+
*/
|
|
95
|
+
get: operations["get_category_category__id__get"];
|
|
96
|
+
put?: never;
|
|
97
|
+
post?: never;
|
|
98
|
+
/**
|
|
99
|
+
* Delete Category
|
|
100
|
+
* @description Удалить категорию
|
|
101
|
+
*/
|
|
102
|
+
delete: operations["delete_category_category__id__delete"];
|
|
103
|
+
options?: never;
|
|
104
|
+
head?: never;
|
|
105
|
+
/**
|
|
106
|
+
* Patch Category
|
|
107
|
+
* @description Обновить категорию
|
|
108
|
+
*/
|
|
109
|
+
patch: operations["patch_category_category__id__patch"];
|
|
110
|
+
trace?: never;
|
|
111
|
+
};
|
|
112
|
+
"/source": {
|
|
113
|
+
parameters: {
|
|
114
|
+
query?: never;
|
|
115
|
+
header?: never;
|
|
116
|
+
path?: never;
|
|
117
|
+
cookie?: never;
|
|
118
|
+
};
|
|
119
|
+
/**
|
|
120
|
+
* Get Sources
|
|
121
|
+
* @description Получить все источники данных
|
|
122
|
+
*/
|
|
123
|
+
get: operations["get_sources_source_get"];
|
|
124
|
+
put?: never;
|
|
125
|
+
/**
|
|
126
|
+
* Create Source
|
|
127
|
+
* @description Создать источник данных
|
|
128
|
+
*/
|
|
129
|
+
post: operations["create_source_source_post"];
|
|
130
|
+
delete?: never;
|
|
131
|
+
options?: never;
|
|
132
|
+
head?: never;
|
|
133
|
+
patch?: never;
|
|
134
|
+
trace?: never;
|
|
135
|
+
};
|
|
136
|
+
[path: `/source/${integer}`]: {
|
|
137
|
+
parameters: {
|
|
138
|
+
query?: never;
|
|
139
|
+
header?: never;
|
|
140
|
+
path?: never;
|
|
141
|
+
cookie?: never;
|
|
142
|
+
};
|
|
143
|
+
/**
|
|
144
|
+
* Get Source
|
|
145
|
+
* @description Получить источник данных
|
|
146
|
+
*/
|
|
147
|
+
get: operations["get_source_source__id__get"];
|
|
148
|
+
put?: never;
|
|
149
|
+
post?: never;
|
|
150
|
+
/**
|
|
151
|
+
* Delete Source
|
|
152
|
+
* @description Удалить источник данных
|
|
153
|
+
*/
|
|
154
|
+
delete: operations["delete_source_source__id__delete"];
|
|
155
|
+
options?: never;
|
|
156
|
+
head?: never;
|
|
157
|
+
/**
|
|
158
|
+
* Patch Source
|
|
159
|
+
* @description Обновить источник данных
|
|
160
|
+
*/
|
|
161
|
+
patch: operations["patch_source_source__id__patch"];
|
|
162
|
+
trace?: never;
|
|
163
|
+
};
|
|
164
|
+
[path: `/user/${integer}`]: {
|
|
165
|
+
parameters: {
|
|
166
|
+
query?: never;
|
|
167
|
+
header?: never;
|
|
168
|
+
path?: never;
|
|
169
|
+
cookie?: never;
|
|
170
|
+
};
|
|
171
|
+
/**
|
|
172
|
+
* Get User Info
|
|
173
|
+
* @description Получить информацию о пользователе
|
|
174
|
+
*/
|
|
175
|
+
get: operations["get_user_info_user__id__get"];
|
|
176
|
+
put?: never;
|
|
177
|
+
/**
|
|
178
|
+
* Update User
|
|
179
|
+
* @description Обновить информацию о пользователе.
|
|
180
|
+
* Объект - пользователь, информацию которого обновляют
|
|
181
|
+
* Субъект - пользователь, который обновляет - источник
|
|
182
|
+
*
|
|
183
|
+
* Если не указать параметр внутри категории, то ничего не обновится, если указать что-то,
|
|
184
|
+
* то либо создастся новая запись(в случае, если она отсутствовала у данного источника), либо отредактируется
|
|
185
|
+
* старая. Если в значении параметра указан None, то соответствующая информациия удаляется из данного источника
|
|
186
|
+
*
|
|
187
|
+
* Обновлять через эту ручку можно только от имени источников admin и user.
|
|
188
|
+
*
|
|
189
|
+
* Чтобы обновить от имени админиа, надо иметь скоуп `userdata.info.admin`
|
|
190
|
+
* Чтобы обновить неизменяемую информацию надо обладать скоупом `userdata.info.update`
|
|
191
|
+
* Для обновления своей информации(источник `user`) не нужны скоупы на обновление соответствующих категорий
|
|
192
|
+
* Для обновления чужой информации от имени админа(источник `admin`)
|
|
193
|
+
* нужны скоупы на обновление всех указанных в теле запроса категорий пользовательских данных данных
|
|
194
|
+
*/
|
|
195
|
+
post: operations["update_user_user__id__post"];
|
|
196
|
+
delete?: never;
|
|
197
|
+
options?: never;
|
|
198
|
+
head?: never;
|
|
199
|
+
patch?: never;
|
|
200
|
+
trace?: never;
|
|
201
|
+
};
|
|
202
|
+
}
|
|
203
|
+
export type webhooks = Record<string, never>;
|
|
204
|
+
export interface components {
|
|
205
|
+
schemas: {
|
|
206
|
+
/** CategoryGet */
|
|
207
|
+
CategoryGet: {
|
|
208
|
+
/** Id */
|
|
209
|
+
id: number;
|
|
210
|
+
/** Name */
|
|
211
|
+
name: string;
|
|
212
|
+
/** Params */
|
|
213
|
+
params?: components["schemas"]["ParamGet"][] | null;
|
|
214
|
+
/** Read Scope */
|
|
215
|
+
read_scope?: string | null;
|
|
216
|
+
/** Update Scope */
|
|
217
|
+
update_scope?: string | null;
|
|
218
|
+
};
|
|
219
|
+
/** CategoryPatch */
|
|
220
|
+
CategoryPatch: {
|
|
221
|
+
/** Name */
|
|
222
|
+
name?: string | null;
|
|
223
|
+
/** Read Scope */
|
|
224
|
+
read_scope?: string | null;
|
|
225
|
+
/** Update Scope */
|
|
226
|
+
update_scope?: string | null;
|
|
227
|
+
};
|
|
228
|
+
/** CategoryPost */
|
|
229
|
+
CategoryPost: {
|
|
230
|
+
/** Name */
|
|
231
|
+
name: string;
|
|
232
|
+
/** Read Scope */
|
|
233
|
+
read_scope?: string | null;
|
|
234
|
+
/** Update Scope */
|
|
235
|
+
update_scope?: string | null;
|
|
236
|
+
};
|
|
237
|
+
/** HTTPValidationError */
|
|
238
|
+
HTTPValidationError: {
|
|
239
|
+
/** Detail */
|
|
240
|
+
detail?: components["schemas"]["ValidationError"][];
|
|
241
|
+
};
|
|
242
|
+
/** ParamGet */
|
|
243
|
+
ParamGet: {
|
|
244
|
+
/** Category Id */
|
|
245
|
+
category_id: number;
|
|
246
|
+
/** Changeable */
|
|
247
|
+
changeable: boolean;
|
|
248
|
+
/** Id */
|
|
249
|
+
id: number;
|
|
250
|
+
/** Is Required */
|
|
251
|
+
is_required: boolean;
|
|
252
|
+
/** Name */
|
|
253
|
+
name: string;
|
|
254
|
+
type: components["schemas"]["ViewType"];
|
|
255
|
+
};
|
|
256
|
+
/** ParamPatch */
|
|
257
|
+
ParamPatch: {
|
|
258
|
+
/** Changeable */
|
|
259
|
+
changeable?: boolean | null;
|
|
260
|
+
/** Is Required */
|
|
261
|
+
is_required?: boolean | null;
|
|
262
|
+
/** Name */
|
|
263
|
+
name?: string | null;
|
|
264
|
+
type?: components["schemas"]["ViewType"] | null;
|
|
265
|
+
};
|
|
266
|
+
/** ParamPost */
|
|
267
|
+
ParamPost: {
|
|
268
|
+
/** Changeable */
|
|
269
|
+
changeable: boolean;
|
|
270
|
+
/** Is Required */
|
|
271
|
+
is_required: boolean;
|
|
272
|
+
/** Name */
|
|
273
|
+
name: string;
|
|
274
|
+
type: components["schemas"]["ViewType"];
|
|
275
|
+
};
|
|
276
|
+
/** SourceGet */
|
|
277
|
+
SourceGet: {
|
|
278
|
+
/** Id */
|
|
279
|
+
id: number;
|
|
280
|
+
/** Name */
|
|
281
|
+
name: string;
|
|
282
|
+
/** Trust Level */
|
|
283
|
+
trust_level: number;
|
|
284
|
+
};
|
|
285
|
+
/** SourcePatch */
|
|
286
|
+
SourcePatch: {
|
|
287
|
+
/** Name */
|
|
288
|
+
name?: string | null;
|
|
289
|
+
/** Trust Level */
|
|
290
|
+
trust_level?: number | null;
|
|
291
|
+
};
|
|
292
|
+
/** SourcePost */
|
|
293
|
+
SourcePost: {
|
|
294
|
+
/** Name */
|
|
295
|
+
name: string;
|
|
296
|
+
/** Trust Level */
|
|
297
|
+
trust_level: number;
|
|
298
|
+
};
|
|
299
|
+
/** StatusResponseModel */
|
|
300
|
+
StatusResponseModel: {
|
|
301
|
+
/** Message */
|
|
302
|
+
message: string;
|
|
303
|
+
/** Ru */
|
|
304
|
+
ru: string;
|
|
305
|
+
/** Status */
|
|
306
|
+
status: string;
|
|
307
|
+
};
|
|
308
|
+
/** UserInfo */
|
|
309
|
+
UserInfo: {
|
|
310
|
+
/** Category */
|
|
311
|
+
category: string;
|
|
312
|
+
/** Param */
|
|
313
|
+
param: string;
|
|
314
|
+
/** Value */
|
|
315
|
+
value?: string | null;
|
|
316
|
+
};
|
|
317
|
+
/** UserInfoGet */
|
|
318
|
+
UserInfoGet: {
|
|
319
|
+
/** Items */
|
|
320
|
+
items: components["schemas"]["UserInfo"][];
|
|
321
|
+
};
|
|
322
|
+
/** UserInfoUpdate */
|
|
323
|
+
UserInfoUpdate: {
|
|
324
|
+
/** Items */
|
|
325
|
+
items: components["schemas"]["UserInfo"][];
|
|
326
|
+
/** Source */
|
|
327
|
+
source: string;
|
|
328
|
+
};
|
|
329
|
+
/** ValidationError */
|
|
330
|
+
ValidationError: {
|
|
331
|
+
/** Location */
|
|
332
|
+
loc: (string | number)[];
|
|
333
|
+
/** Message */
|
|
334
|
+
msg: string;
|
|
335
|
+
/** Error Type */
|
|
336
|
+
type: string;
|
|
337
|
+
};
|
|
338
|
+
/**
|
|
339
|
+
* ViewType
|
|
340
|
+
* @description Тип отображения пользоватльских данных в ответе `GET /user/{user_id}`
|
|
341
|
+
* ALL: {category: {param: [val1, val2, ...]}}
|
|
342
|
+
* LAST: {category: {param: last_modified_value}}
|
|
343
|
+
* MOST_TRUSTED: {category: {param: most_trusted_value}}
|
|
344
|
+
* @enum {string}
|
|
345
|
+
*/
|
|
346
|
+
ViewType: "all" | "last" | "most_trusted";
|
|
347
|
+
};
|
|
348
|
+
responses: never;
|
|
349
|
+
parameters: never;
|
|
350
|
+
requestBodies: never;
|
|
351
|
+
headers: never;
|
|
352
|
+
pathItems: never;
|
|
353
|
+
}
|
|
354
|
+
export type $defs = Record<string, never>;
|
|
355
|
+
export interface operations {
|
|
356
|
+
get_categories_category_get: {
|
|
357
|
+
parameters: {
|
|
358
|
+
query?: {
|
|
359
|
+
query?: "param"[];
|
|
360
|
+
};
|
|
361
|
+
header?: never;
|
|
362
|
+
path?: never;
|
|
363
|
+
cookie?: never;
|
|
364
|
+
};
|
|
365
|
+
requestBody?: never;
|
|
366
|
+
responses: {
|
|
367
|
+
/** @description Successful Response */
|
|
368
|
+
200: {
|
|
369
|
+
headers: {
|
|
370
|
+
[name: string]: unknown;
|
|
371
|
+
};
|
|
372
|
+
content: {
|
|
373
|
+
"application/json": components["schemas"]["CategoryGet"][];
|
|
374
|
+
};
|
|
375
|
+
};
|
|
376
|
+
/** @description Validation Error */
|
|
377
|
+
422: {
|
|
378
|
+
headers: {
|
|
379
|
+
[name: string]: unknown;
|
|
380
|
+
};
|
|
381
|
+
content: {
|
|
382
|
+
"application/json": components["schemas"]["HTTPValidationError"];
|
|
383
|
+
};
|
|
384
|
+
};
|
|
385
|
+
};
|
|
386
|
+
};
|
|
387
|
+
create_category_category_post: {
|
|
388
|
+
parameters: {
|
|
389
|
+
query?: never;
|
|
390
|
+
header?: never;
|
|
391
|
+
path?: never;
|
|
392
|
+
cookie?: never;
|
|
393
|
+
};
|
|
394
|
+
requestBody: {
|
|
395
|
+
content: {
|
|
396
|
+
"application/json": components["schemas"]["CategoryPost"];
|
|
397
|
+
};
|
|
398
|
+
};
|
|
399
|
+
responses: {
|
|
400
|
+
/** @description Successful Response */
|
|
401
|
+
200: {
|
|
402
|
+
headers: {
|
|
403
|
+
[name: string]: unknown;
|
|
404
|
+
};
|
|
405
|
+
content: {
|
|
406
|
+
"application/json": components["schemas"]["CategoryGet"];
|
|
407
|
+
};
|
|
408
|
+
};
|
|
409
|
+
/** @description Validation Error */
|
|
410
|
+
422: {
|
|
411
|
+
headers: {
|
|
412
|
+
[name: string]: unknown;
|
|
413
|
+
};
|
|
414
|
+
content: {
|
|
415
|
+
"application/json": components["schemas"]["HTTPValidationError"];
|
|
416
|
+
};
|
|
417
|
+
};
|
|
418
|
+
};
|
|
419
|
+
};
|
|
420
|
+
get_params_category__category_id__param_get: {
|
|
421
|
+
parameters: {
|
|
422
|
+
query?: never;
|
|
423
|
+
header?: never;
|
|
424
|
+
path: {
|
|
425
|
+
category_id: number;
|
|
426
|
+
};
|
|
427
|
+
cookie?: never;
|
|
428
|
+
};
|
|
429
|
+
requestBody?: never;
|
|
430
|
+
responses: {
|
|
431
|
+
/** @description Successful Response */
|
|
432
|
+
200: {
|
|
433
|
+
headers: {
|
|
434
|
+
[name: string]: unknown;
|
|
435
|
+
};
|
|
436
|
+
content: {
|
|
437
|
+
"application/json": components["schemas"]["ParamGet"][];
|
|
438
|
+
};
|
|
439
|
+
};
|
|
440
|
+
/** @description Validation Error */
|
|
441
|
+
422: {
|
|
442
|
+
headers: {
|
|
443
|
+
[name: string]: unknown;
|
|
444
|
+
};
|
|
445
|
+
content: {
|
|
446
|
+
"application/json": components["schemas"]["HTTPValidationError"];
|
|
447
|
+
};
|
|
448
|
+
};
|
|
449
|
+
};
|
|
450
|
+
};
|
|
451
|
+
create_param_category__category_id__param_post: {
|
|
452
|
+
parameters: {
|
|
453
|
+
query?: never;
|
|
454
|
+
header?: never;
|
|
455
|
+
path: {
|
|
456
|
+
category_id: number;
|
|
457
|
+
};
|
|
458
|
+
cookie?: never;
|
|
459
|
+
};
|
|
460
|
+
requestBody: {
|
|
461
|
+
content: {
|
|
462
|
+
"application/json": components["schemas"]["ParamPost"];
|
|
463
|
+
};
|
|
464
|
+
};
|
|
465
|
+
responses: {
|
|
466
|
+
/** @description Successful Response */
|
|
467
|
+
200: {
|
|
468
|
+
headers: {
|
|
469
|
+
[name: string]: unknown;
|
|
470
|
+
};
|
|
471
|
+
content: {
|
|
472
|
+
"application/json": components["schemas"]["ParamGet"];
|
|
473
|
+
};
|
|
474
|
+
};
|
|
475
|
+
/** @description Validation Error */
|
|
476
|
+
422: {
|
|
477
|
+
headers: {
|
|
478
|
+
[name: string]: unknown;
|
|
479
|
+
};
|
|
480
|
+
content: {
|
|
481
|
+
"application/json": components["schemas"]["HTTPValidationError"];
|
|
482
|
+
};
|
|
483
|
+
};
|
|
484
|
+
};
|
|
485
|
+
};
|
|
486
|
+
get_param_category__category_id__param__id__get: {
|
|
487
|
+
parameters: {
|
|
488
|
+
query?: never;
|
|
489
|
+
header?: never;
|
|
490
|
+
path: {
|
|
491
|
+
category_id: number;
|
|
492
|
+
id: number;
|
|
493
|
+
};
|
|
494
|
+
cookie?: never;
|
|
495
|
+
};
|
|
496
|
+
requestBody?: never;
|
|
497
|
+
responses: {
|
|
498
|
+
/** @description Successful Response */
|
|
499
|
+
200: {
|
|
500
|
+
headers: {
|
|
501
|
+
[name: string]: unknown;
|
|
502
|
+
};
|
|
503
|
+
content: {
|
|
504
|
+
"application/json": components["schemas"]["ParamGet"];
|
|
505
|
+
};
|
|
506
|
+
};
|
|
507
|
+
/** @description Validation Error */
|
|
508
|
+
422: {
|
|
509
|
+
headers: {
|
|
510
|
+
[name: string]: unknown;
|
|
511
|
+
};
|
|
512
|
+
content: {
|
|
513
|
+
"application/json": components["schemas"]["HTTPValidationError"];
|
|
514
|
+
};
|
|
515
|
+
};
|
|
516
|
+
};
|
|
517
|
+
};
|
|
518
|
+
delete_param_category__category_id__param__id__delete: {
|
|
519
|
+
parameters: {
|
|
520
|
+
query?: never;
|
|
521
|
+
header?: never;
|
|
522
|
+
path: {
|
|
523
|
+
category_id: number;
|
|
524
|
+
id: number;
|
|
525
|
+
};
|
|
526
|
+
cookie?: never;
|
|
527
|
+
};
|
|
528
|
+
requestBody?: never;
|
|
529
|
+
responses: {
|
|
530
|
+
/** @description Successful Response */
|
|
531
|
+
200: {
|
|
532
|
+
headers: {
|
|
533
|
+
[name: string]: unknown;
|
|
534
|
+
};
|
|
535
|
+
content: {
|
|
536
|
+
"application/json": components["schemas"]["StatusResponseModel"];
|
|
537
|
+
};
|
|
538
|
+
};
|
|
539
|
+
/** @description Validation Error */
|
|
540
|
+
422: {
|
|
541
|
+
headers: {
|
|
542
|
+
[name: string]: unknown;
|
|
543
|
+
};
|
|
544
|
+
content: {
|
|
545
|
+
"application/json": components["schemas"]["HTTPValidationError"];
|
|
546
|
+
};
|
|
547
|
+
};
|
|
548
|
+
};
|
|
549
|
+
};
|
|
550
|
+
patch_param_category__category_id__param__id__patch: {
|
|
551
|
+
parameters: {
|
|
552
|
+
query?: never;
|
|
553
|
+
header?: never;
|
|
554
|
+
path: {
|
|
555
|
+
category_id: number;
|
|
556
|
+
id: number;
|
|
557
|
+
};
|
|
558
|
+
cookie?: never;
|
|
559
|
+
};
|
|
560
|
+
requestBody: {
|
|
561
|
+
content: {
|
|
562
|
+
"application/json": components["schemas"]["ParamPatch"];
|
|
563
|
+
};
|
|
564
|
+
};
|
|
565
|
+
responses: {
|
|
566
|
+
/** @description Successful Response */
|
|
567
|
+
200: {
|
|
568
|
+
headers: {
|
|
569
|
+
[name: string]: unknown;
|
|
570
|
+
};
|
|
571
|
+
content: {
|
|
572
|
+
"application/json": components["schemas"]["ParamGet"];
|
|
573
|
+
};
|
|
574
|
+
};
|
|
575
|
+
/** @description Validation Error */
|
|
576
|
+
422: {
|
|
577
|
+
headers: {
|
|
578
|
+
[name: string]: unknown;
|
|
579
|
+
};
|
|
580
|
+
content: {
|
|
581
|
+
"application/json": components["schemas"]["HTTPValidationError"];
|
|
582
|
+
};
|
|
583
|
+
};
|
|
584
|
+
};
|
|
585
|
+
};
|
|
586
|
+
get_category_category__id__get: {
|
|
587
|
+
parameters: {
|
|
588
|
+
query?: never;
|
|
589
|
+
header?: never;
|
|
590
|
+
path: {
|
|
591
|
+
id: number;
|
|
592
|
+
};
|
|
593
|
+
cookie?: never;
|
|
594
|
+
};
|
|
595
|
+
requestBody?: never;
|
|
596
|
+
responses: {
|
|
597
|
+
/** @description Successful Response */
|
|
598
|
+
200: {
|
|
599
|
+
headers: {
|
|
600
|
+
[name: string]: unknown;
|
|
601
|
+
};
|
|
602
|
+
content: {
|
|
603
|
+
"application/json": components["schemas"]["CategoryGet"];
|
|
604
|
+
};
|
|
605
|
+
};
|
|
606
|
+
/** @description Validation Error */
|
|
607
|
+
422: {
|
|
608
|
+
headers: {
|
|
609
|
+
[name: string]: unknown;
|
|
610
|
+
};
|
|
611
|
+
content: {
|
|
612
|
+
"application/json": components["schemas"]["HTTPValidationError"];
|
|
613
|
+
};
|
|
614
|
+
};
|
|
615
|
+
};
|
|
616
|
+
};
|
|
617
|
+
delete_category_category__id__delete: {
|
|
618
|
+
parameters: {
|
|
619
|
+
query?: never;
|
|
620
|
+
header?: never;
|
|
621
|
+
path: {
|
|
622
|
+
id: number;
|
|
623
|
+
};
|
|
624
|
+
cookie?: never;
|
|
625
|
+
};
|
|
626
|
+
requestBody?: never;
|
|
627
|
+
responses: {
|
|
628
|
+
/** @description Successful Response */
|
|
629
|
+
200: {
|
|
630
|
+
headers: {
|
|
631
|
+
[name: string]: unknown;
|
|
632
|
+
};
|
|
633
|
+
content: {
|
|
634
|
+
"application/json": components["schemas"]["StatusResponseModel"];
|
|
635
|
+
};
|
|
636
|
+
};
|
|
637
|
+
/** @description Validation Error */
|
|
638
|
+
422: {
|
|
639
|
+
headers: {
|
|
640
|
+
[name: string]: unknown;
|
|
641
|
+
};
|
|
642
|
+
content: {
|
|
643
|
+
"application/json": components["schemas"]["HTTPValidationError"];
|
|
644
|
+
};
|
|
645
|
+
};
|
|
646
|
+
};
|
|
647
|
+
};
|
|
648
|
+
patch_category_category__id__patch: {
|
|
649
|
+
parameters: {
|
|
650
|
+
query?: never;
|
|
651
|
+
header?: never;
|
|
652
|
+
path: {
|
|
653
|
+
id: number;
|
|
654
|
+
};
|
|
655
|
+
cookie?: never;
|
|
656
|
+
};
|
|
657
|
+
requestBody: {
|
|
658
|
+
content: {
|
|
659
|
+
"application/json": components["schemas"]["CategoryPatch"];
|
|
660
|
+
};
|
|
661
|
+
};
|
|
662
|
+
responses: {
|
|
663
|
+
/** @description Successful Response */
|
|
664
|
+
200: {
|
|
665
|
+
headers: {
|
|
666
|
+
[name: string]: unknown;
|
|
667
|
+
};
|
|
668
|
+
content: {
|
|
669
|
+
"application/json": components["schemas"]["CategoryGet"];
|
|
670
|
+
};
|
|
671
|
+
};
|
|
672
|
+
/** @description Validation Error */
|
|
673
|
+
422: {
|
|
674
|
+
headers: {
|
|
675
|
+
[name: string]: unknown;
|
|
676
|
+
};
|
|
677
|
+
content: {
|
|
678
|
+
"application/json": components["schemas"]["HTTPValidationError"];
|
|
679
|
+
};
|
|
680
|
+
};
|
|
681
|
+
};
|
|
682
|
+
};
|
|
683
|
+
get_sources_source_get: {
|
|
684
|
+
parameters: {
|
|
685
|
+
query?: never;
|
|
686
|
+
header?: never;
|
|
687
|
+
path?: never;
|
|
688
|
+
cookie?: never;
|
|
689
|
+
};
|
|
690
|
+
requestBody?: never;
|
|
691
|
+
responses: {
|
|
692
|
+
/** @description Successful Response */
|
|
693
|
+
200: {
|
|
694
|
+
headers: {
|
|
695
|
+
[name: string]: unknown;
|
|
696
|
+
};
|
|
697
|
+
content: {
|
|
698
|
+
"application/json": components["schemas"]["SourceGet"][];
|
|
699
|
+
};
|
|
700
|
+
};
|
|
701
|
+
};
|
|
702
|
+
};
|
|
703
|
+
create_source_source_post: {
|
|
704
|
+
parameters: {
|
|
705
|
+
query?: never;
|
|
706
|
+
header?: never;
|
|
707
|
+
path?: never;
|
|
708
|
+
cookie?: never;
|
|
709
|
+
};
|
|
710
|
+
requestBody: {
|
|
711
|
+
content: {
|
|
712
|
+
"application/json": components["schemas"]["SourcePost"];
|
|
713
|
+
};
|
|
714
|
+
};
|
|
715
|
+
responses: {
|
|
716
|
+
/** @description Successful Response */
|
|
717
|
+
200: {
|
|
718
|
+
headers: {
|
|
719
|
+
[name: string]: unknown;
|
|
720
|
+
};
|
|
721
|
+
content: {
|
|
722
|
+
"application/json": components["schemas"]["SourceGet"];
|
|
723
|
+
};
|
|
724
|
+
};
|
|
725
|
+
/** @description Validation Error */
|
|
726
|
+
422: {
|
|
727
|
+
headers: {
|
|
728
|
+
[name: string]: unknown;
|
|
729
|
+
};
|
|
730
|
+
content: {
|
|
731
|
+
"application/json": components["schemas"]["HTTPValidationError"];
|
|
732
|
+
};
|
|
733
|
+
};
|
|
734
|
+
};
|
|
735
|
+
};
|
|
736
|
+
get_source_source__id__get: {
|
|
737
|
+
parameters: {
|
|
738
|
+
query?: never;
|
|
739
|
+
header?: never;
|
|
740
|
+
path: {
|
|
741
|
+
id: number;
|
|
742
|
+
};
|
|
743
|
+
cookie?: never;
|
|
744
|
+
};
|
|
745
|
+
requestBody?: never;
|
|
746
|
+
responses: {
|
|
747
|
+
/** @description Successful Response */
|
|
748
|
+
200: {
|
|
749
|
+
headers: {
|
|
750
|
+
[name: string]: unknown;
|
|
751
|
+
};
|
|
752
|
+
content: {
|
|
753
|
+
"application/json": components["schemas"]["SourceGet"];
|
|
754
|
+
};
|
|
755
|
+
};
|
|
756
|
+
/** @description Validation Error */
|
|
757
|
+
422: {
|
|
758
|
+
headers: {
|
|
759
|
+
[name: string]: unknown;
|
|
760
|
+
};
|
|
761
|
+
content: {
|
|
762
|
+
"application/json": components["schemas"]["HTTPValidationError"];
|
|
763
|
+
};
|
|
764
|
+
};
|
|
765
|
+
};
|
|
766
|
+
};
|
|
767
|
+
delete_source_source__id__delete: {
|
|
768
|
+
parameters: {
|
|
769
|
+
query?: never;
|
|
770
|
+
header?: never;
|
|
771
|
+
path: {
|
|
772
|
+
id: number;
|
|
773
|
+
};
|
|
774
|
+
cookie?: never;
|
|
775
|
+
};
|
|
776
|
+
requestBody?: never;
|
|
777
|
+
responses: {
|
|
778
|
+
/** @description Successful Response */
|
|
779
|
+
200: {
|
|
780
|
+
headers: {
|
|
781
|
+
[name: string]: unknown;
|
|
782
|
+
};
|
|
783
|
+
content: {
|
|
784
|
+
"application/json": components["schemas"]["StatusResponseModel"];
|
|
785
|
+
};
|
|
786
|
+
};
|
|
787
|
+
/** @description Validation Error */
|
|
788
|
+
422: {
|
|
789
|
+
headers: {
|
|
790
|
+
[name: string]: unknown;
|
|
791
|
+
};
|
|
792
|
+
content: {
|
|
793
|
+
"application/json": components["schemas"]["HTTPValidationError"];
|
|
794
|
+
};
|
|
795
|
+
};
|
|
796
|
+
};
|
|
797
|
+
};
|
|
798
|
+
patch_source_source__id__patch: {
|
|
799
|
+
parameters: {
|
|
800
|
+
query?: never;
|
|
801
|
+
header?: never;
|
|
802
|
+
path: {
|
|
803
|
+
id: number;
|
|
804
|
+
};
|
|
805
|
+
cookie?: never;
|
|
806
|
+
};
|
|
807
|
+
requestBody: {
|
|
808
|
+
content: {
|
|
809
|
+
"application/json": components["schemas"]["SourcePatch"];
|
|
810
|
+
};
|
|
811
|
+
};
|
|
812
|
+
responses: {
|
|
813
|
+
/** @description Successful Response */
|
|
814
|
+
200: {
|
|
815
|
+
headers: {
|
|
816
|
+
[name: string]: unknown;
|
|
817
|
+
};
|
|
818
|
+
content: {
|
|
819
|
+
"application/json": components["schemas"]["SourceGet"];
|
|
820
|
+
};
|
|
821
|
+
};
|
|
822
|
+
/** @description Validation Error */
|
|
823
|
+
422: {
|
|
824
|
+
headers: {
|
|
825
|
+
[name: string]: unknown;
|
|
826
|
+
};
|
|
827
|
+
content: {
|
|
828
|
+
"application/json": components["schemas"]["HTTPValidationError"];
|
|
829
|
+
};
|
|
830
|
+
};
|
|
831
|
+
};
|
|
832
|
+
};
|
|
833
|
+
get_user_info_user__id__get: {
|
|
834
|
+
parameters: {
|
|
835
|
+
query?: never;
|
|
836
|
+
header?: never;
|
|
837
|
+
path: {
|
|
838
|
+
id: number;
|
|
839
|
+
};
|
|
840
|
+
cookie?: never;
|
|
841
|
+
};
|
|
842
|
+
requestBody?: never;
|
|
843
|
+
responses: {
|
|
844
|
+
/** @description Successful Response */
|
|
845
|
+
200: {
|
|
846
|
+
headers: {
|
|
847
|
+
[name: string]: unknown;
|
|
848
|
+
};
|
|
849
|
+
content: {
|
|
850
|
+
"application/json": components["schemas"]["UserInfoGet"];
|
|
851
|
+
};
|
|
852
|
+
};
|
|
853
|
+
/** @description Validation Error */
|
|
854
|
+
422: {
|
|
855
|
+
headers: {
|
|
856
|
+
[name: string]: unknown;
|
|
857
|
+
};
|
|
858
|
+
content: {
|
|
859
|
+
"application/json": components["schemas"]["HTTPValidationError"];
|
|
860
|
+
};
|
|
861
|
+
};
|
|
862
|
+
};
|
|
863
|
+
};
|
|
864
|
+
update_user_user__id__post: {
|
|
865
|
+
parameters: {
|
|
866
|
+
query?: never;
|
|
867
|
+
header?: never;
|
|
868
|
+
path: {
|
|
869
|
+
id: number;
|
|
870
|
+
};
|
|
871
|
+
cookie?: never;
|
|
872
|
+
};
|
|
873
|
+
requestBody: {
|
|
874
|
+
content: {
|
|
875
|
+
"application/json": components["schemas"]["UserInfoUpdate"];
|
|
876
|
+
};
|
|
877
|
+
};
|
|
878
|
+
responses: {
|
|
879
|
+
/** @description Successful Response */
|
|
880
|
+
200: {
|
|
881
|
+
headers: {
|
|
882
|
+
[name: string]: unknown;
|
|
883
|
+
};
|
|
884
|
+
content: {
|
|
885
|
+
"application/json": components["schemas"]["StatusResponseModel"];
|
|
886
|
+
};
|
|
887
|
+
};
|
|
888
|
+
/** @description Validation Error */
|
|
889
|
+
422: {
|
|
890
|
+
headers: {
|
|
891
|
+
[name: string]: unknown;
|
|
892
|
+
};
|
|
893
|
+
content: {
|
|
894
|
+
"application/json": components["schemas"]["HTTPValidationError"];
|
|
895
|
+
};
|
|
896
|
+
};
|
|
897
|
+
};
|
|
898
|
+
};
|
|
899
|
+
}
|