summaryrefslogtreecommitdiff
path: root/packages/backend/src/models/json-schema/app.ts
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2023-03-10 14:22:37 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2023-03-10 14:22:37 +0900
commit5de8930058c28be983ea38b04acec528e7c79577 (patch)
tree741487a20234ba1c5200d9a2a442e4503a38483e /packages/backend/src/models/json-schema/app.ts
parent:art: (diff)
downloadmisskey-5de8930058c28be983ea38b04acec528e7c79577.tar.gz
misskey-5de8930058c28be983ea38b04acec528e7c79577.tar.bz2
misskey-5de8930058c28be983ea38b04acec528e7c79577.zip
refactor: rename schema to json-schema
Diffstat (limited to 'packages/backend/src/models/json-schema/app.ts')
-rw-r--r--packages/backend/src/models/json-schema/app.ts33
1 files changed, 33 insertions, 0 deletions
diff --git a/packages/backend/src/models/json-schema/app.ts b/packages/backend/src/models/json-schema/app.ts
new file mode 100644
index 0000000000..c80dc81c33
--- /dev/null
+++ b/packages/backend/src/models/json-schema/app.ts
@@ -0,0 +1,33 @@
+export const packedAppSchema = {
+ type: 'object',
+ properties: {
+ id: {
+ type: 'string',
+ optional: false, nullable: false,
+ },
+ name: {
+ type: 'string',
+ optional: false, nullable: false,
+ },
+ callbackUrl: {
+ type: 'string',
+ optional: false, nullable: true,
+ },
+ permission: {
+ type: 'array',
+ optional: false, nullable: false,
+ items: {
+ type: 'string',
+ optional: false, nullable: false,
+ },
+ },
+ secret: {
+ type: 'string',
+ optional: true, nullable: false,
+ },
+ isAuthorized: {
+ type: 'boolean',
+ optional: true, nullable: false,
+ },
+ },
+} as const;