?????????
This commit is contained in:
parent
bd9c084a3a
commit
02405287d1
|
@ -4,6 +4,7 @@
|
||||||
"description": "Misskey SDK for JavaScript",
|
"description": "Misskey SDK for JavaScript",
|
||||||
"main": "./built/index.js",
|
"main": "./built/index.js",
|
||||||
"types": "./built/index.d.ts",
|
"types": "./built/index.d.ts",
|
||||||
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "tsc",
|
"build": "tsc",
|
||||||
"dev": "tsc -w",
|
"dev": "tsc -w",
|
||||||
|
|
|
@ -2,7 +2,7 @@ import type {
|
||||||
Ad, Announcement, Antenna, App, AuthSession, Blocking, Channel, Clip, DateString, DetailedInstanceMetadata, DriveFile, DriveFolder, Following, FollowingFolloweePopulated, FollowingFollowerPopulated, FollowRequest, GalleryPost, Instance,
|
Ad, Announcement, Antenna, App, AuthSession, Blocking, Channel, Clip, DateString, DetailedInstanceMetadata, DriveFile, DriveFolder, Following, FollowingFolloweePopulated, FollowingFollowerPopulated, FollowRequest, GalleryPost, Instance,
|
||||||
LiteInstanceMetadata,
|
LiteInstanceMetadata,
|
||||||
MeDetailed,
|
MeDetailed,
|
||||||
Note, NoteFavorite, OriginType, Page, ServerInfo, Stats, User, UserDetailed, MeSignup, UserGroup, UserList, UserSorting, Notification, NoteReaction, Signin, MessagingMessage,
|
Note, NoteFavorite, OriginType, Page, ServerInfo, Stats, User, UserDetailed, MeSignup, UserList, UserSorting, Notification, NoteReaction, Signin,
|
||||||
} from './entities.js';
|
} from './entities.js';
|
||||||
|
|
||||||
type TODO = Record<string, any> | null;
|
type TODO = Record<string, any> | null;
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
import type { JSONSchema7 } from 'schema-type';
|
import type { JSONSchema7 } from 'schema-type';
|
||||||
import { IEndpointMeta } from './endpoints.types';
|
import { IEndpointMeta } from './endpoints.types.js';
|
||||||
import { localUsernameSchema, passwordSchema } from './schemas/user';
|
import { localUsernameSchema, passwordSchema } from './schemas/user.js';
|
||||||
import ms from 'ms';
|
import ms from 'ms';
|
||||||
import { chartSchemaToJSONSchema } from './schemas';
|
import { chartSchemaToJSONSchema } from './schemas.js';
|
||||||
import { chartsSchemas } from './schemas/charts.js';
|
import { chartsSchemas } from './schemas/charts.js';
|
||||||
|
|
||||||
export const endpoints = {
|
export const endpoints = {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import type { JSONSchema7, SchemaType } from 'schema-type';
|
import type { JSONSchema7, SchemaType } from 'schema-type';
|
||||||
import type { References } from './schemas';
|
import type { References } from './schemas.js';
|
||||||
import type { endpoints } from './endpoints';
|
import type { endpoints } from './endpoints.js';
|
||||||
import type { DeepOmit } from 'ts-essentials';
|
import type { DeepOmit } from 'ts-essentials';
|
||||||
|
|
||||||
export type RolePolicies = {
|
export type RolePolicies = {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { Packed } from "./schemas";
|
import { Packed } from "./schemas.js";
|
||||||
|
|
||||||
export type ID = Packed<'Id'>;
|
export type ID = Packed<'Id'>;
|
||||||
export type DateString = string;
|
export type DateString = string;
|
||||||
|
@ -175,3 +175,5 @@ export type UserSorting =
|
||||||
| '+updatedAt'
|
| '+updatedAt'
|
||||||
| '-updatedAt';
|
| '-updatedAt';
|
||||||
export type OriginType = 'combined' | 'local' | 'remote';
|
export type OriginType = 'combined' | 'local' | 'remote';
|
||||||
|
|
||||||
|
export type MeSignup = TODO;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { ChartSchema } from "../schemas";
|
import { ChartSchema } from "../schemas.js";
|
||||||
|
|
||||||
export const chartsSchemas = {
|
export const chartsSchemas = {
|
||||||
'activeUsers': {
|
'activeUsers': {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import type { JSONSchema7Definition } from 'schema-type';
|
import type { JSONSchema7Definition } from 'schema-type';
|
||||||
import { ACHIEVEMENT_TYPES, notificationTypes } from '../consts';
|
import { ACHIEVEMENT_TYPES, notificationTypes } from '../consts.js';
|
||||||
|
|
||||||
export const notificationTypeSchema = {
|
export const notificationTypeSchema = {
|
||||||
$id: 'https://misskey-hub.net/api/schemas/NotificationTypes',
|
$id: 'https://misskey-hub.net/api/schemas/NotificationTypes',
|
||||||
|
|
Loading…
Reference in New Issue