// SPDX-License-Identifier: LicenseRef-ConusAI-Template-1.0 // Audit delivery reads the root deployment credentials through an internal action. import { v } from "convex/values" import { internalAction } from "./_generated/server" export const get = internalAction({ args: {}, returns: v.object({ apiUrl: v.union(v.string(), v.null()), apiToken: v.union(v.string(), v.null()) }), handler: async () => ({ apiUrl: process.env.CONUSAI_API_URL ?? null, apiToken: process.env.CONUSAI_API_TOKEN ?? null, }), })