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