- Register SITE_URL, NATIVE_APP_URL, CONVEX_SITE_URL, FLUE_DB_TOKEN in convex.config.ts so the generated server.js exposes a typed env object. - Rewrite auth.ts to consume @code/env/convex and tighten the getCurrentUser handler. - Refresh the backend README to describe the control-plane role and generated-file policy.
68 lines
1.7 KiB
TypeScript
68 lines
1.7 KiB
TypeScript
/* eslint-disable */
|
|
/**
|
|
* Generated `api` utility.
|
|
*
|
|
* THIS CODE IS AUTOMATICALLY GENERATED.
|
|
*
|
|
* To regenerate, run `npx convex dev`.
|
|
* @module
|
|
*/
|
|
|
|
import type * as auth from "../auth.js";
|
|
import type * as daemonCommands from "../daemonCommands.js";
|
|
import type * as daemonRuntime from "../daemonRuntime.js";
|
|
import type * as daemons from "../daemons.js";
|
|
import type * as fluePersistence from "../fluePersistence.js";
|
|
import type * as healthCheck from "../healthCheck.js";
|
|
import type * as http from "../http.js";
|
|
import type * as privateData from "../privateData.js";
|
|
import type * as todos from "../todos.js";
|
|
|
|
import type {
|
|
ApiFromModules,
|
|
FilterApi,
|
|
FunctionReference,
|
|
} from "convex/server";
|
|
|
|
declare const fullApi: ApiFromModules<{
|
|
auth: typeof auth;
|
|
daemonCommands: typeof daemonCommands;
|
|
daemonRuntime: typeof daemonRuntime;
|
|
daemons: typeof daemons;
|
|
fluePersistence: typeof fluePersistence;
|
|
healthCheck: typeof healthCheck;
|
|
http: typeof http;
|
|
privateData: typeof privateData;
|
|
todos: typeof todos;
|
|
}>;
|
|
|
|
/**
|
|
* A utility for referencing Convex functions in your app's public API.
|
|
*
|
|
* Usage:
|
|
* ```js
|
|
* const myFunctionReference = api.myModule.myFunction;
|
|
* ```
|
|
*/
|
|
export declare const api: FilterApi<
|
|
typeof fullApi,
|
|
FunctionReference<any, "public">
|
|
>;
|
|
|
|
/**
|
|
* A utility for referencing Convex functions in your app's internal API.
|
|
*
|
|
* Usage:
|
|
* ```js
|
|
* const myFunctionReference = internal.myModule.myFunction;
|
|
* ```
|
|
*/
|
|
export declare const internal: FilterApi<
|
|
typeof fullApi,
|
|
FunctionReference<any, "internal">
|
|
>;
|
|
|
|
export declare const components: {
|
|
betterAuth: import("@convex-dev/better-auth/_generated/component.js").ComponentApi<"betterAuth">;
|
|
};
|