// SPDX-License-Identifier: LicenseRef-ConusAI-Template-1.0 // Generated by @conusai-kit/data-convex (pnpm convex:gen). Do not edit by hand: regenerate. // Module: guides. One Convex function per procedure (spec ยง5.4): read โ†’ query, write โ†’ // mutation, effect โ†’ action. ctx.run is the custom-function ctx of convex/lib/functions.ts: it // resolves the tenant scope, checks the permission and runs the procedure's own handler with the // module's repositories bound to this function's ctx.db. import { v } from "convex/values"; import { tenantAction } from "../lib/functions"; export const guides_builder_open = tenantAction({ args: { input: v.optional(v.any()), idempotencyKey: v.optional(v.string()) }, handler: async (ctx, { input, idempotencyKey }) => ctx.run("guides.builder.open", input, idempotencyKey === undefined ? undefined : { idempotencyKey }), }); export const guides_runtime_bootstrap = tenantAction({ args: { input: v.optional(v.any()), idempotencyKey: v.optional(v.string()) }, handler: async (ctx, { input, idempotencyKey }) => ctx.run("guides.runtime.bootstrap", input, idempotencyKey === undefined ? undefined : { idempotencyKey }), }); export const guides_runtime_deleteFile = tenantAction({ args: { input: v.optional(v.any()), idempotencyKey: v.optional(v.string()) }, handler: async (ctx, { input, idempotencyKey }) => ctx.run("guides.runtime.deleteFile", input, idempotencyKey === undefined ? undefined : { idempotencyKey }), }); export const guides_runtime_record = tenantAction({ args: { input: v.optional(v.any()), idempotencyKey: v.optional(v.string()) }, handler: async (ctx, { input, idempotencyKey }) => ctx.run("guides.runtime.record", input, idempotencyKey === undefined ? undefined : { idempotencyKey }), });