mirror of
https://github.com/paricafe/misskey.git
synced 2024-11-29 19:26:44 -06:00
add consts
This commit is contained in:
parent
f08a840d7d
commit
43d9149c8a
4 changed files with 30 additions and 2 deletions
|
@ -1,3 +1,6 @@
|
||||||
|
# 0.0.10
|
||||||
|
- add consts
|
||||||
|
|
||||||
# 0.0.9
|
# 0.0.9
|
||||||
- add list of api permission
|
- add list of api permission
|
||||||
- Update Note type
|
- Update Note type
|
||||||
|
|
|
@ -2046,6 +2046,9 @@ type FetchLike = (input: string, init?: {
|
||||||
json(): Promise<any>;
|
json(): Promise<any>;
|
||||||
}>;
|
}>;
|
||||||
|
|
||||||
|
// @public (undocumented)
|
||||||
|
export const ffVisibility: readonly ["public", "followers", "private"];
|
||||||
|
|
||||||
// @public (undocumented)
|
// @public (undocumented)
|
||||||
type Following = {
|
type Following = {
|
||||||
id: ID;
|
id: ID;
|
||||||
|
@ -2177,6 +2180,9 @@ type MessagingMessage = {
|
||||||
groupId: UserGroup['id'] | null;
|
groupId: UserGroup['id'] | null;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// @public (undocumented)
|
||||||
|
export const mutedNoteReasons: readonly ["word", "manual", "spam", "other"];
|
||||||
|
|
||||||
// @public (undocumented)
|
// @public (undocumented)
|
||||||
type Note = {
|
type Note = {
|
||||||
id: ID;
|
id: ID;
|
||||||
|
@ -2232,6 +2238,9 @@ type NoteReaction = {
|
||||||
type: string;
|
type: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// @public (undocumented)
|
||||||
|
export const noteVisibilities: readonly ["public", "home", "followers", "specified"];
|
||||||
|
|
||||||
// @public (undocumented)
|
// @public (undocumented)
|
||||||
type Notification_2 = {
|
type Notification_2 = {
|
||||||
id: ID;
|
id: ID;
|
||||||
|
@ -2292,6 +2301,9 @@ type Notification_2 = {
|
||||||
icon?: string | null;
|
icon?: string | null;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// @public (undocumented)
|
||||||
|
export const notificationTypes: readonly ["follow", "mention", "reply", "renote", "quote", "reaction", "pollVote", "receiveFollowRequest", "followRequestAccepted", "groupInvited", "app"];
|
||||||
|
|
||||||
// @public (undocumented)
|
// @public (undocumented)
|
||||||
type OriginType = 'combined' | 'local' | 'remote';
|
type OriginType = 'combined' | 'local' | 'remote';
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,11 @@
|
||||||
|
export const notificationTypes = ['follow', 'mention', 'reply', 'renote', 'quote', 'reaction', 'pollVote', 'receiveFollowRequest', 'followRequestAccepted', 'groupInvited', 'app'] as const;
|
||||||
|
|
||||||
|
export const noteVisibilities = ['public', 'home', 'followers', 'specified'] as const;
|
||||||
|
|
||||||
|
export const mutedNoteReasons = ['word', 'manual', 'spam', 'other'] as const;
|
||||||
|
|
||||||
|
export const ffVisibility = ['public', 'followers', 'private'] as const;
|
||||||
|
|
||||||
export const permissions = [
|
export const permissions = [
|
||||||
'read:account',
|
'read:account',
|
||||||
'write:account',
|
'write:account',
|
|
@ -1,15 +1,20 @@
|
||||||
import { Endpoints } from './api.types';
|
import { Endpoints } from './api.types';
|
||||||
import Stream from './streaming';
|
import Stream from './streaming';
|
||||||
import { Acct } from './acct';
|
import { Acct } from './acct';
|
||||||
import { permissions } from './permissions';
|
import * as consts from './consts';
|
||||||
|
|
||||||
export {
|
export {
|
||||||
Endpoints,
|
Endpoints,
|
||||||
Stream,
|
Stream,
|
||||||
Acct,
|
Acct,
|
||||||
permissions,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export const permissions = consts.permissions;
|
||||||
|
export const notificationTypes = consts.notificationTypes;
|
||||||
|
export const noteVisibilities = consts.noteVisibilities;
|
||||||
|
export const mutedNoteReasons = consts.mutedNoteReasons;
|
||||||
|
export const ffVisibility = consts.ffVisibility;
|
||||||
|
|
||||||
// api extractor not supported yet
|
// api extractor not supported yet
|
||||||
//export * as api from './api';
|
//export * as api from './api';
|
||||||
//export * as entities from './entities';
|
//export * as entities from './entities';
|
||||||
|
|
Loading…
Reference in a new issue