fix(backend): fix incorrect schemas (#13458)
This commit is contained in:
parent
0a0af6887a
commit
0fb7b98f96
|
@ -148,6 +148,9 @@ export const packedUserLiteSchema = {
|
||||||
emojis: {
|
emojis: {
|
||||||
type: 'object',
|
type: 'object',
|
||||||
nullable: false, optional: false,
|
nullable: false, optional: false,
|
||||||
|
additionalProperties: {
|
||||||
|
type: 'string',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
onlineStatus: {
|
onlineStatus: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
|
|
|
@ -31,7 +31,10 @@ export const meta = {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
res: {
|
||||||
|
type: 'object',
|
||||||
ref: 'EmojiDetailed',
|
ref: 'EmojiDetailed',
|
||||||
|
},
|
||||||
} as const;
|
} as const;
|
||||||
|
|
||||||
export const paramDef = {
|
export const paramDef = {
|
||||||
|
|
|
@ -124,6 +124,9 @@ type AdminEmojiAddAliasesBulkRequest = operations['admin/emoji/add-aliases-bulk'
|
||||||
// @public (undocumented)
|
// @public (undocumented)
|
||||||
type AdminEmojiAddRequest = operations['admin/emoji/add']['requestBody']['content']['application/json'];
|
type AdminEmojiAddRequest = operations['admin/emoji/add']['requestBody']['content']['application/json'];
|
||||||
|
|
||||||
|
// @public (undocumented)
|
||||||
|
type AdminEmojiAddResponse = operations['admin/emoji/add']['responses']['200']['content']['application/json'];
|
||||||
|
|
||||||
// @public (undocumented)
|
// @public (undocumented)
|
||||||
type AdminEmojiCopyRequest = operations['admin/emoji/copy']['requestBody']['content']['application/json'];
|
type AdminEmojiCopyRequest = operations['admin/emoji/copy']['requestBody']['content']['application/json'];
|
||||||
|
|
||||||
|
@ -1154,6 +1157,7 @@ declare namespace entities {
|
||||||
AdminDriveShowFileResponse,
|
AdminDriveShowFileResponse,
|
||||||
AdminEmojiAddAliasesBulkRequest,
|
AdminEmojiAddAliasesBulkRequest,
|
||||||
AdminEmojiAddRequest,
|
AdminEmojiAddRequest,
|
||||||
|
AdminEmojiAddResponse,
|
||||||
AdminEmojiCopyRequest,
|
AdminEmojiCopyRequest,
|
||||||
AdminEmojiCopyResponse,
|
AdminEmojiCopyResponse,
|
||||||
AdminEmojiDeleteBulkRequest,
|
AdminEmojiDeleteBulkRequest,
|
||||||
|
|
|
@ -35,6 +35,7 @@ import type {
|
||||||
AdminDriveShowFileResponse,
|
AdminDriveShowFileResponse,
|
||||||
AdminEmojiAddAliasesBulkRequest,
|
AdminEmojiAddAliasesBulkRequest,
|
||||||
AdminEmojiAddRequest,
|
AdminEmojiAddRequest,
|
||||||
|
AdminEmojiAddResponse,
|
||||||
AdminEmojiCopyRequest,
|
AdminEmojiCopyRequest,
|
||||||
AdminEmojiCopyResponse,
|
AdminEmojiCopyResponse,
|
||||||
AdminEmojiDeleteBulkRequest,
|
AdminEmojiDeleteBulkRequest,
|
||||||
|
@ -578,7 +579,7 @@ export type Endpoints = {
|
||||||
'admin/drive/files': { req: AdminDriveFilesRequest; res: AdminDriveFilesResponse };
|
'admin/drive/files': { req: AdminDriveFilesRequest; res: AdminDriveFilesResponse };
|
||||||
'admin/drive/show-file': { req: AdminDriveShowFileRequest; res: AdminDriveShowFileResponse };
|
'admin/drive/show-file': { req: AdminDriveShowFileRequest; res: AdminDriveShowFileResponse };
|
||||||
'admin/emoji/add-aliases-bulk': { req: AdminEmojiAddAliasesBulkRequest; res: EmptyResponse };
|
'admin/emoji/add-aliases-bulk': { req: AdminEmojiAddAliasesBulkRequest; res: EmptyResponse };
|
||||||
'admin/emoji/add': { req: AdminEmojiAddRequest; res: EmptyResponse };
|
'admin/emoji/add': { req: AdminEmojiAddRequest; res: AdminEmojiAddResponse };
|
||||||
'admin/emoji/copy': { req: AdminEmojiCopyRequest; res: AdminEmojiCopyResponse };
|
'admin/emoji/copy': { req: AdminEmojiCopyRequest; res: AdminEmojiCopyResponse };
|
||||||
'admin/emoji/delete-bulk': { req: AdminEmojiDeleteBulkRequest; res: EmptyResponse };
|
'admin/emoji/delete-bulk': { req: AdminEmojiDeleteBulkRequest; res: EmptyResponse };
|
||||||
'admin/emoji/delete': { req: AdminEmojiDeleteRequest; res: EmptyResponse };
|
'admin/emoji/delete': { req: AdminEmojiDeleteRequest; res: EmptyResponse };
|
||||||
|
|
|
@ -37,6 +37,7 @@ export type AdminDriveShowFileRequest = operations['admin/drive/show-file']['req
|
||||||
export type AdminDriveShowFileResponse = operations['admin/drive/show-file']['responses']['200']['content']['application/json'];
|
export type AdminDriveShowFileResponse = operations['admin/drive/show-file']['responses']['200']['content']['application/json'];
|
||||||
export type AdminEmojiAddAliasesBulkRequest = operations['admin/emoji/add-aliases-bulk']['requestBody']['content']['application/json'];
|
export type AdminEmojiAddAliasesBulkRequest = operations['admin/emoji/add-aliases-bulk']['requestBody']['content']['application/json'];
|
||||||
export type AdminEmojiAddRequest = operations['admin/emoji/add']['requestBody']['content']['application/json'];
|
export type AdminEmojiAddRequest = operations['admin/emoji/add']['requestBody']['content']['application/json'];
|
||||||
|
export type AdminEmojiAddResponse = operations['admin/emoji/add']['responses']['200']['content']['application/json'];
|
||||||
export type AdminEmojiCopyRequest = operations['admin/emoji/copy']['requestBody']['content']['application/json'];
|
export type AdminEmojiCopyRequest = operations['admin/emoji/copy']['requestBody']['content']['application/json'];
|
||||||
export type AdminEmojiCopyResponse = operations['admin/emoji/copy']['responses']['200']['content']['application/json'];
|
export type AdminEmojiCopyResponse = operations['admin/emoji/copy']['responses']['200']['content']['application/json'];
|
||||||
export type AdminEmojiDeleteBulkRequest = operations['admin/emoji/delete-bulk']['requestBody']['content']['application/json'];
|
export type AdminEmojiDeleteBulkRequest = operations['admin/emoji/delete-bulk']['requestBody']['content']['application/json'];
|
||||||
|
|
|
@ -3588,7 +3588,9 @@ export type components = {
|
||||||
faviconUrl: string | null;
|
faviconUrl: string | null;
|
||||||
themeColor: string | null;
|
themeColor: string | null;
|
||||||
};
|
};
|
||||||
emojis: Record<string, never>;
|
emojis: {
|
||||||
|
[key: string]: string;
|
||||||
|
};
|
||||||
/** @enum {string} */
|
/** @enum {string} */
|
||||||
onlineStatus: 'unknown' | 'online' | 'active' | 'offline';
|
onlineStatus: 'unknown' | 'online' | 'active' | 'offline';
|
||||||
badgeRoles?: ({
|
badgeRoles?: ({
|
||||||
|
@ -6476,9 +6478,11 @@ export type operations = {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
responses: {
|
responses: {
|
||||||
/** @description OK (without any results) */
|
/** @description OK (with results) */
|
||||||
204: {
|
200: {
|
||||||
content: never;
|
content: {
|
||||||
|
'application/json': components['schemas']['EmojiDetailed'];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
/** @description Client error */
|
/** @description Client error */
|
||||||
400: {
|
400: {
|
||||||
|
|
Loading…
Reference in a new issue