mirror of
https://github.com/kokonect-link/cherrypick
synced 2024-12-15 15:18:22 +09:00
add list of api permission, Update Note type
This commit is contained in:
parent
7f3943f794
commit
714753d001
@ -1,3 +1,7 @@
|
|||||||
|
# 0.0.9
|
||||||
|
- add list of api permission
|
||||||
|
- Update Note type
|
||||||
|
|
||||||
# 0.0.8
|
# 0.0.8
|
||||||
- add type definition for `messagingMessage` event to main stream channel
|
- add type definition for `messagingMessage` event to main stream channel
|
||||||
- Update Note type
|
- Update Note type
|
||||||
|
@ -2213,6 +2213,7 @@ type Note = {
|
|||||||
}[];
|
}[];
|
||||||
uri?: string;
|
uri?: string;
|
||||||
url?: string;
|
url?: string;
|
||||||
|
isHidden?: boolean;
|
||||||
};
|
};
|
||||||
|
|
||||||
// @public (undocumented)
|
// @public (undocumented)
|
||||||
@ -2326,6 +2327,9 @@ type PageEvent = {
|
|||||||
user: User;
|
user: User;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// @public (undocumented)
|
||||||
|
export const permissions: string[];
|
||||||
|
|
||||||
// @public (undocumented)
|
// @public (undocumented)
|
||||||
type ServerInfo = {
|
type ServerInfo = {
|
||||||
machine: string;
|
machine: string;
|
||||||
|
@ -107,6 +107,7 @@ export type Note = {
|
|||||||
}[];
|
}[];
|
||||||
uri?: string;
|
uri?: string;
|
||||||
url?: string;
|
url?: string;
|
||||||
|
isHidden?: boolean;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type NoteReaction = {
|
export type NoteReaction = {
|
||||||
|
@ -1,11 +1,13 @@
|
|||||||
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';
|
||||||
|
|
||||||
export {
|
export {
|
||||||
Endpoints,
|
Endpoints,
|
||||||
Stream,
|
Stream,
|
||||||
Acct
|
Acct,
|
||||||
|
permissions,
|
||||||
};
|
};
|
||||||
|
|
||||||
// api extractor not supported yet
|
// api extractor not supported yet
|
||||||
|
34
src/permissions.ts
Normal file
34
src/permissions.ts
Normal file
@ -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',
|
||||||
|
];
|
Loading…
Reference in New Issue
Block a user