kitcn 0.33.3 → 0.33.4

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # kitcn
2
2
 
3
+ ## 0.33.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [#465](https://github.com/udecode/kitcn/pull/465) [`5dc460b`](https://github.com/udecode/kitcn/commit/5dc460ba0ae760ea96dba052496a01ffb61f88c3) Thanks [@tjramage](https://github.com/tjramage)! - ## Patches
8
+
9
+ - Fix spurious internal errors during sessionless social sign-in redirects
10
+ while preserving Convex JWT cookie issuance for authenticated sessions.
11
+
3
12
  ## 0.33.3
4
13
 
5
14
  ### Patch Changes
@@ -1,5 +1,5 @@
1
1
  import { Vn as ConvexTextBuilderInitial, Zt as ConvexTableWithColumns } from "../capabilities-Bxzoofl4.js";
2
- import { C as ConvexNumberBuilderInitial, E as ConvexIdBuilderInitial, N as ConvexCustomBuilderInitial } from "../where-clause-compiler-jhCEPHxi.js";
2
+ import { C as ConvexNumberBuilderInitial, E as ConvexIdBuilderInitial, N as ConvexCustomBuilderInitial } from "../where-clause-compiler-D2ifnjjj.js";
3
3
  import * as convex_values0 from "convex/values";
4
4
  import { GenericId, Infer, Value } from "convex/values";
5
5
  import { DocumentByName, GenericDataModel, GenericDatabaseReader, GenericDatabaseWriter, TableNamesInDataModel } from "convex/server";
@@ -1,2 +1,2 @@
1
- import { C as GenericAuthTriggerHandlers, S as GenericAuthTriggerChange, T as defineAuth, b as GenericAuthBeforeResult, i as getGeneratedAuthDisabledReason, n as GeneratedAuthDisabledReasonKind, r as createDisabledAuthRuntime, t as AuthRuntime, w as GenericAuthTriggers, x as GenericAuthDefinition, y as BetterAuthOptionsWithoutDatabase } from "../../generated-contract-disabled-BPjuEPZD.js";
1
+ import { C as GenericAuthTriggerHandlers, S as GenericAuthTriggerChange, T as defineAuth, b as GenericAuthBeforeResult, i as getGeneratedAuthDisabledReason, n as GeneratedAuthDisabledReasonKind, r as createDisabledAuthRuntime, t as AuthRuntime, w as GenericAuthTriggers, x as GenericAuthDefinition, y as BetterAuthOptionsWithoutDatabase } from "../../generated-contract-disabled-PdNGvNYP.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-BkNjkDCk.js";
2
2
  import { t as GetAuth } from "../types-ex0-J-SC.js";
3
3
  import { t as GenericCtx } from "../context-utils-Cbv4r0AA.js";
4
- import { C as GenericAuthTriggerHandlers, S as GenericAuthTriggerChange, T as defineAuth, _ as updateManyHandler, a as AuthFunctions, b as GenericAuthBeforeResult, c as consumeOneHandler, d as createHandler, f as deleteManyHandler, g as incrementOneHandler, h as findOneHandler, i as getGeneratedAuthDisabledReason, l as countHandler, m as findManyHandler, n as GeneratedAuthDisabledReasonKind, o as Triggers, p as deleteOneHandler, r as createDisabledAuthRuntime, s as createClient, t as AuthRuntime, u as createApi, v as updateOneHandler, w as GenericAuthTriggers, x as GenericAuthDefinition, y as BetterAuthOptionsWithoutDatabase } from "../generated-contract-disabled-BPjuEPZD.js";
4
+ import { C as GenericAuthTriggerHandlers, S as GenericAuthTriggerChange, T as defineAuth, _ as updateManyHandler, a as AuthFunctions, b as GenericAuthBeforeResult, c as consumeOneHandler, d as createHandler, f as deleteManyHandler, g as incrementOneHandler, h as findOneHandler, i as getGeneratedAuthDisabledReason, l as countHandler, m as findManyHandler, n as GeneratedAuthDisabledReasonKind, o as Triggers, p as deleteOneHandler, r as createDisabledAuthRuntime, s as createClient, t as AuthRuntime, u as createApi, v as updateOneHandler, w as GenericAuthTriggers, x as GenericAuthDefinition, y as BetterAuthOptionsWithoutDatabase } from "../generated-contract-disabled-PdNGvNYP.js";
5
5
  import * as convex_values0 from "convex/values";
6
6
  import { Infer } from "convex/values";
7
7
  import { AuthConfig, DocumentByName, GenericDataModel, GenericMutationCtx, GenericQueryCtx, GenericSchema, PaginationOptions, PaginationResult, SchemaDefinition, TableNamesInDataModel } from "convex/server";
@@ -121,7 +121,6 @@ declare const adapterWhereValidator: convex_values0.VObject<{
121
121
  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>;
122
122
  }, "required", "mode" | "connector" | "field" | "operator" | "value">;
123
123
  declare const adapterArgsValidator: convex_values0.VObject<{
124
- limit?: number | undefined;
125
124
  where?: {
126
125
  mode?: "sensitive" | "insensitive" | undefined;
127
126
  connector?: "AND" | "OR" | undefined;
@@ -129,6 +128,7 @@ declare const adapterArgsValidator: convex_values0.VObject<{
129
128
  field: string;
130
129
  value: string | number | boolean | string[] | number[] | null;
131
130
  }[] | undefined;
131
+ limit?: number | undefined;
132
132
  offset?: number | undefined;
133
133
  select?: string[] | undefined;
134
134
  sortBy?: {
@@ -167,7 +167,7 @@ declare const adapterArgsValidator: convex_values0.VObject<{
167
167
  operator: convex_values0.VUnion<"lt" | "lte" | "gt" | "gte" | "eq" | "in" | "not_in" | "ne" | "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>;
168
168
  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>;
169
169
  }, "required", "mode" | "connector" | "field" | "operator" | "value">, "optional">;
170
- }, "required", "limit" | "model" | "where" | "offset" | "select" | "sortBy" | "sortBy.field" | "sortBy.direction">;
170
+ }, "required", "model" | "where" | "limit" | "offset" | "select" | "sortBy" | "sortBy.field" | "sortBy.direction">;
171
171
  declare const hasUniqueFields: (betterAuthSchema: BetterAuthDBSchema, model: string, input: Record<string, any>) => boolean;
172
172
  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>;
173
173
  declare const selectFields: <T extends TableNamesInDataModel<GenericDataModel>, D extends DocumentByName<GenericDataModel, T>>(doc: D | null, select?: string[]) => D | null;
@@ -5,7 +5,7 @@ import { n as createGeneratedFunctionReference, o as isQueryCtx, s as isRunMutat
5
5
  import { i as customQuery, n as customCtx, r as customMutation } from "../customFunctions-X_B4kET8.js";
6
6
  import { C as eq, o as getAggregateIndexes } from "../index-utils-DvK7P6Q1.js";
7
7
  import { c as stream, f as unsetToken, s as mergedStream, t as getByIdWithOrmQueryFallback } from "../query-context-DQLv58LH.js";
8
- import { n as convex } from "../convex-plugin-AbNQl1Sg.js";
8
+ import { n as convex } from "../convex-plugin-UGuLZPyQ.js";
9
9
  import { v } from "convex/values";
10
10
  import { internalActionGeneric, internalMutationGeneric, internalQueryGeneric, paginationOptsValidator } from "convex/server";
11
11
  import { createAdapterFactory } from "better-auth/adapters";
@@ -1,4 +1,4 @@
1
- import { t as getToken } from "../../token-CuJopBdP.js";
1
+ import { t as getToken } from "../../token-CgIvcEZX.js";
2
2
  import { n as defaultIsUnauthorized } from "../../error-CLgc9khF.js";
3
3
  import { t as createCallerFactory } from "../../caller-factory-CEKbQdGY.js";
4
4
 
@@ -1,4 +1,4 @@
1
- import { t as getToken } from "../../../token-CuJopBdP.js";
1
+ import { t as getToken } from "../../../token-CgIvcEZX.js";
2
2
  import { n as defaultIsUnauthorized } from "../../../error-CLgc9khF.js";
3
3
  import { t as createCallerFactory } from "../../../caller-factory-CEKbQdGY.js";
4
4
  import { stripIndent } from "common-tags";
@@ -5,6 +5,10 @@ import { jwt } from "better-auth/plugins/jwt";
5
5
 
6
6
  //#region src/auth/internal/convex-plugin.ts
7
7
  const JWT_COOKIE_NAME = "convex_jwt";
8
+ const getJwtCookieToken = async (session, getToken) => {
9
+ if (!session) return;
10
+ return await getToken({ headers: new Headers() });
11
+ };
8
12
  const getJwksAlg = (authProvider) => {
9
13
  const isCustomJwt = "type" in authProvider && authProvider.type === "customJwt";
10
14
  if (isCustomJwt && authProvider.algorithm !== "RS256") throw new Error("Only RS256 is supported for custom JWT with Better Auth");
@@ -162,19 +166,22 @@ const convex = (opts) => {
162
166
  return Boolean(ctx.path?.startsWith("/sign-in") || ctx.path?.startsWith("/sign-up") || ctx.path?.startsWith("/callback") || ctx.path?.startsWith("/oauth2/callback") || ctx.path?.startsWith("/magic-link/verify") || ctx.path?.startsWith("/email-otp/verify-email") || ctx.path?.startsWith("/phone-number/verify") || ctx.path?.startsWith("/siwe/verify") || ctx.path?.startsWith("/update-session") || ctx.path?.startsWith("/get-session") && ctx.context.session);
163
167
  },
164
168
  handler: createAuthMiddleware(async (ctx) => {
169
+ if (!(ctx.context.session ?? ctx.context.newSession)) return;
165
170
  const originalSession = ctx.context.session;
166
171
  try {
167
172
  ctx.context.session = ctx.context.session ?? ctx.context.newSession;
168
- const { token } = await jwt$1.endpoints.getToken({
173
+ const tokenResponse = await getJwtCookieToken(ctx.context.session, async ({ headers }) => await jwt$1.endpoints.getToken({
169
174
  ...ctx,
170
175
  asResponse: false,
171
- headers: {},
176
+ headers,
172
177
  method: "GET",
173
178
  returnHeaders: false,
174
179
  returnStatus: false
175
- });
176
- const jwtCookie = ctx.context.createAuthCookie(JWT_COOKIE_NAME, { maxAge: jwtExpirationSeconds });
177
- ctx.setCookie(jwtCookie.name, token, jwtCookie.attributes);
180
+ }));
181
+ if (tokenResponse) {
182
+ const jwtCookie = ctx.context.createAuthCookie(JWT_COOKIE_NAME, { maxAge: jwtExpirationSeconds });
183
+ ctx.setCookie(jwtCookie.name, tokenResponse.token, jwtCookie.attributes);
184
+ }
178
185
  } catch (_error) {}
179
186
  ctx.context.session = originalSession;
180
187
  })
@@ -278,7 +278,6 @@ declare const createApi: <Schema extends SchemaDefinition<any, any>, DataModel e
278
278
  };
279
279
  }, Promise<Record<string, unknown> | undefined>>;
280
280
  findMany: convex_server0.RegisteredQuery<"internal", {
281
- limit?: number | undefined;
282
281
  join?: any;
283
282
  where?: {
284
283
  mode?: "sensitive" | "insensitive" | undefined;
@@ -287,6 +286,7 @@ declare const createApi: <Schema extends SchemaDefinition<any, any>, DataModel e
287
286
  field: string;
288
287
  value: string | number | boolean | string[] | number[] | null;
289
288
  }[] | undefined;
289
+ limit?: number | undefined;
290
290
  offset?: number | undefined;
291
291
  sortBy?: {
292
292
  field: string;
@@ -317,7 +317,6 @@ declare const createApi: <Schema extends SchemaDefinition<any, any>, DataModel e
317
317
  getLatestJwks: convex_server0.RegisteredAction<"internal", {}, Promise<unknown>>;
318
318
  incrementOne: convex_server0.RegisteredMutation<"internal", {
319
319
  input: {
320
- set?: Record<string, any> | undefined;
321
320
  where?: {
322
321
  mode?: "sensitive" | "insensitive" | undefined;
323
322
  connector?: "AND" | "OR" | undefined;
@@ -325,6 +324,7 @@ declare const createApi: <Schema extends SchemaDefinition<any, any>, DataModel e
325
324
  field: string;
326
325
  value: string | number | boolean | string[] | number[] | null;
327
326
  }[] | undefined;
327
+ set?: Record<string, any> | undefined;
328
328
  model: string;
329
329
  increment: Record<string, number>;
330
330
  };
@@ -1,5 +1,5 @@
1
1
  import { $n as TableName, $t as OrmLifecycleChange, An as ConvexCheckBuilder, At as UpdateSet, Bn as ConvexTextBuilder, Br as IsPrimaryKey, Bt as RelationsBuilderColumnBase, C as MigrationStep, Cn as ConvexVectorIndexConfig, Cr as not, Ct as OrderByClause, D as defineMigration, Dn as searchIndex, Dr as startsWith, Dt as ReturningAll, E as buildMigrationPlan, En as rankIndex, Er as or, Et as PredicateWhereIndexConfig, Fn as ConvexUniqueConstraintBuilderOn, Fr as ColumnBuilderTypeConfig, Ft as ExtractTablesFromSchema, Gn as Columns, Gt as TablesRelationalConfig, H as RlsMode, Hn as text, Hr as NotNull, In as ConvexUniqueConstraintConfig, Ir as ColumnBuilderWithTableName, It as ExtractTablesWithRelations, Jn as OrmSchemaExtensionTables, Jt as ConvexDeletionBuilder, Kt as defineRelations, Ln as check, Lr as ColumnDataType, Lt as ManyConfig, M as DatabaseWithQuery, Mn as ConvexForeignKeyBuilder, Mr as ColumnBuilder, Mt as VectorSearchProvider, N as OrmReader$1, Nn as ConvexForeignKeyConfig, Nr as ColumnBuilderBaseConfig, Nt as unsetToken, O as defineMigrationSet, On as uniqueIndex, Ot as ReturningResult, P as OrmWriter$1, Pn as ConvexUniqueConstraintBuilder, Pr as ColumnBuilderRuntimeConfig, Qn as OrmSchemaTriggers, Qt as DiscriminatorBuilderConfig, Rn as foreignKey, Rr as DrizzleEntity, Rt as OneConfig, S as MigrationStateMap, Sn as ConvexVectorIndexBuilderOn, Sr as ne, St as MutationRunMode, T as MigrationWriteMode, Tn as index, Tr as notInArray, Tt as PaginatedResult, U as EdgeMetadata, V as RlsContext, Vn as ConvexTextBuilderInitial, Vr as IsUnique, Vt as RelationsBuilderColumnConfig, W as extractRelationsConfig, Wn as Brand, Wt as TableRelationalConfig, Xn as OrmSchemaExtensions, Xt as ConvexTable, Yt as ConvexDeletionConfig, Zn as OrmSchemaRelations, Zt as ConvexTableWithColumns, _ as MigrationManifestEntry, _n as ConvexRankIndexBuilderOn, _r as isNotNull, _t as MutationExecutionMode, an as RlsPolicy, ar as UnaryExpression, at as BuildRelationResult, b as MigrationRunStatus, bn as ConvexSearchIndexConfig, br as lt, bt as MutationResult, cn as rlsPolicy, cr as contains, ct as DBQueryConfig, d as MigrationAppliedState, dn as rlsRole, dr as fieldRef, dt as InferInsertModel, en as OrmLifecycleOperation, er as BinaryExpression, f as MigrationDefinition, fn as ConvexAggregateIndexBuilder, fr as gt, ft as InferModelFromColumns, g as MigrationDriftIssue, gn as ConvexRankIndexBuilder, gr as isFieldReference, gt as MutationExecuteResult, h as MigrationDocContext, hn as ConvexIndexBuilderOn, hr as inArray, ht as MutationExecuteConfig, i as OrmMigrationCapability, in as discriminator, ir as LogicalExpression, it as BuildQueryResult, j as DatabaseWithMutations, jn as ConvexCheckConfig, jr as AnyColumn, jt as VectorQueryConfig, k as detectMigrationDrift, kn as vectorIndex, kr as SystemFields, kt as ReturningSelection, ln as RlsRole, lr as endsWith, lt as FilterOperators, m as MigrationDoc, mn as ConvexIndexBuilder, mr as ilike, mt as InsertValue, n as OrmCapabilities, nn as convexTable, nr as FieldReference, nt as AggregateFieldValue, on as RlsPolicyConfig, or as and, ot as CountConfig, p as MigrationDirection, pn as ConvexAggregateIndexBuilderOn, pr as gte, pt as InferSelectModel, qt as defineRelationsPart, r as OrmCapability, rn as deletion, rr as FilterExpression, rt as AggregateResult, sn as RlsPolicyToOption, sr as between, st as CountResult, t as OrmAggregateCapability, tn as TableConfig, tr as ExpressionVisitor, tt as AggregateConfig, un as RlsRoleConfig, ur as eq, ut as GetColumnData, v as MigrationMigrateOne, vn as ConvexSearchIndexBuilder, vr as isNull, vt as MutationPaginateConfig, w as MigrationTableName, wn as aggregateIndex, wr as notBetween, wt as OrderDirection, x as MigrationSet, xn as ConvexVectorIndexBuilder, xr as lte, xt as MutationReturning, y as MigrationPlan, yn as ConvexSearchIndexBuilderOn, yr as like, yt as MutationPaginatedResult, zn as unique, zr as HasDefault, zt as RelationsBuilder } from "../capabilities-Bxzoofl4.js";
2
- import { $ as OrmClientWithApi$1, A as ConvexDateMode, B as ConvexBytesBuilderInitial, C as ConvexNumberBuilderInitial, D as id, E as ConvexIdBuilderInitial, F as custom, G as ConvexBigIntBuilder, H as ConvexBooleanBuilder, I as json, J as CreateOrmOptions, K as ConvexBigIntBuilderInitial, L as objectOf, M as ConvexCustomBuilder, N as ConvexCustomBuilderInitial, O as ConvexDateBuilder, P as arrayOf, Q as OrmClientBase$1, R as unionOf, S as ConvexNumberBuilder, St as defineTriggers, T as ConvexIdBuilder, U as ConvexBooleanBuilderInitial, V as bytes, W as boolean, X as GenericOrmCtx$1, Y as GenericOrm$1, Z as OrmApiResult, _ as ConvexTimestampMode, _t as OrmBeforeResult, a as requireSchemaRelations, at as ScheduledMutationBatchArgs, b as ConvexTextEnumBuilderInitial, bt as OrmTriggerContext, c as TableConfigResult, ct as scheduledDeleteFactory, d as OrmNotFoundError, et as OrmFunctions, f as ConvexVectorBuilder, g as ConvexTimestampBuilderInitial, gt as defineSchemaExtension, h as ConvexTimestampBuilder, ht as SchemaExtension, i as getSchemaTriggers, it as createOrm, j as date, k as ConvexDateBuilderInitial, l as getTableColumns, m as vector, n as defineSchema, nt as OrmWriterCtx, o as asc, ot as scheduledMutationBatchFactory, p as ConvexVectorBuilderInitial, q as bigint, r as getSchemaRelations, rt as ResolveOrmSchema, s as desc, st as ScheduledDeleteArgs, t as WhereClauseResult, tt as OrmReaderCtx, u as getTableConfig, v as timestamp, vt as OrmTableTriggers, w as integer, x as textEnum, xt as OrmTriggers, y as ConvexTextEnumBuilder, yt as OrmTriggerChange, z as ConvexBytesBuilder } from "../where-clause-compiler-jhCEPHxi.js";
2
+ import { $ as OrmClientWithApi$1, A as ConvexDateMode, B as ConvexBytesBuilderInitial, C as ConvexNumberBuilderInitial, D as id, E as ConvexIdBuilderInitial, F as custom, G as ConvexBigIntBuilder, H as ConvexBooleanBuilder, I as json, J as CreateOrmOptions, K as ConvexBigIntBuilderInitial, L as objectOf, M as ConvexCustomBuilder, N as ConvexCustomBuilderInitial, O as ConvexDateBuilder, P as arrayOf, Q as OrmClientBase$1, R as unionOf, S as ConvexNumberBuilder, St as defineTriggers, T as ConvexIdBuilder, U as ConvexBooleanBuilderInitial, V as bytes, W as boolean, X as GenericOrmCtx$1, Y as GenericOrm$1, Z as OrmApiResult, _ as ConvexTimestampMode, _t as OrmBeforeResult, a as requireSchemaRelations, at as ScheduledMutationBatchArgs, b as ConvexTextEnumBuilderInitial, bt as OrmTriggerContext, c as TableConfigResult, ct as scheduledDeleteFactory, d as OrmNotFoundError, et as OrmFunctions, f as ConvexVectorBuilder, g as ConvexTimestampBuilderInitial, gt as defineSchemaExtension, h as ConvexTimestampBuilder, ht as SchemaExtension, i as getSchemaTriggers, it as createOrm, j as date, k as ConvexDateBuilderInitial, l as getTableColumns, m as vector, n as defineSchema, nt as OrmWriterCtx, o as asc, ot as scheduledMutationBatchFactory, p as ConvexVectorBuilderInitial, q as bigint, r as getSchemaRelations, rt as ResolveOrmSchema, s as desc, st as ScheduledDeleteArgs, t as WhereClauseResult, tt as OrmReaderCtx, u as getTableConfig, v as timestamp, vt as OrmTableTriggers, w as integer, x as textEnum, xt as OrmTriggers, y as ConvexTextEnumBuilder, yt as OrmTriggerChange, z as ConvexBytesBuilder } from "../where-clause-compiler-D2ifnjjj.js";
3
3
  import { i as pretendRequired, n as deprecated, r as pretend } from "../validators-0I-Ik1EN.js";
4
4
  import { a as QueryCtxWithPreferredOrmQueryTable, i as QueryCtxWithOrmQueryTable, n as LookupByIdResultByCtx, o as getByIdWithOrmQueryFallback, r as QueryCtxWithOptionalOrmQueryTable, t as DocByCtx } from "../query-context-BkNjkDCk.js";
5
5
  import { DefineSchemaOptions, GenericDatabaseReader, GenericDatabaseWriter, GenericSchema, SchemaDefinition } from "convex/server";
@@ -1,3 +1,3 @@
1
1
  import { C as MigrationStep, D as defineMigration, E as buildMigrationPlan, O as defineMigrationSet, S as MigrationStateMap, T as MigrationWriteMode, _ as MigrationManifestEntry, a as MAX_STATUS_RUN_LIMIT, b as MigrationRunStatus, c as MigrationRunChunkArgs, d as MigrationAppliedState, f as MigrationDefinition, g as MigrationDriftIssue, h as MigrationDocContext, k as detectMigrationDrift, l as MigrationStatusArgs, m as MigrationDoc, o as MigrationCancelArgs, p as MigrationDirection, s as MigrationRunArgs, u as createMigrationHandlers, v as MigrationMigrateOne, w as MigrationTableName, x as MigrationSet, y as MigrationPlan } from "../../capabilities-Bxzoofl4.js";
2
- import { Ct as migrationCapability, dt as MIGRATION_STORAGE_TABLE_NAMES, ft as injectMigrationStorageTables, lt as MIGRATION_RUN_TABLE, mt as migrationStorageTables, pt as migrationExtension, ut as MIGRATION_STATE_TABLE } from "../../where-clause-compiler-jhCEPHxi.js";
2
+ import { Ct as migrationCapability, dt as MIGRATION_STORAGE_TABLE_NAMES, ft as injectMigrationStorageTables, lt as MIGRATION_RUN_TABLE, mt as migrationStorageTables, pt as migrationExtension, ut as MIGRATION_STATE_TABLE } from "../../where-clause-compiler-D2ifnjjj.js";
3
3
  export { MAX_STATUS_RUN_LIMIT, MIGRATION_RUN_TABLE, MIGRATION_STATE_TABLE, MIGRATION_STORAGE_TABLE_NAMES, type MigrationAppliedState, type MigrationCancelArgs, type MigrationDefinition, type MigrationDirection, type MigrationDoc, type MigrationDocContext, type MigrationDriftIssue, type MigrationManifestEntry, type MigrationMigrateOne, type MigrationPlan, type MigrationRunArgs, type MigrationRunChunkArgs, type MigrationRunStatus, type MigrationSet, type MigrationStateMap, type MigrationStatusArgs, type MigrationStep, type MigrationTableName, type MigrationWriteMode, buildMigrationPlan, createMigrationHandlers, defineMigration, defineMigrationSet, detectMigrationDrift, injectMigrationStorageTables, migrationCapability, migrationExtension, migrationStorageTables };
@@ -1,4 +1,4 @@
1
- import { t as JWT_COOKIE_NAME } from "./convex-plugin-AbNQl1Sg.js";
1
+ import { t as JWT_COOKIE_NAME } from "./convex-plugin-UGuLZPyQ.js";
2
2
  import { betterFetch } from "@better-fetch/fetch";
3
3
  import { getSessionCookie } from "better-auth/cookies";
4
4
  import * as jose from "jose";
@@ -102,25 +102,25 @@ declare const migrationStorageTables: {
102
102
  fieldName: "status";
103
103
  };
104
104
  };
105
- cursor: ConvexTextBuilderInitial<""> & {
105
+ direction: ConvexTextBuilderInitial<""> & {
106
106
  _: {
107
107
  tableName: "migration_state";
108
108
  };
109
109
  } & {
110
110
  _: {
111
- fieldName: "cursor";
111
+ fieldName: "direction";
112
112
  };
113
113
  };
114
- direction: ConvexTextBuilderInitial<""> & {
114
+ cursor: ConvexTextBuilderInitial<""> & {
115
115
  _: {
116
116
  tableName: "migration_state";
117
117
  };
118
118
  } & {
119
119
  _: {
120
- fieldName: "direction";
120
+ fieldName: "cursor";
121
121
  };
122
122
  };
123
- updatedAt: ConvexNumberBuilderInitial<""> & {
123
+ migrationId: ConvexTextBuilderInitial<""> & {
124
124
  _: {
125
125
  notNull: true;
126
126
  };
@@ -130,10 +130,10 @@ declare const migrationStorageTables: {
130
130
  };
131
131
  } & {
132
132
  _: {
133
- fieldName: "updatedAt";
133
+ fieldName: "migrationId";
134
134
  };
135
135
  };
136
- processed: ConvexNumberBuilderInitial<""> & {
136
+ checksum: ConvexTextBuilderInitial<""> & {
137
137
  _: {
138
138
  notNull: true;
139
139
  };
@@ -143,37 +143,32 @@ declare const migrationStorageTables: {
143
143
  };
144
144
  } & {
145
145
  _: {
146
- fieldName: "processed";
146
+ fieldName: "checksum";
147
147
  };
148
148
  };
149
- startedAt: ConvexNumberBuilderInitial<""> & {
149
+ applied: ConvexBooleanBuilderInitial<""> & {
150
150
  _: {
151
- tableName: "migration_state";
151
+ notNull: true;
152
152
  };
153
153
  } & {
154
- _: {
155
- fieldName: "startedAt";
156
- };
157
- };
158
- completedAt: ConvexNumberBuilderInitial<""> & {
159
154
  _: {
160
155
  tableName: "migration_state";
161
156
  };
162
157
  } & {
163
158
  _: {
164
- fieldName: "completedAt";
159
+ fieldName: "applied";
165
160
  };
166
161
  };
167
- lastError: ConvexTextBuilderInitial<""> & {
162
+ runId: ConvexTextBuilderInitial<""> & {
168
163
  _: {
169
164
  tableName: "migration_state";
170
165
  };
171
166
  } & {
172
167
  _: {
173
- fieldName: "lastError";
168
+ fieldName: "runId";
174
169
  };
175
170
  };
176
- migrationId: ConvexTextBuilderInitial<""> & {
171
+ processed: ConvexNumberBuilderInitial<""> & {
177
172
  _: {
178
173
  notNull: true;
179
174
  };
@@ -183,23 +178,19 @@ declare const migrationStorageTables: {
183
178
  };
184
179
  } & {
185
180
  _: {
186
- fieldName: "migrationId";
181
+ fieldName: "processed";
187
182
  };
188
183
  };
189
- checksum: ConvexTextBuilderInitial<""> & {
190
- _: {
191
- notNull: true;
192
- };
193
- } & {
184
+ startedAt: ConvexNumberBuilderInitial<""> & {
194
185
  _: {
195
186
  tableName: "migration_state";
196
187
  };
197
188
  } & {
198
189
  _: {
199
- fieldName: "checksum";
190
+ fieldName: "startedAt";
200
191
  };
201
192
  };
202
- applied: ConvexBooleanBuilderInitial<""> & {
193
+ updatedAt: ConvexNumberBuilderInitial<""> & {
203
194
  _: {
204
195
  notNull: true;
205
196
  };
@@ -209,16 +200,25 @@ declare const migrationStorageTables: {
209
200
  };
210
201
  } & {
211
202
  _: {
212
- fieldName: "applied";
203
+ fieldName: "updatedAt";
213
204
  };
214
205
  };
215
- runId: ConvexTextBuilderInitial<""> & {
206
+ completedAt: ConvexNumberBuilderInitial<""> & {
216
207
  _: {
217
208
  tableName: "migration_state";
218
209
  };
219
210
  } & {
220
211
  _: {
221
- fieldName: "runId";
212
+ fieldName: "completedAt";
213
+ };
214
+ };
215
+ lastError: ConvexTextBuilderInitial<""> & {
216
+ _: {
217
+ tableName: "migration_state";
218
+ };
219
+ } & {
220
+ _: {
221
+ fieldName: "lastError";
222
222
  };
223
223
  };
224
224
  writeMode: ConvexTextBuilderInitial<""> & {
@@ -269,7 +269,7 @@ declare const migrationStorageTables: {
269
269
  fieldName: "direction";
270
270
  };
271
271
  };
272
- updatedAt: ConvexNumberBuilderInitial<""> & {
272
+ runId: ConvexTextBuilderInitial<""> & {
273
273
  _: {
274
274
  notNull: true;
275
275
  };
@@ -279,7 +279,7 @@ declare const migrationStorageTables: {
279
279
  };
280
280
  } & {
281
281
  _: {
282
- fieldName: "updatedAt";
282
+ fieldName: "runId";
283
283
  };
284
284
  };
285
285
  startedAt: ConvexNumberBuilderInitial<""> & {
@@ -295,35 +295,35 @@ declare const migrationStorageTables: {
295
295
  fieldName: "startedAt";
296
296
  };
297
297
  };
298
- completedAt: ConvexNumberBuilderInitial<""> & {
298
+ updatedAt: ConvexNumberBuilderInitial<""> & {
299
+ _: {
300
+ notNull: true;
301
+ };
302
+ } & {
299
303
  _: {
300
304
  tableName: "migration_run";
301
305
  };
302
306
  } & {
303
307
  _: {
304
- fieldName: "completedAt";
308
+ fieldName: "updatedAt";
305
309
  };
306
310
  };
307
- lastError: ConvexTextBuilderInitial<""> & {
311
+ completedAt: ConvexNumberBuilderInitial<""> & {
308
312
  _: {
309
313
  tableName: "migration_run";
310
314
  };
311
315
  } & {
312
316
  _: {
313
- fieldName: "lastError";
317
+ fieldName: "completedAt";
314
318
  };
315
319
  };
316
- runId: ConvexTextBuilderInitial<""> & {
317
- _: {
318
- notNull: true;
319
- };
320
- } & {
320
+ lastError: ConvexTextBuilderInitial<""> & {
321
321
  _: {
322
322
  tableName: "migration_run";
323
323
  };
324
324
  } & {
325
325
  _: {
326
- fieldName: "runId";
326
+ fieldName: "lastError";
327
327
  };
328
328
  };
329
329
  dryRun: ConvexBooleanBuilderInitial<""> & {
@@ -1011,7 +1011,7 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
1011
1011
  readonly aggregate_bucket: ConvexTableWithColumns<{
1012
1012
  name: "aggregate_bucket";
1013
1013
  columns: {
1014
- count: ConvexNumberBuilderInitial<""> & {
1014
+ updatedAt: ConvexNumberBuilderInitial<""> & {
1015
1015
  _: {
1016
1016
  notNull: true;
1017
1017
  };
@@ -1021,10 +1021,10 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
1021
1021
  };
1022
1022
  } & {
1023
1023
  _: {
1024
- fieldName: "count";
1024
+ fieldName: "updatedAt";
1025
1025
  };
1026
1026
  };
1027
- updatedAt: ConvexNumberBuilderInitial<""> & {
1027
+ indexName: ConvexTextBuilderInitial<""> & {
1028
1028
  _: {
1029
1029
  notNull: true;
1030
1030
  };
@@ -1034,10 +1034,10 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
1034
1034
  };
1035
1035
  } & {
1036
1036
  _: {
1037
- fieldName: "updatedAt";
1037
+ fieldName: "indexName";
1038
1038
  };
1039
1039
  };
1040
- indexName: ConvexTextBuilderInitial<""> & {
1040
+ count: ConvexNumberBuilderInitial<""> & {
1041
1041
  _: {
1042
1042
  notNull: true;
1043
1043
  };
@@ -1047,7 +1047,7 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
1047
1047
  };
1048
1048
  } & {
1049
1049
  _: {
1050
- fieldName: "indexName";
1050
+ fieldName: "count";
1051
1051
  };
1052
1052
  };
1053
1053
  tableKey: ConvexTextBuilderInitial<""> & {
@@ -1343,7 +1343,7 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
1343
1343
  fieldName: "value";
1344
1344
  };
1345
1345
  };
1346
- count: ConvexNumberBuilderInitial<""> & {
1346
+ updatedAt: ConvexNumberBuilderInitial<""> & {
1347
1347
  _: {
1348
1348
  notNull: true;
1349
1349
  };
@@ -1353,10 +1353,10 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
1353
1353
  };
1354
1354
  } & {
1355
1355
  _: {
1356
- fieldName: "count";
1356
+ fieldName: "updatedAt";
1357
1357
  };
1358
1358
  };
1359
- updatedAt: ConvexNumberBuilderInitial<""> & {
1359
+ indexName: ConvexTextBuilderInitial<""> & {
1360
1360
  _: {
1361
1361
  notNull: true;
1362
1362
  };
@@ -1366,10 +1366,10 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
1366
1366
  };
1367
1367
  } & {
1368
1368
  _: {
1369
- fieldName: "updatedAt";
1369
+ fieldName: "indexName";
1370
1370
  };
1371
1371
  };
1372
- indexName: ConvexTextBuilderInitial<""> & {
1372
+ count: ConvexNumberBuilderInitial<""> & {
1373
1373
  _: {
1374
1374
  notNull: true;
1375
1375
  };
@@ -1379,7 +1379,7 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
1379
1379
  };
1380
1380
  } & {
1381
1381
  _: {
1382
- fieldName: "indexName";
1382
+ fieldName: "count";
1383
1383
  };
1384
1384
  };
1385
1385
  tableKey: ConvexTextBuilderInitial<""> & {
@@ -1596,29 +1596,29 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
1596
1596
  fieldName: "status";
1597
1597
  };
1598
1598
  };
1599
- cursor: ConvexTextBuilderInitial<""> & {
1599
+ kind: ConvexTextBuilderInitial<""> & {
1600
1600
  _: {
1601
- tableName: "aggregate_state";
1601
+ notNull: true;
1602
1602
  };
1603
1603
  } & {
1604
1604
  _: {
1605
- fieldName: "cursor";
1605
+ tableName: "aggregate_state";
1606
1606
  };
1607
- };
1608
- kind: ConvexTextBuilderInitial<""> & {
1607
+ } & {
1609
1608
  _: {
1610
- notNull: true;
1609
+ fieldName: "kind";
1611
1610
  };
1612
- } & {
1611
+ };
1612
+ cursor: ConvexTextBuilderInitial<""> & {
1613
1613
  _: {
1614
1614
  tableName: "aggregate_state";
1615
1615
  };
1616
1616
  } & {
1617
1617
  _: {
1618
- fieldName: "kind";
1618
+ fieldName: "cursor";
1619
1619
  };
1620
1620
  };
1621
- updatedAt: ConvexNumberBuilderInitial<""> & {
1621
+ processed: ConvexNumberBuilderInitial<""> & {
1622
1622
  _: {
1623
1623
  notNull: true;
1624
1624
  };
@@ -1628,10 +1628,10 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
1628
1628
  };
1629
1629
  } & {
1630
1630
  _: {
1631
- fieldName: "updatedAt";
1631
+ fieldName: "processed";
1632
1632
  };
1633
1633
  };
1634
- indexName: ConvexTextBuilderInitial<""> & {
1634
+ startedAt: ConvexNumberBuilderInitial<""> & {
1635
1635
  _: {
1636
1636
  notNull: true;
1637
1637
  };
@@ -1641,10 +1641,10 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
1641
1641
  };
1642
1642
  } & {
1643
1643
  _: {
1644
- fieldName: "indexName";
1644
+ fieldName: "startedAt";
1645
1645
  };
1646
1646
  };
1647
- keyDefinitionHash: ConvexTextBuilderInitial<""> & {
1647
+ updatedAt: ConvexNumberBuilderInitial<""> & {
1648
1648
  _: {
1649
1649
  notNull: true;
1650
1650
  };
@@ -1654,23 +1654,28 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
1654
1654
  };
1655
1655
  } & {
1656
1656
  _: {
1657
- fieldName: "keyDefinitionHash";
1657
+ fieldName: "updatedAt";
1658
1658
  };
1659
1659
  };
1660
- metricDefinitionHash: ConvexTextBuilderInitial<""> & {
1660
+ completedAt: ConvexNumberBuilderInitial<""> & {
1661
1661
  _: {
1662
- notNull: true;
1662
+ tableName: "aggregate_state";
1663
1663
  };
1664
1664
  } & {
1665
+ _: {
1666
+ fieldName: "completedAt";
1667
+ };
1668
+ };
1669
+ lastError: ConvexTextBuilderInitial<""> & {
1665
1670
  _: {
1666
1671
  tableName: "aggregate_state";
1667
1672
  };
1668
1673
  } & {
1669
1674
  _: {
1670
- fieldName: "metricDefinitionHash";
1675
+ fieldName: "lastError";
1671
1676
  };
1672
1677
  };
1673
- processed: ConvexNumberBuilderInitial<""> & {
1678
+ indexName: ConvexTextBuilderInitial<""> & {
1674
1679
  _: {
1675
1680
  notNull: true;
1676
1681
  };
@@ -1680,10 +1685,10 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
1680
1685
  };
1681
1686
  } & {
1682
1687
  _: {
1683
- fieldName: "processed";
1688
+ fieldName: "indexName";
1684
1689
  };
1685
1690
  };
1686
- startedAt: ConvexNumberBuilderInitial<""> & {
1691
+ keyDefinitionHash: ConvexTextBuilderInitial<""> & {
1687
1692
  _: {
1688
1693
  notNull: true;
1689
1694
  };
@@ -1693,25 +1698,20 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
1693
1698
  };
1694
1699
  } & {
1695
1700
  _: {
1696
- fieldName: "startedAt";
1701
+ fieldName: "keyDefinitionHash";
1697
1702
  };
1698
1703
  };
1699
- completedAt: ConvexNumberBuilderInitial<""> & {
1704
+ metricDefinitionHash: ConvexTextBuilderInitial<""> & {
1700
1705
  _: {
1701
- tableName: "aggregate_state";
1706
+ notNull: true;
1702
1707
  };
1703
1708
  } & {
1704
- _: {
1705
- fieldName: "completedAt";
1706
- };
1707
- };
1708
- lastError: ConvexTextBuilderInitial<""> & {
1709
1709
  _: {
1710
1710
  tableName: "aggregate_state";
1711
1711
  };
1712
1712
  } & {
1713
1713
  _: {
1714
- fieldName: "lastError";
1714
+ fieldName: "metricDefinitionHash";
1715
1715
  };
1716
1716
  };
1717
1717
  tableKey: ConvexTextBuilderInitial<""> & {
@@ -1751,25 +1751,25 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
1751
1751
  fieldName: "status";
1752
1752
  };
1753
1753
  };
1754
- cursor: ConvexTextBuilderInitial<""> & {
1754
+ direction: ConvexTextBuilderInitial<""> & {
1755
1755
  _: {
1756
1756
  tableName: "migration_state";
1757
1757
  };
1758
1758
  } & {
1759
1759
  _: {
1760
- fieldName: "cursor";
1760
+ fieldName: "direction";
1761
1761
  };
1762
1762
  };
1763
- direction: ConvexTextBuilderInitial<""> & {
1763
+ cursor: ConvexTextBuilderInitial<""> & {
1764
1764
  _: {
1765
1765
  tableName: "migration_state";
1766
1766
  };
1767
1767
  } & {
1768
1768
  _: {
1769
- fieldName: "direction";
1769
+ fieldName: "cursor";
1770
1770
  };
1771
1771
  };
1772
- updatedAt: ConvexNumberBuilderInitial<""> & {
1772
+ migrationId: ConvexTextBuilderInitial<""> & {
1773
1773
  _: {
1774
1774
  notNull: true;
1775
1775
  };
@@ -1779,10 +1779,10 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
1779
1779
  };
1780
1780
  } & {
1781
1781
  _: {
1782
- fieldName: "updatedAt";
1782
+ fieldName: "migrationId";
1783
1783
  };
1784
1784
  };
1785
- processed: ConvexNumberBuilderInitial<""> & {
1785
+ checksum: ConvexTextBuilderInitial<""> & {
1786
1786
  _: {
1787
1787
  notNull: true;
1788
1788
  };
@@ -1792,37 +1792,32 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
1792
1792
  };
1793
1793
  } & {
1794
1794
  _: {
1795
- fieldName: "processed";
1795
+ fieldName: "checksum";
1796
1796
  };
1797
1797
  };
1798
- startedAt: ConvexNumberBuilderInitial<""> & {
1798
+ applied: ConvexBooleanBuilderInitial<""> & {
1799
1799
  _: {
1800
- tableName: "migration_state";
1800
+ notNull: true;
1801
1801
  };
1802
1802
  } & {
1803
- _: {
1804
- fieldName: "startedAt";
1805
- };
1806
- };
1807
- completedAt: ConvexNumberBuilderInitial<""> & {
1808
1803
  _: {
1809
1804
  tableName: "migration_state";
1810
1805
  };
1811
1806
  } & {
1812
1807
  _: {
1813
- fieldName: "completedAt";
1808
+ fieldName: "applied";
1814
1809
  };
1815
1810
  };
1816
- lastError: ConvexTextBuilderInitial<""> & {
1811
+ runId: ConvexTextBuilderInitial<""> & {
1817
1812
  _: {
1818
1813
  tableName: "migration_state";
1819
1814
  };
1820
1815
  } & {
1821
1816
  _: {
1822
- fieldName: "lastError";
1817
+ fieldName: "runId";
1823
1818
  };
1824
1819
  };
1825
- migrationId: ConvexTextBuilderInitial<""> & {
1820
+ processed: ConvexNumberBuilderInitial<""> & {
1826
1821
  _: {
1827
1822
  notNull: true;
1828
1823
  };
@@ -1832,23 +1827,19 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
1832
1827
  };
1833
1828
  } & {
1834
1829
  _: {
1835
- fieldName: "migrationId";
1830
+ fieldName: "processed";
1836
1831
  };
1837
1832
  };
1838
- checksum: ConvexTextBuilderInitial<""> & {
1839
- _: {
1840
- notNull: true;
1841
- };
1842
- } & {
1833
+ startedAt: ConvexNumberBuilderInitial<""> & {
1843
1834
  _: {
1844
1835
  tableName: "migration_state";
1845
1836
  };
1846
1837
  } & {
1847
1838
  _: {
1848
- fieldName: "checksum";
1839
+ fieldName: "startedAt";
1849
1840
  };
1850
1841
  };
1851
- applied: ConvexBooleanBuilderInitial<""> & {
1842
+ updatedAt: ConvexNumberBuilderInitial<""> & {
1852
1843
  _: {
1853
1844
  notNull: true;
1854
1845
  };
@@ -1858,16 +1849,25 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
1858
1849
  };
1859
1850
  } & {
1860
1851
  _: {
1861
- fieldName: "applied";
1852
+ fieldName: "updatedAt";
1862
1853
  };
1863
1854
  };
1864
- runId: ConvexTextBuilderInitial<""> & {
1855
+ completedAt: ConvexNumberBuilderInitial<""> & {
1865
1856
  _: {
1866
1857
  tableName: "migration_state";
1867
1858
  };
1868
1859
  } & {
1869
1860
  _: {
1870
- fieldName: "runId";
1861
+ fieldName: "completedAt";
1862
+ };
1863
+ };
1864
+ lastError: ConvexTextBuilderInitial<""> & {
1865
+ _: {
1866
+ tableName: "migration_state";
1867
+ };
1868
+ } & {
1869
+ _: {
1870
+ fieldName: "lastError";
1871
1871
  };
1872
1872
  };
1873
1873
  writeMode: ConvexTextBuilderInitial<""> & {
@@ -1918,7 +1918,7 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
1918
1918
  fieldName: "direction";
1919
1919
  };
1920
1920
  };
1921
- updatedAt: ConvexNumberBuilderInitial<""> & {
1921
+ runId: ConvexTextBuilderInitial<""> & {
1922
1922
  _: {
1923
1923
  notNull: true;
1924
1924
  };
@@ -1928,7 +1928,7 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
1928
1928
  };
1929
1929
  } & {
1930
1930
  _: {
1931
- fieldName: "updatedAt";
1931
+ fieldName: "runId";
1932
1932
  };
1933
1933
  };
1934
1934
  startedAt: ConvexNumberBuilderInitial<""> & {
@@ -1944,35 +1944,35 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
1944
1944
  fieldName: "startedAt";
1945
1945
  };
1946
1946
  };
1947
- completedAt: ConvexNumberBuilderInitial<""> & {
1947
+ updatedAt: ConvexNumberBuilderInitial<""> & {
1948
+ _: {
1949
+ notNull: true;
1950
+ };
1951
+ } & {
1948
1952
  _: {
1949
1953
  tableName: "migration_run";
1950
1954
  };
1951
1955
  } & {
1952
1956
  _: {
1953
- fieldName: "completedAt";
1957
+ fieldName: "updatedAt";
1954
1958
  };
1955
1959
  };
1956
- lastError: ConvexTextBuilderInitial<""> & {
1960
+ completedAt: ConvexNumberBuilderInitial<""> & {
1957
1961
  _: {
1958
1962
  tableName: "migration_run";
1959
1963
  };
1960
1964
  } & {
1961
1965
  _: {
1962
- fieldName: "lastError";
1966
+ fieldName: "completedAt";
1963
1967
  };
1964
1968
  };
1965
- runId: ConvexTextBuilderInitial<""> & {
1966
- _: {
1967
- notNull: true;
1968
- };
1969
- } & {
1969
+ lastError: ConvexTextBuilderInitial<""> & {
1970
1970
  _: {
1971
1971
  tableName: "migration_run";
1972
1972
  };
1973
1973
  } & {
1974
1974
  _: {
1975
- fieldName: "runId";
1975
+ fieldName: "lastError";
1976
1976
  };
1977
1977
  };
1978
1978
  dryRun: ConvexBooleanBuilderInitial<""> & {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kitcn",
3
- "version": "0.33.3",
3
+ "version": "0.33.4",
4
4
  "description": "kitcn - React Query integration and CLI tools for Convex",
5
5
  "keywords": [
6
6
  "convex",