alepha 0.20.3 → 0.20.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (217) hide show
  1. package/dist/api/audits/index.d.ts.map +1 -1
  2. package/dist/api/files/index.d.ts.map +1 -1
  3. package/dist/api/jobs/index.d.ts +14 -14
  4. package/dist/api/jobs/index.d.ts.map +1 -1
  5. package/dist/api/keys/index.d.ts +4 -4
  6. package/dist/api/organizations/index.d.ts.map +1 -1
  7. package/dist/api/parameters/index.d.ts +8 -3
  8. package/dist/api/parameters/index.d.ts.map +1 -1
  9. package/dist/api/parameters/index.js +20 -4
  10. package/dist/api/parameters/index.js.map +1 -1
  11. package/dist/api/payments/index.d.ts.map +1 -1
  12. package/dist/api/users/index.browser.js +6 -0
  13. package/dist/api/users/index.browser.js.map +1 -1
  14. package/dist/api/users/index.d.ts +5037 -139
  15. package/dist/api/users/index.d.ts.map +1 -1
  16. package/dist/api/users/index.js +58 -10
  17. package/dist/api/users/index.js.map +1 -1
  18. package/dist/bucket/index.d.ts +77 -107
  19. package/dist/bucket/index.d.ts.map +1 -1
  20. package/dist/bucket/index.js +148 -4
  21. package/dist/bucket/index.js.map +1 -1
  22. package/dist/bucket/index.workerd.js +7 -1
  23. package/dist/bucket/index.workerd.js.map +1 -1
  24. package/dist/cache/core/index.d.ts +26 -0
  25. package/dist/cache/core/index.d.ts.map +1 -1
  26. package/dist/cache/core/index.js +11 -1
  27. package/dist/cache/core/index.js.map +1 -1
  28. package/dist/cache/core/index.workerd.js +11 -1
  29. package/dist/cache/core/index.workerd.js.map +1 -1
  30. package/dist/cli/config/index.d.ts +7 -5
  31. package/dist/cli/config/index.d.ts.map +1 -1
  32. package/dist/cli/config/index.js +2 -3
  33. package/dist/cli/config/index.js.map +1 -1
  34. package/dist/cli/core/index.d.ts +420 -13
  35. package/dist/cli/core/index.d.ts.map +1 -1
  36. package/dist/cli/core/index.js +22 -511
  37. package/dist/cli/core/index.js.map +1 -1
  38. package/dist/cli/devtools/index.d.ts +4 -8
  39. package/dist/cli/devtools/index.d.ts.map +1 -1
  40. package/dist/cli/devtools/index.js +13 -15
  41. package/dist/cli/devtools/index.js.map +1 -1
  42. package/dist/cli/platform/index.d.ts +10 -13
  43. package/dist/cli/platform/index.d.ts.map +1 -1
  44. package/dist/cli/platform/index.js +18 -15
  45. package/dist/cli/platform/index.js.map +1 -1
  46. package/dist/cli/vendor/index.d.ts +10 -13
  47. package/dist/cli/vendor/index.d.ts.map +1 -1
  48. package/dist/cli/vendor/index.js +16 -13
  49. package/dist/cli/vendor/index.js.map +1 -1
  50. package/dist/core/index.browser.js +27 -3
  51. package/dist/core/index.browser.js.map +1 -1
  52. package/dist/core/index.d.ts +6 -3
  53. package/dist/core/index.d.ts.map +1 -1
  54. package/dist/core/index.js +27 -3
  55. package/dist/core/index.js.map +1 -1
  56. package/dist/core/index.native.js +27 -3
  57. package/dist/core/index.native.js.map +1 -1
  58. package/dist/core/index.workerd.js +27 -3
  59. package/dist/core/index.workerd.js.map +1 -1
  60. package/dist/datetime/index.d.ts +69 -10
  61. package/dist/datetime/index.d.ts.map +1 -1
  62. package/dist/datetime/index.js +135 -13
  63. package/dist/datetime/index.js.map +1 -1
  64. package/dist/email/smtp/index.js +10636 -2
  65. package/dist/email/smtp/index.js.map +1 -1
  66. package/dist/fake/index.d.ts +8085 -4
  67. package/dist/fake/index.d.ts.map +1 -1
  68. package/dist/fake/index.js +33554 -3
  69. package/dist/fake/index.js.map +1 -1
  70. package/dist/lock/core/index.d.ts +30 -2
  71. package/dist/lock/core/index.d.ts.map +1 -1
  72. package/dist/lock/core/index.js +35 -12
  73. package/dist/lock/core/index.js.map +1 -1
  74. package/dist/mcp/index.d.ts +238 -31
  75. package/dist/mcp/index.d.ts.map +1 -1
  76. package/dist/mcp/index.js +198 -71
  77. package/dist/mcp/index.js.map +1 -1
  78. package/dist/orm/core/index.browser.js +1 -1
  79. package/dist/orm/core/index.browser.js.map +1 -1
  80. package/dist/orm/core/index.bun.js +4 -3
  81. package/dist/orm/core/index.bun.js.map +1 -1
  82. package/dist/orm/core/index.d.ts +4877 -9
  83. package/dist/orm/core/index.d.ts.map +1 -1
  84. package/dist/orm/core/index.js +4 -3
  85. package/dist/orm/core/index.js.map +1 -1
  86. package/dist/orm/postgres/index.d.ts +608 -1
  87. package/dist/orm/postgres/index.d.ts.map +1 -1
  88. package/dist/react/core/index.d.ts +102 -1
  89. package/dist/react/core/index.d.ts.map +1 -1
  90. package/dist/react/core/index.js +65 -1
  91. package/dist/react/core/index.js.map +1 -1
  92. package/dist/react/form/index.d.ts +6 -0
  93. package/dist/react/form/index.d.ts.map +1 -1
  94. package/dist/react/form/index.js +7 -7
  95. package/dist/react/form/index.js.map +1 -1
  96. package/dist/react/i18n/index.d.ts +7 -1
  97. package/dist/react/i18n/index.d.ts.map +1 -1
  98. package/dist/react/i18n/index.js +6 -0
  99. package/dist/react/i18n/index.js.map +1 -1
  100. package/dist/react/router/index.browser.js +20 -2
  101. package/dist/react/router/index.browser.js.map +1 -1
  102. package/dist/react/router/index.d.ts +36 -4
  103. package/dist/react/router/index.d.ts.map +1 -1
  104. package/dist/react/router/index.js +20 -2
  105. package/dist/react/router/index.js.map +1 -1
  106. package/dist/react/testing/chunk-6Ep1yQYe.js +16 -0
  107. package/dist/react/testing/index.d.ts +411 -1
  108. package/dist/react/testing/index.d.ts.map +1 -1
  109. package/dist/react/testing/index.js +12293 -13
  110. package/dist/react/testing/index.js.map +1 -1
  111. package/dist/react/ui/index.d.ts +195 -1
  112. package/dist/react/ui/index.d.ts.map +1 -1
  113. package/dist/react/ui/index.js +61 -1
  114. package/dist/react/ui/index.js.map +1 -1
  115. package/dist/scheduler/index.d.ts +84 -3
  116. package/dist/scheduler/index.d.ts.map +1 -1
  117. package/dist/scheduler/index.js +390 -1
  118. package/dist/scheduler/index.js.map +1 -1
  119. package/dist/scheduler/index.workerd.js +390 -1
  120. package/dist/scheduler/index.workerd.js.map +1 -1
  121. package/dist/security/index.d.ts +325 -2
  122. package/dist/security/index.d.ts.map +1 -1
  123. package/dist/security/index.js +1361 -2
  124. package/dist/security/index.js.map +1 -1
  125. package/dist/server/auth/index.d.ts +1054 -1
  126. package/dist/server/auth/index.d.ts.map +1 -1
  127. package/dist/server/auth/index.js +1223 -1
  128. package/dist/server/auth/index.js.map +1 -1
  129. package/dist/server/core/index.browser.js +10 -3
  130. package/dist/server/core/index.browser.js.map +1 -1
  131. package/dist/server/core/index.d.ts.map +1 -1
  132. package/dist/server/core/index.js +28 -5
  133. package/dist/server/core/index.js.map +1 -1
  134. package/dist/server/metrics/index.d.ts +514 -1
  135. package/dist/server/metrics/index.d.ts.map +1 -1
  136. package/dist/server/metrics/index.js +4374 -4
  137. package/dist/server/metrics/index.js.map +1 -1
  138. package/dist/server/swagger/index.d.ts.map +1 -1
  139. package/dist/server/swagger/index.js +3 -4
  140. package/dist/server/swagger/index.js.map +1 -1
  141. package/dist/websocket/index.browser.js +11 -5
  142. package/dist/websocket/index.browser.js.map +1 -1
  143. package/dist/websocket/index.d.ts +3 -1
  144. package/dist/websocket/index.d.ts.map +1 -1
  145. package/dist/websocket/index.js +21 -6
  146. package/dist/websocket/index.js.map +1 -1
  147. package/package.json +671 -263
  148. package/src/api/parameters/services/ParameterProvider.ts +21 -4
  149. package/src/api/users/__tests__/SessionService.spec.ts +99 -0
  150. package/src/api/users/__tests__/UserJobs.spec.ts +67 -0
  151. package/src/api/users/atoms/realmAuthSettingsAtom.ts +15 -0
  152. package/src/api/users/entities/sessions.ts +6 -0
  153. package/src/api/users/jobs/UserJobs.ts +44 -17
  154. package/src/api/users/providers/RealmProvider.ts +4 -0
  155. package/src/api/users/services/SessionService.ts +27 -0
  156. package/src/bucket/__tests__/NodeS3BucketProvider.spec.ts +74 -0
  157. package/src/bucket/index.ts +19 -2
  158. package/src/bucket/primitives/$bucket.ts +9 -1
  159. package/src/bucket/providers/CloudflareR2Provider.ts +2 -137
  160. package/src/bucket/providers/NodeS3BucketProvider.ts +218 -0
  161. package/src/cache/core/index.ts +29 -0
  162. package/src/cache/core/primitives/$cache.ts +14 -1
  163. package/src/cli/config/defineConfig.ts +13 -15
  164. package/src/cli/core/__tests__/init.spec.ts +6 -7
  165. package/src/cli/core/services/ProjectScaffolder.ts +18 -14
  166. package/src/cli/core/tasks/BuildCloudflareTask.ts +5 -0
  167. package/src/cli/core/templates/agentMd.ts +2 -10
  168. package/src/cli/core/templates/saasAdminLayoutTsx.ts +3 -3
  169. package/src/cli/devtools/index.ts +12 -26
  170. package/src/cli/platform/index.ts +15 -24
  171. package/src/cli/vendor/atoms/vendorOptions.ts +1 -1
  172. package/src/cli/vendor/index.ts +14 -23
  173. package/src/core/Alepha.ts +11 -1
  174. package/src/core/helpers/ref.ts +18 -0
  175. package/src/core/index.shared.ts +1 -0
  176. package/src/core/providers/SchemaValidator.ts +9 -1
  177. package/src/core/providers/TypeProvider.ts +1 -2
  178. package/src/datetime/REFACTORING.md +118 -0
  179. package/src/datetime/providers/DateTimeProvider.ts +203 -24
  180. package/src/lock/core/index.ts +31 -0
  181. package/src/lock/core/primitives/$lock.ts +14 -1
  182. package/src/mcp/__tests__/jsonrpc.spec.ts +1 -1
  183. package/src/mcp/helpers/jsonrpc.ts +26 -1
  184. package/src/mcp/index.ts +10 -5
  185. package/src/mcp/interfaces/McpTypes.ts +83 -6
  186. package/src/mcp/primitives/$prompt.ts +18 -1
  187. package/src/mcp/primitives/$resource.ts +18 -1
  188. package/src/mcp/primitives/$tool.ts +83 -7
  189. package/src/mcp/providers/McpServerProvider.ts +74 -16
  190. package/src/mcp/transports/StreamableHttpMcpTransport.ts +226 -0
  191. package/src/orm/REFACTORING.md +330 -0
  192. package/src/orm/core/primitives/$transactional.ts +11 -0
  193. package/src/orm/core/schemas/updateSchema.ts +1 -1
  194. package/src/orm/core/services/PgRelationManager.ts +4 -2
  195. package/src/react/core/__tests__/useQuery.browser.spec.tsx +86 -0
  196. package/src/react/core/hooks/useQuery.ts +153 -0
  197. package/src/react/core/index.ts +1 -0
  198. package/src/react/form/services/FormModel.ts +15 -6
  199. package/src/react/form/services/parseField.ts +8 -0
  200. package/src/react/i18n/providers/I18nProvider.ts +8 -2
  201. package/src/react/router/__tests__/$page.spec.tsx +0 -16
  202. package/src/react/router/__tests__/ssr.spec.tsx +339 -0
  203. package/src/react/router/primitives/$page.ts +28 -4
  204. package/src/react/router/providers/ReactPageProvider.ts +27 -9
  205. package/src/react/ui/atoms/uiThemeListAtom.ts +36 -0
  206. package/src/react/ui/index.ts +6 -0
  207. package/src/react/ui/services/SchemaControl.ts +209 -0
  208. package/src/security/primitives/$issuer.ts +6 -3
  209. package/src/server/core/__tests__/ServerRouterProvider-serializationError.spec.ts +75 -0
  210. package/src/server/core/__tests__/ServerRouterProvider-validationError.spec.ts +306 -0
  211. package/src/server/core/errors/ValidationError.ts +13 -1
  212. package/src/server/core/primitives/$action.ts +16 -5
  213. package/src/server/core/providers/ServerRouterProvider.ts +26 -4
  214. package/src/server/swagger/providers/ServerSwaggerProvider.ts +5 -7
  215. package/src/websocket/providers/NodeWebSocketServerProvider.ts +10 -4
  216. package/src/websocket/services/WebSocketClient.ts +11 -5
  217. package/src/mcp/transports/SseMcpTransport.ts +0 -182
@@ -1,5 +1,5 @@
1
1
  import * as _$alepha from "alepha";
2
- import { Alepha, AlephaError, KIND, Middleware, Page, Page as Page$1, PageQuery, PageQuery as PageQuery$1, Primitive, Service, Static, StaticEncode, TBigInt, TInteger, TNull, TNumber, TNumberOptions, TObject, TObjectOptions, TOptional, TPage, TSchema, TString, TStringOptions, TUnion, pageQuerySchema, pageSchema } from "alepha";
2
+ import { Alepha, AlephaError, KIND, Middleware, Page, Page as Page$1, PageQuery, PageQuery as PageQuery$1, Primitive, SchemaValidator, Service, Static, StaticEncode, TBigInt, TInteger, TNull, TNumber, TNumberOptions, TObject, TObjectOptions, TOptional, TPage, TSchema, TString, TStringOptions, TUnion, pageQuerySchema, pageSchema } from "alepha";
3
3
  import { DateTime, DateTimeProvider } from "alepha/datetime";
4
4
  import * as _$alepha_logger0 from "alepha/logger";
5
5
  import * as _$drizzle_orm0 from "drizzle-orm";
@@ -11,7 +11,10 @@ import { SQLiteColumnBuilderBase } from "drizzle-orm/sqlite-core";
11
11
  import { DatabaseSync } from "node:sqlite";
12
12
  import * as _$typebox from "typebox";
13
13
  import { PgTransactionConfig } from "drizzle-orm/pg-core/session";
14
- import * as DrizzleKit from "drizzle-kit/api";
14
+ import { LibSQLDatabase } from "drizzle-orm/libsql";
15
+ import { MySql2Database } from "drizzle-orm/mysql2";
16
+ import { SingleStoreDriverDatabase } from "drizzle-orm/singlestore";
17
+ import { ConnectionOptions } from "tls";
15
18
  import { UpdateDeleteAction as UpdateDeleteAction$1 } from "drizzle-orm/pg-core/foreign-keys";
16
19
  import { DrizzleD1Database } from "drizzle-orm/d1";
17
20
  import { Database } from "bun:sqlite";
@@ -378,6 +381,4870 @@ declare abstract class ModelBuilder {
378
381
  protected buildTableConfig<TConfig, TSelf>(entity: EntityPrimitive, builders: TableConfigBuilders<TConfig>, tableResolver?: (entityName: string) => any, customConfigHandler?: (config: any, self: TSelf) => TConfig[]): ((self: TSelf) => TConfig[]) | undefined;
379
382
  }
380
383
  //#endregion
384
+ //#region ../../../../node_modules/@electric-sql/pglite/dist/pglite-BZlQ7pL-.d.ts
385
+ type MessageName = 'parseComplete' | 'bindComplete' | 'closeComplete' | 'noData' | 'portalSuspended' | 'replicationStart' | 'emptyQuery' | 'copyDone' | 'copyData' | 'rowDescription' | 'parameterDescription' | 'parameterStatus' | 'backendKeyData' | 'notification' | 'readyForQuery' | 'commandComplete' | 'dataRow' | 'copyInResponse' | 'copyOutResponse' | 'authenticationOk' | 'authenticationMD5Password' | 'authenticationCleartextPassword' | 'authenticationSASL' | 'authenticationSASLContinue' | 'authenticationSASLFinal' | 'error' | 'notice';
386
+ type BackendMessage = {
387
+ name: MessageName;
388
+ length: number;
389
+ };
390
+ interface NoticeOrError {
391
+ message: string | undefined;
392
+ severity: string | undefined;
393
+ code: string | undefined;
394
+ detail: string | undefined;
395
+ hint: string | undefined;
396
+ position: string | undefined;
397
+ internalPosition: string | undefined;
398
+ internalQuery: string | undefined;
399
+ where: string | undefined;
400
+ schema: string | undefined;
401
+ table: string | undefined;
402
+ column: string | undefined;
403
+ dataType: string | undefined;
404
+ constraint: string | undefined;
405
+ file: string | undefined;
406
+ line: string | undefined;
407
+ routine: string | undefined;
408
+ }
409
+ declare class NoticeMessage implements BackendMessage, NoticeOrError {
410
+ readonly length: number;
411
+ readonly message: string | undefined;
412
+ constructor(length: number, message: string | undefined);
413
+ readonly name = "notice";
414
+ severity: string | undefined;
415
+ code: string | undefined;
416
+ detail: string | undefined;
417
+ hint: string | undefined;
418
+ position: string | undefined;
419
+ internalPosition: string | undefined;
420
+ internalQuery: string | undefined;
421
+ where: string | undefined;
422
+ schema: string | undefined;
423
+ table: string | undefined;
424
+ column: string | undefined;
425
+ dataType: string | undefined;
426
+ constraint: string | undefined;
427
+ file: string | undefined;
428
+ line: string | undefined;
429
+ routine: string | undefined;
430
+ }
431
+ type IDBFS = Emscripten.FileSystemType & {
432
+ quit: () => void;
433
+ dbs: Record<string, IDBDatabase>;
434
+ };
435
+ type FS = typeof FS & {
436
+ filesystems: {
437
+ MEMFS: Emscripten.FileSystemType;
438
+ NODEFS: Emscripten.FileSystemType;
439
+ IDBFS: IDBFS;
440
+ };
441
+ quit: () => void;
442
+ };
443
+ interface PostgresMod extends Omit<EmscriptenModule, 'preInit' | 'preRun' | 'postRun'> {
444
+ preInit: Array<{
445
+ (mod: PostgresMod): void;
446
+ }>;
447
+ preRun: Array<{
448
+ (mod: PostgresMod): void;
449
+ }>;
450
+ postRun: Array<{
451
+ (mod: PostgresMod): void;
452
+ }>;
453
+ thisProgram: string;
454
+ stdin: (() => number | null) | null;
455
+ FS: FS;
456
+ wasmMemory: WebAssembly.Memory;
457
+ PROXYFS: Emscripten.FileSystemType;
458
+ WASM_PREFIX: string;
459
+ pg_extensions: Record<string, Promise<Blob | null>>;
460
+ UTF8ToString: (ptr: number, maxBytesToRead?: number) => string;
461
+ stringToUTF8OnStack: (s: string) => number;
462
+ _pgl_set_system_fn: (system_fn: number) => void;
463
+ _pgl_set_popen_fn: (popen_fn: number) => void;
464
+ _pgl_set_pclose_fn: (pclose_fn: number) => void;
465
+ _pgl_set_rw_cbs: (read_cb: number, write_cb: number) => void;
466
+ _pgl_set_pipe_fn: (pipe_fn: number) => number;
467
+ _pgl_freopen: (filepath: number, mode: number, stream: number) => number;
468
+ _pgl_pq_flush: () => void;
469
+ _fopen: (path: number, mode: number) => number;
470
+ _fclose: (stream: number) => number;
471
+ _fflush: (stream: number) => void;
472
+ _pgl_proc_exit: (code: number) => number;
473
+ addFunction: (cb: (ptr: any, length: number) => void, signature: string) => number;
474
+ removeFunction: (f: number) => void;
475
+ callMain: (args?: string[]) => number;
476
+ _PostgresMainLoopOnce: () => void;
477
+ _PostgresMainLongJmp: () => void;
478
+ _PostgresSendReadyForQueryIfNecessary: () => void;
479
+ _ProcessStartupPacket: (Port: number, ssl_done: boolean, gss_done: boolean) => number;
480
+ _IsTransactionBlock: () => number;
481
+ _pgl_setPGliteActive: (newValue: number) => number;
482
+ _pgl_startPGlite: () => void;
483
+ _pgl_getMyProcPort: () => number;
484
+ _pgl_sendConnData: () => void;
485
+ ENV: any;
486
+ _emscripten_force_exit: (status: number) => void;
487
+ _pgl_run_atexit_funcs: () => void;
488
+ _pq_buffer_remaining_data: () => number;
489
+ }
490
+ type DumpTarCompressionOptions = 'none' | 'gzip' | 'auto';
491
+ /**
492
+ * Filesystem interface.
493
+ * All virtual filesystems that are compatible with PGlite must implement
494
+ * this interface.
495
+ */
496
+ interface Filesystem {
497
+ /**
498
+ * Initiate the filesystem and return the options to pass to the emscripten module.
499
+ */
500
+ init(pg: PGlite, emscriptenOptions: Partial<PostgresMod>): Promise<{
501
+ emscriptenOpts: Partial<PostgresMod>;
502
+ }>;
503
+ /**
504
+ * Sync the filesystem to any underlying storage.
505
+ */
506
+ syncToFs(relaxedDurability?: boolean): Promise<void>;
507
+ /**
508
+ * Sync the filesystem from any underlying storage.
509
+ */
510
+ initialSyncFs(): Promise<void>;
511
+ /**
512
+ * Dump the PGDATA dir from the filesystem to a gzipped tarball.
513
+ */
514
+ dumpTar(dbname: string, compression?: DumpTarCompressionOptions): Promise<File | Blob>;
515
+ /**
516
+ * Close the filesystem.
517
+ */
518
+ closeFs(): Promise<void>;
519
+ }
520
+ /**
521
+ * Base class for all emscripten built-in filesystems.
522
+ */
523
+ type DebugLevel = 0 | 1 | 2 | 3 | 4 | 5;
524
+ type RowMode = 'array' | 'object';
525
+ interface ParserOptions {
526
+ [pgType: number]: (value: string) => any;
527
+ }
528
+ interface SerializerOptions {
529
+ [pgType: number]: (value: any) => string;
530
+ }
531
+ interface QueryOptions {
532
+ rowMode?: RowMode;
533
+ parsers?: ParserOptions;
534
+ serializers?: SerializerOptions;
535
+ blob?: Blob | File;
536
+ onNotice?: (notice: NoticeMessage) => void;
537
+ paramTypes?: number[];
538
+ }
539
+ interface ExecProtocolOptions {
540
+ syncToFs?: boolean;
541
+ throwOnError?: boolean;
542
+ onNotice?: (notice: NoticeMessage) => void;
543
+ }
544
+ interface ExecProtocolOptionsStream {
545
+ syncToFs?: boolean;
546
+ onRawData: (data: Uint8Array) => void;
547
+ }
548
+ interface ExtensionSetupResult<TNamespace = any> {
549
+ emscriptenOpts?: any;
550
+ namespaceObj?: TNamespace;
551
+ bundlePath?: URL;
552
+ init?: () => Promise<void>;
553
+ close?: () => Promise<void>;
554
+ }
555
+ type ExtensionSetup<TNamespace = any> = (pg: PGliteInterface, emscriptenOpts: any, clientOnly?: boolean) => Promise<ExtensionSetupResult<TNamespace>>;
556
+ interface Extension<TNamespace = any> {
557
+ name: string;
558
+ setup: ExtensionSetup<TNamespace>;
559
+ }
560
+ type ExtensionNamespace<T> = T extends Extension<infer TNamespace> ? TNamespace : any;
561
+ type Extensions = {
562
+ [namespace: string]: Extension | URL;
563
+ };
564
+ type InitializedExtensions<TExtensions extends Extensions = Extensions> = { [K in keyof TExtensions]: ExtensionNamespace<TExtensions[K]> };
565
+ interface ExecProtocolResult {
566
+ messages: BackendMessage[];
567
+ data: Uint8Array;
568
+ }
569
+ interface PGliteOptions<TExtensions extends Extensions = Extensions> {
570
+ noInitDb?: boolean;
571
+ dataDir?: string;
572
+ username?: string;
573
+ database?: string;
574
+ fs?: Filesystem;
575
+ debug?: DebugLevel;
576
+ relaxedDurability?: boolean;
577
+ extensions?: TExtensions;
578
+ loadDataDir?: Blob | File;
579
+ initialMemory?: number;
580
+ pgliteWasmModule?: WebAssembly.Module;
581
+ initdbWasmModule?: WebAssembly.Module;
582
+ fsBundle?: Blob | File;
583
+ parsers?: ParserOptions;
584
+ serializers?: SerializerOptions;
585
+ startParams?: string[];
586
+ }
587
+ type PGliteInterface<T extends Extensions = Extensions> = InitializedExtensions<T> & {
588
+ readonly waitReady: Promise<void>;
589
+ readonly debug: DebugLevel;
590
+ readonly ready: boolean;
591
+ readonly closed: boolean;
592
+ close(): Promise<void>;
593
+ query<T>(query: string, params?: any[], options?: QueryOptions): Promise<Results<T>>;
594
+ sql<T>(sqlStrings: TemplateStringsArray, ...params: any[]): Promise<Results<T>>;
595
+ exec(query: string, options?: QueryOptions): Promise<Array<Results>>;
596
+ describeQuery(query: string): Promise<DescribeQueryResult>;
597
+ transaction<T>(callback: (tx: Transaction) => Promise<T>): Promise<T>;
598
+ execProtocolRaw(message: Uint8Array, options?: ExecProtocolOptions): Promise<Uint8Array>;
599
+ execProtocolRawStream(message: Uint8Array, options?: ExecProtocolOptionsStream): Promise<void>;
600
+ execProtocol(message: Uint8Array, options?: ExecProtocolOptions): Promise<ExecProtocolResult>;
601
+ runExclusive<T>(fn: () => Promise<T>): Promise<T>;
602
+ listen(channel: string, callback: (payload: string) => void, tx?: Transaction): Promise<(tx?: Transaction) => Promise<void>>;
603
+ unlisten(channel: string, callback?: (payload: string) => void, tx?: Transaction): Promise<void>;
604
+ onNotification(callback: (channel: string, payload: string) => void): () => void;
605
+ offNotification(callback: (channel: string, payload: string) => void): void;
606
+ dumpDataDir(compression?: DumpTarCompressionOptions): Promise<File | Blob>;
607
+ refreshArrayTypes(): Promise<void>;
608
+ };
609
+ type PGliteInterfaceExtensions<E> = E extends Extensions ? { [K in keyof E]: E[K] extends Extension ? Awaited<ReturnType<E[K]['setup']>>['namespaceObj'] extends infer N ? N extends undefined | null | void ? never : N : never : never } : Record<string, never>;
610
+ type Row<T = {
611
+ [key: string]: any;
612
+ }> = T;
613
+ type Results<T = {
614
+ [key: string]: any;
615
+ }> = {
616
+ rows: Row<T>[];
617
+ affectedRows?: number;
618
+ fields: {
619
+ name: string;
620
+ dataTypeID: number;
621
+ }[];
622
+ blob?: Blob;
623
+ };
624
+ interface Transaction {
625
+ query<T>(query: string, params?: any[], options?: QueryOptions): Promise<Results<T>>;
626
+ sql<T>(sqlStrings: TemplateStringsArray, ...params: any[]): Promise<Results<T>>;
627
+ exec(query: string, options?: QueryOptions): Promise<Array<Results>>;
628
+ rollback(): Promise<void>;
629
+ listen(channel: string, callback: (payload: string) => void): Promise<(tx?: Transaction) => Promise<void>>;
630
+ get closed(): boolean;
631
+ }
632
+ type DescribeQueryResult = {
633
+ queryParams: {
634
+ dataTypeID: number;
635
+ serializer: Serializer;
636
+ }[];
637
+ resultFields: {
638
+ name: string;
639
+ dataTypeID: number;
640
+ parser: Parser;
641
+ }[];
642
+ };
643
+ type Parser = (x: string, typeId?: number) => any;
644
+ type Serializer = (x: any) => string;
645
+ declare abstract class BasePGlite implements Pick<PGliteInterface, 'query' | 'sql' | 'exec' | 'transaction'> {
646
+ #private;
647
+ serializers: Record<number | string, Serializer>;
648
+ parsers: Record<number | string, Parser>;
649
+ abstract debug: DebugLevel;
650
+ /**
651
+ * Execute a postgres wire protocol message
652
+ * @param message The postgres wire protocol message to execute
653
+ * @returns The result of the query
654
+ */
655
+ abstract execProtocol(message: Uint8Array, {
656
+ syncToFs,
657
+ onNotice
658
+ }: ExecProtocolOptions): Promise<ExecProtocolResult>;
659
+ /**
660
+ * Execute a postgres wire protocol message
661
+ * @param message The postgres wire protocol message to execute
662
+ * @returns The parsed results of the query
663
+ */
664
+ abstract execProtocolStream(message: Uint8Array, {
665
+ syncToFs,
666
+ onNotice
667
+ }: ExecProtocolOptions): Promise<BackendMessage[]>;
668
+ /**
669
+ * Execute a postgres wire protocol message directly without wrapping the response.
670
+ * Only use if `execProtocol()` doesn't suite your needs.
671
+ *
672
+ * **Warning:** This bypasses PGlite's protocol wrappers that manage error/notice messages,
673
+ * transactions, and notification listeners. Only use if you need to bypass these wrappers and
674
+ * don't intend to use the above features.
675
+ *
676
+ * @param message The postgres wire protocol message to execute
677
+ * @returns The direct message data response produced by Postgres
678
+ */
679
+ abstract execProtocolRaw(message: Uint8Array, {
680
+ syncToFs
681
+ }: ExecProtocolOptions): Promise<Uint8Array>;
682
+ /**
683
+ * Execute a postgres wire protocol message directly without wrapping the response.
684
+ * Only use if `execProtocol()` doesn't suite your needs.
685
+ *
686
+ * **Warning:** This bypasses PGlite's protocol wrappers that manage error/notice messages,
687
+ * transactions, and notification listeners. Only use if you need to bypass these wrappers and
688
+ * don't intend to use the above features.
689
+ *
690
+ * @param message The postgres wire protocol message to execute
691
+ * @param options.onRawData Callback to receive streaming data
692
+ */
693
+ abstract execProtocolRawStream(message: Uint8Array, {
694
+ syncToFs,
695
+ onRawData
696
+ }: ExecProtocolOptionsStream): Promise<void>;
697
+ /**
698
+ * Sync the database to the filesystem
699
+ * @returns Promise that resolves when the database is synced to the filesystem
700
+ */
701
+ abstract syncToFs(): Promise<void>;
702
+ /**
703
+ * Handle a file attached to the current query
704
+ * @param file The file to handle
705
+ */
706
+ abstract _handleBlob(blob?: File | Blob): Promise<void>;
707
+ /**
708
+ * Get the written file
709
+ */
710
+ abstract _getWrittenBlob(): Promise<File | Blob | undefined>;
711
+ /**
712
+ * Cleanup the current file
713
+ */
714
+ abstract _cleanupBlob(): Promise<void>;
715
+ abstract _checkReady(): Promise<void>;
716
+ abstract _runExclusiveQuery<T>(fn: () => Promise<T>): Promise<T>;
717
+ abstract _runExclusiveTransaction<T>(fn: () => Promise<T>): Promise<T>;
718
+ /**
719
+ * Listen for notifications on a channel
720
+ */
721
+ abstract listen(channel: string, callback: (payload: string) => void, tx?: Transaction): Promise<(tx?: Transaction) => Promise<void>>;
722
+ /**
723
+ * Initialize the array types
724
+ * The oid if the type of an element and the typarray is the oid of the type of the
725
+ * array.
726
+ * We extract these from the database then create the serializers/parsers for
727
+ * each type.
728
+ * This should be called at the end of #init() in the implementing class.
729
+ */
730
+ _initArrayTypes({
731
+ force
732
+ }?: {
733
+ force?: boolean | undefined;
734
+ }): Promise<void>;
735
+ /**
736
+ * Re-syncs the array types from the database
737
+ * This is useful if you add a new type to the database and want to use it, otherwise pglite won't recognize it.
738
+ */
739
+ refreshArrayTypes(): Promise<void>;
740
+ /**
741
+ * Execute a single SQL statement
742
+ * This uses the "Extended Query" postgres wire protocol message.
743
+ * @param query The query to execute
744
+ * @param params Optional parameters for the query
745
+ * @returns The result of the query
746
+ */
747
+ query<T>(query: string, params?: any[], options?: QueryOptions): Promise<Results<T>>;
748
+ /**
749
+ * Execute a single SQL statement like with {@link PGlite.query}, but with a
750
+ * templated statement where template values will be treated as parameters.
751
+ *
752
+ * You can use helpers from `/template` to further format the query with
753
+ * identifiers, raw SQL, and nested statements.
754
+ *
755
+ * This uses the "Extended Query" postgres wire protocol message.
756
+ *
757
+ * @param query The query to execute with parameters as template values
758
+ * @returns The result of the query
759
+ *
760
+ * @example
761
+ * ```ts
762
+ * const results = await db.sql`SELECT * FROM ${identifier`foo`} WHERE id = ${id}`
763
+ * ```
764
+ */
765
+ sql<T>(sqlStrings: TemplateStringsArray, ...params: any[]): Promise<Results<T>>;
766
+ /**
767
+ * Execute a SQL query, this can have multiple statements.
768
+ * This uses the "Simple Query" postgres wire protocol message.
769
+ * @param query The query to execute
770
+ * @returns The result of the query
771
+ */
772
+ exec(query: string, options?: QueryOptions): Promise<Array<Results>>;
773
+ /**
774
+ * Describe a query
775
+ * @param query The query to describe
776
+ * @returns A description of the result types for the query
777
+ */
778
+ describeQuery(query: string, options?: QueryOptions): Promise<DescribeQueryResult>;
779
+ /**
780
+ * Execute a transaction
781
+ * @param callback A callback function that takes a transaction object
782
+ * @returns The result of the transaction
783
+ */
784
+ transaction<T>(callback: (tx: Transaction) => Promise<T>): Promise<T>;
785
+ /**
786
+ * Run a function exclusively, no other transactions or queries will be allowed
787
+ * while the function is running.
788
+ * This is useful when working with the execProtocol methods as they are not blocked,
789
+ * and do not block the locks used by transactions and queries.
790
+ * @param fn The function to run
791
+ * @returns The result of the function
792
+ */
793
+ runExclusive<T>(fn: () => Promise<T>): Promise<T>;
794
+ }
795
+ declare class PGlite extends BasePGlite implements PGliteInterface, AsyncDisposable {
796
+ #private;
797
+ fs?: Filesystem;
798
+ protected mod?: PostgresMod;
799
+ private readonly POSTGRES_MAIN_LONGJMP;
800
+ get ENV(): any;
801
+ readonly dataDir?: string;
802
+ readonly waitReady: Promise<void>;
803
+ readonly debug: DebugLevel;
804
+ static readonly DEFAULT_RECV_BUF_SIZE: number;
805
+ static readonly MAX_BUFFER_SIZE: number;
806
+ externalCommandStreamFd: number | null;
807
+ static readonly defaultStartParams: string[];
808
+ /**
809
+ * Create a new PGlite instance
810
+ * @param dataDir The directory to store the database files
811
+ * Prefix with idb:// to use indexeddb filesystem in the browser
812
+ * Use memory:// to use in-memory filesystem
813
+ * @param options PGlite options
814
+ */
815
+ constructor(dataDir?: string, options?: PGliteOptions);
816
+ /**
817
+ * Create a new PGlite instance
818
+ * @param options PGlite options including the data directory
819
+ */
820
+ constructor(options?: PGliteOptions);
821
+ /**
822
+ * Create a new PGlite instance with extensions on the Typescript interface
823
+ * (The main constructor does enable extensions, however due to the limitations
824
+ * of Typescript, the extensions are not available on the instance interface)
825
+ * @param options PGlite options including the data directory
826
+ * @returns A promise that resolves to the PGlite instance when it's ready.
827
+ */
828
+ static create<O extends PGliteOptions>(options?: O): Promise<PGlite & PGliteInterfaceExtensions<O['extensions']>>;
829
+ /**
830
+ * Create a new PGlite instance with extensions on the Typescript interface
831
+ * (The main constructor does enable extensions, however due to the limitations
832
+ * of Typescript, the extensions are not available on the instance interface)
833
+ * @param dataDir The directory to store the database files
834
+ * Prefix with idb:// to use indexeddb filesystem in the browser
835
+ * Use memory:// to use in-memory filesystem
836
+ * @param options PGlite options
837
+ * @returns A promise that resolves to the PGlite instance when it's ready.
838
+ */
839
+ static create<O extends PGliteOptions>(dataDir?: string, options?: O): Promise<PGlite & PGliteInterfaceExtensions<O['extensions']>>;
840
+ handleExternalCmd(cmd: string, mode: string): number;
841
+ /**
842
+ * The Postgres Emscripten Module
843
+ */
844
+ get Module(): PostgresMod;
845
+ /**
846
+ * The ready state of the database
847
+ */
848
+ get ready(): boolean;
849
+ /**
850
+ * The closed state of the database
851
+ */
852
+ get closed(): boolean;
853
+ /**
854
+ * Close the database
855
+ * @returns A promise that resolves when the database is closed
856
+ */
857
+ close(): Promise<void>;
858
+ /**
859
+ * Close the database when the object exits scope
860
+ * Stage 3 ECMAScript Explicit Resource Management
861
+ * https://www.typescriptlang.org/docs/handbook/release-notes/typescript-5-2.html#using-declarations-and-explicit-resource-management
862
+ */
863
+ [Symbol.asyncDispose](): Promise<void>;
864
+ /**
865
+ * Handle a file attached to the current query
866
+ * @param file The file to handle
867
+ */
868
+ _handleBlob(blob?: File | Blob): Promise<void>;
869
+ /**
870
+ * Cleanup the current file
871
+ */
872
+ _cleanupBlob(): Promise<void>;
873
+ /**
874
+ * Get the written blob from the current query
875
+ * @returns The written blob
876
+ */
877
+ _getWrittenBlob(): Promise<Blob | undefined>;
878
+ /**
879
+ * Wait for the database to be ready
880
+ */
881
+ _checkReady(): Promise<void>;
882
+ /**
883
+ * Execute a postgres wire protocol synchronously
884
+ * @param message The postgres wire protocol message to execute
885
+ * @returns The direct message data response produced by Postgres
886
+ */
887
+ execProtocolRawSync(message: Uint8Array): Uint8Array;
888
+ /**
889
+ * Execute a postgres wire protocol message directly without wrapping the response.
890
+ * Only use if `execProtocol()` doesn't suite your needs.
891
+ *
892
+ * **Warning:** This bypasses PGlite's protocol wrappers that manage error/notice messages,
893
+ * transactions, and notification listeners. Only use if you need to bypass these wrappers and
894
+ * don't intend to use the above features.
895
+ *
896
+ * @param message The postgres wire protocol message to execute
897
+ * @returns The direct message data response produced by Postgres
898
+ */
899
+ execProtocolRaw(message: Uint8Array, {
900
+ syncToFs
901
+ }?: ExecProtocolOptions): Promise<Uint8Array>;
902
+ /**
903
+ * Execute a postgres wire protocol message directly without wrapping the response.
904
+ * Only use if `execProtocol()` doesn't suite your needs.
905
+ *
906
+ * **Warning:** This bypasses PGlite's protocol wrappers that manage error/notice messages,
907
+ * transactions, and notification listeners. Only use if you need to bypass these wrappers and
908
+ * don't intend to use the above features.
909
+ *
910
+ * @param message The postgres wire protocol message to execute
911
+ * @param options.onRawData Callback to receive results as streaming data
912
+ */
913
+ execProtocolRawStream(message: Uint8Array, {
914
+ syncToFs,
915
+ onRawData
916
+ }: ExecProtocolOptionsStream): Promise<void>;
917
+ /**
918
+ * Execute a postgres wire protocol message
919
+ * @param message The postgres wire protocol message to execute
920
+ * @returns The result of the query
921
+ */
922
+ execProtocol(message: Uint8Array, {
923
+ syncToFs,
924
+ throwOnError,
925
+ onNotice
926
+ }?: ExecProtocolOptions): Promise<ExecProtocolResult>;
927
+ /**
928
+ * Execute a postgres wire protocol message
929
+ * @param message The postgres wire protocol message to execute
930
+ * @returns The parsed results of the query
931
+ */
932
+ execProtocolStream(message: Uint8Array, {
933
+ syncToFs,
934
+ throwOnError,
935
+ onNotice
936
+ }?: ExecProtocolOptions): Promise<BackendMessage[]>;
937
+ /**
938
+ * Check if the database is in a transaction
939
+ * @returns True if the database is in a transaction, false otherwise
940
+ */
941
+ isInTransaction(): boolean;
942
+ /**
943
+ * Perform any sync operations implemented by the filesystem, this is
944
+ * run after every query to ensure that the filesystem is synced.
945
+ */
946
+ syncToFs(): Promise<void>;
947
+ /**
948
+ * Listen for a notification
949
+ * @param channel The channel to listen on
950
+ * @param callback The callback to call when a notification is received
951
+ */
952
+ listen(channel: string, callback: (payload: string) => void, tx?: Transaction): Promise<(tx?: Transaction) => Promise<void>>;
953
+ /**
954
+ * Stop listening for a notification
955
+ * @param channel The channel to stop listening on
956
+ * @param callback The callback to remove
957
+ */
958
+ unlisten(channel: string, callback?: (payload: string) => void, tx?: Transaction): Promise<void>;
959
+ /**
960
+ * Listen to notifications
961
+ * @param callback The callback to call when a notification is received
962
+ */
963
+ onNotification(callback: (channel: string, payload: string) => void): () => void;
964
+ /**
965
+ * Stop listening to notifications
966
+ * @param callback The callback to remove
967
+ */
968
+ offNotification(callback: (channel: string, payload: string) => void): void;
969
+ /**
970
+ * Dump the PGDATA dir from the filesystem to a gzipped tarball.
971
+ * @param compression The compression options to use - 'gzip', 'auto', 'none'
972
+ * @returns The tarball as a File object where available, and fallback to a Blob
973
+ */
974
+ dumpDataDir(compression?: DumpTarCompressionOptions): Promise<File | Blob>;
975
+ /**
976
+ * Run a function in a mutex that's exclusive to queries
977
+ * @param fn The query to run
978
+ * @returns The result of the query
979
+ */
980
+ _runExclusiveQuery<T>(fn: () => Promise<T>): Promise<T>;
981
+ /**
982
+ * Run a function in a mutex that's exclusive to transactions
983
+ * @param fn The function to run
984
+ * @returns The result of the function
985
+ */
986
+ _runExclusiveTransaction<T>(fn: () => Promise<T>): Promise<T>;
987
+ clone(): Promise<PGliteInterface>;
988
+ _runExclusiveListen<T>(fn: () => Promise<T>): Promise<T>;
989
+ callMain(args: string[]): number;
990
+ }
991
+ //#endregion
992
+ //#region ../../../../node_modules/zod/lib/helpers/typeAliases.d.ts
993
+ declare type Primitive$1 = string | number | symbol | bigint | boolean | null | undefined;
994
+ //#endregion
995
+ //#region ../../../../node_modules/zod/lib/helpers/util.d.ts
996
+ declare namespace util {
997
+ type AssertEqual<T, U> = (<V>() => V extends T ? 1 : 2) extends (<V>() => V extends U ? 1 : 2) ? true : false;
998
+ export type isAny<T> = 0 extends 1 & T ? true : false;
999
+ export const assertEqual: <A, B>(val: AssertEqual<A, B>) => AssertEqual<A, B>;
1000
+ export function assertIs<T>(_arg: T): void;
1001
+ export function assertNever(_x: never): never;
1002
+ export type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
1003
+ export type OmitKeys<T, K extends string> = Pick<T, Exclude<keyof T, K>>;
1004
+ export type MakePartial<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
1005
+ export const arrayToEnum: <T extends string, U extends [T, ...T[]]>(items: U) => { [k in U[number]]: k };
1006
+ export const getValidEnumValues: (obj: any) => any[];
1007
+ export const objectValues: (obj: any) => any[];
1008
+ export const objectKeys: ObjectConstructor["keys"];
1009
+ export const find: <T>(arr: T[], checker: (arg: T) => any) => T | undefined;
1010
+ export type identity<T> = objectUtil.identity<T>;
1011
+ export type flatten<T> = objectUtil.flatten<T>;
1012
+ export type noUndefined<T> = T extends undefined ? never : T;
1013
+ export const isInteger: NumberConstructor["isInteger"];
1014
+ export function joinValues<T extends any[]>(array: T, separator?: string): string;
1015
+ export const jsonStringifyReplacer: (_: string, value: any) => any;
1016
+ export {};
1017
+ }
1018
+ declare namespace objectUtil {
1019
+ export type MergeShapes<U, V> = { [k in Exclude<keyof U, keyof V>]: U[k] } & V;
1020
+ type requiredKeys<T extends object> = { [k in keyof T]: undefined extends T[k] ? never : k }[keyof T];
1021
+ export type addQuestionMarks<T extends object, R extends keyof T = requiredKeys<T>> = Pick<Required<T>, R> & Partial<T>;
1022
+ export type identity<T> = T;
1023
+ export type flatten<T> = identity<{ [k in keyof T]: T[k] }>;
1024
+ export type noNeverKeys<T> = { [k in keyof T]: [T[k]] extends [never] ? never : k }[keyof T];
1025
+ export type noNever<T> = identity<{ [k in noNeverKeys<T>]: k extends keyof T ? T[k] : never }>;
1026
+ export const mergeShapes: <U, T>(first: U, second: T) => T & U;
1027
+ export type extendShape<A, B> = flatten<Omit<A, keyof B> & B>;
1028
+ export {};
1029
+ }
1030
+ declare const ZodParsedType: {
1031
+ function: "function";
1032
+ number: "number";
1033
+ string: "string";
1034
+ nan: "nan";
1035
+ integer: "integer";
1036
+ float: "float";
1037
+ boolean: "boolean";
1038
+ date: "date";
1039
+ bigint: "bigint";
1040
+ symbol: "symbol";
1041
+ undefined: "undefined";
1042
+ null: "null";
1043
+ array: "array";
1044
+ object: "object";
1045
+ unknown: "unknown";
1046
+ promise: "promise";
1047
+ void: "void";
1048
+ never: "never";
1049
+ map: "map";
1050
+ set: "set";
1051
+ };
1052
+ declare type ZodParsedType = keyof typeof ZodParsedType;
1053
+ //#endregion
1054
+ //#region ../../../../node_modules/zod/lib/ZodError.d.ts
1055
+ declare type allKeys<T> = T extends any ? keyof T : never;
1056
+ declare type typeToFlattenedError<T, U = string> = {
1057
+ formErrors: U[];
1058
+ fieldErrors: { [P in allKeys<T>]?: U[] };
1059
+ };
1060
+ declare const ZodIssueCode: {
1061
+ invalid_type: "invalid_type";
1062
+ invalid_literal: "invalid_literal";
1063
+ custom: "custom";
1064
+ invalid_union: "invalid_union";
1065
+ invalid_union_discriminator: "invalid_union_discriminator";
1066
+ invalid_enum_value: "invalid_enum_value";
1067
+ unrecognized_keys: "unrecognized_keys";
1068
+ invalid_arguments: "invalid_arguments";
1069
+ invalid_return_type: "invalid_return_type";
1070
+ invalid_date: "invalid_date";
1071
+ invalid_string: "invalid_string";
1072
+ too_small: "too_small";
1073
+ too_big: "too_big";
1074
+ invalid_intersection_types: "invalid_intersection_types";
1075
+ not_multiple_of: "not_multiple_of";
1076
+ not_finite: "not_finite";
1077
+ };
1078
+ declare type ZodIssueCode = keyof typeof ZodIssueCode;
1079
+ declare type ZodIssueBase = {
1080
+ path: (string | number)[];
1081
+ message?: string;
1082
+ };
1083
+ interface ZodInvalidTypeIssue extends ZodIssueBase {
1084
+ code: typeof ZodIssueCode.invalid_type;
1085
+ expected: ZodParsedType;
1086
+ received: ZodParsedType;
1087
+ }
1088
+ interface ZodInvalidLiteralIssue extends ZodIssueBase {
1089
+ code: typeof ZodIssueCode.invalid_literal;
1090
+ expected: unknown;
1091
+ received: unknown;
1092
+ }
1093
+ interface ZodUnrecognizedKeysIssue extends ZodIssueBase {
1094
+ code: typeof ZodIssueCode.unrecognized_keys;
1095
+ keys: string[];
1096
+ }
1097
+ interface ZodInvalidUnionIssue extends ZodIssueBase {
1098
+ code: typeof ZodIssueCode.invalid_union;
1099
+ unionErrors: ZodError[];
1100
+ }
1101
+ interface ZodInvalidUnionDiscriminatorIssue extends ZodIssueBase {
1102
+ code: typeof ZodIssueCode.invalid_union_discriminator;
1103
+ options: Primitive$1[];
1104
+ }
1105
+ interface ZodInvalidEnumValueIssue extends ZodIssueBase {
1106
+ received: string | number;
1107
+ code: typeof ZodIssueCode.invalid_enum_value;
1108
+ options: (string | number)[];
1109
+ }
1110
+ interface ZodInvalidArgumentsIssue extends ZodIssueBase {
1111
+ code: typeof ZodIssueCode.invalid_arguments;
1112
+ argumentsError: ZodError;
1113
+ }
1114
+ interface ZodInvalidReturnTypeIssue extends ZodIssueBase {
1115
+ code: typeof ZodIssueCode.invalid_return_type;
1116
+ returnTypeError: ZodError;
1117
+ }
1118
+ interface ZodInvalidDateIssue extends ZodIssueBase {
1119
+ code: typeof ZodIssueCode.invalid_date;
1120
+ }
1121
+ declare type StringValidation = "email" | "url" | "emoji" | "uuid" | "regex" | "cuid" | "cuid2" | "ulid" | "datetime" | "ip" | {
1122
+ includes: string;
1123
+ position?: number;
1124
+ } | {
1125
+ startsWith: string;
1126
+ } | {
1127
+ endsWith: string;
1128
+ };
1129
+ interface ZodInvalidStringIssue extends ZodIssueBase {
1130
+ code: typeof ZodIssueCode.invalid_string;
1131
+ validation: StringValidation;
1132
+ }
1133
+ interface ZodTooSmallIssue extends ZodIssueBase {
1134
+ code: typeof ZodIssueCode.too_small;
1135
+ minimum: number | bigint;
1136
+ inclusive: boolean;
1137
+ exact?: boolean;
1138
+ type: "array" | "string" | "number" | "set" | "date" | "bigint";
1139
+ }
1140
+ interface ZodTooBigIssue extends ZodIssueBase {
1141
+ code: typeof ZodIssueCode.too_big;
1142
+ maximum: number | bigint;
1143
+ inclusive: boolean;
1144
+ exact?: boolean;
1145
+ type: "array" | "string" | "number" | "set" | "date" | "bigint";
1146
+ }
1147
+ interface ZodInvalidIntersectionTypesIssue extends ZodIssueBase {
1148
+ code: typeof ZodIssueCode.invalid_intersection_types;
1149
+ }
1150
+ interface ZodNotMultipleOfIssue extends ZodIssueBase {
1151
+ code: typeof ZodIssueCode.not_multiple_of;
1152
+ multipleOf: number | bigint;
1153
+ }
1154
+ interface ZodNotFiniteIssue extends ZodIssueBase {
1155
+ code: typeof ZodIssueCode.not_finite;
1156
+ }
1157
+ interface ZodCustomIssue extends ZodIssueBase {
1158
+ code: typeof ZodIssueCode.custom;
1159
+ params?: {
1160
+ [k: string]: any;
1161
+ };
1162
+ }
1163
+ declare type ZodIssueOptionalMessage = ZodInvalidTypeIssue | ZodInvalidLiteralIssue | ZodUnrecognizedKeysIssue | ZodInvalidUnionIssue | ZodInvalidUnionDiscriminatorIssue | ZodInvalidEnumValueIssue | ZodInvalidArgumentsIssue | ZodInvalidReturnTypeIssue | ZodInvalidDateIssue | ZodInvalidStringIssue | ZodTooSmallIssue | ZodTooBigIssue | ZodInvalidIntersectionTypesIssue | ZodNotMultipleOfIssue | ZodNotFiniteIssue | ZodCustomIssue;
1164
+ declare type ZodIssue = ZodIssueOptionalMessage & {
1165
+ fatal?: boolean;
1166
+ message: string;
1167
+ };
1168
+ declare type recursiveZodFormattedError<T> = T extends [any, ...any[]] ? { [K in keyof T]?: ZodFormattedError<T[K]> } : T extends any[] ? {
1169
+ [k: number]: ZodFormattedError<T[number]>;
1170
+ } : T extends object ? { [K in keyof T]?: ZodFormattedError<T[K]> } : unknown;
1171
+ declare type ZodFormattedError<T, U = string> = {
1172
+ _errors: U[];
1173
+ } & recursiveZodFormattedError<NonNullable<T>>;
1174
+ declare class ZodError<T = any> extends Error {
1175
+ issues: ZodIssue[];
1176
+ get errors(): ZodIssue[];
1177
+ constructor(issues: ZodIssue[]);
1178
+ format(): ZodFormattedError<T>;
1179
+ format<U>(mapper: (issue: ZodIssue) => U): ZodFormattedError<T, U>;
1180
+ static create: (issues: ZodIssue[]) => ZodError<any>;
1181
+ toString(): string;
1182
+ get message(): string;
1183
+ get isEmpty(): boolean;
1184
+ addIssue: (sub: ZodIssue) => void;
1185
+ addIssues: (subs?: ZodIssue[]) => void;
1186
+ flatten(): typeToFlattenedError<T>;
1187
+ flatten<U>(mapper?: (issue: ZodIssue) => U): typeToFlattenedError<T, U>;
1188
+ get formErrors(): typeToFlattenedError<T, string>;
1189
+ }
1190
+ declare type stripPath<T extends object> = T extends any ? util.OmitKeys<T, "path"> : never;
1191
+ declare type IssueData = stripPath<ZodIssueOptionalMessage> & {
1192
+ path?: (string | number)[];
1193
+ fatal?: boolean;
1194
+ };
1195
+ declare type ErrorMapCtx = {
1196
+ defaultError: string;
1197
+ data: any;
1198
+ };
1199
+ declare type ZodErrorMap = (issue: ZodIssueOptionalMessage, _ctx: ErrorMapCtx) => {
1200
+ message: string;
1201
+ };
1202
+ //#endregion
1203
+ //#region ../../../../node_modules/zod/lib/helpers/parseUtil.d.ts
1204
+ declare type ParseParams = {
1205
+ path: (string | number)[];
1206
+ errorMap: ZodErrorMap;
1207
+ async: boolean;
1208
+ };
1209
+ declare type ParsePathComponent = string | number;
1210
+ declare type ParsePath = ParsePathComponent[];
1211
+ interface ParseContext {
1212
+ readonly common: {
1213
+ readonly issues: ZodIssue[];
1214
+ readonly contextualErrorMap?: ZodErrorMap;
1215
+ readonly async: boolean;
1216
+ };
1217
+ readonly path: ParsePath;
1218
+ readonly schemaErrorMap?: ZodErrorMap;
1219
+ readonly parent: ParseContext | null;
1220
+ readonly data: any;
1221
+ readonly parsedType: ZodParsedType;
1222
+ }
1223
+ declare type ParseInput = {
1224
+ data: any;
1225
+ path: (string | number)[];
1226
+ parent: ParseContext;
1227
+ };
1228
+ declare class ParseStatus {
1229
+ value: "aborted" | "dirty" | "valid";
1230
+ dirty(): void;
1231
+ abort(): void;
1232
+ static mergeArray(status: ParseStatus, results: SyncParseReturnType<any>[]): SyncParseReturnType;
1233
+ static mergeObjectAsync(status: ParseStatus, pairs: {
1234
+ key: ParseReturnType<any>;
1235
+ value: ParseReturnType<any>;
1236
+ }[]): Promise<SyncParseReturnType<any>>;
1237
+ static mergeObjectSync(status: ParseStatus, pairs: {
1238
+ key: SyncParseReturnType<any>;
1239
+ value: SyncParseReturnType<any>;
1240
+ alwaysSet?: boolean;
1241
+ }[]): SyncParseReturnType;
1242
+ }
1243
+ declare type INVALID = {
1244
+ status: "aborted";
1245
+ };
1246
+ declare const INVALID: INVALID;
1247
+ declare type DIRTY<T> = {
1248
+ status: "dirty";
1249
+ value: T;
1250
+ };
1251
+ declare const DIRTY: <T>(value: T) => DIRTY<T>;
1252
+ declare type OK<T> = {
1253
+ status: "valid";
1254
+ value: T;
1255
+ };
1256
+ declare const OK: <T>(value: T) => OK<T>;
1257
+ declare type SyncParseReturnType<T = any> = OK<T> | DIRTY<T> | INVALID;
1258
+ declare type AsyncParseReturnType<T> = Promise<SyncParseReturnType<T>>;
1259
+ declare type ParseReturnType<T> = SyncParseReturnType<T> | AsyncParseReturnType<T>;
1260
+ //#endregion
1261
+ //#region ../../../../node_modules/zod/lib/helpers/enumUtil.d.ts
1262
+ declare namespace enumUtil {
1263
+ type UnionToIntersectionFn<T> = (T extends unknown ? (k: () => T) => void : never) extends ((k: infer Intersection) => void) ? Intersection : never;
1264
+ type GetUnionLast<T> = UnionToIntersectionFn<T> extends (() => infer Last) ? Last : never;
1265
+ type UnionToTuple<T, Tuple extends unknown[] = []> = [T] extends [never] ? Tuple : UnionToTuple<Exclude<T, GetUnionLast<T>>, [GetUnionLast<T>, ...Tuple]>;
1266
+ type CastToStringTuple<T> = T extends [string, ...string[]] ? T : never;
1267
+ export type UnionToTupleString<T> = CastToStringTuple<UnionToTuple<T>>;
1268
+ export {};
1269
+ }
1270
+ //#endregion
1271
+ //#region ../../../../node_modules/zod/lib/helpers/errorUtil.d.ts
1272
+ declare namespace errorUtil {
1273
+ type ErrMessage = string | {
1274
+ message?: string;
1275
+ };
1276
+ const errToObj: (message?: ErrMessage | undefined) => {
1277
+ message?: string | undefined;
1278
+ };
1279
+ const toString: (message?: ErrMessage | undefined) => string | undefined;
1280
+ }
1281
+ //#endregion
1282
+ //#region ../../../../node_modules/zod/lib/helpers/partialUtil.d.ts
1283
+ declare namespace partialUtil {
1284
+ type DeepPartial<T extends ZodTypeAny> = T extends ZodObject<ZodRawShape> ? ZodObject<{ [k in keyof T["shape"]]: ZodOptional<DeepPartial<T["shape"][k]>> }, T["_def"]["unknownKeys"], T["_def"]["catchall"]> : T extends ZodArray<infer Type, infer Card> ? ZodArray<DeepPartial<Type>, Card> : T extends ZodOptional<infer Type> ? ZodOptional<DeepPartial<Type>> : T extends ZodNullable<infer Type> ? ZodNullable<DeepPartial<Type>> : T extends ZodTuple<infer Items> ? { [k in keyof Items]: Items[k] extends ZodTypeAny ? DeepPartial<Items[k]> : never } extends infer PI ? PI extends ZodTupleItems ? ZodTuple<PI> : never : never : T;
1285
+ }
1286
+ //#endregion
1287
+ //#region ../../../../node_modules/zod/lib/types.d.ts
1288
+ declare type RefinementCtx = {
1289
+ addIssue: (arg: IssueData) => void;
1290
+ path: (string | number)[];
1291
+ };
1292
+ declare type ZodRawShape = {
1293
+ [k: string]: ZodTypeAny;
1294
+ };
1295
+ declare type ZodTypeAny = ZodType<any, any, any>;
1296
+ declare type TypeOf<T extends ZodType<any, any, any>> = T["_output"];
1297
+ declare type input<T extends ZodType<any, any, any>> = T["_input"];
1298
+ declare type output<T extends ZodType<any, any, any>> = T["_output"];
1299
+ declare type CustomErrorParams = Partial<util.Omit<ZodCustomIssue, "code">>;
1300
+ interface ZodTypeDef {
1301
+ errorMap?: ZodErrorMap;
1302
+ description?: string;
1303
+ }
1304
+ declare type RawCreateParams = {
1305
+ errorMap?: ZodErrorMap;
1306
+ invalid_type_error?: string;
1307
+ required_error?: string;
1308
+ description?: string;
1309
+ } | undefined;
1310
+ declare type SafeParseSuccess<Output> = {
1311
+ success: true;
1312
+ data: Output;
1313
+ };
1314
+ declare type SafeParseError<Input> = {
1315
+ success: false;
1316
+ error: ZodError<Input>;
1317
+ };
1318
+ declare type SafeParseReturnType<Input, Output> = SafeParseSuccess<Output> | SafeParseError<Input>;
1319
+ declare abstract class ZodType<Output = any, Def extends ZodTypeDef = ZodTypeDef, Input = Output> {
1320
+ readonly _type: Output;
1321
+ readonly _output: Output;
1322
+ readonly _input: Input;
1323
+ readonly _def: Def;
1324
+ get description(): string | undefined;
1325
+ abstract _parse(input: ParseInput): ParseReturnType<Output>;
1326
+ _getType(input: ParseInput): string;
1327
+ _getOrReturnCtx(input: ParseInput, ctx?: ParseContext | undefined): ParseContext;
1328
+ _processInputParams(input: ParseInput): {
1329
+ status: ParseStatus;
1330
+ ctx: ParseContext;
1331
+ };
1332
+ _parseSync(input: ParseInput): SyncParseReturnType<Output>;
1333
+ _parseAsync(input: ParseInput): AsyncParseReturnType<Output>;
1334
+ parse(data: unknown, params?: Partial<ParseParams>): Output;
1335
+ safeParse(data: unknown, params?: Partial<ParseParams>): SafeParseReturnType<Input, Output>;
1336
+ parseAsync(data: unknown, params?: Partial<ParseParams>): Promise<Output>;
1337
+ safeParseAsync(data: unknown, params?: Partial<ParseParams>): Promise<SafeParseReturnType<Input, Output>>;
1338
+ /** Alias of safeParseAsync */
1339
+ spa: (data: unknown, params?: Partial<ParseParams> | undefined) => Promise<SafeParseReturnType<Input, Output>>;
1340
+ refine<RefinedOutput extends Output>(check: (arg: Output) => arg is RefinedOutput, message?: string | CustomErrorParams | ((arg: Output) => CustomErrorParams)): ZodEffects<this, RefinedOutput, Input>;
1341
+ refine(check: (arg: Output) => unknown | Promise<unknown>, message?: string | CustomErrorParams | ((arg: Output) => CustomErrorParams)): ZodEffects<this, Output, Input>;
1342
+ refinement<RefinedOutput extends Output>(check: (arg: Output) => arg is RefinedOutput, refinementData: IssueData | ((arg: Output, ctx: RefinementCtx) => IssueData)): ZodEffects<this, RefinedOutput, Input>;
1343
+ refinement(check: (arg: Output) => boolean, refinementData: IssueData | ((arg: Output, ctx: RefinementCtx) => IssueData)): ZodEffects<this, Output, Input>;
1344
+ _refinement(refinement: RefinementEffect<Output>["refinement"]): ZodEffects<this, Output, Input>;
1345
+ superRefine<RefinedOutput extends Output>(refinement: (arg: Output, ctx: RefinementCtx) => arg is RefinedOutput): ZodEffects<this, RefinedOutput, Input>;
1346
+ superRefine(refinement: (arg: Output, ctx: RefinementCtx) => void): ZodEffects<this, Output, Input>;
1347
+ superRefine(refinement: (arg: Output, ctx: RefinementCtx) => Promise<void>): ZodEffects<this, Output, Input>;
1348
+ constructor(def: Def);
1349
+ optional(): ZodOptional<this>;
1350
+ nullable(): ZodNullable<this>;
1351
+ nullish(): ZodOptional<ZodNullable<this>>;
1352
+ array(): ZodArray<this>;
1353
+ promise(): ZodPromise<this>;
1354
+ or<T extends ZodTypeAny>(option: T): ZodUnion<[this, T]>;
1355
+ and<T extends ZodTypeAny>(incoming: T): ZodIntersection<this, T>;
1356
+ transform<NewOut>(transform: (arg: Output, ctx: RefinementCtx) => NewOut | Promise<NewOut>): ZodEffects<this, NewOut>;
1357
+ default(def: util.noUndefined<Input>): ZodDefault<this>;
1358
+ default(def: () => util.noUndefined<Input>): ZodDefault<this>;
1359
+ brand<B extends string | number | symbol>(brand?: B): ZodBranded<this, B>;
1360
+ catch(def: Output): ZodCatch<this>;
1361
+ catch(def: (ctx: {
1362
+ error: ZodError;
1363
+ input: Input;
1364
+ }) => Output): ZodCatch<this>;
1365
+ describe(description: string): this;
1366
+ pipe<T extends ZodTypeAny>(target: T): ZodPipeline<this, T>;
1367
+ readonly(): ZodReadonly<this>;
1368
+ isOptional(): boolean;
1369
+ isNullable(): boolean;
1370
+ }
1371
+ declare type IpVersion = "v4" | "v6";
1372
+ declare type ZodStringCheck = {
1373
+ kind: "min";
1374
+ value: number;
1375
+ message?: string;
1376
+ } | {
1377
+ kind: "max";
1378
+ value: number;
1379
+ message?: string;
1380
+ } | {
1381
+ kind: "length";
1382
+ value: number;
1383
+ message?: string;
1384
+ } | {
1385
+ kind: "email";
1386
+ message?: string;
1387
+ } | {
1388
+ kind: "url";
1389
+ message?: string;
1390
+ } | {
1391
+ kind: "emoji";
1392
+ message?: string;
1393
+ } | {
1394
+ kind: "uuid";
1395
+ message?: string;
1396
+ } | {
1397
+ kind: "cuid";
1398
+ message?: string;
1399
+ } | {
1400
+ kind: "includes";
1401
+ value: string;
1402
+ position?: number;
1403
+ message?: string;
1404
+ } | {
1405
+ kind: "cuid2";
1406
+ message?: string;
1407
+ } | {
1408
+ kind: "ulid";
1409
+ message?: string;
1410
+ } | {
1411
+ kind: "startsWith";
1412
+ value: string;
1413
+ message?: string;
1414
+ } | {
1415
+ kind: "endsWith";
1416
+ value: string;
1417
+ message?: string;
1418
+ } | {
1419
+ kind: "regex";
1420
+ regex: RegExp;
1421
+ message?: string;
1422
+ } | {
1423
+ kind: "trim";
1424
+ message?: string;
1425
+ } | {
1426
+ kind: "toLowerCase";
1427
+ message?: string;
1428
+ } | {
1429
+ kind: "toUpperCase";
1430
+ message?: string;
1431
+ } | {
1432
+ kind: "datetime";
1433
+ offset: boolean;
1434
+ precision: number | null;
1435
+ message?: string;
1436
+ } | {
1437
+ kind: "ip";
1438
+ version?: IpVersion;
1439
+ message?: string;
1440
+ };
1441
+ interface ZodStringDef extends ZodTypeDef {
1442
+ checks: ZodStringCheck[];
1443
+ typeName: ZodFirstPartyTypeKind.ZodString;
1444
+ coerce: boolean;
1445
+ }
1446
+ declare class ZodString extends ZodType<string, ZodStringDef> {
1447
+ _parse(input: ParseInput): ParseReturnType<string>;
1448
+ protected _regex(regex: RegExp, validation: StringValidation, message?: errorUtil.ErrMessage): ZodEffects<this, string, string>;
1449
+ _addCheck(check: ZodStringCheck): ZodString;
1450
+ email(message?: errorUtil.ErrMessage): ZodString;
1451
+ url(message?: errorUtil.ErrMessage): ZodString;
1452
+ emoji(message?: errorUtil.ErrMessage): ZodString;
1453
+ uuid(message?: errorUtil.ErrMessage): ZodString;
1454
+ cuid(message?: errorUtil.ErrMessage): ZodString;
1455
+ cuid2(message?: errorUtil.ErrMessage): ZodString;
1456
+ ulid(message?: errorUtil.ErrMessage): ZodString;
1457
+ ip(options?: string | {
1458
+ version?: "v4" | "v6";
1459
+ message?: string;
1460
+ }): ZodString;
1461
+ datetime(options?: string | {
1462
+ message?: string | undefined;
1463
+ precision?: number | null;
1464
+ offset?: boolean;
1465
+ }): ZodString;
1466
+ regex(regex: RegExp, message?: errorUtil.ErrMessage): ZodString;
1467
+ includes(value: string, options?: {
1468
+ message?: string;
1469
+ position?: number;
1470
+ }): ZodString;
1471
+ startsWith(value: string, message?: errorUtil.ErrMessage): ZodString;
1472
+ endsWith(value: string, message?: errorUtil.ErrMessage): ZodString;
1473
+ min(minLength: number, message?: errorUtil.ErrMessage): ZodString;
1474
+ max(maxLength: number, message?: errorUtil.ErrMessage): ZodString;
1475
+ length(len: number, message?: errorUtil.ErrMessage): ZodString;
1476
+ /**
1477
+ * @deprecated Use z.string().min(1) instead.
1478
+ * @see {@link ZodString.min}
1479
+ */
1480
+ nonempty(message?: errorUtil.ErrMessage): ZodString;
1481
+ trim(): ZodString;
1482
+ toLowerCase(): ZodString;
1483
+ toUpperCase(): ZodString;
1484
+ get isDatetime(): boolean;
1485
+ get isEmail(): boolean;
1486
+ get isURL(): boolean;
1487
+ get isEmoji(): boolean;
1488
+ get isUUID(): boolean;
1489
+ get isCUID(): boolean;
1490
+ get isCUID2(): boolean;
1491
+ get isULID(): boolean;
1492
+ get isIP(): boolean;
1493
+ get minLength(): number | null;
1494
+ get maxLength(): number | null;
1495
+ static create: (params?: ({
1496
+ errorMap?: ZodErrorMap | undefined;
1497
+ invalid_type_error?: string | undefined;
1498
+ required_error?: string | undefined;
1499
+ description?: string | undefined;
1500
+ } & {
1501
+ coerce?: true | undefined;
1502
+ }) | undefined) => ZodString;
1503
+ }
1504
+ declare type ZodNumberCheck = {
1505
+ kind: "min";
1506
+ value: number;
1507
+ inclusive: boolean;
1508
+ message?: string;
1509
+ } | {
1510
+ kind: "max";
1511
+ value: number;
1512
+ inclusive: boolean;
1513
+ message?: string;
1514
+ } | {
1515
+ kind: "int";
1516
+ message?: string;
1517
+ } | {
1518
+ kind: "multipleOf";
1519
+ value: number;
1520
+ message?: string;
1521
+ } | {
1522
+ kind: "finite";
1523
+ message?: string;
1524
+ };
1525
+ interface ZodNumberDef extends ZodTypeDef {
1526
+ checks: ZodNumberCheck[];
1527
+ typeName: ZodFirstPartyTypeKind.ZodNumber;
1528
+ coerce: boolean;
1529
+ }
1530
+ declare class ZodNumber extends ZodType<number, ZodNumberDef> {
1531
+ _parse(input: ParseInput): ParseReturnType<number>;
1532
+ static create: (params?: ({
1533
+ errorMap?: ZodErrorMap | undefined;
1534
+ invalid_type_error?: string | undefined;
1535
+ required_error?: string | undefined;
1536
+ description?: string | undefined;
1537
+ } & {
1538
+ coerce?: boolean | undefined;
1539
+ }) | undefined) => ZodNumber;
1540
+ gte(value: number, message?: errorUtil.ErrMessage): ZodNumber;
1541
+ min: (value: number, message?: errorUtil.ErrMessage | undefined) => ZodNumber;
1542
+ gt(value: number, message?: errorUtil.ErrMessage): ZodNumber;
1543
+ lte(value: number, message?: errorUtil.ErrMessage): ZodNumber;
1544
+ max: (value: number, message?: errorUtil.ErrMessage | undefined) => ZodNumber;
1545
+ lt(value: number, message?: errorUtil.ErrMessage): ZodNumber;
1546
+ protected setLimit(kind: "min" | "max", value: number, inclusive: boolean, message?: string): ZodNumber;
1547
+ _addCheck(check: ZodNumberCheck): ZodNumber;
1548
+ int(message?: errorUtil.ErrMessage): ZodNumber;
1549
+ positive(message?: errorUtil.ErrMessage): ZodNumber;
1550
+ negative(message?: errorUtil.ErrMessage): ZodNumber;
1551
+ nonpositive(message?: errorUtil.ErrMessage): ZodNumber;
1552
+ nonnegative(message?: errorUtil.ErrMessage): ZodNumber;
1553
+ multipleOf(value: number, message?: errorUtil.ErrMessage): ZodNumber;
1554
+ step: (value: number, message?: errorUtil.ErrMessage | undefined) => ZodNumber;
1555
+ finite(message?: errorUtil.ErrMessage): ZodNumber;
1556
+ safe(message?: errorUtil.ErrMessage): ZodNumber;
1557
+ get minValue(): number | null;
1558
+ get maxValue(): number | null;
1559
+ get isInt(): boolean;
1560
+ get isFinite(): boolean;
1561
+ }
1562
+ interface ZodBooleanDef extends ZodTypeDef {
1563
+ typeName: ZodFirstPartyTypeKind.ZodBoolean;
1564
+ coerce: boolean;
1565
+ }
1566
+ declare class ZodBoolean extends ZodType<boolean, ZodBooleanDef> {
1567
+ _parse(input: ParseInput): ParseReturnType<boolean>;
1568
+ static create: (params?: ({
1569
+ errorMap?: ZodErrorMap | undefined;
1570
+ invalid_type_error?: string | undefined;
1571
+ required_error?: string | undefined;
1572
+ description?: string | undefined;
1573
+ } & {
1574
+ coerce?: boolean | undefined;
1575
+ }) | undefined) => ZodBoolean;
1576
+ }
1577
+ interface ZodUndefinedDef extends ZodTypeDef {
1578
+ typeName: ZodFirstPartyTypeKind.ZodUndefined;
1579
+ }
1580
+ declare class ZodUndefined extends ZodType<undefined, ZodUndefinedDef> {
1581
+ _parse(input: ParseInput): ParseReturnType<this["_output"]>;
1582
+ params?: RawCreateParams;
1583
+ static create: (params?: RawCreateParams) => ZodUndefined;
1584
+ }
1585
+ interface ZodAnyDef extends ZodTypeDef {
1586
+ typeName: ZodFirstPartyTypeKind.ZodAny;
1587
+ }
1588
+ declare class ZodAny extends ZodType<any, ZodAnyDef> {
1589
+ _any: true;
1590
+ _parse(input: ParseInput): ParseReturnType<this["_output"]>;
1591
+ static create: (params?: RawCreateParams) => ZodAny;
1592
+ }
1593
+ interface ZodArrayDef<T extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {
1594
+ type: T;
1595
+ typeName: ZodFirstPartyTypeKind.ZodArray;
1596
+ exactLength: {
1597
+ value: number;
1598
+ message?: string;
1599
+ } | null;
1600
+ minLength: {
1601
+ value: number;
1602
+ message?: string;
1603
+ } | null;
1604
+ maxLength: {
1605
+ value: number;
1606
+ message?: string;
1607
+ } | null;
1608
+ }
1609
+ declare type ArrayCardinality = "many" | "atleastone";
1610
+ declare type arrayOutputType<T extends ZodTypeAny, Cardinality extends ArrayCardinality = "many"> = Cardinality extends "atleastone" ? [T["_output"], ...T["_output"][]] : T["_output"][];
1611
+ declare class ZodArray<T extends ZodTypeAny, Cardinality extends ArrayCardinality = "many"> extends ZodType<arrayOutputType<T, Cardinality>, ZodArrayDef<T>, Cardinality extends "atleastone" ? [T["_input"], ...T["_input"][]] : T["_input"][]> {
1612
+ _parse(input: ParseInput): ParseReturnType<this["_output"]>;
1613
+ get element(): T;
1614
+ min(minLength: number, message?: errorUtil.ErrMessage): this;
1615
+ max(maxLength: number, message?: errorUtil.ErrMessage): this;
1616
+ length(len: number, message?: errorUtil.ErrMessage): this;
1617
+ nonempty(message?: errorUtil.ErrMessage): ZodArray<T, "atleastone">;
1618
+ static create: <T_1 extends ZodTypeAny>(schema: T_1, params?: RawCreateParams) => ZodArray<T_1, "many">;
1619
+ }
1620
+ declare type UnknownKeysParam = "passthrough" | "strict" | "strip";
1621
+ interface ZodObjectDef<T extends ZodRawShape = ZodRawShape, UnknownKeys extends UnknownKeysParam = UnknownKeysParam, Catchall extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {
1622
+ typeName: ZodFirstPartyTypeKind.ZodObject;
1623
+ shape: () => T;
1624
+ catchall: Catchall;
1625
+ unknownKeys: UnknownKeys;
1626
+ }
1627
+ declare type objectOutputType<Shape extends ZodRawShape, Catchall extends ZodTypeAny, UnknownKeys extends UnknownKeysParam = UnknownKeysParam> = objectUtil.flatten<objectUtil.addQuestionMarks<baseObjectOutputType<Shape>>> & CatchallOutput<Catchall> & PassthroughType<UnknownKeys>;
1628
+ declare type baseObjectOutputType<Shape extends ZodRawShape> = { [k in keyof Shape]: Shape[k]["_output"] };
1629
+ declare type objectInputType<Shape extends ZodRawShape, Catchall extends ZodTypeAny, UnknownKeys extends UnknownKeysParam = UnknownKeysParam> = objectUtil.flatten<baseObjectInputType<Shape>> & CatchallInput<Catchall> & PassthroughType<UnknownKeys>;
1630
+ declare type baseObjectInputType<Shape extends ZodRawShape> = objectUtil.addQuestionMarks<{ [k in keyof Shape]: Shape[k]["_input"] }>;
1631
+ declare type CatchallOutput<T extends ZodTypeAny> = ZodTypeAny extends T ? unknown : {
1632
+ [k: string]: T["_output"];
1633
+ };
1634
+ declare type CatchallInput<T extends ZodTypeAny> = ZodTypeAny extends T ? unknown : {
1635
+ [k: string]: T["_input"];
1636
+ };
1637
+ declare type PassthroughType<T extends UnknownKeysParam> = T extends "passthrough" ? {
1638
+ [k: string]: unknown;
1639
+ } : unknown;
1640
+ declare type deoptional<T extends ZodTypeAny> = T extends ZodOptional<infer U> ? deoptional<U> : T extends ZodNullable<infer U> ? ZodNullable<deoptional<U>> : T;
1641
+ declare class ZodObject<T extends ZodRawShape, UnknownKeys extends UnknownKeysParam = UnknownKeysParam, Catchall extends ZodTypeAny = ZodTypeAny, Output = objectOutputType<T, Catchall, UnknownKeys>, Input = objectInputType<T, Catchall, UnknownKeys>> extends ZodType<Output, ZodObjectDef<T, UnknownKeys, Catchall>, Input> {
1642
+ private _cached;
1643
+ _getCached(): {
1644
+ shape: T;
1645
+ keys: string[];
1646
+ };
1647
+ _parse(input: ParseInput): ParseReturnType<this["_output"]>;
1648
+ get shape(): T;
1649
+ strict(message?: errorUtil.ErrMessage): ZodObject<T, "strict", Catchall>;
1650
+ strip(): ZodObject<T, "strip", Catchall>;
1651
+ passthrough(): ZodObject<T, "passthrough", Catchall>;
1652
+ /**
1653
+ * @deprecated In most cases, this is no longer needed - unknown properties are now silently stripped.
1654
+ * If you want to pass through unknown properties, use `.passthrough()` instead.
1655
+ */
1656
+ nonstrict: () => ZodObject<T, "passthrough", Catchall>;
1657
+ extend<Augmentation extends ZodRawShape>(augmentation: Augmentation): ZodObject<objectUtil.extendShape<T, Augmentation>, UnknownKeys, Catchall>;
1658
+ /**
1659
+ * @deprecated Use `.extend` instead
1660
+ * */
1661
+ augment: <Augmentation extends ZodRawShape>(augmentation: Augmentation) => ZodObject<{ [k in keyof (Omit<T, keyof Augmentation> & Augmentation)]: (Omit<T, keyof Augmentation> & Augmentation)[k] }, UnknownKeys, Catchall, objectOutputType<{ [k in keyof (Omit<T, keyof Augmentation> & Augmentation)]: (Omit<T, keyof Augmentation> & Augmentation)[k] }, Catchall, UnknownKeys>, objectInputType<{ [k in keyof (Omit<T, keyof Augmentation> & Augmentation)]: (Omit<T, keyof Augmentation> & Augmentation)[k] }, Catchall, UnknownKeys>>;
1662
+ /**
1663
+ * Prior to zod@1.0.12 there was a bug in the
1664
+ * inferred type of merged objects. Please
1665
+ * upgrade if you are experiencing issues.
1666
+ */
1667
+ merge<Incoming extends AnyZodObject, Augmentation extends Incoming["shape"]>(merging: Incoming): ZodObject<objectUtil.extendShape<T, Augmentation>, Incoming["_def"]["unknownKeys"], Incoming["_def"]["catchall"]>;
1668
+ setKey<Key extends string, Schema extends ZodTypeAny>(key: Key, schema: Schema): ZodObject<T & { [k in Key]: Schema }, UnknownKeys, Catchall>;
1669
+ catchall<Index extends ZodTypeAny>(index: Index): ZodObject<T, UnknownKeys, Index>;
1670
+ pick<Mask extends { [k in keyof T]?: true }>(mask: Mask): ZodObject<Pick<T, Extract<keyof T, keyof Mask>>, UnknownKeys, Catchall>;
1671
+ omit<Mask extends { [k in keyof T]?: true }>(mask: Mask): ZodObject<Omit<T, keyof Mask>, UnknownKeys, Catchall>;
1672
+ /**
1673
+ * @deprecated
1674
+ */
1675
+ deepPartial(): partialUtil.DeepPartial<this>;
1676
+ partial(): ZodObject<{ [k in keyof T]: ZodOptional<T[k]> }, UnknownKeys, Catchall>;
1677
+ partial<Mask extends { [k in keyof T]?: true }>(mask: Mask): ZodObject<objectUtil.noNever<{ [k in keyof T]: k extends keyof Mask ? ZodOptional<T[k]> : T[k] }>, UnknownKeys, Catchall>;
1678
+ required(): ZodObject<{ [k in keyof T]: deoptional<T[k]> }, UnknownKeys, Catchall>;
1679
+ required<Mask extends { [k in keyof T]?: true }>(mask: Mask): ZodObject<objectUtil.noNever<{ [k in keyof T]: k extends keyof Mask ? deoptional<T[k]> : T[k] }>, UnknownKeys, Catchall>;
1680
+ keyof(): ZodEnum<enumUtil.UnionToTupleString<keyof T>>;
1681
+ static create: <T_1 extends ZodRawShape>(shape: T_1, params?: RawCreateParams) => ZodObject<T_1, "strip", ZodTypeAny, { [k_1 in keyof objectUtil.addQuestionMarks<baseObjectOutputType<T_1>, { [k in keyof baseObjectOutputType<T_1>]: undefined extends baseObjectOutputType<T_1>[k] ? never : k }[keyof T_1]>]: objectUtil.addQuestionMarks<baseObjectOutputType<T_1>, { [k in keyof baseObjectOutputType<T_1>]: undefined extends baseObjectOutputType<T_1>[k] ? never : k }[keyof T_1]>[k_1] }, { [k_2 in keyof baseObjectInputType<T_1>]: baseObjectInputType<T_1>[k_2] }>;
1682
+ static strictCreate: <T_1 extends ZodRawShape>(shape: T_1, params?: RawCreateParams) => ZodObject<T_1, "strict", ZodTypeAny, { [k_1 in keyof objectUtil.addQuestionMarks<baseObjectOutputType<T_1>, { [k in keyof baseObjectOutputType<T_1>]: undefined extends baseObjectOutputType<T_1>[k] ? never : k }[keyof T_1]>]: objectUtil.addQuestionMarks<baseObjectOutputType<T_1>, { [k in keyof baseObjectOutputType<T_1>]: undefined extends baseObjectOutputType<T_1>[k] ? never : k }[keyof T_1]>[k_1] }, { [k_2 in keyof baseObjectInputType<T_1>]: baseObjectInputType<T_1>[k_2] }>;
1683
+ static lazycreate: <T_1 extends ZodRawShape>(shape: () => T_1, params?: RawCreateParams) => ZodObject<T_1, "strip", ZodTypeAny, { [k_1 in keyof objectUtil.addQuestionMarks<baseObjectOutputType<T_1>, { [k in keyof baseObjectOutputType<T_1>]: undefined extends baseObjectOutputType<T_1>[k] ? never : k }[keyof T_1]>]: objectUtil.addQuestionMarks<baseObjectOutputType<T_1>, { [k in keyof baseObjectOutputType<T_1>]: undefined extends baseObjectOutputType<T_1>[k] ? never : k }[keyof T_1]>[k_1] }, { [k_2 in keyof baseObjectInputType<T_1>]: baseObjectInputType<T_1>[k_2] }>;
1684
+ }
1685
+ declare type AnyZodObject = ZodObject<any, any, any>;
1686
+ declare type ZodUnionOptions = Readonly<[ZodTypeAny, ...ZodTypeAny[]]>;
1687
+ interface ZodUnionDef<T extends ZodUnionOptions = Readonly<[ZodTypeAny, ZodTypeAny, ...ZodTypeAny[]]>> extends ZodTypeDef {
1688
+ options: T;
1689
+ typeName: ZodFirstPartyTypeKind.ZodUnion;
1690
+ }
1691
+ declare class ZodUnion<T extends ZodUnionOptions> extends ZodType<T[number]["_output"], ZodUnionDef<T>, T[number]["_input"]> {
1692
+ _parse(input: ParseInput): ParseReturnType<this["_output"]>;
1693
+ get options(): T;
1694
+ static create: <T_1 extends readonly [ZodTypeAny, ZodTypeAny, ...ZodTypeAny[]]>(types: T_1, params?: RawCreateParams) => ZodUnion<T_1>;
1695
+ }
1696
+ interface ZodIntersectionDef<T extends ZodTypeAny = ZodTypeAny, U extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {
1697
+ left: T;
1698
+ right: U;
1699
+ typeName: ZodFirstPartyTypeKind.ZodIntersection;
1700
+ }
1701
+ declare class ZodIntersection<T extends ZodTypeAny, U extends ZodTypeAny> extends ZodType<T["_output"] & U["_output"], ZodIntersectionDef<T, U>, T["_input"] & U["_input"]> {
1702
+ _parse(input: ParseInput): ParseReturnType<this["_output"]>;
1703
+ static create: <T_1 extends ZodTypeAny, U_1 extends ZodTypeAny>(left: T_1, right: U_1, params?: RawCreateParams) => ZodIntersection<T_1, U_1>;
1704
+ }
1705
+ declare type ZodTupleItems = [ZodTypeAny, ...ZodTypeAny[]];
1706
+ declare type AssertArray<T> = T extends any[] ? T : never;
1707
+ declare type OutputTypeOfTuple<T extends ZodTupleItems | []> = AssertArray<{ [k in keyof T]: T[k] extends ZodType<any, any> ? T[k]["_output"] : never }>;
1708
+ declare type OutputTypeOfTupleWithRest<T extends ZodTupleItems | [], Rest extends ZodTypeAny | null = null> = Rest extends ZodTypeAny ? [...OutputTypeOfTuple<T>, ...Rest["_output"][]] : OutputTypeOfTuple<T>;
1709
+ declare type InputTypeOfTuple<T extends ZodTupleItems | []> = AssertArray<{ [k in keyof T]: T[k] extends ZodType<any, any> ? T[k]["_input"] : never }>;
1710
+ declare type InputTypeOfTupleWithRest<T extends ZodTupleItems | [], Rest extends ZodTypeAny | null = null> = Rest extends ZodTypeAny ? [...InputTypeOfTuple<T>, ...Rest["_input"][]] : InputTypeOfTuple<T>;
1711
+ interface ZodTupleDef<T extends ZodTupleItems | [] = ZodTupleItems, Rest extends ZodTypeAny | null = null> extends ZodTypeDef {
1712
+ items: T;
1713
+ rest: Rest;
1714
+ typeName: ZodFirstPartyTypeKind.ZodTuple;
1715
+ }
1716
+ declare class ZodTuple<T extends [ZodTypeAny, ...ZodTypeAny[]] | [] = [ZodTypeAny, ...ZodTypeAny[]], Rest extends ZodTypeAny | null = null> extends ZodType<OutputTypeOfTupleWithRest<T, Rest>, ZodTupleDef<T, Rest>, InputTypeOfTupleWithRest<T, Rest>> {
1717
+ _parse(input: ParseInput): ParseReturnType<this["_output"]>;
1718
+ get items(): T;
1719
+ rest<Rest extends ZodTypeAny>(rest: Rest): ZodTuple<T, Rest>;
1720
+ static create: <T_1 extends [] | [ZodTypeAny, ...ZodTypeAny[]]>(schemas: T_1, params?: RawCreateParams) => ZodTuple<T_1, null>;
1721
+ }
1722
+ interface ZodRecordDef<Key extends KeySchema = ZodString, Value extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {
1723
+ valueType: Value;
1724
+ keyType: Key;
1725
+ typeName: ZodFirstPartyTypeKind.ZodRecord;
1726
+ }
1727
+ declare type KeySchema = ZodType<string | number | symbol, any, any>;
1728
+ declare type RecordType<K extends string | number | symbol, V> = [string] extends [K] ? Record<K, V> : [number] extends [K] ? Record<K, V> : [symbol] extends [K] ? Record<K, V> : [BRAND<string | number | symbol>] extends [K] ? Record<K, V> : Partial<Record<K, V>>;
1729
+ declare class ZodRecord<Key extends KeySchema = ZodString, Value extends ZodTypeAny = ZodTypeAny> extends ZodType<RecordType<Key["_output"], Value["_output"]>, ZodRecordDef<Key, Value>, RecordType<Key["_input"], Value["_input"]>> {
1730
+ get keySchema(): Key;
1731
+ get valueSchema(): Value;
1732
+ _parse(input: ParseInput): ParseReturnType<this["_output"]>;
1733
+ get element(): Value;
1734
+ static create<Value extends ZodTypeAny>(valueType: Value, params?: RawCreateParams): ZodRecord<ZodString, Value>;
1735
+ static create<Keys extends KeySchema, Value extends ZodTypeAny>(keySchema: Keys, valueType: Value, params?: RawCreateParams): ZodRecord<Keys, Value>;
1736
+ }
1737
+ interface ZodLiteralDef<T = any> extends ZodTypeDef {
1738
+ value: T;
1739
+ typeName: ZodFirstPartyTypeKind.ZodLiteral;
1740
+ }
1741
+ declare class ZodLiteral<T> extends ZodType<T, ZodLiteralDef<T>> {
1742
+ _parse(input: ParseInput): ParseReturnType<this["_output"]>;
1743
+ get value(): T;
1744
+ static create: <T_1 extends Primitive$1>(value: T_1, params?: RawCreateParams) => ZodLiteral<T_1>;
1745
+ }
1746
+ declare type EnumValues = [string, ...string[]];
1747
+ declare type Values<T extends EnumValues> = { [k in T[number]]: k };
1748
+ interface ZodEnumDef<T extends EnumValues = EnumValues> extends ZodTypeDef {
1749
+ values: T;
1750
+ typeName: ZodFirstPartyTypeKind.ZodEnum;
1751
+ }
1752
+ declare type Writeable<T> = { -readonly [P in keyof T]: T[P] };
1753
+ declare type FilterEnum<Values, ToExclude> = Values extends [] ? [] : Values extends [infer Head, ...infer Rest] ? Head extends ToExclude ? FilterEnum<Rest, ToExclude> : [Head, ...FilterEnum<Rest, ToExclude>] : never;
1754
+ declare type typecast<A, T> = A extends T ? A : never;
1755
+ declare function createZodEnum<U extends string, T extends Readonly<[U, ...U[]]>>(values: T, params?: RawCreateParams): ZodEnum<Writeable<T>>;
1756
+ declare function createZodEnum<U extends string, T extends [U, ...U[]]>(values: T, params?: RawCreateParams): ZodEnum<T>;
1757
+ declare class ZodEnum<T extends [string, ...string[]]> extends ZodType<T[number], ZodEnumDef<T>> {
1758
+ _parse(input: ParseInput): ParseReturnType<this["_output"]>;
1759
+ get options(): T;
1760
+ get enum(): Values<T>;
1761
+ get Values(): Values<T>;
1762
+ get Enum(): Values<T>;
1763
+ extract<ToExtract extends readonly [T[number], ...T[number][]]>(values: ToExtract): ZodEnum<Writeable<ToExtract>>;
1764
+ exclude<ToExclude extends readonly [T[number], ...T[number][]]>(values: ToExclude): ZodEnum<typecast<Writeable<FilterEnum<T, ToExclude[number]>>, [string, ...string[]]>>;
1765
+ static create: typeof createZodEnum;
1766
+ }
1767
+ interface ZodPromiseDef<T extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {
1768
+ type: T;
1769
+ typeName: ZodFirstPartyTypeKind.ZodPromise;
1770
+ }
1771
+ declare class ZodPromise<T extends ZodTypeAny> extends ZodType<Promise<T["_output"]>, ZodPromiseDef<T>, Promise<T["_input"]>> {
1772
+ unwrap(): T;
1773
+ _parse(input: ParseInput): ParseReturnType<this["_output"]>;
1774
+ static create: <T_1 extends ZodTypeAny>(schema: T_1, params?: RawCreateParams) => ZodPromise<T_1>;
1775
+ }
1776
+ declare type RefinementEffect<T> = {
1777
+ type: "refinement";
1778
+ refinement: (arg: T, ctx: RefinementCtx) => any;
1779
+ };
1780
+ declare type TransformEffect<T> = {
1781
+ type: "transform";
1782
+ transform: (arg: T, ctx: RefinementCtx) => any;
1783
+ };
1784
+ declare type PreprocessEffect<T> = {
1785
+ type: "preprocess";
1786
+ transform: (arg: T, ctx: RefinementCtx) => any;
1787
+ };
1788
+ declare type Effect<T> = RefinementEffect<T> | TransformEffect<T> | PreprocessEffect<T>;
1789
+ interface ZodEffectsDef<T extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {
1790
+ schema: T;
1791
+ typeName: ZodFirstPartyTypeKind.ZodEffects;
1792
+ effect: Effect<any>;
1793
+ }
1794
+ declare class ZodEffects<T extends ZodTypeAny, Output = output<T>, Input = input<T>> extends ZodType<Output, ZodEffectsDef<T>, Input> {
1795
+ innerType(): T;
1796
+ sourceType(): T;
1797
+ _parse(input: ParseInput): ParseReturnType<this["_output"]>;
1798
+ static create: <I extends ZodTypeAny>(schema: I, effect: Effect<I["_output"]>, params?: RawCreateParams) => ZodEffects<I, I["_output"], input<I>>;
1799
+ static createWithPreprocess: <I extends ZodTypeAny>(preprocess: (arg: unknown, ctx: RefinementCtx) => unknown, schema: I, params?: RawCreateParams) => ZodEffects<I, I["_output"], unknown>;
1800
+ }
1801
+ interface ZodOptionalDef<T extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {
1802
+ innerType: T;
1803
+ typeName: ZodFirstPartyTypeKind.ZodOptional;
1804
+ }
1805
+ declare class ZodOptional<T extends ZodTypeAny> extends ZodType<T["_output"] | undefined, ZodOptionalDef<T>, T["_input"] | undefined> {
1806
+ _parse(input: ParseInput): ParseReturnType<this["_output"]>;
1807
+ unwrap(): T;
1808
+ static create: <T_1 extends ZodTypeAny>(type: T_1, params?: RawCreateParams) => ZodOptional<T_1>;
1809
+ }
1810
+ interface ZodNullableDef<T extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {
1811
+ innerType: T;
1812
+ typeName: ZodFirstPartyTypeKind.ZodNullable;
1813
+ }
1814
+ declare class ZodNullable<T extends ZodTypeAny> extends ZodType<T["_output"] | null, ZodNullableDef<T>, T["_input"] | null> {
1815
+ _parse(input: ParseInput): ParseReturnType<this["_output"]>;
1816
+ unwrap(): T;
1817
+ static create: <T_1 extends ZodTypeAny>(type: T_1, params?: RawCreateParams) => ZodNullable<T_1>;
1818
+ }
1819
+ interface ZodDefaultDef<T extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {
1820
+ innerType: T;
1821
+ defaultValue: () => util.noUndefined<T["_input"]>;
1822
+ typeName: ZodFirstPartyTypeKind.ZodDefault;
1823
+ }
1824
+ declare class ZodDefault<T extends ZodTypeAny> extends ZodType<util.noUndefined<T["_output"]>, ZodDefaultDef<T>, T["_input"] | undefined> {
1825
+ _parse(input: ParseInput): ParseReturnType<this["_output"]>;
1826
+ removeDefault(): T;
1827
+ static create: <T_1 extends ZodTypeAny>(type: T_1, params: {
1828
+ errorMap?: ZodErrorMap | undefined;
1829
+ invalid_type_error?: string | undefined;
1830
+ required_error?: string | undefined;
1831
+ description?: string | undefined;
1832
+ } & {
1833
+ default: T_1["_input"] | (() => util.noUndefined<T_1["_input"]>);
1834
+ }) => ZodDefault<T_1>;
1835
+ }
1836
+ interface ZodCatchDef<T extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {
1837
+ innerType: T;
1838
+ catchValue: (ctx: {
1839
+ error: ZodError;
1840
+ input: unknown;
1841
+ }) => T["_input"];
1842
+ typeName: ZodFirstPartyTypeKind.ZodCatch;
1843
+ }
1844
+ declare class ZodCatch<T extends ZodTypeAny> extends ZodType<T["_output"], ZodCatchDef<T>, unknown> {
1845
+ _parse(input: ParseInput): ParseReturnType<this["_output"]>;
1846
+ removeCatch(): T;
1847
+ static create: <T_1 extends ZodTypeAny>(type: T_1, params: {
1848
+ errorMap?: ZodErrorMap | undefined;
1849
+ invalid_type_error?: string | undefined;
1850
+ required_error?: string | undefined;
1851
+ description?: string | undefined;
1852
+ } & {
1853
+ catch: T_1["_output"] | (() => T_1["_output"]);
1854
+ }) => ZodCatch<T_1>;
1855
+ }
1856
+ interface ZodBrandedDef<T extends ZodTypeAny> extends ZodTypeDef {
1857
+ type: T;
1858
+ typeName: ZodFirstPartyTypeKind.ZodBranded;
1859
+ }
1860
+ declare const BRAND: unique symbol;
1861
+ declare type BRAND<T extends string | number | symbol> = {
1862
+ [BRAND]: { [k in T]: true };
1863
+ };
1864
+ declare class ZodBranded<T extends ZodTypeAny, B extends string | number | symbol> extends ZodType<T["_output"] & BRAND<B>, ZodBrandedDef<T>, T["_input"]> {
1865
+ _parse(input: ParseInput): ParseReturnType<any>;
1866
+ unwrap(): T;
1867
+ }
1868
+ interface ZodPipelineDef<A extends ZodTypeAny, B extends ZodTypeAny> extends ZodTypeDef {
1869
+ in: A;
1870
+ out: B;
1871
+ typeName: ZodFirstPartyTypeKind.ZodPipeline;
1872
+ }
1873
+ declare class ZodPipeline<A extends ZodTypeAny, B extends ZodTypeAny> extends ZodType<B["_output"], ZodPipelineDef<A, B>, A["_input"]> {
1874
+ _parse(input: ParseInput): ParseReturnType<any>;
1875
+ static create<A extends ZodTypeAny, B extends ZodTypeAny>(a: A, b: B): ZodPipeline<A, B>;
1876
+ }
1877
+ declare type BuiltIn = (((...args: any[]) => any) | (new (...args: any[]) => any)) | {
1878
+ readonly [Symbol.toStringTag]: string;
1879
+ } | Date | Error | Generator | Promise<unknown> | RegExp;
1880
+ declare type MakeReadonly<T> = T extends Map<infer K, infer V> ? ReadonlyMap<K, V> : T extends Set<infer V> ? ReadonlySet<V> : T extends [infer Head, ...infer Tail] ? readonly [Head, ...Tail] : T extends Array<infer V> ? ReadonlyArray<V> : T extends BuiltIn ? T : Readonly<T>;
1881
+ interface ZodReadonlyDef<T extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {
1882
+ innerType: T;
1883
+ typeName: ZodFirstPartyTypeKind.ZodReadonly;
1884
+ }
1885
+ declare class ZodReadonly<T extends ZodTypeAny> extends ZodType<MakeReadonly<T["_output"]>, ZodReadonlyDef<T>, T["_input"]> {
1886
+ _parse(input: ParseInput): ParseReturnType<this["_output"]>;
1887
+ static create: <T_1 extends ZodTypeAny>(type: T_1, params?: RawCreateParams) => ZodReadonly<T_1>;
1888
+ }
1889
+ declare enum ZodFirstPartyTypeKind {
1890
+ ZodString = "ZodString",
1891
+ ZodNumber = "ZodNumber",
1892
+ ZodNaN = "ZodNaN",
1893
+ ZodBigInt = "ZodBigInt",
1894
+ ZodBoolean = "ZodBoolean",
1895
+ ZodDate = "ZodDate",
1896
+ ZodSymbol = "ZodSymbol",
1897
+ ZodUndefined = "ZodUndefined",
1898
+ ZodNull = "ZodNull",
1899
+ ZodAny = "ZodAny",
1900
+ ZodUnknown = "ZodUnknown",
1901
+ ZodNever = "ZodNever",
1902
+ ZodVoid = "ZodVoid",
1903
+ ZodArray = "ZodArray",
1904
+ ZodObject = "ZodObject",
1905
+ ZodUnion = "ZodUnion",
1906
+ ZodDiscriminatedUnion = "ZodDiscriminatedUnion",
1907
+ ZodIntersection = "ZodIntersection",
1908
+ ZodTuple = "ZodTuple",
1909
+ ZodRecord = "ZodRecord",
1910
+ ZodMap = "ZodMap",
1911
+ ZodSet = "ZodSet",
1912
+ ZodFunction = "ZodFunction",
1913
+ ZodLazy = "ZodLazy",
1914
+ ZodLiteral = "ZodLiteral",
1915
+ ZodEnum = "ZodEnum",
1916
+ ZodEffects = "ZodEffects",
1917
+ ZodNativeEnum = "ZodNativeEnum",
1918
+ ZodOptional = "ZodOptional",
1919
+ ZodNullable = "ZodNullable",
1920
+ ZodDefault = "ZodDefault",
1921
+ ZodCatch = "ZodCatch",
1922
+ ZodPromise = "ZodPromise",
1923
+ ZodBranded = "ZodBranded",
1924
+ ZodPipeline = "ZodPipeline",
1925
+ ZodReadonly = "ZodReadonly"
1926
+ }
1927
+ declare namespace api_d_exports {
1928
+ export { DrizzleMySQLSnapshotJSON, DrizzleSQLiteSnapshotJSON, DrizzleSingleStoreSnapshotJSON, DrizzleSnapshotJSON, generateDrizzleJson, generateMigration, generateMySQLDrizzleJson, generateMySQLMigration, generateSQLiteDrizzleJson, generateSQLiteMigration, generateSingleStoreDrizzleJson, generateSingleStoreMigration, pushMySQLSchema, pushSQLiteSchema, pushSchema, pushSingleStoreSchema, startStudioMySQLServer, startStudioPostgresServer, startStudioSQLiteServer, startStudioSingleStoreServer, upPgSnapshot };
1929
+ }
1930
+ declare const prefixes: readonly ["index", "timestamp", "supabase", "unix", "none"];
1931
+ type Prefix = (typeof prefixes)[number];
1932
+ declare const casingTypes: readonly ["snake_case", "camelCase"];
1933
+ type CasingType = (typeof casingTypes)[number];
1934
+ declare const drivers: readonly ["d1-http", "expo", "aws-data-api", "pglite", "durable-sqlite"];
1935
+ type Driver = (typeof drivers)[number];
1936
+ declare const mysqlCredentials: ZodUnion<[ZodObject<{
1937
+ host: ZodString;
1938
+ port: ZodOptional<ZodNumber>;
1939
+ user: ZodOptional<ZodString>;
1940
+ password: ZodOptional<ZodString>;
1941
+ database: ZodString;
1942
+ ssl: ZodOptional<ZodUnion<[ZodString, ZodObject<{
1943
+ pfx: ZodOptional<ZodString>;
1944
+ key: ZodOptional<ZodString>;
1945
+ passphrase: ZodOptional<ZodString>;
1946
+ cert: ZodOptional<ZodString>;
1947
+ ca: ZodOptional<ZodUnion<[ZodString, ZodArray<ZodString, "many">]>>;
1948
+ crl: ZodOptional<ZodUnion<[ZodString, ZodArray<ZodString, "many">]>>;
1949
+ ciphers: ZodOptional<ZodString>;
1950
+ rejectUnauthorized: ZodOptional<ZodBoolean>;
1951
+ }, "strip", ZodTypeAny, {
1952
+ pfx?: string | undefined;
1953
+ key?: string | undefined;
1954
+ passphrase?: string | undefined;
1955
+ cert?: string | undefined;
1956
+ ca?: string | string[] | undefined;
1957
+ crl?: string | string[] | undefined;
1958
+ ciphers?: string | undefined;
1959
+ rejectUnauthorized?: boolean | undefined;
1960
+ }, {
1961
+ pfx?: string | undefined;
1962
+ key?: string | undefined;
1963
+ passphrase?: string | undefined;
1964
+ cert?: string | undefined;
1965
+ ca?: string | string[] | undefined;
1966
+ crl?: string | string[] | undefined;
1967
+ ciphers?: string | undefined;
1968
+ rejectUnauthorized?: boolean | undefined;
1969
+ }>]>>;
1970
+ }, "strip", ZodTypeAny, {
1971
+ host: string;
1972
+ database: string;
1973
+ port?: number | undefined;
1974
+ user?: string | undefined;
1975
+ password?: string | undefined;
1976
+ ssl?: string | {
1977
+ pfx?: string | undefined;
1978
+ key?: string | undefined;
1979
+ passphrase?: string | undefined;
1980
+ cert?: string | undefined;
1981
+ ca?: string | string[] | undefined;
1982
+ crl?: string | string[] | undefined;
1983
+ ciphers?: string | undefined;
1984
+ rejectUnauthorized?: boolean | undefined;
1985
+ } | undefined;
1986
+ }, {
1987
+ host: string;
1988
+ database: string;
1989
+ port?: number | undefined;
1990
+ user?: string | undefined;
1991
+ password?: string | undefined;
1992
+ ssl?: string | {
1993
+ pfx?: string | undefined;
1994
+ key?: string | undefined;
1995
+ passphrase?: string | undefined;
1996
+ cert?: string | undefined;
1997
+ ca?: string | string[] | undefined;
1998
+ crl?: string | string[] | undefined;
1999
+ ciphers?: string | undefined;
2000
+ rejectUnauthorized?: boolean | undefined;
2001
+ } | undefined;
2002
+ }>, ZodObject<{
2003
+ url: ZodString;
2004
+ }, "strip", ZodTypeAny, {
2005
+ url: string;
2006
+ }, {
2007
+ url: string;
2008
+ }>]>;
2009
+ type MysqlCredentials = TypeOf<typeof mysqlCredentials>;
2010
+ declare const postgresCredentials: ZodUnion<[ZodEffects<ZodObject<{
2011
+ driver: ZodUndefined;
2012
+ host: ZodString;
2013
+ port: ZodOptional<ZodNumber>;
2014
+ user: ZodOptional<ZodString>;
2015
+ password: ZodOptional<ZodString>;
2016
+ database: ZodString;
2017
+ ssl: ZodOptional<ZodUnion<[ZodLiteral<"require">, ZodLiteral<"allow">, ZodLiteral<"prefer">, ZodLiteral<"verify-full">, ZodBoolean, ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>]>>;
2018
+ }, "strip", ZodTypeAny, {
2019
+ host: string;
2020
+ database: string;
2021
+ driver?: undefined;
2022
+ port?: number | undefined;
2023
+ user?: string | undefined;
2024
+ password?: string | undefined;
2025
+ ssl?: boolean | "require" | "allow" | "prefer" | "verify-full" | objectOutputType<{}, ZodTypeAny, "passthrough"> | undefined;
2026
+ }, {
2027
+ host: string;
2028
+ database: string;
2029
+ driver?: undefined;
2030
+ port?: number | undefined;
2031
+ user?: string | undefined;
2032
+ password?: string | undefined;
2033
+ ssl?: boolean | "require" | "allow" | "prefer" | "verify-full" | objectInputType<{}, ZodTypeAny, "passthrough"> | undefined;
2034
+ }>, Omit<{
2035
+ host: string;
2036
+ database: string;
2037
+ driver?: undefined;
2038
+ port?: number | undefined;
2039
+ user?: string | undefined;
2040
+ password?: string | undefined;
2041
+ ssl?: boolean | "require" | "allow" | "prefer" | "verify-full" | objectOutputType<{}, ZodTypeAny, "passthrough"> | undefined;
2042
+ }, "driver">, {
2043
+ host: string;
2044
+ database: string;
2045
+ driver?: undefined;
2046
+ port?: number | undefined;
2047
+ user?: string | undefined;
2048
+ password?: string | undefined;
2049
+ ssl?: boolean | "require" | "allow" | "prefer" | "verify-full" | objectInputType<{}, ZodTypeAny, "passthrough"> | undefined;
2050
+ }>, ZodEffects<ZodObject<{
2051
+ driver: ZodUndefined;
2052
+ url: ZodString;
2053
+ }, "strip", ZodTypeAny, {
2054
+ url: string;
2055
+ driver?: undefined;
2056
+ }, {
2057
+ url: string;
2058
+ driver?: undefined;
2059
+ }>, {
2060
+ url: string;
2061
+ }, {
2062
+ url: string;
2063
+ driver?: undefined;
2064
+ }>, ZodObject<{
2065
+ driver: ZodLiteral<"aws-data-api">;
2066
+ database: ZodString;
2067
+ secretArn: ZodString;
2068
+ resourceArn: ZodString;
2069
+ }, "strip", ZodTypeAny, {
2070
+ driver: "aws-data-api";
2071
+ database: string;
2072
+ secretArn: string;
2073
+ resourceArn: string;
2074
+ }, {
2075
+ driver: "aws-data-api";
2076
+ database: string;
2077
+ secretArn: string;
2078
+ resourceArn: string;
2079
+ }>, ZodObject<{
2080
+ driver: ZodLiteral<"pglite">;
2081
+ url: ZodString;
2082
+ }, "strip", ZodTypeAny, {
2083
+ url: string;
2084
+ driver: "pglite";
2085
+ }, {
2086
+ url: string;
2087
+ driver: "pglite";
2088
+ }>]>;
2089
+ type PostgresCredentials = TypeOf<typeof postgresCredentials>;
2090
+ declare const singlestoreCredentials: ZodUnion<[ZodObject<{
2091
+ host: ZodString;
2092
+ port: ZodOptional<ZodNumber>;
2093
+ user: ZodOptional<ZodString>;
2094
+ password: ZodOptional<ZodString>;
2095
+ database: ZodString;
2096
+ ssl: ZodOptional<ZodUnion<[ZodString, ZodObject<{
2097
+ pfx: ZodOptional<ZodString>;
2098
+ key: ZodOptional<ZodString>;
2099
+ passphrase: ZodOptional<ZodString>;
2100
+ cert: ZodOptional<ZodString>;
2101
+ ca: ZodOptional<ZodUnion<[ZodString, ZodArray<ZodString, "many">]>>;
2102
+ crl: ZodOptional<ZodUnion<[ZodString, ZodArray<ZodString, "many">]>>;
2103
+ ciphers: ZodOptional<ZodString>;
2104
+ rejectUnauthorized: ZodOptional<ZodBoolean>;
2105
+ }, "strip", ZodTypeAny, {
2106
+ pfx?: string | undefined;
2107
+ key?: string | undefined;
2108
+ passphrase?: string | undefined;
2109
+ cert?: string | undefined;
2110
+ ca?: string | string[] | undefined;
2111
+ crl?: string | string[] | undefined;
2112
+ ciphers?: string | undefined;
2113
+ rejectUnauthorized?: boolean | undefined;
2114
+ }, {
2115
+ pfx?: string | undefined;
2116
+ key?: string | undefined;
2117
+ passphrase?: string | undefined;
2118
+ cert?: string | undefined;
2119
+ ca?: string | string[] | undefined;
2120
+ crl?: string | string[] | undefined;
2121
+ ciphers?: string | undefined;
2122
+ rejectUnauthorized?: boolean | undefined;
2123
+ }>]>>;
2124
+ }, "strip", ZodTypeAny, {
2125
+ host: string;
2126
+ database: string;
2127
+ port?: number | undefined;
2128
+ user?: string | undefined;
2129
+ password?: string | undefined;
2130
+ ssl?: string | {
2131
+ pfx?: string | undefined;
2132
+ key?: string | undefined;
2133
+ passphrase?: string | undefined;
2134
+ cert?: string | undefined;
2135
+ ca?: string | string[] | undefined;
2136
+ crl?: string | string[] | undefined;
2137
+ ciphers?: string | undefined;
2138
+ rejectUnauthorized?: boolean | undefined;
2139
+ } | undefined;
2140
+ }, {
2141
+ host: string;
2142
+ database: string;
2143
+ port?: number | undefined;
2144
+ user?: string | undefined;
2145
+ password?: string | undefined;
2146
+ ssl?: string | {
2147
+ pfx?: string | undefined;
2148
+ key?: string | undefined;
2149
+ passphrase?: string | undefined;
2150
+ cert?: string | undefined;
2151
+ ca?: string | string[] | undefined;
2152
+ crl?: string | string[] | undefined;
2153
+ ciphers?: string | undefined;
2154
+ rejectUnauthorized?: boolean | undefined;
2155
+ } | undefined;
2156
+ }>, ZodObject<{
2157
+ url: ZodString;
2158
+ }, "strip", ZodTypeAny, {
2159
+ url: string;
2160
+ }, {
2161
+ url: string;
2162
+ }>]>;
2163
+ type SingleStoreCredentials = TypeOf<typeof singlestoreCredentials>;
2164
+ type SqliteCredentials = {
2165
+ driver: 'd1-http';
2166
+ accountId: string;
2167
+ databaseId: string;
2168
+ token: string;
2169
+ } | {
2170
+ url: string;
2171
+ };
2172
+ declare const dialects: readonly ["postgresql", "mysql", "sqlite", "turso", "singlestore", "gel"];
2173
+ type Dialect = (typeof dialects)[number];
2174
+ type SslOptions = {
2175
+ pfx?: string;
2176
+ key?: string;
2177
+ passphrase?: string;
2178
+ cert?: string;
2179
+ ca?: string | string[];
2180
+ crl?: string | string[];
2181
+ ciphers?: string;
2182
+ rejectUnauthorized?: boolean;
2183
+ };
2184
+ type Verify<T, U extends T> = U;
2185
+ /**
2186
+ * **You are currently using version 0.21.0+ of drizzle-kit. If you have just upgraded to this version, please make sure to read the changelog to understand what changes have been made and what
2187
+ * adjustments may be necessary for you. See https://orm.drizzle.team/kit-docs/upgrade-21#how-to-migrate-to-0210**
2188
+ *
2189
+ * **Config** usage:
2190
+ *
2191
+ * `dialect` - mandatory and is responsible for explicitly providing a databse dialect you are using for all the commands
2192
+ * *Possible values*: `postgresql`, `mysql`, `sqlite`, `singlestore
2193
+ *
2194
+ * See https://orm.drizzle.team/kit-docs/config-reference#dialect
2195
+ *
2196
+ * ---
2197
+ * `schema` - param lets you define where your schema file/files live.
2198
+ * You can have as many separate schema files as you want and define paths to them using glob or array of globs syntax.
2199
+ *
2200
+ * See https://orm.drizzle.team/kit-docs/config-reference#schema
2201
+ *
2202
+ * ---
2203
+ * `out` - allows you to define the folder for your migrations and a folder, where drizzle will introspect the schema and relations
2204
+ *
2205
+ * See https://orm.drizzle.team/kit-docs/config-reference#out
2206
+ *
2207
+ * ---
2208
+ * `driver` - optional param that is responsible for explicitly providing a driver to use when accessing a database
2209
+ * *Possible values*: `aws-data-api`, `d1-http`, `expo`, `turso`, `pglite`
2210
+ * If you don't use AWS Data API, D1, Turso or Expo - ypu don't need this driver. You can check a driver strategy choice here: https://orm.drizzle.team/kit-docs/upgrade-21
2211
+ *
2212
+ * See https://orm.drizzle.team/kit-docs/config-reference#driver
2213
+ *
2214
+ * ---
2215
+ *
2216
+ * `dbCredentials` - an object to define your connection to the database. For more info please check the docs
2217
+ *
2218
+ * See https://orm.drizzle.team/kit-docs/config-reference#dbcredentials
2219
+ *
2220
+ * ---
2221
+ *
2222
+ * `migrations` - param let’s use specify custom table and schema(PostgreSQL only) for migrations.
2223
+ * By default, all information about executed migrations will be stored in the database inside
2224
+ * the `__drizzle_migrations` table, and for PostgreSQL, inside the drizzle schema.
2225
+ * However, you can configure where to store those records.
2226
+ *
2227
+ * See https://orm.drizzle.team/kit-docs/config-reference#migrations
2228
+ *
2229
+ * ---
2230
+ *
2231
+ * `breakpoints` - param lets you enable/disable SQL statement breakpoints in generated migrations.
2232
+ * It’s optional and true by default, it’s necessary to properly apply migrations on databases,
2233
+ * that do not support multiple DDL alternation statements in one transaction(MySQL, SQLite, SingleStore) and
2234
+ * Drizzle ORM has to apply them sequentially one by one.
2235
+ *
2236
+ * See https://orm.drizzle.team/kit-docs/config-reference#breakpoints
2237
+ *
2238
+ * ---
2239
+ *
2240
+ * `tablesFilters` - param lets you filter tables with glob syntax for db push command.
2241
+ * It’s useful when you have only one database avaialable for several separate projects with separate sql schemas.
2242
+ *
2243
+ * How to define multi-project tables with Drizzle ORM — see https://orm.drizzle.team/docs/goodies#multi-project-schema
2244
+ *
2245
+ * See https://orm.drizzle.team/kit-docs/config-reference#tablesfilters
2246
+ *
2247
+ * ---
2248
+ *
2249
+ * `schemaFilter` - parameter allows you to define which schema in PostgreSQL should be used for either introspect or push commands.
2250
+ * This parameter accepts a single schema as a string or an array of schemas as strings.
2251
+ * No glob pattern is supported here. By default, drizzle will use the public schema for both commands,
2252
+ * but you can add any schema you need.
2253
+ *
2254
+ * For example, having schemaFilter: ["my_schema"] will only look for tables in both the database and
2255
+ * drizzle schema that are a part of the my_schema schema.
2256
+ *
2257
+ * See https://orm.drizzle.team/kit-docs/config-reference#schemafilter
2258
+ *
2259
+ * ---
2260
+ *
2261
+ * `verbose` - command is used for drizzle-kit push commands and prints all statements that will be executed.
2262
+ *
2263
+ * > Note: This command will only print the statements that should be executed.
2264
+ * To approve them before applying, please refer to the `strict` command.
2265
+ *
2266
+ * See https://orm.drizzle.team/kit-docs/config-reference#verbose
2267
+ *
2268
+ * ---
2269
+ *
2270
+ * `strict` - command is used for drizzle-kit push commands and will always ask for your confirmation,
2271
+ * either to execute all statements needed to sync your schema with the database or not.
2272
+ *
2273
+ * See https://orm.drizzle.team/kit-docs/config-reference#strict
2274
+ */
2275
+ type Config = {
2276
+ dialect: Dialect;
2277
+ out?: string;
2278
+ breakpoints?: boolean;
2279
+ tablesFilter?: string | string[];
2280
+ extensionsFilters?: 'postgis'[];
2281
+ schemaFilter?: string | string[];
2282
+ schema?: string | string[];
2283
+ verbose?: boolean;
2284
+ strict?: boolean;
2285
+ casing?: 'camelCase' | 'snake_case';
2286
+ migrations?: {
2287
+ table?: string;
2288
+ schema?: string;
2289
+ prefix?: Prefix;
2290
+ };
2291
+ introspect?: {
2292
+ casing: 'camel' | 'preserve';
2293
+ };
2294
+ entities?: {
2295
+ roles?: boolean | {
2296
+ provider?: 'supabase' | 'neon' | string & {};
2297
+ exclude?: string[];
2298
+ include?: string[];
2299
+ };
2300
+ };
2301
+ } & ({
2302
+ dialect: Verify<Dialect, 'turso'>;
2303
+ dbCredentials: {
2304
+ url: string;
2305
+ authToken?: string;
2306
+ };
2307
+ } | {
2308
+ dialect: Verify<Dialect, 'sqlite'>;
2309
+ dbCredentials: {
2310
+ url: string;
2311
+ };
2312
+ } | {
2313
+ dialect: Verify<Dialect, 'postgresql'>;
2314
+ dbCredentials: ({
2315
+ host: string;
2316
+ port?: number;
2317
+ user?: string;
2318
+ password?: string;
2319
+ database: string;
2320
+ ssl?: boolean | 'require' | 'allow' | 'prefer' | 'verify-full' | ConnectionOptions;
2321
+ } & {}) | {
2322
+ url: string;
2323
+ };
2324
+ } | {
2325
+ dialect: Verify<Dialect, 'postgresql'>;
2326
+ driver: Verify<Driver, 'aws-data-api'>;
2327
+ dbCredentials: {
2328
+ database: string;
2329
+ secretArn: string;
2330
+ resourceArn: string;
2331
+ };
2332
+ } | {
2333
+ dialect: Verify<Dialect, 'postgresql'>;
2334
+ driver: Verify<Driver, 'pglite'>;
2335
+ dbCredentials: {
2336
+ url: string;
2337
+ };
2338
+ } | {
2339
+ dialect: Verify<Dialect, 'mysql'>;
2340
+ dbCredentials: {
2341
+ host: string;
2342
+ port?: number;
2343
+ user?: string;
2344
+ password?: string;
2345
+ database: string;
2346
+ ssl?: string | SslOptions;
2347
+ } | {
2348
+ url: string;
2349
+ };
2350
+ } | {
2351
+ dialect: Verify<Dialect, 'sqlite'>;
2352
+ driver: Verify<Driver, 'd1-http'>;
2353
+ dbCredentials: {
2354
+ accountId: string;
2355
+ databaseId: string;
2356
+ token: string;
2357
+ };
2358
+ } | {
2359
+ dialect: Verify<Dialect, 'sqlite'>;
2360
+ driver: Verify<Driver, 'expo'>;
2361
+ } | {
2362
+ dialect: Verify<Dialect, 'sqlite'>;
2363
+ driver: Verify<Driver, 'durable-sqlite'>;
2364
+ } | {} | {
2365
+ dialect: Verify<Dialect, 'singlestore'>;
2366
+ dbCredentials: {
2367
+ host: string;
2368
+ port?: number;
2369
+ user?: string;
2370
+ password?: string;
2371
+ database: string;
2372
+ ssl?: string | SslOptions;
2373
+ } | {
2374
+ url: string;
2375
+ };
2376
+ } | {
2377
+ dialect: Verify<Dialect, 'gel'>;
2378
+ dbCredentials?: {
2379
+ tlsSecurity?: 'insecure' | 'no_host_verification' | 'strict' | 'default';
2380
+ } & ({
2381
+ url: string;
2382
+ } | ({
2383
+ host: string;
2384
+ port?: number;
2385
+ user?: string;
2386
+ password?: string;
2387
+ database: string;
2388
+ }));
2389
+ });
2390
+ declare const schema$2: ZodObject<{
2391
+ version: ZodLiteral<"5">;
2392
+ dialect: ZodLiteral<"mysql">;
2393
+ tables: ZodRecord<ZodString, ZodObject<{
2394
+ name: ZodString;
2395
+ columns: ZodRecord<ZodString, ZodObject<{
2396
+ name: ZodString;
2397
+ type: ZodString;
2398
+ primaryKey: ZodBoolean;
2399
+ notNull: ZodBoolean;
2400
+ autoincrement: ZodOptional<ZodBoolean>;
2401
+ default: ZodOptional<ZodAny>;
2402
+ onUpdate: ZodOptional<ZodAny>;
2403
+ generated: ZodOptional<ZodObject<{
2404
+ type: ZodEnum<["stored", "virtual"]>;
2405
+ as: ZodString;
2406
+ }, "strip", ZodTypeAny, {
2407
+ type: "stored" | "virtual";
2408
+ as: string;
2409
+ }, {
2410
+ type: "stored" | "virtual";
2411
+ as: string;
2412
+ }>>;
2413
+ }, "strict", ZodTypeAny, {
2414
+ type: string;
2415
+ name: string;
2416
+ primaryKey: boolean;
2417
+ notNull: boolean;
2418
+ default?: any;
2419
+ generated?: {
2420
+ type: "stored" | "virtual";
2421
+ as: string;
2422
+ } | undefined;
2423
+ onUpdate?: any;
2424
+ autoincrement?: boolean | undefined;
2425
+ }, {
2426
+ type: string;
2427
+ name: string;
2428
+ primaryKey: boolean;
2429
+ notNull: boolean;
2430
+ default?: any;
2431
+ generated?: {
2432
+ type: "stored" | "virtual";
2433
+ as: string;
2434
+ } | undefined;
2435
+ onUpdate?: any;
2436
+ autoincrement?: boolean | undefined;
2437
+ }>>;
2438
+ indexes: ZodRecord<ZodString, ZodObject<{
2439
+ name: ZodString;
2440
+ columns: ZodArray<ZodString, "many">;
2441
+ isUnique: ZodBoolean;
2442
+ using: ZodOptional<ZodEnum<["btree", "hash"]>>;
2443
+ algorithm: ZodOptional<ZodEnum<["default", "inplace", "copy"]>>;
2444
+ lock: ZodOptional<ZodEnum<["default", "none", "shared", "exclusive"]>>;
2445
+ }, "strict", ZodTypeAny, {
2446
+ name: string;
2447
+ columns: string[];
2448
+ isUnique: boolean;
2449
+ using?: "btree" | "hash" | undefined;
2450
+ algorithm?: "default" | "inplace" | "copy" | undefined;
2451
+ lock?: "default" | "none" | "shared" | "exclusive" | undefined;
2452
+ }, {
2453
+ name: string;
2454
+ columns: string[];
2455
+ isUnique: boolean;
2456
+ using?: "btree" | "hash" | undefined;
2457
+ algorithm?: "default" | "inplace" | "copy" | undefined;
2458
+ lock?: "default" | "none" | "shared" | "exclusive" | undefined;
2459
+ }>>;
2460
+ foreignKeys: ZodRecord<ZodString, ZodObject<{
2461
+ name: ZodString;
2462
+ tableFrom: ZodString;
2463
+ columnsFrom: ZodArray<ZodString, "many">;
2464
+ tableTo: ZodString;
2465
+ columnsTo: ZodArray<ZodString, "many">;
2466
+ onUpdate: ZodOptional<ZodString>;
2467
+ onDelete: ZodOptional<ZodString>;
2468
+ }, "strict", ZodTypeAny, {
2469
+ name: string;
2470
+ tableFrom: string;
2471
+ columnsFrom: string[];
2472
+ tableTo: string;
2473
+ columnsTo: string[];
2474
+ onUpdate?: string | undefined;
2475
+ onDelete?: string | undefined;
2476
+ }, {
2477
+ name: string;
2478
+ tableFrom: string;
2479
+ columnsFrom: string[];
2480
+ tableTo: string;
2481
+ columnsTo: string[];
2482
+ onUpdate?: string | undefined;
2483
+ onDelete?: string | undefined;
2484
+ }>>;
2485
+ compositePrimaryKeys: ZodRecord<ZodString, ZodObject<{
2486
+ name: ZodString;
2487
+ columns: ZodArray<ZodString, "many">;
2488
+ }, "strict", ZodTypeAny, {
2489
+ name: string;
2490
+ columns: string[];
2491
+ }, {
2492
+ name: string;
2493
+ columns: string[];
2494
+ }>>;
2495
+ uniqueConstraints: ZodDefault<ZodRecord<ZodString, ZodObject<{
2496
+ name: ZodString;
2497
+ columns: ZodArray<ZodString, "many">;
2498
+ }, "strict", ZodTypeAny, {
2499
+ name: string;
2500
+ columns: string[];
2501
+ }, {
2502
+ name: string;
2503
+ columns: string[];
2504
+ }>>>;
2505
+ checkConstraint: ZodDefault<ZodRecord<ZodString, ZodObject<{
2506
+ name: ZodString;
2507
+ value: ZodString;
2508
+ }, "strict", ZodTypeAny, {
2509
+ value: string;
2510
+ name: string;
2511
+ }, {
2512
+ value: string;
2513
+ name: string;
2514
+ }>>>;
2515
+ }, "strict", ZodTypeAny, {
2516
+ name: string;
2517
+ columns: Record<string, {
2518
+ type: string;
2519
+ name: string;
2520
+ primaryKey: boolean;
2521
+ notNull: boolean;
2522
+ default?: any;
2523
+ generated?: {
2524
+ type: "stored" | "virtual";
2525
+ as: string;
2526
+ } | undefined;
2527
+ onUpdate?: any;
2528
+ autoincrement?: boolean | undefined;
2529
+ }>;
2530
+ indexes: Record<string, {
2531
+ name: string;
2532
+ columns: string[];
2533
+ isUnique: boolean;
2534
+ using?: "btree" | "hash" | undefined;
2535
+ algorithm?: "default" | "inplace" | "copy" | undefined;
2536
+ lock?: "default" | "none" | "shared" | "exclusive" | undefined;
2537
+ }>;
2538
+ foreignKeys: Record<string, {
2539
+ name: string;
2540
+ tableFrom: string;
2541
+ columnsFrom: string[];
2542
+ tableTo: string;
2543
+ columnsTo: string[];
2544
+ onUpdate?: string | undefined;
2545
+ onDelete?: string | undefined;
2546
+ }>;
2547
+ compositePrimaryKeys: Record<string, {
2548
+ name: string;
2549
+ columns: string[];
2550
+ }>;
2551
+ uniqueConstraints: Record<string, {
2552
+ name: string;
2553
+ columns: string[];
2554
+ }>;
2555
+ checkConstraint: Record<string, {
2556
+ value: string;
2557
+ name: string;
2558
+ }>;
2559
+ }, {
2560
+ name: string;
2561
+ columns: Record<string, {
2562
+ type: string;
2563
+ name: string;
2564
+ primaryKey: boolean;
2565
+ notNull: boolean;
2566
+ default?: any;
2567
+ generated?: {
2568
+ type: "stored" | "virtual";
2569
+ as: string;
2570
+ } | undefined;
2571
+ onUpdate?: any;
2572
+ autoincrement?: boolean | undefined;
2573
+ }>;
2574
+ indexes: Record<string, {
2575
+ name: string;
2576
+ columns: string[];
2577
+ isUnique: boolean;
2578
+ using?: "btree" | "hash" | undefined;
2579
+ algorithm?: "default" | "inplace" | "copy" | undefined;
2580
+ lock?: "default" | "none" | "shared" | "exclusive" | undefined;
2581
+ }>;
2582
+ foreignKeys: Record<string, {
2583
+ name: string;
2584
+ tableFrom: string;
2585
+ columnsFrom: string[];
2586
+ tableTo: string;
2587
+ columnsTo: string[];
2588
+ onUpdate?: string | undefined;
2589
+ onDelete?: string | undefined;
2590
+ }>;
2591
+ compositePrimaryKeys: Record<string, {
2592
+ name: string;
2593
+ columns: string[];
2594
+ }>;
2595
+ uniqueConstraints?: Record<string, {
2596
+ name: string;
2597
+ columns: string[];
2598
+ }> | undefined;
2599
+ checkConstraint?: Record<string, {
2600
+ value: string;
2601
+ name: string;
2602
+ }> | undefined;
2603
+ }>>;
2604
+ views: ZodDefault<ZodRecord<ZodString, ZodObject<{
2605
+ name: ZodString;
2606
+ columns: ZodRecord<ZodString, ZodObject<{
2607
+ name: ZodString;
2608
+ type: ZodString;
2609
+ primaryKey: ZodBoolean;
2610
+ notNull: ZodBoolean;
2611
+ autoincrement: ZodOptional<ZodBoolean>;
2612
+ default: ZodOptional<ZodAny>;
2613
+ onUpdate: ZodOptional<ZodAny>;
2614
+ generated: ZodOptional<ZodObject<{
2615
+ type: ZodEnum<["stored", "virtual"]>;
2616
+ as: ZodString;
2617
+ }, "strip", ZodTypeAny, {
2618
+ type: "stored" | "virtual";
2619
+ as: string;
2620
+ }, {
2621
+ type: "stored" | "virtual";
2622
+ as: string;
2623
+ }>>;
2624
+ }, "strict", ZodTypeAny, {
2625
+ type: string;
2626
+ name: string;
2627
+ primaryKey: boolean;
2628
+ notNull: boolean;
2629
+ default?: any;
2630
+ generated?: {
2631
+ type: "stored" | "virtual";
2632
+ as: string;
2633
+ } | undefined;
2634
+ onUpdate?: any;
2635
+ autoincrement?: boolean | undefined;
2636
+ }, {
2637
+ type: string;
2638
+ name: string;
2639
+ primaryKey: boolean;
2640
+ notNull: boolean;
2641
+ default?: any;
2642
+ generated?: {
2643
+ type: "stored" | "virtual";
2644
+ as: string;
2645
+ } | undefined;
2646
+ onUpdate?: any;
2647
+ autoincrement?: boolean | undefined;
2648
+ }>>;
2649
+ definition: ZodOptional<ZodString>;
2650
+ isExisting: ZodBoolean;
2651
+ } & {
2652
+ algorithm: ZodEnum<["undefined", "merge", "temptable"]>;
2653
+ sqlSecurity: ZodEnum<["definer", "invoker"]>;
2654
+ withCheckOption: ZodOptional<ZodEnum<["local", "cascaded"]>>;
2655
+ }, "strict", ZodTypeAny, {
2656
+ name: string;
2657
+ columns: Record<string, {
2658
+ type: string;
2659
+ name: string;
2660
+ primaryKey: boolean;
2661
+ notNull: boolean;
2662
+ default?: any;
2663
+ generated?: {
2664
+ type: "stored" | "virtual";
2665
+ as: string;
2666
+ } | undefined;
2667
+ onUpdate?: any;
2668
+ autoincrement?: boolean | undefined;
2669
+ }>;
2670
+ isExisting: boolean;
2671
+ algorithm: "undefined" | "merge" | "temptable";
2672
+ sqlSecurity: "definer" | "invoker";
2673
+ definition?: string | undefined;
2674
+ withCheckOption?: "local" | "cascaded" | undefined;
2675
+ }, {
2676
+ name: string;
2677
+ columns: Record<string, {
2678
+ type: string;
2679
+ name: string;
2680
+ primaryKey: boolean;
2681
+ notNull: boolean;
2682
+ default?: any;
2683
+ generated?: {
2684
+ type: "stored" | "virtual";
2685
+ as: string;
2686
+ } | undefined;
2687
+ onUpdate?: any;
2688
+ autoincrement?: boolean | undefined;
2689
+ }>;
2690
+ isExisting: boolean;
2691
+ algorithm: "undefined" | "merge" | "temptable";
2692
+ sqlSecurity: "definer" | "invoker";
2693
+ definition?: string | undefined;
2694
+ withCheckOption?: "local" | "cascaded" | undefined;
2695
+ }>>>;
2696
+ _meta: ZodObject<{
2697
+ tables: ZodRecord<ZodString, ZodString>;
2698
+ columns: ZodRecord<ZodString, ZodString>;
2699
+ }, "strip", ZodTypeAny, {
2700
+ tables: Record<string, string>;
2701
+ columns: Record<string, string>;
2702
+ }, {
2703
+ tables: Record<string, string>;
2704
+ columns: Record<string, string>;
2705
+ }>;
2706
+ internal: ZodOptional<ZodObject<{
2707
+ tables: ZodOptional<ZodRecord<ZodString, ZodOptional<ZodObject<{
2708
+ columns: ZodRecord<ZodString, ZodOptional<ZodObject<{
2709
+ isDefaultAnExpression: ZodOptional<ZodBoolean>;
2710
+ }, "strip", ZodTypeAny, {
2711
+ isDefaultAnExpression?: boolean | undefined;
2712
+ }, {
2713
+ isDefaultAnExpression?: boolean | undefined;
2714
+ }>>>;
2715
+ }, "strip", ZodTypeAny, {
2716
+ columns: Record<string, {
2717
+ isDefaultAnExpression?: boolean | undefined;
2718
+ } | undefined>;
2719
+ }, {
2720
+ columns: Record<string, {
2721
+ isDefaultAnExpression?: boolean | undefined;
2722
+ } | undefined>;
2723
+ }>>>>;
2724
+ indexes: ZodOptional<ZodRecord<ZodString, ZodOptional<ZodObject<{
2725
+ columns: ZodRecord<ZodString, ZodOptional<ZodObject<{
2726
+ isExpression: ZodOptional<ZodBoolean>;
2727
+ }, "strip", ZodTypeAny, {
2728
+ isExpression?: boolean | undefined;
2729
+ }, {
2730
+ isExpression?: boolean | undefined;
2731
+ }>>>;
2732
+ }, "strip", ZodTypeAny, {
2733
+ columns: Record<string, {
2734
+ isExpression?: boolean | undefined;
2735
+ } | undefined>;
2736
+ }, {
2737
+ columns: Record<string, {
2738
+ isExpression?: boolean | undefined;
2739
+ } | undefined>;
2740
+ }>>>>;
2741
+ }, "strip", ZodTypeAny, {
2742
+ tables?: Record<string, {
2743
+ columns: Record<string, {
2744
+ isDefaultAnExpression?: boolean | undefined;
2745
+ } | undefined>;
2746
+ } | undefined> | undefined;
2747
+ indexes?: Record<string, {
2748
+ columns: Record<string, {
2749
+ isExpression?: boolean | undefined;
2750
+ } | undefined>;
2751
+ } | undefined> | undefined;
2752
+ }, {
2753
+ tables?: Record<string, {
2754
+ columns: Record<string, {
2755
+ isDefaultAnExpression?: boolean | undefined;
2756
+ } | undefined>;
2757
+ } | undefined> | undefined;
2758
+ indexes?: Record<string, {
2759
+ columns: Record<string, {
2760
+ isExpression?: boolean | undefined;
2761
+ } | undefined>;
2762
+ } | undefined> | undefined;
2763
+ }>>;
2764
+ } & {
2765
+ id: ZodString;
2766
+ prevId: ZodString;
2767
+ }, "strip", ZodTypeAny, {
2768
+ version: "5";
2769
+ dialect: "mysql";
2770
+ tables: Record<string, {
2771
+ name: string;
2772
+ columns: Record<string, {
2773
+ type: string;
2774
+ name: string;
2775
+ primaryKey: boolean;
2776
+ notNull: boolean;
2777
+ default?: any;
2778
+ generated?: {
2779
+ type: "stored" | "virtual";
2780
+ as: string;
2781
+ } | undefined;
2782
+ onUpdate?: any;
2783
+ autoincrement?: boolean | undefined;
2784
+ }>;
2785
+ indexes: Record<string, {
2786
+ name: string;
2787
+ columns: string[];
2788
+ isUnique: boolean;
2789
+ using?: "btree" | "hash" | undefined;
2790
+ algorithm?: "default" | "inplace" | "copy" | undefined;
2791
+ lock?: "default" | "none" | "shared" | "exclusive" | undefined;
2792
+ }>;
2793
+ foreignKeys: Record<string, {
2794
+ name: string;
2795
+ tableFrom: string;
2796
+ columnsFrom: string[];
2797
+ tableTo: string;
2798
+ columnsTo: string[];
2799
+ onUpdate?: string | undefined;
2800
+ onDelete?: string | undefined;
2801
+ }>;
2802
+ compositePrimaryKeys: Record<string, {
2803
+ name: string;
2804
+ columns: string[];
2805
+ }>;
2806
+ uniqueConstraints: Record<string, {
2807
+ name: string;
2808
+ columns: string[];
2809
+ }>;
2810
+ checkConstraint: Record<string, {
2811
+ value: string;
2812
+ name: string;
2813
+ }>;
2814
+ }>;
2815
+ views: Record<string, {
2816
+ name: string;
2817
+ columns: Record<string, {
2818
+ type: string;
2819
+ name: string;
2820
+ primaryKey: boolean;
2821
+ notNull: boolean;
2822
+ default?: any;
2823
+ generated?: {
2824
+ type: "stored" | "virtual";
2825
+ as: string;
2826
+ } | undefined;
2827
+ onUpdate?: any;
2828
+ autoincrement?: boolean | undefined;
2829
+ }>;
2830
+ isExisting: boolean;
2831
+ algorithm: "undefined" | "merge" | "temptable";
2832
+ sqlSecurity: "definer" | "invoker";
2833
+ definition?: string | undefined;
2834
+ withCheckOption?: "local" | "cascaded" | undefined;
2835
+ }>;
2836
+ _meta: {
2837
+ tables: Record<string, string>;
2838
+ columns: Record<string, string>;
2839
+ };
2840
+ id: string;
2841
+ prevId: string;
2842
+ internal?: {
2843
+ tables?: Record<string, {
2844
+ columns: Record<string, {
2845
+ isDefaultAnExpression?: boolean | undefined;
2846
+ } | undefined>;
2847
+ } | undefined> | undefined;
2848
+ indexes?: Record<string, {
2849
+ columns: Record<string, {
2850
+ isExpression?: boolean | undefined;
2851
+ } | undefined>;
2852
+ } | undefined> | undefined;
2853
+ } | undefined;
2854
+ }, {
2855
+ version: "5";
2856
+ dialect: "mysql";
2857
+ tables: Record<string, {
2858
+ name: string;
2859
+ columns: Record<string, {
2860
+ type: string;
2861
+ name: string;
2862
+ primaryKey: boolean;
2863
+ notNull: boolean;
2864
+ default?: any;
2865
+ generated?: {
2866
+ type: "stored" | "virtual";
2867
+ as: string;
2868
+ } | undefined;
2869
+ onUpdate?: any;
2870
+ autoincrement?: boolean | undefined;
2871
+ }>;
2872
+ indexes: Record<string, {
2873
+ name: string;
2874
+ columns: string[];
2875
+ isUnique: boolean;
2876
+ using?: "btree" | "hash" | undefined;
2877
+ algorithm?: "default" | "inplace" | "copy" | undefined;
2878
+ lock?: "default" | "none" | "shared" | "exclusive" | undefined;
2879
+ }>;
2880
+ foreignKeys: Record<string, {
2881
+ name: string;
2882
+ tableFrom: string;
2883
+ columnsFrom: string[];
2884
+ tableTo: string;
2885
+ columnsTo: string[];
2886
+ onUpdate?: string | undefined;
2887
+ onDelete?: string | undefined;
2888
+ }>;
2889
+ compositePrimaryKeys: Record<string, {
2890
+ name: string;
2891
+ columns: string[];
2892
+ }>;
2893
+ uniqueConstraints?: Record<string, {
2894
+ name: string;
2895
+ columns: string[];
2896
+ }> | undefined;
2897
+ checkConstraint?: Record<string, {
2898
+ value: string;
2899
+ name: string;
2900
+ }> | undefined;
2901
+ }>;
2902
+ _meta: {
2903
+ tables: Record<string, string>;
2904
+ columns: Record<string, string>;
2905
+ };
2906
+ id: string;
2907
+ prevId: string;
2908
+ views?: Record<string, {
2909
+ name: string;
2910
+ columns: Record<string, {
2911
+ type: string;
2912
+ name: string;
2913
+ primaryKey: boolean;
2914
+ notNull: boolean;
2915
+ default?: any;
2916
+ generated?: {
2917
+ type: "stored" | "virtual";
2918
+ as: string;
2919
+ } | undefined;
2920
+ onUpdate?: any;
2921
+ autoincrement?: boolean | undefined;
2922
+ }>;
2923
+ isExisting: boolean;
2924
+ algorithm: "undefined" | "merge" | "temptable";
2925
+ sqlSecurity: "definer" | "invoker";
2926
+ definition?: string | undefined;
2927
+ withCheckOption?: "local" | "cascaded" | undefined;
2928
+ }> | undefined;
2929
+ internal?: {
2930
+ tables?: Record<string, {
2931
+ columns: Record<string, {
2932
+ isDefaultAnExpression?: boolean | undefined;
2933
+ } | undefined>;
2934
+ } | undefined> | undefined;
2935
+ indexes?: Record<string, {
2936
+ columns: Record<string, {
2937
+ isExpression?: boolean | undefined;
2938
+ } | undefined>;
2939
+ } | undefined> | undefined;
2940
+ } | undefined;
2941
+ }>;
2942
+ type MySqlSchema = TypeOf<typeof schema$2>;
2943
+ declare const pgSchema: ZodObject<{
2944
+ version: ZodLiteral<"7">;
2945
+ dialect: ZodLiteral<"postgresql">;
2946
+ tables: ZodRecord<ZodString, ZodObject<{
2947
+ name: ZodString;
2948
+ schema: ZodString;
2949
+ columns: ZodRecord<ZodString, ZodObject<{
2950
+ name: ZodString;
2951
+ type: ZodString;
2952
+ typeSchema: ZodOptional<ZodString>;
2953
+ primaryKey: ZodBoolean;
2954
+ notNull: ZodBoolean;
2955
+ default: ZodOptional<ZodAny>;
2956
+ isUnique: ZodOptional<ZodAny>;
2957
+ uniqueName: ZodOptional<ZodString>;
2958
+ nullsNotDistinct: ZodOptional<ZodBoolean>;
2959
+ generated: ZodOptional<ZodObject<{
2960
+ type: ZodLiteral<"stored">;
2961
+ as: ZodString;
2962
+ }, "strip", ZodTypeAny, {
2963
+ type: "stored";
2964
+ as: string;
2965
+ }, {
2966
+ type: "stored";
2967
+ as: string;
2968
+ }>>;
2969
+ identity: ZodOptional<ZodObject<{
2970
+ name: ZodString;
2971
+ increment: ZodOptional<ZodString>;
2972
+ minValue: ZodOptional<ZodString>;
2973
+ maxValue: ZodOptional<ZodString>;
2974
+ startWith: ZodOptional<ZodString>;
2975
+ cache: ZodOptional<ZodString>;
2976
+ cycle: ZodOptional<ZodBoolean>;
2977
+ schema: ZodString;
2978
+ } & {
2979
+ type: ZodEnum<["always", "byDefault"]>;
2980
+ }, "strip", ZodTypeAny, {
2981
+ type: "always" | "byDefault";
2982
+ name: string;
2983
+ schema: string;
2984
+ increment?: string | undefined;
2985
+ minValue?: string | undefined;
2986
+ maxValue?: string | undefined;
2987
+ startWith?: string | undefined;
2988
+ cache?: string | undefined;
2989
+ cycle?: boolean | undefined;
2990
+ }, {
2991
+ type: "always" | "byDefault";
2992
+ name: string;
2993
+ schema: string;
2994
+ increment?: string | undefined;
2995
+ minValue?: string | undefined;
2996
+ maxValue?: string | undefined;
2997
+ startWith?: string | undefined;
2998
+ cache?: string | undefined;
2999
+ cycle?: boolean | undefined;
3000
+ }>>;
3001
+ }, "strict", ZodTypeAny, {
3002
+ type: string;
3003
+ name: string;
3004
+ primaryKey: boolean;
3005
+ notNull: boolean;
3006
+ typeSchema?: string | undefined;
3007
+ default?: any;
3008
+ isUnique?: any;
3009
+ uniqueName?: string | undefined;
3010
+ nullsNotDistinct?: boolean | undefined;
3011
+ generated?: {
3012
+ type: "stored";
3013
+ as: string;
3014
+ } | undefined;
3015
+ identity?: {
3016
+ type: "always" | "byDefault";
3017
+ name: string;
3018
+ schema: string;
3019
+ increment?: string | undefined;
3020
+ minValue?: string | undefined;
3021
+ maxValue?: string | undefined;
3022
+ startWith?: string | undefined;
3023
+ cache?: string | undefined;
3024
+ cycle?: boolean | undefined;
3025
+ } | undefined;
3026
+ }, {
3027
+ type: string;
3028
+ name: string;
3029
+ primaryKey: boolean;
3030
+ notNull: boolean;
3031
+ typeSchema?: string | undefined;
3032
+ default?: any;
3033
+ isUnique?: any;
3034
+ uniqueName?: string | undefined;
3035
+ nullsNotDistinct?: boolean | undefined;
3036
+ generated?: {
3037
+ type: "stored";
3038
+ as: string;
3039
+ } | undefined;
3040
+ identity?: {
3041
+ type: "always" | "byDefault";
3042
+ name: string;
3043
+ schema: string;
3044
+ increment?: string | undefined;
3045
+ minValue?: string | undefined;
3046
+ maxValue?: string | undefined;
3047
+ startWith?: string | undefined;
3048
+ cache?: string | undefined;
3049
+ cycle?: boolean | undefined;
3050
+ } | undefined;
3051
+ }>>;
3052
+ indexes: ZodRecord<ZodString, ZodObject<{
3053
+ name: ZodString;
3054
+ columns: ZodArray<ZodObject<{
3055
+ expression: ZodString;
3056
+ isExpression: ZodBoolean;
3057
+ asc: ZodBoolean;
3058
+ nulls: ZodOptional<ZodString>;
3059
+ opclass: ZodOptional<ZodString>;
3060
+ }, "strip", ZodTypeAny, {
3061
+ expression: string;
3062
+ isExpression: boolean;
3063
+ asc: boolean;
3064
+ nulls?: string | undefined;
3065
+ opclass?: string | undefined;
3066
+ }, {
3067
+ expression: string;
3068
+ isExpression: boolean;
3069
+ asc: boolean;
3070
+ nulls?: string | undefined;
3071
+ opclass?: string | undefined;
3072
+ }>, "many">;
3073
+ isUnique: ZodBoolean;
3074
+ with: ZodOptional<ZodRecord<ZodString, ZodAny>>;
3075
+ method: ZodDefault<ZodString>;
3076
+ where: ZodOptional<ZodString>;
3077
+ concurrently: ZodDefault<ZodBoolean>;
3078
+ }, "strict", ZodTypeAny, {
3079
+ name: string;
3080
+ columns: {
3081
+ expression: string;
3082
+ isExpression: boolean;
3083
+ asc: boolean;
3084
+ nulls?: string | undefined;
3085
+ opclass?: string | undefined;
3086
+ }[];
3087
+ isUnique: boolean;
3088
+ method: string;
3089
+ concurrently: boolean;
3090
+ with?: Record<string, any> | undefined;
3091
+ where?: string | undefined;
3092
+ }, {
3093
+ name: string;
3094
+ columns: {
3095
+ expression: string;
3096
+ isExpression: boolean;
3097
+ asc: boolean;
3098
+ nulls?: string | undefined;
3099
+ opclass?: string | undefined;
3100
+ }[];
3101
+ isUnique: boolean;
3102
+ with?: Record<string, any> | undefined;
3103
+ method?: string | undefined;
3104
+ where?: string | undefined;
3105
+ concurrently?: boolean | undefined;
3106
+ }>>;
3107
+ foreignKeys: ZodRecord<ZodString, ZodObject<{
3108
+ name: ZodString;
3109
+ tableFrom: ZodString;
3110
+ columnsFrom: ZodArray<ZodString, "many">;
3111
+ tableTo: ZodString;
3112
+ schemaTo: ZodOptional<ZodString>;
3113
+ columnsTo: ZodArray<ZodString, "many">;
3114
+ onUpdate: ZodOptional<ZodString>;
3115
+ onDelete: ZodOptional<ZodString>;
3116
+ }, "strict", ZodTypeAny, {
3117
+ name: string;
3118
+ tableFrom: string;
3119
+ columnsFrom: string[];
3120
+ tableTo: string;
3121
+ columnsTo: string[];
3122
+ schemaTo?: string | undefined;
3123
+ onUpdate?: string | undefined;
3124
+ onDelete?: string | undefined;
3125
+ }, {
3126
+ name: string;
3127
+ tableFrom: string;
3128
+ columnsFrom: string[];
3129
+ tableTo: string;
3130
+ columnsTo: string[];
3131
+ schemaTo?: string | undefined;
3132
+ onUpdate?: string | undefined;
3133
+ onDelete?: string | undefined;
3134
+ }>>;
3135
+ compositePrimaryKeys: ZodRecord<ZodString, ZodObject<{
3136
+ name: ZodString;
3137
+ columns: ZodArray<ZodString, "many">;
3138
+ }, "strict", ZodTypeAny, {
3139
+ name: string;
3140
+ columns: string[];
3141
+ }, {
3142
+ name: string;
3143
+ columns: string[];
3144
+ }>>;
3145
+ uniqueConstraints: ZodDefault<ZodRecord<ZodString, ZodObject<{
3146
+ name: ZodString;
3147
+ columns: ZodArray<ZodString, "many">;
3148
+ nullsNotDistinct: ZodBoolean;
3149
+ }, "strict", ZodTypeAny, {
3150
+ name: string;
3151
+ columns: string[];
3152
+ nullsNotDistinct: boolean;
3153
+ }, {
3154
+ name: string;
3155
+ columns: string[];
3156
+ nullsNotDistinct: boolean;
3157
+ }>>>;
3158
+ policies: ZodDefault<ZodRecord<ZodString, ZodObject<{
3159
+ name: ZodString;
3160
+ as: ZodOptional<ZodEnum<["PERMISSIVE", "RESTRICTIVE"]>>;
3161
+ for: ZodOptional<ZodEnum<["ALL", "SELECT", "INSERT", "UPDATE", "DELETE"]>>;
3162
+ to: ZodOptional<ZodArray<ZodString, "many">>;
3163
+ using: ZodOptional<ZodString>;
3164
+ withCheck: ZodOptional<ZodString>;
3165
+ on: ZodOptional<ZodString>;
3166
+ schema: ZodOptional<ZodString>;
3167
+ }, "strict", ZodTypeAny, {
3168
+ name: string;
3169
+ schema?: string | undefined;
3170
+ as?: "PERMISSIVE" | "RESTRICTIVE" | undefined;
3171
+ for?: "ALL" | "SELECT" | "INSERT" | "UPDATE" | "DELETE" | undefined;
3172
+ to?: string[] | undefined;
3173
+ using?: string | undefined;
3174
+ withCheck?: string | undefined;
3175
+ on?: string | undefined;
3176
+ }, {
3177
+ name: string;
3178
+ schema?: string | undefined;
3179
+ as?: "PERMISSIVE" | "RESTRICTIVE" | undefined;
3180
+ for?: "ALL" | "SELECT" | "INSERT" | "UPDATE" | "DELETE" | undefined;
3181
+ to?: string[] | undefined;
3182
+ using?: string | undefined;
3183
+ withCheck?: string | undefined;
3184
+ on?: string | undefined;
3185
+ }>>>;
3186
+ checkConstraints: ZodDefault<ZodRecord<ZodString, ZodObject<{
3187
+ name: ZodString;
3188
+ value: ZodString;
3189
+ }, "strict", ZodTypeAny, {
3190
+ value: string;
3191
+ name: string;
3192
+ }, {
3193
+ value: string;
3194
+ name: string;
3195
+ }>>>;
3196
+ isRLSEnabled: ZodDefault<ZodBoolean>;
3197
+ }, "strict", ZodTypeAny, {
3198
+ name: string;
3199
+ schema: string;
3200
+ columns: Record<string, {
3201
+ type: string;
3202
+ name: string;
3203
+ primaryKey: boolean;
3204
+ notNull: boolean;
3205
+ typeSchema?: string | undefined;
3206
+ default?: any;
3207
+ isUnique?: any;
3208
+ uniqueName?: string | undefined;
3209
+ nullsNotDistinct?: boolean | undefined;
3210
+ generated?: {
3211
+ type: "stored";
3212
+ as: string;
3213
+ } | undefined;
3214
+ identity?: {
3215
+ type: "always" | "byDefault";
3216
+ name: string;
3217
+ schema: string;
3218
+ increment?: string | undefined;
3219
+ minValue?: string | undefined;
3220
+ maxValue?: string | undefined;
3221
+ startWith?: string | undefined;
3222
+ cache?: string | undefined;
3223
+ cycle?: boolean | undefined;
3224
+ } | undefined;
3225
+ }>;
3226
+ indexes: Record<string, {
3227
+ name: string;
3228
+ columns: {
3229
+ expression: string;
3230
+ isExpression: boolean;
3231
+ asc: boolean;
3232
+ nulls?: string | undefined;
3233
+ opclass?: string | undefined;
3234
+ }[];
3235
+ isUnique: boolean;
3236
+ method: string;
3237
+ concurrently: boolean;
3238
+ with?: Record<string, any> | undefined;
3239
+ where?: string | undefined;
3240
+ }>;
3241
+ foreignKeys: Record<string, {
3242
+ name: string;
3243
+ tableFrom: string;
3244
+ columnsFrom: string[];
3245
+ tableTo: string;
3246
+ columnsTo: string[];
3247
+ schemaTo?: string | undefined;
3248
+ onUpdate?: string | undefined;
3249
+ onDelete?: string | undefined;
3250
+ }>;
3251
+ compositePrimaryKeys: Record<string, {
3252
+ name: string;
3253
+ columns: string[];
3254
+ }>;
3255
+ uniqueConstraints: Record<string, {
3256
+ name: string;
3257
+ columns: string[];
3258
+ nullsNotDistinct: boolean;
3259
+ }>;
3260
+ policies: Record<string, {
3261
+ name: string;
3262
+ schema?: string | undefined;
3263
+ as?: "PERMISSIVE" | "RESTRICTIVE" | undefined;
3264
+ for?: "ALL" | "SELECT" | "INSERT" | "UPDATE" | "DELETE" | undefined;
3265
+ to?: string[] | undefined;
3266
+ using?: string | undefined;
3267
+ withCheck?: string | undefined;
3268
+ on?: string | undefined;
3269
+ }>;
3270
+ checkConstraints: Record<string, {
3271
+ value: string;
3272
+ name: string;
3273
+ }>;
3274
+ isRLSEnabled: boolean;
3275
+ }, {
3276
+ name: string;
3277
+ schema: string;
3278
+ columns: Record<string, {
3279
+ type: string;
3280
+ name: string;
3281
+ primaryKey: boolean;
3282
+ notNull: boolean;
3283
+ typeSchema?: string | undefined;
3284
+ default?: any;
3285
+ isUnique?: any;
3286
+ uniqueName?: string | undefined;
3287
+ nullsNotDistinct?: boolean | undefined;
3288
+ generated?: {
3289
+ type: "stored";
3290
+ as: string;
3291
+ } | undefined;
3292
+ identity?: {
3293
+ type: "always" | "byDefault";
3294
+ name: string;
3295
+ schema: string;
3296
+ increment?: string | undefined;
3297
+ minValue?: string | undefined;
3298
+ maxValue?: string | undefined;
3299
+ startWith?: string | undefined;
3300
+ cache?: string | undefined;
3301
+ cycle?: boolean | undefined;
3302
+ } | undefined;
3303
+ }>;
3304
+ indexes: Record<string, {
3305
+ name: string;
3306
+ columns: {
3307
+ expression: string;
3308
+ isExpression: boolean;
3309
+ asc: boolean;
3310
+ nulls?: string | undefined;
3311
+ opclass?: string | undefined;
3312
+ }[];
3313
+ isUnique: boolean;
3314
+ with?: Record<string, any> | undefined;
3315
+ method?: string | undefined;
3316
+ where?: string | undefined;
3317
+ concurrently?: boolean | undefined;
3318
+ }>;
3319
+ foreignKeys: Record<string, {
3320
+ name: string;
3321
+ tableFrom: string;
3322
+ columnsFrom: string[];
3323
+ tableTo: string;
3324
+ columnsTo: string[];
3325
+ schemaTo?: string | undefined;
3326
+ onUpdate?: string | undefined;
3327
+ onDelete?: string | undefined;
3328
+ }>;
3329
+ compositePrimaryKeys: Record<string, {
3330
+ name: string;
3331
+ columns: string[];
3332
+ }>;
3333
+ uniqueConstraints?: Record<string, {
3334
+ name: string;
3335
+ columns: string[];
3336
+ nullsNotDistinct: boolean;
3337
+ }> | undefined;
3338
+ policies?: Record<string, {
3339
+ name: string;
3340
+ schema?: string | undefined;
3341
+ as?: "PERMISSIVE" | "RESTRICTIVE" | undefined;
3342
+ for?: "ALL" | "SELECT" | "INSERT" | "UPDATE" | "DELETE" | undefined;
3343
+ to?: string[] | undefined;
3344
+ using?: string | undefined;
3345
+ withCheck?: string | undefined;
3346
+ on?: string | undefined;
3347
+ }> | undefined;
3348
+ checkConstraints?: Record<string, {
3349
+ value: string;
3350
+ name: string;
3351
+ }> | undefined;
3352
+ isRLSEnabled?: boolean | undefined;
3353
+ }>>;
3354
+ enums: ZodRecord<ZodString, ZodObject<{
3355
+ name: ZodString;
3356
+ schema: ZodString;
3357
+ values: ZodArray<ZodString, "many">;
3358
+ }, "strict", ZodTypeAny, {
3359
+ values: string[];
3360
+ name: string;
3361
+ schema: string;
3362
+ }, {
3363
+ values: string[];
3364
+ name: string;
3365
+ schema: string;
3366
+ }>>;
3367
+ schemas: ZodRecord<ZodString, ZodString>;
3368
+ views: ZodDefault<ZodRecord<ZodString, ZodObject<{
3369
+ name: ZodString;
3370
+ schema: ZodString;
3371
+ columns: ZodRecord<ZodString, ZodObject<{
3372
+ name: ZodString;
3373
+ type: ZodString;
3374
+ typeSchema: ZodOptional<ZodString>;
3375
+ primaryKey: ZodBoolean;
3376
+ notNull: ZodBoolean;
3377
+ default: ZodOptional<ZodAny>;
3378
+ isUnique: ZodOptional<ZodAny>;
3379
+ uniqueName: ZodOptional<ZodString>;
3380
+ nullsNotDistinct: ZodOptional<ZodBoolean>;
3381
+ generated: ZodOptional<ZodObject<{
3382
+ type: ZodLiteral<"stored">;
3383
+ as: ZodString;
3384
+ }, "strip", ZodTypeAny, {
3385
+ type: "stored";
3386
+ as: string;
3387
+ }, {
3388
+ type: "stored";
3389
+ as: string;
3390
+ }>>;
3391
+ identity: ZodOptional<ZodObject<{
3392
+ name: ZodString;
3393
+ increment: ZodOptional<ZodString>;
3394
+ minValue: ZodOptional<ZodString>;
3395
+ maxValue: ZodOptional<ZodString>;
3396
+ startWith: ZodOptional<ZodString>;
3397
+ cache: ZodOptional<ZodString>;
3398
+ cycle: ZodOptional<ZodBoolean>;
3399
+ schema: ZodString;
3400
+ } & {
3401
+ type: ZodEnum<["always", "byDefault"]>;
3402
+ }, "strip", ZodTypeAny, {
3403
+ type: "always" | "byDefault";
3404
+ name: string;
3405
+ schema: string;
3406
+ increment?: string | undefined;
3407
+ minValue?: string | undefined;
3408
+ maxValue?: string | undefined;
3409
+ startWith?: string | undefined;
3410
+ cache?: string | undefined;
3411
+ cycle?: boolean | undefined;
3412
+ }, {
3413
+ type: "always" | "byDefault";
3414
+ name: string;
3415
+ schema: string;
3416
+ increment?: string | undefined;
3417
+ minValue?: string | undefined;
3418
+ maxValue?: string | undefined;
3419
+ startWith?: string | undefined;
3420
+ cache?: string | undefined;
3421
+ cycle?: boolean | undefined;
3422
+ }>>;
3423
+ }, "strict", ZodTypeAny, {
3424
+ type: string;
3425
+ name: string;
3426
+ primaryKey: boolean;
3427
+ notNull: boolean;
3428
+ typeSchema?: string | undefined;
3429
+ default?: any;
3430
+ isUnique?: any;
3431
+ uniqueName?: string | undefined;
3432
+ nullsNotDistinct?: boolean | undefined;
3433
+ generated?: {
3434
+ type: "stored";
3435
+ as: string;
3436
+ } | undefined;
3437
+ identity?: {
3438
+ type: "always" | "byDefault";
3439
+ name: string;
3440
+ schema: string;
3441
+ increment?: string | undefined;
3442
+ minValue?: string | undefined;
3443
+ maxValue?: string | undefined;
3444
+ startWith?: string | undefined;
3445
+ cache?: string | undefined;
3446
+ cycle?: boolean | undefined;
3447
+ } | undefined;
3448
+ }, {
3449
+ type: string;
3450
+ name: string;
3451
+ primaryKey: boolean;
3452
+ notNull: boolean;
3453
+ typeSchema?: string | undefined;
3454
+ default?: any;
3455
+ isUnique?: any;
3456
+ uniqueName?: string | undefined;
3457
+ nullsNotDistinct?: boolean | undefined;
3458
+ generated?: {
3459
+ type: "stored";
3460
+ as: string;
3461
+ } | undefined;
3462
+ identity?: {
3463
+ type: "always" | "byDefault";
3464
+ name: string;
3465
+ schema: string;
3466
+ increment?: string | undefined;
3467
+ minValue?: string | undefined;
3468
+ maxValue?: string | undefined;
3469
+ startWith?: string | undefined;
3470
+ cache?: string | undefined;
3471
+ cycle?: boolean | undefined;
3472
+ } | undefined;
3473
+ }>>;
3474
+ definition: ZodOptional<ZodString>;
3475
+ materialized: ZodBoolean;
3476
+ with: ZodOptional<ZodObject<{
3477
+ checkOption: ZodOptional<ZodEnum<["local", "cascaded"]>>;
3478
+ securityBarrier: ZodOptional<ZodBoolean>;
3479
+ securityInvoker: ZodOptional<ZodBoolean>;
3480
+ } & {
3481
+ fillfactor: ZodOptional<ZodNumber>;
3482
+ toastTupleTarget: ZodOptional<ZodNumber>;
3483
+ parallelWorkers: ZodOptional<ZodNumber>;
3484
+ autovacuumEnabled: ZodOptional<ZodBoolean>;
3485
+ vacuumIndexCleanup: ZodOptional<ZodEnum<["auto", "off", "on"]>>;
3486
+ vacuumTruncate: ZodOptional<ZodBoolean>;
3487
+ autovacuumVacuumThreshold: ZodOptional<ZodNumber>;
3488
+ autovacuumVacuumScaleFactor: ZodOptional<ZodNumber>;
3489
+ autovacuumVacuumCostDelay: ZodOptional<ZodNumber>;
3490
+ autovacuumVacuumCostLimit: ZodOptional<ZodNumber>;
3491
+ autovacuumFreezeMinAge: ZodOptional<ZodNumber>;
3492
+ autovacuumFreezeMaxAge: ZodOptional<ZodNumber>;
3493
+ autovacuumFreezeTableAge: ZodOptional<ZodNumber>;
3494
+ autovacuumMultixactFreezeMinAge: ZodOptional<ZodNumber>;
3495
+ autovacuumMultixactFreezeMaxAge: ZodOptional<ZodNumber>;
3496
+ autovacuumMultixactFreezeTableAge: ZodOptional<ZodNumber>;
3497
+ logAutovacuumMinDuration: ZodOptional<ZodNumber>;
3498
+ userCatalogTable: ZodOptional<ZodBoolean>;
3499
+ }, "strict", ZodTypeAny, {
3500
+ checkOption?: "local" | "cascaded" | undefined;
3501
+ securityBarrier?: boolean | undefined;
3502
+ securityInvoker?: boolean | undefined;
3503
+ fillfactor?: number | undefined;
3504
+ toastTupleTarget?: number | undefined;
3505
+ parallelWorkers?: number | undefined;
3506
+ autovacuumEnabled?: boolean | undefined;
3507
+ vacuumIndexCleanup?: "on" | "auto" | "off" | undefined;
3508
+ vacuumTruncate?: boolean | undefined;
3509
+ autovacuumVacuumThreshold?: number | undefined;
3510
+ autovacuumVacuumScaleFactor?: number | undefined;
3511
+ autovacuumVacuumCostDelay?: number | undefined;
3512
+ autovacuumVacuumCostLimit?: number | undefined;
3513
+ autovacuumFreezeMinAge?: number | undefined;
3514
+ autovacuumFreezeMaxAge?: number | undefined;
3515
+ autovacuumFreezeTableAge?: number | undefined;
3516
+ autovacuumMultixactFreezeMinAge?: number | undefined;
3517
+ autovacuumMultixactFreezeMaxAge?: number | undefined;
3518
+ autovacuumMultixactFreezeTableAge?: number | undefined;
3519
+ logAutovacuumMinDuration?: number | undefined;
3520
+ userCatalogTable?: boolean | undefined;
3521
+ }, {
3522
+ checkOption?: "local" | "cascaded" | undefined;
3523
+ securityBarrier?: boolean | undefined;
3524
+ securityInvoker?: boolean | undefined;
3525
+ fillfactor?: number | undefined;
3526
+ toastTupleTarget?: number | undefined;
3527
+ parallelWorkers?: number | undefined;
3528
+ autovacuumEnabled?: boolean | undefined;
3529
+ vacuumIndexCleanup?: "on" | "auto" | "off" | undefined;
3530
+ vacuumTruncate?: boolean | undefined;
3531
+ autovacuumVacuumThreshold?: number | undefined;
3532
+ autovacuumVacuumScaleFactor?: number | undefined;
3533
+ autovacuumVacuumCostDelay?: number | undefined;
3534
+ autovacuumVacuumCostLimit?: number | undefined;
3535
+ autovacuumFreezeMinAge?: number | undefined;
3536
+ autovacuumFreezeMaxAge?: number | undefined;
3537
+ autovacuumFreezeTableAge?: number | undefined;
3538
+ autovacuumMultixactFreezeMinAge?: number | undefined;
3539
+ autovacuumMultixactFreezeMaxAge?: number | undefined;
3540
+ autovacuumMultixactFreezeTableAge?: number | undefined;
3541
+ logAutovacuumMinDuration?: number | undefined;
3542
+ userCatalogTable?: boolean | undefined;
3543
+ }>>;
3544
+ isExisting: ZodBoolean;
3545
+ withNoData: ZodOptional<ZodBoolean>;
3546
+ using: ZodOptional<ZodString>;
3547
+ tablespace: ZodOptional<ZodString>;
3548
+ }, "strict", ZodTypeAny, {
3549
+ name: string;
3550
+ schema: string;
3551
+ columns: Record<string, {
3552
+ type: string;
3553
+ name: string;
3554
+ primaryKey: boolean;
3555
+ notNull: boolean;
3556
+ typeSchema?: string | undefined;
3557
+ default?: any;
3558
+ isUnique?: any;
3559
+ uniqueName?: string | undefined;
3560
+ nullsNotDistinct?: boolean | undefined;
3561
+ generated?: {
3562
+ type: "stored";
3563
+ as: string;
3564
+ } | undefined;
3565
+ identity?: {
3566
+ type: "always" | "byDefault";
3567
+ name: string;
3568
+ schema: string;
3569
+ increment?: string | undefined;
3570
+ minValue?: string | undefined;
3571
+ maxValue?: string | undefined;
3572
+ startWith?: string | undefined;
3573
+ cache?: string | undefined;
3574
+ cycle?: boolean | undefined;
3575
+ } | undefined;
3576
+ }>;
3577
+ materialized: boolean;
3578
+ isExisting: boolean;
3579
+ with?: {
3580
+ checkOption?: "local" | "cascaded" | undefined;
3581
+ securityBarrier?: boolean | undefined;
3582
+ securityInvoker?: boolean | undefined;
3583
+ fillfactor?: number | undefined;
3584
+ toastTupleTarget?: number | undefined;
3585
+ parallelWorkers?: number | undefined;
3586
+ autovacuumEnabled?: boolean | undefined;
3587
+ vacuumIndexCleanup?: "on" | "auto" | "off" | undefined;
3588
+ vacuumTruncate?: boolean | undefined;
3589
+ autovacuumVacuumThreshold?: number | undefined;
3590
+ autovacuumVacuumScaleFactor?: number | undefined;
3591
+ autovacuumVacuumCostDelay?: number | undefined;
3592
+ autovacuumVacuumCostLimit?: number | undefined;
3593
+ autovacuumFreezeMinAge?: number | undefined;
3594
+ autovacuumFreezeMaxAge?: number | undefined;
3595
+ autovacuumFreezeTableAge?: number | undefined;
3596
+ autovacuumMultixactFreezeMinAge?: number | undefined;
3597
+ autovacuumMultixactFreezeMaxAge?: number | undefined;
3598
+ autovacuumMultixactFreezeTableAge?: number | undefined;
3599
+ logAutovacuumMinDuration?: number | undefined;
3600
+ userCatalogTable?: boolean | undefined;
3601
+ } | undefined;
3602
+ using?: string | undefined;
3603
+ definition?: string | undefined;
3604
+ withNoData?: boolean | undefined;
3605
+ tablespace?: string | undefined;
3606
+ }, {
3607
+ name: string;
3608
+ schema: string;
3609
+ columns: Record<string, {
3610
+ type: string;
3611
+ name: string;
3612
+ primaryKey: boolean;
3613
+ notNull: boolean;
3614
+ typeSchema?: string | undefined;
3615
+ default?: any;
3616
+ isUnique?: any;
3617
+ uniqueName?: string | undefined;
3618
+ nullsNotDistinct?: boolean | undefined;
3619
+ generated?: {
3620
+ type: "stored";
3621
+ as: string;
3622
+ } | undefined;
3623
+ identity?: {
3624
+ type: "always" | "byDefault";
3625
+ name: string;
3626
+ schema: string;
3627
+ increment?: string | undefined;
3628
+ minValue?: string | undefined;
3629
+ maxValue?: string | undefined;
3630
+ startWith?: string | undefined;
3631
+ cache?: string | undefined;
3632
+ cycle?: boolean | undefined;
3633
+ } | undefined;
3634
+ }>;
3635
+ materialized: boolean;
3636
+ isExisting: boolean;
3637
+ with?: {
3638
+ checkOption?: "local" | "cascaded" | undefined;
3639
+ securityBarrier?: boolean | undefined;
3640
+ securityInvoker?: boolean | undefined;
3641
+ fillfactor?: number | undefined;
3642
+ toastTupleTarget?: number | undefined;
3643
+ parallelWorkers?: number | undefined;
3644
+ autovacuumEnabled?: boolean | undefined;
3645
+ vacuumIndexCleanup?: "on" | "auto" | "off" | undefined;
3646
+ vacuumTruncate?: boolean | undefined;
3647
+ autovacuumVacuumThreshold?: number | undefined;
3648
+ autovacuumVacuumScaleFactor?: number | undefined;
3649
+ autovacuumVacuumCostDelay?: number | undefined;
3650
+ autovacuumVacuumCostLimit?: number | undefined;
3651
+ autovacuumFreezeMinAge?: number | undefined;
3652
+ autovacuumFreezeMaxAge?: number | undefined;
3653
+ autovacuumFreezeTableAge?: number | undefined;
3654
+ autovacuumMultixactFreezeMinAge?: number | undefined;
3655
+ autovacuumMultixactFreezeMaxAge?: number | undefined;
3656
+ autovacuumMultixactFreezeTableAge?: number | undefined;
3657
+ logAutovacuumMinDuration?: number | undefined;
3658
+ userCatalogTable?: boolean | undefined;
3659
+ } | undefined;
3660
+ using?: string | undefined;
3661
+ definition?: string | undefined;
3662
+ withNoData?: boolean | undefined;
3663
+ tablespace?: string | undefined;
3664
+ }>>>;
3665
+ sequences: ZodDefault<ZodRecord<ZodString, ZodObject<{
3666
+ name: ZodString;
3667
+ increment: ZodOptional<ZodString>;
3668
+ minValue: ZodOptional<ZodString>;
3669
+ maxValue: ZodOptional<ZodString>;
3670
+ startWith: ZodOptional<ZodString>;
3671
+ cache: ZodOptional<ZodString>;
3672
+ cycle: ZodOptional<ZodBoolean>;
3673
+ schema: ZodString;
3674
+ }, "strict", ZodTypeAny, {
3675
+ name: string;
3676
+ schema: string;
3677
+ increment?: string | undefined;
3678
+ minValue?: string | undefined;
3679
+ maxValue?: string | undefined;
3680
+ startWith?: string | undefined;
3681
+ cache?: string | undefined;
3682
+ cycle?: boolean | undefined;
3683
+ }, {
3684
+ name: string;
3685
+ schema: string;
3686
+ increment?: string | undefined;
3687
+ minValue?: string | undefined;
3688
+ maxValue?: string | undefined;
3689
+ startWith?: string | undefined;
3690
+ cache?: string | undefined;
3691
+ cycle?: boolean | undefined;
3692
+ }>>>;
3693
+ roles: ZodDefault<ZodRecord<ZodString, ZodObject<{
3694
+ name: ZodString;
3695
+ createDb: ZodOptional<ZodBoolean>;
3696
+ createRole: ZodOptional<ZodBoolean>;
3697
+ inherit: ZodOptional<ZodBoolean>;
3698
+ }, "strict", ZodTypeAny, {
3699
+ name: string;
3700
+ createDb?: boolean | undefined;
3701
+ createRole?: boolean | undefined;
3702
+ inherit?: boolean | undefined;
3703
+ }, {
3704
+ name: string;
3705
+ createDb?: boolean | undefined;
3706
+ createRole?: boolean | undefined;
3707
+ inherit?: boolean | undefined;
3708
+ }>>>;
3709
+ policies: ZodDefault<ZodRecord<ZodString, ZodObject<{
3710
+ name: ZodString;
3711
+ as: ZodOptional<ZodEnum<["PERMISSIVE", "RESTRICTIVE"]>>;
3712
+ for: ZodOptional<ZodEnum<["ALL", "SELECT", "INSERT", "UPDATE", "DELETE"]>>;
3713
+ to: ZodOptional<ZodArray<ZodString, "many">>;
3714
+ using: ZodOptional<ZodString>;
3715
+ withCheck: ZodOptional<ZodString>;
3716
+ on: ZodOptional<ZodString>;
3717
+ schema: ZodOptional<ZodString>;
3718
+ }, "strict", ZodTypeAny, {
3719
+ name: string;
3720
+ schema?: string | undefined;
3721
+ as?: "PERMISSIVE" | "RESTRICTIVE" | undefined;
3722
+ for?: "ALL" | "SELECT" | "INSERT" | "UPDATE" | "DELETE" | undefined;
3723
+ to?: string[] | undefined;
3724
+ using?: string | undefined;
3725
+ withCheck?: string | undefined;
3726
+ on?: string | undefined;
3727
+ }, {
3728
+ name: string;
3729
+ schema?: string | undefined;
3730
+ as?: "PERMISSIVE" | "RESTRICTIVE" | undefined;
3731
+ for?: "ALL" | "SELECT" | "INSERT" | "UPDATE" | "DELETE" | undefined;
3732
+ to?: string[] | undefined;
3733
+ using?: string | undefined;
3734
+ withCheck?: string | undefined;
3735
+ on?: string | undefined;
3736
+ }>>>;
3737
+ _meta: ZodObject<{
3738
+ schemas: ZodRecord<ZodString, ZodString>;
3739
+ tables: ZodRecord<ZodString, ZodString>;
3740
+ columns: ZodRecord<ZodString, ZodString>;
3741
+ }, "strip", ZodTypeAny, {
3742
+ tables: Record<string, string>;
3743
+ columns: Record<string, string>;
3744
+ schemas: Record<string, string>;
3745
+ }, {
3746
+ tables: Record<string, string>;
3747
+ columns: Record<string, string>;
3748
+ schemas: Record<string, string>;
3749
+ }>;
3750
+ internal: ZodOptional<ZodObject<{
3751
+ tables: ZodRecord<ZodString, ZodOptional<ZodObject<{
3752
+ columns: ZodRecord<ZodString, ZodOptional<ZodObject<{
3753
+ isArray: ZodOptional<ZodBoolean>;
3754
+ dimensions: ZodOptional<ZodNumber>;
3755
+ rawType: ZodOptional<ZodString>;
3756
+ isDefaultAnExpression: ZodOptional<ZodBoolean>;
3757
+ }, "strip", ZodTypeAny, {
3758
+ isArray?: boolean | undefined;
3759
+ dimensions?: number | undefined;
3760
+ rawType?: string | undefined;
3761
+ isDefaultAnExpression?: boolean | undefined;
3762
+ }, {
3763
+ isArray?: boolean | undefined;
3764
+ dimensions?: number | undefined;
3765
+ rawType?: string | undefined;
3766
+ isDefaultAnExpression?: boolean | undefined;
3767
+ }>>>;
3768
+ }, "strip", ZodTypeAny, {
3769
+ columns: Record<string, {
3770
+ isArray?: boolean | undefined;
3771
+ dimensions?: number | undefined;
3772
+ rawType?: string | undefined;
3773
+ isDefaultAnExpression?: boolean | undefined;
3774
+ } | undefined>;
3775
+ }, {
3776
+ columns: Record<string, {
3777
+ isArray?: boolean | undefined;
3778
+ dimensions?: number | undefined;
3779
+ rawType?: string | undefined;
3780
+ isDefaultAnExpression?: boolean | undefined;
3781
+ } | undefined>;
3782
+ }>>>;
3783
+ }, "strip", ZodTypeAny, {
3784
+ tables: Record<string, {
3785
+ columns: Record<string, {
3786
+ isArray?: boolean | undefined;
3787
+ dimensions?: number | undefined;
3788
+ rawType?: string | undefined;
3789
+ isDefaultAnExpression?: boolean | undefined;
3790
+ } | undefined>;
3791
+ } | undefined>;
3792
+ }, {
3793
+ tables: Record<string, {
3794
+ columns: Record<string, {
3795
+ isArray?: boolean | undefined;
3796
+ dimensions?: number | undefined;
3797
+ rawType?: string | undefined;
3798
+ isDefaultAnExpression?: boolean | undefined;
3799
+ } | undefined>;
3800
+ } | undefined>;
3801
+ }>>;
3802
+ } & {
3803
+ id: ZodString;
3804
+ prevId: ZodString;
3805
+ }, "strip", ZodTypeAny, {
3806
+ version: "7";
3807
+ dialect: "postgresql";
3808
+ tables: Record<string, {
3809
+ name: string;
3810
+ schema: string;
3811
+ columns: Record<string, {
3812
+ type: string;
3813
+ name: string;
3814
+ primaryKey: boolean;
3815
+ notNull: boolean;
3816
+ typeSchema?: string | undefined;
3817
+ default?: any;
3818
+ isUnique?: any;
3819
+ uniqueName?: string | undefined;
3820
+ nullsNotDistinct?: boolean | undefined;
3821
+ generated?: {
3822
+ type: "stored";
3823
+ as: string;
3824
+ } | undefined;
3825
+ identity?: {
3826
+ type: "always" | "byDefault";
3827
+ name: string;
3828
+ schema: string;
3829
+ increment?: string | undefined;
3830
+ minValue?: string | undefined;
3831
+ maxValue?: string | undefined;
3832
+ startWith?: string | undefined;
3833
+ cache?: string | undefined;
3834
+ cycle?: boolean | undefined;
3835
+ } | undefined;
3836
+ }>;
3837
+ indexes: Record<string, {
3838
+ name: string;
3839
+ columns: {
3840
+ expression: string;
3841
+ isExpression: boolean;
3842
+ asc: boolean;
3843
+ nulls?: string | undefined;
3844
+ opclass?: string | undefined;
3845
+ }[];
3846
+ isUnique: boolean;
3847
+ method: string;
3848
+ concurrently: boolean;
3849
+ with?: Record<string, any> | undefined;
3850
+ where?: string | undefined;
3851
+ }>;
3852
+ foreignKeys: Record<string, {
3853
+ name: string;
3854
+ tableFrom: string;
3855
+ columnsFrom: string[];
3856
+ tableTo: string;
3857
+ columnsTo: string[];
3858
+ schemaTo?: string | undefined;
3859
+ onUpdate?: string | undefined;
3860
+ onDelete?: string | undefined;
3861
+ }>;
3862
+ compositePrimaryKeys: Record<string, {
3863
+ name: string;
3864
+ columns: string[];
3865
+ }>;
3866
+ uniqueConstraints: Record<string, {
3867
+ name: string;
3868
+ columns: string[];
3869
+ nullsNotDistinct: boolean;
3870
+ }>;
3871
+ policies: Record<string, {
3872
+ name: string;
3873
+ schema?: string | undefined;
3874
+ as?: "PERMISSIVE" | "RESTRICTIVE" | undefined;
3875
+ for?: "ALL" | "SELECT" | "INSERT" | "UPDATE" | "DELETE" | undefined;
3876
+ to?: string[] | undefined;
3877
+ using?: string | undefined;
3878
+ withCheck?: string | undefined;
3879
+ on?: string | undefined;
3880
+ }>;
3881
+ checkConstraints: Record<string, {
3882
+ value: string;
3883
+ name: string;
3884
+ }>;
3885
+ isRLSEnabled: boolean;
3886
+ }>;
3887
+ policies: Record<string, {
3888
+ name: string;
3889
+ schema?: string | undefined;
3890
+ as?: "PERMISSIVE" | "RESTRICTIVE" | undefined;
3891
+ for?: "ALL" | "SELECT" | "INSERT" | "UPDATE" | "DELETE" | undefined;
3892
+ to?: string[] | undefined;
3893
+ using?: string | undefined;
3894
+ withCheck?: string | undefined;
3895
+ on?: string | undefined;
3896
+ }>;
3897
+ enums: Record<string, {
3898
+ values: string[];
3899
+ name: string;
3900
+ schema: string;
3901
+ }>;
3902
+ schemas: Record<string, string>;
3903
+ views: Record<string, {
3904
+ name: string;
3905
+ schema: string;
3906
+ columns: Record<string, {
3907
+ type: string;
3908
+ name: string;
3909
+ primaryKey: boolean;
3910
+ notNull: boolean;
3911
+ typeSchema?: string | undefined;
3912
+ default?: any;
3913
+ isUnique?: any;
3914
+ uniqueName?: string | undefined;
3915
+ nullsNotDistinct?: boolean | undefined;
3916
+ generated?: {
3917
+ type: "stored";
3918
+ as: string;
3919
+ } | undefined;
3920
+ identity?: {
3921
+ type: "always" | "byDefault";
3922
+ name: string;
3923
+ schema: string;
3924
+ increment?: string | undefined;
3925
+ minValue?: string | undefined;
3926
+ maxValue?: string | undefined;
3927
+ startWith?: string | undefined;
3928
+ cache?: string | undefined;
3929
+ cycle?: boolean | undefined;
3930
+ } | undefined;
3931
+ }>;
3932
+ materialized: boolean;
3933
+ isExisting: boolean;
3934
+ with?: {
3935
+ checkOption?: "local" | "cascaded" | undefined;
3936
+ securityBarrier?: boolean | undefined;
3937
+ securityInvoker?: boolean | undefined;
3938
+ fillfactor?: number | undefined;
3939
+ toastTupleTarget?: number | undefined;
3940
+ parallelWorkers?: number | undefined;
3941
+ autovacuumEnabled?: boolean | undefined;
3942
+ vacuumIndexCleanup?: "on" | "auto" | "off" | undefined;
3943
+ vacuumTruncate?: boolean | undefined;
3944
+ autovacuumVacuumThreshold?: number | undefined;
3945
+ autovacuumVacuumScaleFactor?: number | undefined;
3946
+ autovacuumVacuumCostDelay?: number | undefined;
3947
+ autovacuumVacuumCostLimit?: number | undefined;
3948
+ autovacuumFreezeMinAge?: number | undefined;
3949
+ autovacuumFreezeMaxAge?: number | undefined;
3950
+ autovacuumFreezeTableAge?: number | undefined;
3951
+ autovacuumMultixactFreezeMinAge?: number | undefined;
3952
+ autovacuumMultixactFreezeMaxAge?: number | undefined;
3953
+ autovacuumMultixactFreezeTableAge?: number | undefined;
3954
+ logAutovacuumMinDuration?: number | undefined;
3955
+ userCatalogTable?: boolean | undefined;
3956
+ } | undefined;
3957
+ using?: string | undefined;
3958
+ definition?: string | undefined;
3959
+ withNoData?: boolean | undefined;
3960
+ tablespace?: string | undefined;
3961
+ }>;
3962
+ sequences: Record<string, {
3963
+ name: string;
3964
+ schema: string;
3965
+ increment?: string | undefined;
3966
+ minValue?: string | undefined;
3967
+ maxValue?: string | undefined;
3968
+ startWith?: string | undefined;
3969
+ cache?: string | undefined;
3970
+ cycle?: boolean | undefined;
3971
+ }>;
3972
+ roles: Record<string, {
3973
+ name: string;
3974
+ createDb?: boolean | undefined;
3975
+ createRole?: boolean | undefined;
3976
+ inherit?: boolean | undefined;
3977
+ }>;
3978
+ _meta: {
3979
+ tables: Record<string, string>;
3980
+ columns: Record<string, string>;
3981
+ schemas: Record<string, string>;
3982
+ };
3983
+ id: string;
3984
+ prevId: string;
3985
+ internal?: {
3986
+ tables: Record<string, {
3987
+ columns: Record<string, {
3988
+ isArray?: boolean | undefined;
3989
+ dimensions?: number | undefined;
3990
+ rawType?: string | undefined;
3991
+ isDefaultAnExpression?: boolean | undefined;
3992
+ } | undefined>;
3993
+ } | undefined>;
3994
+ } | undefined;
3995
+ }, {
3996
+ version: "7";
3997
+ dialect: "postgresql";
3998
+ tables: Record<string, {
3999
+ name: string;
4000
+ schema: string;
4001
+ columns: Record<string, {
4002
+ type: string;
4003
+ name: string;
4004
+ primaryKey: boolean;
4005
+ notNull: boolean;
4006
+ typeSchema?: string | undefined;
4007
+ default?: any;
4008
+ isUnique?: any;
4009
+ uniqueName?: string | undefined;
4010
+ nullsNotDistinct?: boolean | undefined;
4011
+ generated?: {
4012
+ type: "stored";
4013
+ as: string;
4014
+ } | undefined;
4015
+ identity?: {
4016
+ type: "always" | "byDefault";
4017
+ name: string;
4018
+ schema: string;
4019
+ increment?: string | undefined;
4020
+ minValue?: string | undefined;
4021
+ maxValue?: string | undefined;
4022
+ startWith?: string | undefined;
4023
+ cache?: string | undefined;
4024
+ cycle?: boolean | undefined;
4025
+ } | undefined;
4026
+ }>;
4027
+ indexes: Record<string, {
4028
+ name: string;
4029
+ columns: {
4030
+ expression: string;
4031
+ isExpression: boolean;
4032
+ asc: boolean;
4033
+ nulls?: string | undefined;
4034
+ opclass?: string | undefined;
4035
+ }[];
4036
+ isUnique: boolean;
4037
+ with?: Record<string, any> | undefined;
4038
+ method?: string | undefined;
4039
+ where?: string | undefined;
4040
+ concurrently?: boolean | undefined;
4041
+ }>;
4042
+ foreignKeys: Record<string, {
4043
+ name: string;
4044
+ tableFrom: string;
4045
+ columnsFrom: string[];
4046
+ tableTo: string;
4047
+ columnsTo: string[];
4048
+ schemaTo?: string | undefined;
4049
+ onUpdate?: string | undefined;
4050
+ onDelete?: string | undefined;
4051
+ }>;
4052
+ compositePrimaryKeys: Record<string, {
4053
+ name: string;
4054
+ columns: string[];
4055
+ }>;
4056
+ uniqueConstraints?: Record<string, {
4057
+ name: string;
4058
+ columns: string[];
4059
+ nullsNotDistinct: boolean;
4060
+ }> | undefined;
4061
+ policies?: Record<string, {
4062
+ name: string;
4063
+ schema?: string | undefined;
4064
+ as?: "PERMISSIVE" | "RESTRICTIVE" | undefined;
4065
+ for?: "ALL" | "SELECT" | "INSERT" | "UPDATE" | "DELETE" | undefined;
4066
+ to?: string[] | undefined;
4067
+ using?: string | undefined;
4068
+ withCheck?: string | undefined;
4069
+ on?: string | undefined;
4070
+ }> | undefined;
4071
+ checkConstraints?: Record<string, {
4072
+ value: string;
4073
+ name: string;
4074
+ }> | undefined;
4075
+ isRLSEnabled?: boolean | undefined;
4076
+ }>;
4077
+ enums: Record<string, {
4078
+ values: string[];
4079
+ name: string;
4080
+ schema: string;
4081
+ }>;
4082
+ schemas: Record<string, string>;
4083
+ _meta: {
4084
+ tables: Record<string, string>;
4085
+ columns: Record<string, string>;
4086
+ schemas: Record<string, string>;
4087
+ };
4088
+ id: string;
4089
+ prevId: string;
4090
+ policies?: Record<string, {
4091
+ name: string;
4092
+ schema?: string | undefined;
4093
+ as?: "PERMISSIVE" | "RESTRICTIVE" | undefined;
4094
+ for?: "ALL" | "SELECT" | "INSERT" | "UPDATE" | "DELETE" | undefined;
4095
+ to?: string[] | undefined;
4096
+ using?: string | undefined;
4097
+ withCheck?: string | undefined;
4098
+ on?: string | undefined;
4099
+ }> | undefined;
4100
+ views?: Record<string, {
4101
+ name: string;
4102
+ schema: string;
4103
+ columns: Record<string, {
4104
+ type: string;
4105
+ name: string;
4106
+ primaryKey: boolean;
4107
+ notNull: boolean;
4108
+ typeSchema?: string | undefined;
4109
+ default?: any;
4110
+ isUnique?: any;
4111
+ uniqueName?: string | undefined;
4112
+ nullsNotDistinct?: boolean | undefined;
4113
+ generated?: {
4114
+ type: "stored";
4115
+ as: string;
4116
+ } | undefined;
4117
+ identity?: {
4118
+ type: "always" | "byDefault";
4119
+ name: string;
4120
+ schema: string;
4121
+ increment?: string | undefined;
4122
+ minValue?: string | undefined;
4123
+ maxValue?: string | undefined;
4124
+ startWith?: string | undefined;
4125
+ cache?: string | undefined;
4126
+ cycle?: boolean | undefined;
4127
+ } | undefined;
4128
+ }>;
4129
+ materialized: boolean;
4130
+ isExisting: boolean;
4131
+ with?: {
4132
+ checkOption?: "local" | "cascaded" | undefined;
4133
+ securityBarrier?: boolean | undefined;
4134
+ securityInvoker?: boolean | undefined;
4135
+ fillfactor?: number | undefined;
4136
+ toastTupleTarget?: number | undefined;
4137
+ parallelWorkers?: number | undefined;
4138
+ autovacuumEnabled?: boolean | undefined;
4139
+ vacuumIndexCleanup?: "on" | "auto" | "off" | undefined;
4140
+ vacuumTruncate?: boolean | undefined;
4141
+ autovacuumVacuumThreshold?: number | undefined;
4142
+ autovacuumVacuumScaleFactor?: number | undefined;
4143
+ autovacuumVacuumCostDelay?: number | undefined;
4144
+ autovacuumVacuumCostLimit?: number | undefined;
4145
+ autovacuumFreezeMinAge?: number | undefined;
4146
+ autovacuumFreezeMaxAge?: number | undefined;
4147
+ autovacuumFreezeTableAge?: number | undefined;
4148
+ autovacuumMultixactFreezeMinAge?: number | undefined;
4149
+ autovacuumMultixactFreezeMaxAge?: number | undefined;
4150
+ autovacuumMultixactFreezeTableAge?: number | undefined;
4151
+ logAutovacuumMinDuration?: number | undefined;
4152
+ userCatalogTable?: boolean | undefined;
4153
+ } | undefined;
4154
+ using?: string | undefined;
4155
+ definition?: string | undefined;
4156
+ withNoData?: boolean | undefined;
4157
+ tablespace?: string | undefined;
4158
+ }> | undefined;
4159
+ sequences?: Record<string, {
4160
+ name: string;
4161
+ schema: string;
4162
+ increment?: string | undefined;
4163
+ minValue?: string | undefined;
4164
+ maxValue?: string | undefined;
4165
+ startWith?: string | undefined;
4166
+ cache?: string | undefined;
4167
+ cycle?: boolean | undefined;
4168
+ }> | undefined;
4169
+ roles?: Record<string, {
4170
+ name: string;
4171
+ createDb?: boolean | undefined;
4172
+ createRole?: boolean | undefined;
4173
+ inherit?: boolean | undefined;
4174
+ }> | undefined;
4175
+ internal?: {
4176
+ tables: Record<string, {
4177
+ columns: Record<string, {
4178
+ isArray?: boolean | undefined;
4179
+ dimensions?: number | undefined;
4180
+ rawType?: string | undefined;
4181
+ isDefaultAnExpression?: boolean | undefined;
4182
+ } | undefined>;
4183
+ } | undefined>;
4184
+ } | undefined;
4185
+ }>;
4186
+ type PgSchema = TypeOf<typeof pgSchema>;
4187
+ declare const schema$1: ZodObject<{
4188
+ version: ZodLiteral<"1">;
4189
+ dialect: ZodLiteral<"singlestore">;
4190
+ tables: ZodRecord<ZodString, ZodObject<{
4191
+ name: ZodString;
4192
+ columns: ZodRecord<ZodString, ZodObject<{
4193
+ name: ZodString;
4194
+ type: ZodString;
4195
+ primaryKey: ZodBoolean;
4196
+ notNull: ZodBoolean;
4197
+ autoincrement: ZodOptional<ZodBoolean>;
4198
+ default: ZodOptional<ZodAny>;
4199
+ onUpdate: ZodOptional<ZodAny>;
4200
+ generated: ZodOptional<ZodObject<{
4201
+ type: ZodEnum<["stored", "virtual"]>;
4202
+ as: ZodString;
4203
+ }, "strip", ZodTypeAny, {
4204
+ type: "stored" | "virtual";
4205
+ as: string;
4206
+ }, {
4207
+ type: "stored" | "virtual";
4208
+ as: string;
4209
+ }>>;
4210
+ }, "strict", ZodTypeAny, {
4211
+ type: string;
4212
+ name: string;
4213
+ primaryKey: boolean;
4214
+ notNull: boolean;
4215
+ default?: any;
4216
+ generated?: {
4217
+ type: "stored" | "virtual";
4218
+ as: string;
4219
+ } | undefined;
4220
+ onUpdate?: any;
4221
+ autoincrement?: boolean | undefined;
4222
+ }, {
4223
+ type: string;
4224
+ name: string;
4225
+ primaryKey: boolean;
4226
+ notNull: boolean;
4227
+ default?: any;
4228
+ generated?: {
4229
+ type: "stored" | "virtual";
4230
+ as: string;
4231
+ } | undefined;
4232
+ onUpdate?: any;
4233
+ autoincrement?: boolean | undefined;
4234
+ }>>;
4235
+ indexes: ZodRecord<ZodString, ZodObject<{
4236
+ name: ZodString;
4237
+ columns: ZodArray<ZodString, "many">;
4238
+ isUnique: ZodBoolean;
4239
+ using: ZodOptional<ZodEnum<["btree", "hash"]>>;
4240
+ algorithm: ZodOptional<ZodEnum<["default", "inplace", "copy"]>>;
4241
+ lock: ZodOptional<ZodEnum<["default", "none", "shared", "exclusive"]>>;
4242
+ }, "strict", ZodTypeAny, {
4243
+ name: string;
4244
+ columns: string[];
4245
+ isUnique: boolean;
4246
+ using?: "btree" | "hash" | undefined;
4247
+ algorithm?: "default" | "inplace" | "copy" | undefined;
4248
+ lock?: "default" | "none" | "shared" | "exclusive" | undefined;
4249
+ }, {
4250
+ name: string;
4251
+ columns: string[];
4252
+ isUnique: boolean;
4253
+ using?: "btree" | "hash" | undefined;
4254
+ algorithm?: "default" | "inplace" | "copy" | undefined;
4255
+ lock?: "default" | "none" | "shared" | "exclusive" | undefined;
4256
+ }>>;
4257
+ compositePrimaryKeys: ZodRecord<ZodString, ZodObject<{
4258
+ name: ZodString;
4259
+ columns: ZodArray<ZodString, "many">;
4260
+ }, "strict", ZodTypeAny, {
4261
+ name: string;
4262
+ columns: string[];
4263
+ }, {
4264
+ name: string;
4265
+ columns: string[];
4266
+ }>>;
4267
+ uniqueConstraints: ZodDefault<ZodRecord<ZodString, ZodObject<{
4268
+ name: ZodString;
4269
+ columns: ZodArray<ZodString, "many">;
4270
+ }, "strict", ZodTypeAny, {
4271
+ name: string;
4272
+ columns: string[];
4273
+ }, {
4274
+ name: string;
4275
+ columns: string[];
4276
+ }>>>;
4277
+ }, "strict", ZodTypeAny, {
4278
+ name: string;
4279
+ columns: Record<string, {
4280
+ type: string;
4281
+ name: string;
4282
+ primaryKey: boolean;
4283
+ notNull: boolean;
4284
+ default?: any;
4285
+ generated?: {
4286
+ type: "stored" | "virtual";
4287
+ as: string;
4288
+ } | undefined;
4289
+ onUpdate?: any;
4290
+ autoincrement?: boolean | undefined;
4291
+ }>;
4292
+ indexes: Record<string, {
4293
+ name: string;
4294
+ columns: string[];
4295
+ isUnique: boolean;
4296
+ using?: "btree" | "hash" | undefined;
4297
+ algorithm?: "default" | "inplace" | "copy" | undefined;
4298
+ lock?: "default" | "none" | "shared" | "exclusive" | undefined;
4299
+ }>;
4300
+ compositePrimaryKeys: Record<string, {
4301
+ name: string;
4302
+ columns: string[];
4303
+ }>;
4304
+ uniqueConstraints: Record<string, {
4305
+ name: string;
4306
+ columns: string[];
4307
+ }>;
4308
+ }, {
4309
+ name: string;
4310
+ columns: Record<string, {
4311
+ type: string;
4312
+ name: string;
4313
+ primaryKey: boolean;
4314
+ notNull: boolean;
4315
+ default?: any;
4316
+ generated?: {
4317
+ type: "stored" | "virtual";
4318
+ as: string;
4319
+ } | undefined;
4320
+ onUpdate?: any;
4321
+ autoincrement?: boolean | undefined;
4322
+ }>;
4323
+ indexes: Record<string, {
4324
+ name: string;
4325
+ columns: string[];
4326
+ isUnique: boolean;
4327
+ using?: "btree" | "hash" | undefined;
4328
+ algorithm?: "default" | "inplace" | "copy" | undefined;
4329
+ lock?: "default" | "none" | "shared" | "exclusive" | undefined;
4330
+ }>;
4331
+ compositePrimaryKeys: Record<string, {
4332
+ name: string;
4333
+ columns: string[];
4334
+ }>;
4335
+ uniqueConstraints?: Record<string, {
4336
+ name: string;
4337
+ columns: string[];
4338
+ }> | undefined;
4339
+ }>>;
4340
+ _meta: ZodObject<{
4341
+ tables: ZodRecord<ZodString, ZodString>;
4342
+ columns: ZodRecord<ZodString, ZodString>;
4343
+ }, "strip", ZodTypeAny, {
4344
+ tables: Record<string, string>;
4345
+ columns: Record<string, string>;
4346
+ }, {
4347
+ tables: Record<string, string>;
4348
+ columns: Record<string, string>;
4349
+ }>;
4350
+ internal: ZodOptional<ZodObject<{
4351
+ tables: ZodOptional<ZodRecord<ZodString, ZodOptional<ZodObject<{
4352
+ columns: ZodRecord<ZodString, ZodOptional<ZodObject<{
4353
+ isDefaultAnExpression: ZodOptional<ZodBoolean>;
4354
+ }, "strip", ZodTypeAny, {
4355
+ isDefaultAnExpression?: boolean | undefined;
4356
+ }, {
4357
+ isDefaultAnExpression?: boolean | undefined;
4358
+ }>>>;
4359
+ }, "strip", ZodTypeAny, {
4360
+ columns: Record<string, {
4361
+ isDefaultAnExpression?: boolean | undefined;
4362
+ } | undefined>;
4363
+ }, {
4364
+ columns: Record<string, {
4365
+ isDefaultAnExpression?: boolean | undefined;
4366
+ } | undefined>;
4367
+ }>>>>;
4368
+ indexes: ZodOptional<ZodRecord<ZodString, ZodOptional<ZodObject<{
4369
+ columns: ZodRecord<ZodString, ZodOptional<ZodObject<{
4370
+ isExpression: ZodOptional<ZodBoolean>;
4371
+ }, "strip", ZodTypeAny, {
4372
+ isExpression?: boolean | undefined;
4373
+ }, {
4374
+ isExpression?: boolean | undefined;
4375
+ }>>>;
4376
+ }, "strip", ZodTypeAny, {
4377
+ columns: Record<string, {
4378
+ isExpression?: boolean | undefined;
4379
+ } | undefined>;
4380
+ }, {
4381
+ columns: Record<string, {
4382
+ isExpression?: boolean | undefined;
4383
+ } | undefined>;
4384
+ }>>>>;
4385
+ }, "strip", ZodTypeAny, {
4386
+ tables?: Record<string, {
4387
+ columns: Record<string, {
4388
+ isDefaultAnExpression?: boolean | undefined;
4389
+ } | undefined>;
4390
+ } | undefined> | undefined;
4391
+ indexes?: Record<string, {
4392
+ columns: Record<string, {
4393
+ isExpression?: boolean | undefined;
4394
+ } | undefined>;
4395
+ } | undefined> | undefined;
4396
+ }, {
4397
+ tables?: Record<string, {
4398
+ columns: Record<string, {
4399
+ isDefaultAnExpression?: boolean | undefined;
4400
+ } | undefined>;
4401
+ } | undefined> | undefined;
4402
+ indexes?: Record<string, {
4403
+ columns: Record<string, {
4404
+ isExpression?: boolean | undefined;
4405
+ } | undefined>;
4406
+ } | undefined> | undefined;
4407
+ }>>;
4408
+ } & {
4409
+ id: ZodString;
4410
+ prevId: ZodString;
4411
+ }, "strip", ZodTypeAny, {
4412
+ version: "1";
4413
+ dialect: "singlestore";
4414
+ tables: Record<string, {
4415
+ name: string;
4416
+ columns: Record<string, {
4417
+ type: string;
4418
+ name: string;
4419
+ primaryKey: boolean;
4420
+ notNull: boolean;
4421
+ default?: any;
4422
+ generated?: {
4423
+ type: "stored" | "virtual";
4424
+ as: string;
4425
+ } | undefined;
4426
+ onUpdate?: any;
4427
+ autoincrement?: boolean | undefined;
4428
+ }>;
4429
+ indexes: Record<string, {
4430
+ name: string;
4431
+ columns: string[];
4432
+ isUnique: boolean;
4433
+ using?: "btree" | "hash" | undefined;
4434
+ algorithm?: "default" | "inplace" | "copy" | undefined;
4435
+ lock?: "default" | "none" | "shared" | "exclusive" | undefined;
4436
+ }>;
4437
+ compositePrimaryKeys: Record<string, {
4438
+ name: string;
4439
+ columns: string[];
4440
+ }>;
4441
+ uniqueConstraints: Record<string, {
4442
+ name: string;
4443
+ columns: string[];
4444
+ }>;
4445
+ }>;
4446
+ _meta: {
4447
+ tables: Record<string, string>;
4448
+ columns: Record<string, string>;
4449
+ };
4450
+ id: string;
4451
+ prevId: string;
4452
+ internal?: {
4453
+ tables?: Record<string, {
4454
+ columns: Record<string, {
4455
+ isDefaultAnExpression?: boolean | undefined;
4456
+ } | undefined>;
4457
+ } | undefined> | undefined;
4458
+ indexes?: Record<string, {
4459
+ columns: Record<string, {
4460
+ isExpression?: boolean | undefined;
4461
+ } | undefined>;
4462
+ } | undefined> | undefined;
4463
+ } | undefined;
4464
+ }, {
4465
+ version: "1";
4466
+ dialect: "singlestore";
4467
+ tables: Record<string, {
4468
+ name: string;
4469
+ columns: Record<string, {
4470
+ type: string;
4471
+ name: string;
4472
+ primaryKey: boolean;
4473
+ notNull: boolean;
4474
+ default?: any;
4475
+ generated?: {
4476
+ type: "stored" | "virtual";
4477
+ as: string;
4478
+ } | undefined;
4479
+ onUpdate?: any;
4480
+ autoincrement?: boolean | undefined;
4481
+ }>;
4482
+ indexes: Record<string, {
4483
+ name: string;
4484
+ columns: string[];
4485
+ isUnique: boolean;
4486
+ using?: "btree" | "hash" | undefined;
4487
+ algorithm?: "default" | "inplace" | "copy" | undefined;
4488
+ lock?: "default" | "none" | "shared" | "exclusive" | undefined;
4489
+ }>;
4490
+ compositePrimaryKeys: Record<string, {
4491
+ name: string;
4492
+ columns: string[];
4493
+ }>;
4494
+ uniqueConstraints?: Record<string, {
4495
+ name: string;
4496
+ columns: string[];
4497
+ }> | undefined;
4498
+ }>;
4499
+ _meta: {
4500
+ tables: Record<string, string>;
4501
+ columns: Record<string, string>;
4502
+ };
4503
+ id: string;
4504
+ prevId: string;
4505
+ internal?: {
4506
+ tables?: Record<string, {
4507
+ columns: Record<string, {
4508
+ isDefaultAnExpression?: boolean | undefined;
4509
+ } | undefined>;
4510
+ } | undefined> | undefined;
4511
+ indexes?: Record<string, {
4512
+ columns: Record<string, {
4513
+ isExpression?: boolean | undefined;
4514
+ } | undefined>;
4515
+ } | undefined> | undefined;
4516
+ } | undefined;
4517
+ }>;
4518
+ type SingleStoreSchema = TypeOf<typeof schema$1>;
4519
+ declare const schema$3: ZodObject<{
4520
+ version: ZodLiteral<"6">;
4521
+ dialect: ZodEnum<["sqlite"]>;
4522
+ tables: ZodRecord<ZodString, ZodObject<{
4523
+ name: ZodString;
4524
+ columns: ZodRecord<ZodString, ZodObject<{
4525
+ name: ZodString;
4526
+ type: ZodString;
4527
+ primaryKey: ZodBoolean;
4528
+ notNull: ZodBoolean;
4529
+ autoincrement: ZodOptional<ZodBoolean>;
4530
+ default: ZodOptional<ZodAny>;
4531
+ generated: ZodOptional<ZodObject<{
4532
+ type: ZodEnum<["stored", "virtual"]>;
4533
+ as: ZodString;
4534
+ }, "strip", ZodTypeAny, {
4535
+ type: "stored" | "virtual";
4536
+ as: string;
4537
+ }, {
4538
+ type: "stored" | "virtual";
4539
+ as: string;
4540
+ }>>;
4541
+ }, "strict", ZodTypeAny, {
4542
+ type: string;
4543
+ name: string;
4544
+ primaryKey: boolean;
4545
+ notNull: boolean;
4546
+ default?: any;
4547
+ generated?: {
4548
+ type: "stored" | "virtual";
4549
+ as: string;
4550
+ } | undefined;
4551
+ autoincrement?: boolean | undefined;
4552
+ }, {
4553
+ type: string;
4554
+ name: string;
4555
+ primaryKey: boolean;
4556
+ notNull: boolean;
4557
+ default?: any;
4558
+ generated?: {
4559
+ type: "stored" | "virtual";
4560
+ as: string;
4561
+ } | undefined;
4562
+ autoincrement?: boolean | undefined;
4563
+ }>>;
4564
+ indexes: ZodRecord<ZodString, ZodObject<{
4565
+ name: ZodString;
4566
+ columns: ZodArray<ZodString, "many">;
4567
+ where: ZodOptional<ZodString>;
4568
+ isUnique: ZodBoolean;
4569
+ }, "strict", ZodTypeAny, {
4570
+ name: string;
4571
+ columns: string[];
4572
+ isUnique: boolean;
4573
+ where?: string | undefined;
4574
+ }, {
4575
+ name: string;
4576
+ columns: string[];
4577
+ isUnique: boolean;
4578
+ where?: string | undefined;
4579
+ }>>;
4580
+ foreignKeys: ZodRecord<ZodString, ZodObject<{
4581
+ name: ZodString;
4582
+ tableFrom: ZodString;
4583
+ columnsFrom: ZodArray<ZodString, "many">;
4584
+ tableTo: ZodString;
4585
+ columnsTo: ZodArray<ZodString, "many">;
4586
+ onUpdate: ZodOptional<ZodString>;
4587
+ onDelete: ZodOptional<ZodString>;
4588
+ }, "strict", ZodTypeAny, {
4589
+ name: string;
4590
+ tableFrom: string;
4591
+ columnsFrom: string[];
4592
+ tableTo: string;
4593
+ columnsTo: string[];
4594
+ onUpdate?: string | undefined;
4595
+ onDelete?: string | undefined;
4596
+ }, {
4597
+ name: string;
4598
+ tableFrom: string;
4599
+ columnsFrom: string[];
4600
+ tableTo: string;
4601
+ columnsTo: string[];
4602
+ onUpdate?: string | undefined;
4603
+ onDelete?: string | undefined;
4604
+ }>>;
4605
+ compositePrimaryKeys: ZodRecord<ZodString, ZodObject<{
4606
+ columns: ZodArray<ZodString, "many">;
4607
+ name: ZodOptional<ZodString>;
4608
+ }, "strict", ZodTypeAny, {
4609
+ columns: string[];
4610
+ name?: string | undefined;
4611
+ }, {
4612
+ columns: string[];
4613
+ name?: string | undefined;
4614
+ }>>;
4615
+ uniqueConstraints: ZodDefault<ZodRecord<ZodString, ZodObject<{
4616
+ name: ZodString;
4617
+ columns: ZodArray<ZodString, "many">;
4618
+ }, "strict", ZodTypeAny, {
4619
+ name: string;
4620
+ columns: string[];
4621
+ }, {
4622
+ name: string;
4623
+ columns: string[];
4624
+ }>>>;
4625
+ checkConstraints: ZodDefault<ZodRecord<ZodString, ZodObject<{
4626
+ name: ZodString;
4627
+ value: ZodString;
4628
+ }, "strict", ZodTypeAny, {
4629
+ value: string;
4630
+ name: string;
4631
+ }, {
4632
+ value: string;
4633
+ name: string;
4634
+ }>>>;
4635
+ }, "strict", ZodTypeAny, {
4636
+ name: string;
4637
+ columns: Record<string, {
4638
+ type: string;
4639
+ name: string;
4640
+ primaryKey: boolean;
4641
+ notNull: boolean;
4642
+ default?: any;
4643
+ generated?: {
4644
+ type: "stored" | "virtual";
4645
+ as: string;
4646
+ } | undefined;
4647
+ autoincrement?: boolean | undefined;
4648
+ }>;
4649
+ indexes: Record<string, {
4650
+ name: string;
4651
+ columns: string[];
4652
+ isUnique: boolean;
4653
+ where?: string | undefined;
4654
+ }>;
4655
+ foreignKeys: Record<string, {
4656
+ name: string;
4657
+ tableFrom: string;
4658
+ columnsFrom: string[];
4659
+ tableTo: string;
4660
+ columnsTo: string[];
4661
+ onUpdate?: string | undefined;
4662
+ onDelete?: string | undefined;
4663
+ }>;
4664
+ compositePrimaryKeys: Record<string, {
4665
+ columns: string[];
4666
+ name?: string | undefined;
4667
+ }>;
4668
+ uniqueConstraints: Record<string, {
4669
+ name: string;
4670
+ columns: string[];
4671
+ }>;
4672
+ checkConstraints: Record<string, {
4673
+ value: string;
4674
+ name: string;
4675
+ }>;
4676
+ }, {
4677
+ name: string;
4678
+ columns: Record<string, {
4679
+ type: string;
4680
+ name: string;
4681
+ primaryKey: boolean;
4682
+ notNull: boolean;
4683
+ default?: any;
4684
+ generated?: {
4685
+ type: "stored" | "virtual";
4686
+ as: string;
4687
+ } | undefined;
4688
+ autoincrement?: boolean | undefined;
4689
+ }>;
4690
+ indexes: Record<string, {
4691
+ name: string;
4692
+ columns: string[];
4693
+ isUnique: boolean;
4694
+ where?: string | undefined;
4695
+ }>;
4696
+ foreignKeys: Record<string, {
4697
+ name: string;
4698
+ tableFrom: string;
4699
+ columnsFrom: string[];
4700
+ tableTo: string;
4701
+ columnsTo: string[];
4702
+ onUpdate?: string | undefined;
4703
+ onDelete?: string | undefined;
4704
+ }>;
4705
+ compositePrimaryKeys: Record<string, {
4706
+ columns: string[];
4707
+ name?: string | undefined;
4708
+ }>;
4709
+ uniqueConstraints?: Record<string, {
4710
+ name: string;
4711
+ columns: string[];
4712
+ }> | undefined;
4713
+ checkConstraints?: Record<string, {
4714
+ value: string;
4715
+ name: string;
4716
+ }> | undefined;
4717
+ }>>;
4718
+ views: ZodDefault<ZodRecord<ZodString, ZodObject<{
4719
+ name: ZodString;
4720
+ columns: ZodRecord<ZodString, ZodObject<{
4721
+ name: ZodString;
4722
+ type: ZodString;
4723
+ primaryKey: ZodBoolean;
4724
+ notNull: ZodBoolean;
4725
+ autoincrement: ZodOptional<ZodBoolean>;
4726
+ default: ZodOptional<ZodAny>;
4727
+ generated: ZodOptional<ZodObject<{
4728
+ type: ZodEnum<["stored", "virtual"]>;
4729
+ as: ZodString;
4730
+ }, "strip", ZodTypeAny, {
4731
+ type: "stored" | "virtual";
4732
+ as: string;
4733
+ }, {
4734
+ type: "stored" | "virtual";
4735
+ as: string;
4736
+ }>>;
4737
+ }, "strict", ZodTypeAny, {
4738
+ type: string;
4739
+ name: string;
4740
+ primaryKey: boolean;
4741
+ notNull: boolean;
4742
+ default?: any;
4743
+ generated?: {
4744
+ type: "stored" | "virtual";
4745
+ as: string;
4746
+ } | undefined;
4747
+ autoincrement?: boolean | undefined;
4748
+ }, {
4749
+ type: string;
4750
+ name: string;
4751
+ primaryKey: boolean;
4752
+ notNull: boolean;
4753
+ default?: any;
4754
+ generated?: {
4755
+ type: "stored" | "virtual";
4756
+ as: string;
4757
+ } | undefined;
4758
+ autoincrement?: boolean | undefined;
4759
+ }>>;
4760
+ definition: ZodOptional<ZodString>;
4761
+ isExisting: ZodBoolean;
4762
+ }, "strict", ZodTypeAny, {
4763
+ name: string;
4764
+ columns: Record<string, {
4765
+ type: string;
4766
+ name: string;
4767
+ primaryKey: boolean;
4768
+ notNull: boolean;
4769
+ default?: any;
4770
+ generated?: {
4771
+ type: "stored" | "virtual";
4772
+ as: string;
4773
+ } | undefined;
4774
+ autoincrement?: boolean | undefined;
4775
+ }>;
4776
+ isExisting: boolean;
4777
+ definition?: string | undefined;
4778
+ }, {
4779
+ name: string;
4780
+ columns: Record<string, {
4781
+ type: string;
4782
+ name: string;
4783
+ primaryKey: boolean;
4784
+ notNull: boolean;
4785
+ default?: any;
4786
+ generated?: {
4787
+ type: "stored" | "virtual";
4788
+ as: string;
4789
+ } | undefined;
4790
+ autoincrement?: boolean | undefined;
4791
+ }>;
4792
+ isExisting: boolean;
4793
+ definition?: string | undefined;
4794
+ }>>>;
4795
+ enums: ZodObject<{}, "strip", ZodTypeAny, {}, {}>;
4796
+ _meta: ZodObject<{
4797
+ tables: ZodRecord<ZodString, ZodString>;
4798
+ columns: ZodRecord<ZodString, ZodString>;
4799
+ }, "strip", ZodTypeAny, {
4800
+ tables: Record<string, string>;
4801
+ columns: Record<string, string>;
4802
+ }, {
4803
+ tables: Record<string, string>;
4804
+ columns: Record<string, string>;
4805
+ }>;
4806
+ internal: ZodOptional<ZodObject<{
4807
+ indexes: ZodOptional<ZodRecord<ZodString, ZodOptional<ZodObject<{
4808
+ columns: ZodRecord<ZodString, ZodOptional<ZodObject<{
4809
+ isExpression: ZodOptional<ZodBoolean>;
4810
+ }, "strip", ZodTypeAny, {
4811
+ isExpression?: boolean | undefined;
4812
+ }, {
4813
+ isExpression?: boolean | undefined;
4814
+ }>>>;
4815
+ }, "strip", ZodTypeAny, {
4816
+ columns: Record<string, {
4817
+ isExpression?: boolean | undefined;
4818
+ } | undefined>;
4819
+ }, {
4820
+ columns: Record<string, {
4821
+ isExpression?: boolean | undefined;
4822
+ } | undefined>;
4823
+ }>>>>;
4824
+ }, "strip", ZodTypeAny, {
4825
+ indexes?: Record<string, {
4826
+ columns: Record<string, {
4827
+ isExpression?: boolean | undefined;
4828
+ } | undefined>;
4829
+ } | undefined> | undefined;
4830
+ }, {
4831
+ indexes?: Record<string, {
4832
+ columns: Record<string, {
4833
+ isExpression?: boolean | undefined;
4834
+ } | undefined>;
4835
+ } | undefined> | undefined;
4836
+ }>>;
4837
+ } & {
4838
+ id: ZodString;
4839
+ prevId: ZodString;
4840
+ }, "strict", ZodTypeAny, {
4841
+ version: "6";
4842
+ dialect: "sqlite";
4843
+ tables: Record<string, {
4844
+ name: string;
4845
+ columns: Record<string, {
4846
+ type: string;
4847
+ name: string;
4848
+ primaryKey: boolean;
4849
+ notNull: boolean;
4850
+ default?: any;
4851
+ generated?: {
4852
+ type: "stored" | "virtual";
4853
+ as: string;
4854
+ } | undefined;
4855
+ autoincrement?: boolean | undefined;
4856
+ }>;
4857
+ indexes: Record<string, {
4858
+ name: string;
4859
+ columns: string[];
4860
+ isUnique: boolean;
4861
+ where?: string | undefined;
4862
+ }>;
4863
+ foreignKeys: Record<string, {
4864
+ name: string;
4865
+ tableFrom: string;
4866
+ columnsFrom: string[];
4867
+ tableTo: string;
4868
+ columnsTo: string[];
4869
+ onUpdate?: string | undefined;
4870
+ onDelete?: string | undefined;
4871
+ }>;
4872
+ compositePrimaryKeys: Record<string, {
4873
+ columns: string[];
4874
+ name?: string | undefined;
4875
+ }>;
4876
+ uniqueConstraints: Record<string, {
4877
+ name: string;
4878
+ columns: string[];
4879
+ }>;
4880
+ checkConstraints: Record<string, {
4881
+ value: string;
4882
+ name: string;
4883
+ }>;
4884
+ }>;
4885
+ enums: {};
4886
+ views: Record<string, {
4887
+ name: string;
4888
+ columns: Record<string, {
4889
+ type: string;
4890
+ name: string;
4891
+ primaryKey: boolean;
4892
+ notNull: boolean;
4893
+ default?: any;
4894
+ generated?: {
4895
+ type: "stored" | "virtual";
4896
+ as: string;
4897
+ } | undefined;
4898
+ autoincrement?: boolean | undefined;
4899
+ }>;
4900
+ isExisting: boolean;
4901
+ definition?: string | undefined;
4902
+ }>;
4903
+ _meta: {
4904
+ tables: Record<string, string>;
4905
+ columns: Record<string, string>;
4906
+ };
4907
+ id: string;
4908
+ prevId: string;
4909
+ internal?: {
4910
+ indexes?: Record<string, {
4911
+ columns: Record<string, {
4912
+ isExpression?: boolean | undefined;
4913
+ } | undefined>;
4914
+ } | undefined> | undefined;
4915
+ } | undefined;
4916
+ }, {
4917
+ version: "6";
4918
+ dialect: "sqlite";
4919
+ tables: Record<string, {
4920
+ name: string;
4921
+ columns: Record<string, {
4922
+ type: string;
4923
+ name: string;
4924
+ primaryKey: boolean;
4925
+ notNull: boolean;
4926
+ default?: any;
4927
+ generated?: {
4928
+ type: "stored" | "virtual";
4929
+ as: string;
4930
+ } | undefined;
4931
+ autoincrement?: boolean | undefined;
4932
+ }>;
4933
+ indexes: Record<string, {
4934
+ name: string;
4935
+ columns: string[];
4936
+ isUnique: boolean;
4937
+ where?: string | undefined;
4938
+ }>;
4939
+ foreignKeys: Record<string, {
4940
+ name: string;
4941
+ tableFrom: string;
4942
+ columnsFrom: string[];
4943
+ tableTo: string;
4944
+ columnsTo: string[];
4945
+ onUpdate?: string | undefined;
4946
+ onDelete?: string | undefined;
4947
+ }>;
4948
+ compositePrimaryKeys: Record<string, {
4949
+ columns: string[];
4950
+ name?: string | undefined;
4951
+ }>;
4952
+ uniqueConstraints?: Record<string, {
4953
+ name: string;
4954
+ columns: string[];
4955
+ }> | undefined;
4956
+ checkConstraints?: Record<string, {
4957
+ value: string;
4958
+ name: string;
4959
+ }> | undefined;
4960
+ }>;
4961
+ enums: {};
4962
+ _meta: {
4963
+ tables: Record<string, string>;
4964
+ columns: Record<string, string>;
4965
+ };
4966
+ id: string;
4967
+ prevId: string;
4968
+ views?: Record<string, {
4969
+ name: string;
4970
+ columns: Record<string, {
4971
+ type: string;
4972
+ name: string;
4973
+ primaryKey: boolean;
4974
+ notNull: boolean;
4975
+ default?: any;
4976
+ generated?: {
4977
+ type: "stored" | "virtual";
4978
+ as: string;
4979
+ } | undefined;
4980
+ autoincrement?: boolean | undefined;
4981
+ }>;
4982
+ isExisting: boolean;
4983
+ definition?: string | undefined;
4984
+ }> | undefined;
4985
+ internal?: {
4986
+ indexes?: Record<string, {
4987
+ columns: Record<string, {
4988
+ isExpression?: boolean | undefined;
4989
+ } | undefined>;
4990
+ } | undefined> | undefined;
4991
+ } | undefined;
4992
+ }>;
4993
+ type SQLiteSchema = TypeOf<typeof schema$3>;
4994
+ type DrizzleSnapshotJSON = PgSchema;
4995
+ type DrizzleSQLiteSnapshotJSON = SQLiteSchema;
4996
+ type DrizzleMySQLSnapshotJSON = MySqlSchema;
4997
+ type DrizzleSingleStoreSnapshotJSON = SingleStoreSchema;
4998
+ declare const generateDrizzleJson: (imports: Record<string, unknown>, prevId?: string, schemaFilters?: string[], casing?: CasingType) => PgSchema;
4999
+ declare const generateMigration: (prev: DrizzleSnapshotJSON, cur: DrizzleSnapshotJSON) => Promise<string[]>;
5000
+ declare const pushSchema: (imports: Record<string, unknown>, drizzleInstance: PgDatabase<any>, schemaFilters?: string[], tablesFilter?: string[], extensionsFilters?: Config["extensionsFilters"]) => Promise<{
5001
+ hasDataLoss: boolean;
5002
+ warnings: string[];
5003
+ statementsToExecute: string[];
5004
+ apply: () => Promise<void>;
5005
+ }>;
5006
+ declare const startStudioPostgresServer: (imports: Record<string, unknown>, credentials: PostgresCredentials | {
5007
+ driver: "pglite";
5008
+ client: PGlite;
5009
+ }, options?: {
5010
+ host?: string;
5011
+ port?: number;
5012
+ casing?: CasingType;
5013
+ }) => Promise<void>;
5014
+ declare const generateSQLiteDrizzleJson: (imports: Record<string, unknown>, prevId?: string, casing?: CasingType) => Promise<SQLiteSchema>;
5015
+ declare const generateSQLiteMigration: (prev: DrizzleSQLiteSnapshotJSON, cur: DrizzleSQLiteSnapshotJSON) => Promise<string[]>;
5016
+ declare const pushSQLiteSchema: (imports: Record<string, unknown>, drizzleInstance: LibSQLDatabase<any>) => Promise<{
5017
+ hasDataLoss: boolean;
5018
+ warnings: string[];
5019
+ statementsToExecute: string[];
5020
+ apply: () => Promise<void>;
5021
+ }>;
5022
+ declare const startStudioSQLiteServer: (imports: Record<string, unknown>, credentials: SqliteCredentials | {
5023
+ driver: "d1";
5024
+ binding: D1Database;
5025
+ }, options?: {
5026
+ host?: string;
5027
+ port?: number;
5028
+ casing?: CasingType;
5029
+ }) => Promise<void>;
5030
+ declare const generateMySQLDrizzleJson: (imports: Record<string, unknown>, prevId?: string, casing?: CasingType) => Promise<MySqlSchema>;
5031
+ declare const generateMySQLMigration: (prev: DrizzleMySQLSnapshotJSON, cur: DrizzleMySQLSnapshotJSON) => Promise<string[]>;
5032
+ declare const pushMySQLSchema: (imports: Record<string, unknown>, drizzleInstance: MySql2Database<any>, databaseName: string) => Promise<{
5033
+ hasDataLoss: boolean;
5034
+ warnings: string[];
5035
+ statementsToExecute: string[];
5036
+ apply: () => Promise<void>;
5037
+ }>;
5038
+ declare const startStudioMySQLServer: (imports: Record<string, unknown>, credentials: MysqlCredentials, options?: {
5039
+ host?: string;
5040
+ port?: number;
5041
+ casing?: CasingType;
5042
+ }) => Promise<void>;
5043
+ declare const generateSingleStoreDrizzleJson: (imports: Record<string, unknown>, prevId?: string, casing?: CasingType) => Promise<SingleStoreSchema>;
5044
+ declare const generateSingleStoreMigration: (prev: DrizzleSingleStoreSnapshotJSON, cur: DrizzleSingleStoreSnapshotJSON) => Promise<string[]>;
5045
+ declare const pushSingleStoreSchema: (imports: Record<string, unknown>, drizzleInstance: SingleStoreDriverDatabase<any>, databaseName: string) => Promise<{
5046
+ hasDataLoss: boolean;
5047
+ warnings: string[];
5048
+ statementsToExecute: string[];
5049
+ apply: () => Promise<void>;
5050
+ }>;
5051
+ declare const startStudioSingleStoreServer: (imports: Record<string, unknown>, credentials: SingleStoreCredentials, options?: {
5052
+ host?: string;
5053
+ port?: number;
5054
+ casing?: CasingType;
5055
+ }) => Promise<void>;
5056
+ declare const upPgSnapshot: (snapshot: Record<string, unknown>) => {
5057
+ version: "7";
5058
+ dialect: "postgresql";
5059
+ tables: Record<string, {
5060
+ name: string;
5061
+ schema: string;
5062
+ columns: Record<string, {
5063
+ type: string;
5064
+ name: string;
5065
+ primaryKey: boolean;
5066
+ notNull: boolean;
5067
+ typeSchema?: string | undefined;
5068
+ default?: any;
5069
+ isUnique?: any;
5070
+ uniqueName?: string | undefined;
5071
+ nullsNotDistinct?: boolean | undefined;
5072
+ generated?: {
5073
+ type: "stored";
5074
+ as: string;
5075
+ } | undefined;
5076
+ identity?: {
5077
+ type: "always" | "byDefault";
5078
+ name: string;
5079
+ schema: string;
5080
+ increment?: string | undefined;
5081
+ minValue?: string | undefined;
5082
+ maxValue?: string | undefined;
5083
+ startWith?: string | undefined;
5084
+ cache?: string | undefined;
5085
+ cycle?: boolean | undefined;
5086
+ } | undefined;
5087
+ }>;
5088
+ indexes: Record<string, {
5089
+ name: string;
5090
+ columns: {
5091
+ expression: string;
5092
+ isExpression: boolean;
5093
+ asc: boolean;
5094
+ nulls?: string | undefined;
5095
+ opclass?: string | undefined;
5096
+ }[];
5097
+ isUnique: boolean;
5098
+ method: string;
5099
+ concurrently: boolean;
5100
+ with?: Record<string, any> | undefined;
5101
+ where?: string | undefined;
5102
+ }>;
5103
+ foreignKeys: Record<string, {
5104
+ name: string;
5105
+ tableFrom: string;
5106
+ columnsFrom: string[];
5107
+ tableTo: string;
5108
+ columnsTo: string[];
5109
+ schemaTo?: string | undefined;
5110
+ onUpdate?: string | undefined;
5111
+ onDelete?: string | undefined;
5112
+ }>;
5113
+ compositePrimaryKeys: Record<string, {
5114
+ name: string;
5115
+ columns: string[];
5116
+ }>;
5117
+ uniqueConstraints: Record<string, {
5118
+ name: string;
5119
+ columns: string[];
5120
+ nullsNotDistinct: boolean;
5121
+ }>;
5122
+ policies: Record<string, {
5123
+ name: string;
5124
+ schema?: string | undefined;
5125
+ as?: "PERMISSIVE" | "RESTRICTIVE" | undefined;
5126
+ for?: "ALL" | "SELECT" | "INSERT" | "UPDATE" | "DELETE" | undefined;
5127
+ to?: string[] | undefined;
5128
+ using?: string | undefined;
5129
+ withCheck?: string | undefined;
5130
+ on?: string | undefined;
5131
+ }>;
5132
+ checkConstraints: Record<string, {
5133
+ value: string;
5134
+ name: string;
5135
+ }>;
5136
+ isRLSEnabled: boolean;
5137
+ }>;
5138
+ policies: Record<string, {
5139
+ name: string;
5140
+ schema?: string | undefined;
5141
+ as?: "PERMISSIVE" | "RESTRICTIVE" | undefined;
5142
+ for?: "ALL" | "SELECT" | "INSERT" | "UPDATE" | "DELETE" | undefined;
5143
+ to?: string[] | undefined;
5144
+ using?: string | undefined;
5145
+ withCheck?: string | undefined;
5146
+ on?: string | undefined;
5147
+ }>;
5148
+ enums: Record<string, {
5149
+ values: string[];
5150
+ name: string;
5151
+ schema: string;
5152
+ }>;
5153
+ schemas: Record<string, string>;
5154
+ views: Record<string, {
5155
+ name: string;
5156
+ schema: string;
5157
+ columns: Record<string, {
5158
+ type: string;
5159
+ name: string;
5160
+ primaryKey: boolean;
5161
+ notNull: boolean;
5162
+ typeSchema?: string | undefined;
5163
+ default?: any;
5164
+ isUnique?: any;
5165
+ uniqueName?: string | undefined;
5166
+ nullsNotDistinct?: boolean | undefined;
5167
+ generated?: {
5168
+ type: "stored";
5169
+ as: string;
5170
+ } | undefined;
5171
+ identity?: {
5172
+ type: "always" | "byDefault";
5173
+ name: string;
5174
+ schema: string;
5175
+ increment?: string | undefined;
5176
+ minValue?: string | undefined;
5177
+ maxValue?: string | undefined;
5178
+ startWith?: string | undefined;
5179
+ cache?: string | undefined;
5180
+ cycle?: boolean | undefined;
5181
+ } | undefined;
5182
+ }>;
5183
+ materialized: boolean;
5184
+ isExisting: boolean;
5185
+ with?: {
5186
+ checkOption?: "local" | "cascaded" | undefined;
5187
+ securityBarrier?: boolean | undefined;
5188
+ securityInvoker?: boolean | undefined;
5189
+ fillfactor?: number | undefined;
5190
+ toastTupleTarget?: number | undefined;
5191
+ parallelWorkers?: number | undefined;
5192
+ autovacuumEnabled?: boolean | undefined;
5193
+ vacuumIndexCleanup?: "on" | "auto" | "off" | undefined;
5194
+ vacuumTruncate?: boolean | undefined;
5195
+ autovacuumVacuumThreshold?: number | undefined;
5196
+ autovacuumVacuumScaleFactor?: number | undefined;
5197
+ autovacuumVacuumCostDelay?: number | undefined;
5198
+ autovacuumVacuumCostLimit?: number | undefined;
5199
+ autovacuumFreezeMinAge?: number | undefined;
5200
+ autovacuumFreezeMaxAge?: number | undefined;
5201
+ autovacuumFreezeTableAge?: number | undefined;
5202
+ autovacuumMultixactFreezeMinAge?: number | undefined;
5203
+ autovacuumMultixactFreezeMaxAge?: number | undefined;
5204
+ autovacuumMultixactFreezeTableAge?: number | undefined;
5205
+ logAutovacuumMinDuration?: number | undefined;
5206
+ userCatalogTable?: boolean | undefined;
5207
+ } | undefined;
5208
+ using?: string | undefined;
5209
+ definition?: string | undefined;
5210
+ withNoData?: boolean | undefined;
5211
+ tablespace?: string | undefined;
5212
+ }>;
5213
+ sequences: Record<string, {
5214
+ name: string;
5215
+ schema: string;
5216
+ increment?: string | undefined;
5217
+ minValue?: string | undefined;
5218
+ maxValue?: string | undefined;
5219
+ startWith?: string | undefined;
5220
+ cache?: string | undefined;
5221
+ cycle?: boolean | undefined;
5222
+ }>;
5223
+ roles: Record<string, {
5224
+ name: string;
5225
+ createDb?: boolean | undefined;
5226
+ createRole?: boolean | undefined;
5227
+ inherit?: boolean | undefined;
5228
+ }>;
5229
+ _meta: {
5230
+ tables: Record<string, string>;
5231
+ columns: Record<string, string>;
5232
+ schemas: Record<string, string>;
5233
+ };
5234
+ id: string;
5235
+ prevId: string;
5236
+ internal?: {
5237
+ tables: Record<string, {
5238
+ columns: Record<string, {
5239
+ isArray?: boolean | undefined;
5240
+ dimensions?: number | undefined;
5241
+ rawType?: string | undefined;
5242
+ isDefaultAnExpression?: boolean | undefined;
5243
+ } | undefined>;
5244
+ } | undefined>;
5245
+ } | undefined;
5246
+ } | Record<string, unknown>;
5247
+ //#endregion
381
5248
  //#region ../../src/orm/core/providers/DrizzleKitProvider.d.ts
382
5249
  declare class DrizzleKitProvider {
383
5250
  protected readonly log: _$alepha_logger0.Logger;
@@ -436,11 +5303,11 @@ declare class DrizzleKitProvider {
436
5303
  warnings: string[];
437
5304
  hasDataLoss: boolean;
438
5305
  }>;
439
- protected pushSqlite(kit: typeof DrizzleKit, models: Record<string, unknown>, provider: DatabaseProvider): Promise<void>;
5306
+ protected pushSqlite(kit: typeof api_d_exports, models: Record<string, unknown>, provider: DatabaseProvider): Promise<void>;
440
5307
  /**
441
5308
  * Push schema changes to PostgreSQL using Drizzle Kit's pushSchema with schema filters.
442
5309
  */
443
- protected pushPostgres(kit: typeof DrizzleKit, models: Record<string, unknown>, provider: DatabaseProvider): Promise<void>;
5310
+ protected pushPostgres(kit: typeof api_d_exports, models: Record<string, unknown>, provider: DatabaseProvider): Promise<void>;
444
5311
  /**
445
5312
  * Execute a list of SQL statements against the provider.
446
5313
  */
@@ -464,7 +5331,7 @@ declare class DrizzleKitProvider {
464
5331
  /**
465
5332
  * Try to load the official Drizzle Kit API.
466
5333
  */
467
- importDrizzleKit(): typeof DrizzleKit;
5334
+ importDrizzleKit(): typeof api_d_exports;
468
5335
  }
469
5336
  //#endregion
470
5337
  //#region ../../src/orm/core/providers/drivers/DatabaseProvider.d.ts
@@ -1888,6 +6755,7 @@ interface PgJoin {
1888
6755
  //#endregion
1889
6756
  //#region ../../src/orm/core/services/PgRelationManager.d.ts
1890
6757
  declare class PgRelationManager {
6758
+ protected readonly schemaValidator: SchemaValidator;
1891
6759
  /**
1892
6760
  * Recursively build joins for the query builder based on the relations map
1893
6761
  */
@@ -2372,7 +7240,7 @@ declare const $transactional: (options?: TransactionalOptions) => Middleware;
2372
7240
  /**
2373
7241
  * D1Database interface matching Cloudflare's D1 API.
2374
7242
  */
2375
- interface D1Database {
7243
+ interface D1Database$1 {
2376
7244
  prepare(query: string): D1PreparedStatement;
2377
7245
  batch<T = unknown>(statements: D1PreparedStatement[]): Promise<T[]>;
2378
7246
  exec(query: string): Promise<D1ExecResult>;
@@ -2408,7 +7276,7 @@ declare class CloudflareD1Provider extends DatabaseProvider {
2408
7276
  protected readonly env: {
2409
7277
  DATABASE_URL: string;
2410
7278
  };
2411
- protected d1?: D1Database;
7279
+ protected d1?: D1Database$1;
2412
7280
  protected drizzleDb?: DrizzleD1Database;
2413
7281
  get name(): string;
2414
7282
  get driver(): string;
@@ -2565,7 +7433,7 @@ declare class BunSqliteProvider extends DatabaseProvider {
2565
7433
  protected executeMigrations(migrationsFolder: string): Promise<void>;
2566
7434
  }
2567
7435
  declare namespace index_d_exports {
2568
- export { $entity, $repository, $seed, $sequence, $transactional, AggregateColumnResult, AggregateColumnSelect, AggregateHaving, AggregateOp, AggregateQuery, AggregateResult, AggregateSelect, AlephaOrm, BunSqliteProvider, BunSqliteProviderOptions, CloudflareD1Provider, D1Database, D1ExecResult, D1PreparedStatement, D1Result, DatabaseProvider, DatabaseTypeProvider, DbCacheProvider, DbColumnNotFoundError, DbConflictError, DbConnectionError, DbDeadlockError, DbEntityNotFoundError, DbError, DbForeignKeyError, DbMigrationError, DbMigrationMode, DbNotNullError, DbTableNotFoundError, DbVersionMismatchError, DrizzleKitProvider, EntityColumn, EntityColumns, EntityPrimitive, EntityPrimitiveOptions, FilterOperators, FromSchema, ModelBuilder, NodeSqliteProvider, NodeSqliteProviderOptions, OrderBy, OrderByClause, OrderDirection, PG_CREATED_AT, PG_DEFAULT, PG_DELETED_AT, PG_ENUM, PG_GENERATED, PG_IDENTITY, PG_ORGANIZATION, PG_PRIMARY_KEY, PG_REF, PG_SERIAL, PG_UPDATED_AT, PG_VERSION, Page, PageQuery, PgAttr, PgAttrField, PgDefault, PgEnumOptions, PgGeneratedOptions, PgIdentityOptions, PgPrimaryKey, PgQuery, PgQueryRelations, PgQueryWhere, PgQueryWhereOrSQL, PgRef, PgRefOptions, PgRelation, PgRelationMap, PgStatic, PgSymbolKeys, PgSymbols, Repository, RepositoryProvider, SQLLike, SchemaToTableConfig, SeedOptions, SequencePrimitive, SequencePrimitiveOptions, SqliteProvider, StatementOptions, TObjectInsert, TObjectUpdate, TableConfigBuilders, TransactionalOptions, bunSqliteOptions, databaseEnvSchema, db, _$drizzle_orm0 as drizzle, getAttrFields, insertSchema, legacyIdSchema, nodeSqliteOptions, pageQuerySchema, pageSchema, pgAttr, schema, sql, updateSchema };
7436
+ export { $entity, $repository, $seed, $sequence, $transactional, AggregateColumnResult, AggregateColumnSelect, AggregateHaving, AggregateOp, AggregateQuery, AggregateResult, AggregateSelect, AlephaOrm, BunSqliteProvider, BunSqliteProviderOptions, CloudflareD1Provider, D1Database$1 as D1Database, D1ExecResult, D1PreparedStatement, D1Result, DatabaseProvider, DatabaseTypeProvider, DbCacheProvider, DbColumnNotFoundError, DbConflictError, DbConnectionError, DbDeadlockError, DbEntityNotFoundError, DbError, DbForeignKeyError, DbMigrationError, DbMigrationMode, DbNotNullError, DbTableNotFoundError, DbVersionMismatchError, DrizzleKitProvider, EntityColumn, EntityColumns, EntityPrimitive, EntityPrimitiveOptions, FilterOperators, FromSchema, ModelBuilder, NodeSqliteProvider, NodeSqliteProviderOptions, OrderBy, OrderByClause, OrderDirection, PG_CREATED_AT, PG_DEFAULT, PG_DELETED_AT, PG_ENUM, PG_GENERATED, PG_IDENTITY, PG_ORGANIZATION, PG_PRIMARY_KEY, PG_REF, PG_SERIAL, PG_UPDATED_AT, PG_VERSION, Page, PageQuery, PgAttr, PgAttrField, PgDefault, PgEnumOptions, PgGeneratedOptions, PgIdentityOptions, PgPrimaryKey, PgQuery, PgQueryRelations, PgQueryWhere, PgQueryWhereOrSQL, PgRef, PgRefOptions, PgRelation, PgRelationMap, PgStatic, PgSymbolKeys, PgSymbols, Repository, RepositoryProvider, SQLLike, SchemaToTableConfig, SeedOptions, SequencePrimitive, SequencePrimitiveOptions, SqliteProvider, StatementOptions, TObjectInsert, TObjectUpdate, TableConfigBuilders, TransactionalOptions, bunSqliteOptions, databaseEnvSchema, db, _$drizzle_orm0 as drizzle, getAttrFields, insertSchema, legacyIdSchema, nodeSqliteOptions, pageQuerySchema, pageSchema, pgAttr, schema, sql, updateSchema };
2569
7437
  }
2570
7438
  declare module "alepha" {
2571
7439
  interface State {
@@ -2639,5 +7507,5 @@ declare module "alepha" {
2639
7507
  declare const SqliteProvider: typeof NodeSqliteProvider;
2640
7508
  declare const AlephaOrm: _$alepha.Service<_$alepha.Module>;
2641
7509
  //#endregion
2642
- export { $entity, $repository, $seed, $sequence, $transactional, AggregateColumnResult, AggregateColumnSelect, AggregateHaving, AggregateOp, AggregateQuery, AggregateResult, AggregateSelect, AlephaOrm, BunSqliteProvider, BunSqliteProviderOptions, CloudflareD1Provider, D1Database, D1ExecResult, D1PreparedStatement, D1Result, DatabaseProvider, DatabaseTypeProvider, DbCacheProvider, DbColumnNotFoundError, DbConflictError, DbConnectionError, DbDeadlockError, DbEntityNotFoundError, DbError, DbForeignKeyError, DbMigrationError, DbMigrationMode, DbNotNullError, DbTableNotFoundError, DbVersionMismatchError, DrizzleKitProvider, EntityColumn, EntityColumns, EntityPrimitive, EntityPrimitiveOptions, FilterOperators, FromSchema, ModelBuilder, NodeSqliteProvider, NodeSqliteProviderOptions, OrderBy, OrderByClause, OrderDirection, PG_CREATED_AT, PG_DEFAULT, PG_DELETED_AT, PG_ENUM, PG_GENERATED, PG_IDENTITY, PG_ORGANIZATION, PG_PRIMARY_KEY, PG_REF, PG_SERIAL, PG_UPDATED_AT, PG_VERSION, type Page, type PageQuery, PgAttr, PgAttrField, PgDefault, PgEnumOptions, PgGeneratedOptions, PgIdentityOptions, PgPrimaryKey, PgQuery, PgQueryRelations, PgQueryWhere, PgQueryWhereOrSQL, PgRef, PgRefOptions, PgRelation, PgRelationMap, PgStatic, PgSymbolKeys, PgSymbols, Repository, RepositoryProvider, SQLLike, SchemaToTableConfig, SeedOptions, SequencePrimitive, SequencePrimitiveOptions, SqliteProvider, StatementOptions, TObjectInsert, TObjectUpdate, TableConfigBuilders, TransactionalOptions, bunSqliteOptions, databaseEnvSchema, db, _$drizzle_orm0 as drizzle, getAttrFields, insertSchema, legacyIdSchema, nodeSqliteOptions, pageQuerySchema, pageSchema, pgAttr, schema, sql, updateSchema };
7510
+ export { $entity, $repository, $seed, $sequence, $transactional, AggregateColumnResult, AggregateColumnSelect, AggregateHaving, AggregateOp, AggregateQuery, AggregateResult, AggregateSelect, AlephaOrm, BunSqliteProvider, BunSqliteProviderOptions, CloudflareD1Provider, D1Database$1 as D1Database, D1ExecResult, D1PreparedStatement, D1Result, DatabaseProvider, DatabaseTypeProvider, DbCacheProvider, DbColumnNotFoundError, DbConflictError, DbConnectionError, DbDeadlockError, DbEntityNotFoundError, DbError, DbForeignKeyError, DbMigrationError, DbMigrationMode, DbNotNullError, DbTableNotFoundError, DbVersionMismatchError, DrizzleKitProvider, EntityColumn, EntityColumns, EntityPrimitive, EntityPrimitiveOptions, FilterOperators, FromSchema, ModelBuilder, NodeSqliteProvider, NodeSqliteProviderOptions, OrderBy, OrderByClause, OrderDirection, PG_CREATED_AT, PG_DEFAULT, PG_DELETED_AT, PG_ENUM, PG_GENERATED, PG_IDENTITY, PG_ORGANIZATION, PG_PRIMARY_KEY, PG_REF, PG_SERIAL, PG_UPDATED_AT, PG_VERSION, type Page, type PageQuery, PgAttr, PgAttrField, PgDefault, PgEnumOptions, PgGeneratedOptions, PgIdentityOptions, PgPrimaryKey, PgQuery, PgQueryRelations, PgQueryWhere, PgQueryWhereOrSQL, PgRef, PgRefOptions, PgRelation, PgRelationMap, PgStatic, PgSymbolKeys, PgSymbols, Repository, RepositoryProvider, SQLLike, SchemaToTableConfig, SeedOptions, SequencePrimitive, SequencePrimitiveOptions, SqliteProvider, StatementOptions, TObjectInsert, TObjectUpdate, TableConfigBuilders, TransactionalOptions, bunSqliteOptions, databaseEnvSchema, db, _$drizzle_orm0 as drizzle, getAttrFields, insertSchema, legacyIdSchema, nodeSqliteOptions, pageQuerySchema, pageSchema, pgAttr, schema, sql, updateSchema };
2643
7511
  //# sourceMappingURL=index.d.ts.map