Merge remote-tracking branch 'upstream/develop' into refactor-frontend-types
This commit is contained in:
@@ -636,7 +636,7 @@ export type Channels = {
|
||||
fileUpdated: (payload: DriveFile) => void;
|
||||
folderCreated: (payload: DriveFolder) => void;
|
||||
folderDeleted: (payload: DriveFolder['id']) => void;
|
||||
folderUpdated: (payload: DriveFile) => void;
|
||||
folderUpdated: (payload: DriveFolder) => void;
|
||||
};
|
||||
receives: null;
|
||||
};
|
||||
@@ -1034,6 +1034,18 @@ export type Endpoints = Overwrite<Endpoints_2, {
|
||||
};
|
||||
};
|
||||
};
|
||||
'signup': {
|
||||
req: SignupRequest;
|
||||
res: SignupResponse;
|
||||
};
|
||||
'signup-pending': {
|
||||
req: SignupPendingRequest;
|
||||
res: SignupPendingResponse;
|
||||
};
|
||||
'signin': {
|
||||
req: SigninRequest;
|
||||
res: SigninResponse;
|
||||
};
|
||||
}>;
|
||||
|
||||
// @public (undocumented)
|
||||
@@ -1053,6 +1065,12 @@ declare namespace entities {
|
||||
EmojiUpdated,
|
||||
EmojiDeleted,
|
||||
AnnouncementCreated,
|
||||
SignupRequest,
|
||||
SignupResponse,
|
||||
SignupPendingRequest,
|
||||
SignupPendingResponse,
|
||||
SigninRequest,
|
||||
SigninResponse,
|
||||
EmptyRequest,
|
||||
EmptyResponse,
|
||||
AdminMetaResponse,
|
||||
@@ -2619,6 +2637,47 @@ type ServerStatsLog = string[];
|
||||
// @public (undocumented)
|
||||
type Signin = components['schemas']['Signin'];
|
||||
|
||||
// @public (undocumented)
|
||||
type SigninRequest = {
|
||||
username: string;
|
||||
password: string;
|
||||
token?: string;
|
||||
};
|
||||
|
||||
// @public (undocumented)
|
||||
type SigninResponse = {
|
||||
id: User['id'];
|
||||
i: string;
|
||||
};
|
||||
|
||||
// @public (undocumented)
|
||||
type SignupPendingRequest = {
|
||||
code: string;
|
||||
};
|
||||
|
||||
// @public (undocumented)
|
||||
type SignupPendingResponse = {
|
||||
id: User['id'];
|
||||
i: string;
|
||||
};
|
||||
|
||||
// @public (undocumented)
|
||||
type SignupRequest = {
|
||||
username: string;
|
||||
password: string;
|
||||
host?: string;
|
||||
invitationCode?: string;
|
||||
emailAddress?: string;
|
||||
'hcaptcha-response'?: string | null;
|
||||
'g-recaptcha-response'?: string | null;
|
||||
'turnstile-response'?: string | null;
|
||||
};
|
||||
|
||||
// @public (undocumented)
|
||||
type SignupResponse = MeDetailed & {
|
||||
token: string;
|
||||
};
|
||||
|
||||
// @public (undocumented)
|
||||
type StatsResponse = operations['stats']['responses']['200']['content']['application/json'];
|
||||
|
||||
|
||||
@@ -1,6 +1,14 @@
|
||||
import { Endpoints as Gen } from './autogen/endpoint';
|
||||
import { UserDetailed } from './autogen/models';
|
||||
import { UsersShowRequest } from './autogen/entities';
|
||||
import {
|
||||
SigninRequest,
|
||||
SigninResponse,
|
||||
SignupPendingRequest,
|
||||
SignupPendingResponse,
|
||||
SignupRequest,
|
||||
SignupResponse,
|
||||
} from './entities';
|
||||
|
||||
type Overwrite<T, U extends { [Key in keyof T]?: unknown }> = Omit<
|
||||
T,
|
||||
@@ -55,6 +63,21 @@ export type Endpoints = Overwrite<
|
||||
$default: UserDetailed;
|
||||
};
|
||||
};
|
||||
}
|
||||
},
|
||||
// api.jsonには載せないものなのでここで定義
|
||||
'signup': {
|
||||
req: SignupRequest;
|
||||
res: SignupResponse;
|
||||
},
|
||||
// api.jsonには載せないものなのでここで定義
|
||||
'signup-pending': {
|
||||
req: SignupPendingRequest;
|
||||
res: SignupPendingResponse;
|
||||
},
|
||||
// api.jsonには載せないものなのでここで定義
|
||||
'signin': {
|
||||
req: SigninRequest;
|
||||
res: SigninResponse;
|
||||
},
|
||||
}
|
||||
>
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
* version: 2023.12.2
|
||||
* generatedAt: 2024-01-05T17:21:28.090Z
|
||||
* generatedAt: 2024-01-02T08:53:57.445Z
|
||||
*/
|
||||
|
||||
import type {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
* version: 2023.12.2
|
||||
* generatedAt: 2024-01-05T17:21:28.088Z
|
||||
* generatedAt: 2024-01-02T08:53:57.443Z
|
||||
*/
|
||||
|
||||
import { operations } from './types.js';
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
* version: 2023.12.2
|
||||
* generatedAt: 2024-01-05T17:21:28.087Z
|
||||
* generatedAt: 2024-01-06T10:58:05.668Z
|
||||
*/
|
||||
|
||||
import { components } from './types.js';
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
/*
|
||||
* version: 2023.12.2
|
||||
* generatedAt: 2024-01-05T17:21:27.961Z
|
||||
* generatedAt: 2024-01-02T08:53:56.447Z
|
||||
*/
|
||||
|
||||
/**
|
||||
@@ -3788,13 +3788,14 @@ export type components = {
|
||||
* @example xxxxxxxxxx
|
||||
*/
|
||||
channelId?: string | null;
|
||||
channel?: {
|
||||
channel?: ({
|
||||
id: string;
|
||||
name: string;
|
||||
color: string;
|
||||
isSensitive: boolean;
|
||||
allowRenoteToExternal: boolean;
|
||||
} | null;
|
||||
userId: string | null;
|
||||
}) | null;
|
||||
localOnly?: boolean;
|
||||
reactionAcceptance: string | null;
|
||||
reactions: Record<string, never>;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { ModerationLogPayloads } from './consts.js';
|
||||
import { Announcement, EmojiDetailed, Page, User, UserDetailed } from './autogen/models';
|
||||
import { Announcement, EmojiDetailed, MeDetailed, MeDetailedOnly, Page, User, UserDetailed } from './autogen/models';
|
||||
|
||||
export * from './autogen/entities';
|
||||
export * from './autogen/models';
|
||||
@@ -183,3 +183,38 @@ export type EmojiDeleted = {
|
||||
export type AnnouncementCreated = {
|
||||
announcement: Announcement;
|
||||
};
|
||||
|
||||
export type SignupRequest = {
|
||||
username: string;
|
||||
password: string;
|
||||
host?: string;
|
||||
invitationCode?: string;
|
||||
emailAddress?: string;
|
||||
'hcaptcha-response'?: string | null;
|
||||
'g-recaptcha-response'?: string | null;
|
||||
'turnstile-response'?: string | null;
|
||||
}
|
||||
|
||||
export type SignupResponse = MeDetailed & {
|
||||
token: string;
|
||||
}
|
||||
|
||||
export type SignupPendingRequest = {
|
||||
code: string;
|
||||
};
|
||||
|
||||
export type SignupPendingResponse = {
|
||||
id: User['id'],
|
||||
i: string,
|
||||
};
|
||||
|
||||
export type SigninRequest = {
|
||||
username: string;
|
||||
password: string;
|
||||
token?: string;
|
||||
};
|
||||
|
||||
export type SigninResponse = {
|
||||
id: User['id'],
|
||||
i: string,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user