{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://api.redlineautohaus.com/docs/uds/schemas/source_record-request.json","type":"object","properties":{"source_id":{"anyOf":[{"type":"string","pattern":"^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$"},{"type":"null"}]},"external_key":{"type":"string","minLength":1,"maxLength":191},"source_order":{"type":"string","pattern":"^[0-9]{1,20}$"},"origin":{"type":"string","enum":["unknown","source_reported","manual_transcription","manual_interpretation","ai_transcription","ai_interpretation","deterministic_extraction","decoder","reviewer"]},"locator":{"type":"object","properties":{"kind":{"type":"string","enum":["line_range","byte_range","page_region","native_event","manual"]},"start":{"type":"integer","minimum":0,"maximum":9007199254740991},"end":{"type":"integer","minimum":0,"maximum":9007199254740991},"page":{"type":"integer","minimum":1},"region":{"type":"array","items":{"type":"number"},"maxItems":4},"event_id":{"type":"string","minLength":1,"maxLength":191},"label":{"type":"string","minLength":1,"maxLength":1024}},"required":["kind"],"additionalProperties":false},"excerpt":{"type":"string","minLength":1,"maxLength":65535},"supersedes_id":{"anyOf":[{"type":"string","pattern":"^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$"},{"type":"null"}]},"extensions":{"type":"object","maxProperties":32,"propertyNames":{"pattern":"^[a-z][a-z0-9_.-]{0,127}$"},"additionalProperties":{"type":"object","properties":{"schema_version":{"type":"string","minLength":1,"maxLength":32},"data":{"type":"object","maxProperties":256}},"required":["schema_version","data"],"additionalProperties":false}}},"required":["source_id","external_key"],"additionalProperties":false}