Class: SlackNotifierAdapter
Defined in: slack/src/executors/slack-notifier-adapter.ts:17
One-way notify-only Slack incoming webhook HumanAdapter (slack:notifier).
Delivers outbound notifications via transport.postWebhook and rejects any attempt to invoke interactive requestDecision prompts on a 'notify-only' channel.
Implements
Constructors
Constructor
new SlackNotifierAdapter(
node,
ctx,
transport?
): SlackNotifierAdapter;Defined in: slack/src/executors/slack-notifier-adapter.ts:36
Initializes a SlackNotifierAdapter bound to node, ctx, and transport.
Resolves node.webhookUrl lazily on each notify() call via ctx.resolveEnv.
Parameters
| Parameter | Type | Default value | Description |
|---|---|---|---|
node | SlackNotifierNode | undefined | Passive Slack notifier AST node. |
ctx | RuntimeDriverContext | undefined | Runtime driver context. |
transport? | SlackTransport | defaultSlackTransport | Pluggable Slack transport. |
Returns
SlackNotifierAdapter
Methods
notify()
notify(message): Promise<void>;Defined in: slack/src/executors/slack-notifier-adapter.ts:57
Sends a one-way notification message to node.webhookUrl.
Resolves webhookUrl from ctx.resolveEnv before invoking transport.postWebhook.
Parameters
| Parameter | Type | Description |
|---|---|---|
message | string | Formatted notification text to deliver. |
Returns
Promise<void>
Resolves once the incoming webhook POST completes.
Throws
If webhookUrl resolution fails or the webhook HTTP request fails.
Implementation of
requestDecision()
requestDecision<TRequest, TResponse>(req): Promise<TResponse>;Defined in: slack/src/executors/slack-notifier-adapter.ts:80
Rejects interactive decision requests on a one-way 'notify-only' Slack webhook channel.
Enforces at runtime the same 'notify-only' invariant verified statically by @paraharness/core.
Type Parameters
| Type Parameter | Description |
|---|---|
TRequest | Request brief payload type. |
TResponse | Validated response payload type. |
Parameters
| Parameter | Type | Description |
|---|---|---|
req | HumanDecisionRequest<TRequest, TResponse> | Attempted decision request. |
Returns
Promise<TResponse>
Always rejects with an actionable domain error.
Throws
Always throws because 'notify-only' channels cannot service interactive decisions.