pub enum SocialPluginRequest {
CreateDraft(CreateSocialDraftParams),
CreateScheduled(CreateScheduledParams),
DraftStatus(SocialDraftStatusParams),
Health(SocialHealthParams),
Capabilities(SocialCapabilitiesParams),
}Expand description
Request sent from TA to a social media plugin over stdin.
One JSON line per request. The plugin processes it and writes one
SocialPluginResponse line to stdout, then the process exits.
The op field selects the operation. Additional fields carry
operation-specific parameters (flat layout, not nested).
Variants§
CreateDraft(CreateSocialDraftParams)
Create a draft in the platform’s native draft state.
NOTE: There is intentionally no Publish variant. TA never publishes.
CreateScheduled(CreateScheduledParams)
Schedule a post at a future time via the platform’s native scheduler.
NOTE: This schedules a post but does not publish it immediately. The platform (or its scheduler, e.g., Buffer) controls the actual send.
DraftStatus(SocialDraftStatusParams)
Poll the current state of a previously created draft or scheduled post.
Health(SocialHealthParams)
Connectivity and credential health check.
Capabilities(SocialCapabilitiesParams)
Advertise optional capabilities supported by this plugin.