import * as Table_ from "@confect/core/Table";
import * as Schema from "effect/Schema";
import { type TableDefinition } from "convex/server";
export { TypeId, isTable, isUnnamedTable, make, type Table, type Any, type AnyWithProps, type UnnamedTable, type UnnamedAny, type UnnamedAnyWithProps, type Name, type TableSchema, type TableValidator, type Indexes, type SearchIndexes, type VectorIndexes, type Doc, type Fields, type WithName, type TablesRecord, } from "@confect/core/Table";
export declare const tableDefinition:
(table: Table) => TableDefinition, Table_.Indexes, Table_.SearchIndexes, Table_.VectorIndexes>;
export declare const scheduledFunctionsTable: Table_.Table<"_scheduled_functions", Schema.Struct<{
readonly name: Schema.String;
readonly args: Schema.$Array;
readonly scheduledTime: Schema.Finite;
readonly completedTime: Schema.optionalKey;
readonly state: Schema.Union;
}>, Schema.Struct<{
readonly kind: Schema.Literal<"inProgress">;
}>, Schema.Struct<{
readonly kind: Schema.Literal<"success">;
}>, Schema.Struct<{
readonly kind: Schema.Literal<"failed">;
readonly error: Schema.String;
}>, Schema.Struct<{
readonly kind: Schema.Literal<"canceled">;
}>]>;
}>, import("convex/values").VObject<{
name: string;
args: any[];
scheduledTime: number;
completedTime?: number;
state: {
kind: "pending";
} | {
kind: "inProgress";
} | {
kind: "success";
} | {
kind: "failed";
error: string;
} | {
kind: "canceled";
};
}, {
name: import("convex/values").VString;
args: import("convex/values").VArray, "required">;
scheduledTime: import("convex/values").VFloat64;
completedTime: import("convex/values").VFloat64;
state: import("convex/values").VUnion<{
kind: "pending";
} | {
kind: "inProgress";
} | {
kind: "success";
} | {
kind: "failed";
error: string;
} | {
kind: "canceled";
}, [import("convex/values").VObject<{
kind: "pending";
}, {
kind: import("convex/values").VLiteral<"pending", "required">;
}, "required", "kind">, import("convex/values").VObject<{
kind: "inProgress";
}, {
kind: import("convex/values").VLiteral<"inProgress", "required">;
}, "required", "kind">, import("convex/values").VObject<{
kind: "success";
}, {
kind: import("convex/values").VLiteral<"success", "required">;
}, "required", "kind">, import("convex/values").VObject<{
kind: "failed";
error: string;
}, {
kind: import("convex/values").VLiteral<"failed", "required">;
error: import("convex/values").VString;
}, "required", "error" | "kind">, import("convex/values").VObject<{
kind: "canceled";
}, {
kind: import("convex/values").VLiteral<"canceled", "required">;
}, "required", "kind">], "required", "error" | "kind">;
}, "required", "args" | "completedTime" | "name" | "scheduledTime" | "state" | "state.error" | "state.kind">, {}, {}, {}>;
export declare const storageTable: Table_.Table<"_storage", Schema.Struct<{
readonly sha256: Schema.String;
readonly size: Schema.Finite;
readonly contentType: Schema.optionalKey;
}>, import("convex/values").VObject<{
sha256: string;
size: number;
contentType?: string;
}, {
sha256: import("convex/values").VString;
size: import("convex/values").VFloat64;
contentType: import("convex/values").VString;
}, "required", "contentType" | "sha256" | "size">, {}, {}, {}>;
export declare const systemTables: {
readonly _scheduled_functions: Table_.Table<"_scheduled_functions", Schema.Struct<{
readonly name: Schema.String;
readonly args: Schema.$Array;
readonly scheduledTime: Schema.Finite;
readonly completedTime: Schema.optionalKey;
readonly state: Schema.Union;
}>, Schema.Struct<{
readonly kind: Schema.Literal<"inProgress">;
}>, Schema.Struct<{
readonly kind: Schema.Literal<"success">;
}>, Schema.Struct<{
readonly kind: Schema.Literal<"failed">;
readonly error: Schema.String;
}>, Schema.Struct<{
readonly kind: Schema.Literal<"canceled">;
}>]>;
}>, import("convex/values").VObject<{
name: string;
args: any[];
scheduledTime: number;
completedTime?: number;
state: {
kind: "pending";
} | {
kind: "inProgress";
} | {
kind: "success";
} | {
kind: "failed";
error: string;
} | {
kind: "canceled";
};
}, {
name: import("convex/values").VString;
args: import("convex/values").VArray, "required">;
scheduledTime: import("convex/values").VFloat64;
completedTime: import("convex/values").VFloat64;
state: import("convex/values").VUnion<{
kind: "pending";
} | {
kind: "inProgress";
} | {
kind: "success";
} | {
kind: "failed";
error: string;
} | {
kind: "canceled";
}, [import("convex/values").VObject<{
kind: "pending";
}, {
kind: import("convex/values").VLiteral<"pending", "required">;
}, "required", "kind">, import("convex/values").VObject<{
kind: "inProgress";
}, {
kind: import("convex/values").VLiteral<"inProgress", "required">;
}, "required", "kind">, import("convex/values").VObject<{
kind: "success";
}, {
kind: import("convex/values").VLiteral<"success", "required">;
}, "required", "kind">, import("convex/values").VObject<{
kind: "failed";
error: string;
}, {
kind: import("convex/values").VLiteral<"failed", "required">;
error: import("convex/values").VString;
}, "required", "error" | "kind">, import("convex/values").VObject<{
kind: "canceled";
}, {
kind: import("convex/values").VLiteral<"canceled", "required">;
}, "required", "kind">], "required", "error" | "kind">;
}, "required", "args" | "completedTime" | "name" | "scheduledTime" | "state" | "state.error" | "state.kind">, {}, {}, {}>;
readonly _storage: Table_.Table<"_storage", Schema.Struct<{
readonly sha256: Schema.String;
readonly size: Schema.Finite;
readonly contentType: Schema.optionalKey;
}>, import("convex/values").VObject<{
sha256: string;
size: number;
contentType?: string;
}, {
sha256: import("convex/values").VString;
size: import("convex/values").VFloat64;
contentType: import("convex/values").VString;
}, "required", "contentType" | "sha256" | "size">, {}, {}, {}>;
};
export type SystemTables = typeof scheduledFunctionsTable | typeof storageTable;
//# sourceMappingURL=Table.d.ts.map