2017-03-05 05:09:34 +02:00
|
|
|
const ms = require('ms');
|
2016-12-29 00:49:51 +02:00
|
|
|
|
2017-03-01 15:33:43 +02:00
|
|
|
/**
|
|
|
|
* エンドポイントを表します。
|
|
|
|
*/
|
|
|
|
export type Endpoint = {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* エンドポイント名
|
|
|
|
*/
|
2016-12-29 00:49:51 +02:00
|
|
|
name: string;
|
2017-03-01 15:33:43 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* このエンドポイントにリクエストするのにユーザー情報が必須か否か
|
|
|
|
* 省略した場合は false として解釈されます。
|
|
|
|
*/
|
|
|
|
withCredential?: boolean;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* エンドポイントのリミテーションに関するやつ
|
|
|
|
* 省略した場合はリミテーションは無いものとして解釈されます。
|
|
|
|
* また、withCredential が false の場合はリミテーションを行うことはできません。
|
|
|
|
*/
|
|
|
|
limit?: {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 複数のエンドポイントでリミットを共有したい場合に指定するキー
|
|
|
|
*/
|
|
|
|
key?: string;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* リミットを適用する期間(ms)
|
|
|
|
* このプロパティを設定する場合、max プロパティも設定する必要があります。
|
|
|
|
*/
|
|
|
|
duration?: number;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* durationで指定した期間内にいくつまでリクエストできるのか
|
|
|
|
* このプロパティを設定する場合、duration プロパティも設定する必要があります。
|
|
|
|
*/
|
|
|
|
max?: number;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 最低でもどれくらいの間隔を開けてリクエストしなければならないか(ms)
|
|
|
|
*/
|
|
|
|
minInterval?: number;
|
|
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
|
|
* ファイルの添付を必要とするか否か
|
|
|
|
* 省略した場合は false として解釈されます。
|
|
|
|
*/
|
2016-12-29 00:49:51 +02:00
|
|
|
withFile?: boolean;
|
2017-03-01 15:33:43 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* サードパーティアプリからはリクエストすることができないか否か
|
|
|
|
* 省略した場合は false として解釈されます。
|
|
|
|
*/
|
2016-12-29 00:49:51 +02:00
|
|
|
secure?: boolean;
|
2017-03-01 15:33:43 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* エンドポイントの種類
|
|
|
|
* パーミッションの実現に利用されます。
|
|
|
|
*/
|
2016-12-29 00:49:51 +02:00
|
|
|
kind?: string;
|
2017-03-01 15:33:43 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
const endpoints: Endpoint[] = [
|
|
|
|
{
|
|
|
|
name: 'meta'
|
|
|
|
},
|
2017-08-12 09:17:03 +03:00
|
|
|
{
|
|
|
|
name: 'stats'
|
|
|
|
},
|
2017-03-01 15:33:43 +02:00
|
|
|
{
|
|
|
|
name: 'username/available'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'my/apps',
|
|
|
|
withCredential: true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'app/create',
|
|
|
|
withCredential: true,
|
|
|
|
limit: {
|
|
|
|
duration: ms('1day'),
|
|
|
|
max: 3
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'app/show'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'app/name_id/available'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'auth/session/generate'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'auth/session/show'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'auth/session/userkey'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'auth/accept',
|
|
|
|
withCredential: true,
|
|
|
|
secure: true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'auth/deny',
|
|
|
|
withCredential: true,
|
|
|
|
secure: true
|
|
|
|
},
|
2017-08-12 09:17:03 +03:00
|
|
|
{
|
2018-04-07 20:30:37 +03:00
|
|
|
name: 'aggregation/notes',
|
2017-08-12 09:17:03 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'aggregation/users',
|
|
|
|
},
|
2017-03-13 16:33:02 +02:00
|
|
|
{
|
|
|
|
name: 'aggregation/users/activity',
|
|
|
|
},
|
2017-03-01 15:33:43 +02:00
|
|
|
{
|
2018-04-07 20:30:37 +03:00
|
|
|
name: 'aggregation/users/note',
|
2017-03-01 15:33:43 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'aggregation/users/followers'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'aggregation/users/following'
|
|
|
|
},
|
2017-05-24 10:29:00 +03:00
|
|
|
{
|
|
|
|
name: 'aggregation/users/reaction'
|
|
|
|
},
|
2017-03-01 15:33:43 +02:00
|
|
|
{
|
2018-04-07 20:30:37 +03:00
|
|
|
name: 'aggregation/notes/renote'
|
2017-03-01 15:33:43 +02:00
|
|
|
},
|
|
|
|
{
|
2018-04-07 20:30:37 +03:00
|
|
|
name: 'aggregation/notes/reply'
|
2017-03-01 15:33:43 +02:00
|
|
|
},
|
2017-05-24 10:29:00 +03:00
|
|
|
{
|
2018-04-07 20:30:37 +03:00
|
|
|
name: 'aggregation/notes/reaction'
|
2017-05-24 10:29:00 +03:00
|
|
|
},
|
|
|
|
{
|
2018-04-07 20:30:37 +03:00
|
|
|
name: 'aggregation/notes/reactions'
|
2017-05-24 10:29:00 +03:00
|
|
|
},
|
2017-03-01 15:33:43 +02:00
|
|
|
|
2017-11-20 20:40:09 +02:00
|
|
|
{
|
|
|
|
name: 'sw/register',
|
|
|
|
withCredential: true
|
|
|
|
},
|
|
|
|
|
2017-03-01 15:33:43 +02:00
|
|
|
{
|
|
|
|
name: 'i',
|
|
|
|
withCredential: true
|
|
|
|
},
|
2017-12-08 15:57:58 +02:00
|
|
|
{
|
|
|
|
name: 'i/2fa/register',
|
2017-12-09 19:45:32 +02:00
|
|
|
withCredential: true,
|
|
|
|
secure: true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'i/2fa/unregister',
|
|
|
|
withCredential: true,
|
|
|
|
secure: true
|
2017-12-08 15:57:58 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'i/2fa/done',
|
2017-12-09 19:45:32 +02:00
|
|
|
withCredential: true,
|
|
|
|
secure: true
|
2017-12-08 15:57:58 +02:00
|
|
|
},
|
2017-03-01 15:33:43 +02:00
|
|
|
{
|
|
|
|
name: 'i/update',
|
|
|
|
withCredential: true,
|
|
|
|
limit: {
|
|
|
|
duration: ms('1day'),
|
|
|
|
max: 50
|
|
|
|
},
|
|
|
|
kind: 'account-write'
|
2017-11-08 16:43:47 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'i/update_home',
|
|
|
|
withCredential: true,
|
2018-02-23 19:46:09 +02:00
|
|
|
secure: true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'i/update_mobile_home',
|
|
|
|
withCredential: true,
|
|
|
|
secure: true
|
2017-03-01 15:33:43 +02:00
|
|
|
},
|
2018-06-06 13:22:45 +03:00
|
|
|
{
|
|
|
|
name: 'i/update_widget',
|
|
|
|
withCredential: true,
|
|
|
|
secure: true
|
|
|
|
},
|
2017-08-28 18:20:47 +03:00
|
|
|
{
|
|
|
|
name: 'i/change_password',
|
2017-12-09 19:45:32 +02:00
|
|
|
withCredential: true,
|
|
|
|
secure: true
|
2017-08-28 18:20:47 +03:00
|
|
|
},
|
2017-08-28 17:47:43 +03:00
|
|
|
{
|
|
|
|
name: 'i/regenerate_token',
|
2017-12-09 19:45:32 +02:00
|
|
|
withCredential: true,
|
|
|
|
secure: true
|
2017-08-28 17:47:43 +03:00
|
|
|
},
|
2018-02-22 19:06:35 +02:00
|
|
|
{
|
|
|
|
name: 'i/update_client_setting',
|
|
|
|
withCredential: true,
|
|
|
|
secure: true
|
|
|
|
},
|
2017-08-30 11:31:39 +03:00
|
|
|
{
|
|
|
|
name: 'i/pin',
|
|
|
|
kind: 'account-write'
|
|
|
|
},
|
2017-03-01 15:33:43 +02:00
|
|
|
{
|
|
|
|
name: 'i/appdata/get',
|
|
|
|
withCredential: true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'i/appdata/set',
|
|
|
|
withCredential: true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'i/signin_history',
|
|
|
|
withCredential: true,
|
|
|
|
kind: 'account-read'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'i/authorized_apps',
|
|
|
|
withCredential: true,
|
|
|
|
secure: true
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
name: 'i/notifications',
|
|
|
|
withCredential: true,
|
|
|
|
kind: 'notification-read'
|
|
|
|
},
|
2017-12-21 23:03:54 +02:00
|
|
|
|
2018-04-20 07:31:43 +03:00
|
|
|
{
|
|
|
|
name: 'i/favorites',
|
|
|
|
withCredential: true,
|
|
|
|
kind: 'favorites-read'
|
|
|
|
},
|
|
|
|
|
2018-03-07 10:48:32 +02:00
|
|
|
{
|
|
|
|
name: 'othello/match',
|
|
|
|
withCredential: true
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
name: 'othello/match/cancel',
|
|
|
|
withCredential: true
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
name: 'othello/invitations',
|
|
|
|
withCredential: true
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
name: 'othello/games',
|
|
|
|
withCredential: true
|
|
|
|
},
|
|
|
|
|
2018-03-09 11:29:27 +02:00
|
|
|
{
|
2018-03-13 21:30:24 +02:00
|
|
|
name: 'othello/games/show'
|
2018-03-09 11:29:27 +02:00
|
|
|
},
|
|
|
|
|
2017-12-21 23:03:54 +02:00
|
|
|
{
|
|
|
|
name: 'mute/create',
|
|
|
|
withCredential: true,
|
|
|
|
kind: 'account/write'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'mute/delete',
|
|
|
|
withCredential: true,
|
|
|
|
kind: 'account/write'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'mute/list',
|
|
|
|
withCredential: true,
|
|
|
|
kind: 'account/read'
|
|
|
|
},
|
|
|
|
|
2017-03-01 15:33:43 +02:00
|
|
|
{
|
2017-10-30 15:12:10 +02:00
|
|
|
name: 'notifications/delete',
|
2017-03-01 15:33:43 +02:00
|
|
|
withCredential: true,
|
|
|
|
kind: 'notification-write'
|
|
|
|
},
|
|
|
|
{
|
2017-10-30 15:12:10 +02:00
|
|
|
name: 'notifications/delete_all',
|
2017-03-01 15:33:43 +02:00
|
|
|
withCredential: true,
|
|
|
|
kind: 'notification-write'
|
|
|
|
},
|
|
|
|
{
|
2018-03-29 08:53:48 +03:00
|
|
|
name: 'notifications/mark_as_read_all',
|
2017-03-01 15:33:43 +02:00
|
|
|
withCredential: true,
|
|
|
|
kind: 'notification-write'
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
name: 'drive',
|
|
|
|
withCredential: true,
|
|
|
|
kind: 'drive-read'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'drive/stream',
|
|
|
|
withCredential: true,
|
|
|
|
kind: 'drive-read'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'drive/files',
|
|
|
|
withCredential: true,
|
|
|
|
kind: 'drive-read'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'drive/files/create',
|
|
|
|
withCredential: true,
|
|
|
|
limit: {
|
|
|
|
duration: ms('1hour'),
|
|
|
|
max: 100
|
|
|
|
},
|
|
|
|
withFile: true,
|
|
|
|
kind: 'drive-write'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'drive/files/upload_from_url',
|
|
|
|
withCredential: true,
|
|
|
|
limit: {
|
|
|
|
duration: ms('1hour'),
|
|
|
|
max: 10
|
|
|
|
},
|
|
|
|
kind: 'drive-write'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'drive/files/show',
|
|
|
|
withCredential: true,
|
|
|
|
kind: 'drive-read'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'drive/files/find',
|
|
|
|
withCredential: true,
|
|
|
|
kind: 'drive-read'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'drive/files/delete',
|
|
|
|
withCredential: true,
|
|
|
|
kind: 'drive-write'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'drive/files/update',
|
|
|
|
withCredential: true,
|
|
|
|
kind: 'drive-write'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'drive/folders',
|
|
|
|
withCredential: true,
|
|
|
|
kind: 'drive-read'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'drive/folders/create',
|
|
|
|
withCredential: true,
|
|
|
|
limit: {
|
|
|
|
duration: ms('1hour'),
|
|
|
|
max: 50
|
|
|
|
},
|
|
|
|
kind: 'drive-write'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'drive/folders/show',
|
|
|
|
withCredential: true,
|
|
|
|
kind: 'drive-read'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'drive/folders/find',
|
|
|
|
withCredential: true,
|
|
|
|
kind: 'drive-read'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'drive/folders/update',
|
|
|
|
withCredential: true,
|
|
|
|
kind: 'drive-write'
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
name: 'users'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'users/show'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'users/search'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'users/search_by_username'
|
|
|
|
},
|
|
|
|
{
|
2018-04-07 20:30:37 +03:00
|
|
|
name: 'users/notes'
|
2017-03-01 15:33:43 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'users/following'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'users/followers'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'users/recommendation',
|
|
|
|
withCredential: true,
|
|
|
|
kind: 'account-read'
|
|
|
|
},
|
2017-09-08 17:29:33 +03:00
|
|
|
{
|
|
|
|
name: 'users/get_frequently_replied_users'
|
|
|
|
},
|
2017-03-01 15:33:43 +02:00
|
|
|
|
2018-04-25 13:53:16 +03:00
|
|
|
{
|
|
|
|
name: 'users/lists/show',
|
|
|
|
withCredential: true,
|
|
|
|
kind: 'account-read'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'users/lists/create',
|
|
|
|
withCredential: true,
|
|
|
|
kind: 'account-write'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'users/lists/push',
|
|
|
|
withCredential: true,
|
|
|
|
kind: 'account-write'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'users/lists/list',
|
|
|
|
withCredential: true,
|
|
|
|
kind: 'account-read'
|
|
|
|
},
|
|
|
|
|
2017-03-01 15:33:43 +02:00
|
|
|
{
|
|
|
|
name: 'following/create',
|
|
|
|
withCredential: true,
|
|
|
|
limit: {
|
|
|
|
duration: ms('1hour'),
|
|
|
|
max: 100
|
|
|
|
},
|
|
|
|
kind: 'following-write'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'following/delete',
|
|
|
|
withCredential: true,
|
|
|
|
limit: {
|
|
|
|
duration: ms('1hour'),
|
|
|
|
max: 100
|
|
|
|
},
|
|
|
|
kind: 'following-write'
|
|
|
|
},
|
2018-06-01 15:55:27 +03:00
|
|
|
{
|
2018-06-01 18:15:17 +03:00
|
|
|
name: 'following/requests/accept',
|
2018-06-01 15:55:27 +03:00
|
|
|
withCredential: true,
|
|
|
|
kind: 'following-write'
|
|
|
|
},
|
|
|
|
{
|
2018-06-01 18:15:17 +03:00
|
|
|
name: 'following/requests/reject',
|
2018-06-01 15:55:27 +03:00
|
|
|
withCredential: true,
|
|
|
|
kind: 'following-write'
|
|
|
|
},
|
2018-06-01 18:51:20 +03:00
|
|
|
{
|
|
|
|
name: 'following/requests/cancel',
|
|
|
|
withCredential: true,
|
|
|
|
kind: 'following-write'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'following/requests/list',
|
|
|
|
withCredential: true,
|
|
|
|
kind: 'following-read'
|
|
|
|
},
|
2018-04-19 06:43:25 +03:00
|
|
|
{
|
|
|
|
name: 'following/stalk',
|
|
|
|
withCredential: true,
|
|
|
|
limit: {
|
|
|
|
duration: ms('1hour'),
|
|
|
|
max: 100
|
|
|
|
},
|
|
|
|
kind: 'following-write'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'following/unstalk',
|
|
|
|
withCredential: true,
|
|
|
|
limit: {
|
|
|
|
duration: ms('1hour'),
|
|
|
|
max: 100
|
|
|
|
},
|
|
|
|
kind: 'following-write'
|
|
|
|
},
|
2017-03-01 15:33:43 +02:00
|
|
|
|
|
|
|
{
|
2018-04-07 20:30:37 +03:00
|
|
|
name: 'notes'
|
2017-03-01 15:33:43 +02:00
|
|
|
},
|
|
|
|
{
|
2018-04-07 20:30:37 +03:00
|
|
|
name: 'notes/show'
|
2017-03-01 15:33:43 +02:00
|
|
|
},
|
|
|
|
{
|
2018-04-07 20:30:37 +03:00
|
|
|
name: 'notes/replies'
|
2017-03-01 15:33:43 +02:00
|
|
|
},
|
|
|
|
{
|
2018-05-25 15:05:16 +03:00
|
|
|
name: 'notes/conversation'
|
2017-03-01 15:33:43 +02:00
|
|
|
},
|
|
|
|
{
|
2018-04-07 20:30:37 +03:00
|
|
|
name: 'notes/create',
|
2017-03-01 15:33:43 +02:00
|
|
|
withCredential: true,
|
|
|
|
limit: {
|
|
|
|
duration: ms('1hour'),
|
|
|
|
max: 120,
|
2017-03-02 19:20:34 +02:00
|
|
|
minInterval: ms('1second')
|
2017-03-01 15:33:43 +02:00
|
|
|
},
|
2018-04-07 20:30:37 +03:00
|
|
|
kind: 'note-write'
|
2017-03-01 15:33:43 +02:00
|
|
|
},
|
2018-05-28 08:39:46 +03:00
|
|
|
{
|
|
|
|
name: 'notes/delete',
|
|
|
|
withCredential: true,
|
|
|
|
kind: 'note-write'
|
|
|
|
},
|
2017-03-01 15:33:43 +02:00
|
|
|
{
|
2018-04-07 20:30:37 +03:00
|
|
|
name: 'notes/renotes'
|
2017-03-01 15:33:43 +02:00
|
|
|
},
|
|
|
|
{
|
2018-04-07 20:30:37 +03:00
|
|
|
name: 'notes/search'
|
2017-03-01 15:33:43 +02:00
|
|
|
},
|
|
|
|
{
|
2018-04-07 20:30:37 +03:00
|
|
|
name: 'notes/timeline',
|
2017-03-01 15:33:43 +02:00
|
|
|
withCredential: true,
|
|
|
|
limit: {
|
|
|
|
duration: ms('10minutes'),
|
|
|
|
max: 100
|
|
|
|
}
|
|
|
|
},
|
2018-04-17 08:52:28 +03:00
|
|
|
{
|
|
|
|
name: 'notes/local-timeline',
|
|
|
|
limit: {
|
|
|
|
duration: ms('10minutes'),
|
|
|
|
max: 100
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'notes/global-timeline',
|
|
|
|
limit: {
|
|
|
|
duration: ms('10minutes'),
|
|
|
|
max: 100
|
|
|
|
}
|
|
|
|
},
|
2018-04-25 13:53:16 +03:00
|
|
|
{
|
|
|
|
name: 'notes/user-list-timeline',
|
|
|
|
withCredential: true,
|
|
|
|
limit: {
|
|
|
|
duration: ms('10minutes'),
|
|
|
|
max: 100
|
|
|
|
}
|
|
|
|
},
|
2017-03-01 15:33:43 +02:00
|
|
|
{
|
2018-04-07 20:30:37 +03:00
|
|
|
name: 'notes/mentions',
|
2017-03-01 15:33:43 +02:00
|
|
|
withCredential: true,
|
|
|
|
limit: {
|
|
|
|
duration: ms('10minutes'),
|
|
|
|
max: 100
|
|
|
|
}
|
|
|
|
},
|
2017-03-25 16:23:22 +02:00
|
|
|
{
|
2018-04-07 20:30:37 +03:00
|
|
|
name: 'notes/trend',
|
2017-03-25 16:23:22 +02:00
|
|
|
withCredential: true
|
|
|
|
},
|
2017-09-06 17:19:58 +03:00
|
|
|
{
|
2018-04-07 20:30:37 +03:00
|
|
|
name: 'notes/categorize',
|
2017-09-06 17:19:58 +03:00
|
|
|
withCredential: true
|
|
|
|
},
|
2017-03-01 15:33:43 +02:00
|
|
|
{
|
2018-04-07 20:30:37 +03:00
|
|
|
name: 'notes/reactions',
|
2017-03-01 15:33:43 +02:00
|
|
|
withCredential: true
|
|
|
|
},
|
|
|
|
{
|
2018-04-07 20:30:37 +03:00
|
|
|
name: 'notes/reactions/create',
|
2017-03-01 15:33:43 +02:00
|
|
|
withCredential: true,
|
|
|
|
limit: {
|
|
|
|
duration: ms('1hour'),
|
2018-05-30 17:05:24 +03:00
|
|
|
max: 300
|
2017-03-01 15:33:43 +02:00
|
|
|
},
|
2017-03-19 21:24:19 +02:00
|
|
|
kind: 'reaction-write'
|
2017-03-01 15:33:43 +02:00
|
|
|
},
|
|
|
|
{
|
2018-04-07 20:30:37 +03:00
|
|
|
name: 'notes/reactions/delete',
|
2017-03-01 15:33:43 +02:00
|
|
|
withCredential: true,
|
|
|
|
limit: {
|
|
|
|
duration: ms('1hour'),
|
|
|
|
max: 100
|
|
|
|
},
|
2017-03-19 21:24:19 +02:00
|
|
|
kind: 'reaction-write'
|
2017-03-01 15:33:43 +02:00
|
|
|
},
|
|
|
|
{
|
2018-04-07 20:30:37 +03:00
|
|
|
name: 'notes/favorites/create',
|
2017-03-01 15:33:43 +02:00
|
|
|
withCredential: true,
|
|
|
|
limit: {
|
|
|
|
duration: ms('1hour'),
|
|
|
|
max: 100
|
|
|
|
},
|
|
|
|
kind: 'favorite-write'
|
|
|
|
},
|
|
|
|
{
|
2018-04-07 20:30:37 +03:00
|
|
|
name: 'notes/favorites/delete',
|
2017-03-01 15:33:43 +02:00
|
|
|
withCredential: true,
|
|
|
|
limit: {
|
|
|
|
duration: ms('1hour'),
|
|
|
|
max: 100
|
|
|
|
},
|
|
|
|
kind: 'favorite-write'
|
|
|
|
},
|
|
|
|
{
|
2018-04-07 20:30:37 +03:00
|
|
|
name: 'notes/polls/vote',
|
2017-03-01 15:33:43 +02:00
|
|
|
withCredential: true,
|
|
|
|
limit: {
|
|
|
|
duration: ms('1hour'),
|
|
|
|
max: 100
|
|
|
|
},
|
|
|
|
kind: 'vote-write'
|
|
|
|
},
|
2017-03-25 09:43:55 +02:00
|
|
|
{
|
2018-04-07 20:30:37 +03:00
|
|
|
name: 'notes/polls/recommendation',
|
2017-03-25 09:43:55 +02:00
|
|
|
withCredential: true
|
|
|
|
},
|
2017-03-01 15:33:43 +02:00
|
|
|
|
|
|
|
{
|
|
|
|
name: 'messaging/history',
|
|
|
|
withCredential: true,
|
|
|
|
kind: 'messaging-read'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'messaging/messages',
|
|
|
|
withCredential: true,
|
|
|
|
kind: 'messaging-read'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: 'messaging/messages/create',
|
|
|
|
withCredential: true,
|
|
|
|
kind: 'messaging-write'
|
2018-05-19 01:33:34 +03:00
|
|
|
}
|
2017-03-01 15:33:43 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
export default endpoints;
|