{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/vruum-ai/json-schema/vruum-ai-content-writer-request-schema.json",
  "title": "ContentWriterRequest",
  "description": "Content writer request — adds the ``kind`` family selector.",
  "x-generated": "2026-11-28",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/vruum-ai-openapi.json#/components/schemas/ContentWriterRequest",
  "properties": {
    "action": {
      "type": "string",
      "enum": [
        "authorize_author",
        "boost",
        "context",
        "decide",
        "delete",
        "demand_decide",
        "demand_remeasure",
        "draft",
        "draft_post",
        "edit",
        "handoff",
        "pause",
        "prepare",
        "publish",
        "record_demand_manifest",
        "record_request",
        "reject",
        "reply_decide",
        "reply_prepare",
        "response_draft",
        "response_prepare",
        "revoke_author",
        "save",
        "schedule",
        "set_page",
        "store_creative"
      ],
      "title": "Action",
      "description": "Operation to perform. Fetch operation_contract for its exact inputs and effects.",
      "x-vruum-dispatch-validation": true
    },
    "id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Id",
      "description": "Target id or array (at most 100; some operations require a scalar or a lower cap). operation_contract names the entity and allowed batch shape for each action."
    },
    "payload": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Payload",
      "description": "Action-specific fields, validated by the underlying route. When the shape is unclear, fetch type=operation_contract with id='<tool>/action=<action>' for the exact nested schema; a tool-family id lists its operations. Reuse known contracts rather than fetching before every write."
    },
    "items": {
      "anyOf": [
        {
          "items": {
            "additionalProperties": true,
            "type": "object"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Items",
      "description": "For create-like actions only: an array of per-item payloads processed in order with per-item results (max 100). Mutually exclusive with `id` and `payload`."
    },
    "kind": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Kind",
      "description": "Content family: 'content' (default) for LinkedIn posts, 'objective_content' for sourced objective posts and response follow-up (prepare, draft, decide, handoff, response_prepare, response_draft, reply_prepare, reply_decide), 'authored_work' for source-bound artifact drafts and demand plans (record_request, context, save, record_demand_manifest, demand_remeasure, demand_decide; read them with inspect_objective authored_artifact and demand_plans), or 'ad' to manage ad campaigns (actions: reject, pause, boost (always a draft), store_creative, set_page, authorize_author, revoke_author).",
      "default": "content"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "action"
  ]
}