{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cloudovna-eu/json-schema/cloudovna-eu-authorization-prompt-response-schema.json",
  "title": "AuthorizationPromptResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cloudovna-eu-oauth-api-openapi.yml#/components/schemas/AuthorizationPromptResponse",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "clientName": {
      "type": "string"
    },
    "clientUri": {
      "type": [
        "string",
        "null"
      ]
    },
    "redirectTarget": {
      "type": "string"
    },
    "scope": {
      "oneOf": [
        {
          "$ref": "#/$defs/ApiTokenScope"
        }
      ]
    },
    "organizations": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/OrganizationSummaryDto"
      }
    }
  },
  "$defs": {
    "ApiTokenScope": {
      "type": "string",
      "description": "",
      "x-enumNames": [
        "Read",
        "Manage"
      ],
      "enum": [
        "Read",
        "Manage"
      ]
    },
    "OrganizationRole": {
      "type": "string",
      "description": "",
      "x-enumNames": [
        "Viewer",
        "Member",
        "Owner"
      ],
      "enum": [
        "Viewer",
        "Member",
        "Owner"
      ]
    },
    "OrganizationSummaryDto": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "id": {
          "type": "string",
          "format": "guid"
        },
        "name": {
          "type": "string"
        },
        "role": {
          "$ref": "#/$defs/OrganizationRole"
        },
        "unbilled": {
          "type": "boolean"
        },
        "member": {
          "type": "boolean"
        }
      }
    }
  }
}