You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Me and @expede had discussed this a lot in the side channels and after a long hold I have hard time finding any of it so I have decided to document the syntax here.
// Policy holds if all inner rules are `true` if contains no rules it is considered `true`.typePolicy=Rule[]typeRule=|Or|And|Not|Some|Every|ConstrainttypeConstraint|Is|Compare|Like// jq style selector for details see https://github.com/ucan-wg/delegation/issues/5typeSelector= `.${string}`
// Any data that can be expressed in IPLD data modeltypeConstant=DatatypeOperand=Constant|Selector// Asserts that operands are equaltypeIs=['==',Operand,Operand]// Asserts operands by via comparison operatortypeCompare=['>'|'<'|'>='|'<=',Operand,Operand]// Asserts that operand matches a pattern. The `*` symbol in patterntypeLike=[operator: 'like',pattern: string,operand: Selector]// Rule is `true` if every enclosed rule is `false`.typeNot=[operator: "not", ...Rule[]]// Rule it `true` if every enclosed rule is `true`.typeAnd=[operator: "and", ...Rule[]]// Rule is `true` if some enclosed rule is `true`.typeOr=[operator: "or", ...Rule[]]// Rule is true if some member matching a selector satisfies every enclosed rule.// Enclosed rule selector context is the selected itemtypeSome=["some",Selector, ...Rule[]]// Rule is true if every member matching a selector satisfies every enclosed rule// Enclosed rule selector context is the selected itemtypeEvery=["every",Selector, ...Rule[]]
The text was updated successfully, but these errors were encountered:
Me and @expede had discussed this a lot in the side channels and after a long hold I have hard time finding any of it so I have decided to document the syntax here.
The text was updated successfully, but these errors were encountered: