kitcn 0.30.0 → 0.31.1

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.
Files changed (71) hide show
  1. package/CHANGELOG.md +66 -0
  2. package/dist/aggregate/index.d.ts +11 -6
  3. package/dist/aggregate/index.js +2 -1
  4. package/dist/auth/generated/index.d.ts +1 -1
  5. package/dist/auth/generated/index.js +1 -1
  6. package/dist/auth/http/index.d.ts +1 -1
  7. package/dist/auth/index.d.ts +15 -15
  8. package/dist/auth/index.js +133 -9
  9. package/dist/auth/nextjs/index.d.ts +2 -2
  10. package/dist/auth/nextjs/index.js +3 -3
  11. package/dist/auth/start/server/index.d.ts +2 -2
  12. package/dist/auth/start/server/index.js +3 -3
  13. package/dist/{builder-CsAw-DK8.js → builder-Cyd5nCxZ.js} +2 -2
  14. package/dist/{caller-factory-D4pz5GcZ.js → caller-factory-C-N540BC.js} +3 -3
  15. package/dist/{capabilities-6PZBmvc8.d.ts → capabilities-CG-oIMyR.d.ts} +25 -11
  16. package/dist/cli.mjs +1 -1
  17. package/dist/{create-schema-orm-HcJzGCxj.js → create-schema-orm-CwJD930B.js} +1 -1
  18. package/dist/crpc/index.d.ts +2 -2
  19. package/dist/crpc/index.js +3 -3
  20. package/dist/{customFunctions-ivbc6-_g.js → customFunctions-X_B4kET8.js} +64 -1
  21. package/dist/{definitions-DS8ZDc74.js → definitions-3PX4ywR-.js} +2 -2
  22. package/dist/{extensions-Blzsyekm.js → extensions-Bp0XHanR.js} +1 -1
  23. package/dist/{generated-contract-disabled-CgYQZCw2.d.ts → generated-contract-disabled-BKvk4lFx.d.ts} +41 -12
  24. package/dist/{generated-contract-disabled-_1Mjg9pW.js → generated-contract-disabled-RyPYlwq0.js} +1 -0
  25. package/dist/{http-types-90mapMP9.d.ts → http-types-BhhPZtwa.d.ts} +2 -2
  26. package/dist/{filter-expression-Dydt8wS0.js → index-utils-C1DyktHe.js} +95 -1
  27. package/dist/{local-env-Dk8RJvt5.mjs → local-env-CYYSNf_o.mjs} +92 -72
  28. package/dist/{middleware-CE_MC6Gi.d.ts → middleware-BBS7oLtT.d.ts} +1 -1
  29. package/dist/{middleware-BvnabcNq.js → middleware-D61Nm-iB.js} +1 -1
  30. package/dist/orm/aggregate-index/index.d.ts +1 -1
  31. package/dist/orm/aggregate-index/index.js +32 -34
  32. package/dist/orm/index.d.ts +4 -4
  33. package/dist/orm/index.js +8 -7
  34. package/dist/orm/migrations/index.d.ts +2 -2
  35. package/dist/orm/migrations/index.js +1 -1
  36. package/dist/plugins/index.d.ts +1 -1
  37. package/dist/plugins/index.js +1 -1
  38. package/dist/{procedure-caller-BR-Wb0si.js → procedure-caller-DgMiD0-a.js} +2 -2
  39. package/dist/{procedure-name-l2YusEZI.d.ts → procedure-name-DPYyLiVS.d.ts} +3 -3
  40. package/dist/ratelimit/index.d.ts +2 -2
  41. package/dist/ratelimit/index.js +3 -3
  42. package/dist/rsc/index.d.ts +4 -4
  43. package/dist/rsc/index.js +4 -4
  44. package/dist/{runtime-CcOvOf4K.js → runtime-B-8HKSIE.js} +21 -40
  45. package/dist/schema-BFP_awgP.js +67 -0
  46. package/dist/{schema-D8ZZMSKd.js → schema-DbPcDW-N.js} +10 -117
  47. package/dist/server/index.d.ts +4 -4
  48. package/dist/server/index.js +4 -4
  49. package/dist/symbols-DDNAddkd.js +21 -0
  50. package/dist/{table-CX2lnX7e.js → table-d9o_n4R3.js} +2 -21
  51. package/dist/{token-B0NKKxqP.js → token-CuJopBdP.js} +1 -1
  52. package/dist/{types-In-ZZOsd.d.ts → types-BXpu7xIU.d.ts} +1 -1
  53. package/dist/watcher.mjs +1 -1
  54. package/dist/{where-clause-compiler-DvYSTJXe.d.ts → where-clause-compiler-Bgkzm3Y-.d.ts} +85 -81
  55. package/package.json +1 -1
  56. package/dist/id-CuSfWa5q.js +0 -37
  57. /package/dist/{api-entry-CkDpGYVg.js → api-entry-Buvjl9hn.js} +0 -0
  58. /package/dist/{context-utils-DwZ3Cam1.d.ts → context-utils-Cbv4r0AA.d.ts} +0 -0
  59. /package/dist/{convex-plugin-Dic0l-k8.js → convex-plugin-AbNQl1Sg.js} +0 -0
  60. /package/dist/{create-schema-ojI-OH_9.js → create-schema-BmVH4gPc.js} +0 -0
  61. /package/dist/{error-CMLeCadS.js → error-Dyqhgbf6.js} +0 -0
  62. /package/dist/{meta-utils-D2lqN2Lg.js → meta-utils-Cc7neQOB.js} +0 -0
  63. /package/dist/{query-context-DJONf8X5.d.ts → query-context-BkNjkDCk.d.ts} +0 -0
  64. /package/dist/{query-context-DOm5Xm3H.js → query-context-DdSg3fuk.js} +0 -0
  65. /package/dist/{query-options-DUiOj01a.js → query-options-DGG93--5.js} +0 -0
  66. /package/dist/{token-kQaqFby4.d.ts → token-tlbNKQS0.d.ts} +0 -0
  67. /package/dist/{transformer-D8wO-kEj.js → transformer-C8lVwHNT.js} +0 -0
  68. /package/dist/{types-eNzQmbqM.d.ts → types-Bkeicpo6.d.ts} +0 -0
  69. /package/dist/{types-MHYXboyy.d.ts → types-Bqi_ivSd.d.ts} +0 -0
  70. /package/dist/{types-Bf3XQex5.d.ts → types-ex0-J-SC.d.ts} +0 -0
  71. /package/dist/{validators-wOIjhkfN.d.ts → validators-0I-Ik1EN.d.ts} +0 -0
@@ -1,5 +1,5 @@
1
- import { $ as ActionProcedureBuilder, A as CRPCError, B as RuntimeEnv, C as createProcedureHandlerFactory, Ct as zCustomQuery, D as WithHttpRouter, Dt as zodToConvex, E as typedProcedureResolver, Et as zodOutputToConvexFields, F as getCRPCErrorFromUnknown, G as createLazyCaller, H as ConvexContext, I as getHTTPStatusCodeFromError, J as ServerCaller, K as CallerMeta, L as isCRPCError, M as CRPCErrorData, N as CRPC_ERROR_CODES_BY_KEY, O as inferApiInputs, Ot as zodToConvexFields, P as CRPC_ERROR_CODE_TO_HTTP, Q as getGeneratedValue, R as toCRPCError, S as createProcedureCallerFactory, St as zCustomMutation, T as getGeneratedFunctionReference, Tt as zodOutputToConvex, U as createCallerFactory, V as createEnv, W as LazyCaller, X as createApiLeaf, Y as createServerCaller, Z as createGeneratedFunctionReference, _ as ProcedureSchedulableCallerFromRegistry, _t as ZodValidatorFromConvex, a as CreateProcedureCallerFactoryOptions, at as initCRPC, b as createGenericCallerFactory, bt as withSystemFields, c as GeneratedRegistryCallerFactory, ct as extractPathParams, d as GeneratedRegistryHandlerForContext, dt as ConvexValidatorFromZod, et as CRPCFunctionTypeHint, f as ProcedureActionCallerFromRegistry, ft as ConvexValidatorFromZodOutput, g as ProcedureFromFunctionReference, gt as ZodFromValidatorBase, h as ProcedureDefinition, ht as Zid, i as registerProcedureNameLookup, it as createMiddlewareFactory, j as CRPCErrorCode, k as inferApiOutputs, l as GeneratedRegistryCallerForContext, lt as handleHttpError, m as ProcedureCallerFromRegistry, mt as ZCustomCtx, n as ProcedureNameLookup, nt as ProcedureBuilder, o as GeneratedProcedureRegistry, ot as HttpProcedureBuilder, p as ProcedureCaller, pt as CustomBuilder, q as CallerOpts, r as inferProcedureNameFromCallsite, rt as QueryProcedureBuilder, s as GeneratedProcedureRegistryEntry, st as createHttpProcedureBuilder, t as ProcedureNameEntry, tt as MutationProcedureBuilder, u as GeneratedRegistryHandlerFactory, ut as matchPathParams, v as ProcedureScheduleCallerFromRegistry, vt as convexToZod, w as defineProcedure, wt as zid, x as createGenericHandlerFactory, xt as zCustomAction, y as createGeneratedRegistryRuntime, yt as convexToZodFields, z as CreateEnvOptions } from "../procedure-name-l2YusEZI.js";
2
- import { A as HttpProcedureBuilderDef, C as extractRouteMap, D as HttpHandlerOpts, E as HttpActionHandler, M as InferHttpInput, N as ProcedureMeta, O as HttpMethod, S as createHttpRouterFactory, T as HttpActionConstructor, _ as CRPCHttpRouter, b as HttpRouterWithHono, j as HttpRouteDefinition, k as HttpProcedure, v as HttpRouterDef, w as CRPCHonoHandler, x as createHttpRouter, y as HttpRouterRecord } from "../http-types-90mapMP9.js";
3
- import { a as MergeZodObjects, c as MiddlewareMarker, d as MiddlewareProcedureType, f as MiddlewareResult, g as UnsetMarker, h as Simplify, i as IntersectIfDefined, l as MiddlewareNext, m as ResolveIfSet, n as AnyMiddlewareBuilder, o as MiddlewareBuilder, p as Overwrite, r as GetRawInputFn, s as MiddlewareFunction, t as AnyMiddleware, u as MiddlewareProcedureInfo } from "../types-eNzQmbqM.js";
4
- import { a as isMutationCtx, c as isSchedulerCtx, d as requireQueryCtx, f as requireRunMutationCtx, i as isActionCtx, l as requireActionCtx, n as RunMutationCtx, o as isQueryCtx, p as requireSchedulerCtx, r as SchedulerCtx, s as isRunMutationCtx, t as GenericCtx, u as requireMutationCtx } from "../context-utils-DwZ3Cam1.js";
1
+ import { $ as ActionProcedureBuilder, A as CRPCError, B as RuntimeEnv, C as createProcedureHandlerFactory, Ct as zCustomQuery, D as WithHttpRouter, Dt as zodToConvex, E as typedProcedureResolver, Et as zodOutputToConvexFields, F as getCRPCErrorFromUnknown, G as createLazyCaller, H as ConvexContext, I as getHTTPStatusCodeFromError, J as ServerCaller, K as CallerMeta, L as isCRPCError, M as CRPCErrorData, N as CRPC_ERROR_CODES_BY_KEY, O as inferApiInputs, Ot as zodToConvexFields, P as CRPC_ERROR_CODE_TO_HTTP, Q as getGeneratedValue, R as toCRPCError, S as createProcedureCallerFactory, St as zCustomMutation, T as getGeneratedFunctionReference, Tt as zodOutputToConvex, U as createCallerFactory, V as createEnv, W as LazyCaller, X as createApiLeaf, Y as createServerCaller, Z as createGeneratedFunctionReference, _ as ProcedureSchedulableCallerFromRegistry, _t as ZodValidatorFromConvex, a as CreateProcedureCallerFactoryOptions, at as initCRPC, b as createGenericCallerFactory, bt as withSystemFields, c as GeneratedRegistryCallerFactory, ct as extractPathParams, d as GeneratedRegistryHandlerForContext, dt as ConvexValidatorFromZod, et as CRPCFunctionTypeHint, f as ProcedureActionCallerFromRegistry, ft as ConvexValidatorFromZodOutput, g as ProcedureFromFunctionReference, gt as ZodFromValidatorBase, h as ProcedureDefinition, ht as Zid, i as registerProcedureNameLookup, it as createMiddlewareFactory, j as CRPCErrorCode, k as inferApiOutputs, l as GeneratedRegistryCallerForContext, lt as handleHttpError, m as ProcedureCallerFromRegistry, mt as ZCustomCtx, n as ProcedureNameLookup, nt as ProcedureBuilder, o as GeneratedProcedureRegistry, ot as HttpProcedureBuilder, p as ProcedureCaller, pt as CustomBuilder, q as CallerOpts, r as inferProcedureNameFromCallsite, rt as QueryProcedureBuilder, s as GeneratedProcedureRegistryEntry, st as createHttpProcedureBuilder, t as ProcedureNameEntry, tt as MutationProcedureBuilder, u as GeneratedRegistryHandlerFactory, ut as matchPathParams, v as ProcedureScheduleCallerFromRegistry, vt as convexToZod, w as defineProcedure, wt as zid, x as createGenericHandlerFactory, xt as zCustomAction, y as createGeneratedRegistryRuntime, yt as convexToZodFields, z as CreateEnvOptions } from "../procedure-name-DPYyLiVS.js";
2
+ import { A as HttpProcedureBuilderDef, C as extractRouteMap, D as HttpHandlerOpts, E as HttpActionHandler, M as InferHttpInput, N as ProcedureMeta, O as HttpMethod, S as createHttpRouterFactory, T as HttpActionConstructor, _ as CRPCHttpRouter, b as HttpRouterWithHono, j as HttpRouteDefinition, k as HttpProcedure, v as HttpRouterDef, w as CRPCHonoHandler, x as createHttpRouter, y as HttpRouterRecord } from "../http-types-BhhPZtwa.js";
3
+ import { a as MergeZodObjects, c as MiddlewareMarker, d as MiddlewareProcedureType, f as MiddlewareResult, g as UnsetMarker, h as Simplify, i as IntersectIfDefined, l as MiddlewareNext, m as ResolveIfSet, n as AnyMiddlewareBuilder, o as MiddlewareBuilder, p as Overwrite, r as GetRawInputFn, s as MiddlewareFunction, t as AnyMiddleware, u as MiddlewareProcedureInfo } from "../types-Bkeicpo6.js";
4
+ import { a as isMutationCtx, c as isSchedulerCtx, d as requireQueryCtx, f as requireRunMutationCtx, i as isActionCtx, l as requireActionCtx, n as RunMutationCtx, o as isQueryCtx, p as requireSchedulerCtx, r as SchedulerCtx, s as isRunMutationCtx, t as GenericCtx, u as requireMutationCtx } from "../context-utils-Cbv4r0AA.js";
5
5
  export { ActionProcedureBuilder, AnyMiddleware, AnyMiddlewareBuilder, CRPCError, CRPCErrorCode, CRPCErrorData, CRPCFunctionTypeHint, CRPCHonoHandler, CRPCHttpRouter, CRPC_ERROR_CODES_BY_KEY, CRPC_ERROR_CODE_TO_HTTP, CallerMeta, CallerOpts, ConvexContext, ConvexValidatorFromZod, ConvexValidatorFromZodOutput, CreateEnvOptions, CreateProcedureCallerFactoryOptions, CustomBuilder, GeneratedProcedureRegistry, GeneratedProcedureRegistryEntry, GeneratedRegistryCallerFactory, GeneratedRegistryCallerForContext, GeneratedRegistryHandlerFactory, GeneratedRegistryHandlerForContext, GenericCtx, GetRawInputFn, HttpActionConstructor, HttpActionHandler, HttpHandlerOpts, HttpMethod, HttpProcedure, HttpProcedureBuilder, HttpProcedureBuilderDef, HttpRouteDefinition, HttpRouterDef, HttpRouterRecord, HttpRouterWithHono, InferHttpInput, IntersectIfDefined, LazyCaller, MergeZodObjects, MiddlewareBuilder, MiddlewareFunction, MiddlewareMarker, MiddlewareNext, MiddlewareProcedureInfo, MiddlewareProcedureType, MiddlewareResult, MutationProcedureBuilder, Overwrite, ProcedureActionCallerFromRegistry, ProcedureBuilder, ProcedureCaller, ProcedureCallerFromRegistry, ProcedureDefinition, ProcedureFromFunctionReference, ProcedureMeta, ProcedureNameEntry, ProcedureNameLookup, ProcedureSchedulableCallerFromRegistry, ProcedureScheduleCallerFromRegistry, QueryProcedureBuilder, ResolveIfSet, RunMutationCtx, RuntimeEnv, SchedulerCtx, ServerCaller, Simplify, UnsetMarker, WithHttpRouter, ZCustomCtx, Zid, ZodFromValidatorBase, ZodValidatorFromConvex, convexToZod, convexToZodFields, createApiLeaf, createCallerFactory, createEnv, createGeneratedFunctionReference, createGeneratedRegistryRuntime, createGenericCallerFactory, createGenericHandlerFactory, createHttpProcedureBuilder, createHttpRouter, createHttpRouterFactory, createLazyCaller, createMiddlewareFactory, createProcedureCallerFactory, createProcedureHandlerFactory, createServerCaller, defineProcedure, extractPathParams, extractRouteMap, getCRPCErrorFromUnknown, getGeneratedFunctionReference, getGeneratedValue, getHTTPStatusCodeFromError, handleHttpError, inferApiInputs, inferApiOutputs, inferProcedureNameFromCallsite, initCRPC, isActionCtx, isCRPCError, isMutationCtx, isQueryCtx, isRunMutationCtx, isSchedulerCtx, matchPathParams, registerProcedureNameLookup, requireActionCtx, requireMutationCtx, requireQueryCtx, requireRunMutationCtx, requireSchedulerCtx, toCRPCError, typedProcedureResolver, withSystemFields, zCustomAction, zCustomMutation, zCustomQuery, zid, zodOutputToConvex, zodOutputToConvexFields, zodToConvex, zodToConvexFields };
@@ -1,6 +1,6 @@
1
- import { a as isMutationCtx, c as isSchedulerCtx, d as requireQueryCtx, f as requireRunMutationCtx, i as isActionCtx, l as requireActionCtx, n as createGeneratedFunctionReference, o as isQueryCtx, p as requireSchedulerCtx, r as getGeneratedValue, s as isRunMutationCtx, t as createApiLeaf, u as requireMutationCtx } from "../api-entry-CkDpGYVg.js";
2
- import { n as createLazyCaller, r as createServerCaller, t as createCallerFactory } from "../caller-factory-D4pz5GcZ.js";
3
- import { A as zid, C as toCRPCError, D as zCustomAction, E as withSystemFields, M as zodOutputToConvexFields, N as zodToConvex, O as zCustomMutation, P as zodToConvexFields, S as isCRPCError, T as convexToZodFields, _ as CRPCError, a as createMiddlewareFactory, b as getCRPCErrorFromUnknown, c as registerProcedureNameLookup, d as createHttpRouterFactory, f as extractRouteMap, g as matchPathParams, h as handleHttpError, i as QueryProcedureBuilder, j as zodOutputToConvex, k as zCustomQuery, l as HttpRouterWithHono, m as extractPathParams, n as MutationProcedureBuilder, o as initCRPC, p as createHttpProcedureBuilder, r as ProcedureBuilder, s as inferProcedureNameFromCallsite, t as ActionProcedureBuilder, u as createHttpRouter, v as CRPC_ERROR_CODES_BY_KEY, w as convexToZod, x as getHTTPStatusCodeFromError, y as CRPC_ERROR_CODE_TO_HTTP } from "../builder-CsAw-DK8.js";
4
- import { a as createProcedureHandlerFactory, c as typedProcedureResolver, i as createProcedureCallerFactory, l as createEnv, n as createGenericCallerFactory, o as defineProcedure, r as createGenericHandlerFactory, s as getGeneratedFunctionReference, t as createGeneratedRegistryRuntime } from "../procedure-caller-BR-Wb0si.js";
1
+ import { a as isMutationCtx, c as isSchedulerCtx, d as requireQueryCtx, f as requireRunMutationCtx, i as isActionCtx, l as requireActionCtx, n as createGeneratedFunctionReference, o as isQueryCtx, p as requireSchedulerCtx, r as getGeneratedValue, s as isRunMutationCtx, t as createApiLeaf, u as requireMutationCtx } from "../api-entry-Buvjl9hn.js";
2
+ import { n as createLazyCaller, r as createServerCaller, t as createCallerFactory } from "../caller-factory-C-N540BC.js";
3
+ import { A as zid, C as toCRPCError, D as zCustomAction, E as withSystemFields, M as zodOutputToConvexFields, N as zodToConvex, O as zCustomMutation, P as zodToConvexFields, S as isCRPCError, T as convexToZodFields, _ as CRPCError, a as createMiddlewareFactory, b as getCRPCErrorFromUnknown, c as registerProcedureNameLookup, d as createHttpRouterFactory, f as extractRouteMap, g as matchPathParams, h as handleHttpError, i as QueryProcedureBuilder, j as zodOutputToConvex, k as zCustomQuery, l as HttpRouterWithHono, m as extractPathParams, n as MutationProcedureBuilder, o as initCRPC, p as createHttpProcedureBuilder, r as ProcedureBuilder, s as inferProcedureNameFromCallsite, t as ActionProcedureBuilder, u as createHttpRouter, v as CRPC_ERROR_CODES_BY_KEY, w as convexToZod, x as getHTTPStatusCodeFromError, y as CRPC_ERROR_CODE_TO_HTTP } from "../builder-Cyd5nCxZ.js";
4
+ import { a as createProcedureHandlerFactory, c as typedProcedureResolver, i as createProcedureCallerFactory, l as createEnv, n as createGenericCallerFactory, o as defineProcedure, r as createGenericHandlerFactory, s as getGeneratedFunctionReference, t as createGeneratedRegistryRuntime } from "../procedure-caller-DgMiD0-a.js";
5
5
 
6
6
  export { ActionProcedureBuilder, CRPCError, CRPC_ERROR_CODES_BY_KEY, CRPC_ERROR_CODE_TO_HTTP, HttpRouterWithHono, MutationProcedureBuilder, ProcedureBuilder, QueryProcedureBuilder, convexToZod, convexToZodFields, createApiLeaf, createCallerFactory, createEnv, createGeneratedFunctionReference, createGeneratedRegistryRuntime, createGenericCallerFactory, createGenericHandlerFactory, createHttpProcedureBuilder, createHttpRouter, createHttpRouterFactory, createLazyCaller, createMiddlewareFactory, createProcedureCallerFactory, createProcedureHandlerFactory, createServerCaller, defineProcedure, extractPathParams, extractRouteMap, getCRPCErrorFromUnknown, getGeneratedFunctionReference, getGeneratedValue, getHTTPStatusCodeFromError, handleHttpError, inferProcedureNameFromCallsite, initCRPC, isActionCtx, isCRPCError, isMutationCtx, isQueryCtx, isRunMutationCtx, isSchedulerCtx, matchPathParams, registerProcedureNameLookup, requireActionCtx, requireMutationCtx, requireQueryCtx, requireRunMutationCtx, requireSchedulerCtx, toCRPCError, typedProcedureResolver, withSystemFields, zCustomAction, zCustomMutation, zCustomQuery, zid, zodOutputToConvex, zodOutputToConvexFields, zodToConvex, zodToConvexFields };
@@ -0,0 +1,21 @@
1
+ //#region src/orm/symbols.ts
2
+ const TableName = Symbol.for("kitcn:TableName");
3
+ const Columns = Symbol.for("kitcn:Columns");
4
+ const Brand = Symbol.for("kitcn:Brand");
5
+ const Relations = Symbol.for("kitcn:Relations");
6
+ const OrmContext = Symbol.for("kitcn:OrmContext");
7
+ const RlsPolicies = Symbol.for("kitcn:RlsPolicies");
8
+ const EnableRLS = Symbol.for("kitcn:EnableRLS");
9
+ const TableDeleteConfig = Symbol.for("kitcn:TableDeleteConfig");
10
+ const TablePolymorphic = Symbol.for("kitcn:TablePolymorphic");
11
+ const OrmSchemaOptions = Symbol.for("kitcn:OrmSchemaOptions");
12
+ const OrmSchemaDefinition = Symbol.for("kitcn:OrmSchemaDefinition");
13
+ const OrmSchemaExtensionTables = Symbol.for("kitcn:OrmSchemaExtensionTables");
14
+ const OrmSchemaExtensions = Symbol.for("kitcn:OrmSchemaExtensions");
15
+ const OrmSchemaExtensionRelations = Symbol.for("kitcn:OrmSchemaExtensionRelations");
16
+ const OrmSchemaExtensionTriggers = Symbol.for("kitcn:OrmSchemaExtensionTriggers");
17
+ const OrmSchemaRelations = Symbol.for("kitcn:OrmSchemaRelations");
18
+ const OrmSchemaTriggers = Symbol.for("kitcn:OrmSchemaTriggers");
19
+
20
+ //#endregion
21
+ export { OrmSchemaDefinition as a, OrmSchemaExtensionTriggers as c, OrmSchemaRelations as d, OrmSchemaTriggers as f, TablePolymorphic as g, TableName as h, OrmContext as i, OrmSchemaExtensions as l, TableDeleteConfig as m, Columns as n, OrmSchemaExtensionRelations as o, RlsPolicies as p, EnableRLS as r, OrmSchemaExtensionTables as s, Brand as t, OrmSchemaOptions as u };
@@ -1,4 +1,5 @@
1
1
  import { o as vRequired } from "./validators-CIoUYCqO.js";
2
+ import { g as TablePolymorphic, h as TableName, m as TableDeleteConfig, n as Columns, p as RlsPolicies, r as EnableRLS, t as Brand } from "./symbols-DDNAddkd.js";
2
3
  import { v } from "convex/values";
3
4
 
4
5
  //#region src/orm/builders/column-builder.ts
@@ -613,26 +614,6 @@ function isRlsPolicy(value) {
613
614
  return !!value && typeof value === "object" && value[entityKind] === "RlsPolicy";
614
615
  }
615
616
 
616
- //#endregion
617
- //#region src/orm/symbols.ts
618
- const TableName = Symbol.for("kitcn:TableName");
619
- const Columns = Symbol.for("kitcn:Columns");
620
- const Brand = Symbol.for("kitcn:Brand");
621
- const Relations = Symbol.for("kitcn:Relations");
622
- const OrmContext = Symbol.for("kitcn:OrmContext");
623
- const RlsPolicies = Symbol.for("kitcn:RlsPolicies");
624
- const EnableRLS = Symbol.for("kitcn:EnableRLS");
625
- const TableDeleteConfig = Symbol.for("kitcn:TableDeleteConfig");
626
- const TablePolymorphic = Symbol.for("kitcn:TablePolymorphic");
627
- const OrmSchemaOptions = Symbol.for("kitcn:OrmSchemaOptions");
628
- const OrmSchemaDefinition = Symbol.for("kitcn:OrmSchemaDefinition");
629
- const OrmSchemaExtensionTables = Symbol.for("kitcn:OrmSchemaExtensionTables");
630
- const OrmSchemaExtensions = Symbol.for("kitcn:OrmSchemaExtensions");
631
- const OrmSchemaExtensionRelations = Symbol.for("kitcn:OrmSchemaExtensionRelations");
632
- const OrmSchemaExtensionTriggers = Symbol.for("kitcn:OrmSchemaExtensionTriggers");
633
- const OrmSchemaRelations = Symbol.for("kitcn:OrmSchemaRelations");
634
- const OrmSchemaTriggers = Symbol.for("kitcn:OrmSchemaTriggers");
635
-
636
617
  //#endregion
637
618
  //#region src/orm/table.ts
638
619
  /**
@@ -1395,4 +1376,4 @@ const convexTableWithRLS = (name, columns, extraConfig) => {
1395
1376
  const convexTable = Object.assign(convexTableInternal, { withRLS: convexTableWithRLS });
1396
1377
 
1397
1378
  //#endregion
1398
- export { integer as A, index as C, vectorIndex as D, uniqueIndex as E, unionOf as F, ConvexColumnBuilder as I, entityKind as L, custom as M, json as N, text as O, objectOf as P, aggregateIndex as S, searchIndex as T, TableDeleteConfig as _, Columns as a, RlsPolicy as b, OrmSchemaDefinition as c, OrmSchemaExtensionTriggers as d, OrmSchemaExtensions as f, RlsPolicies as g, OrmSchemaTriggers as h, Brand as i, arrayOf as j, createSystemFields as k, OrmSchemaExtensionRelations as l, OrmSchemaRelations as m, deletion as n, EnableRLS as o, OrmSchemaOptions as p, discriminator as r, OrmContext as s, convexTable as t, OrmSchemaExtensionTables as u, TableName as v, rankIndex as w, rlsPolicy as x, TablePolymorphic as y };
1379
+ export { json as _, rlsPolicy as a, ConvexColumnBuilder as b, rankIndex as c, vectorIndex as d, text as f, custom as g, arrayOf as h, RlsPolicy as i, searchIndex as l, integer as m, deletion as n, aggregateIndex as o, createSystemFields as p, discriminator as r, index as s, convexTable as t, uniqueIndex as u, objectOf as v, entityKind as x, unionOf as y };
@@ -1,4 +1,4 @@
1
- import { t as JWT_COOKIE_NAME } from "./convex-plugin-Dic0l-k8.js";
1
+ import { t as JWT_COOKIE_NAME } from "./convex-plugin-AbNQl1Sg.js";
2
2
  import { betterFetch } from "@better-fetch/fetch";
3
3
  import { getSessionCookie } from "better-auth/cookies";
4
4
  import * as jose from "jose";
@@ -1,4 +1,4 @@
1
- import { P as CombinedDataTransformer, r as HttpClientError } from "./http-types-90mapMP9.js";
1
+ import { P as CombinedDataTransformer, r as HttpClientError } from "./http-types-BhhPZtwa.js";
2
2
  import { FunctionArgs, FunctionReference, FunctionReturnType } from "convex/server";
3
3
 
4
4
  //#region src/crpc/http-client.d.ts
package/dist/watcher.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { a as generateMeta, d as PARSE_SNAPSHOT_SUFFIX, i as resolveConfiguredBackend, n as withLocalCodegenEnv, o as getConvexConfig, r as loadCliConfig, u as logger } from "./local-env-Dk8RJvt5.mjs";
2
+ import { a as generateMeta, d as PARSE_SNAPSHOT_SUFFIX, i as resolveConfiguredBackend, n as withLocalCodegenEnv, o as getConvexConfig, r as loadCliConfig, u as logger } from "./local-env-CYYSNf_o.mjs";
3
3
  import path from "node:path";
4
4
  import { fileURLToPath } from "node:url";
5
5
 
@@ -1,4 +1,4 @@
1
- import { $t as OrmLifecycleChange, A as CreateDatabaseOptions, Ar as $Type, B as getUniqueIndexes, Ct as OrderByClause, F as CascadeMode, Ft as ExtractTablesFromSchema, Gn as Columns, Gt as TablesRelationalConfig, Ht as RelationsBuilderConfigValue, I as DeleteMode, Kn as OrmRuntimeDefaults, L as SerializedFilterExpression, Mr as ColumnBuilder, Mt as VectorSearchProvider, N as OrmReader, Nr as ColumnBuilderBaseConfig, Or as SystemFieldAliases, P as OrmWriter, Pt as AnyRelationsBuilderConfig, Qn as OrmSchemaTriggers, R as getChecks, U as EdgeMetadata, Un as ConvexColumnBuilder, Ur as entityKind, Ut as RelationsConfigWithSchema, Vn as ConvexTextBuilderInitial, Wt as TableRelationalConfig, Xt as ConvexTable, Yn as OrmSchemaExtensionTriggers, Zn as OrmSchemaRelations, Zt as ConvexTableWithColumns, an as RlsPolicy, dt as InferInsertModel, kr as SystemFields, pt as InferSelectModel, qn as OrmSchemaExtensionRelations, r as OrmCapability, rr as FilterExpression$1, x as MigrationSet, z as getForeignKeys, zr as HasDefault, zt as RelationsBuilder } from "./capabilities-6PZBmvc8.js";
1
+ import { $t as OrmLifecycleChange, A as CreateDatabaseOptions, Ar as $Type, B as getUniqueIndexes, Ct as OrderByClause, F as CascadeMode, Ft as ExtractTablesFromSchema, Gn as Columns, Gt as TablesRelationalConfig, Ht as RelationsBuilderConfigValue, I as DeleteMode, Kn as OrmRuntimeDefaults, L as SerializedFilterExpression, Mr as ColumnBuilder, Mt as VectorSearchProvider, N as OrmReader, Nr as ColumnBuilderBaseConfig, Or as SystemFieldAliases, P as OrmWriter, Pt as AnyRelationsBuilderConfig, Qn as OrmSchemaTriggers, R as getChecks, U as EdgeMetadata, Un as ConvexColumnBuilder, Ur as entityKind, Ut as RelationsConfigWithSchema, Vn as ConvexTextBuilderInitial, Wt as TableRelationalConfig, Xt as ConvexTable, Yn as OrmSchemaExtensionTriggers, Zn as OrmSchemaRelations, Zt as ConvexTableWithColumns, an as RlsPolicy, dt as InferInsertModel, kr as SystemFields, pt as InferSelectModel, qn as OrmSchemaExtensionRelations, r as OrmCapability, rr as FilterExpression$1, x as MigrationSet, z as getForeignKeys, zr as HasDefault, zt as RelationsBuilder } from "./capabilities-CG-oIMyR.js";
2
2
  import * as convex_values0 from "convex/values";
3
3
  import { GenericId, Validator, Value } from "convex/values";
4
4
  import { DefineSchemaOptions, GenericDatabaseReader, GenericDatabaseWriter, GenericSchema, SchedulableFunctionReference, Scheduler, SchemaDefinition, internalActionGeneric, internalMutationGeneric, internalQueryGeneric } from "convex/server";
@@ -102,25 +102,20 @@ declare const migrationStorageTables: {
102
102
  fieldName: "status";
103
103
  };
104
104
  };
105
- direction: ConvexTextBuilderInitial<""> & {
105
+ migrationId: ConvexTextBuilderInitial<""> & {
106
106
  _: {
107
- tableName: "migration_state";
107
+ notNull: true;
108
108
  };
109
109
  } & {
110
- _: {
111
- fieldName: "direction";
112
- };
113
- };
114
- cursor: ConvexTextBuilderInitial<""> & {
115
110
  _: {
116
111
  tableName: "migration_state";
117
112
  };
118
113
  } & {
119
114
  _: {
120
- fieldName: "cursor";
115
+ fieldName: "migrationId";
121
116
  };
122
117
  };
123
- migrationId: ConvexTextBuilderInitial<""> & {
118
+ checksum: ConvexTextBuilderInitial<""> & {
124
119
  _: {
125
120
  notNull: true;
126
121
  };
@@ -130,10 +125,10 @@ declare const migrationStorageTables: {
130
125
  };
131
126
  } & {
132
127
  _: {
133
- fieldName: "migrationId";
128
+ fieldName: "checksum";
134
129
  };
135
130
  };
136
- checksum: ConvexTextBuilderInitial<""> & {
131
+ applied: ConvexBooleanBuilderInitial<""> & {
137
132
  _: {
138
133
  notNull: true;
139
134
  };
@@ -143,29 +138,34 @@ declare const migrationStorageTables: {
143
138
  };
144
139
  } & {
145
140
  _: {
146
- fieldName: "checksum";
141
+ fieldName: "applied";
147
142
  };
148
143
  };
149
- applied: ConvexBooleanBuilderInitial<""> & {
144
+ direction: ConvexTextBuilderInitial<""> & {
150
145
  _: {
151
- notNull: true;
146
+ tableName: "migration_state";
152
147
  };
153
148
  } & {
149
+ _: {
150
+ fieldName: "direction";
151
+ };
152
+ };
153
+ runId: ConvexTextBuilderInitial<""> & {
154
154
  _: {
155
155
  tableName: "migration_state";
156
156
  };
157
157
  } & {
158
158
  _: {
159
- fieldName: "applied";
159
+ fieldName: "runId";
160
160
  };
161
161
  };
162
- runId: ConvexTextBuilderInitial<""> & {
162
+ cursor: ConvexTextBuilderInitial<""> & {
163
163
  _: {
164
164
  tableName: "migration_state";
165
165
  };
166
166
  } & {
167
167
  _: {
168
- fieldName: "runId";
168
+ fieldName: "cursor";
169
169
  };
170
170
  };
171
171
  processed: ConvexNumberBuilderInitial<""> & {
@@ -1024,7 +1024,7 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
1024
1024
  fieldName: "updatedAt";
1025
1025
  };
1026
1026
  };
1027
- indexName: ConvexTextBuilderInitial<""> & {
1027
+ count: ConvexNumberBuilderInitial<""> & {
1028
1028
  _: {
1029
1029
  notNull: true;
1030
1030
  };
@@ -1034,7 +1034,7 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
1034
1034
  };
1035
1035
  } & {
1036
1036
  _: {
1037
- fieldName: "indexName";
1037
+ fieldName: "count";
1038
1038
  };
1039
1039
  };
1040
1040
  tableKey: ConvexTextBuilderInitial<""> & {
@@ -1050,7 +1050,7 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
1050
1050
  fieldName: "tableKey";
1051
1051
  };
1052
1052
  };
1053
- count: ConvexNumberBuilderInitial<""> & {
1053
+ indexName: ConvexTextBuilderInitial<""> & {
1054
1054
  _: {
1055
1055
  notNull: true;
1056
1056
  };
@@ -1060,7 +1060,7 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
1060
1060
  };
1061
1061
  } & {
1062
1062
  _: {
1063
- fieldName: "count";
1063
+ fieldName: "indexName";
1064
1064
  };
1065
1065
  };
1066
1066
  keyHash: ConvexTextBuilderInitial<""> & {
@@ -1162,7 +1162,7 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
1162
1162
  fieldName: "updatedAt";
1163
1163
  };
1164
1164
  };
1165
- indexName: ConvexTextBuilderInitial<""> & {
1165
+ tableKey: ConvexTextBuilderInitial<""> & {
1166
1166
  _: {
1167
1167
  notNull: true;
1168
1168
  };
@@ -1172,10 +1172,10 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
1172
1172
  };
1173
1173
  } & {
1174
1174
  _: {
1175
- fieldName: "indexName";
1175
+ fieldName: "tableKey";
1176
1176
  };
1177
1177
  };
1178
- tableKey: ConvexTextBuilderInitial<""> & {
1178
+ indexName: ConvexTextBuilderInitial<""> & {
1179
1179
  _: {
1180
1180
  notNull: true;
1181
1181
  };
@@ -1185,7 +1185,7 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
1185
1185
  };
1186
1186
  } & {
1187
1187
  _: {
1188
- fieldName: "tableKey";
1188
+ fieldName: "indexName";
1189
1189
  };
1190
1190
  };
1191
1191
  keyHash: ConvexTextBuilderInitial<""> & {
@@ -1356,7 +1356,7 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
1356
1356
  fieldName: "updatedAt";
1357
1357
  };
1358
1358
  };
1359
- indexName: ConvexTextBuilderInitial<""> & {
1359
+ count: ConvexNumberBuilderInitial<""> & {
1360
1360
  _: {
1361
1361
  notNull: true;
1362
1362
  };
@@ -1366,7 +1366,7 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
1366
1366
  };
1367
1367
  } & {
1368
1368
  _: {
1369
- fieldName: "indexName";
1369
+ fieldName: "count";
1370
1370
  };
1371
1371
  };
1372
1372
  tableKey: ConvexTextBuilderInitial<""> & {
@@ -1382,7 +1382,7 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
1382
1382
  fieldName: "tableKey";
1383
1383
  };
1384
1384
  };
1385
- count: ConvexNumberBuilderInitial<""> & {
1385
+ indexName: ConvexTextBuilderInitial<""> & {
1386
1386
  _: {
1387
1387
  notNull: true;
1388
1388
  };
@@ -1392,7 +1392,7 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
1392
1392
  };
1393
1393
  } & {
1394
1394
  _: {
1395
- fieldName: "count";
1395
+ fieldName: "indexName";
1396
1396
  };
1397
1397
  };
1398
1398
  keyHash: ConvexTextBuilderInitial<""> & {
@@ -1470,6 +1470,15 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
1470
1470
  fieldName: "aggregateName";
1471
1471
  };
1472
1472
  };
1473
+ deletionStack: ConvexCustomBuilderInitial<"", convex_values0.VArray<convex_values0.GenericId<"aggregate_rank_node">[], convex_values0.VId<convex_values0.GenericId<"aggregate_rank_node">, "required">, "required">> & {
1474
+ _: {
1475
+ tableName: "aggregate_rank_tree";
1476
+ };
1477
+ } & {
1478
+ _: {
1479
+ fieldName: "deletionStack";
1480
+ };
1481
+ };
1473
1482
  maxNodeSize: ConvexNumberBuilderInitial<""> & {
1474
1483
  _: {
1475
1484
  notNull: true;
@@ -1484,10 +1493,6 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
1484
1493
  };
1485
1494
  };
1486
1495
  namespace: ConvexCustomBuilderInitial<"", convex_values0.VAny<any, "required", string>> & {
1487
- _: {
1488
- $type: convex_values0.Value;
1489
- };
1490
- } & {
1491
1496
  _: {
1492
1497
  tableName: "aggregate_rank_tree";
1493
1498
  };
@@ -1518,14 +1523,13 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
1518
1523
  readonly aggregate_rank_node: ConvexTableWithColumns<{
1519
1524
  name: "aggregate_rank_node";
1520
1525
  columns: {
1521
- aggregate: ConvexCustomBuilderInitial<"", ConvexValidatorLike> & {
1522
- _: {
1523
- $type: {
1524
- count: number;
1525
- sum: number;
1526
- };
1527
- };
1528
- } & {
1526
+ aggregate: ConvexCustomBuilderInitial<"", convex_values0.VObject<{
1527
+ count: number;
1528
+ sum: number;
1529
+ }, {
1530
+ count: convex_values0.VFloat64<number, "required">;
1531
+ sum: convex_values0.VFloat64<number, "required">;
1532
+ }, "required", "count" | "sum">> & {
1529
1533
  _: {
1530
1534
  tableName: "aggregate_rank_node";
1531
1535
  };
@@ -1534,15 +1538,19 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
1534
1538
  fieldName: "aggregate";
1535
1539
  };
1536
1540
  };
1537
- items: ConvexCustomBuilderInitial<"", convex_values0.VArray<any[], convex_values0.Validator<any, "required", any>, "required">> & {
1538
- _: {
1539
- $type: {
1540
- k: convex_values0.Value;
1541
- v: convex_values0.Value;
1542
- s: number;
1543
- }[];
1544
- };
1545
- } & {
1541
+ items: ConvexCustomBuilderInitial<"", convex_values0.VArray<{
1542
+ k: any;
1543
+ v: any;
1544
+ s: number;
1545
+ }[], convex_values0.VObject<{
1546
+ k: any;
1547
+ v: any;
1548
+ s: number;
1549
+ }, {
1550
+ k: convex_values0.VAny<any, "required", string>;
1551
+ v: convex_values0.VAny<any, "required", string>;
1552
+ s: convex_values0.VFloat64<number, "required">;
1553
+ }, "required", "k" | "v" | "s" | `k.${string}` | `v.${string}`>, "required">> & {
1546
1554
  _: {
1547
1555
  notNull: true;
1548
1556
  };
@@ -1555,11 +1563,7 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
1555
1563
  fieldName: "items";
1556
1564
  };
1557
1565
  };
1558
- subtrees: ConvexCustomBuilderInitial<"", convex_values0.VArray<any[], convex_values0.Validator<any, "required", any>, "required">> & {
1559
- _: {
1560
- $type: string[];
1561
- };
1562
- } & {
1566
+ subtrees: ConvexCustomBuilderInitial<"", convex_values0.VArray<string[], convex_values0.VString<string, "required">, "required">> & {
1563
1567
  _: {
1564
1568
  notNull: true;
1565
1569
  };
@@ -1671,7 +1675,7 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
1671
1675
  fieldName: "lastError";
1672
1676
  };
1673
1677
  };
1674
- indexName: ConvexTextBuilderInitial<""> & {
1678
+ tableKey: ConvexTextBuilderInitial<""> & {
1675
1679
  _: {
1676
1680
  notNull: true;
1677
1681
  };
@@ -1681,10 +1685,10 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
1681
1685
  };
1682
1686
  } & {
1683
1687
  _: {
1684
- fieldName: "indexName";
1688
+ fieldName: "tableKey";
1685
1689
  };
1686
1690
  };
1687
- keyDefinitionHash: ConvexTextBuilderInitial<""> & {
1691
+ indexName: ConvexTextBuilderInitial<""> & {
1688
1692
  _: {
1689
1693
  notNull: true;
1690
1694
  };
@@ -1694,10 +1698,10 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
1694
1698
  };
1695
1699
  } & {
1696
1700
  _: {
1697
- fieldName: "keyDefinitionHash";
1701
+ fieldName: "indexName";
1698
1702
  };
1699
1703
  };
1700
- metricDefinitionHash: ConvexTextBuilderInitial<""> & {
1704
+ keyDefinitionHash: ConvexTextBuilderInitial<""> & {
1701
1705
  _: {
1702
1706
  notNull: true;
1703
1707
  };
@@ -1707,10 +1711,10 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
1707
1711
  };
1708
1712
  } & {
1709
1713
  _: {
1710
- fieldName: "metricDefinitionHash";
1714
+ fieldName: "keyDefinitionHash";
1711
1715
  };
1712
1716
  };
1713
- tableKey: ConvexTextBuilderInitial<""> & {
1717
+ metricDefinitionHash: ConvexTextBuilderInitial<""> & {
1714
1718
  _: {
1715
1719
  notNull: true;
1716
1720
  };
@@ -1720,7 +1724,7 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
1720
1724
  };
1721
1725
  } & {
1722
1726
  _: {
1723
- fieldName: "tableKey";
1727
+ fieldName: "metricDefinitionHash";
1724
1728
  };
1725
1729
  };
1726
1730
  };
@@ -1747,25 +1751,20 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
1747
1751
  fieldName: "status";
1748
1752
  };
1749
1753
  };
1750
- direction: ConvexTextBuilderInitial<""> & {
1754
+ migrationId: ConvexTextBuilderInitial<""> & {
1751
1755
  _: {
1752
- tableName: "migration_state";
1756
+ notNull: true;
1753
1757
  };
1754
1758
  } & {
1755
- _: {
1756
- fieldName: "direction";
1757
- };
1758
- };
1759
- cursor: ConvexTextBuilderInitial<""> & {
1760
1759
  _: {
1761
1760
  tableName: "migration_state";
1762
1761
  };
1763
1762
  } & {
1764
1763
  _: {
1765
- fieldName: "cursor";
1764
+ fieldName: "migrationId";
1766
1765
  };
1767
1766
  };
1768
- migrationId: ConvexTextBuilderInitial<""> & {
1767
+ checksum: ConvexTextBuilderInitial<""> & {
1769
1768
  _: {
1770
1769
  notNull: true;
1771
1770
  };
@@ -1775,10 +1774,10 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
1775
1774
  };
1776
1775
  } & {
1777
1776
  _: {
1778
- fieldName: "migrationId";
1777
+ fieldName: "checksum";
1779
1778
  };
1780
1779
  };
1781
- checksum: ConvexTextBuilderInitial<""> & {
1780
+ applied: ConvexBooleanBuilderInitial<""> & {
1782
1781
  _: {
1783
1782
  notNull: true;
1784
1783
  };
@@ -1788,29 +1787,34 @@ declare const BUILTIN_SCHEMA_EXTENSIONS: readonly [SchemaExtension<{
1788
1787
  };
1789
1788
  } & {
1790
1789
  _: {
1791
- fieldName: "checksum";
1790
+ fieldName: "applied";
1792
1791
  };
1793
1792
  };
1794
- applied: ConvexBooleanBuilderInitial<""> & {
1793
+ direction: ConvexTextBuilderInitial<""> & {
1795
1794
  _: {
1796
- notNull: true;
1795
+ tableName: "migration_state";
1797
1796
  };
1798
1797
  } & {
1798
+ _: {
1799
+ fieldName: "direction";
1800
+ };
1801
+ };
1802
+ runId: ConvexTextBuilderInitial<""> & {
1799
1803
  _: {
1800
1804
  tableName: "migration_state";
1801
1805
  };
1802
1806
  } & {
1803
1807
  _: {
1804
- fieldName: "applied";
1808
+ fieldName: "runId";
1805
1809
  };
1806
1810
  };
1807
- runId: ConvexTextBuilderInitial<""> & {
1811
+ cursor: ConvexTextBuilderInitial<""> & {
1808
1812
  _: {
1809
1813
  tableName: "migration_state";
1810
1814
  };
1811
1815
  } & {
1812
1816
  _: {
1813
- fieldName: "runId";
1817
+ fieldName: "cursor";
1814
1818
  };
1815
1819
  };
1816
1820
  processed: ConvexNumberBuilderInitial<""> & {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kitcn",
3
- "version": "0.30.0",
3
+ "version": "0.31.1",
4
4
  "description": "kitcn - React Query integration and CLI tools for Convex",
5
5
  "keywords": [
6
6
  "convex",
@@ -1,37 +0,0 @@
1
- import { I as ConvexColumnBuilder, L as entityKind } from "./table-CX2lnX7e.js";
2
- import { v } from "convex/values";
3
-
4
- //#region src/orm/builders/id.ts
5
- /**
6
- * ID column builder class
7
- * Compiles to v.id(tableName) or v.optional(v.id(tableName))
8
- */
9
- var ConvexIdBuilder = class extends ConvexColumnBuilder {
10
- static [entityKind] = "ConvexIdBuilder";
11
- constructor(name, tableName) {
12
- super(name, "string", "ConvexId");
13
- this.tableName = tableName;
14
- this.config.referenceTable = tableName;
15
- }
16
- /**
17
- * Expose Convex validator for schema integration
18
- */
19
- get convexValidator() {
20
- if (this.config.notNull) return v.id(this.tableName);
21
- return v.optional(v.union(v.null(), v.id(this.tableName)));
22
- }
23
- /**
24
- * Compile to Convex validator
25
- * .notNull() → v.id(tableName)
26
- * nullable → v.optional(v.id(tableName))
27
- */
28
- build() {
29
- return this.convexValidator;
30
- }
31
- };
32
- function id(tableName) {
33
- return new ConvexIdBuilder("", tableName);
34
- }
35
-
36
- //#endregion
37
- export { id as t };
File without changes