{"creation":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"browser_session":{"type":"boolean"},"name":{"type":"string","minLength":1,"maxLength":160},"email":{"type":"string","maxLength":254,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"type":{"type":"string","enum":["person","organisation","service","tool"]},"website":{"type":"string","maxLength":1000,"format":"uri"},"scopes":{"minItems":1,"maxItems":6,"type":"array","items":{"type":"string","enum":["professional","capabilities","offers","public_personal","private_matching","chosen_sources"]}},"source_permissions":{"type":"object","properties":{"public_web":{"type":"boolean"},"existing_context":{"type":"boolean"},"chosen_sources":{"maxItems":10,"type":"array","items":{"type":"string","minLength":1,"maxLength":160}}},"required":["public_web","existing_context","chosen_sources"],"additionalProperties":false},"authorised":{"type":"boolean","const":true}},"required":["name","email","type","scopes","source_permissions","authorised"],"additionalProperties":false},"draft":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"public_profile":{"type":"object","properties":{"discovery":{"type":"object","properties":{"capabilities":{"maxItems":30,"type":"array","items":{"type":"string","minLength":1,"maxLength":80,"pattern":"^[a-z0-9][a-z0-9._-]*$"}},"sectors":{"maxItems":30,"type":"array","items":{"type":"string","minLength":1,"maxLength":80,"pattern":"^[a-z0-9][a-z0-9._-]*$"}},"platforms":{"maxItems":30,"type":"array","items":{"type":"string","minLength":1,"maxLength":80,"pattern":"^[a-z0-9][a-z0-9._-]*$"}},"engagement_types":{"maxItems":30,"type":"array","items":{"type":"string","minLength":1,"maxLength":80,"pattern":"^[a-z0-9][a-z0-9._-]*$"}},"service_geographies":{"maxItems":30,"type":"array","items":{"type":"string","minLength":1,"maxLength":80,"pattern":"^[a-z0-9][a-z0-9._-]*$"}},"independent":{"type":"boolean"},"availability":{"type":"object","properties":{"status":{"type":"string","enum":["open","unavailable"]},"as_of":{"type":"integer","minimum":0,"maximum":8640000000000000},"expires_at":{"type":"integer","minimum":0,"maximum":8640000000000000},"start_by":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"}},"required":["status","as_of","expires_at"],"additionalProperties":false},"evidence":{"maxItems":60,"type":"array","items":{"type":"object","properties":{"claim":{"type":"string","maxLength":180,"pattern":"^(capabilities|sectors|platforms|engagement_types|service_geographies|independent|availability):[^\\s]+$"},"url":{"type":"string","maxLength":2000,"format":"uri"},"note":{"type":"string","maxLength":500}},"required":["claim","url"],"additionalProperties":false}}},"additionalProperties":false},"name":{"type":"string","minLength":1,"maxLength":160},"summary":{"type":"string","minLength":1,"maxLength":1600},"capabilities":{"maxItems":12,"type":"array","items":{"type":"string","minLength":1,"maxLength":160}},"offers":{"maxItems":12,"type":"array","items":{"type":"string","minLength":1,"maxLength":160}},"public_personal":{"type":"string","maxLength":500},"sources":{"minItems":1,"maxItems":12,"type":"array","items":{"type":"object","properties":{"url":{"type":"string","maxLength":1000,"format":"uri"},"claim":{"type":"string","minLength":1,"maxLength":500},"retrieved_at":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"confidence":{"type":"string","enum":["claimed","corroborated"]}},"required":["url","claim","retrieved_at","confidence"],"additionalProperties":false}}},"required":["name","summary","sources"],"additionalProperties":false},"private_matching":{"type":"object","properties":{"preferences":{"type":"string","maxLength":1000}},"required":["preferences"],"additionalProperties":false}},"required":["public_profile"],"additionalProperties":false},"approval":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"approval_id":{"type":"string","pattern":"^[a-zA-Z0-9_-]{8,80}$"},"expected_version":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"approved_groups":{"minItems":3,"maxItems":7,"type":"array","items":{"type":"string","enum":["name","summary","sources","capabilities","offers","public_personal","discovery"]}},"category":{"type":"string","minLength":1,"maxLength":80,"description":"Section. Any short slug of letters, digits and hyphens; a new one starts a new section."},"region":{"type":"string","pattern":"^(global|[a-z]{2})$"},"expires_at":{"description":"Accepted for older clients and ignored. An approved profile stays public until its owner unpublishes it.","type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"training_allowed":{"description":"Defaults to true. Set false to mark the public profile as not available for AI training.","type":"boolean"},"authorised":{"type":"boolean","const":true}},"required":["approval_id","expected_version","approved_groups","category","region","authorised"],"additionalProperties":false},"publication_enabled":true,"email_verification_enabled":true}