hono-crud 0.3.1 → 0.4.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 (35) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/dist/adapters/drizzle/index.d.ts +25 -37
  3. package/dist/adapters/drizzle/index.js +16 -43
  4. package/dist/adapters/memory/index.d.ts +13 -13
  5. package/dist/adapters/memory/index.js +3 -3
  6. package/dist/adapters/prisma/index.d.ts +6 -6
  7. package/dist/adapters/prisma/index.js +4 -5
  8. package/dist/auth/index.d.ts +4 -8
  9. package/dist/auth/index.js +2 -2
  10. package/dist/{bulk-patch-C1j76FUv.d.ts → bulk-patch-f4TR8L-q.d.ts} +3 -3
  11. package/dist/cache/index.d.ts +4 -8
  12. package/dist/cache/index.js +1 -1
  13. package/dist/{chunk-XYVTFG7O.js → chunk-57J3NJYN.js} +9 -17
  14. package/dist/{chunk-SCC4CBTS.js → chunk-CDCGYMC6.js} +7 -0
  15. package/dist/{chunk-OKVSQZMU.js → chunk-G7IQ5DWC.js} +10 -10
  16. package/dist/{chunk-IPGNLIJV.js → chunk-I36Y45QN.js} +1 -1
  17. package/dist/{chunk-NTQNZZSH.js → chunk-T6J4NSMC.js} +95 -59
  18. package/dist/{chunk-WOFE46VS.js → chunk-Y74QJH7Y.js} +25 -19
  19. package/dist/{import-C4cjkYZ1.d.ts → import-BZ05PJMa.d.ts} +49 -38
  20. package/dist/{index-Dm8-ODYA.d.ts → index-431Ovi2o.d.ts} +2 -2
  21. package/dist/{index-BVaCSKwG.d.ts → index-bSnRLgcs.d.ts} +12 -12
  22. package/dist/index.d.ts +44 -28
  23. package/dist/index.js +114 -40
  24. package/dist/logging/index.d.ts +4 -4
  25. package/dist/logging/index.js +2 -2
  26. package/dist/rate-limit/index.d.ts +2 -2
  27. package/dist/rate-limit/index.js +1 -1
  28. package/dist/{route-BCROG0Mx.d.ts → route-DwSID3du.d.ts} +9 -2
  29. package/dist/storage/index.d.ts +4 -4
  30. package/dist/storage/index.js +1 -1
  31. package/dist/{types-Bc7ebF5x.d.ts → types-BO3G_MZk.d.ts} +2 -2
  32. package/dist/{types-CwJSGrCj.d.ts → types-CA784ZtV.d.ts} +5 -1
  33. package/dist/{types-B8CWg4nO.d.ts → types-DnQWCfXp.d.ts} +1 -1
  34. package/dist/{versioning-4Pn5V1ed.d.ts → versioning-BG8-R7C0.d.ts} +1 -1
  35. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -12,6 +12,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
12
12
  %b
13
13
  %b
14
14
  %b
15
+ %b
16
+ %b
15
17
  ## [0.1.0] - 2025-01-29
16
18
 
17
19
  ### Added
@@ -40,3 +42,5 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
40
42
  [0.2.0]: https://github.com/kshdotdev/hono-crud/compare/v0.1.4...v0.2.0
41
43
  [0.3.0]: https://github.com/kshdotdev/hono-crud/compare/v0.2.0...v0.3.0
42
44
  [0.3.1]: https://github.com/kshdotdev/hono-crud/compare/v0.3.0...v0.3.1
45
+ [0.3.2]: https://github.com/kshdotdev/hono-crud/compare/v0.3.1...v0.3.2
46
+ [0.4.0]: https://github.com/kshdotdev/hono-crud/compare/v0.3.2...v0.4.0
@@ -1,13 +1,13 @@
1
1
  import { Table, SQL, Column } from 'drizzle-orm';
2
- import { M as MetaInput, I as IncludeOptions, F as FilterCondition, g as RelationConfig, h as NestedUpdateInput, i as NestedWriteResult, L as ListFilters, P as PaginatedResult, j as AggregateOptions, k as AggregateResult, S as SearchOptions, l as SearchResult } from '../../types-CwJSGrCj.js';
2
+ import { M as MetaInput, I as IncludeOptions, F as FilterCondition, g as RelationConfig, h as NestedUpdateInput, i as NestedWriteResult, L as ListFilters, P as PaginatedResult, j as AggregateOptions, k as AggregateResult, S as SearchOptions, l as SearchResult } from '../../types-CA784ZtV.js';
3
3
  import { Env } from 'hono';
4
- import { C as CreateEndpoint, M as ModelObject, R as ReadEndpoint, U as UpdateEndpoint, D as DeleteEndpoint, L as ListEndpoint, a as RestoreEndpoint, B as BatchCreateEndpoint, b as BatchDeleteEndpoint, c as BatchRestoreEndpoint, d as BatchUpdateEndpoint, e as BatchUpdateItem, A as AggregateEndpoint, f as BatchUpsertEndpoint, g as UpsertEndpoint, E as ExportEndpoint, I as ImportEndpoint, S as SearchEndpoint, V as VersionCompareEndpoint, h as VersionHistoryEndpoint, i as VersionReadEndpoint, j as VersionRollbackEndpoint } from '../../import-C4cjkYZ1.js';
5
- import { A as AdapterBundle } from '../../index-BVaCSKwG.js';
4
+ import { C as CreateEndpoint, M as ModelObject, R as ReadEndpoint, U as UpdateEndpoint, D as DeleteEndpoint, L as ListEndpoint, a as RestoreEndpoint, B as BatchCreateEndpoint, b as BatchDeleteEndpoint, c as BatchRestoreEndpoint, d as BatchUpdateEndpoint, e as BatchUpdateItem, A as AggregateEndpoint, f as BatchUpsertEndpoint, g as UpsertEndpoint, E as ExportEndpoint, I as ImportEndpoint, S as SearchEndpoint, V as VersionCompareEndpoint, h as VersionHistoryEndpoint, i as VersionReadEndpoint, j as VersionRollbackEndpoint } from '../../import-BZ05PJMa.js';
5
+ import { A as AdapterBundle } from '../../index-bSnRLgcs.js';
6
6
  import { z } from 'zod';
7
7
  import '@hono/zod-openapi';
8
- import '../../route-BCROG0Mx.js';
8
+ import '../../route-DwSID3du.js';
9
9
  import 'hono/utils/http-status';
10
- import '../../versioning-4Pn5V1ed.js';
10
+ import '../../versioning-BG8-R7C0.js';
11
11
 
12
12
  /**
13
13
  * Internal query builder interface used for type-safe method calls.
@@ -303,15 +303,15 @@ declare abstract class DrizzleDeleteEndpoint<E extends Env = Env, M extends Meta
303
303
  /**
304
304
  * Counts related records for restrict check.
305
305
  */
306
- protected countRelated(parentId: string | number, relationName: string, relationConfig: RelationConfig, tx?: unknown): Promise<number>;
306
+ protected countRelated(parentId: string | number, _relationName: string, relationConfig: RelationConfig, tx?: unknown): Promise<number>;
307
307
  /**
308
308
  * Deletes related records for cascade delete.
309
309
  */
310
- protected deleteRelated(parentId: string | number, relationName: string, relationConfig: RelationConfig, tx?: unknown): Promise<number>;
310
+ protected deleteRelated(parentId: string | number, _relationName: string, relationConfig: RelationConfig, tx?: unknown): Promise<number>;
311
311
  /**
312
312
  * Sets foreign key to null for related records.
313
313
  */
314
- protected nullifyRelated(parentId: string | number, relationName: string, relationConfig: RelationConfig, tx?: unknown): Promise<number>;
314
+ protected nullifyRelated(parentId: string | number, _relationName: string, relationConfig: RelationConfig, tx?: unknown): Promise<number>;
315
315
  /**
316
316
  * Override handle to wrap in transaction when useTransaction is true.
317
317
  */
@@ -731,7 +731,7 @@ declare const DrizzleAdapters: AdapterBundle;
731
731
  * createdAt: timestamp('created_at').defaultNow(),
732
732
  * });
733
733
  *
734
- * const { select: UserSchema, insert: CreateUserSchema } = createDrizzleSchemas(users);
734
+ * const { select: UserSchema, insert: CreateUserSchema } = await createDrizzleSchemas(users);
735
735
  * ```
736
736
  */
737
737
 
@@ -742,7 +742,7 @@ declare const DrizzleAdapters: AdapterBundle;
742
742
  type DrizzleTable = {
743
743
  _: {
744
744
  name: string;
745
- columns: Record<string, any>;
745
+ columns: Record<string, unknown>;
746
746
  };
747
747
  };
748
748
  /**
@@ -751,36 +751,36 @@ type DrizzleTable = {
751
751
  *
752
752
  * @param table - Drizzle table definition
753
753
  * @param refine - Optional refinements for specific columns
754
- * @returns Zod schema for the table's select type
754
+ * @returns Promise resolving to a Zod schema for the table's select type
755
755
  *
756
756
  * @example
757
757
  * ```ts
758
758
  * import { users } from './schema';
759
759
  * import { createSelectSchema } from 'hono-crud/adapters/drizzle';
760
760
  *
761
- * const UserSchema = createSelectSchema(users);
761
+ * const UserSchema = await createSelectSchema(users);
762
762
  * type User = z.infer<typeof UserSchema>;
763
763
  * ```
764
764
  */
765
- declare function createSelectSchema<T extends DrizzleTable>(table: T, refine?: Record<string, z.ZodTypeAny>): z.ZodObject<Record<string, z.ZodTypeAny>>;
765
+ declare function createSelectSchema<T extends DrizzleTable>(table: T, refine?: Record<string, z.ZodTypeAny>): Promise<z.ZodObject<Record<string, z.ZodTypeAny>>>;
766
766
  /**
767
767
  * Re-export createInsertSchema from drizzle-zod.
768
768
  * Creates a Zod schema for INSERT queries (columns with defaults become optional).
769
769
  *
770
770
  * @param table - Drizzle table definition
771
771
  * @param refine - Optional refinements for specific columns
772
- * @returns Zod schema for the table's insert type
772
+ * @returns Promise resolving to a Zod schema for the table's insert type
773
773
  *
774
774
  * @example
775
775
  * ```ts
776
776
  * import { users } from './schema';
777
777
  * import { createInsertSchema } from 'hono-crud/adapters/drizzle';
778
778
  *
779
- * const CreateUserSchema = createInsertSchema(users);
779
+ * const CreateUserSchema = await createInsertSchema(users);
780
780
  * type CreateUser = z.infer<typeof CreateUserSchema>;
781
781
  * ```
782
782
  */
783
- declare function createInsertSchema<T extends DrizzleTable>(table: T, refine?: Record<string, z.ZodTypeAny>): z.ZodObject<Record<string, z.ZodTypeAny>>;
783
+ declare function createInsertSchema<T extends DrizzleTable>(table: T, refine?: Record<string, z.ZodTypeAny>): Promise<z.ZodObject<Record<string, z.ZodTypeAny>>>;
784
784
  /**
785
785
  * Re-export createUpdateSchema from drizzle-zod (if available).
786
786
  * Creates a Zod schema for UPDATE queries (all columns become optional).
@@ -790,18 +790,18 @@ declare function createInsertSchema<T extends DrizzleTable>(table: T, refine?: R
790
790
  *
791
791
  * @param table - Drizzle table definition
792
792
  * @param refine - Optional refinements for specific columns
793
- * @returns Zod schema for the table's update type
793
+ * @returns Promise resolving to a Zod schema for the table's update type
794
794
  *
795
795
  * @example
796
796
  * ```ts
797
797
  * import { users } from './schema';
798
798
  * import { createUpdateSchema } from 'hono-crud/adapters/drizzle';
799
799
  *
800
- * const UpdateUserSchema = createUpdateSchema(users);
800
+ * const UpdateUserSchema = await createUpdateSchema(users);
801
801
  * type UpdateUser = z.infer<typeof UpdateUserSchema>;
802
802
  * ```
803
803
  */
804
- declare function createUpdateSchema<T extends DrizzleTable>(table: T, refine?: Record<string, z.ZodTypeAny>): z.ZodObject<Record<string, z.ZodTypeAny>>;
804
+ declare function createUpdateSchema<T extends DrizzleTable>(table: T, refine?: Record<string, z.ZodTypeAny>): Promise<z.ZodObject<Record<string, z.ZodTypeAny>>>;
805
805
  /**
806
806
  * Result of createDrizzleSchemas helper.
807
807
  */
@@ -830,7 +830,7 @@ interface DrizzleSchemas {
830
830
  * @param options.selectRefine - Refinements for select schema
831
831
  * @param options.updateRefine - Refinements for update schema
832
832
  * @param options.coerceDates - Whether to coerce date strings to Date objects (default: true)
833
- * @returns Object containing select, insert, and update schemas
833
+ * @returns Promise resolving to object containing select, insert, and update schemas
834
834
  *
835
835
  * @example
836
836
  * ```ts
@@ -845,7 +845,7 @@ interface DrizzleSchemas {
845
845
  * });
846
846
  *
847
847
  * // Generate schemas from table
848
- * const schemas = createDrizzleSchemas(users, {
848
+ * const schemas = await createDrizzleSchemas(users, {
849
849
  * insertRefine: {
850
850
  * email: z.string().email(), // Add email validation
851
851
  * },
@@ -866,24 +866,12 @@ declare function createDrizzleSchemas<T extends DrizzleTable>(table: T, options?
866
866
  updateRefine?: Record<string, z.ZodTypeAny>;
867
867
  /** Whether to coerce date strings to Date objects. Default: true */
868
868
  coerceDates?: boolean;
869
- }): DrizzleSchemas;
870
- /**
871
- * Async version of createDrizzleSchemas that handles lazy loading.
872
- * Use this if you're not sure drizzle-zod is already loaded.
873
- *
874
- * @param table - Drizzle table definition
875
- * @param options - Optional configuration
876
- * @returns Promise resolving to schemas object
877
- */
878
- declare function createDrizzleSchemasAsync<T extends DrizzleTable>(table: T, options?: {
879
- insertRefine?: Record<string, z.ZodTypeAny>;
880
- selectRefine?: Record<string, z.ZodTypeAny>;
881
- updateRefine?: Record<string, z.ZodTypeAny>;
882
869
  }): Promise<DrizzleSchemas>;
883
870
  /**
884
- * Checks if drizzle-zod is available.
885
- * @returns true if drizzle-zod can be imported
871
+ * Checks if drizzle-zod is available (from cache only).
872
+ * Returns true only if drizzle-zod has been successfully loaded before.
873
+ * @returns true if drizzle-zod has been loaded
886
874
  */
887
875
  declare function isDrizzleZodAvailable(): boolean;
888
876
 
889
- export { type Database, DrizzleAdapters, DrizzleAggregateEndpoint, DrizzleBatchCreateEndpoint, DrizzleBatchDeleteEndpoint, DrizzleBatchRestoreEndpoint, DrizzleBatchUpdateEndpoint, DrizzleBatchUpsertEndpoint, DrizzleCreateEndpoint, type DrizzleCrudClasses, type DrizzleDB, type DrizzleDatabase, type DrizzleDatabaseConstraint, DrizzleDeleteEndpoint, type DrizzleEnv, DrizzleExportEndpoint, DrizzleImportEndpoint, DrizzleListEndpoint, DrizzleReadEndpoint, DrizzleRestoreEndpoint, type DrizzleSchemas, DrizzleSearchEndpoint, DrizzleUpdateEndpoint, DrizzleUpsertEndpoint, DrizzleVersionCompareEndpoint, DrizzleVersionHistoryEndpoint, DrizzleVersionReadEndpoint, DrizzleVersionRollbackEndpoint, type QueryBuilder, batchLoadDrizzleRelations, buildWhereCondition, cast, createDrizzleCrud, createDrizzleSchemas, createDrizzleSchemasAsync, createInsertSchema, createSelectSchema, createUpdateSchema, getColumn, getTable, isDrizzleZodAvailable, loadDrizzleRelation, loadDrizzleRelations };
877
+ export { type Database, DrizzleAdapters, DrizzleAggregateEndpoint, DrizzleBatchCreateEndpoint, DrizzleBatchDeleteEndpoint, DrizzleBatchRestoreEndpoint, DrizzleBatchUpdateEndpoint, DrizzleBatchUpsertEndpoint, DrizzleCreateEndpoint, type DrizzleCrudClasses, type DrizzleDB, type DrizzleDatabase, type DrizzleDatabaseConstraint, DrizzleDeleteEndpoint, type DrizzleEnv, DrizzleExportEndpoint, DrizzleImportEndpoint, DrizzleListEndpoint, DrizzleReadEndpoint, DrizzleRestoreEndpoint, type DrizzleSchemas, DrizzleSearchEndpoint, DrizzleUpdateEndpoint, DrizzleUpsertEndpoint, DrizzleVersionCompareEndpoint, DrizzleVersionHistoryEndpoint, DrizzleVersionReadEndpoint, DrizzleVersionRollbackEndpoint, type QueryBuilder, batchLoadDrizzleRelations, buildWhereCondition, cast, createDrizzleCrud, createDrizzleSchemas, createInsertSchema, createSelectSchema, createUpdateSchema, getColumn, getTable, isDrizzleZodAvailable, loadDrizzleRelation, loadDrizzleRelations };
@@ -1,10 +1,9 @@
1
- import { CreateEndpoint, ReadEndpoint, UpdateEndpoint, DeleteEndpoint, ListEndpoint, RestoreEndpoint, BatchCreateEndpoint, BatchUpdateEndpoint, BatchDeleteEndpoint, BatchRestoreEndpoint, UpsertEndpoint, BatchUpsertEndpoint, VersionHistoryEndpoint, VersionReadEndpoint, VersionCompareEndpoint, VersionRollbackEndpoint, AggregateEndpoint, computeAggregations, SearchEndpoint, searchInMemory, ExportEndpoint, ImportEndpoint } from '../../chunk-NTQNZZSH.js';
2
- import '../../chunk-SCC4CBTS.js';
1
+ import { CreateEndpoint, ReadEndpoint, UpdateEndpoint, DeleteEndpoint, ListEndpoint, RestoreEndpoint, BatchCreateEndpoint, BatchUpdateEndpoint, BatchDeleteEndpoint, BatchRestoreEndpoint, UpsertEndpoint, BatchUpsertEndpoint, VersionHistoryEndpoint, VersionReadEndpoint, VersionCompareEndpoint, VersionRollbackEndpoint, AggregateEndpoint, computeAggregations, SearchEndpoint, searchInMemory, ExportEndpoint, ImportEndpoint } from '../../chunk-T6J4NSMC.js';
2
+ import '../../chunk-CDCGYMC6.js';
3
3
  import '../../chunk-U3SUUXJK.js';
4
4
  import { getLogger } from '../../chunk-FST5S5UY.js';
5
5
  import { getTableColumns, eq, inArray, between, isNull, isNotNull, ilike, like, notInArray, lte, lt, gte, gt, ne, and, sql, or, desc, asc } from 'drizzle-orm';
6
6
  import { z } from 'zod';
7
- import { createRequire } from 'module';
8
7
 
9
8
  function cast(instance) {
10
9
  return instance;
@@ -560,7 +559,7 @@ var DrizzleDeleteEndpoint = class extends DeleteEndpoint {
560
559
  /**
561
560
  * Counts related records for restrict check.
562
561
  */
563
- async countRelated(parentId, relationName, relationConfig, tx) {
562
+ async countRelated(parentId, _relationName, relationConfig, tx) {
564
563
  const db = tx ?? this.getDb();
565
564
  const relatedTable = this.getRelatedTable(relationConfig);
566
565
  if (!relatedTable) return 0;
@@ -571,7 +570,7 @@ var DrizzleDeleteEndpoint = class extends DeleteEndpoint {
571
570
  /**
572
571
  * Deletes related records for cascade delete.
573
572
  */
574
- async deleteRelated(parentId, relationName, relationConfig, tx) {
573
+ async deleteRelated(parentId, _relationName, relationConfig, tx) {
575
574
  const db = tx ?? this.getDb();
576
575
  const relatedTable = this.getRelatedTable(relationConfig);
577
576
  if (!relatedTable) return 0;
@@ -582,7 +581,7 @@ var DrizzleDeleteEndpoint = class extends DeleteEndpoint {
582
581
  /**
583
582
  * Sets foreign key to null for related records.
584
583
  */
585
- async nullifyRelated(parentId, relationName, relationConfig, tx) {
584
+ async nullifyRelated(parentId, _relationName, relationConfig, tx) {
586
585
  const db = tx ?? this.getDb();
587
586
  const relatedTable = this.getRelatedTable(relationConfig);
588
587
  if (!relatedTable) return 0;
@@ -1520,27 +1519,10 @@ var DrizzleAdapters = {
1520
1519
  UpdateEndpoint: DrizzleUpdateEndpoint,
1521
1520
  DeleteEndpoint: DrizzleDeleteEndpoint
1522
1521
  };
1523
- var require2 = createRequire(import.meta.url);
1524
1522
  var _drizzleZod = null;
1525
1523
  var _loadAttempted = false;
1526
1524
  var _loadError = null;
1527
- function tryLoadDrizzleZod() {
1528
- if (_loadAttempted) {
1529
- if (_loadError) throw _loadError;
1530
- return _drizzleZod;
1531
- }
1532
- _loadAttempted = true;
1533
- try {
1534
- _drizzleZod = require2("drizzle-zod");
1535
- return _drizzleZod;
1536
- } catch {
1537
- _loadError = new Error(
1538
- "drizzle-zod is not installed. Please install it: npm install drizzle-zod"
1539
- );
1540
- throw _loadError;
1541
- }
1542
- }
1543
- async function loadDrizzleZodAsync() {
1525
+ async function ensureDrizzleZod() {
1544
1526
  if (_loadAttempted) {
1545
1527
  if (_loadError) throw _loadError;
1546
1528
  return _drizzleZod;
@@ -1556,24 +1538,24 @@ async function loadDrizzleZodAsync() {
1556
1538
  throw _loadError;
1557
1539
  }
1558
1540
  }
1559
- function createSelectSchema(table, refine) {
1560
- const drizzleZod = tryLoadDrizzleZod();
1541
+ async function createSelectSchema(table, refine) {
1542
+ const drizzleZod = await ensureDrizzleZod();
1561
1543
  return drizzleZod.createSelectSchema(table, refine);
1562
1544
  }
1563
- function createInsertSchema(table, refine) {
1564
- const drizzleZod = tryLoadDrizzleZod();
1545
+ async function createInsertSchema(table, refine) {
1546
+ const drizzleZod = await ensureDrizzleZod();
1565
1547
  return drizzleZod.createInsertSchema(table, refine);
1566
1548
  }
1567
- function createUpdateSchema(table, refine) {
1568
- const drizzleZod = tryLoadDrizzleZod();
1549
+ async function createUpdateSchema(table, refine) {
1550
+ const drizzleZod = await ensureDrizzleZod();
1569
1551
  if (drizzleZod.createUpdateSchema) {
1570
1552
  return drizzleZod.createUpdateSchema(table, refine);
1571
1553
  }
1572
1554
  const insertSchema = drizzleZod.createInsertSchema(table, refine);
1573
1555
  return insertSchema.partial();
1574
1556
  }
1575
- function createDrizzleSchemas(table, options) {
1576
- const drizzleZod = tryLoadDrizzleZod();
1557
+ async function createDrizzleSchemas(table, options) {
1558
+ const drizzleZod = await ensureDrizzleZod();
1577
1559
  const shouldCoerceDates = options?.coerceDates !== false;
1578
1560
  const dateColumns = shouldCoerceDates ? getDateColumns(table) : /* @__PURE__ */ new Set();
1579
1561
  const select = drizzleZod.createSelectSchema(table, options?.selectRefine);
@@ -1590,17 +1572,8 @@ function createDrizzleSchemas(table, options) {
1590
1572
  }
1591
1573
  return { select, insert, update };
1592
1574
  }
1593
- async function createDrizzleSchemasAsync(table, options) {
1594
- await loadDrizzleZodAsync();
1595
- return createDrizzleSchemas(table, options);
1596
- }
1597
1575
  function isDrizzleZodAvailable() {
1598
- try {
1599
- tryLoadDrizzleZod();
1600
- return true;
1601
- } catch {
1602
- return false;
1603
- }
1576
+ return _drizzleZod !== null;
1604
1577
  }
1605
1578
  var coercedDate = z.preprocess(
1606
1579
  (val) => {
@@ -1665,4 +1638,4 @@ function applyDateCoercion(schema, dateColumns) {
1665
1638
  return z.object(newShape);
1666
1639
  }
1667
1640
 
1668
- export { DrizzleAdapters, DrizzleAggregateEndpoint, DrizzleBatchCreateEndpoint, DrizzleBatchDeleteEndpoint, DrizzleBatchRestoreEndpoint, DrizzleBatchUpdateEndpoint, DrizzleBatchUpsertEndpoint, DrizzleCreateEndpoint, DrizzleDeleteEndpoint, DrizzleExportEndpoint, DrizzleImportEndpoint, DrizzleListEndpoint, DrizzleReadEndpoint, DrizzleRestoreEndpoint, DrizzleSearchEndpoint, DrizzleUpdateEndpoint, DrizzleUpsertEndpoint, DrizzleVersionCompareEndpoint, DrizzleVersionHistoryEndpoint, DrizzleVersionReadEndpoint, DrizzleVersionRollbackEndpoint, batchLoadDrizzleRelations, buildWhereCondition, cast, createDrizzleCrud, createDrizzleSchemas, createDrizzleSchemasAsync, createInsertSchema, createSelectSchema, createUpdateSchema, getColumn, getTable, isDrizzleZodAvailable, loadDrizzleRelation, loadDrizzleRelations };
1641
+ export { DrizzleAdapters, DrizzleAggregateEndpoint, DrizzleBatchCreateEndpoint, DrizzleBatchDeleteEndpoint, DrizzleBatchRestoreEndpoint, DrizzleBatchUpdateEndpoint, DrizzleBatchUpsertEndpoint, DrizzleCreateEndpoint, DrizzleDeleteEndpoint, DrizzleExportEndpoint, DrizzleImportEndpoint, DrizzleListEndpoint, DrizzleReadEndpoint, DrizzleRestoreEndpoint, DrizzleSearchEndpoint, DrizzleUpdateEndpoint, DrizzleUpsertEndpoint, DrizzleVersionCompareEndpoint, DrizzleVersionHistoryEndpoint, DrizzleVersionReadEndpoint, DrizzleVersionRollbackEndpoint, batchLoadDrizzleRelations, buildWhereCondition, cast, createDrizzleCrud, createDrizzleSchemas, createInsertSchema, createSelectSchema, createUpdateSchema, getColumn, getTable, isDrizzleZodAvailable, loadDrizzleRelation, loadDrizzleRelations };
@@ -1,11 +1,11 @@
1
1
  import { Env } from 'hono';
2
- import { C as CreateEndpoint, M as ModelObject, D as DeleteEndpoint, L as ListEndpoint, R as ReadEndpoint, a as RestoreEndpoint, U as UpdateEndpoint, B as BatchCreateEndpoint, b as BatchDeleteEndpoint, c as BatchRestoreEndpoint, d as BatchUpdateEndpoint, e as BatchUpdateItem, f as BatchUpsertEndpoint, A as AggregateEndpoint, E as ExportEndpoint, I as ImportEndpoint, S as SearchEndpoint, g as UpsertEndpoint, V as VersionCompareEndpoint, h as VersionHistoryEndpoint, i as VersionReadEndpoint, j as VersionRollbackEndpoint } from '../../import-C4cjkYZ1.js';
3
- import { M as MetaInput, g as RelationConfig, L as ListFilters, P as PaginatedResult, I as IncludeOptions, h as NestedUpdateInput, i as NestedWriteResult, j as AggregateOptions, k as AggregateResult, S as SearchOptions, l as SearchResult } from '../../types-CwJSGrCj.js';
4
- import { B as BulkPatchEndpoint, C as CloneEndpoint } from '../../bulk-patch-C1j76FUv.js';
2
+ import { C as CreateEndpoint, M as ModelObject, D as DeleteEndpoint, L as ListEndpoint, R as ReadEndpoint, a as RestoreEndpoint, U as UpdateEndpoint, B as BatchCreateEndpoint, b as BatchDeleteEndpoint, c as BatchRestoreEndpoint, d as BatchUpdateEndpoint, e as BatchUpdateItem, f as BatchUpsertEndpoint, A as AggregateEndpoint, E as ExportEndpoint, I as ImportEndpoint, S as SearchEndpoint, g as UpsertEndpoint, V as VersionCompareEndpoint, h as VersionHistoryEndpoint, i as VersionReadEndpoint, j as VersionRollbackEndpoint } from '../../import-BZ05PJMa.js';
3
+ import { M as MetaInput, g as RelationConfig, L as ListFilters, P as PaginatedResult, I as IncludeOptions, h as NestedUpdateInput, i as NestedWriteResult, j as AggregateOptions, k as AggregateResult, S as SearchOptions, l as SearchResult } from '../../types-CA784ZtV.js';
4
+ import { B as BulkPatchEndpoint, C as CloneEndpoint } from '../../bulk-patch-f4TR8L-q.js';
5
5
  import 'zod';
6
- import '../../route-BCROG0Mx.js';
6
+ import '../../route-DwSID3du.js';
7
7
  import 'hono/utils/http-status';
8
- import '../../versioning-4Pn5V1ed.js';
8
+ import '../../versioning-BG8-R7C0.js';
9
9
  import '@hono/zod-openapi';
10
10
 
11
11
  /**
@@ -47,7 +47,7 @@ declare abstract class MemoryCreateEndpoint<E extends Env = Env, M extends MetaI
47
47
  /**
48
48
  * Creates nested related records for the parent.
49
49
  */
50
- protected createNested(parentId: string | number, relationName: string, relationConfig: RelationConfig, data: unknown): Promise<unknown[]>;
50
+ protected createNested(parentId: string | number, _relationName: string, relationConfig: RelationConfig, data: unknown): Promise<unknown[]>;
51
51
  }
52
52
  /**
53
53
  * Memory-based Read endpoint for testing.
@@ -70,7 +70,7 @@ declare abstract class MemoryUpdateEndpoint<E extends Env = Env, M extends MetaI
70
70
  /**
71
71
  * Processes nested write operations for related records.
72
72
  */
73
- protected processNestedWrites(parentId: string | number, relationName: string, relationConfig: RelationConfig, operations: NestedUpdateInput): Promise<NestedWriteResult>;
73
+ protected processNestedWrites(parentId: string | number, _relationName: string, relationConfig: RelationConfig, operations: NestedUpdateInput): Promise<NestedWriteResult>;
74
74
  }
75
75
  /**
76
76
  * Memory-based Delete endpoint for testing.
@@ -85,15 +85,15 @@ declare abstract class MemoryDeleteEndpoint<E extends Env = Env, M extends MetaI
85
85
  /**
86
86
  * Counts related records for restrict check.
87
87
  */
88
- protected countRelated(parentId: string | number, relationName: string, relationConfig: RelationConfig): Promise<number>;
88
+ protected countRelated(parentId: string | number, _relationName: string, relationConfig: RelationConfig): Promise<number>;
89
89
  /**
90
90
  * Deletes related records for cascade delete.
91
91
  */
92
- protected deleteRelated(parentId: string | number, relationName: string, relationConfig: RelationConfig): Promise<number>;
92
+ protected deleteRelated(parentId: string | number, _relationName: string, relationConfig: RelationConfig): Promise<number>;
93
93
  /**
94
94
  * Sets foreign key to null for related records.
95
95
  */
96
- protected nullifyRelated(parentId: string | number, relationName: string, relationConfig: RelationConfig): Promise<number>;
96
+ protected nullifyRelated(parentId: string | number, _relationName: string, relationConfig: RelationConfig): Promise<number>;
97
97
  delete(lookupValue: string, additionalFilters?: Record<string, string>): Promise<ModelObject<M['model']> | null>;
98
98
  }
99
99
  /**
@@ -176,7 +176,7 @@ declare abstract class MemoryBatchUpsertEndpoint<E extends Env = Env, M extends
176
176
  * Performs a native batch upsert operation.
177
177
  * For in-memory storage, this processes all items atomically.
178
178
  */
179
- protected nativeBatchUpsert(items: Partial<ModelObject<M['model']>>[], tx?: unknown): Promise<{
179
+ protected nativeBatchUpsert(items: Partial<ModelObject<M['model']>>[], _tx?: unknown): Promise<{
180
180
  items: Array<{
181
181
  data: ModelObject<M['model']>;
182
182
  created: boolean;
@@ -232,14 +232,14 @@ declare abstract class MemoryUpsertEndpoint<E extends Env = Env, M extends MetaI
232
232
  * Note: Unlike database native upsert, this can accurately determine if the record
233
233
  * was created or updated.
234
234
  */
235
- protected nativeUpsert(data: Partial<ModelObject<M['model']>>, tx?: unknown): Promise<{
235
+ protected nativeUpsert(data: Partial<ModelObject<M['model']>>, _tx?: unknown): Promise<{
236
236
  data: ModelObject<M['model']>;
237
237
  created: boolean;
238
238
  }>;
239
239
  /**
240
240
  * Processes nested write operations.
241
241
  */
242
- protected processNestedWrites(parentId: string | number, relationName: string, relationConfig: RelationConfig, operations: NestedUpdateInput): Promise<NestedWriteResult>;
242
+ protected processNestedWrites(parentId: string | number, _relationName: string, relationConfig: RelationConfig, operations: NestedUpdateInput): Promise<NestedWriteResult>;
243
243
  }
244
244
  /**
245
245
  * Memory-based Version History endpoint for testing.
@@ -1,5 +1,5 @@
1
- export { MemoryAggregateEndpoint, MemoryBatchCreateEndpoint, MemoryBatchDeleteEndpoint, MemoryBatchRestoreEndpoint, MemoryBatchUpdateEndpoint, MemoryBatchUpsertEndpoint, MemoryBulkPatchEndpoint, MemoryCloneEndpoint, MemoryCreateEndpoint, MemoryDeleteEndpoint, MemoryExportEndpoint, MemoryImportEndpoint, MemoryListEndpoint, MemoryReadEndpoint, MemoryRestoreEndpoint, MemorySearchEndpoint, MemoryUpdateEndpoint, MemoryUpsertEndpoint, MemoryVersionCompareEndpoint, MemoryVersionHistoryEndpoint, MemoryVersionReadEndpoint, MemoryVersionRollbackEndpoint, clearStorage, getStorage, getStore, storage } from '../../chunk-OKVSQZMU.js';
2
- import '../../chunk-NTQNZZSH.js';
3
- import '../../chunk-SCC4CBTS.js';
1
+ export { MemoryAggregateEndpoint, MemoryBatchCreateEndpoint, MemoryBatchDeleteEndpoint, MemoryBatchRestoreEndpoint, MemoryBatchUpdateEndpoint, MemoryBatchUpsertEndpoint, MemoryBulkPatchEndpoint, MemoryCloneEndpoint, MemoryCreateEndpoint, MemoryDeleteEndpoint, MemoryExportEndpoint, MemoryImportEndpoint, MemoryListEndpoint, MemoryReadEndpoint, MemoryRestoreEndpoint, MemorySearchEndpoint, MemoryUpdateEndpoint, MemoryUpsertEndpoint, MemoryVersionCompareEndpoint, MemoryVersionHistoryEndpoint, MemoryVersionReadEndpoint, MemoryVersionRollbackEndpoint, clearStorage, getStorage, getStore, storage } from '../../chunk-G7IQ5DWC.js';
2
+ import '../../chunk-T6J4NSMC.js';
3
+ import '../../chunk-CDCGYMC6.js';
4
4
  import '../../chunk-U3SUUXJK.js';
5
5
  import '../../chunk-FST5S5UY.js';
@@ -1,10 +1,10 @@
1
1
  import { Env } from 'hono';
2
- import { C as CreateEndpoint, M as ModelObject, D as DeleteEndpoint, L as ListEndpoint, R as ReadEndpoint, U as UpdateEndpoint, B as BatchCreateEndpoint, b as BatchDeleteEndpoint, c as BatchRestoreEndpoint, d as BatchUpdateEndpoint, e as BatchUpdateItem, f as BatchUpsertEndpoint, a as RestoreEndpoint, A as AggregateEndpoint, E as ExportEndpoint, I as ImportEndpoint, S as SearchEndpoint, g as UpsertEndpoint, V as VersionCompareEndpoint, h as VersionHistoryEndpoint, i as VersionReadEndpoint, j as VersionRollbackEndpoint } from '../../import-C4cjkYZ1.js';
3
- import { M as MetaInput, L as ListFilters, P as PaginatedResult, I as IncludeOptions, j as AggregateOptions, k as AggregateResult, m as AggregateField, S as SearchOptions, l as SearchResult } from '../../types-CwJSGrCj.js';
2
+ import { C as CreateEndpoint, M as ModelObject, D as DeleteEndpoint, L as ListEndpoint, R as ReadEndpoint, U as UpdateEndpoint, B as BatchCreateEndpoint, b as BatchDeleteEndpoint, c as BatchRestoreEndpoint, d as BatchUpdateEndpoint, e as BatchUpdateItem, f as BatchUpsertEndpoint, a as RestoreEndpoint, A as AggregateEndpoint, E as ExportEndpoint, I as ImportEndpoint, S as SearchEndpoint, g as UpsertEndpoint, V as VersionCompareEndpoint, h as VersionHistoryEndpoint, i as VersionReadEndpoint, j as VersionRollbackEndpoint } from '../../import-BZ05PJMa.js';
3
+ import { M as MetaInput, L as ListFilters, P as PaginatedResult, I as IncludeOptions, j as AggregateOptions, k as AggregateResult, m as AggregateField, S as SearchOptions, l as SearchResult } from '../../types-CA784ZtV.js';
4
4
  import 'zod';
5
- import '../../route-BCROG0Mx.js';
5
+ import '../../route-DwSID3du.js';
6
6
  import 'hono/utils/http-status';
7
- import '../../versioning-4Pn5V1ed.js';
7
+ import '../../versioning-BG8-R7C0.js';
8
8
  import '@hono/zod-openapi';
9
9
 
10
10
  /**
@@ -241,7 +241,7 @@ declare abstract class PrismaBatchUpsertEndpoint<E extends Env = Env, M extends
241
241
  /**
242
242
  * Performs native Prisma batch upsert using individual upsert calls in a transaction.
243
243
  */
244
- protected nativeBatchUpsert(items: Partial<ModelObject<M['model']>>[], tx?: unknown): Promise<{
244
+ protected nativeBatchUpsert(items: Partial<ModelObject<M['model']>>[], _tx?: unknown): Promise<{
245
245
  items: Array<{
246
246
  data: ModelObject<M['model']>;
247
247
  created: boolean;
@@ -327,7 +327,7 @@ declare abstract class PrismaUpsertEndpoint<E extends Env = Env, M extends MetaI
327
327
  /**
328
328
  * Performs a native Prisma upsert operation.
329
329
  */
330
- protected nativeUpsert(data: Partial<ModelObject<M['model']>>, tx?: unknown): Promise<{
330
+ protected nativeUpsert(data: Partial<ModelObject<M['model']>>, _tx?: unknown): Promise<{
331
331
  data: ModelObject<M['model']>;
332
332
  created: boolean;
333
333
  }>;
@@ -1,5 +1,5 @@
1
- import { CreateEndpoint, ReadEndpoint, UpdateEndpoint, DeleteEndpoint, ListEndpoint, RestoreEndpoint, BatchCreateEndpoint, BatchUpdateEndpoint, BatchDeleteEndpoint, BatchRestoreEndpoint, BatchUpsertEndpoint, SearchEndpoint, searchInMemory, ExportEndpoint, ImportEndpoint, UpsertEndpoint, VersionHistoryEndpoint, VersionReadEndpoint, VersionCompareEndpoint, VersionRollbackEndpoint, AggregateEndpoint, computeAggregations } from '../../chunk-NTQNZZSH.js';
2
- import '../../chunk-SCC4CBTS.js';
1
+ import { CreateEndpoint, ReadEndpoint, UpdateEndpoint, DeleteEndpoint, ListEndpoint, RestoreEndpoint, BatchCreateEndpoint, BatchUpdateEndpoint, BatchDeleteEndpoint, BatchRestoreEndpoint, BatchUpsertEndpoint, SearchEndpoint, searchInMemory, ExportEndpoint, ImportEndpoint, UpsertEndpoint, VersionHistoryEndpoint, VersionReadEndpoint, VersionCompareEndpoint, VersionRollbackEndpoint, AggregateEndpoint, computeAggregations } from '../../chunk-T6J4NSMC.js';
2
+ import '../../chunk-CDCGYMC6.js';
3
3
  import '../../chunk-U3SUUXJK.js';
4
4
  import '../../chunk-FST5S5UY.js';
5
5
  import pluralize from 'pluralize';
@@ -542,7 +542,6 @@ var PrismaBatchCreateEndpoint = class extends BatchCreateEndpoint {
542
542
  return getPrismaModel(this.prisma, this._meta.model.tableName);
543
543
  }
544
544
  async batchCreate(items) {
545
- this.getModel();
546
545
  const primaryKey = this._meta.model.primaryKeys[0];
547
546
  const records = items.map((item) => ({
548
547
  ...item,
@@ -732,7 +731,7 @@ var PrismaBatchUpsertEndpoint = class extends BatchUpsertEndpoint {
732
731
  /**
733
732
  * Performs native Prisma batch upsert using individual upsert calls in a transaction.
734
733
  */
735
- async nativeBatchUpsert(items, tx) {
734
+ async nativeBatchUpsert(items, _tx) {
736
735
  if (items.length === 0) {
737
736
  return {
738
737
  items: [],
@@ -1015,7 +1014,7 @@ var PrismaUpsertEndpoint = class extends UpsertEndpoint {
1015
1014
  /**
1016
1015
  * Performs a native Prisma upsert operation.
1017
1016
  */
1018
- async nativeUpsert(data, tx) {
1017
+ async nativeUpsert(data, _tx) {
1019
1018
  const model = this.getModel();
1020
1019
  const upsertKeys = this.getUpsertKeys();
1021
1020
  const primaryKey = this._meta.model.primaryKeys[0];
@@ -1,8 +1,8 @@
1
1
  import { A as AuthEnv, j as JWTConfig, h as JWTClaims, a as APIKeyConfig, b as APIKeyEntry, d as AuthConfig, G as Guard, g as AuthorizationCheck, O as OwnershipExtractor, f as AuthUser, E as EndpointAuthConfig } from '../memory-B_NZbOQP.js';
2
2
  export { c as APIKeyLookupResult, e as AuthType, J as JWTAlgorithm, i as JWTClaimsSchema, M as MemoryAPIKeyStorage, P as PathPattern, V as ValidatedJWTClaims, k as generateAPIKey, l as getAPIKeyStorage, m as hashAPIKey, n as isValidAPIKeyFormat, p as parseJWTClaims, s as safeParseJWTClaims, o as setAPIKeyStorage } from '../memory-B_NZbOQP.js';
3
3
  import { MiddlewareHandler, Context } from 'hono';
4
- import { M as MetaInput, O as OpenAPIRouteSchema } from '../types-CwJSGrCj.js';
5
- import { O as OpenAPIRoute } from '../route-BCROG0Mx.js';
4
+ import { M as MetaInput, O as OpenAPIRouteSchema, ap as Constructor } from '../types-CA784ZtV.js';
5
+ import { O as OpenAPIRoute } from '../route-DwSID3du.js';
6
6
  import 'zod';
7
7
  import '@hono/zod-openapi';
8
8
  import 'hono/utils/http-status';
@@ -260,10 +260,6 @@ declare function allowAll<E extends AuthEnv = AuthEnv>(): MiddlewareHandler<E>;
260
260
  */
261
261
  declare function requireAuthenticated<E extends AuthEnv = AuthEnv>(): MiddlewareHandler<E>;
262
262
 
263
- /**
264
- * Constructor type for classes.
265
- */
266
- type Constructor<T = object> = new (...args: unknown[]) => T;
267
263
  /**
268
264
  * Interface for auth endpoint methods added by withAuth mixin.
269
265
  */
@@ -301,7 +297,7 @@ interface AuthEndpointMethods {
301
297
  * }
302
298
  * ```
303
299
  */
304
- declare abstract class AuthenticatedEndpoint<E extends AuthEnv = AuthEnv, M extends MetaInput = MetaInput> extends OpenAPIRoute<E> {
300
+ declare abstract class AuthenticatedEndpoint<E extends AuthEnv = AuthEnv, _M extends MetaInput = MetaInput> extends OpenAPIRoute<E> {
305
301
  /**
306
302
  * Whether authentication is required for this endpoint.
307
303
  * @default true
@@ -324,7 +320,7 @@ declare abstract class AuthenticatedEndpoint<E extends AuthEnv = AuthEnv, M exte
324
320
  * Custom authorization check.
325
321
  * Return true to allow, false to deny.
326
322
  */
327
- authorize(user: AuthUser, ctx: Context<E>): Promise<boolean>;
323
+ authorize(_user: AuthUser, _ctx: Context<E>): Promise<boolean>;
328
324
  /**
329
325
  * Gets the authenticated user.
330
326
  * Throws UnauthorizedException if not authenticated.
@@ -1,4 +1,4 @@
1
- export { AuthenticatedEndpoint, JWTClaimsSchema, allOf, allowAll, anyOf, createAPIKeyMiddleware, createAuthMiddleware, createJWTMiddleware, decodeJWT, defaultHashAPIKey, denyAll, optionalAuth, parseJWTClaims, requireAllRoles, requireAnyPermission, requireAuth, requireAuthenticated, requireAuthentication, requireOwnership, requireOwnershipOrRole, requirePermissions, requireRoles, safeParseJWTClaims, validateAPIKey, validateAPIKeyEntry, validateJWTClaims, verifyJWT, withAuth } from '../chunk-XYVTFG7O.js';
1
+ export { AuthenticatedEndpoint, JWTClaimsSchema, allOf, allowAll, anyOf, createAPIKeyMiddleware, createAuthMiddleware, createJWTMiddleware, decodeJWT, defaultHashAPIKey, denyAll, optionalAuth, parseJWTClaims, requireAllRoles, requireAnyPermission, requireAuth, requireAuthenticated, requireAuthentication, requireOwnership, requireOwnershipOrRole, requirePermissions, requireRoles, safeParseJWTClaims, validateAPIKey, validateAPIKeyEntry, validateJWTClaims, verifyJWT, withAuth } from '../chunk-57J3NJYN.js';
2
2
  export { MemoryAPIKeyStorage, generateAPIKey, getAPIKeyStorage, hashAPIKey, isValidAPIKeyFormat, setAPIKeyStorage } from '../chunk-6LS3LNIH.js';
3
- import '../chunk-SCC4CBTS.js';
3
+ import '../chunk-CDCGYMC6.js';
4
4
  import '../chunk-FST5S5UY.js';
@@ -1,8 +1,8 @@
1
1
  import { ZodObject, ZodRawShape } from 'zod';
2
2
  import { Env } from 'hono';
3
- import { O as OpenAPIRoute } from './route-BCROG0Mx.js';
4
- import { M as MetaInput, N as NormalizedSoftDeleteConfig, a as NormalizedMultiTenantConfig, O as OpenAPIRouteSchema, H as HookMode, L as ListFilters } from './types-CwJSGrCj.js';
5
- import { M as ModelObject } from './import-C4cjkYZ1.js';
3
+ import { O as OpenAPIRoute } from './route-DwSID3du.js';
4
+ import { M as MetaInput, N as NormalizedSoftDeleteConfig, a as NormalizedMultiTenantConfig, O as OpenAPIRouteSchema, H as HookMode, L as ListFilters } from './types-CA784ZtV.js';
5
+ import { M as ModelObject } from './import-BZ05PJMa.js';
6
6
 
7
7
  /**
8
8
  * Base endpoint for cloning/duplicating a resource.
@@ -1,11 +1,11 @@
1
1
  import { I as InvalidationPatternOptions, c as CacheKeyOptions, f as CacheStorage, a as CacheEntry, d as CacheSetOptions, e as CacheStats, C as CacheConfig, b as CacheInvalidationConfig } from '../types-DlIkjpdK.js';
2
2
  export { g as InvalidationStrategy } from '../types-DlIkjpdK.js';
3
- import { O as OpenAPIRoute } from '../route-BCROG0Mx.js';
4
- import 'hono';
3
+ import { ap as Constructor } from '../types-CA784ZtV.js';
4
+ import { O as OpenAPIRoute } from '../route-DwSID3du.js';
5
5
  import 'zod';
6
- import 'hono/utils/http-status';
7
- import '../types-CwJSGrCj.js';
6
+ import 'hono';
8
7
  import '@hono/zod-openapi';
8
+ import 'hono/utils/http-status';
9
9
 
10
10
  /**
11
11
  * Generates a cache key from the given options.
@@ -338,10 +338,6 @@ declare function setCacheStorage(storage: CacheStorage): void;
338
338
  * Get the global cache storage instance.
339
339
  */
340
340
  declare function getCacheStorage(): CacheStorage;
341
- /**
342
- * Constructor type for classes.
343
- */
344
- type Constructor<T = object> = new (...args: unknown[]) => T;
345
341
  /**
346
342
  * Interface for cacheable endpoint methods added by withCache mixin.
347
343
  */
@@ -1,5 +1,5 @@
1
1
  export { RedisCacheStorage } from '../chunk-YJMGFVHZ.js';
2
- export { MemoryCacheStorage, createInvalidationPattern, createRelatedPatterns, generateCacheKey, getCacheStorage, matchesPattern, parseCacheKey, setCacheStorage, withCache, withCacheInvalidation } from '../chunk-WOFE46VS.js';
2
+ export { MemoryCacheStorage, createInvalidationPattern, createRelatedPatterns, generateCacheKey, getCacheStorage, matchesPattern, parseCacheKey, setCacheStorage, withCache, withCacheInvalidation } from '../chunk-Y74QJH7Y.js';
3
3
  import '../chunk-6LS3LNIH.js';
4
4
  import '../chunk-U3SUUXJK.js';
5
5
  import '../chunk-FST5S5UY.js';