{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/asap-cool/json-schema/asap-cool-setting-view-schema.json",
  "title": "SettingView",
  "description": "The autonomy of one action kind for the org.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/asap-cool-automation-api-openapi.yml#/components/schemas/SettingView",
  "type": "object",
  "required": [
    "action_kind",
    "owner_module",
    "risk_class",
    "tier",
    "plan_ceiling",
    "effective_tier",
    "max_tier",
    "paused"
  ],
  "properties": {
    "action_kind": {
      "type": "string",
      "description": "Wire name of the action kind."
    },
    "effective_tier": {
      "type": "string",
      "description": "Tier that actually applies: the lowest of the selection, the risk\nclass, the plan and the safety state."
    },
    "lock_reason": {
      "type": [
        "string",
        "null"
      ],
      "description": "What caps the highest selectable tier: `plan` only when a better plan\nwould raise it (the plan is strictly the lowest cap), else `risk_class`,\n`kind` or `safety_state`; null when nothing does."
    },
    "max_tier": {
      "type": "string",
      "description": "Highest tier the user can select for this kind: the lowest of what the\nkind declares, its risk class, the plan and the safety state."
    },
    "owner_module": {
      "type": "string",
      "description": "Slug of the app the kind belongs to."
    },
    "pause_reason": {
      "type": [
        "string",
        "null"
      ],
      "description": "Who paused the kind: `low_acceptance` when the detector did, because most\nof its proposals were turned down; null for a pause the user set (or when\nthe kind is not paused). Resuming clears it."
    },
    "paused": {
      "type": "boolean",
      "description": "Whether the kind is paused."
    },
    "plan_ceiling": {
      "type": "string",
      "description": "Highest tier the org's plan allows."
    },
    "risk_class": {
      "type": "string",
      "description": "`internal_reversible`, `external` or `non_delegable`."
    },
    "tier": {
      "type": "string",
      "description": "Tier the user selected (`t2` by default): `t0`, `t1`, `t2`, `t3a` or `t3b`."
    }
  }
}