kitcn 0.12.6 → 0.12.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { C as ConvexNumberBuilderInitial, E as ConvexIdBuilderInitial, N as ConvexCustomBuilderInitial, dn as ConvexTableWithColumns, tr as ConvexTextBuilderInitial } from "../where-clause-compiler-CuH2JNxb.js";
1
+ import { C as ConvexNumberBuilderInitial, E as ConvexIdBuilderInitial, N as ConvexCustomBuilderInitial, dn as ConvexTableWithColumns, tr as ConvexTextBuilderInitial } from "../where-clause-compiler-ner2TQ3O.js";
2
2
  import * as convex_values0 from "convex/values";
3
3
  import { GenericId, Infer, Value } from "convex/values";
4
4
  import { DocumentByName, GenericDataModel, GenericDatabaseReader, GenericDatabaseWriter, TableNamesInDataModel } from "convex/server";
@@ -1,2 +1,2 @@
1
- import { S as defineAuth, _ as GenericAuthBeforeResult, b as GenericAuthTriggerHandlers, g as BetterAuthOptionsWithoutDatabase, i as getGeneratedAuthDisabledReason, n as GeneratedAuthDisabledReasonKind, r as createDisabledAuthRuntime, t as AuthRuntime, v as GenericAuthDefinition, x as GenericAuthTriggers, y as GenericAuthTriggerChange } from "../../generated-contract-disabled-ngvXLZ4i.js";
1
+ import { S as defineAuth, _ as GenericAuthBeforeResult, b as GenericAuthTriggerHandlers, g as BetterAuthOptionsWithoutDatabase, i as getGeneratedAuthDisabledReason, n as GeneratedAuthDisabledReasonKind, r as createDisabledAuthRuntime, t as AuthRuntime, v as GenericAuthDefinition, x as GenericAuthTriggers, y as GenericAuthTriggerChange } from "../../generated-contract-disabled-Cf7sqlVD.js";
2
2
  export { type AuthRuntime, BetterAuthOptionsWithoutDatabase, type GeneratedAuthDisabledReasonKind, GenericAuthBeforeResult, GenericAuthDefinition, GenericAuthTriggerChange, GenericAuthTriggerHandlers, GenericAuthTriggers, createDisabledAuthRuntime, defineAuth, getGeneratedAuthDisabledReason };
@@ -1,7 +1,7 @@
1
1
  import { a as QueryCtxWithPreferredOrmQueryTable, n as LookupByIdResultByCtx, t as DocByCtx } from "../query-context-CFZqIvD7.js";
2
2
  import { t as GetAuth } from "../types-BiJE7qxR.js";
3
3
  import { t as GenericCtx } from "../context-utils-HPC5nXzx.js";
4
- import { S as defineAuth, _ as GenericAuthBeforeResult, a as AuthFunctions, b as GenericAuthTriggerHandlers, c as createApi, d as deleteOneHandler, f as findManyHandler, g as BetterAuthOptionsWithoutDatabase, h as updateOneHandler, i as getGeneratedAuthDisabledReason, l as createHandler, m as updateManyHandler, n as GeneratedAuthDisabledReasonKind, o as Triggers, p as findOneHandler, r as createDisabledAuthRuntime, s as createClient, t as AuthRuntime, u as deleteManyHandler, v as GenericAuthDefinition, x as GenericAuthTriggers, y as GenericAuthTriggerChange } from "../generated-contract-disabled-ngvXLZ4i.js";
4
+ import { S as defineAuth, _ as GenericAuthBeforeResult, a as AuthFunctions, b as GenericAuthTriggerHandlers, c as createApi, d as deleteOneHandler, f as findManyHandler, g as BetterAuthOptionsWithoutDatabase, h as updateOneHandler, i as getGeneratedAuthDisabledReason, l as createHandler, m as updateManyHandler, n as GeneratedAuthDisabledReasonKind, o as Triggers, p as findOneHandler, r as createDisabledAuthRuntime, s as createClient, t as AuthRuntime, u as deleteManyHandler, v as GenericAuthDefinition, x as GenericAuthTriggers, y as GenericAuthTriggerChange } from "../generated-contract-disabled-Cf7sqlVD.js";
5
5
  import * as convex_values0 from "convex/values";
6
6
  import { Infer } from "convex/values";
7
7
  import { DocumentByName, GenericDataModel, GenericMutationCtx, GenericQueryCtx, GenericSchema, PaginationOptions, PaginationResult, SchemaDefinition, TableNamesInDataModel } from "convex/server";
@@ -112,7 +112,7 @@ declare const adapterWhereValidator: convex_values0.VObject<{
112
112
  field: convex_values0.VString<string, "required">;
113
113
  operator: convex_values0.VUnion<"eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "in" | "not_in" | "contains" | "starts_with" | "ends_with" | undefined, [convex_values0.VLiteral<"lt", "required">, convex_values0.VLiteral<"lte", "required">, convex_values0.VLiteral<"gt", "required">, convex_values0.VLiteral<"gte", "required">, convex_values0.VLiteral<"eq", "required">, convex_values0.VLiteral<"in", "required">, convex_values0.VLiteral<"not_in", "required">, convex_values0.VLiteral<"ne", "required">, convex_values0.VLiteral<"contains", "required">, convex_values0.VLiteral<"starts_with", "required">, convex_values0.VLiteral<"ends_with", "required">], "optional", never>;
114
114
  value: convex_values0.VUnion<string | number | boolean | string[] | number[] | null, [convex_values0.VString<string, "required">, convex_values0.VFloat64<number, "required">, convex_values0.VBoolean<boolean, "required">, convex_values0.VArray<string[], convex_values0.VString<string, "required">, "required">, convex_values0.VArray<number[], convex_values0.VFloat64<number, "required">, "required">, convex_values0.VNull<null, "required">], "required", never>;
115
- }, "required", "operator" | "value" | "field" | "connector">;
115
+ }, "required", "value" | "operator" | "field" | "connector">;
116
116
  declare const adapterArgsValidator: convex_values0.VObject<{
117
117
  limit?: number | undefined;
118
118
  where?: {
@@ -124,8 +124,8 @@ declare const adapterArgsValidator: convex_values0.VObject<{
124
124
  select?: string[] | undefined;
125
125
  offset?: number | undefined;
126
126
  sortBy?: {
127
- field: string;
128
127
  direction: "asc" | "desc";
128
+ field: string;
129
129
  } | undefined;
130
130
  model: string;
131
131
  }, {
@@ -134,12 +134,12 @@ declare const adapterArgsValidator: convex_values0.VObject<{
134
134
  offset: convex_values0.VFloat64<number | undefined, "optional">;
135
135
  select: convex_values0.VArray<string[] | undefined, convex_values0.VString<string, "required">, "optional">;
136
136
  sortBy: convex_values0.VObject<{
137
- field: string;
138
137
  direction: "asc" | "desc";
138
+ field: string;
139
139
  } | undefined, {
140
140
  direction: convex_values0.VUnion<"asc" | "desc", [convex_values0.VLiteral<"asc", "required">, convex_values0.VLiteral<"desc", "required">], "required", never>;
141
141
  field: convex_values0.VString<string, "required">;
142
- }, "optional", "field" | "direction">;
142
+ }, "optional", "direction" | "field">;
143
143
  where: convex_values0.VArray<{
144
144
  operator?: "eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "in" | "not_in" | "contains" | "starts_with" | "ends_with" | undefined;
145
145
  connector?: "AND" | "OR" | undefined;
@@ -155,8 +155,8 @@ declare const adapterArgsValidator: convex_values0.VObject<{
155
155
  field: convex_values0.VString<string, "required">;
156
156
  operator: convex_values0.VUnion<"eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "in" | "not_in" | "contains" | "starts_with" | "ends_with" | undefined, [convex_values0.VLiteral<"lt", "required">, convex_values0.VLiteral<"lte", "required">, convex_values0.VLiteral<"gt", "required">, convex_values0.VLiteral<"gte", "required">, convex_values0.VLiteral<"eq", "required">, convex_values0.VLiteral<"in", "required">, convex_values0.VLiteral<"not_in", "required">, convex_values0.VLiteral<"ne", "required">, convex_values0.VLiteral<"contains", "required">, convex_values0.VLiteral<"starts_with", "required">, convex_values0.VLiteral<"ends_with", "required">], "optional", never>;
157
157
  value: convex_values0.VUnion<string | number | boolean | string[] | number[] | null, [convex_values0.VString<string, "required">, convex_values0.VFloat64<number, "required">, convex_values0.VBoolean<boolean, "required">, convex_values0.VArray<string[], convex_values0.VString<string, "required">, "required">, convex_values0.VArray<number[], convex_values0.VFloat64<number, "required">, "required">, convex_values0.VNull<null, "required">], "required", never>;
158
- }, "required", "operator" | "value" | "field" | "connector">, "optional">;
159
- }, "required", "limit" | "where" | "model" | "select" | "offset" | "sortBy" | "sortBy.field" | "sortBy.direction">;
158
+ }, "required", "value" | "operator" | "field" | "connector">, "optional">;
159
+ }, "required", "limit" | "where" | "model" | "select" | "offset" | "sortBy" | "sortBy.direction" | "sortBy.field">;
160
160
  declare const hasUniqueFields: (betterAuthSchema: BetterAuthDBSchema, model: string, input: Record<string, any>) => boolean;
161
161
  declare const checkUniqueFields: <Schema extends SchemaDefinition<any, any>>(ctx: GenericQueryCtx<GenericDataModel>, schema: Schema, betterAuthSchema: BetterAuthDBSchema, table: string, input: Record<string, any>, doc?: Record<string, any>) => Promise<void>;
162
162
  declare const selectFields: <T extends TableNamesInDataModel<GenericDataModel>, D extends DocumentByName<GenericDataModel, T>>(doc: D | null, select?: string[]) => D | null;
package/dist/cli.mjs CHANGED
@@ -2397,6 +2397,7 @@ const SUPPORTED_BETTER_AUTH_VERSION = "1.5.3";
2397
2397
  const SUPPORTED_HONO_VERSION = "4.12.9";
2398
2398
  const SUPPORTED_OPENTELEMETRY_API_VERSION = "1.9.0";
2399
2399
  const SUPPORTED_TANSTACK_REACT_QUERY_VERSION = "5.95.2";
2400
+ const SUPPORTED_ZOD_VERSION = "4.3.6";
2400
2401
  const KITCN_INSTALL_SPEC_ENV = "KITCN_INSTALL_SPEC";
2401
2402
  const KITCN_RESEND_INSTALL_SPEC_ENV = "KITCN_RESEND_INSTALL_SPEC";
2402
2403
  function getMinimumVersionRange(version) {
@@ -2434,16 +2435,21 @@ const SUPPORTED_DEPENDENCY_VERSIONS = {
2434
2435
  betterAuth: { exact: SUPPORTED_BETTER_AUTH_VERSION },
2435
2436
  hono: { exact: SUPPORTED_HONO_VERSION },
2436
2437
  opentelemetryApi: { exact: SUPPORTED_OPENTELEMETRY_API_VERSION },
2437
- tanstackReactQuery: { exact: SUPPORTED_TANSTACK_REACT_QUERY_VERSION }
2438
+ tanstackReactQuery: { exact: SUPPORTED_TANSTACK_REACT_QUERY_VERSION },
2439
+ zod: {
2440
+ exact: SUPPORTED_ZOD_VERSION,
2441
+ range: `^${SUPPORTED_ZOD_VERSION}`
2442
+ }
2438
2443
  };
2439
2444
  const PINNED_CONVEX_INSTALL_SPEC = `convex@${SUPPORTED_DEPENDENCY_VERSIONS.convex.exact}`;
2440
2445
  const BETTER_AUTH_INSTALL_SPEC = `better-auth@${SUPPORTED_DEPENDENCY_VERSIONS.betterAuth.exact}`;
2441
2446
  const PINNED_HONO_INSTALL_SPEC = `hono@${SUPPORTED_DEPENDENCY_VERSIONS.hono.exact}`;
2442
2447
  const OPENTELEMETRY_API_INSTALL_SPEC = `@opentelemetry/api@${SUPPORTED_DEPENDENCY_VERSIONS.opentelemetryApi.exact}`;
2443
2448
  const PINNED_TANSTACK_REACT_QUERY_INSTALL_SPEC = `@tanstack/react-query@${SUPPORTED_DEPENDENCY_VERSIONS.tanstackReactQuery.exact}`;
2449
+ const PINNED_ZOD_INSTALL_SPEC = `zod@${SUPPORTED_DEPENDENCY_VERSIONS.zod.range}`;
2444
2450
  const BASELINE_DEPENDENCY_INSTALL_SPECS = [
2445
2451
  PINNED_CONVEX_INSTALL_SPEC,
2446
- "zod",
2452
+ PINNED_ZOD_INSTALL_SPEC,
2447
2453
  PINNED_TANSTACK_REACT_QUERY_INSTALL_SPEC,
2448
2454
  PINNED_HONO_INSTALL_SPEC
2449
2455
  ];
@@ -226,8 +226,8 @@ declare const createApi: <Schema extends SchemaDefinition<any, any>, DataModel e
226
226
  }[] | undefined;
227
227
  offset?: number | undefined;
228
228
  sortBy?: {
229
- field: string;
230
229
  direction: "asc" | "desc";
230
+ field: string;
231
231
  } | undefined;
232
232
  paginationOpts: {
233
233
  id?: number;
@@ -1,4 +1,4 @@
1
- import { $ as GenericOrmCtx$1, $n as unique, $r as endsWith, $t as ManyConfig, A as ConvexDateMode, An as ConvexRankIndexBuilder, Ar as ReturningResult, At as MigrationManifestEntry, B as ConvexBytesBuilderInitial, Bn as rankIndex, Br as OrmSchemaRelations, Bt as defineMigration, C as ConvexNumberBuilderInitial, Ci as ColumnBuilderWithTableName, Cn as RlsRole, Cr as MutationReturning, Ct as MigrationStatusArgs, D as id, Di as IsPrimaryKey, Dn as ConvexAggregateIndexBuilderOn, Dr as PaginatedResult, Dt as MigrationDoc, E as ConvexIdBuilderInitial, Ei as HasDefault, En as ConvexAggregateIndexBuilder, Er as OrderDirection, Et as MigrationDirection, F as custom, Fn as ConvexVectorIndexBuilder, Fr as unsetToken, Ft as MigrationStateMap, G as ConvexBigIntBuilder, Gn as ConvexCheckConfig, Gr as ExpressionVisitor, Gt as OrmReader$1, H as ConvexBooleanBuilder, Hn as uniqueIndex, Hr as TableName, Ht as detectMigrationDrift, I as json, In as ConvexVectorIndexBuilderOn, Ir as Brand, It as MigrationStep, J as CountBackfillChunkArgs, Jn as ConvexUniqueConstraintBuilder, Jr as LogicalExpression, Jt as RlsMode, K as ConvexBigIntBuilderInitial, Kn as ConvexForeignKeyBuilder, Kr as FieldReference, Kt as OrmWriter$1, L as objectOf, Ln as ConvexVectorIndexConfig, Lr as Columns, Lt as MigrationTableName, M as ConvexCustomBuilder, Mn as ConvexSearchIndexBuilder, Mr as UpdateSet, Mt as MigrationPlan, N as ConvexCustomBuilderInitial, Nn as ConvexSearchIndexBuilderOn, Nr as VectorQueryConfig, Nt as MigrationRunStatus, O as ConvexDateBuilder, Oi as IsUnique, On as ConvexIndexBuilder, Or as PredicateWhereIndexConfig, Ot as MigrationDocContext, P as arrayOf, Pn as ConvexSearchIndexConfig, Pr as VectorSearchProvider, Pt as MigrationSet, Q as GenericOrm$1, Qn as foreignKey, Qr as contains, Qt as ExtractTablesWithRelations, R as unionOf, Rn as aggregateIndex, Rr as OrmSchemaExtensionTables, Rt as MigrationWriteMode, S as ConvexNumberBuilder, Si as ColumnBuilderTypeConfig, Sn as rlsPolicy, Sr as MutationResult, St as MigrationRunChunkArgs, T as ConvexIdBuilder, Ti as DrizzleEntity, Tn as rlsRole, Tr as OrderByClause, Tt as MigrationDefinition, U as ConvexBooleanBuilderInitial, Un as vectorIndex, Ur as SystemFields, Ut as DatabaseWithMutations, V as bytes, Vn as searchIndex, Vr as OrmSchemaTriggers, Vt as defineMigrationSet, W as boolean, Wn as ConvexCheckBuilder, Wr as BinaryExpression, Wt as DatabaseWithQuery, X as CountBackfillStatusArgs, Xn as ConvexUniqueConstraintConfig, Xr as and, Xt as extractRelationsConfig, Y as CountBackfillKickoffArgs, Yn as ConvexUniqueConstraintBuilderOn, Yr as UnaryExpression, Yt as EdgeMetadata, Z as CreateOrmOptions, Zn as check, Zr as between, Zt as ExtractTablesFromSchema, _ as ConvexTimestampMode, _i as startsWith, _n as deletion, _r as MutationExecuteConfig, _t as OrmTriggerContext, a as requireSchemaRelations, ai as inArray, an as TablesRelationalConfig, ar as AggregateResult, at as OrmWriterCtx, b as ConvexTextEnumBuilderInitial, bi as ColumnBuilderBaseConfig, bn as RlsPolicyConfig, br as MutationPaginateConfig, bt as MigrationCancelArgs, c as TableConfigResult, ci as isNull, cn as ConvexDeletionBuilder, cr as CountConfig, ct as ScheduledMutationBatchArgs, d as OrmNotFoundError, di as lte, dn as ConvexTableWithColumns, dr as FilterOperators, dt as scheduledDeleteFactory, ei as eq, en as OneConfig, er as ConvexTextBuilder, et as OrmApiResult, f as ConvexVectorBuilder, fi as ne, fn as DiscriminatorBuilderConfig, fr as GetColumnData, ft as SchemaExtension, g as ConvexTimestampBuilderInitial, gi as or, gn as convexTable, gr as InsertValue, gt as OrmTriggerChange, h as ConvexTimestampBuilder, hi as notInArray, hn as TableConfig, hr as InferSelectModel, ht as OrmTableTriggers, i as getSchemaTriggers, ii as ilike, in as TableRelationalConfig, ir as AggregateFieldValue, it as OrmReaderCtx, j as date, jn as ConvexRankIndexBuilderOn, jr as ReturningSelection, jt as MigrationMigrateOne, k as ConvexDateBuilderInitial, ki as NotNull, kn as ConvexIndexBuilderOn, kr as ReturningAll, kt as MigrationDriftIssue, l as getTableColumns, li as like, ln as ConvexDeletionConfig, lr as CountResult, lt as scheduledMutationBatchFactory, m as vector, mi as notBetween, mn as OrmLifecycleOperation, mr as InferModelFromColumns, mt as OrmBeforeResult, n as defineSchema, ni as gt, nn as RelationsBuilderColumnBase, nr as text, nt as OrmClientWithApi$1, o as asc, oi as isFieldReference, on as defineRelations, or as BuildQueryResult, ot as ResolveOrmSchema, p as ConvexVectorBuilderInitial, pi as not, pn as OrmLifecycleChange, pr as InferInsertModel, pt as defineSchemaExtension, q as bigint, qn as ConvexForeignKeyConfig, qr as FilterExpression, qt as RlsContext, r as getSchemaRelations, ri as gte, rn as RelationsBuilderColumnConfig, rr as AggregateConfig, rt as OrmFunctions, s as desc, si as isNotNull, sn as defineRelationsPart, sr as BuildRelationResult, st as createOrm, t as WhereClauseResult, ti as fieldRef, tn as RelationsBuilder, tr as ConvexTextBuilderInitial, tt as OrmClientBase$1, u as getTableConfig, ui as lt, un as ConvexTable, ur as DBQueryConfig, ut as ScheduledDeleteArgs, v as timestamp, vi as AnyColumn, vn as discriminator, vr as MutationExecuteResult, vt as OrmTriggers, w as integer, wi as ColumnDataType, wn as RlsRoleConfig, wr as MutationRunMode, wt as MigrationAppliedState, x as textEnum, xi as ColumnBuilderRuntimeConfig, xn as RlsPolicyToOption, xr as MutationPaginatedResult, xt as MigrationRunArgs, y as ConvexTextEnumBuilder, yi as ColumnBuilder, yn as RlsPolicy, yr as MutationExecutionMode, yt as defineTriggers, z as ConvexBytesBuilder, zn as index, zr as OrmSchemaExtensions, zt as buildMigrationPlan } from "../where-clause-compiler-CuH2JNxb.js";
1
+ import { $ as GenericOrmCtx$1, $n as unique, $r as endsWith, $t as ManyConfig, A as ConvexDateMode, An as ConvexRankIndexBuilder, Ar as ReturningResult, At as MigrationManifestEntry, B as ConvexBytesBuilderInitial, Bn as rankIndex, Br as OrmSchemaRelations, Bt as defineMigration, C as ConvexNumberBuilderInitial, Ci as ColumnBuilderWithTableName, Cn as RlsRole, Cr as MutationReturning, Ct as MigrationStatusArgs, D as id, Di as IsPrimaryKey, Dn as ConvexAggregateIndexBuilderOn, Dr as PaginatedResult, Dt as MigrationDoc, E as ConvexIdBuilderInitial, Ei as HasDefault, En as ConvexAggregateIndexBuilder, Er as OrderDirection, Et as MigrationDirection, F as custom, Fn as ConvexVectorIndexBuilder, Fr as unsetToken, Ft as MigrationStateMap, G as ConvexBigIntBuilder, Gn as ConvexCheckConfig, Gr as ExpressionVisitor, Gt as OrmReader$1, H as ConvexBooleanBuilder, Hn as uniqueIndex, Hr as TableName, Ht as detectMigrationDrift, I as json, In as ConvexVectorIndexBuilderOn, Ir as Brand, It as MigrationStep, J as CountBackfillChunkArgs, Jn as ConvexUniqueConstraintBuilder, Jr as LogicalExpression, Jt as RlsMode, K as ConvexBigIntBuilderInitial, Kn as ConvexForeignKeyBuilder, Kr as FieldReference, Kt as OrmWriter$1, L as objectOf, Ln as ConvexVectorIndexConfig, Lr as Columns, Lt as MigrationTableName, M as ConvexCustomBuilder, Mn as ConvexSearchIndexBuilder, Mr as UpdateSet, Mt as MigrationPlan, N as ConvexCustomBuilderInitial, Nn as ConvexSearchIndexBuilderOn, Nr as VectorQueryConfig, Nt as MigrationRunStatus, O as ConvexDateBuilder, Oi as IsUnique, On as ConvexIndexBuilder, Or as PredicateWhereIndexConfig, Ot as MigrationDocContext, P as arrayOf, Pn as ConvexSearchIndexConfig, Pr as VectorSearchProvider, Pt as MigrationSet, Q as GenericOrm$1, Qn as foreignKey, Qr as contains, Qt as ExtractTablesWithRelations, R as unionOf, Rn as aggregateIndex, Rr as OrmSchemaExtensionTables, Rt as MigrationWriteMode, S as ConvexNumberBuilder, Si as ColumnBuilderTypeConfig, Sn as rlsPolicy, Sr as MutationResult, St as MigrationRunChunkArgs, T as ConvexIdBuilder, Ti as DrizzleEntity, Tn as rlsRole, Tr as OrderByClause, Tt as MigrationDefinition, U as ConvexBooleanBuilderInitial, Un as vectorIndex, Ur as SystemFields, Ut as DatabaseWithMutations, V as bytes, Vn as searchIndex, Vr as OrmSchemaTriggers, Vt as defineMigrationSet, W as boolean, Wn as ConvexCheckBuilder, Wr as BinaryExpression, Wt as DatabaseWithQuery, X as CountBackfillStatusArgs, Xn as ConvexUniqueConstraintConfig, Xr as and, Xt as extractRelationsConfig, Y as CountBackfillKickoffArgs, Yn as ConvexUniqueConstraintBuilderOn, Yr as UnaryExpression, Yt as EdgeMetadata, Z as CreateOrmOptions, Zn as check, Zr as between, Zt as ExtractTablesFromSchema, _ as ConvexTimestampMode, _i as startsWith, _n as deletion, _r as MutationExecuteConfig, _t as OrmTriggerContext, a as requireSchemaRelations, ai as inArray, an as TablesRelationalConfig, ar as AggregateResult, at as OrmWriterCtx, b as ConvexTextEnumBuilderInitial, bi as ColumnBuilderBaseConfig, bn as RlsPolicyConfig, br as MutationPaginateConfig, bt as MigrationCancelArgs, c as TableConfigResult, ci as isNull, cn as ConvexDeletionBuilder, cr as CountConfig, ct as ScheduledMutationBatchArgs, d as OrmNotFoundError, di as lte, dn as ConvexTableWithColumns, dr as FilterOperators, dt as scheduledDeleteFactory, ei as eq, en as OneConfig, er as ConvexTextBuilder, et as OrmApiResult, f as ConvexVectorBuilder, fi as ne, fn as DiscriminatorBuilderConfig, fr as GetColumnData, ft as SchemaExtension, g as ConvexTimestampBuilderInitial, gi as or, gn as convexTable, gr as InsertValue, gt as OrmTriggerChange, h as ConvexTimestampBuilder, hi as notInArray, hn as TableConfig, hr as InferSelectModel, ht as OrmTableTriggers, i as getSchemaTriggers, ii as ilike, in as TableRelationalConfig, ir as AggregateFieldValue, it as OrmReaderCtx, j as date, jn as ConvexRankIndexBuilderOn, jr as ReturningSelection, jt as MigrationMigrateOne, k as ConvexDateBuilderInitial, ki as NotNull, kn as ConvexIndexBuilderOn, kr as ReturningAll, kt as MigrationDriftIssue, l as getTableColumns, li as like, ln as ConvexDeletionConfig, lr as CountResult, lt as scheduledMutationBatchFactory, m as vector, mi as notBetween, mn as OrmLifecycleOperation, mr as InferModelFromColumns, mt as OrmBeforeResult, n as defineSchema, ni as gt, nn as RelationsBuilderColumnBase, nr as text, nt as OrmClientWithApi$1, o as asc, oi as isFieldReference, on as defineRelations, or as BuildQueryResult, ot as ResolveOrmSchema, p as ConvexVectorBuilderInitial, pi as not, pn as OrmLifecycleChange, pr as InferInsertModel, pt as defineSchemaExtension, q as bigint, qn as ConvexForeignKeyConfig, qr as FilterExpression, qt as RlsContext, r as getSchemaRelations, ri as gte, rn as RelationsBuilderColumnConfig, rr as AggregateConfig, rt as OrmFunctions, s as desc, si as isNotNull, sn as defineRelationsPart, sr as BuildRelationResult, st as createOrm, t as WhereClauseResult, ti as fieldRef, tn as RelationsBuilder, tr as ConvexTextBuilderInitial, tt as OrmClientBase$1, u as getTableConfig, ui as lt, un as ConvexTable, ur as DBQueryConfig, ut as ScheduledDeleteArgs, v as timestamp, vi as AnyColumn, vn as discriminator, vr as MutationExecuteResult, vt as OrmTriggers, w as integer, wi as ColumnDataType, wn as RlsRoleConfig, wr as MutationRunMode, wt as MigrationAppliedState, x as textEnum, xi as ColumnBuilderRuntimeConfig, xn as RlsPolicyToOption, xr as MutationPaginatedResult, xt as MigrationRunArgs, y as ConvexTextEnumBuilder, yi as ColumnBuilder, yn as RlsPolicy, yr as MutationExecutionMode, yt as defineTriggers, z as ConvexBytesBuilder, zn as index, zr as OrmSchemaExtensions, zt as buildMigrationPlan } from "../where-clause-compiler-ner2TQ3O.js";
2
2
  import { i as pretendRequired, n as deprecated, r as pretend } from "../validators-vzRKjBJC.js";
3
3
  import { a as QueryCtxWithPreferredOrmQueryTable, i as QueryCtxWithOrmQueryTable, n as LookupByIdResultByCtx, o as getByIdWithOrmQueryFallback, r as QueryCtxWithOptionalOrmQueryTable, t as DocByCtx } from "../query-context-CFZqIvD7.js";
4
4
  import { DefineSchemaOptions, GenericDatabaseReader, GenericDatabaseWriter, GenericSchema, SchemaDefinition } from "convex/server";
@@ -3717,19 +3717,6 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
3717
3717
  readonly aggregate_bucket: ConvexTableWithColumns<{
3718
3718
  name: "aggregate_bucket";
3719
3719
  columns: {
3720
- count: ConvexNumberBuilderInitial<""> & {
3721
- _: {
3722
- notNull: true;
3723
- };
3724
- } & {
3725
- _: {
3726
- tableName: "aggregate_bucket";
3727
- };
3728
- } & {
3729
- _: {
3730
- fieldName: "count";
3731
- };
3732
- };
3733
3720
  tableKey: ConvexTextBuilderInitial<""> & {
3734
3721
  _: {
3735
3722
  notNull: true;
@@ -3756,7 +3743,7 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
3756
3743
  fieldName: "indexName";
3757
3744
  };
3758
3745
  };
3759
- updatedAt: ConvexNumberBuilderInitial<""> & {
3746
+ keyHash: ConvexTextBuilderInitial<""> & {
3760
3747
  _: {
3761
3748
  notNull: true;
3762
3749
  };
@@ -3766,10 +3753,14 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
3766
3753
  };
3767
3754
  } & {
3768
3755
  _: {
3769
- fieldName: "updatedAt";
3756
+ fieldName: "keyHash";
3770
3757
  };
3771
3758
  };
3772
- keyHash: ConvexTextBuilderInitial<""> & {
3759
+ keyParts: ConvexCustomBuilderInitial<"", convex_values0.VArray<any[], convex_values0.VId<any, any> | convex_values0.VString<any, any> | convex_values0.VFloat64<any, any> | convex_values0.VInt64<any, any> | convex_values0.VBoolean<any, any> | convex_values0.VNull<any, any> | convex_values0.VAny<any, any, string> | convex_values0.VLiteral<any, any> | convex_values0.VBytes<any, any> | convex_values0.VObject<any, Record<string, convex_values0.Validator<any, convex_values0.OptionalProperty, any>>, any, any> | convex_values0.VArray<any, convex_values0.Validator<any, "required", any>, any> | convex_values0.VRecord<any, convex_values0.Validator<string, "required", any>, convex_values0.Validator<any, "required", any>, any, any> | convex_values0.VUnion<any, convex_values0.Validator<any, "required", any>[], any, any>, "required">> & {
3760
+ _: {
3761
+ $type: convex_values0.Value[];
3762
+ };
3763
+ } & {
3773
3764
  _: {
3774
3765
  notNull: true;
3775
3766
  };
@@ -3779,14 +3770,10 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
3779
3770
  };
3780
3771
  } & {
3781
3772
  _: {
3782
- fieldName: "keyHash";
3773
+ fieldName: "keyParts";
3783
3774
  };
3784
3775
  };
3785
- keyParts: ConvexCustomBuilderInitial<"", convex_values0.VArray<any[], convex_values0.VId<any, any> | convex_values0.VString<any, any> | convex_values0.VFloat64<any, any> | convex_values0.VInt64<any, any> | convex_values0.VBoolean<any, any> | convex_values0.VNull<any, any> | convex_values0.VAny<any, any, string> | convex_values0.VLiteral<any, any> | convex_values0.VBytes<any, any> | convex_values0.VObject<any, Record<string, convex_values0.Validator<any, convex_values0.OptionalProperty, any>>, any, any> | convex_values0.VArray<any, convex_values0.Validator<any, "required", any>, any> | convex_values0.VRecord<any, convex_values0.Validator<string, "required", any>, convex_values0.Validator<any, "required", any>, any, any> | convex_values0.VUnion<any, convex_values0.Validator<any, "required", any>[], any, any>, "required">> & {
3786
- _: {
3787
- $type: convex_values0.Value[];
3788
- };
3789
- } & {
3776
+ count: ConvexNumberBuilderInitial<""> & {
3790
3777
  _: {
3791
3778
  notNull: true;
3792
3779
  };
@@ -3796,7 +3783,7 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
3796
3783
  };
3797
3784
  } & {
3798
3785
  _: {
3799
- fieldName: "keyParts";
3786
+ fieldName: "count";
3800
3787
  };
3801
3788
  };
3802
3789
  sumValues: (NotNull<$Type<ConvexCustomBuilderInitial<"", convex_values0.VRecord<Record<string, any>, convex_values0.VString<string, "required">, convex_values0.VId<any, any> | convex_values0.VString<any, any> | convex_values0.VFloat64<any, any> | convex_values0.VInt64<any, any> | convex_values0.VBoolean<any, any> | convex_values0.VNull<any, any> | convex_values0.VAny<any, any, string> | convex_values0.VLiteral<any, any> | convex_values0.VBytes<any, any> | convex_values0.VObject<any, Record<string, convex_values0.Validator<any, convex_values0.OptionalProperty, any>>, any, any> | convex_values0.VArray<any, convex_values0.Validator<any, "required", any>, any> | convex_values0.VRecord<any, convex_values0.Validator<string, "required", any>, convex_values0.Validator<any, "required", any>, any, any> | convex_values0.VUnion<any, convex_values0.Validator<any, "required", any>[], any, any>, "required", string>>, Record<string, number>>> | NotNull<$Type<ConvexCustomBuilderInitial<"", convex_values0.VId<any, any> | convex_values0.VString<any, any> | convex_values0.VFloat64<any, any> | convex_values0.VInt64<any, any> | convex_values0.VBoolean<any, any> | convex_values0.VNull<any, any> | convex_values0.VAny<any, any, string> | convex_values0.VLiteral<any, any> | convex_values0.VBytes<any, any> | convex_values0.VObject<any, Record<string, convex_values0.Validator<any, convex_values0.OptionalProperty, any>>, any, any> | convex_values0.VArray<any, convex_values0.Validator<any, "required", any>, any> | convex_values0.VRecord<any, convex_values0.Validator<string, "required", any>, convex_values0.Validator<any, "required", any>, any, any> | convex_values0.VUnion<any, convex_values0.Validator<any, "required", any>[], any, any>>, Record<string, number>>>) & {
@@ -3817,28 +3804,28 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
3817
3804
  fieldName: "nonNullCountValues";
3818
3805
  };
3819
3806
  };
3820
- };
3821
- }, {
3822
- by_creation_time: ["_creationTime"];
3823
- by_table_index_hash: ["tableKey", "indexName", "keyHash", "_creationTime"];
3824
- by_table_index: ["tableKey", "indexName", "_creationTime"];
3825
- }, {}, {}, {}>;
3826
- readonly aggregate_member: ConvexTableWithColumns<{
3827
- name: "aggregate_member";
3828
- columns: {
3829
- kind: ConvexTextBuilderInitial<""> & {
3807
+ updatedAt: ConvexNumberBuilderInitial<""> & {
3830
3808
  _: {
3831
3809
  notNull: true;
3832
3810
  };
3833
3811
  } & {
3834
3812
  _: {
3835
- tableName: "aggregate_member";
3813
+ tableName: "aggregate_bucket";
3836
3814
  };
3837
3815
  } & {
3838
3816
  _: {
3839
- fieldName: "kind";
3817
+ fieldName: "updatedAt";
3840
3818
  };
3841
3819
  };
3820
+ };
3821
+ }, {
3822
+ by_creation_time: ["_creationTime"];
3823
+ by_table_index_hash: ["tableKey", "indexName", "keyHash", "_creationTime"];
3824
+ by_table_index: ["tableKey", "indexName", "_creationTime"];
3825
+ }, {}, {}, {}>;
3826
+ readonly aggregate_member: ConvexTableWithColumns<{
3827
+ name: "aggregate_member";
3828
+ columns: {
3842
3829
  tableKey: ConvexTextBuilderInitial<""> & {
3843
3830
  _: {
3844
3831
  notNull: true;
@@ -3865,19 +3852,6 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
3865
3852
  fieldName: "indexName";
3866
3853
  };
3867
3854
  };
3868
- updatedAt: ConvexNumberBuilderInitial<""> & {
3869
- _: {
3870
- notNull: true;
3871
- };
3872
- } & {
3873
- _: {
3874
- tableName: "aggregate_member";
3875
- };
3876
- } & {
3877
- _: {
3878
- fieldName: "updatedAt";
3879
- };
3880
- };
3881
3855
  keyHash: ConvexTextBuilderInitial<""> & {
3882
3856
  _: {
3883
3857
  notNull: true;
@@ -3926,6 +3900,32 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
3926
3900
  fieldName: "nonNullCountValues";
3927
3901
  };
3928
3902
  };
3903
+ updatedAt: ConvexNumberBuilderInitial<""> & {
3904
+ _: {
3905
+ notNull: true;
3906
+ };
3907
+ } & {
3908
+ _: {
3909
+ tableName: "aggregate_member";
3910
+ };
3911
+ } & {
3912
+ _: {
3913
+ fieldName: "updatedAt";
3914
+ };
3915
+ };
3916
+ kind: ConvexTextBuilderInitial<""> & {
3917
+ _: {
3918
+ notNull: true;
3919
+ };
3920
+ } & {
3921
+ _: {
3922
+ tableName: "aggregate_member";
3923
+ };
3924
+ } & {
3925
+ _: {
3926
+ fieldName: "kind";
3927
+ };
3928
+ };
3929
3929
  docId: ConvexTextBuilderInitial<""> & {
3930
3930
  _: {
3931
3931
  notNull: true;
@@ -3992,7 +3992,11 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
3992
3992
  readonly aggregate_extrema: ConvexTableWithColumns<{
3993
3993
  name: "aggregate_extrema";
3994
3994
  columns: {
3995
- count: ConvexNumberBuilderInitial<""> & {
3995
+ value: ConvexCustomBuilderInitial<"", convex_values0.VAny<any, "required", string>> & {
3996
+ _: {
3997
+ $type: convex_values0.Value;
3998
+ };
3999
+ } & {
3996
4000
  _: {
3997
4001
  notNull: true;
3998
4002
  };
@@ -4002,14 +4006,10 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
4002
4006
  };
4003
4007
  } & {
4004
4008
  _: {
4005
- fieldName: "count";
4009
+ fieldName: "value";
4006
4010
  };
4007
4011
  };
4008
- value: ConvexCustomBuilderInitial<"", convex_values0.VAny<any, "required", string>> & {
4009
- _: {
4010
- $type: convex_values0.Value;
4011
- };
4012
- } & {
4012
+ tableKey: ConvexTextBuilderInitial<""> & {
4013
4013
  _: {
4014
4014
  notNull: true;
4015
4015
  };
@@ -4019,10 +4019,10 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
4019
4019
  };
4020
4020
  } & {
4021
4021
  _: {
4022
- fieldName: "value";
4022
+ fieldName: "tableKey";
4023
4023
  };
4024
4024
  };
4025
- tableKey: ConvexTextBuilderInitial<""> & {
4025
+ indexName: ConvexTextBuilderInitial<""> & {
4026
4026
  _: {
4027
4027
  notNull: true;
4028
4028
  };
@@ -4032,10 +4032,10 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
4032
4032
  };
4033
4033
  } & {
4034
4034
  _: {
4035
- fieldName: "tableKey";
4035
+ fieldName: "indexName";
4036
4036
  };
4037
4037
  };
4038
- indexName: ConvexTextBuilderInitial<""> & {
4038
+ keyHash: ConvexTextBuilderInitial<""> & {
4039
4039
  _: {
4040
4040
  notNull: true;
4041
4041
  };
@@ -4045,10 +4045,10 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
4045
4045
  };
4046
4046
  } & {
4047
4047
  _: {
4048
- fieldName: "indexName";
4048
+ fieldName: "keyHash";
4049
4049
  };
4050
4050
  };
4051
- updatedAt: ConvexNumberBuilderInitial<""> & {
4051
+ count: ConvexNumberBuilderInitial<""> & {
4052
4052
  _: {
4053
4053
  notNull: true;
4054
4054
  };
@@ -4058,10 +4058,10 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
4058
4058
  };
4059
4059
  } & {
4060
4060
  _: {
4061
- fieldName: "updatedAt";
4061
+ fieldName: "count";
4062
4062
  };
4063
4063
  };
4064
- keyHash: ConvexTextBuilderInitial<""> & {
4064
+ updatedAt: ConvexNumberBuilderInitial<""> & {
4065
4065
  _: {
4066
4066
  notNull: true;
4067
4067
  };
@@ -4071,7 +4071,7 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
4071
4071
  };
4072
4072
  } & {
4073
4073
  _: {
4074
- fieldName: "keyHash";
4074
+ fieldName: "updatedAt";
4075
4075
  };
4076
4076
  };
4077
4077
  fieldName: ConvexTextBuilderInitial<""> & {
@@ -4244,7 +4244,7 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
4244
4244
  readonly aggregate_state: ConvexTableWithColumns<{
4245
4245
  name: "aggregate_state";
4246
4246
  columns: {
4247
- kind: ConvexTextBuilderInitial<""> & {
4247
+ tableKey: ConvexTextBuilderInitial<""> & {
4248
4248
  _: {
4249
4249
  notNull: true;
4250
4250
  };
@@ -4254,19 +4254,23 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
4254
4254
  };
4255
4255
  } & {
4256
4256
  _: {
4257
- fieldName: "kind";
4257
+ fieldName: "tableKey";
4258
4258
  };
4259
4259
  };
4260
- cursor: ConvexTextBuilderInitial<""> & {
4260
+ indexName: ConvexTextBuilderInitial<""> & {
4261
+ _: {
4262
+ notNull: true;
4263
+ };
4264
+ } & {
4261
4265
  _: {
4262
4266
  tableName: "aggregate_state";
4263
4267
  };
4264
4268
  } & {
4265
4269
  _: {
4266
- fieldName: "cursor";
4270
+ fieldName: "indexName";
4267
4271
  };
4268
4272
  };
4269
- tableKey: ConvexTextBuilderInitial<""> & {
4273
+ updatedAt: ConvexNumberBuilderInitial<""> & {
4270
4274
  _: {
4271
4275
  notNull: true;
4272
4276
  };
@@ -4276,10 +4280,10 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
4276
4280
  };
4277
4281
  } & {
4278
4282
  _: {
4279
- fieldName: "tableKey";
4283
+ fieldName: "updatedAt";
4280
4284
  };
4281
4285
  };
4282
- indexName: ConvexTextBuilderInitial<""> & {
4286
+ kind: ConvexTextBuilderInitial<""> & {
4283
4287
  _: {
4284
4288
  notNull: true;
4285
4289
  };
@@ -4289,7 +4293,7 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
4289
4293
  };
4290
4294
  } & {
4291
4295
  _: {
4292
- fieldName: "indexName";
4296
+ fieldName: "kind";
4293
4297
  };
4294
4298
  };
4295
4299
  keyDefinitionHash: ConvexTextBuilderInitial<""> & {
@@ -4331,20 +4335,16 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
4331
4335
  fieldName: "status";
4332
4336
  };
4333
4337
  };
4334
- processed: ConvexNumberBuilderInitial<""> & {
4335
- _: {
4336
- notNull: true;
4337
- };
4338
- } & {
4338
+ cursor: ConvexTextBuilderInitial<""> & {
4339
4339
  _: {
4340
4340
  tableName: "aggregate_state";
4341
4341
  };
4342
4342
  } & {
4343
4343
  _: {
4344
- fieldName: "processed";
4344
+ fieldName: "cursor";
4345
4345
  };
4346
4346
  };
4347
- startedAt: ConvexNumberBuilderInitial<""> & {
4347
+ processed: ConvexNumberBuilderInitial<""> & {
4348
4348
  _: {
4349
4349
  notNull: true;
4350
4350
  };
@@ -4354,10 +4354,10 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
4354
4354
  };
4355
4355
  } & {
4356
4356
  _: {
4357
- fieldName: "startedAt";
4357
+ fieldName: "processed";
4358
4358
  };
4359
4359
  };
4360
- updatedAt: ConvexNumberBuilderInitial<""> & {
4360
+ startedAt: ConvexNumberBuilderInitial<""> & {
4361
4361
  _: {
4362
4362
  notNull: true;
4363
4363
  };
@@ -4367,7 +4367,7 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
4367
4367
  };
4368
4368
  } & {
4369
4369
  _: {
4370
- fieldName: "updatedAt";
4370
+ fieldName: "startedAt";
4371
4371
  };
4372
4372
  };
4373
4373
  completedAt: ConvexNumberBuilderInitial<""> & {
@@ -4398,22 +4398,17 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
4398
4398
  readonly migration_state: ConvexTableWithColumns<{
4399
4399
  name: "migration_state";
4400
4400
  columns: {
4401
- direction: ConvexTextBuilderInitial<""> & {
4401
+ updatedAt: ConvexNumberBuilderInitial<""> & {
4402
4402
  _: {
4403
- tableName: "migration_state";
4403
+ notNull: true;
4404
4404
  };
4405
4405
  } & {
4406
- _: {
4407
- fieldName: "direction";
4408
- };
4409
- };
4410
- cursor: ConvexTextBuilderInitial<""> & {
4411
4406
  _: {
4412
4407
  tableName: "migration_state";
4413
4408
  };
4414
4409
  } & {
4415
4410
  _: {
4416
- fieldName: "cursor";
4411
+ fieldName: "updatedAt";
4417
4412
  };
4418
4413
  };
4419
4414
  status: ConvexTextBuilderInitial<""> & {
@@ -4429,6 +4424,15 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
4429
4424
  fieldName: "status";
4430
4425
  };
4431
4426
  };
4427
+ cursor: ConvexTextBuilderInitial<""> & {
4428
+ _: {
4429
+ tableName: "migration_state";
4430
+ };
4431
+ } & {
4432
+ _: {
4433
+ fieldName: "cursor";
4434
+ };
4435
+ };
4432
4436
  processed: ConvexNumberBuilderInitial<""> & {
4433
4437
  _: {
4434
4438
  notNull: true;
@@ -4451,19 +4455,6 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
4451
4455
  fieldName: "startedAt";
4452
4456
  };
4453
4457
  };
4454
- updatedAt: ConvexNumberBuilderInitial<""> & {
4455
- _: {
4456
- notNull: true;
4457
- };
4458
- } & {
4459
- _: {
4460
- tableName: "migration_state";
4461
- };
4462
- } & {
4463
- _: {
4464
- fieldName: "updatedAt";
4465
- };
4466
- };
4467
4458
  completedAt: ConvexNumberBuilderInitial<""> & {
4468
4459
  _: {
4469
4460
  tableName: "migration_state";
@@ -4521,6 +4512,15 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
4521
4512
  fieldName: "applied";
4522
4513
  };
4523
4514
  };
4515
+ direction: ConvexTextBuilderInitial<""> & {
4516
+ _: {
4517
+ tableName: "migration_state";
4518
+ };
4519
+ } & {
4520
+ _: {
4521
+ fieldName: "direction";
4522
+ };
4523
+ };
4524
4524
  runId: ConvexTextBuilderInitial<""> & {
4525
4525
  _: {
4526
4526
  tableName: "migration_state";
@@ -4552,7 +4552,7 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
4552
4552
  readonly migration_run: ConvexTableWithColumns<{
4553
4553
  name: "migration_run";
4554
4554
  columns: {
4555
- direction: ConvexTextBuilderInitial<""> & {
4555
+ updatedAt: ConvexNumberBuilderInitial<""> & {
4556
4556
  _: {
4557
4557
  notNull: true;
4558
4558
  };
@@ -4562,7 +4562,7 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
4562
4562
  };
4563
4563
  } & {
4564
4564
  _: {
4565
- fieldName: "direction";
4565
+ fieldName: "updatedAt";
4566
4566
  };
4567
4567
  };
4568
4568
  status: ConvexTextBuilderInitial<""> & {
@@ -4591,35 +4591,35 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
4591
4591
  fieldName: "startedAt";
4592
4592
  };
4593
4593
  };
4594
- updatedAt: ConvexNumberBuilderInitial<""> & {
4595
- _: {
4596
- notNull: true;
4597
- };
4598
- } & {
4594
+ completedAt: ConvexNumberBuilderInitial<""> & {
4599
4595
  _: {
4600
4596
  tableName: "migration_run";
4601
4597
  };
4602
4598
  } & {
4603
4599
  _: {
4604
- fieldName: "updatedAt";
4600
+ fieldName: "completedAt";
4605
4601
  };
4606
4602
  };
4607
- completedAt: ConvexNumberBuilderInitial<""> & {
4603
+ lastError: ConvexTextBuilderInitial<""> & {
4608
4604
  _: {
4609
4605
  tableName: "migration_run";
4610
4606
  };
4611
4607
  } & {
4612
4608
  _: {
4613
- fieldName: "completedAt";
4609
+ fieldName: "lastError";
4614
4610
  };
4615
4611
  };
4616
- lastError: ConvexTextBuilderInitial<""> & {
4612
+ direction: ConvexTextBuilderInitial<""> & {
4613
+ _: {
4614
+ notNull: true;
4615
+ };
4616
+ } & {
4617
4617
  _: {
4618
4618
  tableName: "migration_run";
4619
4619
  };
4620
4620
  } & {
4621
4621
  _: {
4622
- fieldName: "lastError";
4622
+ fieldName: "direction";
4623
4623
  };
4624
4624
  };
4625
4625
  runId: ConvexTextBuilderInitial<""> & {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kitcn",
3
- "version": "0.12.6",
3
+ "version": "0.12.7",
4
4
  "description": "kitcn - React Query integration and CLI tools for Convex",
5
5
  "keywords": [
6
6
  "convex",
@@ -1,5 +1,8 @@
1
1
  ## 8.B TanStack Start
2
2
 
3
+ CLI-first flow: scaffold the app, run `kitcn add auth --yes`, then treat the
4
+ files below as the generated reference output. They are not a separate manual
5
+ install path.
3
6
  ### 8.B.1 Auth client + auth server helpers
4
7
 
5
8
  **Create:** `src/lib/convex/auth-client.ts`