Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
307 changes: 161 additions & 146 deletions apps/web/src/convex/_generated/api.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,72 +8,76 @@
* @module
*/

import type * as analytics from '../analytics.js';
import type * as analyticsEvents from '../analyticsEvents.js';
import type * as apiHelpers from '../apiHelpers.js';
import type * as authHelpers from '../authHelpers.js';
import type * as clerkApiKeys from '../clerkApiKeys.js';
import type * as clerkApiKeysQueries from '../clerkApiKeysQueries.js';
import type * as crons from '../crons.js';
import type * as githubAuth from '../githubAuth.js';
import type * as githubConnections from '../githubConnections.js';
import type * as http from '../http.js';
import type * as instances_actions from '../instances/actions.js';
import type * as instances_mutations from '../instances/mutations.js';
import type * as instances_queries from '../instances/queries.js';
import type * as mcp from '../mcp.js';
import type * as mcp_resourceContract from '../mcp/resourceContract.js';
import type * as mcpInternal from '../mcpInternal.js';
import type * as mcpQuestions from '../mcpQuestions.js';
import type * as messages from '../messages.js';
import type * as migrations from '../migrations.js';
import type * as privateWrappers from '../privateWrappers.js';
import type * as projects from '../projects.js';
import type * as resourceActions from '../resourceActions.js';
import type * as resources from '../resources.js';
import type * as scheduled_queries from '../scheduled/queries.js';
import type * as scheduled_updates from '../scheduled/updates.js';
import type * as scheduled_versionCheck from '../scheduled/versionCheck.js';
import type * as streamSessions from '../streamSessions.js';
import type * as threadTitle from '../threadTitle.js';
import type * as threads from '../threads.js';
import type * as usage from '../usage.js';
import type * as users from '../users.js';
import type * as analytics from "../analytics.js";
import type * as analyticsEvents from "../analyticsEvents.js";
import type * as apiHelpers from "../apiHelpers.js";
import type * as authHelpers from "../authHelpers.js";
import type * as clerkApiKeys from "../clerkApiKeys.js";
import type * as clerkApiKeysQueries from "../clerkApiKeysQueries.js";
import type * as crons from "../crons.js";
import type * as githubAuth from "../githubAuth.js";
import type * as githubConnections from "../githubConnections.js";
import type * as http from "../http.js";
import type * as instances_actions from "../instances/actions.js";
import type * as instances_mutations from "../instances/mutations.js";
import type * as instances_queries from "../instances/queries.js";
import type * as mcp from "../mcp.js";
import type * as mcp_resourceContract from "../mcp/resourceContract.js";
import type * as mcpInternal from "../mcpInternal.js";
import type * as mcpQuestions from "../mcpQuestions.js";
import type * as messages from "../messages.js";
import type * as migrations from "../migrations.js";
import type * as privateWrappers from "../privateWrappers.js";
import type * as projects from "../projects.js";
import type * as resourceActions from "../resourceActions.js";
import type * as resources from "../resources.js";
import type * as scheduled_queries from "../scheduled/queries.js";
import type * as scheduled_updates from "../scheduled/updates.js";
import type * as scheduled_versionCheck from "../scheduled/versionCheck.js";
import type * as streamSessions from "../streamSessions.js";
import type * as threadTitle from "../threadTitle.js";
import type * as threads from "../threads.js";
import type * as usage from "../usage.js";
import type * as users from "../users.js";

import type { ApiFromModules, FilterApi, FunctionReference } from 'convex/server';
import type {
ApiFromModules,
FilterApi,
FunctionReference,
} from "convex/server";

declare const fullApi: ApiFromModules<{
analytics: typeof analytics;
analyticsEvents: typeof analyticsEvents;
apiHelpers: typeof apiHelpers;
authHelpers: typeof authHelpers;
clerkApiKeys: typeof clerkApiKeys;
clerkApiKeysQueries: typeof clerkApiKeysQueries;
crons: typeof crons;
githubAuth: typeof githubAuth;
githubConnections: typeof githubConnections;
http: typeof http;
'instances/actions': typeof instances_actions;
'instances/mutations': typeof instances_mutations;
'instances/queries': typeof instances_queries;
mcp: typeof mcp;
'mcp/resourceContract': typeof mcp_resourceContract;
mcpInternal: typeof mcpInternal;
mcpQuestions: typeof mcpQuestions;
messages: typeof messages;
migrations: typeof migrations;
privateWrappers: typeof privateWrappers;
projects: typeof projects;
resourceActions: typeof resourceActions;
resources: typeof resources;
'scheduled/queries': typeof scheduled_queries;
'scheduled/updates': typeof scheduled_updates;
'scheduled/versionCheck': typeof scheduled_versionCheck;
streamSessions: typeof streamSessions;
threadTitle: typeof threadTitle;
threads: typeof threads;
usage: typeof usage;
users: typeof users;
analytics: typeof analytics;
analyticsEvents: typeof analyticsEvents;
apiHelpers: typeof apiHelpers;
authHelpers: typeof authHelpers;
clerkApiKeys: typeof clerkApiKeys;
clerkApiKeysQueries: typeof clerkApiKeysQueries;
crons: typeof crons;
githubAuth: typeof githubAuth;
githubConnections: typeof githubConnections;
http: typeof http;
"instances/actions": typeof instances_actions;
"instances/mutations": typeof instances_mutations;
"instances/queries": typeof instances_queries;
mcp: typeof mcp;
"mcp/resourceContract": typeof mcp_resourceContract;
mcpInternal: typeof mcpInternal;
mcpQuestions: typeof mcpQuestions;
messages: typeof messages;
migrations: typeof migrations;
privateWrappers: typeof privateWrappers;
projects: typeof projects;
resourceActions: typeof resourceActions;
resources: typeof resources;
"scheduled/queries": typeof scheduled_queries;
"scheduled/updates": typeof scheduled_updates;
"scheduled/versionCheck": typeof scheduled_versionCheck;
streamSessions: typeof streamSessions;
threadTitle: typeof threadTitle;
threads: typeof threads;
usage: typeof usage;
users: typeof users;
}>;

/**
Expand All @@ -84,7 +88,10 @@ declare const fullApi: ApiFromModules<{
* const myFunctionReference = api.myModule.myFunction;
* ```
*/
export declare const api: FilterApi<typeof fullApi, FunctionReference<any, 'public'>>;
export declare const api: FilterApi<
typeof fullApi,
FunctionReference<any, "public">
>;

/**
* A utility for referencing Convex functions in your app's internal API.
Expand All @@ -94,88 +101,96 @@ export declare const api: FilterApi<typeof fullApi, FunctionReference<any, 'publ
* const myFunctionReference = internal.myModule.myFunction;
* ```
*/
export declare const internal: FilterApi<typeof fullApi, FunctionReference<any, 'internal'>>;
export declare const internal: FilterApi<
typeof fullApi,
FunctionReference<any, "internal">
>;

export declare const components: {
migrations: {
lib: {
cancel: FunctionReference<
'mutation',
'internal',
{ name: string },
{
batchSize?: number;
cursor?: string | null;
error?: string;
isDone: boolean;
latestEnd?: number;
latestStart: number;
name: string;
next?: Array<string>;
processed: number;
state: 'inProgress' | 'success' | 'failed' | 'canceled' | 'unknown';
}
>;
cancelAll: FunctionReference<
'mutation',
'internal',
{ sinceTs?: number },
Array<{
batchSize?: number;
cursor?: string | null;
error?: string;
isDone: boolean;
latestEnd?: number;
latestStart: number;
name: string;
next?: Array<string>;
processed: number;
state: 'inProgress' | 'success' | 'failed' | 'canceled' | 'unknown';
}>
>;
clearAll: FunctionReference<'mutation', 'internal', { before?: number }, null>;
getStatus: FunctionReference<
'query',
'internal',
{ limit?: number; names?: Array<string> },
Array<{
batchSize?: number;
cursor?: string | null;
error?: string;
isDone: boolean;
latestEnd?: number;
latestStart: number;
name: string;
next?: Array<string>;
processed: number;
state: 'inProgress' | 'success' | 'failed' | 'canceled' | 'unknown';
}>
>;
migrate: FunctionReference<
'mutation',
'internal',
{
batchSize?: number;
cursor?: string | null;
dryRun: boolean;
fnHandle: string;
name: string;
next?: Array<{ fnHandle: string; name: string }>;
oneBatchOnly?: boolean;
},
{
batchSize?: number;
cursor?: string | null;
error?: string;
isDone: boolean;
latestEnd?: number;
latestStart: number;
name: string;
next?: Array<string>;
processed: number;
state: 'inProgress' | 'success' | 'failed' | 'canceled' | 'unknown';
}
>;
};
};
migrations: {
lib: {
cancel: FunctionReference<
"mutation",
"internal",
{ name: string },
{
batchSize?: number;
cursor?: string | null;
error?: string;
isDone: boolean;
latestEnd?: number;
latestStart: number;
name: string;
next?: Array<string>;
processed: number;
state: "inProgress" | "success" | "failed" | "canceled" | "unknown";
}
>;
cancelAll: FunctionReference<
"mutation",
"internal",
{ sinceTs?: number },
Array<{
batchSize?: number;
cursor?: string | null;
error?: string;
isDone: boolean;
latestEnd?: number;
latestStart: number;
name: string;
next?: Array<string>;
processed: number;
state: "inProgress" | "success" | "failed" | "canceled" | "unknown";
}>
>;
clearAll: FunctionReference<
"mutation",
"internal",
{ before?: number },
null
>;
getStatus: FunctionReference<
"query",
"internal",
{ limit?: number; names?: Array<string> },
Array<{
batchSize?: number;
cursor?: string | null;
error?: string;
isDone: boolean;
latestEnd?: number;
latestStart: number;
name: string;
next?: Array<string>;
processed: number;
state: "inProgress" | "success" | "failed" | "canceled" | "unknown";
}>
>;
migrate: FunctionReference<
"mutation",
"internal",
{
batchSize?: number;
cursor?: string | null;
dryRun: boolean;
fnHandle: string;
name: string;
next?: Array<{ fnHandle: string; name: string }>;
oneBatchOnly?: boolean;
},
{
batchSize?: number;
cursor?: string | null;
error?: string;
isDone: boolean;
latestEnd?: number;
latestStart: number;
name: string;
next?: Array<string>;
processed: number;
state: "inProgress" | "success" | "failed" | "canceled" | "unknown";
}
>;
};
};
};
2 changes: 1 addition & 1 deletion apps/web/src/convex/_generated/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* @module
*/

import { anyApi, componentsGeneric } from 'convex/server';
import { anyApi, componentsGeneric } from "convex/server";

/**
* A utility for referencing Convex functions in your app's API.
Expand Down
22 changes: 13 additions & 9 deletions apps/web/src/convex/_generated/dataModel.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
*/

import type {
DataModelFromSchemaDefinition,
DocumentByName,
TableNamesInDataModel,
SystemTableNames
} from 'convex/server';
import type { GenericId } from 'convex/values';
import schema from '../schema.js';
DataModelFromSchemaDefinition,
DocumentByName,
TableNamesInDataModel,
SystemTableNames,
} from "convex/server";
import type { GenericId } from "convex/values";
import schema from "../schema.js";

/**
* The names of all of your Convex tables.
Expand All @@ -27,7 +27,10 @@ export type TableNames = TableNamesInDataModel<DataModel>;
*
* @typeParam TableName - A string literal type of the table name (like "users").
*/
export type Doc<TableName extends TableNames> = DocumentByName<DataModel, TableName>;
export type Doc<TableName extends TableNames> = DocumentByName<
DataModel,
TableName
>;

/**
* An identifier for a document in Convex.
Expand All @@ -42,7 +45,8 @@ export type Doc<TableName extends TableNames> = DocumentByName<DataModel, TableN
*
* @typeParam TableName - A string literal type of the table name (like "users").
*/
export type Id<TableName extends TableNames | SystemTableNames> = GenericId<TableName>;
export type Id<TableName extends TableNames | SystemTableNames> =
GenericId<TableName>;

/**
* A type describing your Convex data model.
Expand Down
Loading
Loading