summaryrefslogtreecommitdiff
path: root/packages/backend/src/models/json-schema
diff options
context:
space:
mode:
authorおさむのひと <46447427+samunohito@users.noreply.github.com>2024-04-19 15:22:23 +0900
committerGitHub <noreply@github.com>2024-04-19 15:22:23 +0900
commitcd7f7271ca5595cae95f6fb0280fac9dee77d751 (patch)
tree17d139a56b8c9285c3e86a31ab79aca0c528c809 /packages/backend/src/models/json-schema
parent:art: (ページ表示部上部のボタン順序を変更) (diff)
downloadsharkey-cd7f7271ca5595cae95f6fb0280fac9dee77d751.tar.gz
sharkey-cd7f7271ca5595cae95f6fb0280fac9dee77d751.tar.bz2
sharkey-cd7f7271ca5595cae95f6fb0280fac9dee77d751.zip
enhance: 新しいコンディショナルロール条件の実装 (#13732)
* enhance: 新しいコンディショナルロールの実装 * fix: CHANGELOG.md
Diffstat (limited to 'packages/backend/src/models/json-schema')
-rw-r--r--packages/backend/src/models/json-schema/role.ts17
1 files changed, 17 insertions, 0 deletions
diff --git a/packages/backend/src/models/json-schema/role.ts b/packages/backend/src/models/json-schema/role.ts
index c770250503..d9987a70c3 100644
--- a/packages/backend/src/models/json-schema/role.ts
+++ b/packages/backend/src/models/json-schema/role.ts
@@ -57,6 +57,20 @@ export const packedRoleCondFormulaValueIsLocalOrRemoteSchema = {
},
} as const;
+export const packedRoleCondFormulaValueUserSettingBooleanSchema = {
+ type: 'object',
+ properties: {
+ id: {
+ type: 'string', optional: false,
+ },
+ type: {
+ type: 'string',
+ nullable: false, optional: false,
+ enum: ['isSuspended', 'isLocked', 'isBot', 'isCat', 'isExplorable'],
+ },
+ },
+} as const;
+
export const packedRoleCondFormulaValueAssignedRoleSchema = {
type: 'object',
properties: {
@@ -136,6 +150,9 @@ export const packedRoleCondFormulaValueSchema = {
ref: 'RoleCondFormulaValueIsLocalOrRemote',
},
{
+ ref: 'RoleCondFormulaValueUserSettingBooleanSchema',
+ },
+ {
ref: 'RoleCondFormulaValueAssignedRole',
},
{