diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2021-11-11 21:59:50 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2021-11-11 21:59:50 +0900 |
| commit | 714753d0014bee70fdf99b786f461ca49cb19b5c (patch) | |
| tree | 5147eb9b3b7bd2892f32ddc7366e28129b56b1aa | |
| parent | 0.0.8 (diff) | |
| download | misskey-714753d0014bee70fdf99b786f461ca49cb19b5c.tar.gz misskey-714753d0014bee70fdf99b786f461ca49cb19b5c.tar.bz2 misskey-714753d0014bee70fdf99b786f461ca49cb19b5c.zip | |
add list of api permission, Update Note type
| -rw-r--r-- | CHANGELOG.md | 4 | ||||
| -rw-r--r-- | etc/misskey-js.api.md | 4 | ||||
| -rw-r--r-- | src/entities.ts | 1 | ||||
| -rw-r--r-- | src/index.ts | 4 | ||||
| -rw-r--r-- | src/permissions.ts | 34 |
5 files changed, 46 insertions, 1 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index ddcd82beb5..1c8fe7687e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +# 0.0.9 +- add list of api permission +- Update Note type + # 0.0.8 - add type definition for `messagingMessage` event to main stream channel - Update Note type diff --git a/etc/misskey-js.api.md b/etc/misskey-js.api.md index 08db7d3490..79a27d12cc 100644 --- a/etc/misskey-js.api.md +++ b/etc/misskey-js.api.md @@ -2213,6 +2213,7 @@ type Note = { }[]; uri?: string; url?: string; + isHidden?: boolean; }; // @public (undocumented) @@ -2327,6 +2328,9 @@ type PageEvent = { }; // @public (undocumented) +export const permissions: string[]; + +// @public (undocumented) type ServerInfo = { machine: string; cpu: { diff --git a/src/entities.ts b/src/entities.ts index acce7a7333..e2f8e9e055 100644 --- a/src/entities.ts +++ b/src/entities.ts @@ -107,6 +107,7 @@ export type Note = { }[]; uri?: string; url?: string; + isHidden?: boolean; }; export type NoteReaction = { diff --git a/src/index.ts b/src/index.ts index f90616b479..13f2323132 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,11 +1,13 @@ import { Endpoints } from './api.types'; import Stream from './streaming'; import { Acct } from './acct'; +import { permissions } from './permissions'; export { Endpoints, Stream, - Acct + Acct, + permissions, }; // api extractor not supported yet diff --git a/src/permissions.ts b/src/permissions.ts new file mode 100644 index 0000000000..c7e4b9e5d0 --- /dev/null +++ b/src/permissions.ts @@ -0,0 +1,34 @@ +export const permissions = [ + 'read:account', + 'write:account', + 'read:blocks', + 'write:blocks', + 'read:drive', + 'write:drive', + 'read:favorites', + 'write:favorites', + 'read:following', + 'write:following', + 'read:messaging', + 'write:messaging', + 'read:mutes', + 'write:mutes', + 'write:notes', + 'read:notifications', + 'write:notifications', + 'read:reactions', + 'write:reactions', + 'write:votes', + 'read:pages', + 'write:pages', + 'write:page-likes', + 'read:page-likes', + 'read:user-groups', + 'write:user-groups', + 'read:channels', + 'write:channels', + 'read:gallery', + 'write:gallery', + 'read:gallery-likes', + 'write:gallery-likes', +]; |