add isFromInstance role condition

This commit is contained in:
Hazelnoot 2025-05-09 21:03:05 -04:00
parent b8558fd8db
commit 56a8ff4f50
5 changed files with 54 additions and 1 deletions

View file

@ -47,6 +47,15 @@ type CondFormulaValueIsRemote = {
type: 'isRemote';
};
/**
* User is from a specific instance
*/
type CondFormulaValueIsFromInstance = {
type: 'isFromInstance';
host: string;
subdomains: boolean;
};
/**
*
*/
@ -160,6 +169,7 @@ export type RoleCondFormulaValue = { id: string } & (
CondFormulaValueNot |
CondFormulaValueIsLocal |
CondFormulaValueIsRemote |
CondFormulaValueIsFromInstance |
CondFormulaValueIsSuspended |
CondFormulaValueIsLocked |
CondFormulaValueIsBot |