autogen: api/locale indexing

This commit is contained in:
オスカー、 2024-09-07 20:28:33 +09:00
parent 138087a19a
commit 3a98271802
Signed by: SWREI
GPG Key ID: 139D6573F92DA9F7
7 changed files with 141 additions and 0 deletions

34
locales/index.d.ts vendored
View File

@ -5215,6 +5215,10 @@ export interface Locale extends ILocale {
* 使
*/
"youAreOnVacation": string;
/**
*
*/
"autoRemoval": string;
"_bubbleGame": {
/**
*
@ -5418,6 +5422,36 @@ export interface Locale extends ILocale {
*/
"silenceDescription": string;
};
"_autoRemoval": {
/**
*
*/
"use": string;
/**
*
*/
"deleteAfter": string;
/**
* . .
*/
"deleteAfterDescription": string;
/**
*
*/
"noPiningNotes": string;
/**
* .
*/
"noPiningNotesDescription": string;
/**
*
*/
"noSpecifiedNotes": string;
/**
* .
*/
"noSpecifiedNotesDescription": string;
};
"_initialTutorial": {
/**
*

View File

@ -524,6 +524,9 @@ type AuthSessionUserkeyRequest = operations['auth___session___userkey']['request
// @public (undocumented)
type AuthSessionUserkeyResponse = operations['auth___session___userkey']['responses']['200']['content']['application/json'];
// @public (undocumented)
type AutoRemovalCondition = components['schemas']['AutoRemovalCondition'];
// @public (undocumented)
type Blocking = components['schemas']['Blocking'];
@ -1569,6 +1572,8 @@ declare namespace entities {
IUpdateEmailResponse,
IUpdateRequest,
IUpdateResponse,
IUpdateRemovalConditionRequest,
IUpdateRemovalConditionResponse,
IMoveRequest,
IMoveResponse,
IWebhooksCreateRequest,
@ -1819,6 +1824,7 @@ declare namespace entities {
EmojiDetailed,
Flash,
FlashLike,
AutoRemovalCondition,
Signin,
RoleCondFormulaLogics,
RoleCondFormulaValueNot,
@ -2320,6 +2326,12 @@ type IUpdateEmailRequest = operations['i___update-email']['requestBody']['conten
// @public (undocumented)
type IUpdateEmailResponse = operations['i___update-email']['responses']['200']['content']['application/json'];
// @public (undocumented)
type IUpdateRemovalConditionRequest = operations['i___update-removal-condition']['requestBody']['content']['application/json'];
// @public (undocumented)
type IUpdateRemovalConditionResponse = operations['i___update-removal-condition']['responses']['200']['content']['application/json'];
// @public (undocumented)
type IUpdateRequest = operations['i___update']['requestBody']['content']['application/json'];

View File

@ -2822,6 +2822,17 @@ declare module '../api.js' {
credential?: string | null,
): Promise<SwitchCaseResponseType<E, P>>;
/**
* No description provided.
*
* **Credential required**: *Yes* / **Permission**: *write:account*
*/
request<E extends 'i/update-removal-condition', P extends Endpoints[E]['req']>(
endpoint: E,
params: P,
credential?: string | null,
): Promise<SwitchCaseResponseType<E, P>>;
/**
* No description provided.
*

View File

@ -371,6 +371,8 @@ import type {
IUpdateEmailResponse,
IUpdateRequest,
IUpdateResponse,
IUpdateRemovalConditionRequest,
IUpdateRemovalConditionResponse,
IMoveRequest,
IMoveResponse,
IWebhooksCreateRequest,
@ -837,6 +839,7 @@ export type Endpoints = {
'i/unpin': { req: IUnpinRequest; res: IUnpinResponse };
'i/update-email': { req: IUpdateEmailRequest; res: IUpdateEmailResponse };
'i/update': { req: IUpdateRequest; res: IUpdateResponse };
'i/update-removal-condition': { req: IUpdateRemovalConditionRequest; res: IUpdateRemovalConditionResponse };
'i/move': { req: IMoveRequest; res: IMoveResponse };
'i/webhooks/create': { req: IWebhooksCreateRequest; res: IWebhooksCreateResponse };
'i/webhooks/list': { req: EmptyRequest; res: IWebhooksListResponse };

View File

@ -374,6 +374,8 @@ export type IUpdateEmailRequest = operations['i___update-email']['requestBody'][
export type IUpdateEmailResponse = operations['i___update-email']['responses']['200']['content']['application/json'];
export type IUpdateRequest = operations['i___update']['requestBody']['content']['application/json'];
export type IUpdateResponse = operations['i___update']['responses']['200']['content']['application/json'];
export type IUpdateRemovalConditionRequest = operations['i___update-removal-condition']['requestBody']['content']['application/json'];
export type IUpdateRemovalConditionResponse = operations['i___update-removal-condition']['responses']['200']['content']['application/json'];
export type IMoveRequest = operations['i___move']['requestBody']['content']['application/json'];
export type IMoveResponse = operations['i___move']['responses']['200']['content']['application/json'];
export type IWebhooksCreateRequest = operations['i___webhooks___create']['requestBody']['content']['application/json'];

View File

@ -39,6 +39,7 @@ export type EmojiSimple = components['schemas']['EmojiSimple'];
export type EmojiDetailed = components['schemas']['EmojiDetailed'];
export type Flash = components['schemas']['Flash'];
export type FlashLike = components['schemas']['FlashLike'];
export type AutoRemovalCondition = components['schemas']['AutoRemovalCondition'];
export type Signin = components['schemas']['Signin'];
export type RoleCondFormulaLogics = components['schemas']['RoleCondFormulaLogics'];
export type RoleCondFormulaValueNot = components['schemas']['RoleCondFormulaValueNot'];

View File

@ -2437,6 +2437,15 @@ export type paths = {
*/
post: operations['i___update'];
};
'/i/update-removal-condition': {
/**
* i/update-removal-condition
* @description No description provided.
*
* **Credential required**: *Yes* / **Permission**: *write:account*
*/
post: operations['i___update-removal-condition'];
};
'/i/move': {
/**
* i/move
@ -4054,6 +4063,12 @@ export type components = {
name: string;
unlockedAt: number;
}[];
autoRemovalCondition: {
active: boolean;
deleteAfter: number;
noPiningNotes: boolean;
noSpecifiedNotes: boolean;
};
loggedInDays: number;
policies: components['schemas']['RolePolicies'];
email?: string | null;
@ -4836,6 +4851,11 @@ export type components = {
id: string;
flash: components['schemas']['Flash'];
};
AutoRemovalCondition: {
deleteAfter?: number;
noPiningNotes?: boolean;
noSpecifiedNotes?: boolean;
};
Signin: {
id: string;
/** Format: date-time */
@ -20419,6 +20439,8 @@ export type operations = {
description?: string | null;
})[];
})[];
autoRemoval?: boolean;
autoRemovalCondition?: Record<string, never>;
};
};
};
@ -20467,6 +20489,62 @@ export type operations = {
};
};
};
/**
* i/update-removal-condition
* @description No description provided.
*
* **Credential required**: *Yes* / **Permission**: *write:account*
*/
'i___update-removal-condition': {
requestBody: {
content: {
'application/json': {
active?: boolean;
deleteAfter?: number;
noPiningNotes?: boolean;
noSpecifiedNotes?: boolean;
};
};
};
responses: {
/** @description OK (with results) */
200: {
content: {
'application/json': components['schemas']['MeDetailed'];
};
};
/** @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'];
};
};
};
};
/**
* i/move
* @description No description provided.