Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

OutputMessage

import type { OutputMessage } from "https://gitlab.com/soapbox-pub/strfry-policies/-/raw/develop/mod.ts";

strfry output message to be printed as JSONL (minified JSON followed by a newline) to stdout.

https://github.com/hoytech/strfry/blob/master/docs/plugins.md#output-messages

interface OutputMessage {
action: "accept" | "reject" | "shadowReject";
id: string;
msg: string;
}

§Properties

§
action: "accept" | "reject" | "shadowReject"
[src]

Either accept, reject, or shadowReject.

§
id: string
[src]

The event ID taken from the event.id field of the input message.

§
msg: string
[src]

The NIP-20 response message to be sent to the client. Only used for reject.