fix API return type of cw-instance, cw-user, and cw-note endpoints
This commit is contained in:
parent
d960c4b863
commit
2e41f580e3
7 changed files with 42 additions and 12 deletions
|
|
@ -14,6 +14,8 @@ export const meta = {
|
|||
requireCredential: true,
|
||||
requireModerator: true,
|
||||
kind: 'write:admin:cw-instance',
|
||||
|
||||
res: {},
|
||||
} as const;
|
||||
|
||||
export const paramDef = {
|
||||
|
|
|
|||
|
|
@ -16,6 +16,8 @@ export const meta = {
|
|||
requireCredential: true,
|
||||
requireModerator: true,
|
||||
kind: 'write:admin:cw-note',
|
||||
|
||||
res: {},
|
||||
} as const;
|
||||
|
||||
export const paramDef = {
|
||||
|
|
|
|||
|
|
@ -17,6 +17,8 @@ export const meta = {
|
|||
requireCredential: true,
|
||||
requireModerator: true,
|
||||
kind: 'write:admin:cw-user',
|
||||
|
||||
res: {},
|
||||
} as const;
|
||||
|
||||
export const paramDef = {
|
||||
|
|
|
|||
|
|
@ -155,12 +155,21 @@ type AdminCaptchaSaveRequest = operations['admin___captcha___save']['requestBody
|
|||
// @public (undocumented)
|
||||
type AdminCwInstanceRequest = operations['admin___cw-instance']['requestBody']['content']['application/json'];
|
||||
|
||||
// @public (undocumented)
|
||||
type AdminCwInstanceResponse = operations['admin___cw-instance']['responses']['200']['content']['application/json'];
|
||||
|
||||
// @public (undocumented)
|
||||
type AdminCwNoteRequest = operations['admin___cw-note']['requestBody']['content']['application/json'];
|
||||
|
||||
// @public (undocumented)
|
||||
type AdminCwNoteResponse = operations['admin___cw-note']['responses']['200']['content']['application/json'];
|
||||
|
||||
// @public (undocumented)
|
||||
type AdminCwUserRequest = operations['admin___cw-user']['requestBody']['content']['application/json'];
|
||||
|
||||
// @public (undocumented)
|
||||
type AdminCwUserResponse = operations['admin___cw-user']['responses']['200']['content']['application/json'];
|
||||
|
||||
// @public (undocumented)
|
||||
type AdminDeclineUserRequest = operations['admin___decline-user']['requestBody']['content']['application/json'];
|
||||
|
||||
|
|
@ -1549,8 +1558,11 @@ declare namespace entities {
|
|||
AdminCaptchaCurrentResponse,
|
||||
AdminCaptchaSaveRequest,
|
||||
AdminCwInstanceRequest,
|
||||
AdminCwInstanceResponse,
|
||||
AdminCwNoteRequest,
|
||||
AdminCwNoteResponse,
|
||||
AdminCwUserRequest,
|
||||
AdminCwUserResponse,
|
||||
AdminDeclineUserRequest,
|
||||
AdminDeleteAccountRequest,
|
||||
AdminDeleteAllFilesOfAUserRequest,
|
||||
|
|
|
|||
|
|
@ -39,8 +39,11 @@ import type {
|
|||
AdminCaptchaCurrentResponse,
|
||||
AdminCaptchaSaveRequest,
|
||||
AdminCwInstanceRequest,
|
||||
AdminCwInstanceResponse,
|
||||
AdminCwNoteRequest,
|
||||
AdminCwNoteResponse,
|
||||
AdminCwUserRequest,
|
||||
AdminCwUserResponse,
|
||||
AdminDeclineUserRequest,
|
||||
AdminDeleteAccountRequest,
|
||||
AdminDeleteAllFilesOfAUserRequest,
|
||||
|
|
@ -691,9 +694,9 @@ export type Endpoints = {
|
|||
'admin/avatar-decorations/update': { req: AdminAvatarDecorationsUpdateRequest; res: EmptyResponse };
|
||||
'admin/captcha/current': { req: EmptyRequest; res: AdminCaptchaCurrentResponse };
|
||||
'admin/captcha/save': { req: AdminCaptchaSaveRequest; res: EmptyResponse };
|
||||
'admin/cw-instance': { req: AdminCwInstanceRequest; res: EmptyResponse };
|
||||
'admin/cw-note': { req: AdminCwNoteRequest; res: EmptyResponse };
|
||||
'admin/cw-user': { req: AdminCwUserRequest; res: EmptyResponse };
|
||||
'admin/cw-instance': { req: AdminCwInstanceRequest; res: AdminCwInstanceResponse };
|
||||
'admin/cw-note': { req: AdminCwNoteRequest; res: AdminCwNoteResponse };
|
||||
'admin/cw-user': { req: AdminCwUserRequest; res: AdminCwUserResponse };
|
||||
'admin/decline-user': { req: AdminDeclineUserRequest; res: EmptyResponse };
|
||||
'admin/delete-account': { req: AdminDeleteAccountRequest; res: EmptyResponse };
|
||||
'admin/delete-all-files-of-a-user': { req: AdminDeleteAllFilesOfAUserRequest; res: EmptyResponse };
|
||||
|
|
|
|||
|
|
@ -42,8 +42,11 @@ export type AdminAvatarDecorationsUpdateRequest = operations['admin___avatar-dec
|
|||
export type AdminCaptchaCurrentResponse = operations['admin___captcha___current']['responses']['200']['content']['application/json'];
|
||||
export type AdminCaptchaSaveRequest = operations['admin___captcha___save']['requestBody']['content']['application/json'];
|
||||
export type AdminCwInstanceRequest = operations['admin___cw-instance']['requestBody']['content']['application/json'];
|
||||
export type AdminCwInstanceResponse = operations['admin___cw-instance']['responses']['200']['content']['application/json'];
|
||||
export type AdminCwNoteRequest = operations['admin___cw-note']['requestBody']['content']['application/json'];
|
||||
export type AdminCwNoteResponse = operations['admin___cw-note']['responses']['200']['content']['application/json'];
|
||||
export type AdminCwUserRequest = operations['admin___cw-user']['requestBody']['content']['application/json'];
|
||||
export type AdminCwUserResponse = operations['admin___cw-user']['responses']['200']['content']['application/json'];
|
||||
export type AdminDeclineUserRequest = operations['admin___decline-user']['requestBody']['content']['application/json'];
|
||||
export type AdminDeleteAccountRequest = operations['admin___delete-account']['requestBody']['content']['application/json'];
|
||||
export type AdminDeleteAllFilesOfAUserRequest = operations['admin___delete-all-files-of-a-user']['requestBody']['content']['application/json'];
|
||||
|
|
|
|||
|
|
@ -7428,9 +7428,11 @@ export type operations = {
|
|||
};
|
||||
};
|
||||
responses: {
|
||||
/** @description OK (without any results) */
|
||||
204: {
|
||||
content: never;
|
||||
/** @description OK (with results) */
|
||||
200: {
|
||||
content: {
|
||||
'application/json': unknown;
|
||||
};
|
||||
};
|
||||
/** @description Client error */
|
||||
400: {
|
||||
|
|
@ -7481,9 +7483,11 @@ export type operations = {
|
|||
};
|
||||
};
|
||||
responses: {
|
||||
/** @description OK (without any results) */
|
||||
204: {
|
||||
content: never;
|
||||
/** @description OK (with results) */
|
||||
200: {
|
||||
content: {
|
||||
'application/json': unknown;
|
||||
};
|
||||
};
|
||||
/** @description Client error */
|
||||
400: {
|
||||
|
|
@ -7534,9 +7538,11 @@ export type operations = {
|
|||
};
|
||||
};
|
||||
responses: {
|
||||
/** @description OK (without any results) */
|
||||
204: {
|
||||
content: never;
|
||||
/** @description OK (with results) */
|
||||
200: {
|
||||
content: {
|
||||
'application/json': unknown;
|
||||
};
|
||||
};
|
||||
/** @description Client error */
|
||||
400: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue