convex
Version:
Client for the Convex Cloud
1,480 lines • 98.3 kB
TypeScript
import { z } from "zod";
export declare const startPushRequest: z.ZodObject<{
adminKey: z.ZodString;
dryRun: z.ZodBoolean;
functions: z.ZodString;
appDefinition: z.ZodObject<{
definition: z.ZodNullable<z.ZodObject<{
path: z.ZodString;
source: z.ZodString;
sourceMap: z.ZodOptional<z.ZodString>;
environment: z.ZodUnion<[z.ZodLiteral<"isolate">, z.ZodLiteral<"node">]>;
}, "passthrough", z.ZodTypeAny, {
path: string;
source: string;
environment: "node" | "isolate";
sourceMap?: string | undefined;
}, {
path: string;
source: string;
environment: "node" | "isolate";
sourceMap?: string | undefined;
}>>;
dependencies: z.ZodArray<z.ZodString, "many">;
schema: z.ZodNullable<z.ZodObject<{
path: z.ZodString;
source: z.ZodString;
sourceMap: z.ZodOptional<z.ZodString>;
environment: z.ZodUnion<[z.ZodLiteral<"isolate">, z.ZodLiteral<"node">]>;
}, "passthrough", z.ZodTypeAny, {
path: string;
source: string;
environment: "node" | "isolate";
sourceMap?: string | undefined;
}, {
path: string;
source: string;
environment: "node" | "isolate";
sourceMap?: string | undefined;
}>>;
functions: z.ZodArray<z.ZodObject<{
path: z.ZodString;
source: z.ZodString;
sourceMap: z.ZodOptional<z.ZodString>;
environment: z.ZodUnion<[z.ZodLiteral<"isolate">, z.ZodLiteral<"node">]>;
}, "passthrough", z.ZodTypeAny, {
path: string;
source: string;
environment: "node" | "isolate";
sourceMap?: string | undefined;
}, {
path: string;
source: string;
environment: "node" | "isolate";
sourceMap?: string | undefined;
}>, "many">;
udfServerVersion: z.ZodString;
}, "passthrough", z.ZodTypeAny, {
definition: {
path: string;
source: string;
environment: "node" | "isolate";
sourceMap?: string | undefined;
} | null;
dependencies: string[];
schema: {
path: string;
source: string;
environment: "node" | "isolate";
sourceMap?: string | undefined;
} | null;
functions: {
path: string;
source: string;
environment: "node" | "isolate";
sourceMap?: string | undefined;
}[];
udfServerVersion: string;
}, {
definition: {
path: string;
source: string;
environment: "node" | "isolate";
sourceMap?: string | undefined;
} | null;
dependencies: string[];
schema: {
path: string;
source: string;
environment: "node" | "isolate";
sourceMap?: string | undefined;
} | null;
functions: {
path: string;
source: string;
environment: "node" | "isolate";
sourceMap?: string | undefined;
}[];
udfServerVersion: string;
}>;
componentDefinitions: z.ZodArray<z.ZodObject<{
definitionPath: z.ZodString;
definition: z.ZodObject<{
path: z.ZodString;
source: z.ZodString;
sourceMap: z.ZodOptional<z.ZodString>;
environment: z.ZodUnion<[z.ZodLiteral<"isolate">, z.ZodLiteral<"node">]>;
}, "passthrough", z.ZodTypeAny, {
path: string;
source: string;
environment: "node" | "isolate";
sourceMap?: string | undefined;
}, {
path: string;
source: string;
environment: "node" | "isolate";
sourceMap?: string | undefined;
}>;
dependencies: z.ZodArray<z.ZodString, "many">;
schema: z.ZodNullable<z.ZodObject<{
path: z.ZodString;
source: z.ZodString;
sourceMap: z.ZodOptional<z.ZodString>;
environment: z.ZodUnion<[z.ZodLiteral<"isolate">, z.ZodLiteral<"node">]>;
}, "passthrough", z.ZodTypeAny, {
path: string;
source: string;
environment: "node" | "isolate";
sourceMap?: string | undefined;
}, {
path: string;
source: string;
environment: "node" | "isolate";
sourceMap?: string | undefined;
}>>;
functions: z.ZodArray<z.ZodObject<{
path: z.ZodString;
source: z.ZodString;
sourceMap: z.ZodOptional<z.ZodString>;
environment: z.ZodUnion<[z.ZodLiteral<"isolate">, z.ZodLiteral<"node">]>;
}, "passthrough", z.ZodTypeAny, {
path: string;
source: string;
environment: "node" | "isolate";
sourceMap?: string | undefined;
}, {
path: string;
source: string;
environment: "node" | "isolate";
sourceMap?: string | undefined;
}>, "many">;
udfServerVersion: z.ZodString;
}, "passthrough", z.ZodTypeAny, {
definition: {
path: string;
source: string;
environment: "node" | "isolate";
sourceMap?: string | undefined;
};
dependencies: string[];
schema: {
path: string;
source: string;
environment: "node" | "isolate";
sourceMap?: string | undefined;
} | null;
functions: {
path: string;
source: string;
environment: "node" | "isolate";
sourceMap?: string | undefined;
}[];
definitionPath: string;
udfServerVersion: string;
}, {
definition: {
path: string;
source: string;
environment: "node" | "isolate";
sourceMap?: string | undefined;
};
dependencies: string[];
schema: {
path: string;
source: string;
environment: "node" | "isolate";
sourceMap?: string | undefined;
} | null;
functions: {
path: string;
source: string;
environment: "node" | "isolate";
sourceMap?: string | undefined;
}[];
definitionPath: string;
udfServerVersion: string;
}>, "many">;
nodeDependencies: z.ZodArray<z.ZodObject<{
name: z.ZodString;
version: z.ZodString;
}, "passthrough", z.ZodTypeAny, {
name: string;
version: string;
}, {
name: string;
version: string;
}>, "many">;
nodeVersion: z.ZodOptional<z.ZodString>;
}, "passthrough", z.ZodTypeAny, {
dryRun: boolean;
functions: string;
adminKey: string;
appDefinition: {
definition: {
path: string;
source: string;
environment: "node" | "isolate";
sourceMap?: string | undefined;
} | null;
dependencies: string[];
schema: {
path: string;
source: string;
environment: "node" | "isolate";
sourceMap?: string | undefined;
} | null;
functions: {
path: string;
source: string;
environment: "node" | "isolate";
sourceMap?: string | undefined;
}[];
udfServerVersion: string;
};
componentDefinitions: {
definition: {
path: string;
source: string;
environment: "node" | "isolate";
sourceMap?: string | undefined;
};
dependencies: string[];
schema: {
path: string;
source: string;
environment: "node" | "isolate";
sourceMap?: string | undefined;
} | null;
functions: {
path: string;
source: string;
environment: "node" | "isolate";
sourceMap?: string | undefined;
}[];
definitionPath: string;
udfServerVersion: string;
}[];
nodeDependencies: {
name: string;
version: string;
}[];
nodeVersion?: string | undefined;
}, {
dryRun: boolean;
functions: string;
adminKey: string;
appDefinition: {
definition: {
path: string;
source: string;
environment: "node" | "isolate";
sourceMap?: string | undefined;
} | null;
dependencies: string[];
schema: {
path: string;
source: string;
environment: "node" | "isolate";
sourceMap?: string | undefined;
} | null;
functions: {
path: string;
source: string;
environment: "node" | "isolate";
sourceMap?: string | undefined;
}[];
udfServerVersion: string;
};
componentDefinitions: {
definition: {
path: string;
source: string;
environment: "node" | "isolate";
sourceMap?: string | undefined;
};
dependencies: string[];
schema: {
path: string;
source: string;
environment: "node" | "isolate";
sourceMap?: string | undefined;
} | null;
functions: {
path: string;
source: string;
environment: "node" | "isolate";
sourceMap?: string | undefined;
}[];
definitionPath: string;
udfServerVersion: string;
}[];
nodeDependencies: {
name: string;
version: string;
}[];
nodeVersion?: string | undefined;
}>;
export type StartPushRequest = z.infer<typeof startPushRequest>;
export declare const schemaChange: z.ZodObject<{
allocatedComponentIds: z.ZodAny;
schemaIds: z.ZodAny;
indexDiffs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
added_indexes: z.ZodArray<z.ZodIntersection<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
name: z.ZodString;
type: z.ZodLiteral<"database">;
fields: z.ZodArray<z.ZodString, "many">;
}, "passthrough", z.ZodTypeAny, {
type: "database";
fields: string[];
name: string;
}, {
type: "database";
fields: string[];
name: string;
}>, z.ZodObject<{
name: z.ZodString;
type: z.ZodLiteral<"search">;
searchField: z.ZodString;
filterFields: z.ZodArray<z.ZodString, "many">;
}, "passthrough", z.ZodTypeAny, {
type: "search";
name: string;
searchField: string;
filterFields: string[];
}, {
type: "search";
name: string;
searchField: string;
filterFields: string[];
}>, z.ZodObject<{
name: z.ZodString;
type: z.ZodLiteral<"vector">;
dimensions: z.ZodNumber;
vectorField: z.ZodString;
filterFields: z.ZodArray<z.ZodString, "many">;
}, "passthrough", z.ZodTypeAny, {
type: "vector";
name: string;
filterFields: string[];
vectorField: string;
dimensions: number;
}, {
type: "vector";
name: string;
filterFields: string[];
vectorField: string;
dimensions: number;
}>]>, z.ZodObject<{
staged: z.ZodOptional<z.ZodBoolean>;
}, "strip", z.ZodTypeAny, {
staged?: boolean | undefined;
}, {
staged?: boolean | undefined;
}>>, "many">;
removed_indexes: z.ZodArray<z.ZodIntersection<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
name: z.ZodString;
type: z.ZodLiteral<"database">;
fields: z.ZodArray<z.ZodString, "many">;
}, "passthrough", z.ZodTypeAny, {
type: "database";
fields: string[];
name: string;
}, {
type: "database";
fields: string[];
name: string;
}>, z.ZodObject<{
name: z.ZodString;
type: z.ZodLiteral<"search">;
searchField: z.ZodString;
filterFields: z.ZodArray<z.ZodString, "many">;
}, "passthrough", z.ZodTypeAny, {
type: "search";
name: string;
searchField: string;
filterFields: string[];
}, {
type: "search";
name: string;
searchField: string;
filterFields: string[];
}>, z.ZodObject<{
name: z.ZodString;
type: z.ZodLiteral<"vector">;
dimensions: z.ZodNumber;
vectorField: z.ZodString;
filterFields: z.ZodArray<z.ZodString, "many">;
}, "passthrough", z.ZodTypeAny, {
type: "vector";
name: string;
filterFields: string[];
vectorField: string;
dimensions: number;
}, {
type: "vector";
name: string;
filterFields: string[];
vectorField: string;
dimensions: number;
}>]>, z.ZodObject<{
staged: z.ZodOptional<z.ZodBoolean>;
}, "strip", z.ZodTypeAny, {
staged?: boolean | undefined;
}, {
staged?: boolean | undefined;
}>>, "many">;
enabled_indexes: z.ZodOptional<z.ZodArray<z.ZodIntersection<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
name: z.ZodString;
type: z.ZodLiteral<"database">;
fields: z.ZodArray<z.ZodString, "many">;
}, "passthrough", z.ZodTypeAny, {
type: "database";
fields: string[];
name: string;
}, {
type: "database";
fields: string[];
name: string;
}>, z.ZodObject<{
name: z.ZodString;
type: z.ZodLiteral<"search">;
searchField: z.ZodString;
filterFields: z.ZodArray<z.ZodString, "many">;
}, "passthrough", z.ZodTypeAny, {
type: "search";
name: string;
searchField: string;
filterFields: string[];
}, {
type: "search";
name: string;
searchField: string;
filterFields: string[];
}>, z.ZodObject<{
name: z.ZodString;
type: z.ZodLiteral<"vector">;
dimensions: z.ZodNumber;
vectorField: z.ZodString;
filterFields: z.ZodArray<z.ZodString, "many">;
}, "passthrough", z.ZodTypeAny, {
type: "vector";
name: string;
filterFields: string[];
vectorField: string;
dimensions: number;
}, {
type: "vector";
name: string;
filterFields: string[];
vectorField: string;
dimensions: number;
}>]>, z.ZodObject<{
staged: z.ZodOptional<z.ZodBoolean>;
}, "strip", z.ZodTypeAny, {
staged?: boolean | undefined;
}, {
staged?: boolean | undefined;
}>>, "many">>;
disabled_indexes: z.ZodOptional<z.ZodArray<z.ZodIntersection<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
name: z.ZodString;
type: z.ZodLiteral<"database">;
fields: z.ZodArray<z.ZodString, "many">;
}, "passthrough", z.ZodTypeAny, {
type: "database";
fields: string[];
name: string;
}, {
type: "database";
fields: string[];
name: string;
}>, z.ZodObject<{
name: z.ZodString;
type: z.ZodLiteral<"search">;
searchField: z.ZodString;
filterFields: z.ZodArray<z.ZodString, "many">;
}, "passthrough", z.ZodTypeAny, {
type: "search";
name: string;
searchField: string;
filterFields: string[];
}, {
type: "search";
name: string;
searchField: string;
filterFields: string[];
}>, z.ZodObject<{
name: z.ZodString;
type: z.ZodLiteral<"vector">;
dimensions: z.ZodNumber;
vectorField: z.ZodString;
filterFields: z.ZodArray<z.ZodString, "many">;
}, "passthrough", z.ZodTypeAny, {
type: "vector";
name: string;
filterFields: string[];
vectorField: string;
dimensions: number;
}, {
type: "vector";
name: string;
filterFields: string[];
vectorField: string;
dimensions: number;
}>]>, z.ZodObject<{
staged: z.ZodOptional<z.ZodBoolean>;
}, "strip", z.ZodTypeAny, {
staged?: boolean | undefined;
}, {
staged?: boolean | undefined;
}>>, "many">>;
}, "passthrough", z.ZodTypeAny, {
added_indexes: (({
type: "database";
fields: string[];
name: string;
} | {
type: "search";
name: string;
searchField: string;
filterFields: string[];
} | {
type: "vector";
name: string;
filterFields: string[];
vectorField: string;
dimensions: number;
}) & {
staged?: boolean | undefined;
})[];
removed_indexes: (({
type: "database";
fields: string[];
name: string;
} | {
type: "search";
name: string;
searchField: string;
filterFields: string[];
} | {
type: "vector";
name: string;
filterFields: string[];
vectorField: string;
dimensions: number;
}) & {
staged?: boolean | undefined;
})[];
enabled_indexes?: (({
type: "database";
fields: string[];
name: string;
} | {
type: "search";
name: string;
searchField: string;
filterFields: string[];
} | {
type: "vector";
name: string;
filterFields: string[];
vectorField: string;
dimensions: number;
}) & {
staged?: boolean | undefined;
})[] | undefined;
disabled_indexes?: (({
type: "database";
fields: string[];
name: string;
} | {
type: "search";
name: string;
searchField: string;
filterFields: string[];
} | {
type: "vector";
name: string;
filterFields: string[];
vectorField: string;
dimensions: number;
}) & {
staged?: boolean | undefined;
})[] | undefined;
}, {
added_indexes: (({
type: "database";
fields: string[];
name: string;
} | {
type: "search";
name: string;
searchField: string;
filterFields: string[];
} | {
type: "vector";
name: string;
filterFields: string[];
vectorField: string;
dimensions: number;
}) & {
staged?: boolean | undefined;
})[];
removed_indexes: (({
type: "database";
fields: string[];
name: string;
} | {
type: "search";
name: string;
searchField: string;
filterFields: string[];
} | {
type: "vector";
name: string;
filterFields: string[];
vectorField: string;
dimensions: number;
}) & {
staged?: boolean | undefined;
})[];
enabled_indexes?: (({
type: "database";
fields: string[];
name: string;
} | {
type: "search";
name: string;
searchField: string;
filterFields: string[];
} | {
type: "vector";
name: string;
filterFields: string[];
vectorField: string;
dimensions: number;
}) & {
staged?: boolean | undefined;
})[] | undefined;
disabled_indexes?: (({
type: "database";
fields: string[];
name: string;
} | {
type: "search";
name: string;
searchField: string;
filterFields: string[];
} | {
type: "vector";
name: string;
filterFields: string[];
vectorField: string;
dimensions: number;
}) & {
staged?: boolean | undefined;
})[] | undefined;
}>>>;
}, "passthrough", z.ZodTypeAny, {
allocatedComponentIds?: any;
schemaIds?: any;
indexDiffs?: Record<string, {
added_indexes: (({
type: "database";
fields: string[];
name: string;
} | {
type: "search";
name: string;
searchField: string;
filterFields: string[];
} | {
type: "vector";
name: string;
filterFields: string[];
vectorField: string;
dimensions: number;
}) & {
staged?: boolean | undefined;
})[];
removed_indexes: (({
type: "database";
fields: string[];
name: string;
} | {
type: "search";
name: string;
searchField: string;
filterFields: string[];
} | {
type: "vector";
name: string;
filterFields: string[];
vectorField: string;
dimensions: number;
}) & {
staged?: boolean | undefined;
})[];
enabled_indexes?: (({
type: "database";
fields: string[];
name: string;
} | {
type: "search";
name: string;
searchField: string;
filterFields: string[];
} | {
type: "vector";
name: string;
filterFields: string[];
vectorField: string;
dimensions: number;
}) & {
staged?: boolean | undefined;
})[] | undefined;
disabled_indexes?: (({
type: "database";
fields: string[];
name: string;
} | {
type: "search";
name: string;
searchField: string;
filterFields: string[];
} | {
type: "vector";
name: string;
filterFields: string[];
vectorField: string;
dimensions: number;
}) & {
staged?: boolean | undefined;
})[] | undefined;
}> | undefined;
}, {
allocatedComponentIds?: any;
schemaIds?: any;
indexDiffs?: Record<string, {
added_indexes: (({
type: "database";
fields: string[];
name: string;
} | {
type: "search";
name: string;
searchField: string;
filterFields: string[];
} | {
type: "vector";
name: string;
filterFields: string[];
vectorField: string;
dimensions: number;
}) & {
staged?: boolean | undefined;
})[];
removed_indexes: (({
type: "database";
fields: string[];
name: string;
} | {
type: "search";
name: string;
searchField: string;
filterFields: string[];
} | {
type: "vector";
name: string;
filterFields: string[];
vectorField: string;
dimensions: number;
}) & {
staged?: boolean | undefined;
})[];
enabled_indexes?: (({
type: "database";
fields: string[];
name: string;
} | {
type: "search";
name: string;
searchField: string;
filterFields: string[];
} | {
type: "vector";
name: string;
filterFields: string[];
vectorField: string;
dimensions: number;
}) & {
staged?: boolean | undefined;
})[] | undefined;
disabled_indexes?: (({
type: "database";
fields: string[];
name: string;
} | {
type: "search";
name: string;
searchField: string;
filterFields: string[];
} | {
type: "vector";
name: string;
filterFields: string[];
vectorField: string;
dimensions: number;
}) & {
staged?: boolean | undefined;
})[] | undefined;
}> | undefined;
}>;
export type SchemaChange = z.infer<typeof schemaChange>;
export declare const startPushResponse: z.ZodObject<{
environmentVariables: z.ZodRecord<z.ZodString, z.ZodString>;
externalDepsId: z.ZodNullable<z.ZodString>;
componentDefinitionPackages: z.ZodRecord<z.ZodString, z.ZodAny>;
appAuth: z.ZodArray<z.ZodUnion<[z.ZodObject<{
type: z.ZodLiteral<"customJwt">;
applicationID: z.ZodNullable<z.ZodString>;
issuer: z.ZodString;
jwks: z.ZodString;
algorithm: z.ZodString;
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
type: z.ZodLiteral<"customJwt">;
applicationID: z.ZodNullable<z.ZodString>;
issuer: z.ZodString;
jwks: z.ZodString;
algorithm: z.ZodString;
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
type: z.ZodLiteral<"customJwt">;
applicationID: z.ZodNullable<z.ZodString>;
issuer: z.ZodString;
jwks: z.ZodString;
algorithm: z.ZodString;
}, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
applicationID: z.ZodString;
domain: z.ZodString;
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
applicationID: z.ZodString;
domain: z.ZodString;
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
applicationID: z.ZodString;
domain: z.ZodString;
}, z.ZodTypeAny, "passthrough">>]>, "many">;
analysis: z.ZodRecord<z.ZodString, z.ZodObject<{
definition: z.ZodObject<{
path: z.ZodString;
definitionType: z.ZodUnion<[z.ZodObject<{
type: z.ZodLiteral<"app">;
}, "passthrough", z.ZodTypeAny, {
type: "app";
}, {
type: "app";
}>, z.ZodObject<{
type: z.ZodLiteral<"childComponent">;
name: z.ZodString;
args: z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodObject<{
type: z.ZodLiteral<"value">;
value: z.ZodString;
}, "passthrough", z.ZodTypeAny, {
type: "value";
value: string;
}, {
type: "value";
value: string;
}>], null>, "many">;
}, "passthrough", z.ZodTypeAny, {
type: "childComponent";
name: string;
args: [string, {
type: "value";
value: string;
}][];
}, {
type: "childComponent";
name: string;
args: [string, {
type: "value";
value: string;
}][];
}>]>;
childComponents: z.ZodArray<z.ZodObject<{
name: z.ZodString;
path: z.ZodString;
args: z.ZodNullable<z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodObject<{
type: z.ZodLiteral<"value">;
value: z.ZodString;
}, "passthrough", z.ZodTypeAny, {
type: "value";
value: string;
}, {
type: "value";
value: string;
}>], null>, "many">>;
}, "passthrough", z.ZodTypeAny, {
name: string;
args: [string, {
type: "value";
value: string;
}][] | null;
path: string;
}, {
name: string;
args: [string, {
type: "value";
value: string;
}][] | null;
path: string;
}>, "many">;
httpMounts: z.ZodRecord<z.ZodString, z.ZodString>;
exports: z.ZodObject<{
type: z.ZodLiteral<"branch">;
branch: z.ZodArray<z.ZodTuple<[z.ZodString, z.ZodType<import("./componentDefinition.js").ComponentExports, z.ZodTypeDef, import("./componentDefinition.js").ComponentExports>], null>, "many">;
}, "passthrough", z.ZodTypeAny, {
type: "branch";
branch: [string, import("./componentDefinition.js").ComponentExports][];
}, {
type: "branch";
branch: [string, import("./componentDefinition.js").ComponentExports][];
}>;
}, "passthrough", z.ZodTypeAny, {
path: string;
childComponents: {
name: string;
args: [string, {
type: "value";
value: string;
}][] | null;
path: string;
}[];
exports: {
type: "branch";
branch: [string, import("./componentDefinition.js").ComponentExports][];
};
definitionType: {
type: "app";
} | {
type: "childComponent";
name: string;
args: [string, {
type: "value";
value: string;
}][];
};
httpMounts: Record<string, string>;
}, {
path: string;
childComponents: {
name: string;
args: [string, {
type: "value";
value: string;
}][] | null;
path: string;
}[];
exports: {
type: "branch";
branch: [string, import("./componentDefinition.js").ComponentExports][];
};
definitionType: {
type: "app";
} | {
type: "childComponent";
name: string;
args: [string, {
type: "value";
value: string;
}][];
};
httpMounts: Record<string, string>;
}>;
schema: z.ZodNullable<z.ZodOptional<z.ZodObject<{
tables: z.ZodArray<z.ZodObject<{
tableName: z.ZodString;
indexes: z.ZodArray<z.ZodObject<{
indexDescriptor: z.ZodString;
fields: z.ZodArray<z.ZodString, "many">;
}, "passthrough", z.ZodTypeAny, {
fields: string[];
indexDescriptor: string;
}, {
fields: string[];
indexDescriptor: string;
}>, "many">;
searchIndexes: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
indexDescriptor: z.ZodString;
searchField: z.ZodString;
filterFields: z.ZodArray<z.ZodString, "many">;
}, "passthrough", z.ZodTypeAny, {
searchField: string;
filterFields: string[];
indexDescriptor: string;
}, {
searchField: string;
filterFields: string[];
indexDescriptor: string;
}>, "many">>>;
vectorIndexes: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
indexDescriptor: z.ZodString;
vectorField: z.ZodString;
dimensions: z.ZodOptional<z.ZodNumber>;
filterFields: z.ZodArray<z.ZodString, "many">;
}, "passthrough", z.ZodTypeAny, {
filterFields: string[];
vectorField: string;
indexDescriptor: string;
dimensions?: number | undefined;
}, {
filterFields: string[];
vectorField: string;
indexDescriptor: string;
dimensions?: number | undefined;
}>, "many">>>;
documentType: z.ZodType<import("./validator.js").ConvexValidator, z.ZodTypeDef, import("./validator.js").ConvexValidator>;
}, "passthrough", z.ZodTypeAny, {
tableName: string;
indexes: {
fields: string[];
indexDescriptor: string;
}[];
documentType: import("./validator.js").ConvexValidator;
searchIndexes?: {
searchField: string;
filterFields: string[];
indexDescriptor: string;
}[] | null | undefined;
vectorIndexes?: {
filterFields: string[];
vectorField: string;
indexDescriptor: string;
dimensions?: number | undefined;
}[] | null | undefined;
}, {
tableName: string;
indexes: {
fields: string[];
indexDescriptor: string;
}[];
documentType: import("./validator.js").ConvexValidator;
searchIndexes?: {
searchField: string;
filterFields: string[];
indexDescriptor: string;
}[] | null | undefined;
vectorIndexes?: {
filterFields: string[];
vectorField: string;
indexDescriptor: string;
dimensions?: number | undefined;
}[] | null | undefined;
}>, "many">;
schemaValidation: z.ZodBoolean;
}, "passthrough", z.ZodTypeAny, {
schemaValidation: boolean;
tables: {
tableName: string;
indexes: {
fields: string[];
indexDescriptor: string;
}[];
documentType: import("./validator.js").ConvexValidator;
searchIndexes?: {
searchField: string;
filterFields: string[];
indexDescriptor: string;
}[] | null | undefined;
vectorIndexes?: {
filterFields: string[];
vectorField: string;
indexDescriptor: string;
dimensions?: number | undefined;
}[] | null | undefined;
}[];
}, {
schemaValidation: boolean;
tables: {
tableName: string;
indexes: {
fields: string[];
indexDescriptor: string;
}[];
documentType: import("./validator.js").ConvexValidator;
searchIndexes?: {
searchField: string;
filterFields: string[];
indexDescriptor: string;
}[] | null | undefined;
vectorIndexes?: {
filterFields: string[];
vectorField: string;
indexDescriptor: string;
dimensions?: number | undefined;
}[] | null | undefined;
}[];
}>>>;
functions: z.ZodRecord<z.ZodString, z.ZodObject<{
functions: z.ZodArray<z.ZodObject<{
name: z.ZodString;
pos: z.ZodAny;
udfType: z.ZodUnion<[z.ZodLiteral<"Query">, z.ZodLiteral<"Mutation">, z.ZodLiteral<"Action">]>;
visibility: z.ZodNullable<z.ZodUnion<[z.ZodObject<{
kind: z.ZodLiteral<"public">;
}, "passthrough", z.ZodTypeAny, {
kind: "public";
}, {
kind: "public";
}>, z.ZodObject<{
kind: z.ZodLiteral<"internal">;
}, "passthrough", z.ZodTypeAny, {
kind: "internal";
}, {
kind: "internal";
}>]>>;
args: z.ZodNullable<z.ZodString>;
returns: z.ZodNullable<z.ZodString>;
}, "passthrough", z.ZodTypeAny, {
name: string;
args: string | null;
returns: string | null;
udfType: "Mutation" | "Action" | "Query";
visibility: {
kind: "public";
} | {
kind: "internal";
} | null;
pos?: any;
}, {
name: string;
args: string | null;
returns: string | null;
udfType: "Mutation" | "Action" | "Query";
visibility: {
kind: "public";
} | {
kind: "internal";
} | null;
pos?: any;
}>, "many">;
httpRoutes: z.ZodAny;
cronSpecs: z.ZodAny;
sourceMapped: z.ZodAny;
}, "passthrough", z.ZodTypeAny, {
functions: {
name: string;
args: string | null;
returns: string | null;
udfType: "Mutation" | "Action" | "Query";
visibility: {
kind: "public";
} | {
kind: "internal";
} | null;
pos?: any;
}[];
httpRoutes?: any;
cronSpecs?: any;
sourceMapped?: any;
}, {
functions: {
name: string;
args: string | null;
returns: string | null;
udfType: "Mutation" | "Action" | "Query";
visibility: {
kind: "public";
} | {
kind: "internal";
} | null;
pos?: any;
}[];
httpRoutes?: any;
cronSpecs?: any;
sourceMapped?: any;
}>>;
udfConfig: z.ZodObject<{
serverVersion: z.ZodString;
importPhaseRngSeed: z.ZodAny;
importPhaseUnixTimestamp: z.ZodAny;
}, "passthrough", z.ZodTypeAny, {
serverVersion: string;
importPhaseRngSeed?: any;
importPhaseUnixTimestamp?: any;
}, {
serverVersion: string;
importPhaseRngSeed?: any;
importPhaseUnixTimestamp?: any;
}>;
}, "passthrough", z.ZodTypeAny, {
definition: {
path: string;
childComponents: {
name: string;
args: [string, {
type: "value";
value: string;
}][] | null;
path: string;
}[];
exports: {
type: "branch";
branch: [string, import("./componentDefinition.js").ComponentExports][];
};
definitionType: {
type: "app";
} | {
type: "childComponent";
name: string;
args: [string, {
type: "value";
value: string;
}][];
};
httpMounts: Record<string, string>;
};
functions: Record<string, {
functions: {
name: string;
args: string | null;
returns: string | null;
udfType: "Mutation" | "Action" | "Query";
visibility: {
kind: "public";
} | {
kind: "internal";
} | null;
pos?: any;
}[];
httpRoutes?: any;
cronSpecs?: any;
sourceMapped?: any;
}>;
udfConfig: {
serverVersion: string;
importPhaseRngSeed?: any;
importPhaseUnixTimestamp?: any;
};
schema?: {
schemaValidation: boolean;
tables: {
tableName: string;
indexes: {
fields: string[];
indexDescriptor: string;
}[];
documentType: import("./validator.js").ConvexValidator;
searchIndexes?: {
searchField: string;
filterFields: string[];
indexDescriptor: string;
}[] | null | undefined;
vectorIndexes?: {
filterFields: string[];
vectorField: string;
indexDescriptor: string;
dimensions?: number | undefined;
}[] | null | undefined;
}[];
} | null | undefined;
}, {
definition: {
path: string;
childComponents: {
name: string;
args: [string, {
type: "value";
value: string;
}][] | null;
path: string;
}[];
exports: {
type: "branch";
branch: [string, import("./componentDefinition.js").ComponentExports][];
};
definitionType: {
type: "app";
} | {
type: "childComponent";
name: string;
args: [string, {
type: "value";
value: string;
}][];
};
httpMounts: Record<string, string>;
};
functions: Record<string, {
functions: {
name: string;
args: string | null;
returns: string | null;
udfType: "Mutation" | "Action" | "Query";
visibility: {
kind: "public";
} | {
kind: "internal";
} | null;
pos?: any;
}[];
httpRoutes?: any;
cronSpecs?: any;
sourceMapped?: any;
}>;
udfConfig: {
serverVersion: string;
importPhaseRngSeed?: any;
importPhaseUnixTimestamp?: any;
};
schema?: {
schemaValidation: boolean;
tables: {
tableName: string;
indexes: {
fields: string[];
indexDescriptor: string;
}[];
documentType: import("./validator.js").ConvexValidator;
searchIndexes?: {
searchField: string;
filterFields: string[];
indexDescriptor: string;
}[] | null | undefined;
vectorIndexes?: {
filterFields: string[];
vectorField: string;
indexDescriptor: string;
dimensions?: number | undefined;
}[] | null | undefined;
}[];
} | null | undefined;
}>>;
app: z.ZodType<import("./checkedComponent.js").CheckedComponent, z.ZodTypeDef, import("./checkedComponent.js").CheckedComponent>;
schemaChange: z.ZodObject<{
allocatedComponentIds: z.ZodAny;
schemaIds: z.ZodAny;
indexDiffs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
added_indexes: z.ZodArray<z.ZodIntersection<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
name: z.ZodString;
type: z.ZodLiteral<"database">;
fields: z.ZodArray<z.ZodString, "many">;
}, "passthrough", z.ZodTypeAny, {
type: "database";
fields: string[];
name: string;
}, {
type: "database";
fields: string[];
name: string;
}>, z.ZodObject<{
name: z.ZodString;
type: z.ZodLiteral<"search">;
searchField: z.ZodString;
filterFields: z.ZodArray<z.ZodString, "many">;
}, "passthrough", z.ZodTypeAny, {
type: "search";
name: string;
searchField: string;
filterFields: string[];
}, {
type: "search";
name: string;
searchField: string;
filterFields: string[];
}>, z.ZodObject<{
name: z.ZodString;
type: z.ZodLiteral<"vector">;
dimensions: z.ZodNumber;
vectorField: z.ZodString;
filterFields: z.ZodArray<z.ZodString, "many">;
}, "passthrough", z.ZodTypeAny, {
type: "vector";
name: string;
filterFields: string[];
vectorField: string;
dimensions: number;
}, {
type: "vector";
name: string;
filterFields: string[];
vectorField: string;
dimensions: number;
}>]>, z.ZodObject<{
staged: z.ZodOptional<z.ZodBoolean>;
}, "strip", z.ZodTypeAny, {
staged?: boolean | undefined;
}, {
staged?: boolean | undefined;
}>>, "many">;
removed_indexes: z.ZodArray<z.ZodIntersection<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
name: z.ZodString;
type: z.ZodLiteral<"database">;
fields: z.ZodArray<z.ZodString, "many">;
}, "passthrough", z.ZodTypeAny, {
type: "database";
fields: string[];
name: string;
}, {
type: "database";
fields: string[];
name: string;
}>, z.ZodObject<{
name: z.ZodString;
type: z.ZodLiteral<"search">;
searchField: z.ZodString;
filterFields: z.ZodArray<z.ZodString, "many">;
}, "passthrough", z.ZodTypeAny, {
type: "search";
name: string;
searchField: string;
filterFields: string[];
}, {
type: "search";
name: string;
searchField: string;
filterFields: string[];
}>, z.ZodObject<{
name: z.ZodString;
type: z.ZodLiteral<"vector">;
dimensions: z.ZodNumber;
vectorField: z.ZodString;
filterFields: z.ZodArray<z.ZodString, "many">;
}, "passthrough", z.ZodTypeAny, {
type: "vector";
name: string;
filterFields: string[];
vectorField: string;
dimensions: number;
}, {
type: "vector";
name: string;
filterFields: string[];
vectorField: string;
dimensions: number;
}>]>, z.ZodObject<{
staged: z.ZodOptional<z.ZodBoolean>;
}, "strip", z.ZodTypeAny, {
staged?: boolean | undefined;
}, {
staged?: boolean | undefined;
}>>, "many">;
enabled_indexes: z.ZodOptional<z.ZodArray<z.ZodIntersection<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
name: z.ZodString;
type: z.ZodLiteral<"database">;
fields: z.ZodArray<z.ZodString, "many">;
}, "passthrough", z.ZodTypeAny, {
type: "database";
fields: string[];
name: string;
}, {
type: "database";
fields: string[];
name: string;
}>, z.ZodObject<{
name: z.ZodString;
type: z.ZodLiteral<"search">;
searchField: z.ZodString;
filterFields: z.ZodArray<z.ZodString, "many">;
}, "passthrough", z.ZodTypeAny, {
type: "search";
name: string;
se