diff options
| author | おさむのひと <46447427+samunohito@users.noreply.github.com> | 2024-04-19 15:22:23 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-19 15:22:23 +0900 |
| commit | cd7f7271ca5595cae95f6fb0280fac9dee77d751 (patch) | |
| tree | 17d139a56b8c9285c3e86a31ab79aca0c528c809 /packages/backend/src/models/json-schema | |
| parent | :art: (ページ表示部上部のボタン順序を変更) (diff) | |
| download | sharkey-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.ts | 17 |
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', }, { |