{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/audivo-dev/json-schema/audivo-dev-oauth-decision-schema.json",
  "title": "OAuthDecision",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/audivo-dev-connected-apps-api-openapi.yml#/components/schemas/OAuthDecision",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "redirect_to"
  ],
  "properties": {
    "redirect_to": {
      "type": "string",
      "format": "uri",
      "maxLength": 4096,
      "description": "The app's redirect, carrying `code`, `state` and `iss` on an approval, or `error=access_denied` on a refusal."
    },
    "grant_id": {
      "$ref": "#/$defs/GrantId"
    }
  },
  "$defs": {
    "GrantId": {
      "type": "string",
      "pattern": "^oag_[a-f0-9]{24}$",
      "maxLength": 40,
      "description": "A connected app — one OAuth grant."
    }
  }
}