{"$schema":"https://json-schema.org/draft/2020-12/schema","$id":"https://mesharo.ai/schemas/data-provider-manifest-v1.json","type":"object","required":["schema_version","provider","interfaces","resources"],"properties":{"schema_version":{"const":"mesharo.data-provider-manifest.v1"},"provider":{"type":"object","required":["name","origin","description","contact","terms_url","privacy_url","jurisdictions"],"properties":{"name":{"type":"string","minLength":2,"maxLength":160},"origin":{"type":"string","format":"uri","maxLength":2000},"description":{"type":"string","minLength":1,"maxLength":1200},"contact":{"type":"object","properties":{"url":{"type":"string","format":"uri","maxLength":2000},"email":{"type":"string","format":"email","maxLength":254}},"anyOf":[{"required":["url"]},{"required":["email"]}],"additionalProperties":false},"terms_url":{"type":"string","format":"uri","maxLength":2000},"privacy_url":{"type":"string","format":"uri","maxLength":2000},"jurisdictions":{"type":"array","minItems":1,"maxItems":20,"uniqueItems":true,"items":{"type":"string","pattern":"^(?:[A-Z]{2}(?:-[A-Z0-9]{1,3})?|EU|INTL)$"}},"delegated_hosts":{"type":"array","maxItems":30,"uniqueItems":true,"items":{"type":"string","minLength":3,"maxLength":253}}},"additionalProperties":false},"interfaces":{"type":"array","minItems":1,"maxItems":20,"items":{"type":"object","required":["id","kind","url","auth","read_only"],"properties":{"id":{"type":"string","pattern":"^[a-z][a-z0-9._-]{0,63}$"},"kind":{"enum":["csv","json","mcp","openapi","rss"]},"url":{"type":"string","format":"uri","maxLength":2000},"base_url":{"type":"string","format":"uri","maxLength":2000},"documentation_url":{"type":"string","format":"uri","maxLength":2000},"auth":{"type":"object","required":["type"],"properties":{"type":{"enum":["api_key_header","bearer","none","oauth2"]},"authorization_url":{"type":"string","format":"uri","maxLength":2000},"token_url":{"type":"string","format":"uri","maxLength":2000},"scopes":{"type":"array","maxItems":30,"uniqueItems":true,"items":{"type":"string","minLength":1,"maxLength":160}},"header_name":{"type":"string","minLength":1,"maxLength":80},"credential_delivery":{"const":"secure_out_of_band"}},"additionalProperties":false},"read_only":{"const":true},"content_type":{"type":"string","maxLength":120},"refresh_interval_hours":{"type":"integer","minimum":1,"maximum":8760}},"additionalProperties":false}},"resources":{"type":"array","minItems":1,"maxItems":500,"items":{"type":"object","required":["id","interface_id","title","description","resource_type","categories","geography","coverage","fields","pricing","licence","freshness"],"properties":{"id":{"type":"string","pattern":"^[a-z][a-z0-9._-]{0,63}$"},"interface_id":{"type":"string","pattern":"^[a-z][a-z0-9._-]{0,63}$"},"operation":{"type":"string","minLength":1,"maxLength":160},"title":{"type":"string","minLength":1,"maxLength":200},"description":{"type":"string","minLength":1,"maxLength":2000},"resource_type":{"type":"string","minLength":1,"maxLength":40},"categories":{"type":"array","minItems":1,"maxItems":5,"uniqueItems":true,"items":{"type":"string","maxLength":81}},"geography":{"type":"string","maxLength":20},"coverage":{"type":"string","minLength":1,"maxLength":500},"fields":{"type":"array","minItems":1,"maxItems":200,"items":{"type":"object","required":["name","type","personal_data"],"properties":{"name":{"type":"string","pattern":"^[A-Za-z_][A-Za-z0-9_.-]{0,127}$"},"type":{"enum":["text","integer","number","date","boolean","object","array"]},"description":{"type":"string","maxLength":500},"required":{"type":"boolean","default":false},"filterable":{"type":"boolean","default":false},"sortable":{"type":"boolean","default":false},"personal_data":{"enum":["none","ordinary","special_category","credentials","financial_account","government_identifier","precise_location","children"]}},"additionalProperties":false}},"pricing":{"type":"object","required":["kind"],"properties":{"kind":{"enum":["free","fixed","per_call","per_record","subscription","quote_required"]},"amount_minor":{"type":"integer","minimum":0},"currency":{"type":"string","pattern":"^[A-Z]{3}$"},"unit":{"type":"string","maxLength":80}},"additionalProperties":false},"licence":{"type":"object","required":["name","url","permissions"],"properties":{"name":{"type":"string","minLength":1,"maxLength":160},"url":{"type":"string","format":"uri","maxLength":2000},"permissions":{"type":"object","required":["may_read","may_summarise","commercial_use","may_cache","may_redistribute","may_transform","model_training_allowed","attribution_required"],"properties":{"may_read":{"const":true},"may_summarise":{"type":"boolean"},"commercial_use":{"type":"boolean"},"may_cache":{"type":"boolean"},"may_redistribute":{"type":"boolean"},"may_transform":{"type":"boolean"},"model_training_allowed":{"type":"boolean"},"attribution_required":{"type":"boolean"}},"additionalProperties":false},"attribution_text":{"type":"string","maxLength":500},"expiry":{"type":"string","format":"date-time"},"jurisdiction":{"type":"string","pattern":"^(?:[A-Z]{2}(?:-[A-Z0-9]{1,3})?|EU|INTL)$"}},"additionalProperties":false},"freshness":{"type":"object","required":["mode"],"properties":{"mode":{"enum":["live","scheduled","snapshot"]},"max_age_seconds":{"type":"integer","minimum":0,"maximum":31536000},"updated_at":{"type":"string","format":"date-time"}},"additionalProperties":false}},"additionalProperties":false}},"updated_at":{"type":"string","format":"date-time"}},"additionalProperties":false}