sdkHosted AI, explicit consent

Review comment draft

pipeline.reviewCommentDraft

Review a comment draft: approve, reject, edit-then-approve, or send it live to LinkedIn without hosted AI. Only regenerate invokes Pipeline hosted AI and requires explicit consent.

Parameters

workspaceId
string
Optional workspace ID or slug. Required when this credential can access multiple workspaces and no workspace was configured on the client.
draftIdrequired
string
The comment draft UUID.
actionrequired
string
No description.
approve | reject | edit | send | regenerate
edited_comment
string
Required for action=edit. Also usable to override the sent text for action=send.
rejection_reason
string
Optional context for action=reject.
instructions
string
Regeneration guidance for action=regenerate.
allowHostedAi
boolean
Must be true when this operation uses Pipeline hosted inference.

Example

TypeScripttypescript
await pipeline.reviewCommentDraft({
"draftId": "00000000-0000-4000-8000-000000000000",
"action": "approve",
"allowHostedAi": true
})

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.
Pipeline TypeScript SDK documentation | Pipeline