mirror of
https://codeberg.org/yeentown/barkey.git
synced 2025-04-29 18:16:58 +00:00
add admin/reject-quotes
to new endpoints list
This commit is contained in:
parent
784290186f
commit
b9b339fd48
5 changed files with 81 additions and 0 deletions
|
@ -74,6 +74,7 @@ export * as 'admin/queue/deliver-delayed' from './endpoints/admin/queue/deliver-
|
||||||
export * as 'admin/queue/inbox-delayed' from './endpoints/admin/queue/inbox-delayed.js';
|
export * as 'admin/queue/inbox-delayed' from './endpoints/admin/queue/inbox-delayed.js';
|
||||||
export * as 'admin/queue/promote' from './endpoints/admin/queue/promote.js';
|
export * as 'admin/queue/promote' from './endpoints/admin/queue/promote.js';
|
||||||
export * as 'admin/queue/stats' from './endpoints/admin/queue/stats.js';
|
export * as 'admin/queue/stats' from './endpoints/admin/queue/stats.js';
|
||||||
|
export * as 'admin/reject-quotes' from './endpoints/admin/reject-quotes.js';
|
||||||
export * as 'admin/relays/add' from './endpoints/admin/relays/add.js';
|
export * as 'admin/relays/add' from './endpoints/admin/relays/add.js';
|
||||||
export * as 'admin/relays/list' from './endpoints/admin/relays/list.js';
|
export * as 'admin/relays/list' from './endpoints/admin/relays/list.js';
|
||||||
export * as 'admin/relays/remove' from './endpoints/admin/relays/remove.js';
|
export * as 'admin/relays/remove' from './endpoints/admin/relays/remove.js';
|
||||||
|
|
|
@ -713,6 +713,17 @@ declare module '../api.js' {
|
||||||
credential?: string | null,
|
credential?: string | null,
|
||||||
): Promise<SwitchCaseResponseType<E, P>>;
|
): Promise<SwitchCaseResponseType<E, P>>;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* No description provided.
|
||||||
|
*
|
||||||
|
* **Credential required**: *Yes* / **Permission**: *write:admin:reject-quotes*
|
||||||
|
*/
|
||||||
|
request<E extends 'admin/reject-quotes', P extends Endpoints[E]['req']>(
|
||||||
|
endpoint: E,
|
||||||
|
params: P,
|
||||||
|
credential?: string | null,
|
||||||
|
): Promise<SwitchCaseResponseType<E, P>>;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* No description provided.
|
* No description provided.
|
||||||
*
|
*
|
||||||
|
|
|
@ -83,6 +83,7 @@ import type {
|
||||||
AdminQueueInboxDelayedResponse,
|
AdminQueueInboxDelayedResponse,
|
||||||
AdminQueuePromoteRequest,
|
AdminQueuePromoteRequest,
|
||||||
AdminQueueStatsResponse,
|
AdminQueueStatsResponse,
|
||||||
|
AdminRejectQuotesRequest,
|
||||||
AdminRelaysAddRequest,
|
AdminRelaysAddRequest,
|
||||||
AdminRelaysAddResponse,
|
AdminRelaysAddResponse,
|
||||||
AdminRelaysListResponse,
|
AdminRelaysListResponse,
|
||||||
|
@ -674,6 +675,7 @@ export type Endpoints = {
|
||||||
'admin/queue/inbox-delayed': { req: EmptyRequest; res: AdminQueueInboxDelayedResponse };
|
'admin/queue/inbox-delayed': { req: EmptyRequest; res: AdminQueueInboxDelayedResponse };
|
||||||
'admin/queue/promote': { req: AdminQueuePromoteRequest; res: EmptyResponse };
|
'admin/queue/promote': { req: AdminQueuePromoteRequest; res: EmptyResponse };
|
||||||
'admin/queue/stats': { req: EmptyRequest; res: AdminQueueStatsResponse };
|
'admin/queue/stats': { req: EmptyRequest; res: AdminQueueStatsResponse };
|
||||||
|
'admin/reject-quotes': { req: AdminRejectQuotesRequest; res: EmptyResponse };
|
||||||
'admin/relays/add': { req: AdminRelaysAddRequest; res: AdminRelaysAddResponse };
|
'admin/relays/add': { req: AdminRelaysAddRequest; res: AdminRelaysAddResponse };
|
||||||
'admin/relays/list': { req: EmptyRequest; res: AdminRelaysListResponse };
|
'admin/relays/list': { req: EmptyRequest; res: AdminRelaysListResponse };
|
||||||
'admin/relays/remove': { req: AdminRelaysRemoveRequest; res: EmptyResponse };
|
'admin/relays/remove': { req: AdminRelaysRemoveRequest; res: EmptyResponse };
|
||||||
|
|
|
@ -86,6 +86,7 @@ export type AdminQueueDeliverDelayedResponse = operations['admin___queue___deliv
|
||||||
export type AdminQueueInboxDelayedResponse = operations['admin___queue___inbox-delayed']['responses']['200']['content']['application/json'];
|
export type AdminQueueInboxDelayedResponse = operations['admin___queue___inbox-delayed']['responses']['200']['content']['application/json'];
|
||||||
export type AdminQueuePromoteRequest = operations['admin___queue___promote']['requestBody']['content']['application/json'];
|
export type AdminQueuePromoteRequest = operations['admin___queue___promote']['requestBody']['content']['application/json'];
|
||||||
export type AdminQueueStatsResponse = operations['admin___queue___stats']['responses']['200']['content']['application/json'];
|
export type AdminQueueStatsResponse = operations['admin___queue___stats']['responses']['200']['content']['application/json'];
|
||||||
|
export type AdminRejectQuotesRequest = operations['admin___reject-quotes']['requestBody']['content']['application/json'];
|
||||||
export type AdminRelaysAddRequest = operations['admin___relays___add']['requestBody']['content']['application/json'];
|
export type AdminRelaysAddRequest = operations['admin___relays___add']['requestBody']['content']['application/json'];
|
||||||
export type AdminRelaysAddResponse = operations['admin___relays___add']['responses']['200']['content']['application/json'];
|
export type AdminRelaysAddResponse = operations['admin___relays___add']['responses']['200']['content']['application/json'];
|
||||||
export type AdminRelaysListResponse = operations['admin___relays___list']['responses']['200']['content']['application/json'];
|
export type AdminRelaysListResponse = operations['admin___relays___list']['responses']['200']['content']['application/json'];
|
||||||
|
|
|
@ -594,6 +594,15 @@ export type paths = {
|
||||||
*/
|
*/
|
||||||
post: operations['admin___queue___stats'];
|
post: operations['admin___queue___stats'];
|
||||||
};
|
};
|
||||||
|
'/admin/reject-quotes': {
|
||||||
|
/**
|
||||||
|
* admin/reject-quotes
|
||||||
|
* @description No description provided.
|
||||||
|
*
|
||||||
|
* **Credential required**: *Yes* / **Permission**: *write:admin:reject-quotes*
|
||||||
|
*/
|
||||||
|
post: operations['admin___reject-quotes'];
|
||||||
|
};
|
||||||
'/admin/relays/add': {
|
'/admin/relays/add': {
|
||||||
/**
|
/**
|
||||||
* admin/relays/add
|
* admin/relays/add
|
||||||
|
@ -4061,6 +4070,7 @@ export type components = {
|
||||||
twoFactorEnabled?: boolean;
|
twoFactorEnabled?: boolean;
|
||||||
usePasswordLessLogin?: boolean;
|
usePasswordLessLogin?: boolean;
|
||||||
securityKeys?: boolean;
|
securityKeys?: boolean;
|
||||||
|
rejectQuotes?: boolean;
|
||||||
isFollowing?: boolean;
|
isFollowing?: boolean;
|
||||||
isFollowed?: boolean;
|
isFollowed?: boolean;
|
||||||
hasPendingFollowRequestFromYou?: boolean;
|
hasPendingFollowRequestFromYou?: boolean;
|
||||||
|
@ -4408,6 +4418,7 @@ export type components = {
|
||||||
url?: string;
|
url?: string;
|
||||||
reactionAndUserPairCache?: string[];
|
reactionAndUserPairCache?: string[];
|
||||||
clippedCount?: number;
|
clippedCount?: number;
|
||||||
|
processErrors?: string[] | null;
|
||||||
myReaction?: string | null;
|
myReaction?: string | null;
|
||||||
};
|
};
|
||||||
NoteReaction: {
|
NoteReaction: {
|
||||||
|
@ -4965,6 +4976,7 @@ export type components = {
|
||||||
latestRequestReceivedAt: string | null;
|
latestRequestReceivedAt: string | null;
|
||||||
isNSFW: boolean;
|
isNSFW: boolean;
|
||||||
rejectReports: boolean;
|
rejectReports: boolean;
|
||||||
|
rejectQuotes: boolean;
|
||||||
moderationNote?: string | null;
|
moderationNote?: string | null;
|
||||||
};
|
};
|
||||||
GalleryPost: {
|
GalleryPost: {
|
||||||
|
@ -8286,6 +8298,7 @@ export type operations = {
|
||||||
isNSFW?: boolean;
|
isNSFW?: boolean;
|
||||||
rejectReports?: boolean;
|
rejectReports?: boolean;
|
||||||
moderationNote?: string;
|
moderationNote?: string;
|
||||||
|
rejectQuotes?: boolean;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -9222,6 +9235,59 @@ export type operations = {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
/**
|
||||||
|
* admin/reject-quotes
|
||||||
|
* @description No description provided.
|
||||||
|
*
|
||||||
|
* **Credential required**: *Yes* / **Permission**: *write:admin:reject-quotes*
|
||||||
|
*/
|
||||||
|
'admin___reject-quotes': {
|
||||||
|
requestBody: {
|
||||||
|
content: {
|
||||||
|
'application/json': {
|
||||||
|
/** Format: misskey:id */
|
||||||
|
userId: string;
|
||||||
|
rejectQuotes: boolean;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
responses: {
|
||||||
|
/** @description OK (without any results) */
|
||||||
|
204: {
|
||||||
|
content: never;
|
||||||
|
};
|
||||||
|
/** @description Client error */
|
||||||
|
400: {
|
||||||
|
content: {
|
||||||
|
'application/json': components['schemas']['Error'];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
/** @description Authentication error */
|
||||||
|
401: {
|
||||||
|
content: {
|
||||||
|
'application/json': components['schemas']['Error'];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
/** @description Forbidden error */
|
||||||
|
403: {
|
||||||
|
content: {
|
||||||
|
'application/json': components['schemas']['Error'];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
/** @description I'm Ai */
|
||||||
|
418: {
|
||||||
|
content: {
|
||||||
|
'application/json': components['schemas']['Error'];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
/** @description Internal server error */
|
||||||
|
500: {
|
||||||
|
content: {
|
||||||
|
'application/json': components['schemas']['Error'];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
/**
|
/**
|
||||||
* admin/relays/add
|
* admin/relays/add
|
||||||
* @description No description provided.
|
* @description No description provided.
|
||||||
|
|
Loading…
Add table
Reference in a new issue