{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"spec":{"type":"string","const":"orsel.manifest/1"},"domain":{"type":"string","pattern":"^(?=.{1,253}$)([a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?\\.)+[a-z]{2,63}$"},"version":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"title":{"type":"string","minLength":1,"maxLength":120},"actions":{"minItems":1,"maxItems":500,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-z0-9_.-]{1,63}$"},"name":{"type":"string","minLength":1,"maxLength":120},"description":{"type":"string","minLength":1,"maxLength":1000},"inputSchema":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}},"outputSchema":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}},"risk":{"type":"string","enum":["read","write","sensitive","irreversible","financial"]},"preconditions":{"default":[],"maxItems":16,"type":"array","items":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"status_in"},"statuses":{"minItems":1,"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}}},"required":["kind","statuses"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"field_present"},"path":{"type":"string","minLength":1,"maxLength":256}},"required":["kind","path"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"field_equals"},"path":{"type":"string","minLength":1,"maxLength":256},"value":{"$ref":"#/$defs/__schema1"}},"required":["kind","path","value"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"field_matches"},"path":{"type":"string","minLength":1,"maxLength":256},"pattern":{"type":"string","minLength":1,"maxLength":512}},"required":["kind","path","pattern"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"text_contains"},"text":{"type":"string","minLength":1,"maxLength":512}},"required":["kind","text"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"url_matches"},"pattern":{"type":"string","minLength":1,"maxLength":512}},"required":["kind","pattern"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"element_exists"},"selector":{"type":"string","minLength":1,"maxLength":512}},"required":["kind","selector"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"signed_in"}},"required":["kind"],"additionalProperties":false}]}},"postconditions":{"default":[],"maxItems":16,"type":"array","items":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"status_in"},"statuses":{"minItems":1,"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}}},"required":["kind","statuses"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"field_present"},"path":{"type":"string","minLength":1,"maxLength":256}},"required":["kind","path"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"field_equals"},"path":{"type":"string","minLength":1,"maxLength":256},"value":{"$ref":"#/$defs/__schema1"}},"required":["kind","path","value"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"field_matches"},"path":{"type":"string","minLength":1,"maxLength":256},"pattern":{"type":"string","minLength":1,"maxLength":512}},"required":["kind","path","pattern"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"text_contains"},"text":{"type":"string","minLength":1,"maxLength":512}},"required":["kind","text"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"url_matches"},"pattern":{"type":"string","minLength":1,"maxLength":512}},"required":["kind","pattern"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"element_exists"},"selector":{"type":"string","minLength":1,"maxLength":512}},"required":["kind","selector"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"signed_in"}},"required":["kind"],"additionalProperties":false}]}},"auth":{"default":"none","type":"string","enum":["none","session","oauth"]},"idempotency":{"default":{"mode":"none"},"type":"object","properties":{"mode":{"type":"string","enum":["none","key","natural"]},"field":{"type":"string","maxLength":128}},"required":["mode"],"additionalProperties":false},"rateHints":{"default":{},"type":"object","properties":{"perMinute":{"type":"integer","exclusiveMinimum":0,"maximum":100000},"perHour":{"type":"integer","exclusiveMinimum":0,"maximum":1000000}},"additionalProperties":false},"ownerPolicyRef":{"type":"string","maxLength":128}},"required":["id","name","description","inputSchema","outputSchema","risk","preconditions","postconditions","auth","idempotency","rateHints"],"additionalProperties":false}}},"required":["spec","domain","version","actions"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema0"}}]},"__schema1":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/$defs/__schema1"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/$defs/__schema1"}}]}}}