alias廃止
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import type { generateAuthURIOptions } from "1.6.8/types/auth";
|
||||
import type { generateAuthURIOptions } from "./types/auth";
|
||||
import { v4 as uuidv4 } from "uuid";
|
||||
|
||||
/** ユーザー認可によるトークン取得のURIを生成します。 */
|
||||
|
||||
Vendored
+1
-1
@@ -1,2 +1,2 @@
|
||||
import { ApiMap } from "1.6.8/types/api/map";
|
||||
import { ApiMap } from "./types/api/map";
|
||||
export default ApiMap;
|
||||
+3
-3
@@ -1,6 +1,6 @@
|
||||
import InputError from "1.6.8/types/modules/error/input";
|
||||
import AuthError from "1.6.8/types/modules/error/auth";
|
||||
import Page from "1.6.8/types/modules/page";
|
||||
import InputError from "../../../modules/error/input";
|
||||
import AuthError from "../../../modules/error/auth";
|
||||
import Page from "../../../modules/page";
|
||||
|
||||
export default interface AdminReports {
|
||||
"admin/reports/": {
|
||||
|
||||
+2
-2
@@ -1,5 +1,5 @@
|
||||
import InputError from "1.6.8/types/modules/error/input";
|
||||
import AuthError from "1.6.8/types/modules/error/auth";
|
||||
import InputError from "../../../modules/error/input";
|
||||
import AuthError from "../../../modules/error/auth";
|
||||
|
||||
export default interface AdminReportsResolve {
|
||||
"admin/reports/resolve": {
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import { UserResponse } from "1.6.8/types/api/users";
|
||||
import { UserResponse } from "../../../api/users";
|
||||
|
||||
export default interface AdminUsers {
|
||||
"admin/users/": {
|
||||
|
||||
+3
-3
@@ -1,6 +1,6 @@
|
||||
import InputError from "1.6.8/types/modules/error/input";
|
||||
import AuthError from "1.6.8/types/modules/error/auth";
|
||||
import { UserDataNotFound } from "1.6.8/types/modules/error/critical";
|
||||
import InputError from "../../../modules/error/input";
|
||||
import AuthError from "../../../modules/error/auth";
|
||||
import { UserDataNotFound } from "../../../modules/error/critical";
|
||||
|
||||
interface RequestBase<T extends string> {
|
||||
/** 対象のユーザーID */
|
||||
|
||||
+2
-2
@@ -1,5 +1,5 @@
|
||||
import InputError from "1.6.8/types/modules/error/input";
|
||||
import AuthError from "1.6.8/types/modules/error/auth";
|
||||
import InputError from "../../modules/error/input";
|
||||
import AuthError from "../../modules/error/auth";
|
||||
|
||||
export default interface FavoriteChange {
|
||||
"favorite/change": {
|
||||
|
||||
+2
-2
@@ -1,5 +1,5 @@
|
||||
import InputError from "1.6.8/types/modules/error/input";
|
||||
import AuthError from "1.6.8/types/modules/error/auth";
|
||||
import InputError from "../../modules/error/input";
|
||||
import AuthError from "../../modules/error/auth";
|
||||
|
||||
export default interface FavoriteGet {
|
||||
"favorite/get": {
|
||||
|
||||
Vendored
+8
-8
@@ -1,11 +1,11 @@
|
||||
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";
|
||||
import ServerInfo from "./serverinfo-api";
|
||||
import Users from "./users";
|
||||
import UsersFollow from "./users/follow";
|
||||
import Me from "./me";
|
||||
import MeNotification from "./me/notification";
|
||||
import MeNotificationRead from "./me/notification/read";
|
||||
import MeSettings from "./me/settings";
|
||||
import Ueuse from "./ueuse";
|
||||
|
||||
export type ApiMap =
|
||||
& ServerInfo
|
||||
|
||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
import { UserResponse } from "1.6.8/types/api/users";
|
||||
import { UserResponse } from "../../api/users";
|
||||
|
||||
export default interface Me {
|
||||
"me/": {
|
||||
|
||||
+3
-3
@@ -1,6 +1,6 @@
|
||||
import InputError from "1.6.8/types/modules/error/input";
|
||||
import AuthError from "1.6.8/types/modules/error/auth";
|
||||
import Page from "1.6.8/types/modules/page";
|
||||
import InputError from "../../../modules/error/input";
|
||||
import AuthError from "../../../modules/error/auth";
|
||||
import Page from "../../../modules/page";
|
||||
|
||||
export default interface MeNotification {
|
||||
"me/notification/": {
|
||||
|
||||
+3
-3
@@ -1,6 +1,6 @@
|
||||
import InputError from "1.6.8/types/modules/error/input";
|
||||
import AuthError from "1.6.8/types/modules/error/auth";
|
||||
import UpdateError from "1.6.8/types/modules/error/update";
|
||||
import InputError from "../../../modules/error/input";
|
||||
import AuthError from "../../../modules/error/auth";
|
||||
import UpdateError from "../../../modules/error/update";
|
||||
|
||||
export default interface MeNotificationRead {
|
||||
"me/notification/read": {
|
||||
|
||||
Vendored
+4
-4
@@ -1,7 +1,7 @@
|
||||
import InputError from "1.6.8/types/modules/error/input";
|
||||
import AuthError from "1.6.8/types/modules/error/auth";
|
||||
import UpdateError from "1.6.8/types/modules/error/update";
|
||||
import { Upload1Error, Upload2Error, UploadCommonError } from "1.6.8/types/modules/error/upload";
|
||||
import InputError from "../../modules/error/input";
|
||||
import AuthError from "../../modules/error/auth";
|
||||
import UpdateError from "../../modules/error/update";
|
||||
import { Upload1Error, Upload2Error, UploadCommonError } from "../../modules/error/upload";
|
||||
|
||||
type AtLeastOne<T> = {
|
||||
[K in keyof T]: Required<Pick<T, K>> & Partial<Omit<T, K>>
|
||||
|
||||
Vendored
+2
-2
@@ -1,5 +1,5 @@
|
||||
import InputError from "1.6.8/types/modules/error/input";
|
||||
import { UserDataNotFound } from "1.6.8/types/modules/error/critical";
|
||||
import InputError from "../../modules/error/input";
|
||||
import { UserDataNotFound } from "../../modules/error/critical";
|
||||
|
||||
export default interface TokenGet {
|
||||
"ueuse/get": {
|
||||
|
||||
+5
-5
@@ -1,8 +1,8 @@
|
||||
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";
|
||||
import InputError from "../../../modules/error/input";
|
||||
import AuthError from "../../../modules/error/auth";
|
||||
import { ueuseModule } from "../../../modules/ueuse";
|
||||
import ueuseError from "../../../modules/error/ueuse";
|
||||
import Page from "../../../modules/page";
|
||||
|
||||
export default interface UeuseBookmark {
|
||||
"ueuse/bookmark/": {
|
||||
|
||||
+3
-3
@@ -1,6 +1,6 @@
|
||||
import InputError from "1.6.8/types/modules/error/input";
|
||||
import AuthError from "1.6.8/types/modules/error/auth";
|
||||
import { Media } from "1.6.8/types/modules/ueuse";
|
||||
import InputError from "../../modules/error/input";
|
||||
import AuthError from "../../modules/error/auth";
|
||||
import { Media } from "../../modules/ueuse";
|
||||
|
||||
export default interface UeuseCreate {
|
||||
"ueuse/get": {
|
||||
|
||||
+2
-2
@@ -1,5 +1,5 @@
|
||||
import InputError from "1.6.8/types/modules/error/input";
|
||||
import AuthError from "1.6.8/types/modules/error/auth";
|
||||
import InputError from "../../modules/error/input";
|
||||
import AuthError from "../../modules/error/auth";
|
||||
|
||||
interface ResponseBase<T extends string, S extends boolean> {
|
||||
/** 成功かどうか */
|
||||
|
||||
Vendored
+4
-4
@@ -1,7 +1,7 @@
|
||||
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 InputError from "../../modules/error/input";
|
||||
import AuthError from "../../modules/error/auth";
|
||||
import { ueuseModule } from "../../modules/ueuse";
|
||||
import ueuseError from "../../modules/error/ueuse";
|
||||
|
||||
export default interface UeuseGet {
|
||||
"ueuse/get": {
|
||||
|
||||
Vendored
+5
-5
@@ -1,8 +1,8 @@
|
||||
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";
|
||||
import InputError from "../../modules/error/input";
|
||||
import AuthError from "../../modules/error/auth";
|
||||
import { ueuseModule } from "../../modules/ueuse";
|
||||
import ueuseError from "../../modules/error/ueuse";
|
||||
import Page from "../../modules/page";
|
||||
|
||||
export default interface Ueuse {
|
||||
"ueuse/": {
|
||||
|
||||
+5
-5
@@ -1,8 +1,8 @@
|
||||
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";
|
||||
import InputError from "../../modules/error/input";
|
||||
import AuthError from "../../modules/error/auth";
|
||||
import { ueuseModule } from "../../modules/ueuse";
|
||||
import ueuseError from "../../modules/error/ueuse";
|
||||
import Page from "../../modules/page";
|
||||
|
||||
export default interface UeuseMentions {
|
||||
"ueuse/mentions": {
|
||||
|
||||
+5
-5
@@ -1,8 +1,8 @@
|
||||
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";
|
||||
import InputError from "../../modules/error/input";
|
||||
import AuthError from "../../modules/error/auth";
|
||||
import { ueuseModule } from "../../modules/ueuse";
|
||||
import ueuseError from "../../modules/error/ueuse";
|
||||
import Page from "../../modules/page";
|
||||
|
||||
export default interface UeuseReplies {
|
||||
"ueuse/replies": {
|
||||
|
||||
+5
-5
@@ -1,8 +1,8 @@
|
||||
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";
|
||||
import InputError from "../../modules/error/input";
|
||||
import AuthError from "../../modules/error/auth";
|
||||
import { ueuseModule } from "../../modules/ueuse";
|
||||
import ueuseError from "../../modules/error/ueuse";
|
||||
import Page from "../../modules/page";
|
||||
|
||||
export default interface UeuseSearch {
|
||||
"ueuse/search": {
|
||||
|
||||
+5
-5
@@ -1,8 +1,8 @@
|
||||
import InputError from "1.6.8/types/modules/error/input";
|
||||
import AuthError from "1.6.8/types/modules/error/auth";
|
||||
import UpdateError, { CouldNotComplete } from "1.6.8/types/modules/error/update";
|
||||
import ToYouNotAllowed from "1.6.8/types/modules/error/follow";
|
||||
import { UserDataNotFound } from "1.6.8/types/modules/error/critical";
|
||||
import InputError from "../../modules/error/input";
|
||||
import AuthError from "../../modules/error/auth";
|
||||
import UpdateError, { CouldNotComplete } from "../../modules/error/update";
|
||||
import ToYouNotAllowed from "../../modules/error/follow";
|
||||
import { UserDataNotFound } from "../../modules/error/critical";
|
||||
|
||||
interface Follow<T extends string> {
|
||||
body: {
|
||||
|
||||
Vendored
+4
-4
@@ -1,7 +1,7 @@
|
||||
import Role from "1.6.8/types/modules/role";
|
||||
import InputError from "1.6.8/types/modules/error/input";
|
||||
import AuthError from "1.6.8/types/modules/error/auth";
|
||||
import { UserDataNotFound } from "1.6.8/types/modules/error/critical";
|
||||
import Role from "../../modules/role";
|
||||
import InputError from "../../modules/error/input";
|
||||
import AuthError from "../../modules/error/auth";
|
||||
import { UserDataNotFound } from "../../modules/error/critical";
|
||||
|
||||
export type UserResponse = {
|
||||
/** 成功かどうか */
|
||||
|
||||
+2
-2
@@ -1,5 +1,5 @@
|
||||
import uwuzuError from "@/lib/error";
|
||||
import uwuzuFetch from "@/lib/fetch";
|
||||
import uwuzuError from "./lib/error";
|
||||
import uwuzuFetch from "./lib/fetch";
|
||||
|
||||
interface sdkOptions {
|
||||
/** uwuzuサーバーのorigin */
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import uwuzuError from "@/lib/error";
|
||||
import uwuzuError from "./error";
|
||||
|
||||
export function generateURL(
|
||||
origin: string,
|
||||
|
||||
@@ -17,10 +17,6 @@
|
||||
"typeRoots": [
|
||||
"./node_modules/@types",
|
||||
],
|
||||
"paths": {
|
||||
"@/*": ["./*"],
|
||||
"1.6.8/*": ["./1.6.8/*"],
|
||||
},
|
||||
},
|
||||
"tsc-alias": {
|
||||
"resolveFullPaths": true,
|
||||
|
||||
Reference in New Issue
Block a user