Expand description
JSON-over-stdio protocol types for external social media adapter plugins.
Social adapter plugins communicate with TA using a request/response protocol over stdin/stdout. TA spawns the plugin process, writes one JSON request line to stdin, reads one JSON response line from stdout.
§Protocol overview
Every exchange is a single JSON line in each direction:
TA → plugin: {"op":"<name>",...params...}
plugin → TA: {"ok":true,...result...} or {"ok":false,"error":"..."}§Operations
| Op | Description |
|---|---|
create_draft | Write a draft to the platform’s native draft state |
create_scheduled | Schedule a post at a future time (platform scheduler) |
draft_status | Poll whether a draft was published, deleted, or open |
health | Connectivity + credential check |
capabilities | Advertise which optional ops this plugin supports |
§Safety invariant — publish is absent by design
The publish operation is intentionally absent from this protocol.
TA never publishes social media posts on behalf of the user. Plugins
expose only create_draft and create_scheduled; the user publishes
from their native platform UI or scheduler (e.g., LinkedIn, Buffer).
This is a deliberate safety boundary enforced at the type level.
Structs§
- Create
Scheduled Params - Parameters for the
create_scheduledoperation. - Create
Social Draft Params - Parameters for the
create_draftoperation. - Social
Capabilities Params - Parameters for the
capabilitiesoperation. - Social
Draft Status Params - Parameters for the
draft_statusoperation. - Social
Health Params - Parameters for the
healthoperation. - Social
Plugin Response - Response sent from a social media plugin to TA over stdout.
- Social
Post Content - The content of a social media post to be drafted or scheduled.
Enums§
- Social
Plugin Error - Errors from social media plugin operations.
- Social
Plugin Request - Request sent from TA to a social media plugin over stdin.
- Social
Post State - Current state of a social post as reported by the platform.
Constants§
- SOCIAL_
PROTOCOL_ VERSION - Protocol version implemented by this TA build.