forked from misskey-dev/misskey
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update api document in admin/announcements * Update api document in announcements * Update api document in i/read-announcements * Update api document in username/available * Update api document & Fix typo in API 403 error * Update api document * Update api document * Update api document * Fix API permission definition * Update api document * Update api document * Update api document * Update api document * Update api document * Update api document * Update api document * Update api document * Fix bug in users (api) * Apply reviews misskey-dev#6757 * Apply reviews misskey-dev#6757 Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
- Loading branch information
1 parent
0593536
commit 02c1447
Showing
100 changed files
with
3,037 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
import config from '../../config'; | ||
|
||
export const packedFederationInstanceSchema = { | ||
type: 'object' as const, | ||
optional: false as const, nullable: false as const, | ||
properties: { | ||
id: { | ||
type: 'string' as const, | ||
optional: false as const, nullable: false as const, | ||
format: 'id' | ||
}, | ||
caughtAt: { | ||
type: 'string' as const, | ||
optional: false as const, nullable: false as const, | ||
format: 'date-time' | ||
}, | ||
host: { | ||
type: 'string' as const, | ||
optional: false as const, nullable: false as const, | ||
example: 'misskey.example.com' | ||
}, | ||
usersCount: { | ||
type: 'number' as const, | ||
optional: false as const, nullable: false as const | ||
}, | ||
notesCount: { | ||
type: 'number' as const, | ||
optional: false as const, nullable: false as const | ||
}, | ||
followingCount: { | ||
type: 'number' as const, | ||
optional: false as const, nullable: false as const | ||
}, | ||
followersCount: { | ||
type: 'number' as const, | ||
optional: false as const, nullable: false as const | ||
}, | ||
driveUsage: { | ||
type: 'number' as const, | ||
optional: false as const, nullable: false as const | ||
}, | ||
driveFiles: { | ||
type: 'number' as const, | ||
optional: false as const, nullable: false as const | ||
}, | ||
latestRequestSentAt: { | ||
type: 'string' as const, | ||
optional: false as const, nullable: true as const, | ||
format: 'date-time' | ||
}, | ||
lastCommunicatedAt: { | ||
type: 'string' as const, | ||
optional: false as const, nullable: false as const, | ||
format: 'date-time' | ||
}, | ||
isNotResponding: { | ||
type: 'boolean' as const, | ||
optional: false as const, nullable: false as const | ||
}, | ||
isSuspended: { | ||
type: 'boolean' as const, | ||
optional: false as const, nullable: false as const | ||
}, | ||
softwareName: { | ||
type: 'string' as const, | ||
optional: false as const, nullable: true as const, | ||
example: 'misskey' | ||
}, | ||
softwareVersion: { | ||
type: 'string' as const, | ||
optional: false as const, nullable: true as const, | ||
example: config.version | ||
}, | ||
openRegistrations: { | ||
type: 'boolean' as const, | ||
optional: false as const, nullable: true as const, | ||
example: true | ||
}, | ||
name: { | ||
type: 'string' as const, | ||
optional: false as const, nullable: true as const | ||
}, | ||
description: { | ||
type: 'string' as const, | ||
optional: false as const, nullable: true as const | ||
}, | ||
maintainerName: { | ||
type: 'string' as const, | ||
optional: false as const, nullable: true as const | ||
}, | ||
maintainerEmail: { | ||
type: 'string' as const, | ||
optional: false as const, nullable: true as const | ||
}, | ||
iconUrl: { | ||
type: 'string' as const, | ||
optional: false as const, nullable: true as const, | ||
format: 'url' | ||
}, | ||
infoUpdatedAt: { | ||
type: 'string' as const, | ||
optional: false as const, nullable: true as const, | ||
format: 'date-time' | ||
} | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
export const packedQueueCountSchema = { | ||
type: 'object' as const, | ||
optional: false as const, nullable: false as const, | ||
properties: { | ||
waiting: { | ||
type: 'number' as const, | ||
optional: false as const, nullable: false as const | ||
}, | ||
active: { | ||
type: 'number' as const, | ||
optional: false as const, nullable: false as const | ||
}, | ||
completed: { | ||
type: 'number' as const, | ||
optional: false as const, nullable: false as const | ||
}, | ||
failed: { | ||
type: 'number' as const, | ||
optional: false as const, nullable: false as const | ||
}, | ||
delayed: { | ||
type: 'number' as const, | ||
optional: false as const, nullable: false as const | ||
}, | ||
paused: { | ||
type: 'number' as const, | ||
optional: false as const, nullable: false as const | ||
} | ||
} | ||
}; |
Oops, something went wrong.