{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/proside-io/json-schema/proside-io-voice-runtime-activation-approval-result-v2-schema.json",
  "title": "VoiceRuntimeActivationApprovalResultV2",
  "x-generated": "2026-11-22",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/proside-io-openapi.json#/components/schemas/VoiceRuntimeActivationApprovalResultV2",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "title": "Id"
    },
    "global_control_id": {
      "type": "string",
      "format": "uuid",
      "title": "Global Control Id"
    },
    "action": {
      "type": "string",
      "const": "ENABLE_GENERAL",
      "title": "Action"
    },
    "max_rollout_stage": {
      "type": "string",
      "const": "GENERAL",
      "title": "Max Rollout Stage"
    },
    "expected_global_version": {
      "type": "integer",
      "minimum": 1.0,
      "title": "Expected Global Version"
    },
    "preview_sha256": {
      "type": "string",
      "pattern": "^[0-9a-f]{64}$",
      "title": "Preview Sha256"
    },
    "ledger_schema_version": {
      "type": "string",
      "title": "Ledger Schema Version"
    },
    "ledger_version": {
      "type": "string",
      "title": "Ledger Version"
    },
    "ledger_sha256": {
      "type": "string",
      "pattern": "^[0-9a-f]{64}$",
      "title": "Ledger Sha256"
    },
    "coverage_schema_version": {
      "type": "string",
      "title": "Coverage Schema Version"
    },
    "coverage_sha256": {
      "type": "string",
      "pattern": "^[0-9a-f]{64}$",
      "title": "Coverage Sha256"
    },
    "command_reason": {
      "type": "string",
      "title": "Command Reason"
    },
    "status": {
      "type": "string",
      "enum": [
        "PENDING",
        "APPROVED",
        "REJECTED",
        "CONSUMED"
      ],
      "title": "Status"
    },
    "requested_by_user_account_id": {
      "type": "string",
      "format": "uuid",
      "title": "Requested By User Account Id"
    },
    "consumed_by_user_account_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ],
      "title": "Consumed By User Account Id"
    },
    "decision": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "APPROVE",
            "REJECT"
          ]
        },
        {
          "type": "null"
        }
      ],
      "title": "Decision"
    },
    "decided_by_user_account_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ],
      "title": "Decided By User Account Id"
    },
    "requester_authority_current": {
      "type": "boolean",
      "title": "Requester Authority Current"
    },
    "reviewer_authority_current": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "title": "Reviewer Authority Current"
    },
    "rationale": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Rationale"
    },
    "expires_at": {
      "type": "string",
      "format": "date-time",
      "title": "Expires At"
    },
    "expired": {
      "type": "boolean",
      "title": "Expired"
    },
    "scope_current": {
      "type": "boolean",
      "title": "Scope Current"
    },
    "requested_by_current_admin": {
      "type": "boolean",
      "title": "Requested By Current Admin"
    },
    "can_decide": {
      "type": "boolean",
      "title": "Can Decide"
    },
    "can_consume": {
      "type": "boolean",
      "title": "Can Consume"
    },
    "resolved_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Resolved At"
    },
    "consumed_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Consumed At"
    },
    "version": {
      "type": "integer",
      "minimum": 1.0,
      "title": "Version"
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "title": "Created At"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time",
      "title": "Updated At"
    },
    "replayed": {
      "type": "boolean",
      "title": "Replayed",
      "default": false
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "id",
    "global_control_id",
    "action",
    "max_rollout_stage",
    "expected_global_version",
    "preview_sha256",
    "ledger_schema_version",
    "ledger_version",
    "ledger_sha256",
    "coverage_schema_version",
    "coverage_sha256",
    "command_reason",
    "status",
    "requested_by_user_account_id",
    "consumed_by_user_account_id",
    "decision",
    "decided_by_user_account_id",
    "requester_authority_current",
    "reviewer_authority_current",
    "rationale",
    "expires_at",
    "expired",
    "scope_current",
    "requested_by_current_admin",
    "can_decide",
    "can_consume",
    "resolved_at",
    "consumed_at",
    "version",
    "created_at",
    "updated_at"
  ]
}