{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/crevio-co/json-schema/crevio-co-list-response-approval-schema.json",
  "title": "ListResponse_Approval",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/crevio-co-approvals-api-openapi.yml#/components/schemas/ListResponse_Approval",
  "type": "object",
  "properties": {
    "object": {
      "type": "string",
      "enum": [
        "list"
      ]
    },
    "data": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Approval"
      }
    },
    "has_more": {
      "type": "boolean"
    },
    "url": {
      "type": "string"
    }
  },
  "required": [
    "object",
    "data",
    "has_more",
    "url"
  ],
  "$defs": {
    "Approval": {
      "type": "object",
      "properties": {
        "object": {
          "type": "string",
          "enum": [
            "approval"
          ]
        },
        "id": {
          "type": "string"
        },
        "approval_id": {
          "type": "string"
        },
        "status": {
          "type": "string",
          "description": "`pending_approval` waits for a person. It ends `executed` (see `result`), `failed` (see `error`) or `denied` (see `reason`).",
          "enum": [
            "draft",
            "pending_approval",
            "approved",
            "executed",
            "failed",
            "denied"
          ]
        },
        "kind": {
          "type": "string",
          "enum": [
            "pipedream",
            "composio",
            "rest",
            "mcp",
            "native",
            "saved_tool",
            "vault",
            "elicitation"
          ]
        },
        "action_type": {
          "type": [
            "string",
            "null"
          ]
        },
        "title": {
          "type": [
            "string",
            "null"
          ]
        },
        "app_slug": {
          "type": [
            "string",
            "null"
          ]
        },
        "tool_name": {
          "type": [
            "string",
            "null"
          ]
        },
        "result": {
          "type": [
            "object",
            "null"
          ]
        },
        "error": {
          "type": [
            "string",
            "null"
          ]
        },
        "reason": {
          "type": [
            "string",
            "null"
          ]
        },
        "chat_id": {
          "type": [
            "string",
            "null"
          ]
        },
        "created_at": {
          "type": "string"
        },
        "resolved_at": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "object",
        "id",
        "approval_id",
        "status",
        "kind",
        "action_type",
        "title",
        "app_slug",
        "tool_name",
        "result",
        "error",
        "reason",
        "chat_id",
        "created_at",
        "resolved_at"
      ]
    }
  }
}