/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import dotenv from "dotenv"; dotenv.config(); /** * Example usage of the @novu/api SDK * * To run this example from the examples directory: * npm run build && npx tsx trigger.example.ts */ import { Novu } from "@novu/api"; const novu = new Novu({ secretKey: "YOUR_SECRET_KEY_HERE", }); async function main() { const result = await novu.trigger({ workflowId: "workflow_identifier", payload: { "comment_id": "string", "post": { "text": "string", }, }, overrides: {}, to: "SUBSCRIBER_ID", actor: "", context: { "key": "org-acme", }, }); console.log(result); } main().catch(console.error);