|
| 1 | +{ |
| 2 | + "$schema": "https://json-schema.org/draft/2020-12/schema", |
| 3 | + "$id": "https://zaati-os.dev/schemas/prompt-profile.schema.json", |
| 4 | + "title": "Zaati OS Prompt Studio profile", |
| 5 | + "type": "object", |
| 6 | + "additionalProperties": false, |
| 7 | + "required": [ |
| 8 | + "profile_version", |
| 9 | + "task_name", |
| 10 | + "code_repository", |
| 11 | + "data_repository", |
| 12 | + "provider", |
| 13 | + "timezone", |
| 14 | + "schedule", |
| 15 | + "publication", |
| 16 | + "sources" |
| 17 | + ], |
| 18 | + "properties": { |
| 19 | + "profile_version": { "const": "0.1.1" }, |
| 20 | + "task_name": { "type": "string", "minLength": 1, "maxLength": 100 }, |
| 21 | + "code_repository": { "$ref": "#/$defs/repository" }, |
| 22 | + "data_repository": { "$ref": "#/$defs/repository" }, |
| 23 | + "provider": { "enum": ["chatgpt", "claude", "gemini", "local", "custom"] }, |
| 24 | + "timezone": { "type": "string", "minLength": 1, "maxLength": 80 }, |
| 25 | + "schedule": { "type": "string", "minLength": 1, "maxLength": 240 }, |
| 26 | + "publication": { "enum": ["pull-request", "direct-commit"] }, |
| 27 | + "allow_same_repository": { "type": "boolean", "default": false }, |
| 28 | + "sources": { |
| 29 | + "type": "array", |
| 30 | + "minItems": 1, |
| 31 | + "maxItems": 20, |
| 32 | + "items": { "$ref": "#/$defs/source" } |
| 33 | + } |
| 34 | + }, |
| 35 | + "$defs": { |
| 36 | + "repository": { |
| 37 | + "type": "string", |
| 38 | + "pattern": "^https://github\\.com/[A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+$", |
| 39 | + "maxLength": 240 |
| 40 | + }, |
| 41 | + "textList": { |
| 42 | + "type": "array", |
| 43 | + "minItems": 1, |
| 44 | + "maxItems": 30, |
| 45 | + "items": { "type": "string", "minLength": 1, "maxLength": 300 } |
| 46 | + }, |
| 47 | + "source": { |
| 48 | + "type": "object", |
| 49 | + "additionalProperties": false, |
| 50 | + "required": ["id", "requirements", "tools", "preferred_blocks"], |
| 51 | + "properties": { |
| 52 | + "id": { "type": "string", "pattern": "^[a-z0-9-]+:[a-z0-9-]+$" }, |
| 53 | + "requirements": { "$ref": "#/$defs/textList" }, |
| 54 | + "tools": { "$ref": "#/$defs/textList" }, |
| 55 | + "preferred_blocks": { |
| 56 | + "type": "array", |
| 57 | + "minItems": 1, |
| 58 | + "maxItems": 10, |
| 59 | + "uniqueItems": true, |
| 60 | + "items": { |
| 61 | + "enum": ["metric-group", "list", "line-chart", "bar-chart", "calendar", "table", "progress", "notice", "timeline", "text"] |
| 62 | + } |
| 63 | + }, |
| 64 | + "registration": { "$ref": "#/$defs/registration" } |
| 65 | + } |
| 66 | + }, |
| 67 | + "registration": { |
| 68 | + "type": "object", |
| 69 | + "additionalProperties": false, |
| 70 | + "required": ["label", "description", "authorized_inputs", "forbidden_inputs", "cadence", "freshness_sla_hours", "dashboard_role"], |
| 71 | + "properties": { |
| 72 | + "label": { "type": "string", "minLength": 1, "maxLength": 80 }, |
| 73 | + "description": { "type": "string", "minLength": 1, "maxLength": 300 }, |
| 74 | + "authorized_inputs": { "$ref": "#/$defs/textList" }, |
| 75 | + "forbidden_inputs": { "$ref": "#/$defs/textList" }, |
| 76 | + "cadence": { "enum": ["hourly", "daily", "weekdays", "weekly", "monthly", "manual"] }, |
| 77 | + "freshness_sla_hours": { "type": "integer", "minimum": 1, "maximum": 8760 }, |
| 78 | + "dashboard_role": { "enum": ["primary", "supporting", "hidden"] }, |
| 79 | + "depends_on": { |
| 80 | + "type": "array", |
| 81 | + "maxItems": 20, |
| 82 | + "uniqueItems": true, |
| 83 | + "items": { "type": "string", "pattern": "^[a-z0-9-]+:[a-z0-9-]+$" }, |
| 84 | + "default": [] |
| 85 | + } |
| 86 | + } |
| 87 | + } |
| 88 | + } |
| 89 | +} |
0 commit comments