Skip to content
Open
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
2 changes: 1 addition & 1 deletion apps/docs/api-reference/cloud/mcp.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ title: 'MCP JSON-RPC'
openapi: 'POST /api/mcp'
---

Invokes MCP tools such as `listResources`, `ask`, `addResource`, and `sync`.
Invokes MCP tools such as `listResources`, `ask`, and `addResource`.
1 change: 0 additions & 1 deletion apps/docs/btca.spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -704,7 +704,6 @@ Supported tools:
- `listResources`
- `ask`
- `addResource`
- `sync`

Example payload:

Expand Down
299 changes: 157 additions & 142 deletions apps/web/src/convex/_generated/api.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,68 +8,72 @@
* @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 cli from '../cli.js';
import type * as cliInternal from '../cliInternal.js';
import type * as crons from '../crons.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 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 projects from '../projects.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 seed from '../seed.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 cli from "../cli.js";
import type * as cliInternal from "../cliInternal.js";
import type * as crons from "../crons.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 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 projects from "../projects.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 seed from "../seed.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;
cli: typeof cli;
cliInternal: typeof cliInternal;
crons: typeof crons;
http: typeof http;
'instances/actions': typeof instances_actions;
'instances/mutations': typeof instances_mutations;
'instances/queries': typeof instances_queries;
mcp: typeof mcp;
mcpInternal: typeof mcpInternal;
mcpQuestions: typeof mcpQuestions;
messages: typeof messages;
migrations: typeof migrations;
projects: typeof projects;
resources: typeof resources;
'scheduled/queries': typeof scheduled_queries;
'scheduled/updates': typeof scheduled_updates;
'scheduled/versionCheck': typeof scheduled_versionCheck;
seed: typeof seed;
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;
cli: typeof cli;
cliInternal: typeof cliInternal;
crons: typeof crons;
http: typeof http;
"instances/actions": typeof instances_actions;
"instances/mutations": typeof instances_mutations;
"instances/queries": typeof instances_queries;
mcp: typeof mcp;
mcpInternal: typeof mcpInternal;
mcpQuestions: typeof mcpQuestions;
messages: typeof messages;
migrations: typeof migrations;
projects: typeof projects;
resources: typeof resources;
"scheduled/queries": typeof scheduled_queries;
"scheduled/updates": typeof scheduled_updates;
"scheduled/versionCheck": typeof scheduled_versionCheck;
seed: typeof seed;
streamSessions: typeof streamSessions;
threadTitle: typeof threadTitle;
threads: typeof threads;
usage: typeof usage;
users: typeof users;
}>;

/**
Expand All @@ -80,7 +84,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 @@ -90,88 +97,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