### Install non-Convex skill (web-design-guidelines) Source: https://github.com/convex/convex-js/blob/main/src/cli/lib/aiFiles/MANUAL_TESTING.md Installs a non-Convex skill before running ai-files install to verify it survives removal. ```bash npx skills add vercel-labs/agent-skills --skill web-design-guidelines --agent codex --yes ``` -------------------------------- ### Install Convex skill manually (convex-quickstart) Source: https://github.com/convex/convex-js/blob/main/src/cli/lib/aiFiles/MANUAL_TESTING.md Installs a Convex skill manually to verify it is not claimed by ai-files install. ```bash npx skills add convex/agent-skills --skill convex-quickstart --agent codex --yes ``` -------------------------------- ### List skills with npx skills ls --json Source: https://github.com/convex/convex-js/blob/main/src/cli/lib/aiFiles/MANUAL_TESTING.md List installed skills in JSON format to verify the removal results. ```bash npx skills ls --json ``` -------------------------------- ### Install non-Convex and Convex skills Source: https://github.com/convex/convex-js/blob/main/src/cli/lib/aiFiles/MANUAL_TESTING.md Install a non-Convex skill and a couple of Convex skills in a fresh temp project before running the remove command. ```bash npx skills add vercel-labs/agent-skills --skill web-design-guidelines --agent codex --yes ``` ```bash npx skills add convex/agent-skills --skill convex-quickstart --agent codex --yes ``` -------------------------------- ### Run npx convex ai-files remove Source: https://github.com/convex/convex-js/blob/main/src/cli/lib/aiFiles/MANUAL_TESTING.md Run the remove command to remove skills based on the canonical catalog. ```bash npx convex ai-files remove ``` -------------------------------- ### Set CONVEX_VERSION_API_ORIGIN environment variable Source: https://github.com/convex/convex-js/blob/main/src/cli/lib/aiFiles/MANUAL_TESTING.md Use this environment variable to point the CLI at a local stub or local version service when testing unreleased changes to version.convex.dev. This is useful during rollout windows when the local CLI expects a newer /v1/agent_skills response shape than the deployed service currently serves. ```bash CONVEX_VERSION_API_ORIGIN=http://127.0.0.1:3212 ``` -------------------------------- ### Run convex ai-files remove with local version API override Source: https://github.com/convex/convex-js/blob/main/src/cli/lib/aiFiles/MANUAL_TESTING.md Invokes the convex ai-files remove command with the CONVEX_VERSION_API_ORIGIN environment variable set to a local stub or local version service. Useful during rollout windows when the local CLI expects a newer /v1/agent_skills response shape than the deployed service currently serves. ```bash CONVEX_VERSION_API_ORIGIN=http://127.0.0.1:3212 npx convex ai-files remove ``` -------------------------------- ### DatabaseReader Source: https://github.com/convex/convex-js/blob/main/api-extractor-configs/reports/server.api.md Interface for reading data from the database. Provides methods to get, query, and normalize IDs. Deprecated. ```APIDOC ## DatabaseReader ### Description Interface for reading data from the database. Provides methods to get, query, and normalize IDs. Deprecated. ### Methods #### get ```typescript get>(id: Id): Promise | null>; ``` - **id** (Id) - Required - The ID of the document to retrieve. - **Returns**: Promise of the document or null. #### normalizeId ```typescript normalizeId>(tableName: TableName, id: string): Id | null; ``` - **tableName** (TableName) - Required - The table name. - **id** (string) - Required - The ID string to normalize. - **Returns**: Normalized ID or null. #### query ```typescript query>(tableName: TableName): QueryInitializer>; ``` - **tableName** (TableName) - Required - The table to query. - **Returns**: QueryInitializer for the table. ``` -------------------------------- ### Run client tests with npm test Source: https://github.com/convex/convex-js/blob/main/CONTRIBUTING.md Runs the client test suite. Note that integration, end-to-end, and proptests are not included in this repository. ```bash npm test ``` -------------------------------- ### StorageWriter.generateUploadUrl Source: https://github.com/convex/convex-js/blob/main/api-extractor-configs/reports/server.api.md Generates a URL for uploading a file to storage. ```APIDOC ## StorageWriter.generateUploadUrl ### Description Generates a URL for uploading a file to storage. ### Method Promise ### Returns - **Promise** - The upload URL. ``` -------------------------------- ### Scheduler.runAt Source: https://github.com/convex/convex-js/blob/main/api-extractor-configs/reports/server.api.md Schedules a function to run at a specific timestamp. The function reference must be a mutation or action with public or internal visibility. ```APIDOC ## Scheduler.runAt ### Description Schedules a function to run at a specific timestamp. The function reference must be a mutation or action with public or internal visibility. ### Method runAt ### Parameters - **timestamp** (number | Date) - Required - The time at which to run the function. - **functionReference** (SchedulableFunctionReference) - Required - The reference to the function to schedule. - **...args** (OptionalRestArgs) - Optional - Arguments to pass to the function. ### Returns - **Promise** - A promise that resolves when the scheduling is complete. ``` -------------------------------- ### Scheduler.runAfter Source: https://github.com/convex/convex-js/blob/main/api-extractor-configs/reports/server.api.md Schedules a function to run after a specified delay. The function reference must be a mutation or action with public or internal visibility. ```APIDOC ## Scheduler.runAfter ### Description Schedules a function to run after a specified delay. The function reference must be a mutation or action with public or internal visibility. ### Method runAfter ### Parameters - **delayMs** (number) - Required - The delay in milliseconds before the function runs. - **functionReference** (SchedulableFunctionReference) - Required - The reference to the function to schedule. - **...args** (OptionalRestArgs) - Optional - Arguments to pass to the function. ### Returns - **Promise** - A promise that resolves when the scheduling is complete. ``` -------------------------------- ### cronJobs Source: https://github.com/convex/convex-js/blob/main/api-extractor-configs/reports/server.api.md Creates a new Crons instance for defining scheduled jobs. This is the entry point for configuring cron jobs in Convex. ```APIDOC ## cronJobs ### Description Creates a new Crons instance for defining scheduled jobs. This is the entry point for configuring cron jobs in Convex. ### Method `cronJobs()` ### Parameters None ### Returns - **Crons** - A new Crons instance. ``` -------------------------------- ### GenericMutationCtx Source: https://github.com/convex/convex-js/blob/main/api-extractor-configs/reports/server.api.md Context object passed to mutation functions. Provides access to database, auth, scheduler, and storage. ```APIDOC ## GenericMutationCtx ### Description Context object passed to mutation functions. Provides access to database, auth, scheduler, and storage. ### Properties - **auth** (Auth) - Authentication object. - **db** (GenericDatabaseWriter) - Database writer for mutations. - **scheduler** (Scheduler) - Scheduler for scheduling functions. - **storage** (StorageWriter) - Storage writer for mutations. ``` -------------------------------- ### DefineSchemaOptions Source: https://github.com/convex/convex-js/blob/main/api-extractor-configs/reports/server.api.md Options for defineSchema, including schemaValidation and strictTableNameTypes. ```APIDOC ## DefineSchemaOptions ### Description Options for defineSchema, including schemaValidation and strictTableNameTypes. ### Interface Definition ```typescript export interface DefineSchemaOptions { schemaValidation?: boolean; strictTableNameTypes?: StrictTableNameTypes; } ``` ``` -------------------------------- ### GenericQueryCtx Source: https://github.com/convex/convex-js/blob/main/api-extractor-configs/reports/server.api.md Context object passed to query functions. Provides access to database, auth, and storage. ```APIDOC ## GenericQueryCtx ### Description Context object passed to query functions. Provides access to database, auth, and storage. ### Properties - **auth** (Auth) - Authentication object. - **db** (GenericDatabaseReader) - Database reader for queries. - **storage** (StorageReader) - Storage reader for queries. ``` -------------------------------- ### GenericActionCtx Source: https://github.com/convex/convex-js/blob/main/api-extractor-configs/reports/server.api.md Context object passed to action functions. Provides methods to run other functions and access auth, scheduler, and storage. ```APIDOC ## GenericActionCtx ### Description Context object passed to action functions. Provides methods to run other functions and access auth, scheduler, and storage. ### Properties - **auth** (Auth) - Authentication object. - **scheduler** (Scheduler) - Scheduler for scheduling functions. - **storage** (StorageActionWriter) - Storage writer for actions. ### Methods #### runAction>(action: Action, ...args: OptionalRestArgs): Promise> Runs an action function. #### runMutation>(mutation: Mutation, ...args: OptionalRestArgs): Promise> Runs a mutation function. #### runQuery>(query: Query, ...args: OptionalRestArgs): Promise> Runs a query function. ``` -------------------------------- ### StorageReader.getUrl Source: https://github.com/convex/convex-js/blob/main/api-extractor-configs/reports/server.api.md Generates a URL for accessing a stored file. Returns null if the file does not exist. ```APIDOC ## StorageReader.getUrl ### Description Generates a URL for accessing a stored file. Returns null if the file does not exist. ### Method Promise ### Parameters - **storageId** (StorageId) - Required - The storage ID of the file. ### Returns - **Promise** - The file URL, or null if not found. ``` -------------------------------- ### Crons.daily Source: https://github.com/convex/convex-js/blob/main/api-extractor-configs/reports/server.api.md Schedules a function to run daily at a specified time. ```APIDOC ## Crons.daily ### Description Schedules a function to run daily at a specified time. ### Method `daily(cronIdentifier: string, schedule: Daily, functionReference: FuncRef, ...args: OptionalRestArgs): void` ### Parameters - **cronIdentifier** (string) - Required - A unique identifier for the cron job. - **schedule** (Daily) - Required - The daily schedule configuration. - **functionReference** (SchedulableFunctionReference) - Required - The function to schedule. - **...args** (OptionalRestArgs) - Optional - Arguments to pass to the function. ### Returns - **void** - No return value. ``` -------------------------------- ### FilterBuilder Source: https://github.com/convex/convex-js/blob/main/api-extractor-configs/reports/server.api.md Provides methods to build filter expressions for queries. Each method returns an Expression that can be used in query filters. ```APIDOC ## FilterBuilder ### Description Provides methods to build filter expressions for queries. Each method returns an Expression that can be used in query filters. ### Methods #### add(l: ExpressionOrValue, r: ExpressionOrValue): Expression Adds two numeric expressions. #### and(...exprs: Array>): Expression Combines multiple boolean expressions with logical AND. #### div(l: ExpressionOrValue, r: ExpressionOrValue): Expression Divides two numeric expressions. #### eq(l: ExpressionOrValue, r: ExpressionOrValue): Expression Checks equality between two expressions. #### field>(fieldPath: FieldPath): Expression, FieldPath>> References a field in the document. #### gt(l: ExpressionOrValue, r: ExpressionOrValue): Expression Checks if left is greater than right. #### gte(l: ExpressionOrValue, r: ExpressionOrValue): Expression Checks if left is greater than or equal to right. #### lt(l: ExpressionOrValue, r: ExpressionOrValue): Expression Checks if left is less than right. #### lte(l: ExpressionOrValue, r: ExpressionOrValue): Expression Checks if left is less than or equal to right. #### mod(l: ExpressionOrValue, r: ExpressionOrValue): Expression Computes the remainder of division. #### mul(l: ExpressionOrValue, r: ExpressionOrValue): Expression Multiplies two numeric expressions. #### neg(x: ExpressionOrValue): Expression Negates a numeric expression. #### neq(l: ExpressionOrValue, r: ExpressionOrValue): Expression Checks inequality between two expressions. #### not(x: ExpressionOrValue): Expression Negates a boolean expression. #### or(...exprs: Array>): Expression Combines multiple boolean expressions with logical OR. #### sub(l: ExpressionOrValue, r: ExpressionOrValue): Expression Subtracts two numeric expressions. ``` -------------------------------- ### TableDefinition.index Source: https://github.com/convex/convex-js/blob/main/api-extractor-configs/reports/server.api.md Defines a database index on a table. Returns a new TableDefinition with the index added. ```APIDOC ## TableDefinition.index ### Description Defines a database index on a table. Returns a new TableDefinition with the index added. ### Method TableDefinition>, SearchIndexes, VectorIndexes> ### Parameters - **name** (IndexName) - Required - The name of the index. - **fields** ([FirstFieldPath, ...RestFieldPaths]) - Required - The field paths to index. ### Returns - **TableDefinition** - A new table definition with the index. ``` -------------------------------- ### defineSchema Source: https://github.com/convex/convex-js/blob/main/api-extractor-configs/reports/server.api.md Defines a schema for the Convex database. It takes a schema object and optional options, returning a SchemaDefinition. ```APIDOC ## defineSchema ### Description Defines a schema for the Convex database. It takes a schema object and optional options, returning a SchemaDefinition. ### Signature ```typescript export function defineSchema(schema: Schema, options?: DefineSchemaOptions): SchemaDefinition; ``` ### Parameters - **schema** (GenericSchema) - Required - The schema definition object. - **options** (DefineSchemaOptions) - Optional - Configuration options. ### Options - **schemaValidation** (boolean) - Optional - Enable or disable schema validation. - **strictTableNameTypes** (StrictTableNameTypes) - Optional - Enforce strict table name types. ### Returns - **SchemaDefinition** - The defined schema. ``` -------------------------------- ### actionGeneric Source: https://github.com/convex/convex-js/blob/main/api-extractor-configs/reports/server.api.md A generic action builder for defining public actions in Convex. It supports both validated and unvalidated function signatures. ```APIDOC ## actionGeneric ### Description A generic action builder for defining public actions in Convex. It supports both validated and unvalidated function signatures. ### Type `ActionBuilder` ### Usage Use `actionGeneric` to register an action function. It accepts either a validated function with a validator or an unvalidated function with an args array. ### Parameters - **func** (ValidatedFunction | UnvalidatedFunction) - Required - The action function to register. ### Returns - **RegisteredAction** - The registered action reference. ``` -------------------------------- ### Crons.interval Source: https://github.com/convex/convex-js/blob/main/api-extractor-configs/reports/server.api.md Schedules a function to run at a fixed interval. ```APIDOC ## Crons.interval ### Description Schedules a function to run at a fixed interval. ### Method `interval(cronIdentifier: string, schedule: Interval, functionReference: FuncRef, ...args: OptionalRestArgs): void` ### Parameters - **cronIdentifier** (string) - Required - A unique identifier for the cron job. - **schedule** (Interval) - Required - The interval schedule configuration. - **functionReference** (SchedulableFunctionReference) - Required - The function to schedule. - **...args** (OptionalRestArgs) - Optional - Arguments to pass to the function. ### Returns - **void** - No return value. ``` -------------------------------- ### Generate management API spec Source: https://github.com/convex/convex-js/blob/main/CONTRIBUTING.md Updates management-api.json and regenerates src/cli/generatedApi.ts. This is a manual process. ```bash npm run generateManagementApiSpec ``` -------------------------------- ### DatabaseWriter Source: https://github.com/convex/convex-js/blob/main/api-extractor-configs/reports/server.api.md Interface for writing data to the database. Extends GenericDatabaseReader and provides insert, patch, replace, and delete methods. Deprecated. ```APIDOC ## DatabaseWriter ### Description Interface for writing data to the database. Extends GenericDatabaseReader and provides insert, patch, replace, and delete methods. Deprecated. ### Methods #### delete ```typescript delete(id: Id>): Promise; ``` - **id** (Id>) - Required - The ID of the document to delete. - **Returns**: Promise. #### insert ```typescript insert>(table: TableName, value: WithoutSystemFields>): Promise>; ``` - **table** (TableName) - Required - The table to insert into. - **value** (WithoutSystemFields>) - Required - The document to insert. - **Returns**: Promise of the new document ID. #### patch ```typescript patch>(id: Id, value: Partial>): Promise; ``` - **id** (Id) - Required - The ID of the document to patch. - **value** (Partial>) - Required - The partial document with fields to update. - **Returns**: Promise. #### replace ```typescript replace>(id: Id, value: WithOptionalSystemFields>): Promise; ``` - **id** (Id) - Required - The ID of the document to replace. - **value** (WithOptionalSystemFields>) - Required - The full replacement document. - **Returns**: Promise. ``` -------------------------------- ### Crons.monthly Source: https://github.com/convex/convex-js/blob/main/api-extractor-configs/reports/server.api.md Schedules a function to run monthly on a specified day and time. ```APIDOC ## Crons.monthly ### Description Schedules a function to run monthly on a specified day and time. ### Method `monthly(cronIdentifier: string, schedule: Monthly, functionReference: FuncRef, ...args: OptionalRestArgs): void` ### Parameters - **cronIdentifier** (string) - Required - A unique identifier for the cron job. - **schedule** (Monthly) - Required - The monthly schedule configuration. - **functionReference** (SchedulableFunctionReference) - Required - The function to schedule. - **...args** (OptionalRestArgs) - Optional - Arguments to pass to the function. ### Returns - **void** - No return value. ``` -------------------------------- ### Crons.hourly Source: https://github.com/convex/convex-js/blob/main/api-extractor-configs/reports/server.api.md Schedules a function to run hourly at a specified minute. ```APIDOC ## Crons.hourly ### Description Schedules a function to run hourly at a specified minute. ### Method `hourly(cronIdentifier: string, schedule: Hourly, functionReference: FuncRef, ...args: OptionalRestArgs): void` ### Parameters - **cronIdentifier** (string) - Required - A unique identifier for the cron job. - **schedule** (Hourly) - Required - The hourly schedule configuration. - **functionReference** (SchedulableFunctionReference) - Required - The function to schedule. - **...args** (OptionalRestArgs) - Optional - Arguments to pass to the function. ### Returns - **void** - No return value. ``` -------------------------------- ### StorageReader.getMetadata Source: https://github.com/convex/convex-js/blob/main/api-extractor-configs/reports/server.api.md Retrieves metadata for a stored file using its storage ID. Returns null if the file does not exist. ```APIDOC ## StorageReader.getMetadata ### Description Retrieves metadata for a stored file using its storage ID. Returns null if the file does not exist. ### Method Promise ### Parameters - **storageId** (StorageId) - Required - The storage ID of the file. ### Returns - **Promise** - The file metadata, or null if not found. ``` -------------------------------- ### defineTable Source: https://github.com/convex/convex-js/blob/main/api-extractor-configs/reports/server.api.md Defines a table schema using either a validator object or a record of validators. Returns a TableDefinition. ```APIDOC ## defineTable ### Description Defines a table schema using either a validator object or a record of validators. Returns a TableDefinition. ### Overload 1 ```typescript export function defineTable, false, any>>(documentSchema: DocumentSchema): TableDefinition, ExtractFieldPaths>; ``` ### Overload 2 ```typescript export function defineTable>>(documentSchema: DocumentSchema): TableDefinition>, ExtractFieldPaths>>; ``` ### Parameters - **documentSchema** (Validator or Record) - Required - The schema for the table's documents. ### Returns - **TableDefinition** - The table definition. ``` -------------------------------- ### Crons.weekly Source: https://github.com/convex/convex-js/blob/main/api-extractor-configs/reports/server.api.md Schedules a function to run weekly on a specified day and time. ```APIDOC ## Crons.weekly ### Description Schedules a function to run weekly on a specified day and time. ### Method `weekly(cronIdentifier: string, schedule: Weekly, functionReference: FuncRef, ...args: OptionalRestArgs): void` ### Parameters - **cronIdentifier** (string) - Required - A unique identifier for the cron job. - **schedule** (Weekly) - Required - The weekly schedule configuration. - **functionReference** (SchedulableFunctionReference) - Required - The function to schedule. - **...args** (OptionalRestArgs) - Optional - Arguments to pass to the function. ### Returns - **void** - No return value. ``` -------------------------------- ### StorageActionWriter.store Source: https://github.com/convex/convex-js/blob/main/api-extractor-configs/reports/server.api.md Stores a blob in storage and returns its storage ID. Optionally accepts a SHA-256 hash for integrity verification. ```APIDOC ## StorageActionWriter.store ### Description Stores a blob in storage and returns its storage ID. Optionally accepts a SHA-256 hash for integrity verification. ### Method store ### Parameters - **blob** (Blob) - Required - The blob to store. - **options** (object) - Optional - An object containing optional parameters. - **sha256** (string) - Optional - The SHA-256 hash of the blob. ### Returns - **Promise** - The storage ID of the stored blob. ``` -------------------------------- ### TableDefinition.searchIndex Source: https://github.com/convex/convex-js/blob/main/api-extractor-configs/reports/server.api.md Defines a search index on a table. Returns a new TableDefinition with the search index added. ```APIDOC ## TableDefinition.searchIndex ### Description Defines a search index on a table. Returns a new TableDefinition with the search index added. ### Method TableDefinition>, VectorIndexes> ### Parameters - **name** (IndexName) - Required - The name of the search index. - **indexConfig** (Expand>) - Required - Configuration for the search index. ### Returns - **TableDefinition** - A new table definition with the search index. ``` -------------------------------- ### StorageActionWriter.get Source: https://github.com/convex/convex-js/blob/main/api-extractor-configs/reports/server.api.md Retrieves a stored blob by its storage ID. Returns null if the blob does not exist. ```APIDOC ## StorageActionWriter.get ### Description Retrieves a stored blob by its storage ID. Returns null if the blob does not exist. ### Method get ### Parameters - **storageId** (StorageId) - Required - The storage ID of the blob to retrieve. ### Returns - **Promise** - The blob if found, otherwise null. ``` -------------------------------- ### StorageWriter.delete Source: https://github.com/convex/convex-js/blob/main/api-extractor-configs/reports/server.api.md Deletes a stored file using its storage ID. ```APIDOC ## StorageWriter.delete ### Description Deletes a stored file using its storage ID. ### Method Promise ### Parameters - **storageId** (StorageId) - Required - The storage ID of the file to delete. ### Returns - **Promise** - Resolves when the deletion is complete. ``` -------------------------------- ### FileMetadata Source: https://github.com/convex/convex-js/blob/main/api-extractor-configs/reports/server.api.md Type representing metadata for a file stored in Convex, including storage ID, SHA256 hash, size, and content type. ```APIDOC ## FileMetadata ### Description Type representing metadata for a file stored in Convex, including storage ID, SHA256 hash, size, and content type. ### Type Definition ```typescript export type FileMetadata = { storageId: StorageId; sha256: string; size: number; contentType: string | null; }; ``` ``` -------------------------------- ### Auth.getUserIdentity Source: https://github.com/convex/convex-js/blob/main/api-extractor-configs/reports/server.api.md Retrieves the user identity associated with the current request. Returns null if no user is authenticated. ```APIDOC ## Auth.getUserIdentity ### Description Retrieves the user identity associated with the current request. Returns null if no user is authenticated. ### Method `getUserIdentity()` ### Parameters None ### Returns - **Promise** - The user identity or null. ``` -------------------------------- ### Crons.cron Source: https://github.com/convex/convex-js/blob/main/api-extractor-configs/reports/server.api.md Schedules a function to run on a cron schedule. The schedule is specified as a cron string. ```APIDOC ## Crons.cron ### Description Schedules a function to run on a cron schedule. The schedule is specified as a cron string. ### Method `cron(cronIdentifier: string, cron: CronString, functionReference: FuncRef, ...args: OptionalRestArgs): void` ### Parameters - **cronIdentifier** (string) - Required - A unique identifier for the cron job. - **cron** (CronString) - Required - The cron schedule string. - **functionReference** (SchedulableFunctionReference) - Required - The function to schedule. - **...args** (OptionalRestArgs) - Optional - Arguments to pass to the function. ### Returns - **void** - No return value. ``` -------------------------------- ### DefaultFunctionArgs Source: https://github.com/convex/convex-js/blob/main/api-extractor-configs/reports/server.api.md Type alias for default function arguments, representing a record of unknown values. ```APIDOC ## DefaultFunctionArgs ### Description Type alias for default function arguments, representing a record of unknown values. ### Type Definition ```typescript export type DefaultFunctionArgs = Record; ``` ``` -------------------------------- ### queryGeneric Source: https://github.com/convex/convex-js/blob/main/api-extractor-configs/reports/server.api.md A public query builder that allows defining queries with validated or unvalidated arguments. It returns a registered query that can be used in the Convex backend. ```APIDOC ## queryGeneric ### Description A public query builder that allows defining queries with validated or unvalidated arguments. It returns a registered query that can be used in the Convex backend. ### Type `QueryBuilder` ### Usage ```ts queryGeneric(func: ValidatedFunction, ArgsValidator, Output>): RegisteredQuery<"public", ObjectType, Output> queryGeneric(func: UnvalidatedFunction, Args, Output>): RegisteredQuery<"public", ArgsArrayToObject, Output> ``` ### Parameters - **func** (ValidatedFunction | UnvalidatedFunction) - Required - The function that defines the query logic. ### Returns - **RegisteredQuery** - A registered query object with metadata flags. ``` -------------------------------- ### filterApi(api: API): FilterApi Source: https://github.com/convex/convex-js/blob/main/api-extractor-configs/reports/server.api.md Filters an API object to include only modules that match a given predicate type. This is useful for creating scoped API references. ```APIDOC ## filterApi(api: API): FilterApi ### Description Filters an API object to include only modules that match a given predicate type. This is useful for creating scoped API references. ### Method filterApi ### Parameters - **api** (API) - Required - The API object to filter. ### Returns FilterApi - The filtered API object. ``` -------------------------------- ### DocumentByInfo Source: https://github.com/convex/convex-js/blob/main/api-extractor-configs/reports/server.api.md Type that extracts the document type from a table info. ```APIDOC ## DocumentByInfo ### Description Type that extracts the document type from a table info. ### Type Definition ```typescript export type DocumentByInfo = TableInfo["document"]; ``` ``` -------------------------------- ### FieldPaths Source: https://github.com/convex/convex-js/blob/main/api-extractor-configs/reports/server.api.md Type that extracts field paths from a table info. ```APIDOC ## FieldPaths ### Description Type that extracts field paths from a table info. ### Type Definition ```typescript export type FieldPaths = TableInfo["fieldPaths"]; ``` ``` -------------------------------- ### DocumentByName Source: https://github.com/convex/convex-js/blob/main/api-extractor-configs/reports/server.api.md Type that extracts the document type from a data model and table name. ```APIDOC ## DocumentByName ### Description Type that extracts the document type from a data model and table name. ### Type Definition ```typescript export type DocumentByName> = DataModel[TableName]["document"]; ``` ``` -------------------------------- ### Expression Source: https://github.com/convex/convex-js/blob/main/api-extractor-configs/reports/server.api.md Abstract class representing an expression that evaluates to a value or undefined. ```APIDOC ## Expression ### Description Abstract class representing an expression that evaluates to a value or undefined. ### Class Definition ```typescript export abstract class Expression { } ``` ``` -------------------------------- ### DataModelFromSchemaDefinition Source: https://github.com/convex/convex-js/blob/main/api-extractor-configs/reports/server.api.md Type that derives a data model from a schema definition. It maps table names to their document, field paths, indexes, and search indexes. ```APIDOC ## DataModelFromSchemaDefinition ### Description Type that derives a data model from a schema definition. It maps table names to their document, field paths, indexes, and search indexes. ### Type Definition ```typescript export type DataModelFromSchemaDefinition> = MaybeMakeLooseDataModel<{ [TableName in keyof SchemaDef["tables"] & string]: SchemaDef["tables"][TableName] extends TableDefinition ? { document: Expand & Document>; fieldPaths: keyof IdField | FieldPaths; indexes: Expand; searchIndexes: SearchIndexes; vectorIndexes: VectorIndexes; } : never; }, SchemaDef["strictTableNameTypes"]>; ``` ``` -------------------------------- ### ExpressionOrValue Source: https://github.com/convex/convex-js/blob/main/api-extractor-configs/reports/server.api.md Type alias for either an Expression or a direct value. ```APIDOC ## ExpressionOrValue ### Description Type alias for either an Expression or a direct value. ### Type Definition ```typescript export type ExpressionOrValue = Expression | T; ``` ``` -------------------------------- ### FieldTypeFromFieldPath Source: https://github.com/convex/convex-js/blob/main/api-extractor-configs/reports/server.api.md Type that resolves the type of a field given a document and a field path string. ```APIDOC ## FieldTypeFromFieldPath ### Description Type that resolves the type of a field given a document and a field path string. ### Type Definition ```typescript export type FieldTypeFromFieldPath = FieldPath extends `${infer First}.${infer Second}` ? First extends keyof Document ? Document[First] extends GenericDocument ? FieldTypeFromFieldPath : undefined : undefined : FieldPath extends keyof Document ? Document[FieldPath] : undefined; ``` ```