{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/clawpost-net/json-schema/clawpost-net-job-schema.json",
  "title": "Job",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/clawpost-net-api-openapi.json#/components/schemas/Job",
  "type": "object",
  "required": [
    "id",
    "tenantId",
    "text",
    "status",
    "createdAt",
    "updatedAt"
  ],
  "properties": {
    "id": {
      "type": "string"
    },
    "tenantId": {
      "type": "string"
    },
    "text": {
      "type": "string"
    },
    "platform": {
      "type": "string",
      "enum": [
        "x",
        "linkedin",
        "facebook",
        "instagram",
        "tiktok"
      ]
    },
    "mediaPaths": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "platformPayload": {
      "type": "object",
      "additionalProperties": true
    },
    "status": {
      "type": "string",
      "enum": [
        "queued",
        "processing",
        "succeeded",
        "failed",
        "cancelled"
      ]
    },
    "createdAt": {
      "type": "integer"
    },
    "updatedAt": {
      "type": "integer"
    },
    "error": {
      "type": "string"
    },
    "errorCode": {
      "type": "string"
    },
    "idempotencyKey": {
      "type": "string"
    }
  }
}