|
| 1 | +{ |
| 2 | + "$schema": "http://json-schema.org/draft-07/schema#", |
| 3 | + "$id": "claudius-client-config", |
| 4 | + "title": "Claudius Client Configuration", |
| 5 | + "type": "object", |
| 6 | + "required": ["name", "slug", "apiUrl", "allowedDomains"], |
| 7 | + "additionalProperties": false, |
| 8 | + "properties": { |
| 9 | + "$schema": { |
| 10 | + "type": "string" |
| 11 | + }, |
| 12 | + "name": { |
| 13 | + "type": "string", |
| 14 | + "description": "Human-readable client name", |
| 15 | + "minLength": 1 |
| 16 | + }, |
| 17 | + "slug": { |
| 18 | + "type": "string", |
| 19 | + "description": "URL-safe identifier (lowercase alphanumeric and hyphens)", |
| 20 | + "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$" |
| 21 | + }, |
| 22 | + "apiUrl": { |
| 23 | + "type": "string", |
| 24 | + "description": "Full URL to the client's Claudius Worker chat endpoint", |
| 25 | + "format": "uri" |
| 26 | + }, |
| 27 | + "allowedDomains": { |
| 28 | + "type": "array", |
| 29 | + "description": "Domains where this widget may be embedded", |
| 30 | + "items": { "type": "string" }, |
| 31 | + "minItems": 1 |
| 32 | + }, |
| 33 | + "widget": { |
| 34 | + "type": "object", |
| 35 | + "additionalProperties": false, |
| 36 | + "properties": { |
| 37 | + "title": { "type": "string" }, |
| 38 | + "subtitle": { "type": "string" }, |
| 39 | + "welcomeMessage": { "type": "string" }, |
| 40 | + "placeholder": { "type": "string" }, |
| 41 | + "theme": { "type": "string", "enum": ["light", "dark", "auto"] }, |
| 42 | + "position": { |
| 43 | + "type": "string", |
| 44 | + "enum": ["bottom-right", "bottom-left", "top-right", "top-left"] |
| 45 | + }, |
| 46 | + "accentColor": { "type": "string", "pattern": "^#[0-9a-fA-F]{6}$" } |
| 47 | + } |
| 48 | + }, |
| 49 | + "worker": { |
| 50 | + "type": "object", |
| 51 | + "additionalProperties": false, |
| 52 | + "properties": { |
| 53 | + "model": { "type": "string" }, |
| 54 | + "maxTokens": { "type": "integer", "minimum": 1, "maximum": 8192 }, |
| 55 | + "rateLimitMinute": { "type": "integer", "minimum": 1 }, |
| 56 | + "rateLimitHour": { "type": "integer", "minimum": 1 }, |
| 57 | + "systemPrompt": { |
| 58 | + "type": "string", |
| 59 | + "description": "Relative path to a markdown file containing the system prompt" |
| 60 | + } |
| 61 | + } |
| 62 | + } |
| 63 | + } |
| 64 | +} |
0 commit comments