Files
arr/.sqlx/query-6b34f7c8d536d505c166f5b9b5a4db5fa3008b08e8e173b5ca21f51cca1dd1ee.json
T
Miguel Palhas 9fa1f0cc51 feat(api): policy and root CRUD endpoints
Policies and roots were editable only via SQL inside the container.
Full CRUD over both, validated against the vocabulary the policy
engine knows — unknown resolutions or sources answer 422 naming the
field, malformed JSON answers 422, deleting a referenced policy or an
occupied root answers 409. Closes #116 (API half).
2026-08-23 14:56:51 +01:00

63 lines
1.7 KiB
JSON

{
"db_name": "SQLite",
"query": "SELECT name AS \"name!: String\",\n required_audio AS \"required_audio!: String\",\n dub_blacklist AS \"dub_blacklist!: String\",\n hdr_rules AS \"hdr_rules!: String\",\n size_bands AS \"size_bands!: String\",\n resolution_pref AS \"resolution_pref!: String\",\n source_weights AS \"source_weights!: String\",\n score_weights AS \"score_weights!: String\"\n FROM policies WHERE id = ?",
"describe": {
"columns": [
{
"name": "name!: String",
"ordinal": 0,
"type_info": "Text"
},
{
"name": "required_audio!: String",
"ordinal": 1,
"type_info": "Text"
},
{
"name": "dub_blacklist!: String",
"ordinal": 2,
"type_info": "Text"
},
{
"name": "hdr_rules!: String",
"ordinal": 3,
"type_info": "Text"
},
{
"name": "size_bands!: String",
"ordinal": 4,
"type_info": "Text"
},
{
"name": "resolution_pref!: String",
"ordinal": 5,
"type_info": "Text"
},
{
"name": "source_weights!: String",
"ordinal": 6,
"type_info": "Text"
},
{
"name": "score_weights!: String",
"ordinal": 7,
"type_info": "Text"
}
],
"parameters": {
"Right": 1
},
"nullable": [
false,
false,
false,
false,
false,
false,
false,
false
]
},
"hash": "6b34f7c8d536d505c166f5b9b5a4db5fa3008b08e8e173b5ca21f51cca1dd1ee"
}