/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import dotenv from "dotenv"; dotenv.config(); /** * Example usage of the @moderation-api/sdk SDK * * To run this example from the examples directory: * npm run build && npx tsx contentSubmit.example.ts */ import { ModerationApi } from "@moderation-api/sdk"; const moderationApi = new ModerationApi({ secretKey: process.env["MODAPI_SECRET_KEY"] ?? "", }); async function main() { const result = await moderationApi.content.submit({ content: { type: "text", text: "Hey, check out my profile for a deal!", }, contentId: "message-48213", authorId: "user-1092", conversationId: "room-general", metadata: { "platform": "ios", }, }); console.log(result); } main().catch(console.error);