sdkDeterministic
Validate campaign brief
pipeline.validateCampaignBrief
Run the deterministic brief quality gate (the parity enforcer): proof points must trace to real GTM case studies/offers, decision-tree conditions must reference declared signals, the value proposition must link to a distinct ICP pain, and audience size must be sane. Pass briefId (a stored brief) OR plan (a raw brief plan you authored locally) - exactly one. mode launch (default) demotes generation-quality findings to warnings; strict treats them as errors. Returns { valid, errors, warnings }. Always run this before activating a brief you reasoned yourself.
Parameters
workspaceId
string
Optional with an API key (inferred from the key).
briefId
string
Validate a stored brief by id. Mutually exclusive with plan.
plan
object
Validate a raw brief plan object (e.g. one a local agent just authored). Mutually exclusive with briefId.
mode
string
launch (default) or strict.
strict | launch
Example
TypeScripttypescript
await pipeline.validateCampaignBrief({})
Response
The operation is available, but its typed response schema has not been published yet.
Exceptions
- PipelineError
- Thrown for validation, authentication, JSON-RPC, HTTP, and network failures. Inspect code and data when present.