{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aurinko/json-schema/aurinko-conversation-drip-status-schema.json",
  "title": "ConversationDripStatus",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aurinko-followuprobot-api-openapi.yml#/components/schemas/ConversationDripStatus",
  "type": "object",
  "properties": {
    "convoId": {
      "type": "string"
    },
    "subject": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "enum": [
        "disabled",
        "active",
        "failed",
        "finished",
        "ruleIncomplete"
      ]
    },
    "rule": {
      "type": "object",
      "items": {
        "$ref": "#/$defs/FollowupRuleAggregateOut"
      }
    },
    "dripStartedAt": {
      "type": "string",
      "format": "date-time"
    },
    "dripLastNum": {
      "type": "integer"
    },
    "dripError": {
      "type": "string"
    },
    "dripEndedAt": {
      "type": "string",
      "format": "date-time"
    },
    "actionVars": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      }
    },
    "targets": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "dripResponder": {
      "type": "string"
    }
  },
  "$defs": {
    "FollowupRuleAction": {
      "type": "object",
      "properties": {
        "intervalDays": {
          "type": "integer"
        },
        "message": {
          "type": "string"
        }
      }
    },
    "FollowupRuleAggregateOut": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer"
        },
        "name": {
          "type": "string"
        },
        "expectThreadResponse": {
          "type": "boolean"
        },
        "templateBody": {
          "type": "string"
        },
        "templateSubject": {
          "type": "string"
        },
        "actions": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/FollowupRuleAction"
          }
        }
      }
    }
  }
}