{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://axlibiza.com/tool-contracts/search_public_work.json","title":"search_public_work versioned contract","oneOf":[{"$ref":"#/$defs/v1Request"},{"$ref":"#/$defs/v2Request"}],"$defs":{"stableId":{"type":"string","pattern":"^[a-z][a-z0-9-]{0,31}:[A-Za-z0-9._~:/-]{1,480}$"},"v1Request":{"type":"object","properties":{"query":{"type":"string","minLength":1,"maxLength":512},"kinds":{"type":"array","items":{"type":"string"},"maxItems":20},"limit":{"type":"integer","minimum":1,"maximum":20}},"required":["query"],"additionalProperties":false},"v2Request":{"type":"object","properties":{"schema_version":{"const":"2.0"},"query":{"type":"string","minLength":1,"maxLength":512},"node_kinds":{"type":"array","items":{"type":"string"},"maxItems":20},"lifecycle":{"type":"array","items":{"type":"string"},"maxItems":20},"taxonomy_refs":{"type":"array","items":{"$ref":"#/$defs/stableId"},"maxItems":20},"trust_boundaries":{"type":"array","items":{"type":"string"},"maxItems":20},"limit":{"type":"integer","minimum":1,"maximum":20},"cursor":{"type":"string","maxLength":512}},"required":["schema_version","query"],"additionalProperties":false},"result":{"oneOf":[{"type":"object","properties":{"ok":{"const":true},"schema_version":{"enum":["1.0","2.0"]},"data":{"type":"object"}},"required":["ok","schema_version","data"],"additionalProperties":false},{"type":"object","properties":{"ok":{"const":false},"schema_version":{"enum":["1.0","2.0"]},"error":{"$ref":"#/$defs/error"}},"required":["ok","schema_version","error"],"additionalProperties":false}]},"error":{"type":"object","properties":{"code":{"enum":["INVALID_INPUT","INVALID_ID","NOT_FOUND","REVISION_CONFLICT","HUMAN_LOCKED","OUT_OF_SCOPE","ABORTED","RESULT_TOO_LARGE"]},"message":{"type":"string"},"currentRevision":{"type":"integer","minimum":0}},"required":["code","message"],"additionalProperties":false}},"x-result-order":"score-desc/graph-id-asc; UTF-8 result maximum 16384 bytes","x-annotations":{"readOnlyHint":true,"untrustedContentHint":true,"protectedInputExclusions":["raw review and issue bodies"]}}