better-convex 0.7.2 → 0.8.0

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 (48) hide show
  1. package/dist/aggregate/index.d.ts +1 -1
  2. package/dist/aggregate/index.js +1 -1
  3. package/dist/auth/http/index.d.ts +1 -1
  4. package/dist/auth/index.d.ts +10 -10
  5. package/dist/auth/index.js +5 -4
  6. package/dist/auth/nextjs/index.d.ts +2 -2
  7. package/dist/auth/nextjs/index.js +2 -2
  8. package/dist/{caller-factory-D3OuR1eI.js → caller-factory-CCsm4Dut.js} +2 -2
  9. package/dist/cli.mjs +414 -5
  10. package/dist/{codegen-Cz1idI3-.mjs → codegen-BS36cYTH.mjs} +88 -5
  11. package/dist/{create-schema-orm-69VF4CFV.js → create-schema-orm-OcyA0apQ.js} +10 -13
  12. package/dist/crpc/index.d.ts +2 -2
  13. package/dist/crpc/index.js +3 -3
  14. package/dist/customFunctions-RnzME_cJ.js +167 -0
  15. package/dist/{http-types-BCf2wCgp.d.ts → http-types-BK7FuIcR.d.ts} +1 -1
  16. package/dist/id-BcBb900m.js +121 -0
  17. package/dist/orm/index.d.ts +4 -3
  18. package/dist/orm/index.js +706 -165
  19. package/dist/plugins/index.d.ts +9 -0
  20. package/dist/plugins/index.js +3 -0
  21. package/dist/plugins/ratelimit/index.d.ts +222 -0
  22. package/dist/plugins/ratelimit/index.js +846 -0
  23. package/dist/plugins/ratelimit/react/index.d.ts +76 -0
  24. package/dist/plugins/ratelimit/react/index.js +294 -0
  25. package/dist/{procedure-caller-CcjtUFvL.d.ts → procedure-caller-DYjpq7rG.d.ts} +4 -19
  26. package/dist/rsc/index.d.ts +3 -3
  27. package/dist/rsc/index.js +4 -4
  28. package/dist/runtime-C0WcYGY0.js +1028 -0
  29. package/dist/schema-Bx6j2doh.js +204 -0
  30. package/dist/server/index.d.ts +2 -2
  31. package/dist/server/index.js +4 -3
  32. package/dist/{runtime-B9xQFY8W.js → table-B7yzBihE.js} +3 -1088
  33. package/dist/text-enum-CFdcLUuw.js +30 -0
  34. package/dist/{types-CIBGEYXq.d.ts → types-f53SgpBL.d.ts} +1 -1
  35. package/dist/validators-BcQFm1oY.d.ts +88 -0
  36. package/dist/{customFunctions-CZnCwoR3.js → validators-D_i3BK7v.js} +67 -165
  37. package/dist/watcher.mjs +1 -1
  38. package/dist/{where-clause-compiler-CRP-i1Qa.d.ts → where-clause-compiler-BIjTkVVJ.d.ts} +138 -2
  39. package/package.json +4 -1
  40. /package/dist/{create-schema-BdZOL6ns.js → create-schema-BsN0jL5S.js} +0 -0
  41. /package/dist/{error-Be4OcwwD.js → error-CAGGSN5H.js} +0 -0
  42. /package/dist/{meta-utils-DDVYp9Xf.js → meta-utils-NRyocOSc.js} +0 -0
  43. /package/dist/{query-context-BDSis9rT.js → query-context-DEUFBhXS.js} +0 -0
  44. /package/dist/{query-context-DGExXZIV.d.ts → query-context-ji7By8u0.d.ts} +0 -0
  45. /package/dist/{query-options-B0c1b6pZ.js → query-options-CSCmKYdJ.js} +0 -0
  46. /package/dist/{transformer-Dh0w2py0.js → transformer-ogg-4d78.js} +0 -0
  47. /package/dist/{types-DwGkkq2s.d.ts → types-BTb_4BaU.d.ts} +0 -0
  48. /package/dist/{types-DgwvxKbT.d.ts → types-CM67ko7K.d.ts} +0 -0
@@ -0,0 +1,204 @@
1
+ import { C as integer, T as entityKind, g as index, t as convexTable, w as ConvexColumnBuilder, x as text } from "./table-B7yzBihE.js";
2
+ import { r as custom, t as id } from "./id-BcBb900m.js";
3
+ import { v } from "convex/values";
4
+
5
+ //#region src/orm/builders/boolean.ts
6
+ /**
7
+ * Boolean column builder class
8
+ * Compiles to v.boolean() or v.optional(v.boolean())
9
+ */
10
+ var ConvexBooleanBuilder = class extends ConvexColumnBuilder {
11
+ static [entityKind] = "ConvexBooleanBuilder";
12
+ constructor(name) {
13
+ super(name, "boolean", "ConvexBoolean");
14
+ }
15
+ /**
16
+ * Expose Convex validator for schema integration
17
+ */
18
+ get convexValidator() {
19
+ if (this.config.notNull) return v.boolean();
20
+ return v.optional(v.union(v.null(), v.boolean()));
21
+ }
22
+ /**
23
+ * Compile to Convex validator
24
+ * .notNull() → v.boolean()
25
+ * nullable → v.optional(v.boolean())
26
+ */
27
+ build() {
28
+ return this.convexValidator;
29
+ }
30
+ };
31
+ function boolean(name) {
32
+ return new ConvexBooleanBuilder(name ?? "");
33
+ }
34
+
35
+ //#endregion
36
+ //#region src/orm/aggregate-index/schema.ts
37
+ const AGGREGATE_BUCKET_TABLE = "aggregate_bucket";
38
+ const AGGREGATE_MEMBER_TABLE = "aggregate_member";
39
+ const AGGREGATE_EXTREMA_TABLE = "aggregate_extrema";
40
+ const AGGREGATE_RANK_TREE_TABLE = "aggregate_rank_tree";
41
+ const AGGREGATE_RANK_NODE_TABLE = "aggregate_rank_node";
42
+ const AGGREGATE_STATE_TABLE = "aggregate_state";
43
+ const countBucketTable = convexTable(AGGREGATE_BUCKET_TABLE, {
44
+ tableKey: text().notNull(),
45
+ indexName: text().notNull(),
46
+ keyHash: text().notNull(),
47
+ keyParts: custom(v.array(v.any())).notNull(),
48
+ count: integer().notNull(),
49
+ sumValues: custom(v.record(v.string(), v.number())).notNull(),
50
+ nonNullCountValues: custom(v.record(v.string(), v.number())).notNull(),
51
+ updatedAt: integer().notNull()
52
+ }, (t) => [index("by_table_index_hash").on(t.tableKey, t.indexName, t.keyHash), index("by_table_index").on(t.tableKey, t.indexName)]);
53
+ const countMemberTable = convexTable(AGGREGATE_MEMBER_TABLE, {
54
+ kind: text().notNull(),
55
+ tableKey: text().notNull(),
56
+ indexName: text().notNull(),
57
+ docId: text().notNull(),
58
+ keyHash: text().notNull(),
59
+ keyParts: custom(v.array(v.any())).notNull(),
60
+ sumValues: custom(v.record(v.string(), v.number())).notNull(),
61
+ nonNullCountValues: custom(v.record(v.string(), v.number())).notNull(),
62
+ extremaValues: custom(v.record(v.string(), v.any())).notNull(),
63
+ rankNamespace: custom(v.any()),
64
+ rankKey: custom(v.any()),
65
+ rankSumValue: integer(),
66
+ updatedAt: integer().notNull()
67
+ }, (t) => [index("by_kind_table_index_doc").on(t.kind, t.tableKey, t.indexName, t.docId), index("by_kind_table_index").on(t.kind, t.tableKey, t.indexName)]);
68
+ const countExtremaTable = convexTable(AGGREGATE_EXTREMA_TABLE, {
69
+ tableKey: text().notNull(),
70
+ indexName: text().notNull(),
71
+ keyHash: text().notNull(),
72
+ fieldName: text().notNull(),
73
+ valueHash: text().notNull(),
74
+ value: custom(v.any()).notNull(),
75
+ sortKey: text().notNull(),
76
+ count: integer().notNull(),
77
+ updatedAt: integer().notNull()
78
+ }, (t) => [
79
+ index("by_table_index").on(t.tableKey, t.indexName),
80
+ index("by_table_index_hash_field_value").on(t.tableKey, t.indexName, t.keyHash, t.fieldName, t.valueHash),
81
+ index("by_table_index_hash_field_sort").on(t.tableKey, t.indexName, t.keyHash, t.fieldName, t.sortKey)
82
+ ]);
83
+ const countStateTable = convexTable(AGGREGATE_STATE_TABLE, {
84
+ kind: text().notNull(),
85
+ tableKey: text().notNull(),
86
+ indexName: text().notNull(),
87
+ keyDefinitionHash: text().notNull(),
88
+ metricDefinitionHash: text().notNull(),
89
+ status: text().notNull(),
90
+ cursor: text(),
91
+ processed: integer().notNull(),
92
+ startedAt: integer().notNull(),
93
+ updatedAt: integer().notNull(),
94
+ completedAt: integer(),
95
+ lastError: text()
96
+ }, (t) => [index("by_kind_table_index").on(t.kind, t.tableKey, t.indexName), index("by_kind_status").on(t.kind, t.status)]);
97
+ const aggregateCounterValidator = v.object({
98
+ count: v.number(),
99
+ sum: v.number()
100
+ });
101
+ const aggregateItemValidator = v.object({
102
+ k: v.any(),
103
+ v: v.any(),
104
+ s: v.number()
105
+ });
106
+ const rankTreeTable = convexTable(AGGREGATE_RANK_TREE_TABLE, {
107
+ aggregateName: text().notNull(),
108
+ maxNodeSize: integer().notNull(),
109
+ namespace: custom(v.any()),
110
+ root: id(AGGREGATE_RANK_NODE_TABLE).notNull()
111
+ }, (tree) => [index("by_namespace").on(tree.namespace), index("by_aggregate_name").on(tree.aggregateName)]);
112
+ const rankNodeTable = convexTable(AGGREGATE_RANK_NODE_TABLE, {
113
+ aggregate: custom(aggregateCounterValidator),
114
+ items: custom(v.array(aggregateItemValidator)).notNull(),
115
+ subtrees: custom(v.array(v.string())).notNull()
116
+ });
117
+ const aggregateStorageTables = {
118
+ [AGGREGATE_BUCKET_TABLE]: countBucketTable,
119
+ [AGGREGATE_MEMBER_TABLE]: countMemberTable,
120
+ [AGGREGATE_EXTREMA_TABLE]: countExtremaTable,
121
+ [AGGREGATE_RANK_TREE_TABLE]: rankTreeTable,
122
+ [AGGREGATE_RANK_NODE_TABLE]: rankNodeTable,
123
+ [AGGREGATE_STATE_TABLE]: countStateTable
124
+ };
125
+ const AGGREGATE_PLUGIN_TABLE_NAMES = [
126
+ AGGREGATE_BUCKET_TABLE,
127
+ AGGREGATE_MEMBER_TABLE,
128
+ AGGREGATE_EXTREMA_TABLE,
129
+ AGGREGATE_RANK_TREE_TABLE,
130
+ AGGREGATE_RANK_NODE_TABLE,
131
+ AGGREGATE_STATE_TABLE
132
+ ];
133
+ function aggregatePlugin() {
134
+ return {
135
+ key: "aggregate",
136
+ tableNames: AGGREGATE_PLUGIN_TABLE_NAMES,
137
+ inject: injectAggregateStorageTables
138
+ };
139
+ }
140
+ function injectAggregateStorageTables(schema) {
141
+ const merged = { ...schema };
142
+ for (const [tableName, tableDef] of Object.entries(aggregateStorageTables)) {
143
+ if (tableName in schema && schema[tableName] !== tableDef) throw new Error(`defineSchema cannot inject internal table '${tableName}' because the name is already in use.`);
144
+ merged[tableName] = tableDef;
145
+ }
146
+ return merged;
147
+ }
148
+
149
+ //#endregion
150
+ //#region src/orm/migrations/schema.ts
151
+ const MIGRATION_STATE_TABLE = "migration_state";
152
+ const MIGRATION_RUN_TABLE = "migration_run";
153
+ const migrationStateTable = convexTable(MIGRATION_STATE_TABLE, {
154
+ migrationId: text().notNull(),
155
+ checksum: text().notNull(),
156
+ applied: boolean().notNull(),
157
+ status: text().notNull(),
158
+ direction: text(),
159
+ runId: text(),
160
+ cursor: text(),
161
+ processed: integer().notNull(),
162
+ startedAt: integer(),
163
+ updatedAt: integer().notNull(),
164
+ completedAt: integer(),
165
+ lastError: text(),
166
+ writeMode: text().notNull()
167
+ }, (t) => [index("by_migration_id").on(t.migrationId), index("by_status").on(t.status)]);
168
+ const migrationRunTable = convexTable(MIGRATION_RUN_TABLE, {
169
+ runId: text().notNull(),
170
+ direction: text().notNull(),
171
+ status: text().notNull(),
172
+ dryRun: boolean().notNull(),
173
+ allowDrift: boolean().notNull(),
174
+ migrationIds: custom(v.array(v.string())).notNull(),
175
+ currentIndex: integer().notNull(),
176
+ startedAt: integer().notNull(),
177
+ updatedAt: integer().notNull(),
178
+ completedAt: integer(),
179
+ cancelRequested: boolean().notNull(),
180
+ lastError: text()
181
+ }, (t) => [index("by_run_id").on(t.runId), index("by_status").on(t.status)]);
182
+ const migrationStorageTables = {
183
+ [MIGRATION_STATE_TABLE]: migrationStateTable,
184
+ [MIGRATION_RUN_TABLE]: migrationRunTable
185
+ };
186
+ const MIGRATION_PLUGIN_TABLE_NAMES = [MIGRATION_STATE_TABLE, MIGRATION_RUN_TABLE];
187
+ function migrationPlugin() {
188
+ return {
189
+ key: "migration",
190
+ tableNames: MIGRATION_PLUGIN_TABLE_NAMES,
191
+ inject: injectMigrationStorageTables
192
+ };
193
+ }
194
+ function injectMigrationStorageTables(schema) {
195
+ const merged = { ...schema };
196
+ for (const [tableName, tableDef] of Object.entries(migrationStorageTables)) {
197
+ if (tableName in schema && schema[tableName] !== tableDef) throw new Error(`defineSchema cannot inject internal table '${tableName}' because the name is already in use.`);
198
+ merged[tableName] = tableDef;
199
+ }
200
+ return merged;
201
+ }
202
+
203
+ //#endregion
204
+ export { AGGREGATE_EXTREMA_TABLE as a, aggregatePlugin as c, AGGREGATE_BUCKET_TABLE as i, boolean as l, MIGRATION_STATE_TABLE as n, AGGREGATE_MEMBER_TABLE as o, migrationPlugin as r, AGGREGATE_STATE_TABLE as s, MIGRATION_RUN_TABLE as t };
@@ -1,3 +1,3 @@
1
- import { $ as QueryProcedureBuilder, A as GenericCtx, B as ConvexContext, C as CRPC_ERROR_CODE_TO_HTTP, Ct as zodToConvex, D as toCRPCError, E as isCRPCError, F as isRunMutationCtx, G as CallerOpts, H as LazyCaller, I as requireActionCtx, J as createApiLeaf, K as ServerCaller, L as requireMutationCtx, M as isActionCtx, N as isMutationCtx, O as CreateEnvOptions, P as isQueryCtx, Q as ProcedureBuilder, R as requireQueryCtx, S as CRPC_ERROR_CODES_BY_KEY, St as zodOutputToConvexFields, T as getHTTPStatusCodeFromError, U as createLazyCaller, V as createCallerFactory, W as CallerMeta, X as CRPCFunctionTypeHint, Y as ActionProcedureBuilder, Z as MutationProcedureBuilder, _ as WithHttpRouter, _t as zCustomAction, a as ProcedureCaller, at as handleHttpError, b as CRPCError, bt as zid, c as ProcedureFromFunctionReference, ct as ConvexValidatorFromZodOutput, d as createGenericCallerFactory, dt as Zid, et as createMiddlewareFactory, f as createGenericHandlerFactory, ft as ZodFromValidatorBase, g as typedProcedureResolver, gt as withSystemFields, h as defineProcedure, ht as convexToZodFields, i as ProcedureActionCallerFromRegistry, it as extractPathParams, j as RunMutationCtx, k as createEnv, l as ProcedureSchedulableCallerFromRegistry, lt as CustomBuilder, m as createProcedureHandlerFactory, mt as convexToZod, n as GeneratedProcedureRegistry, nt as HttpProcedureBuilder, o as ProcedureCallerFromRegistry, ot as matchPathParams, p as createProcedureCallerFactory, pt as ZodValidatorFromConvex, q as createServerCaller, r as GeneratedProcedureRegistryEntry, rt as createHttpProcedureBuilder, s as ProcedureDefinition, st as ConvexValidatorFromZod, t as CreateProcedureCallerFactoryOptions, tt as initCRPC, u as ProcedureScheduleCallerFromRegistry, ut as ZCustomCtx, v as inferApiInputs, vt as zCustomMutation, w as getCRPCErrorFromUnknown, wt as zodToConvexFields, x as CRPCErrorCode, xt as zodOutputToConvex, y as inferApiOutputs, yt as zCustomQuery, z as requireRunMutationCtx } from "../procedure-caller-CcjtUFvL.js";
2
- import { A as GetRawInputFn, B as Simplify, C as HttpProcedure, D as ProcedureMeta, E as InferHttpInput, F as MiddlewareMarker, I as MiddlewareNext, L as MiddlewareResult, M as MergeZodObjects, N as MiddlewareBuilder, O as AnyMiddleware, P as MiddlewareFunction, R as Overwrite, S as HttpMethod, T as HttpRouteDefinition, V as UnsetMarker, _ as extractRouteMap, b as HttpActionHandler, d as CRPCHttpRouter, f as HttpRouterDef, g as createHttpRouterFactory, h as createHttpRouter, j as IntersectIfDefined, k as AnyMiddlewareBuilder, m as HttpRouterWithHono, p as HttpRouterRecord, v as CRPCHonoHandler, w as HttpProcedureBuilderDef, x as HttpHandlerOpts, y as HttpActionConstructor, z as ResolveIfSet } from "../http-types-BCf2wCgp.js";
1
+ import { $ as QueryProcedureBuilder, A as GenericCtx, B as ConvexContext, C as CRPC_ERROR_CODE_TO_HTTP, Ct as zodToConvex, D as toCRPCError, E as isCRPCError, F as isRunMutationCtx, G as CallerOpts, H as LazyCaller, I as requireActionCtx, J as createApiLeaf, K as ServerCaller, L as requireMutationCtx, M as isActionCtx, N as isMutationCtx, O as CreateEnvOptions, P as isQueryCtx, Q as ProcedureBuilder, R as requireQueryCtx, S as CRPC_ERROR_CODES_BY_KEY, St as zodOutputToConvexFields, T as getHTTPStatusCodeFromError, U as createLazyCaller, V as createCallerFactory, W as CallerMeta, X as CRPCFunctionTypeHint, Y as ActionProcedureBuilder, Z as MutationProcedureBuilder, _ as WithHttpRouter, _t as zCustomAction, a as ProcedureCaller, at as handleHttpError, b as CRPCError, bt as zid, c as ProcedureFromFunctionReference, ct as ConvexValidatorFromZodOutput, d as createGenericCallerFactory, dt as Zid, et as createMiddlewareFactory, f as createGenericHandlerFactory, ft as ZodFromValidatorBase, g as typedProcedureResolver, gt as withSystemFields, h as defineProcedure, ht as convexToZodFields, i as ProcedureActionCallerFromRegistry, it as extractPathParams, j as RunMutationCtx, k as createEnv, l as ProcedureSchedulableCallerFromRegistry, lt as CustomBuilder, m as createProcedureHandlerFactory, mt as convexToZod, n as GeneratedProcedureRegistry, nt as HttpProcedureBuilder, o as ProcedureCallerFromRegistry, ot as matchPathParams, p as createProcedureCallerFactory, pt as ZodValidatorFromConvex, q as createServerCaller, r as GeneratedProcedureRegistryEntry, rt as createHttpProcedureBuilder, s as ProcedureDefinition, st as ConvexValidatorFromZod, t as CreateProcedureCallerFactoryOptions, tt as initCRPC, u as ProcedureScheduleCallerFromRegistry, ut as ZCustomCtx, v as inferApiInputs, vt as zCustomMutation, w as getCRPCErrorFromUnknown, wt as zodToConvexFields, x as CRPCErrorCode, xt as zodOutputToConvex, y as inferApiOutputs, yt as zCustomQuery, z as requireRunMutationCtx } from "../procedure-caller-DYjpq7rG.js";
2
+ import { A as GetRawInputFn, B as Simplify, C as HttpProcedure, D as ProcedureMeta, E as InferHttpInput, F as MiddlewareMarker, I as MiddlewareNext, L as MiddlewareResult, M as MergeZodObjects, N as MiddlewareBuilder, O as AnyMiddleware, P as MiddlewareFunction, R as Overwrite, S as HttpMethod, T as HttpRouteDefinition, V as UnsetMarker, _ as extractRouteMap, b as HttpActionHandler, d as CRPCHttpRouter, f as HttpRouterDef, g as createHttpRouterFactory, h as createHttpRouter, j as IntersectIfDefined, k as AnyMiddlewareBuilder, m as HttpRouterWithHono, p as HttpRouterRecord, v as CRPCHonoHandler, w as HttpProcedureBuilderDef, x as HttpHandlerOpts, y as HttpActionConstructor, z as ResolveIfSet } from "../http-types-BK7FuIcR.js";
3
3
  export { ActionProcedureBuilder, AnyMiddleware, AnyMiddlewareBuilder, CRPCError, CRPCErrorCode, CRPCFunctionTypeHint, CRPCHonoHandler, CRPCHttpRouter, CRPC_ERROR_CODES_BY_KEY, CRPC_ERROR_CODE_TO_HTTP, CallerMeta, CallerOpts, ConvexContext, ConvexValidatorFromZod, ConvexValidatorFromZodOutput, CreateEnvOptions, CreateProcedureCallerFactoryOptions, CustomBuilder, GeneratedProcedureRegistry, GeneratedProcedureRegistryEntry, GenericCtx, GetRawInputFn, HttpActionConstructor, HttpActionHandler, HttpHandlerOpts, HttpMethod, HttpProcedure, HttpProcedureBuilder, HttpProcedureBuilderDef, HttpRouteDefinition, HttpRouterDef, HttpRouterRecord, HttpRouterWithHono, InferHttpInput, IntersectIfDefined, LazyCaller, MergeZodObjects, MiddlewareBuilder, MiddlewareFunction, MiddlewareMarker, MiddlewareNext, MiddlewareResult, MutationProcedureBuilder, Overwrite, ProcedureActionCallerFromRegistry, ProcedureBuilder, ProcedureCaller, ProcedureCallerFromRegistry, ProcedureDefinition, ProcedureFromFunctionReference, ProcedureMeta, ProcedureSchedulableCallerFromRegistry, ProcedureScheduleCallerFromRegistry, QueryProcedureBuilder, ResolveIfSet, RunMutationCtx, ServerCaller, Simplify, UnsetMarker, WithHttpRouter, ZCustomCtx, Zid, ZodFromValidatorBase, ZodValidatorFromConvex, convexToZod, convexToZodFields, createApiLeaf, createCallerFactory, createEnv, createGenericCallerFactory, createGenericHandlerFactory, createHttpProcedureBuilder, createHttpRouter, createHttpRouterFactory, createLazyCaller, createMiddlewareFactory, createProcedureCallerFactory, createProcedureHandlerFactory, createServerCaller, defineProcedure, extractPathParams, extractRouteMap, getCRPCErrorFromUnknown, getHTTPStatusCodeFromError, handleHttpError, inferApiInputs, inferApiOutputs, initCRPC, isActionCtx, isCRPCError, isMutationCtx, isQueryCtx, isRunMutationCtx, matchPathParams, requireActionCtx, requireMutationCtx, requireQueryCtx, requireRunMutationCtx, toCRPCError, typedProcedureResolver, withSystemFields, zCustomAction, zCustomMutation, zCustomQuery, zid, zodOutputToConvex, zodOutputToConvexFields, zodToConvex, zodToConvexFields };
@@ -1,6 +1,7 @@
1
- import { c as isMutationCtx, d as requireActionCtx, f as requireMutationCtx, g as pick, i as addFieldsToValidator, l as isQueryCtx, m as requireRunMutationCtx, n as customCtx, o as vRequired, p as requireQueryCtx, s as isActionCtx, t as NoOp, u as isRunMutationCtx } from "../customFunctions-CZnCwoR3.js";
2
- import { i as decodeWire, o as encodeWire, s as getTransformer } from "../transformer-Dh0w2py0.js";
3
- import { n as createLazyCaller, r as createServerCaller, t as createCallerFactory } from "../caller-factory-D3OuR1eI.js";
1
+ import { l as pick, o as vRequired, t as addFieldsToValidator } from "../validators-D_i3BK7v.js";
2
+ import { a as isMutationCtx, c as requireActionCtx, d as requireRunMutationCtx, i as isActionCtx, l as requireMutationCtx, n as customCtx, o as isQueryCtx, s as isRunMutationCtx, t as NoOp, u as requireQueryCtx } from "../customFunctions-RnzME_cJ.js";
3
+ import { i as decodeWire, o as encodeWire, s as getTransformer } from "../transformer-ogg-4d78.js";
4
+ import { n as createLazyCaller, r as createServerCaller, t as createCallerFactory } from "../caller-factory-CCsm4Dut.js";
4
5
  import { ConvexError, v } from "convex/values";
5
6
  import { HttpRouter, actionGeneric, getFunctionName, httpActionGeneric, internalActionGeneric, internalMutationGeneric, internalQueryGeneric, makeFunctionReference, mutationGeneric, queryGeneric } from "convex/server";
6
7
  import * as z$1 from "zod/v4";