sundaysebasidian-byte/moonfga/fga does not have a README file
pub suberror FgaError {
FgaError(code~ : Int, message~ : String, line~ : Int, column~ : Int)
}fn AuthModel::direct_restrictions(self : AuthModel, type_name : String, relation : String) -> Array[TypeRestriction]pub(all) enum CelValue {
VInt(Int64)
VUint(UInt64)
VDouble(Double)
VBool(Bool)
VString(String)
VBytes(Bytes)
VType(String)
VProtoEmpty
VProtoFields(String, CelValue?)
VKeyMap(Array[(CelValue, CelValue)])
VDuration(Int64)
VTimestamp(Int64)
VTimestampWide(Int64, Int)
VTimestampPrecise(Int64, Int, Int)
VList(Array[CelValue])
VMap(Map[String, CelValue])
VIp(String)
VNull
}pub(all) struct ConditionParam {
name : String
type_name : String
generic_type : String?
}pub struct ExecutionBudget {
// private fields
}pub(all) struct Tuple {
object : String
relation : String
user : String
condition : TupleCondition?
}fn TypeDefinition::set_relation(self : TypeDefinition, name : String, rewrite : Userset, restrictions : Array[TypeRestriction]) -> Unitpub(all) struct TypeRestriction {
type_name : String
relation : String?
wildcard : Bool
condition : String?
}pub(all) struct UserRef {
type_name : String
id : String
relation : String?
}let ERR_DEADLINE_EXCEEDED : Intlet ERR_INVALID_TUPLE : Intlet ERR_RELATION_NOT_FOUND : Intlet ERR_RESOLUTION_TOO_COMPLEX : Intlet ERR_TYPE_NOT_FOUND : Intlet MAX_RESOLUTION_DEPTH : Intfn is_valid_user(user : String) -> Boolfn matching_restriction_condition(restrictions : Array[TypeRestriction], user : String) -> String? raise FgaErrorInstall
Download zipOpenFGA-compatible relationship-based (Zanzibar-style) authorization engine: DSL, JSON models, Check, ListObjects, ListUsers, CEL conditions