{"openapi":"3.1.0","info":{"title":"Cathode Ray","version":"0.1.5"},"paths":{"/api/v2/health":{"get":{"tags":["Viewer"],"summary":"Health","operationId":"health_api_v2_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-002_Problem"}}}},"401":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-002_Problem"}}}},"403":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-002_Problem"}}}},"404":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-002_Problem"}}}},"409":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-002_Problem"}}}},"413":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-002_Problem"}}}},"415":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-002_Problem"}}}},"422":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-002_Problem"}}}},"429":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-002_Problem"}}}},"500":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-002_Problem"}}}}}}},"/api/v2/menu":{"get":{"tags":["Viewer"],"summary":"Menu","operationId":"menu_api_v2_menu_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-002_Problem"}}}},"401":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-002_Problem"}}}},"403":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-002_Problem"}}}},"404":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-002_Problem"}}}},"409":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-002_Problem"}}}},"413":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-002_Problem"}}}},"415":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-002_Problem"}}}},"422":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-002_Problem"}}}},"429":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-002_Problem"}}}},"500":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-002_Problem"}}}}},"security":[{"Key":[]}]}},"/api/v2/views/{identifier}":{"get":{"tags":["Viewer"],"summary":"View","operationId":"view_api_v2_views__identifier__get","parameters":[{"name":"identifier","in":"path","required":true,"schema":{"type":"string","title":"Identifier"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-002_Problem"}}}},"400":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-002_Problem"}}}},"401":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-002_Problem"}}}},"403":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-002_Problem"}}}},"404":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-002_Problem"}}}},"409":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-002_Problem"}}}},"413":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-002_Problem"}}}},"415":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-002_Problem"}}}},"429":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-002_Problem"}}}},"500":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-002_Problem"}}}}},"security":[{"Key":[]}]}},"/api/v2/now":{"get":{"tags":["Viewer"],"summary":"Now","operationId":"now_api_v2_now_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-002_Problem"}}}},"401":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-002_Problem"}}}},"403":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-002_Problem"}}}},"404":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-002_Problem"}}}},"409":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-002_Problem"}}}},"413":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-002_Problem"}}}},"415":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-002_Problem"}}}},"422":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-002_Problem"}}}},"429":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-002_Problem"}}}},"500":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-002_Problem"}}}}},"security":[{"Key":[]}]}},"/api/v2/values":{"post":{"tags":["Producers"],"summary":"Values","operationId":"values_api_v2_values_post","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-002_ValuesResponse"}}}},"400":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-002_Problem"}}}},"401":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-002_Problem"}}}},"403":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-002_Problem"}}}},"404":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-002_Problem"}}}},"409":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-002_Problem"}}}},"413":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-002_Problem"}}}},"415":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-002_Problem"}}}},"422":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-002_Problem"}}}},"429":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-002_Problem"}}}},"500":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-002_Problem"}}}}},"security":[{"Key":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-002_ValuesRequest"}}}}},"get":{"tags":["Producers"],"summary":"List Values","operationId":"list_values_api_v2_values_get","parameters":[{"name":"prefix","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prefix"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-002_ValueListResponse"}}}},"422":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-002_Problem"}}}},"400":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-002_Problem"}}}},"401":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-002_Problem"}}}},"403":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-002_Problem"}}}},"404":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-002_Problem"}}}},"409":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-002_Problem"}}}},"413":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-002_Problem"}}}},"415":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-002_Problem"}}}},"429":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-002_Problem"}}}},"500":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-002_Problem"}}}}},"security":[{"Key":[]}]},"delete":{"tags":["Producers"],"summary":"Delete Prefix","operationId":"delete_prefix_api_v2_values_delete","parameters":[{"name":"prefix","in":"query","required":true,"schema":{"type":"string","title":"Prefix"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-002_Problem"}}}},"400":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-002_Problem"}}}},"401":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-002_Problem"}}}},"403":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-002_Problem"}}}},"404":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-002_Problem"}}}},"409":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-002_Problem"}}}},"413":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-002_Problem"}}}},"415":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-002_Problem"}}}},"429":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-002_Problem"}}}},"500":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-002_Problem"}}}}},"security":[{"Key":[]}]}},"/api/v2/values/{identifier}":{"post":{"tags":["Producers"],"summary":"Plain Value","operationId":"plain_value_api_v2_values__identifier__post","parameters":[{"name":"identifier","in":"path","required":true,"schema":{"type":"string","title":"Identifier"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-002_Problem"}}}},"400":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-002_Problem"}}}},"401":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-002_Problem"}}}},"403":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-002_Problem"}}}},"404":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-002_Problem"}}}},"409":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-002_Problem"}}}},"413":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-002_Problem"}}}},"415":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-002_Problem"}}}},"429":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-002_Problem"}}}},"500":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-002_Problem"}}}}},"security":[{"Key":[]}],"requestBody":{"required":true,"content":{"text/plain":{"schema":{"type":"string"}}}}},"delete":{"tags":["Producers"],"summary":"Delete Value","operationId":"delete_value_api_v2_values__identifier__delete","parameters":[{"name":"identifier","in":"path","required":true,"schema":{"type":"string","title":"Identifier"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-002_Problem"}}}},"400":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-002_Problem"}}}},"401":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-002_Problem"}}}},"403":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-002_Problem"}}}},"404":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-002_Problem"}}}},"409":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-002_Problem"}}}},"413":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-002_Problem"}}}},"415":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-002_Problem"}}}},"429":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-002_Problem"}}}},"500":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-002_Problem"}}}}},"security":[{"Key":[]}]}},"/api/v2/activities/{identifier}":{"put":{"tags":["Producers"],"summary":"Activity","operationId":"activity_api_v2_activities__identifier__put","parameters":[{"name":"identifier","in":"path","required":true,"schema":{"type":"string","title":"Identifier"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-002_Problem"}}}},"400":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-002_Problem"}}}},"401":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-002_Problem"}}}},"403":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-002_Problem"}}}},"404":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-002_Problem"}}}},"409":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-002_Problem"}}}},"413":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-002_Problem"}}}},"415":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-002_Problem"}}}},"429":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-002_Problem"}}}},"500":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-002_Problem"}}}}},"security":[{"Key":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-002_ActivityPut"}}}}},"delete":{"tags":["Producers"],"summary":"Delete Activity","operationId":"delete_activity_api_v2_activities__identifier__delete","parameters":[{"name":"identifier","in":"path","required":true,"schema":{"type":"string","title":"Identifier"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-002_Problem"}}}},"400":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-002_Problem"}}}},"401":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-002_Problem"}}}},"403":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-002_Problem"}}}},"404":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-002_Problem"}}}},"409":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-002_Problem"}}}},"413":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-002_Problem"}}}},"415":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-002_Problem"}}}},"429":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-002_Problem"}}}},"500":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-002_Problem"}}}}},"security":[{"Key":[]}]}},"/api/v2/alerts/grafana":{"post":{"tags":["Producers"],"summary":"Grafana","operationId":"grafana_api_v2_alerts_grafana_post","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-002_GrafanaResponse"}}}},"400":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-002_Problem"}}}},"401":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-002_Problem"}}}},"403":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-002_Problem"}}}},"404":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-002_Problem"}}}},"409":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-002_Problem"}}}},"413":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-002_Problem"}}}},"415":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-002_Problem"}}}},"422":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-002_Problem"}}}},"429":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-002_Problem"}}}},"500":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-002_Problem"}}}}},"security":[{"Key":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-002_GrafanaWebhook"}}}}}},"/api/v2/admin/login":{"post":{"tags":["Admin"],"summary":"Login","operationId":"login_api_v2_admin_login_post","responses":{"204":{"description":"Successful Response"},"400":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-003_Problem"}}}},"401":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-003_Problem"}}}},"403":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-003_Problem"}}}},"404":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-003_Problem"}}}},"409":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-003_Problem"}}}},"413":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-003_Problem"}}}},"415":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-003_Problem"}}}},"422":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-003_Problem"}}}},"429":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-003_Problem"}}}},"500":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-003_Problem"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-003_LoginRequest"}}}}}},"/api/v2/admin/logout":{"post":{"tags":["Admin"],"summary":"Logout","operationId":"logout_api_v2_admin_logout_post","responses":{"204":{"description":"Successful Response"},"400":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-003_Problem"}}}},"401":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-003_Problem"}}}},"403":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-003_Problem"}}}},"404":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-003_Problem"}}}},"409":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-003_Problem"}}}},"413":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-003_Problem"}}}},"415":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-003_Problem"}}}},"422":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-003_Problem"}}}},"429":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-003_Problem"}}}},"500":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-003_Problem"}}}}},"security":[{"AdminSession":[]}],"parameters":[{"name":"X-Cathode-Ray-Admin","in":"header","required":true,"schema":{"const":"1","type":"string"}}]}},"/api/v2/admin/session":{"get":{"tags":["Admin"],"summary":"Session","operationId":"session_api_v2_admin_session_get","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-003_Session"}}}},"400":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-003_Problem"}}}},"401":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-003_Problem"}}}},"403":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-003_Problem"}}}},"404":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-003_Problem"}}}},"409":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-003_Problem"}}}},"413":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-003_Problem"}}}},"415":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-003_Problem"}}}},"422":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-003_Problem"}}}},"429":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-003_Problem"}}}},"500":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-003_Problem"}}}}},"security":[{"AdminSession":[]}]}},"/api/v2/admin/keys":{"get":{"tags":["Admin"],"summary":"Keys","operationId":"keys_api_v2_admin_keys_get","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-003_KeyList"}}}},"400":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-003_Problem"}}}},"401":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-003_Problem"}}}},"403":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-003_Problem"}}}},"404":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-003_Problem"}}}},"409":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-003_Problem"}}}},"413":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-003_Problem"}}}},"415":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-003_Problem"}}}},"422":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-003_Problem"}}}},"429":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-003_Problem"}}}},"500":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-003_Problem"}}}}},"security":[{"AdminSession":[]}]},"post":{"tags":["Admin"],"summary":"Create Key","operationId":"create_key_api_v2_admin_keys_post","responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-003_KeyCreated"}}}},"400":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-003_Problem"}}}},"401":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-003_Problem"}}}},"403":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-003_Problem"}}}},"404":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-003_Problem"}}}},"409":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-003_Problem"}}}},"413":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-003_Problem"}}}},"415":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-003_Problem"}}}},"422":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-003_Problem"}}}},"429":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-003_Problem"}}}},"500":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-003_Problem"}}}}},"security":[{"AdminSession":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-003_KeyCreate"}}}},"parameters":[{"name":"X-Cathode-Ray-Admin","in":"header","required":true,"schema":{"const":"1","type":"string"}}]}},"/api/v2/admin/keys/{name}":{"patch":{"tags":["Admin"],"summary":"Patch Key","operationId":"patch_key_api_v2_admin_keys__name__patch","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}},{"name":"X-Cathode-Ray-Admin","in":"header","required":true,"schema":{"const":"1","type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-003_KeyView"}}}},"422":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-003_Problem"}}}},"400":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-003_Problem"}}}},"401":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-003_Problem"}}}},"403":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-003_Problem"}}}},"404":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-003_Problem"}}}},"409":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-003_Problem"}}}},"413":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-003_Problem"}}}},"415":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-003_Problem"}}}},"429":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-003_Problem"}}}},"500":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-003_Problem"}}}}},"security":[{"AdminSession":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-003_KeyPatch"}}}}},"delete":{"tags":["Admin"],"summary":"Delete Key","operationId":"delete_key_api_v2_admin_keys__name__delete","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}},{"name":"X-Cathode-Ray-Admin","in":"header","required":true,"schema":{"const":"1","type":"string"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-003_Problem"}}}},"400":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-003_Problem"}}}},"401":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-003_Problem"}}}},"403":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-003_Problem"}}}},"404":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-003_Problem"}}}},"409":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-003_Problem"}}}},"413":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-003_Problem"}}}},"415":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-003_Problem"}}}},"429":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-003_Problem"}}}},"500":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-003_Problem"}}}}},"security":[{"AdminSession":[]}]}},"/api/v2/admin/keys/{name}/rotate":{"post":{"tags":["Admin"],"summary":"Rotate Key","operationId":"rotate_key_api_v2_admin_keys__name__rotate_post","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}},{"name":"X-Cathode-Ray-Admin","in":"header","required":true,"schema":{"const":"1","type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-003_KeyCreated"}}}},"422":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-003_Problem"}}}},"400":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-003_Problem"}}}},"401":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-003_Problem"}}}},"403":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-003_Problem"}}}},"404":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-003_Problem"}}}},"409":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-003_Problem"}}}},"413":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-003_Problem"}}}},"415":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-003_Problem"}}}},"429":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-003_Problem"}}}},"500":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-003_Problem"}}}}},"security":[{"AdminSession":[]}]}},"/api/v2/admin/channels":{"get":{"tags":["Admin"],"summary":"Channels","operationId":"channels_api_v2_admin_channels_get","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-003_ChannelList"}}}},"400":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-003_Problem"}}}},"401":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-003_Problem"}}}},"403":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-003_Problem"}}}},"404":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-003_Problem"}}}},"409":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-003_Problem"}}}},"413":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-003_Problem"}}}},"415":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-003_Problem"}}}},"422":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-003_Problem"}}}},"429":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-003_Problem"}}}},"500":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-003_Problem"}}}}},"security":[{"AdminSession":[]}]}},"/api/v2/admin/channels/{identifier}":{"delete":{"tags":["Admin"],"summary":"Remove Channel","operationId":"remove_channel_api_v2_admin_channels__identifier__delete","parameters":[{"name":"identifier","in":"path","required":true,"schema":{"type":"string","title":"Identifier"}},{"name":"X-Cathode-Ray-Admin","in":"header","required":true,"schema":{"const":"1","type":"string"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-003_Problem"}}}},"400":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-003_Problem"}}}},"401":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-003_Problem"}}}},"403":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-003_Problem"}}}},"404":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-003_Problem"}}}},"409":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-003_Problem"}}}},"413":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-003_Problem"}}}},"415":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-003_Problem"}}}},"429":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-003_Problem"}}}},"500":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-003_Problem"}}}}},"security":[{"AdminSession":[]}]}},"/api/v2/admin/audit":{"get":{"tags":["Admin"],"summary":"Audit","operationId":"audit_api_v2_admin_audit_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":100,"title":"Limit"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-003_AuditList"}}}},"422":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-003_Problem"}}}},"400":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-003_Problem"}}}},"401":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-003_Problem"}}}},"403":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-003_Problem"}}}},"404":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-003_Problem"}}}},"409":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-003_Problem"}}}},"413":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-003_Problem"}}}},"415":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-003_Problem"}}}},"429":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-003_Problem"}}}},"500":{"description":"Problem","content":{"application/json":{"schema":{"$ref":"#/components/schemas/icd-003_Problem"}}}}},"security":[{"AdminSession":[]}]}}},"components":{"schemas":{"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"icd-001-v2_Message":{"oneOf":[{"$ref":"#/components/schemas/icd-001-v2_Hello"},{"$ref":"#/components/schemas/icd-001-v2_Open"},{"$ref":"#/components/schemas/icd-001-v2_Ack"},{"$ref":"#/components/schemas/icd-001-v2_Invoke"},{"$ref":"#/components/schemas/icd-001-v2_ListChannels"},{"$ref":"#/components/schemas/icd-001-v2_SaveView"},{"$ref":"#/components/schemas/icd-001-v2_DeleteView"},{"$ref":"#/components/schemas/icd-001-v2_Ping"},{"$ref":"#/components/schemas/icd-001-v2_Welcome"},{"$ref":"#/components/schemas/icd-001-v2_MenuMsg"},{"$ref":"#/components/schemas/icd-001-v2_ViewMsg"},{"$ref":"#/components/schemas/icd-001-v2_Values"},{"$ref":"#/components/schemas/icd-001-v2_Now"},{"$ref":"#/components/schemas/icd-001-v2_Channels"},{"$ref":"#/components/schemas/icd-001-v2_ViewSaved"},{"$ref":"#/components/schemas/icd-001-v2_ActionResult"},{"$ref":"#/components/schemas/icd-001-v2_Pong"},{"$ref":"#/components/schemas/icd-001-v2_Error"}]},"icd-001-v2_Id":{"type":"string","pattern":"^[a-z0-9][a-z0-9_-]{0,31}$"},"icd-001-v2_ChannelId":{"type":"string","maxLength":64,"pattern":"^[a-z0-9][a-z0-9_-]{0,31}(\\.[a-z0-9][a-z0-9_-]{0,31}){0,3}$"},"icd-001-v2_EventId":{"type":"string","pattern":"^[A-Za-z0-9._:-]{1,64}$"},"icd-001-v2_Timestamp":{"type":"number","minimum":0},"icd-001-v2_Req":{"type":"integer","minimum":0,"maximum":2147483647},"icd-001-v2_State":{"enum":["ok","warn","crit","stale","nodata"]},"icd-001-v2_Scope":{"enum":["view","ack","edit","control"]},"icd-001-v2_ClientEnvelope":{"type":"object","required":["v","type"],"properties":{"v":{"const":2},"type":{"type":"string"},"req":{"$ref":"#/components/schemas/icd-001-v2_Req"}}},"icd-001-v2_ServerEnvelope":{"type":"object","required":["v","type","seq","ts"],"properties":{"v":{"const":2},"type":{"type":"string"},"seq":{"type":"integer","minimum":1},"ts":{"$ref":"#/components/schemas/icd-001-v2_Timestamp"},"re":{"$ref":"#/components/schemas/icd-001-v2_Req"}}},"icd-001-v2_Hello":{"allOf":[{"$ref":"#/components/schemas/icd-001-v2_ClientEnvelope"}],"required":["client","key"],"properties":{"type":{"const":"hello"},"client":{"type":"object","required":["name","version"],"properties":{"name":{"type":"string","maxLength":64},"version":{"type":"string","maxLength":32}}},"key":{"type":"string","minLength":1,"maxLength":256}}},"icd-001-v2_Open":{"allOf":[{"$ref":"#/components/schemas/icd-001-v2_ClientEnvelope"}],"required":["view"],"properties":{"type":{"const":"open"},"view":{"$ref":"#/components/schemas/icd-001-v2_Id"}}},"icd-001-v2_Ack":{"allOf":[{"$ref":"#/components/schemas/icd-001-v2_ClientEnvelope"}],"required":["alert"],"properties":{"type":{"const":"ack"},"alert":{"$ref":"#/components/schemas/icd-001-v2_EventId"}}},"icd-001-v2_Invoke":{"allOf":[{"$ref":"#/components/schemas/icd-001-v2_ClientEnvelope"}],"required":["req","action"],"properties":{"type":{"const":"invoke"},"action":{"$ref":"#/components/schemas/icd-001-v2_Id"},"confirm":{"type":"string","minLength":8,"maxLength":128}}},"icd-001-v2_ListChannels":{"allOf":[{"$ref":"#/components/schemas/icd-001-v2_ClientEnvelope"}],"required":["req"],"properties":{"type":{"const":"list_channels"}}},"icd-001-v2_SaveView":{"allOf":[{"$ref":"#/components/schemas/icd-001-v2_ClientEnvelope"}],"required":["req","view"],"properties":{"type":{"const":"save_view"},"view":{"$ref":"#/components/schemas/icd-001-v2_QuickViewDraft"}}},"icd-001-v2_DeleteView":{"allOf":[{"$ref":"#/components/schemas/icd-001-v2_ClientEnvelope"}],"required":["req","id"],"properties":{"type":{"const":"delete_view"},"id":{"$ref":"#/components/schemas/icd-001-v2_Id"}}},"icd-001-v2_Ping":{"allOf":[{"$ref":"#/components/schemas/icd-001-v2_ClientEnvelope"}],"required":["nonce"],"properties":{"type":{"const":"ping"},"nonce":{"type":"integer","minimum":0}}},"icd-001-v2_Welcome":{"allOf":[{"$ref":"#/components/schemas/icd-001-v2_ServerEnvelope"}],"required":["server","heartbeat_s","scopes","menu","home"],"properties":{"type":{"const":"welcome"},"server":{"type":"object","required":["name","version"],"properties":{"name":{"type":"string"},"version":{"type":"string"}}},"heartbeat_s":{"type":"integer","minimum":5,"maximum":120},"scopes":{"type":"array","items":{"$ref":"#/components/schemas/icd-001-v2_Scope"},"contains":{"const":"view"},"uniqueItems":true},"menu":{"$ref":"#/components/schemas/icd-001-v2_MenuRoot"},"home":{"$ref":"#/components/schemas/icd-001-v2_Id"}}},"icd-001-v2_MenuMsg":{"allOf":[{"$ref":"#/components/schemas/icd-001-v2_ServerEnvelope"}],"required":["menu"],"properties":{"type":{"const":"menu"},"menu":{"$ref":"#/components/schemas/icd-001-v2_MenuRoot"}}},"icd-001-v2_ViewMsg":{"allOf":[{"$ref":"#/components/schemas/icd-001-v2_ServerEnvelope"}],"required":["definition","values"],"properties":{"type":{"const":"view"},"definition":{"$ref":"#/components/schemas/icd-001-v2_ViewDefinition"},"values":{"$ref":"#/components/schemas/icd-001-v2_ValueMap"}}},"icd-001-v2_Values":{"allOf":[{"$ref":"#/components/schemas/icd-001-v2_ServerEnvelope"}],"required":["view","values"],"properties":{"type":{"const":"values"},"view":{"$ref":"#/components/schemas/icd-001-v2_Id"},"values":{"$ref":"#/components/schemas/icd-001-v2_ValueMap","minProperties":1}}},"icd-001-v2_Now":{"allOf":[{"$ref":"#/components/schemas/icd-001-v2_ServerEnvelope"}],"required":["alerts","activities"],"properties":{"type":{"const":"now"},"alerts":{"type":"array","maxItems":50,"items":{"$ref":"#/components/schemas/icd-001-v2_Alert"}},"activities":{"type":"array","maxItems":20,"items":{"$ref":"#/components/schemas/icd-001-v2_Activity"}}}},"icd-001-v2_Channels":{"allOf":[{"$ref":"#/components/schemas/icd-001-v2_ServerEnvelope"}],"required":["re","channels"],"properties":{"type":{"const":"channels"},"channels":{"type":"array","maxItems":1120,"items":{"$ref":"#/components/schemas/icd-001-v2_ChannelInfo"}}}},"icd-001-v2_ViewSaved":{"allOf":[{"$ref":"#/components/schemas/icd-001-v2_ServerEnvelope"}],"required":["re","id"],"properties":{"type":{"const":"view_saved"},"id":{"$ref":"#/components/schemas/icd-001-v2_Id"},"deleted":{"type":"boolean"}}},"icd-001-v2_ActionResult":{"allOf":[{"$ref":"#/components/schemas/icd-001-v2_ServerEnvelope"}],"required":["re","action","status"],"properties":{"type":{"const":"action_result"},"action":{"$ref":"#/components/schemas/icd-001-v2_Id"},"status":{"enum":["confirm","done","denied","failed","expired"]},"message":{"type":"string","maxLength":64},"confirm":{"type":"object","required":["token","expires_s","prompt"],"properties":{"token":{"type":"string","minLength":8,"maxLength":128},"expires_s":{"type":"integer","minimum":1,"maximum":10},"prompt":{"type":"string","maxLength":32}}}},"if":{"properties":{"status":{"const":"confirm"}}},"then":{"required":["confirm"]},"else":{"not":{"required":["confirm"]}}},"icd-001-v2_Pong":{"allOf":[{"$ref":"#/components/schemas/icd-001-v2_ServerEnvelope"}],"required":["nonce"],"properties":{"type":{"const":"pong"},"nonce":{"type":"integer","minimum":0}}},"icd-001-v2_Error":{"allOf":[{"$ref":"#/components/schemas/icd-001-v2_ServerEnvelope"}],"required":["code","message","fatal"],"properties":{"type":{"const":"error"},"code":{"enum":["AUTH_FAILED","UNSUPPORTED_VERSION","NOT_READY","BAD_MESSAGE","UNKNOWN_VIEW","UNKNOWN_ALERT","UNKNOWN_ACTION","FORBIDDEN","RATE_LIMITED","INTERNAL"]},"message":{"type":"string","maxLength":200},"fatal":{"type":"boolean"}}},"icd-001-v2_MenuRoot":{"allOf":[{"$ref":"#/components/schemas/icd-001-v2_MenuNode"}],"required":["children"]},"icd-001-v2_MenuNode":{"type":"object","required":["id","title"],"properties":{"id":{"$ref":"#/components/schemas/icd-001-v2_Id"},"title":{"type":"string","minLength":1,"maxLength":24},"view":{"$ref":"#/components/schemas/icd-001-v2_Id"},"children":{"type":"array","minItems":1,"maxItems":20,"items":{"$ref":"#/components/schemas/icd-001-v2_MenuNode"}},"badge":{"type":"string","maxLength":4},"hidden":{"type":"boolean"}},"oneOf":[{"required":["view"]},{"required":["children"]}]},"icd-001-v2_ViewDefinition":{"type":"object","required":["id","title","layout","items"],"properties":{"id":{"$ref":"#/components/schemas/icd-001-v2_Id"},"title":{"type":"string","maxLength":24},"layout":{"type":"string","description":"grid | hero | list | now. Unknown layouts render as grid."},"items":{"type":"array","items":{"$ref":"#/components/schemas/icd-001-v2_Item"}},"editable":{"type":"boolean"}},"allOf":[{"if":{"properties":{"layout":{"const":"now"}}},"then":{"properties":{"items":{"maxItems":0}}}},{"if":{"properties":{"layout":{"const":"grid"}}},"then":{"properties":{"items":{"minItems":1,"maxItems":6}}}},{"if":{"properties":{"layout":{"const":"hero"}}},"then":{"properties":{"items":{"minItems":1,"maxItems":5}}}},{"if":{"properties":{"layout":{"const":"list"}}},"then":{"properties":{"items":{"minItems":0,"maxItems":100}}}}]},"icd-001-v2_QuickViewDraft":{"type":"object","required":["title","layout","items"],"properties":{"id":{"$ref":"#/components/schemas/icd-001-v2_Id"},"title":{"type":"string","minLength":1,"maxLength":24},"layout":{"enum":["grid","hero","list"]},"items":{"type":"array","minItems":1,"items":{"$ref":"#/components/schemas/icd-001-v2_ChannelItem"}},"editable":false},"allOf":[{"if":{"properties":{"layout":{"const":"grid"}}},"then":{"properties":{"items":{"maxItems":6}}}},{"if":{"properties":{"layout":{"const":"hero"}}},"then":{"properties":{"items":{"maxItems":5}}}},{"if":{"properties":{"layout":{"const":"list"}}},"then":{"properties":{"items":{"maxItems":100}}}}]},"icd-001-v2_Item":{"oneOf":[{"$ref":"#/components/schemas/icd-001-v2_ServerChannelItem"},{"$ref":"#/components/schemas/icd-001-v2_ActionItem"}]},"icd-001-v2_ChannelItem":{"type":"object","required":["channel"],"properties":{"channel":{"$ref":"#/components/schemas/icd-001-v2_ChannelId"},"label":{"type":"string","maxLength":16},"span":{"enum":[1,2]}},"not":{"required":["action"]}},"icd-001-v2_ActionItem":{"type":"object","required":["action","label","tier"],"properties":{"action":{"$ref":"#/components/schemas/icd-001-v2_Id"},"label":{"type":"string","maxLength":16},"tier":{"type":"string","description":"safe | guarded | critical. Unknown tiers are treated as critical."},"channel":{"$ref":"#/components/schemas/icd-001-v2_ChannelId"},"span":{"enum":[1,2]}}},"icd-001-v2_ValueMap":{"type":"object","propertyNames":{"$ref":"#/components/schemas/icd-001-v2_ChannelId"},"additionalProperties":{"$ref":"#/components/schemas/icd-001-v2_ChannelValue"}},"icd-001-v2_ChannelValue":{"type":"object","required":["text","state","ts"],"properties":{"text":{"type":"string","maxLength":32},"unit":{"type":"string","maxLength":8},"state":{"$ref":"#/components/schemas/icd-001-v2_State"},"ts":{"$ref":"#/components/schemas/icd-001-v2_Timestamp"},"value":{"type":["number","null"]},"progress":{"type":"number","minimum":0,"maximum":1}}},"icd-001-v2_ChannelInfo":{"type":"object","required":["id","label","origin"],"properties":{"id":{"$ref":"#/components/schemas/icd-001-v2_ChannelId"},"label":{"type":"string","maxLength":16},"unit":{"type":"string","maxLength":8},"origin":{"enum":["config","push"]},"group":{"type":"string","maxLength":24}}},"icd-001-v2_Link":{"type":"object","properties":{"view":{"$ref":"#/components/schemas/icd-001-v2_Id"},"channel":{"$ref":"#/components/schemas/icd-001-v2_ChannelId"}},"minProperties":1},"icd-001-v2_Alert":{"type":"object","required":["id","severity","title","origin","since","acked","interrupt"],"properties":{"id":{"$ref":"#/components/schemas/icd-001-v2_EventId"},"severity":{"type":"string","description":"info | warning | critical. Unknown values are treated as warning."},"title":{"type":"string","minLength":1,"maxLength":32},"detail":{"type":"string","maxLength":80},"origin":{"enum":["grafana","server"]},"since":{"$ref":"#/components/schemas/icd-001-v2_Timestamp"},"acked":{"type":"boolean"},"interrupt":{"enum":["none","banner","takeover"]},"link":{"$ref":"#/components/schemas/icd-001-v2_Link"}}},"icd-001-v2_Activity":{"type":"object","required":["id","title","text","state"],"properties":{"id":{"$ref":"#/components/schemas/icd-001-v2_EventId"},"title":{"type":"string","minLength":1,"maxLength":24},"text":{"type":"string","maxLength":32},"progress":{"type":"number","minimum":0,"maximum":1},"state":{"$ref":"#/components/schemas/icd-001-v2_State"},"link":{"type":"object","properties":{"view":{"$ref":"#/components/schemas/icd-001-v2_Id"}},"required":["view"]}}},"icd-001-v2_ServerChannelItem":{"allOf":[{"$ref":"#/components/schemas/icd-001-v2_ChannelItem"}],"required":["channel","label"]},"icd-002_ChannelId":{"type":"string","maxLength":64,"pattern":"^[a-z0-9][a-z0-9_-]{0,31}(\\.[a-z0-9][a-z0-9_-]{0,31}){0,3}$"},"icd-002_Id":{"type":"string","pattern":"^[a-z0-9][a-z0-9_-]{0,31}$"},"icd-002_Timestamp":{"type":"number","minimum":0},"icd-002_BareValue":{"oneOf":[{"type":"number"},{"type":"string","maxLength":32},{"type":"boolean"},{"type":"null"}]},"icd-002_ValueSpec":{"type":"object","required":["value"],"additionalProperties":false,"properties":{"value":{"$ref":"#/components/schemas/icd-002_BareValue"},"unit":{"type":["string","null"],"maxLength":8},"label":{"type":["string","null"],"maxLength":16},"ttl":{"type":["integer","null"],"minimum":1,"maximum":86400},"decimals":{"type":["integer","null"],"minimum":0,"maximum":6},"warn":{"type":["number","null"]},"crit":{"type":["number","null"]},"direction":{"enum":["above","below",null]},"progress":{"type":"number","minimum":0,"maximum":1}}},"icd-002_ValueInput":{"oneOf":[{"$ref":"#/components/schemas/icd-002_BareValue"},{"$ref":"#/components/schemas/icd-002_ValueSpec"}]},"icd-002_ValuesRequest":{"type":"object","minProperties":1,"maxProperties":50,"propertyNames":{"$ref":"#/components/schemas/icd-002_ChannelId"},"additionalProperties":{"$ref":"#/components/schemas/icd-002_ValueInput"}},"icd-002_ValuesResponse":{"type":"object","required":["accepted","created","updated"],"properties":{"accepted":{"type":"integer","minimum":1,"maximum":50},"created":{"type":"array","items":{"$ref":"#/components/schemas/icd-002_ChannelId"}},"updated":{"type":"array","items":{"$ref":"#/components/schemas/icd-002_ChannelId"}}}},"icd-002_ValueListResponse":{"type":"object","required":["values"],"properties":{"values":{"type":"array","items":{"type":"object","required":["id","label","text","state","age_s","created"],"properties":{"id":{"$ref":"#/components/schemas/icd-002_ChannelId"},"label":{"type":"string","maxLength":16},"text":{"type":"string","maxLength":32},"unit":{"type":"string","maxLength":8},"state":{"enum":["ok","warn","crit","stale","nodata"]},"age_s":{"type":"number","minimum":0},"ttl":{"type":"integer","minimum":1,"maximum":86400},"created":{"$ref":"#/components/schemas/icd-002_Timestamp"}}}}}},"icd-002_ActivityPut":{"type":"object","required":["title","text"],"additionalProperties":false,"properties":{"title":{"type":"string","minLength":1,"maxLength":24},"text":{"type":"string","maxLength":32},"progress":{"type":"number","minimum":0,"maximum":1},"state":{"enum":["ok","warn","crit"]},"ttl":{"type":"integer","minimum":1,"maximum":86400},"link":{"type":"object","required":["view"],"additionalProperties":false,"properties":{"view":{"$ref":"#/components/schemas/icd-002_Id"}}}}},"icd-002_GrafanaWebhook":{"description":"The subset of Grafana's webhook payload (version 1) that cathode-ray reads. Other fields are ignored.","type":"object","required":["alerts"],"properties":{"version":{"type":"string"},"status":{"enum":["firing","resolved"]},"truncatedAlerts":{"type":"integer","minimum":0},"alerts":{"type":"array","items":{"$ref":"#/components/schemas/icd-002_GrafanaAlert"}}}},"icd-002_GrafanaAlert":{"type":"object","required":["status","fingerprint","labels","startsAt"],"properties":{"status":{"enum":["firing","resolved"]},"fingerprint":{"type":"string","pattern":"^[A-Za-z0-9]{1,48}$"},"labels":{"type":"object","additionalProperties":{"type":"string"},"properties":{"severity":{"type":"string"},"cr_interrupt":{"enum":["none","banner","takeover"]},"cr_view":{"$ref":"#/components/schemas/icd-002_Id"},"cr_channel":{"$ref":"#/components/schemas/icd-002_ChannelId"}}},"annotations":{"type":"object","additionalProperties":{"type":"string"}},"startsAt":{"type":"string","format":"date-time"},"endsAt":{"type":"string"}}},"icd-002_GrafanaResponse":{"type":"object","required":["accepted","firing","resolved"],"properties":{"accepted":{"type":"integer","minimum":0},"firing":{"type":"integer","minimum":0},"resolved":{"type":"integer","minimum":0}}},"icd-002_Problem":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","NOT_FOUND","CONFLICT","TOO_LARGE","UNSUPPORTED_MEDIA","INVALID","RATE_LIMITED","INTERNAL"]},"message":{"type":"string","maxLength":200},"details":{"type":"array","maxItems":50,"items":{"type":"object","required":["path","reason"],"properties":{"path":{"type":"string"},"reason":{"type":"string"}}}}}}}},"icd-002_KeyEntry":{"description":"One key as stored in the server's /data/keys.json. Managed through ICD-003.","type":"object","required":["name","sha256","scopes"],"additionalProperties":false,"properties":{"name":{"$ref":"#/components/schemas/icd-002_Id"},"sha256":{"type":"string","pattern":"^[0-9a-f]{64}$"},"enabled":{"type":"boolean"},"created":{"$ref":"#/components/schemas/icd-002_Timestamp"},"rotated":{"$ref":"#/components/schemas/icd-002_Timestamp"},"last_used":{"$ref":"#/components/schemas/icd-002_Timestamp"},"secret_hint":{"type":"string","pattern":"^(pk|vk|gk)_…[A-Za-z0-9]{4}$"},"scopes":{"type":"array","minItems":1,"uniqueItems":true,"items":{"enum":["view","ack","edit","control","push","activity","alerts","read"]}},"prefixes":{"type":"array","minItems":1,"items":{"$ref":"#/components/schemas/icd-002_Id"}},"allow_from":{"type":"array","items":{"type":"string"}}},"allOf":[{"if":{"properties":{"scopes":{"contains":{"enum":["push","activity"]}}}},"then":{"required":["prefixes"]}}]},"icd-003_Id":{"type":"string","pattern":"^[a-z0-9][a-z0-9_-]{0,31}$"},"icd-003_ChannelId":{"type":"string","maxLength":64,"pattern":"^[a-z0-9][a-z0-9_-]{0,31}(\\.[a-z0-9][a-z0-9_-]{0,31}){0,3}$"},"icd-003_Timestamp":{"type":"number","minimum":0},"icd-003_Scopes":{"type":"array","minItems":1,"uniqueItems":true,"items":{"enum":["view","ack","edit","control","push","activity","alerts","read"]}},"icd-003_Prefixes":{"type":"array","maxItems":20,"uniqueItems":true,"items":{"$ref":"#/components/schemas/icd-003_Id"}},"icd-003_Cidrs":{"type":"array","maxItems":20,"items":{"type":"string","pattern":"^[0-9A-Fa-f:.]+/[0-9]{1,3}$"}},"icd-003_LoginRequest":{"type":"object","required":["password"],"additionalProperties":false,"properties":{"password":{"type":"string","minLength":1,"maxLength":256}}},"icd-003_Session":{"type":"object","required":["expires_at","idle_expires_at"],"properties":{"expires_at":{"$ref":"#/components/schemas/icd-003_Timestamp"},"idle_expires_at":{"$ref":"#/components/schemas/icd-003_Timestamp"}}},"icd-003_KeyCreate":{"type":"object","required":["name","scopes"],"additionalProperties":false,"properties":{"name":{"$ref":"#/components/schemas/icd-003_Id"},"scopes":{"$ref":"#/components/schemas/icd-003_Scopes"},"prefixes":{"$ref":"#/components/schemas/icd-003_Prefixes"},"allow_from":{"$ref":"#/components/schemas/icd-003_Cidrs"},"enabled":{"type":"boolean"}},"allOf":[{"if":{"properties":{"scopes":{"contains":{"enum":["push","activity"]}}},"required":["scopes"]},"then":{"required":["prefixes"],"properties":{"prefixes":{"minItems":1}}}}]},"icd-003_KeyPatch":{"type":"object","minProperties":1,"additionalProperties":false,"properties":{"scopes":{"$ref":"#/components/schemas/icd-003_Scopes"},"prefixes":{"$ref":"#/components/schemas/icd-003_Prefixes"},"allow_from":{"$ref":"#/components/schemas/icd-003_Cidrs"},"enabled":{"type":"boolean"}},"allOf":[{"if":{"properties":{"scopes":{"contains":{"enum":["push","activity"]}}},"required":["scopes"]},"then":{"required":["prefixes"],"properties":{"prefixes":{"minItems":1}}}}]},"icd-003_KeyView":{"type":"object","required":["name","scopes","enabled","created","secret_hint"],"properties":{"name":{"$ref":"#/components/schemas/icd-003_Id"},"scopes":{"$ref":"#/components/schemas/icd-003_Scopes"},"prefixes":{"$ref":"#/components/schemas/icd-003_Prefixes"},"allow_from":{"$ref":"#/components/schemas/icd-003_Cidrs"},"enabled":{"type":"boolean"},"created":{"$ref":"#/components/schemas/icd-003_Timestamp"},"rotated":{"$ref":"#/components/schemas/icd-003_Timestamp"},"last_used":{"$ref":"#/components/schemas/icd-003_Timestamp"},"secret_hint":{"type":"string","pattern":"^(pk|vk|gk)_…[A-Za-z0-9]{4}$"}},"not":{"anyOf":[{"required":["sha256"]},{"required":["secret"]}]}},"icd-003_KeyCreated":{"type":"object","required":["key","secret"],"additionalProperties":false,"properties":{"key":{"$ref":"#/components/schemas/icd-003_KeyView"},"secret":{"type":"string","pattern":"^(pk|vk|gk)_[A-Za-z0-9]{40,50}$"}}},"icd-003_KeyList":{"type":"object","required":["keys"],"properties":{"keys":{"type":"array","items":{"$ref":"#/components/schemas/icd-003_KeyView"}}}},"icd-003_ChannelList":{"type":"object","required":["channels"],"properties":{"channels":{"type":"array","items":{"type":"object","required":["id","label","text","state","age_s","owner"],"properties":{"id":{"$ref":"#/components/schemas/icd-003_ChannelId"},"label":{"type":"string","maxLength":16},"text":{"type":"string","maxLength":32},"unit":{"type":"string","maxLength":8},"state":{"enum":["ok","warn","crit","stale","nodata"]},"age_s":{"type":"number","minimum":0},"ttl":{"type":"integer","minimum":1},"owner":{"$ref":"#/components/schemas/icd-003_Id"}}}}}},"icd-003_AuditEvent":{"type":"object","required":["ts","event","actor"],"properties":{"ts":{"$ref":"#/components/schemas/icd-003_Timestamp"},"event":{"enum":["login","login_failed","login_locked","login_throttled","logout","key_created","key_updated","key_rotated","key_deleted","channel_deleted","action_invoked"]},"actor":{"type":"string","maxLength":32},"target":{"type":"string","maxLength":64},"ip":{"type":"string","maxLength":45},"detail":{"type":"string","maxLength":200}}},"icd-003_AuditList":{"type":"object","required":["events"],"properties":{"events":{"type":"array","maxItems":500,"items":{"$ref":"#/components/schemas/icd-003_AuditEvent"}}}},"icd-003_Problem":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"enum":["BAD_REQUEST","UNAUTHORIZED","FORBIDDEN","NOT_FOUND","CONFLICT","TOO_LARGE","UNSUPPORTED_MEDIA","INVALID","RATE_LIMITED","LOCKED","INTERNAL"]},"message":{"type":"string","maxLength":200},"details":{"type":"array","items":{"type":"object","required":["path","reason"],"properties":{"path":{"type":"string"},"reason":{"type":"string"}}}}}}}}},"securitySchemes":{"Key":{"type":"http","scheme":"bearer"},"AdminSession":{"type":"apiKey","in":"cookie","name":"cr_admin"}}}}