実装:#4
This commit is contained in:
@@ -1,2 +0,0 @@
|
|||||||
import { ApiMap } from "1.6.11/types/api/map";
|
|
||||||
export default ApiMap;
|
|
||||||
@@ -1,18 +0,0 @@
|
|||||||
import ServerInfo from "1.6.11/types/api/serverinfo-api";
|
|
||||||
import Users from "1.6.11/types/api/users";
|
|
||||||
import UsersFollow from "1.6.11/types/api/users/follow";
|
|
||||||
import Me from "1.6.11/types/api/me";
|
|
||||||
import MeNotification from "1.6.11/types/api/me/notification";
|
|
||||||
import MeNotificationRead from "1.6.11/types/api/me/notification/read";
|
|
||||||
import MeSettings from "1.6.11/types/api/me/settings";
|
|
||||||
import Ueuse from "1.6.11/types/api/ueuse";
|
|
||||||
|
|
||||||
export type ApiMap =
|
|
||||||
& ServerInfo
|
|
||||||
& Me
|
|
||||||
& MeNotification
|
|
||||||
& MeNotificationRead
|
|
||||||
& MeSettings
|
|
||||||
& Users
|
|
||||||
& UsersFollow
|
|
||||||
& Ueuse;
|
|
||||||
@@ -1,17 +0,0 @@
|
|||||||
import InputError from "1.6.11/types/modules/error/input";
|
|
||||||
import AuthError from "1.6.11/types/modules/error/auth";
|
|
||||||
import { ueuseModule } from "1.6.11/types/modules/ueuse";
|
|
||||||
import ueuseError from "1.6.11/types/modules/error/ueuse";
|
|
||||||
import Page from "1.6.11/types/modules/page";
|
|
||||||
|
|
||||||
export default interface UeuseBookmark {
|
|
||||||
"ueuse/bookmark/": {
|
|
||||||
body?: Page;
|
|
||||||
response: {
|
|
||||||
/** 成功かどうか */
|
|
||||||
success: true;
|
|
||||||
/** ブックマークしているユーズ */
|
|
||||||
data: ueuseModule[];
|
|
||||||
} | InputError | AuthError | ueuseError;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
@@ -1,17 +0,0 @@
|
|||||||
import InputError from "1.6.11/types/modules/error/input";
|
|
||||||
import AuthError from "1.6.11/types/modules/error/auth";
|
|
||||||
import { ueuseModule } from "1.6.11/types/modules/ueuse";
|
|
||||||
import ueuseError from "1.6.11/types/modules/error/ueuse";
|
|
||||||
import Page from "1.6.11/types/modules/page";
|
|
||||||
|
|
||||||
export default interface Ueuse {
|
|
||||||
"ueuse/": {
|
|
||||||
body?: Page;
|
|
||||||
response: {
|
|
||||||
/** 成功かどうか */
|
|
||||||
success: true;
|
|
||||||
/** ユーズ(LTL) */
|
|
||||||
data: ueuseModule[];
|
|
||||||
} | InputError | AuthError | ueuseError;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
@@ -1,17 +0,0 @@
|
|||||||
import InputError from "1.6.11/types/modules/error/input";
|
|
||||||
import AuthError from "1.6.11/types/modules/error/auth";
|
|
||||||
import { ueuseModule } from "1.6.11/types/modules/ueuse";
|
|
||||||
import ueuseError from "1.6.11/types/modules/error/ueuse";
|
|
||||||
import Page from "1.6.11/types/modules/page";
|
|
||||||
|
|
||||||
export default interface UeuseMentions {
|
|
||||||
"ueuse/mentions": {
|
|
||||||
body?: Page;
|
|
||||||
response: {
|
|
||||||
/** 成功かどうか */
|
|
||||||
success: true;
|
|
||||||
/** メンションされているユーズ */
|
|
||||||
data: ueuseModule[];
|
|
||||||
} | InputError | AuthError | ueuseError;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
import type { generateAuthURIOptions } from "1.6.11/types/auth";
|
import type { generateAuthURIOptions } from "1.6.8/types/auth";
|
||||||
import { v4 as uuidv4 } from "uuid";
|
import { v4 as uuidv4 } from "uuid";
|
||||||
|
|
||||||
/** ユーザー認可によるトークン取得のURIを生成します。 */
|
/** ユーザー認可によるトークン取得のURIを生成します。 */
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
import { ApiMap } from "1.6.8/types/api/map";
|
||||||
|
export default ApiMap;
|
||||||
+3
-3
@@ -1,6 +1,6 @@
|
|||||||
import InputError from "1.6.11/types/modules/error/input";
|
import InputError from "1.6.8/types/modules/error/input";
|
||||||
import AuthError from "1.6.11/types/modules/error/auth";
|
import AuthError from "1.6.8/types/modules/error/auth";
|
||||||
import Page from "1.6.11/types/modules/page";
|
import Page from "1.6.8/types/modules/page";
|
||||||
|
|
||||||
export default interface AdminReports {
|
export default interface AdminReports {
|
||||||
"admin/reports/": {
|
"admin/reports/": {
|
||||||
+2
-2
@@ -1,5 +1,5 @@
|
|||||||
import InputError from "1.6.11/types/modules/error/input";
|
import InputError from "1.6.8/types/modules/error/input";
|
||||||
import AuthError from "1.6.11/types/modules/error/auth";
|
import AuthError from "1.6.8/types/modules/error/auth";
|
||||||
|
|
||||||
export default interface AdminReportsResolve {
|
export default interface AdminReportsResolve {
|
||||||
"admin/reports/resolve": {
|
"admin/reports/resolve": {
|
||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
import { UserResponse } from "1.6.11/types/api/users";
|
import { UserResponse } from "1.6.8/types/api/users";
|
||||||
|
|
||||||
export default interface AdminUsers {
|
export default interface AdminUsers {
|
||||||
"admin/users/": {
|
"admin/users/": {
|
||||||
+3
-3
@@ -1,6 +1,6 @@
|
|||||||
import InputError from "1.6.11/types/modules/error/input";
|
import InputError from "1.6.8/types/modules/error/input";
|
||||||
import AuthError from "1.6.11/types/modules/error/auth";
|
import AuthError from "1.6.8/types/modules/error/auth";
|
||||||
import { UserDataNotFound } from "1.6.11/types/modules/error/critical";
|
import { UserDataNotFound } from "1.6.8/types/modules/error/critical";
|
||||||
|
|
||||||
interface RequestBase<T extends string> {
|
interface RequestBase<T extends string> {
|
||||||
/** 対象のユーザーID */
|
/** 対象のユーザーID */
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
import InputError from "1.6.11/types/modules/error/input";
|
import InputError from "1.6.8/types/modules/error/input";
|
||||||
import AuthError from "1.6.11/types/modules/error/auth";
|
import AuthError from "1.6.8/types/modules/error/auth";
|
||||||
|
|
||||||
export default interface FavoriteChange {
|
export default interface FavoriteChange {
|
||||||
"favorite/change": {
|
"favorite/change": {
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
import InputError from "1.6.11/types/modules/error/input";
|
import InputError from "1.6.8/types/modules/error/input";
|
||||||
import AuthError from "1.6.11/types/modules/error/auth";
|
import AuthError from "1.6.8/types/modules/error/auth";
|
||||||
|
|
||||||
export default interface FavoriteGet {
|
export default interface FavoriteGet {
|
||||||
"favorite/get": {
|
"favorite/get": {
|
||||||
@@ -0,0 +1,18 @@
|
|||||||
|
import ServerInfo from "1.6.8/types/api/serverinfo-api";
|
||||||
|
import Users from "1.6.8/types/api/users";
|
||||||
|
import UsersFollow from "1.6.8/types/api/users/follow";
|
||||||
|
import Me from "1.6.8/types/api/me";
|
||||||
|
import MeNotification from "1.6.8/types/api/me/notification";
|
||||||
|
import MeNotificationRead from "1.6.8/types/api/me/notification/read";
|
||||||
|
import MeSettings from "1.6.8/types/api/me/settings";
|
||||||
|
import Ueuse from "1.6.8/types/api/ueuse";
|
||||||
|
|
||||||
|
export type ApiMap =
|
||||||
|
& ServerInfo
|
||||||
|
& Me
|
||||||
|
& MeNotification
|
||||||
|
& MeNotificationRead
|
||||||
|
& MeSettings
|
||||||
|
& Users
|
||||||
|
& UsersFollow
|
||||||
|
& Ueuse;
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
import { UserResponse } from "1.6.11/types/api/users";
|
import { UserResponse } from "1.6.8/types/api/users";
|
||||||
|
|
||||||
export default interface Me {
|
export default interface Me {
|
||||||
"me/": {
|
"me/": {
|
||||||
+3
-3
@@ -1,6 +1,6 @@
|
|||||||
import InputError from "1.6.11/types/modules/error/input";
|
import InputError from "1.6.8/types/modules/error/input";
|
||||||
import AuthError from "1.6.11/types/modules/error/auth";
|
import AuthError from "1.6.8/types/modules/error/auth";
|
||||||
import Page from "1.6.11/types/modules/page";
|
import Page from "1.6.8/types/modules/page";
|
||||||
|
|
||||||
export default interface MeNotification {
|
export default interface MeNotification {
|
||||||
"me/notification/": {
|
"me/notification/": {
|
||||||
+3
-3
@@ -1,6 +1,6 @@
|
|||||||
import InputError from "1.6.11/types/modules/error/input";
|
import InputError from "1.6.8/types/modules/error/input";
|
||||||
import AuthError from "1.6.11/types/modules/error/auth";
|
import AuthError from "1.6.8/types/modules/error/auth";
|
||||||
import UpdateError from "1.6.11/types/modules/error/update";
|
import UpdateError from "1.6.8/types/modules/error/update";
|
||||||
|
|
||||||
export default interface MeNotificationRead {
|
export default interface MeNotificationRead {
|
||||||
"me/notification/read": {
|
"me/notification/read": {
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
import InputError from "1.6.11/types/modules/error/input";
|
import InputError from "1.6.8/types/modules/error/input";
|
||||||
import AuthError from "1.6.11/types/modules/error/auth";
|
import AuthError from "1.6.8/types/modules/error/auth";
|
||||||
import UpdateError from "1.6.11/types/modules/error/update";
|
import UpdateError from "1.6.8/types/modules/error/update";
|
||||||
import { Upload1Error, Upload2Error, UploadCommonError } from "1.6.11/types/modules/error/upload";
|
import { Upload1Error, Upload2Error, UploadCommonError } from "1.6.8/types/modules/error/upload";
|
||||||
|
|
||||||
type AtLeastOne<T> = {
|
type AtLeastOne<T> = {
|
||||||
[K in keyof T]: Required<Pick<T, K>> & Partial<Omit<T, K>>
|
[K in keyof T]: Required<Pick<T, K>> & Partial<Omit<T, K>>
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
import InputError from "1.6.11/types/modules/error/input";
|
import InputError from "1.6.8/types/modules/error/input";
|
||||||
import { UserDataNotFound } from "1.6.11/types/modules/error/critical";
|
import { UserDataNotFound } from "1.6.8/types/modules/error/critical";
|
||||||
|
|
||||||
export default interface TokenGet {
|
export default interface TokenGet {
|
||||||
"ueuse/get": {
|
"ueuse/get": {
|
||||||
@@ -0,0 +1,17 @@
|
|||||||
|
import InputError from "1.6.8/types/modules/error/input";
|
||||||
|
import AuthError from "1.6.8/types/modules/error/auth";
|
||||||
|
import { ueuseModule } from "1.6.8/types/modules/ueuse";
|
||||||
|
import ueuseError from "1.6.8/types/modules/error/ueuse";
|
||||||
|
import Page from "1.6.8/types/modules/page";
|
||||||
|
|
||||||
|
export default interface UeuseBookmark {
|
||||||
|
"ueuse/bookmark/": {
|
||||||
|
body?: Page;
|
||||||
|
response: {
|
||||||
|
/** 成功かどうか */
|
||||||
|
success: true;
|
||||||
|
/** ブックマークしているユーズ */
|
||||||
|
data: ueuseModule[];
|
||||||
|
} | InputError | AuthError | ueuseError;
|
||||||
|
}
|
||||||
|
};
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
import InputError from "1.6.11/types/modules/error/input";
|
import InputError from "1.6.8/types/modules/error/input";
|
||||||
import AuthError from "1.6.11/types/modules/error/auth";
|
import AuthError from "1.6.8/types/modules/error/auth";
|
||||||
import { Media } from "1.6.11/types/modules/ueuse";
|
import { Media } from "1.6.8/types/modules/ueuse";
|
||||||
|
|
||||||
export default interface UeuseCreate {
|
export default interface UeuseCreate {
|
||||||
"ueuse/get": {
|
"ueuse/get": {
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
import InputError from "1.6.11/types/modules/error/input";
|
import InputError from "1.6.8/types/modules/error/input";
|
||||||
import AuthError from "1.6.11/types/modules/error/auth";
|
import AuthError from "1.6.8/types/modules/error/auth";
|
||||||
|
|
||||||
interface ResponseBase<T extends string, S extends boolean> {
|
interface ResponseBase<T extends string, S extends boolean> {
|
||||||
/** 成功かどうか */
|
/** 成功かどうか */
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
import InputError from "1.6.11/types/modules/error/input";
|
import InputError from "1.6.8/types/modules/error/input";
|
||||||
import AuthError from "1.6.11/types/modules/error/auth";
|
import AuthError from "1.6.8/types/modules/error/auth";
|
||||||
import { ueuseModule } from "1.6.11/types/modules/ueuse";
|
import { ueuseModule } from "1.6.8/types/modules/ueuse";
|
||||||
import ueuseError from "1.6.11/types/modules/error/ueuse";
|
import ueuseError from "1.6.8/types/modules/error/ueuse";
|
||||||
|
|
||||||
export default interface UeuseGet {
|
export default interface UeuseGet {
|
||||||
"ueuse/get": {
|
"ueuse/get": {
|
||||||
@@ -0,0 +1,17 @@
|
|||||||
|
import InputError from "1.6.8/types/modules/error/input";
|
||||||
|
import AuthError from "1.6.8/types/modules/error/auth";
|
||||||
|
import { ueuseModule } from "1.6.8/types/modules/ueuse";
|
||||||
|
import ueuseError from "1.6.8/types/modules/error/ueuse";
|
||||||
|
import Page from "1.6.8/types/modules/page";
|
||||||
|
|
||||||
|
export default interface Ueuse {
|
||||||
|
"ueuse/": {
|
||||||
|
body?: Page;
|
||||||
|
response: {
|
||||||
|
/** 成功かどうか */
|
||||||
|
success: true;
|
||||||
|
/** ユーズ(LTL) */
|
||||||
|
data: ueuseModule[];
|
||||||
|
} | InputError | AuthError | ueuseError;
|
||||||
|
}
|
||||||
|
};
|
||||||
@@ -0,0 +1,17 @@
|
|||||||
|
import InputError from "1.6.8/types/modules/error/input";
|
||||||
|
import AuthError from "1.6.8/types/modules/error/auth";
|
||||||
|
import { ueuseModule } from "1.6.8/types/modules/ueuse";
|
||||||
|
import ueuseError from "1.6.8/types/modules/error/ueuse";
|
||||||
|
import Page from "1.6.8/types/modules/page";
|
||||||
|
|
||||||
|
export default interface UeuseMentions {
|
||||||
|
"ueuse/mentions": {
|
||||||
|
body?: Page;
|
||||||
|
response: {
|
||||||
|
/** 成功かどうか */
|
||||||
|
success: true;
|
||||||
|
/** メンションされているユーズ */
|
||||||
|
data: ueuseModule[];
|
||||||
|
} | InputError | AuthError | ueuseError;
|
||||||
|
}
|
||||||
|
};
|
||||||
@@ -1,8 +1,8 @@
|
|||||||
import InputError from "1.6.11/types/modules/error/input";
|
import InputError from "1.6.8/types/modules/error/input";
|
||||||
import AuthError from "1.6.11/types/modules/error/auth";
|
import AuthError from "1.6.8/types/modules/error/auth";
|
||||||
import { ueuseModule } from "1.6.11/types/modules/ueuse";
|
import { ueuseModule } from "1.6.8/types/modules/ueuse";
|
||||||
import ueuseError from "1.6.11/types/modules/error/ueuse";
|
import ueuseError from "1.6.8/types/modules/error/ueuse";
|
||||||
import Page from "1.6.11/types/modules/page";
|
import Page from "1.6.8/types/modules/page";
|
||||||
|
|
||||||
export default interface UeuseReplies {
|
export default interface UeuseReplies {
|
||||||
"ueuse/replies": {
|
"ueuse/replies": {
|
||||||
@@ -1,8 +1,8 @@
|
|||||||
import InputError from "1.6.11/types/modules/error/input";
|
import InputError from "1.6.8/types/modules/error/input";
|
||||||
import AuthError from "1.6.11/types/modules/error/auth";
|
import AuthError from "1.6.8/types/modules/error/auth";
|
||||||
import { ueuseModule } from "1.6.11/types/modules/ueuse";
|
import { ueuseModule } from "1.6.8/types/modules/ueuse";
|
||||||
import ueuseError from "1.6.11/types/modules/error/ueuse";
|
import ueuseError from "1.6.8/types/modules/error/ueuse";
|
||||||
import Page from "1.6.11/types/modules/page";
|
import Page from "1.6.8/types/modules/page";
|
||||||
|
|
||||||
export default interface UeuseSearch {
|
export default interface UeuseSearch {
|
||||||
"ueuse/search": {
|
"ueuse/search": {
|
||||||
@@ -1,8 +1,8 @@
|
|||||||
import InputError from "1.6.11/types/modules/error/input";
|
import InputError from "1.6.8/types/modules/error/input";
|
||||||
import AuthError from "1.6.11/types/modules/error/auth";
|
import AuthError from "1.6.8/types/modules/error/auth";
|
||||||
import UpdateError, { CouldNotComplete } from "1.6.11/types/modules/error/update";
|
import UpdateError, { CouldNotComplete } from "1.6.8/types/modules/error/update";
|
||||||
import ToYouNotAllowed from "1.6.11/types/modules/error/follow";
|
import ToYouNotAllowed from "1.6.8/types/modules/error/follow";
|
||||||
import { UserDataNotFound } from "1.6.11/types/modules/error/critical";
|
import { UserDataNotFound } from "1.6.8/types/modules/error/critical";
|
||||||
|
|
||||||
interface Follow<T extends string> {
|
interface Follow<T extends string> {
|
||||||
body: {
|
body: {
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
import Role from "1.6.11/types/modules/role";
|
import Role from "1.6.8/types/modules/role";
|
||||||
import InputError from "1.6.11/types/modules/error/input";
|
import InputError from "1.6.8/types/modules/error/input";
|
||||||
import AuthError from "1.6.11/types/modules/error/auth";
|
import AuthError from "1.6.8/types/modules/error/auth";
|
||||||
import { UserDataNotFound } from "1.6.11/types/modules/error/critical";
|
import { UserDataNotFound } from "1.6.8/types/modules/error/critical";
|
||||||
|
|
||||||
export type UserResponse = {
|
export type UserResponse = {
|
||||||
/** 成功かどうか */
|
/** 成功かどうか */
|
||||||
+4
-1
@@ -19,7 +19,10 @@
|
|||||||
],
|
],
|
||||||
"paths": {
|
"paths": {
|
||||||
"@/*": ["./*"],
|
"@/*": ["./*"],
|
||||||
"1.6.11/*": ["./1.6.11/*"],
|
"1.6.8/*": ["./1.6.8/*"],
|
||||||
|
"1.6.9/*": ["./1.6.8/*"],
|
||||||
|
"1.6.10/*": ["./1.6.8/*"],
|
||||||
|
"1.6.11/*": ["./1.6.8/*"],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
"tsc-alias": {
|
"tsc-alias": {
|
||||||
|
|||||||
Reference in New Issue
Block a user