{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/getsocialclaw-com/json-schema/getsocialclaw-com-validate-response-schema.json",
  "title": "ValidateResponse",
  "description": "Schedule validation response.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/getsocialclaw-com-openapi.json#/components/schemas/ValidateResponse",
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "ok": {
      "const": true
    },
    "tenantId": {
      "type": "string",
      "description": "Workspace id."
    },
    "timezone": {
      "type": "string",
      "description": "Resolved timezone."
    },
    "mode": {
      "type": "string",
      "description": "Resolved mode."
    },
    "sourceModel": {
      "type": "string",
      "description": "posts_v1 or campaigns_v2."
    },
    "totalCampaigns": {
      "type": "integer",
      "description": "Campaign count."
    },
    "totalPosts": {
      "type": "integer",
      "description": "Post count."
    },
    "posts": {
      "type": "array",
      "description": "Prepared posts.",
      "items": {
        "$ref": "#/$defs/PostInput"
      }
    },
    "campaign": {
      "anyOf": [
        {
          "type": "object",
          "additionalProperties": true
        },
        {
          "type": "null"
        }
      ]
    },
    "schedule": {
      "anyOf": [
        {
          "type": "object",
          "additionalProperties": true
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "ok",
    "tenantId",
    "timezone",
    "mode",
    "totalPosts",
    "posts"
  ],
  "$defs": {
    "AssetInput": {
      "type": "object",
      "description": "Media asset referenced by a post.",
      "additionalProperties": true,
      "properties": {
        "id": {
          "type": [
            "string",
            "null"
          ],
          "description": "Client-side or SocialClaw asset id."
        },
        "url": {
          "type": "string",
          "description": "Publicly reachable media URL."
        },
        "managed": {
          "type": "boolean",
          "description": "True when this is a SocialClaw-managed asset."
        },
        "originalFilename": {
          "type": [
            "string",
            "null"
          ],
          "description": "Original file name."
        },
        "mime": {
          "type": [
            "string",
            "null"
          ],
          "description": "MIME type."
        },
        "kind": {
          "type": [
            "string",
            "null"
          ],
          "enum": [
            "image",
            "video",
            "audio",
            "other",
            null
          ]
        },
        "size": {
          "type": [
            "integer",
            "null"
          ],
          "description": "File size in bytes."
        },
        "duration": {
          "type": [
            "number",
            "null"
          ],
          "description": "Duration in seconds for video/audio."
        },
        "width": {
          "type": [
            "integer",
            "null"
          ],
          "description": "Media width in pixels."
        },
        "height": {
          "type": [
            "integer",
            "null"
          ],
          "description": "Media height in pixels."
        },
        "altText": {
          "type": [
            "string",
            "null"
          ],
          "description": "Alt text where the provider supports it."
        }
      },
      "required": [
        "url"
      ]
    },
    "PostInput": {
      "type": "object",
      "description": "Post to validate, schedule, or publish.",
      "additionalProperties": true,
      "properties": {
        "provider": {
          "type": [
            "string",
            "null"
          ],
          "enum": [
            "x",
            "threads",
            "meta",
            "facebook",
            "instagram_business",
            "instagram",
            "snapchat",
            "tiktok",
            "linkedin",
            "linkedin_page",
            "pinterest",
            "youtube",
            "reddit",
            "discord",
            "telegram",
            "wordpress",
            null
          ],
          "description": "Provider. Optional when account handle identifies the provider."
        },
        "account": {
          "type": "string",
          "description": "Connected account handle or id."
        },
        "name": {
          "type": [
            "string",
            "null"
          ],
          "description": "Post title, campaign step title, or provider title."
        },
        "title": {
          "type": [
            "string",
            "null"
          ],
          "description": "Alias for name on providers requiring titles."
        },
        "description": {
          "type": [
            "string",
            "null"
          ],
          "description": "Primary post text."
        },
        "text": {
          "type": [
            "string",
            "null"
          ],
          "description": "Alias for description."
        },
        "publish_at": {
          "type": [
            "string",
            "null"
          ],
          "description": "Scheduled publish time.",
          "format": "date-time"
        },
        "publishAt": {
          "type": [
            "string",
            "null"
          ],
          "description": "Camel-case alias for publish_at.",
          "format": "date-time"
        },
        "media_link": {
          "type": [
            "string",
            "null"
          ],
          "description": "Single public media URL."
        },
        "mediaLink": {
          "type": [
            "string",
            "null"
          ],
          "description": "Camel-case alias for media_link."
        },
        "assets": {
          "type": "array",
          "description": "One or more asset objects or URL strings.",
          "items": {
            "anyOf": [
              {
                "$ref": "#/$defs/AssetInput"
              },
              {
                "type": "string",
                "format": "uri"
              }
            ]
          }
        },
        "settings": {
          "type": "object",
          "description": "Provider-specific settings from the publish settings API. Standalone Instagram supports destination/format plus per-media alt text and people tags, collaborators, Reel cover/thumbnail/feed/audio/Trial controls, AI disclosure, and location IDs. post_and_story requires one asset and creates two independent jobs."
        },
        "interaction_type": {
          "type": [
            "string",
            "null"
          ],
          "enum": [
            "post",
            "reply",
            "comment",
            null
          ]
        },
        "parent_step_id": {
          "type": [
            "string",
            "null"
          ],
          "description": "Parent step id for reply/thread workflows."
        }
      },
      "required": [
        "account"
      ]
    }
  }
}