{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/workwae-com/json-schema/workwae-com-outbox-entry-schema.json",
  "title": "OutboxEntry",
  "x-generated": "2026-10-31",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/workwae-com-v1-openapi.json#/components/schemas/OutboxEntry",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "accountId": {
      "type": "string",
      "format": "uuid"
    },
    "status": {
      "$ref": "#/$defs/OutboxStatus"
    },
    "reference": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "sendAt": {
      "type": "string",
      "format": "date-time",
      "x-native-type": "date"
    },
    "attempt": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "lastError": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "providerMessageId": {
      "anyOf": [
        {
          "type": "string",
          "minLength": 1,
          "maxLength": 1024
        },
        {
          "type": "null"
        }
      ]
    },
    "internetMessageId": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "sentAt": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time",
          "x-native-type": "date"
        },
        {
          "type": "null"
        }
      ]
    },
    "createdAt": {
      "type": "string",
      "format": "date-time",
      "x-native-type": "date"
    },
    "trackOpens": {
      "type": "boolean"
    },
    "trackClicks": {
      "type": "boolean"
    },
    "trackHoneypot": {
      "type": "boolean"
    },
    "humanOpenCount": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "machineOpenCount": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "humanClickCount": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "machineClickCount": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "firstOpenedAt": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time",
          "x-native-type": "date"
        },
        {
          "type": "null"
        }
      ]
    },
    "lastOpenedAt": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time",
          "x-native-type": "date"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "id",
    "accountId",
    "status",
    "reference",
    "sendAt",
    "attempt",
    "lastError",
    "providerMessageId",
    "internetMessageId",
    "sentAt",
    "createdAt",
    "trackOpens",
    "trackClicks",
    "trackHoneypot",
    "humanOpenCount",
    "machineOpenCount",
    "humanClickCount",
    "machineClickCount",
    "firstOpenedAt",
    "lastOpenedAt"
  ],
  "$defs": {
    "OutboxStatus": {
      "enum": [
        "queued",
        "sending",
        "sent",
        "failed",
        "cancelled"
      ],
      "type": "string"
    }
  }
}