@moltium/world-core 0.1.16 → 0.1.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -299,28 +299,49 @@ declare const PersistenceConfigSchema: z.ZodObject<{
299
299
  filename: string;
300
300
  memory?: boolean | undefined;
301
301
  }>>;
302
- postgres: z.ZodOptional<z.ZodObject<{
303
- host: z.ZodString;
302
+ postgres: z.ZodOptional<z.ZodEffects<z.ZodObject<{
303
+ connectionString: z.ZodOptional<z.ZodString>;
304
+ host: z.ZodOptional<z.ZodString>;
304
305
  port: z.ZodOptional<z.ZodNumber>;
305
- database: z.ZodString;
306
- user: z.ZodString;
307
- password: z.ZodString;
306
+ database: z.ZodOptional<z.ZodString>;
307
+ user: z.ZodOptional<z.ZodString>;
308
+ password: z.ZodOptional<z.ZodString>;
308
309
  ssl: z.ZodOptional<z.ZodBoolean>;
309
310
  max: z.ZodOptional<z.ZodNumber>;
310
311
  }, "strip", z.ZodTypeAny, {
311
- host: string;
312
- database: string;
313
- user: string;
314
- password: string;
312
+ connectionString?: string | undefined;
313
+ host?: string | undefined;
315
314
  port?: number | undefined;
315
+ database?: string | undefined;
316
+ user?: string | undefined;
317
+ password?: string | undefined;
316
318
  ssl?: boolean | undefined;
317
319
  max?: number | undefined;
318
320
  }, {
319
- host: string;
320
- database: string;
321
- user: string;
322
- password: string;
321
+ connectionString?: string | undefined;
322
+ host?: string | undefined;
323
323
  port?: number | undefined;
324
+ database?: string | undefined;
325
+ user?: string | undefined;
326
+ password?: string | undefined;
327
+ ssl?: boolean | undefined;
328
+ max?: number | undefined;
329
+ }>, {
330
+ connectionString?: string | undefined;
331
+ host?: string | undefined;
332
+ port?: number | undefined;
333
+ database?: string | undefined;
334
+ user?: string | undefined;
335
+ password?: string | undefined;
336
+ ssl?: boolean | undefined;
337
+ max?: number | undefined;
338
+ }, {
339
+ connectionString?: string | undefined;
340
+ host?: string | undefined;
341
+ port?: number | undefined;
342
+ database?: string | undefined;
343
+ user?: string | undefined;
344
+ password?: string | undefined;
324
345
  ssl?: boolean | undefined;
325
346
  max?: number | undefined;
326
347
  }>>;
@@ -357,21 +378,22 @@ declare const PersistenceConfigSchema: z.ZodObject<{
357
378
  useUnifiedTopology?: boolean | undefined;
358
379
  }>>;
359
380
  leveldb: z.ZodOptional<z.ZodObject<{
360
- path: z.ZodString;
381
+ location: z.ZodString;
361
382
  }, "strip", z.ZodTypeAny, {
362
- path: string;
383
+ location: string;
363
384
  }, {
364
- path: string;
385
+ location: string;
365
386
  }>>;
366
387
  autoSaveIntervalMs: z.ZodOptional<z.ZodNumber>;
367
388
  }, "strip", z.ZodTypeAny, {
368
389
  type: "memory" | "postgres" | "redis" | "mongodb" | "sqlite" | "leveldb";
369
390
  postgres?: {
370
- host: string;
371
- database: string;
372
- user: string;
373
- password: string;
391
+ connectionString?: string | undefined;
392
+ host?: string | undefined;
374
393
  port?: number | undefined;
394
+ database?: string | undefined;
395
+ user?: string | undefined;
396
+ password?: string | undefined;
375
397
  ssl?: boolean | undefined;
376
398
  max?: number | undefined;
377
399
  } | undefined;
@@ -392,17 +414,18 @@ declare const PersistenceConfigSchema: z.ZodObject<{
392
414
  memory?: boolean | undefined;
393
415
  } | undefined;
394
416
  leveldb?: {
395
- path: string;
417
+ location: string;
396
418
  } | undefined;
397
419
  autoSaveIntervalMs?: number | undefined;
398
420
  }, {
399
421
  type: "memory" | "postgres" | "redis" | "mongodb" | "sqlite" | "leveldb";
400
422
  postgres?: {
401
- host: string;
402
- database: string;
403
- user: string;
404
- password: string;
423
+ connectionString?: string | undefined;
424
+ host?: string | undefined;
405
425
  port?: number | undefined;
426
+ database?: string | undefined;
427
+ user?: string | undefined;
428
+ password?: string | undefined;
406
429
  ssl?: boolean | undefined;
407
430
  max?: number | undefined;
408
431
  } | undefined;
@@ -423,7 +446,7 @@ declare const PersistenceConfigSchema: z.ZodObject<{
423
446
  memory?: boolean | undefined;
424
447
  } | undefined;
425
448
  leveldb?: {
426
- path: string;
449
+ location: string;
427
450
  } | undefined;
428
451
  autoSaveIntervalMs?: number | undefined;
429
452
  }>;
@@ -548,28 +571,49 @@ declare const WorldConfigSchema: z.ZodObject<{
548
571
  filename: string;
549
572
  memory?: boolean | undefined;
550
573
  }>>;
551
- postgres: z.ZodOptional<z.ZodObject<{
552
- host: z.ZodString;
574
+ postgres: z.ZodOptional<z.ZodEffects<z.ZodObject<{
575
+ connectionString: z.ZodOptional<z.ZodString>;
576
+ host: z.ZodOptional<z.ZodString>;
553
577
  port: z.ZodOptional<z.ZodNumber>;
554
- database: z.ZodString;
555
- user: z.ZodString;
556
- password: z.ZodString;
578
+ database: z.ZodOptional<z.ZodString>;
579
+ user: z.ZodOptional<z.ZodString>;
580
+ password: z.ZodOptional<z.ZodString>;
557
581
  ssl: z.ZodOptional<z.ZodBoolean>;
558
582
  max: z.ZodOptional<z.ZodNumber>;
559
583
  }, "strip", z.ZodTypeAny, {
560
- host: string;
561
- database: string;
562
- user: string;
563
- password: string;
584
+ connectionString?: string | undefined;
585
+ host?: string | undefined;
564
586
  port?: number | undefined;
587
+ database?: string | undefined;
588
+ user?: string | undefined;
589
+ password?: string | undefined;
565
590
  ssl?: boolean | undefined;
566
591
  max?: number | undefined;
567
592
  }, {
568
- host: string;
569
- database: string;
570
- user: string;
571
- password: string;
593
+ connectionString?: string | undefined;
594
+ host?: string | undefined;
572
595
  port?: number | undefined;
596
+ database?: string | undefined;
597
+ user?: string | undefined;
598
+ password?: string | undefined;
599
+ ssl?: boolean | undefined;
600
+ max?: number | undefined;
601
+ }>, {
602
+ connectionString?: string | undefined;
603
+ host?: string | undefined;
604
+ port?: number | undefined;
605
+ database?: string | undefined;
606
+ user?: string | undefined;
607
+ password?: string | undefined;
608
+ ssl?: boolean | undefined;
609
+ max?: number | undefined;
610
+ }, {
611
+ connectionString?: string | undefined;
612
+ host?: string | undefined;
613
+ port?: number | undefined;
614
+ database?: string | undefined;
615
+ user?: string | undefined;
616
+ password?: string | undefined;
573
617
  ssl?: boolean | undefined;
574
618
  max?: number | undefined;
575
619
  }>>;
@@ -606,21 +650,22 @@ declare const WorldConfigSchema: z.ZodObject<{
606
650
  useUnifiedTopology?: boolean | undefined;
607
651
  }>>;
608
652
  leveldb: z.ZodOptional<z.ZodObject<{
609
- path: z.ZodString;
653
+ location: z.ZodString;
610
654
  }, "strip", z.ZodTypeAny, {
611
- path: string;
655
+ location: string;
612
656
  }, {
613
- path: string;
657
+ location: string;
614
658
  }>>;
615
659
  autoSaveIntervalMs: z.ZodOptional<z.ZodNumber>;
616
660
  }, "strip", z.ZodTypeAny, {
617
661
  type: "memory" | "postgres" | "redis" | "mongodb" | "sqlite" | "leveldb";
618
662
  postgres?: {
619
- host: string;
620
- database: string;
621
- user: string;
622
- password: string;
663
+ connectionString?: string | undefined;
664
+ host?: string | undefined;
623
665
  port?: number | undefined;
666
+ database?: string | undefined;
667
+ user?: string | undefined;
668
+ password?: string | undefined;
624
669
  ssl?: boolean | undefined;
625
670
  max?: number | undefined;
626
671
  } | undefined;
@@ -641,17 +686,18 @@ declare const WorldConfigSchema: z.ZodObject<{
641
686
  memory?: boolean | undefined;
642
687
  } | undefined;
643
688
  leveldb?: {
644
- path: string;
689
+ location: string;
645
690
  } | undefined;
646
691
  autoSaveIntervalMs?: number | undefined;
647
692
  }, {
648
693
  type: "memory" | "postgres" | "redis" | "mongodb" | "sqlite" | "leveldb";
649
694
  postgres?: {
650
- host: string;
651
- database: string;
652
- user: string;
653
- password: string;
695
+ connectionString?: string | undefined;
696
+ host?: string | undefined;
654
697
  port?: number | undefined;
698
+ database?: string | undefined;
699
+ user?: string | undefined;
700
+ password?: string | undefined;
655
701
  ssl?: boolean | undefined;
656
702
  max?: number | undefined;
657
703
  } | undefined;
@@ -672,7 +718,7 @@ declare const WorldConfigSchema: z.ZodObject<{
672
718
  memory?: boolean | undefined;
673
719
  } | undefined;
674
720
  leveldb?: {
675
- path: string;
721
+ location: string;
676
722
  } | undefined;
677
723
  autoSaveIntervalMs?: number | undefined;
678
724
  }>>;
@@ -756,11 +802,12 @@ declare const WorldConfigSchema: z.ZodObject<{
756
802
  persistence?: {
757
803
  type: "memory" | "postgres" | "redis" | "mongodb" | "sqlite" | "leveldb";
758
804
  postgres?: {
759
- host: string;
760
- database: string;
761
- user: string;
762
- password: string;
805
+ connectionString?: string | undefined;
806
+ host?: string | undefined;
763
807
  port?: number | undefined;
808
+ database?: string | undefined;
809
+ user?: string | undefined;
810
+ password?: string | undefined;
764
811
  ssl?: boolean | undefined;
765
812
  max?: number | undefined;
766
813
  } | undefined;
@@ -781,7 +828,7 @@ declare const WorldConfigSchema: z.ZodObject<{
781
828
  memory?: boolean | undefined;
782
829
  } | undefined;
783
830
  leveldb?: {
784
- path: string;
831
+ location: string;
785
832
  } | undefined;
786
833
  autoSaveIntervalMs?: number | undefined;
787
834
  } | undefined;
@@ -833,11 +880,12 @@ declare const WorldConfigSchema: z.ZodObject<{
833
880
  persistence?: {
834
881
  type: "memory" | "postgres" | "redis" | "mongodb" | "sqlite" | "leveldb";
835
882
  postgres?: {
836
- host: string;
837
- database: string;
838
- user: string;
839
- password: string;
883
+ connectionString?: string | undefined;
884
+ host?: string | undefined;
840
885
  port?: number | undefined;
886
+ database?: string | undefined;
887
+ user?: string | undefined;
888
+ password?: string | undefined;
841
889
  ssl?: boolean | undefined;
842
890
  max?: number | undefined;
843
891
  } | undefined;
@@ -858,7 +906,7 @@ declare const WorldConfigSchema: z.ZodObject<{
858
906
  memory?: boolean | undefined;
859
907
  } | undefined;
860
908
  leveldb?: {
861
- path: string;
909
+ location: string;
862
910
  } | undefined;
863
911
  autoSaveIntervalMs?: number | undefined;
864
912
  } | undefined;
package/dist/index.d.ts CHANGED
@@ -299,28 +299,49 @@ declare const PersistenceConfigSchema: z.ZodObject<{
299
299
  filename: string;
300
300
  memory?: boolean | undefined;
301
301
  }>>;
302
- postgres: z.ZodOptional<z.ZodObject<{
303
- host: z.ZodString;
302
+ postgres: z.ZodOptional<z.ZodEffects<z.ZodObject<{
303
+ connectionString: z.ZodOptional<z.ZodString>;
304
+ host: z.ZodOptional<z.ZodString>;
304
305
  port: z.ZodOptional<z.ZodNumber>;
305
- database: z.ZodString;
306
- user: z.ZodString;
307
- password: z.ZodString;
306
+ database: z.ZodOptional<z.ZodString>;
307
+ user: z.ZodOptional<z.ZodString>;
308
+ password: z.ZodOptional<z.ZodString>;
308
309
  ssl: z.ZodOptional<z.ZodBoolean>;
309
310
  max: z.ZodOptional<z.ZodNumber>;
310
311
  }, "strip", z.ZodTypeAny, {
311
- host: string;
312
- database: string;
313
- user: string;
314
- password: string;
312
+ connectionString?: string | undefined;
313
+ host?: string | undefined;
315
314
  port?: number | undefined;
315
+ database?: string | undefined;
316
+ user?: string | undefined;
317
+ password?: string | undefined;
316
318
  ssl?: boolean | undefined;
317
319
  max?: number | undefined;
318
320
  }, {
319
- host: string;
320
- database: string;
321
- user: string;
322
- password: string;
321
+ connectionString?: string | undefined;
322
+ host?: string | undefined;
323
323
  port?: number | undefined;
324
+ database?: string | undefined;
325
+ user?: string | undefined;
326
+ password?: string | undefined;
327
+ ssl?: boolean | undefined;
328
+ max?: number | undefined;
329
+ }>, {
330
+ connectionString?: string | undefined;
331
+ host?: string | undefined;
332
+ port?: number | undefined;
333
+ database?: string | undefined;
334
+ user?: string | undefined;
335
+ password?: string | undefined;
336
+ ssl?: boolean | undefined;
337
+ max?: number | undefined;
338
+ }, {
339
+ connectionString?: string | undefined;
340
+ host?: string | undefined;
341
+ port?: number | undefined;
342
+ database?: string | undefined;
343
+ user?: string | undefined;
344
+ password?: string | undefined;
324
345
  ssl?: boolean | undefined;
325
346
  max?: number | undefined;
326
347
  }>>;
@@ -357,21 +378,22 @@ declare const PersistenceConfigSchema: z.ZodObject<{
357
378
  useUnifiedTopology?: boolean | undefined;
358
379
  }>>;
359
380
  leveldb: z.ZodOptional<z.ZodObject<{
360
- path: z.ZodString;
381
+ location: z.ZodString;
361
382
  }, "strip", z.ZodTypeAny, {
362
- path: string;
383
+ location: string;
363
384
  }, {
364
- path: string;
385
+ location: string;
365
386
  }>>;
366
387
  autoSaveIntervalMs: z.ZodOptional<z.ZodNumber>;
367
388
  }, "strip", z.ZodTypeAny, {
368
389
  type: "memory" | "postgres" | "redis" | "mongodb" | "sqlite" | "leveldb";
369
390
  postgres?: {
370
- host: string;
371
- database: string;
372
- user: string;
373
- password: string;
391
+ connectionString?: string | undefined;
392
+ host?: string | undefined;
374
393
  port?: number | undefined;
394
+ database?: string | undefined;
395
+ user?: string | undefined;
396
+ password?: string | undefined;
375
397
  ssl?: boolean | undefined;
376
398
  max?: number | undefined;
377
399
  } | undefined;
@@ -392,17 +414,18 @@ declare const PersistenceConfigSchema: z.ZodObject<{
392
414
  memory?: boolean | undefined;
393
415
  } | undefined;
394
416
  leveldb?: {
395
- path: string;
417
+ location: string;
396
418
  } | undefined;
397
419
  autoSaveIntervalMs?: number | undefined;
398
420
  }, {
399
421
  type: "memory" | "postgres" | "redis" | "mongodb" | "sqlite" | "leveldb";
400
422
  postgres?: {
401
- host: string;
402
- database: string;
403
- user: string;
404
- password: string;
423
+ connectionString?: string | undefined;
424
+ host?: string | undefined;
405
425
  port?: number | undefined;
426
+ database?: string | undefined;
427
+ user?: string | undefined;
428
+ password?: string | undefined;
406
429
  ssl?: boolean | undefined;
407
430
  max?: number | undefined;
408
431
  } | undefined;
@@ -423,7 +446,7 @@ declare const PersistenceConfigSchema: z.ZodObject<{
423
446
  memory?: boolean | undefined;
424
447
  } | undefined;
425
448
  leveldb?: {
426
- path: string;
449
+ location: string;
427
450
  } | undefined;
428
451
  autoSaveIntervalMs?: number | undefined;
429
452
  }>;
@@ -548,28 +571,49 @@ declare const WorldConfigSchema: z.ZodObject<{
548
571
  filename: string;
549
572
  memory?: boolean | undefined;
550
573
  }>>;
551
- postgres: z.ZodOptional<z.ZodObject<{
552
- host: z.ZodString;
574
+ postgres: z.ZodOptional<z.ZodEffects<z.ZodObject<{
575
+ connectionString: z.ZodOptional<z.ZodString>;
576
+ host: z.ZodOptional<z.ZodString>;
553
577
  port: z.ZodOptional<z.ZodNumber>;
554
- database: z.ZodString;
555
- user: z.ZodString;
556
- password: z.ZodString;
578
+ database: z.ZodOptional<z.ZodString>;
579
+ user: z.ZodOptional<z.ZodString>;
580
+ password: z.ZodOptional<z.ZodString>;
557
581
  ssl: z.ZodOptional<z.ZodBoolean>;
558
582
  max: z.ZodOptional<z.ZodNumber>;
559
583
  }, "strip", z.ZodTypeAny, {
560
- host: string;
561
- database: string;
562
- user: string;
563
- password: string;
584
+ connectionString?: string | undefined;
585
+ host?: string | undefined;
564
586
  port?: number | undefined;
587
+ database?: string | undefined;
588
+ user?: string | undefined;
589
+ password?: string | undefined;
565
590
  ssl?: boolean | undefined;
566
591
  max?: number | undefined;
567
592
  }, {
568
- host: string;
569
- database: string;
570
- user: string;
571
- password: string;
593
+ connectionString?: string | undefined;
594
+ host?: string | undefined;
572
595
  port?: number | undefined;
596
+ database?: string | undefined;
597
+ user?: string | undefined;
598
+ password?: string | undefined;
599
+ ssl?: boolean | undefined;
600
+ max?: number | undefined;
601
+ }>, {
602
+ connectionString?: string | undefined;
603
+ host?: string | undefined;
604
+ port?: number | undefined;
605
+ database?: string | undefined;
606
+ user?: string | undefined;
607
+ password?: string | undefined;
608
+ ssl?: boolean | undefined;
609
+ max?: number | undefined;
610
+ }, {
611
+ connectionString?: string | undefined;
612
+ host?: string | undefined;
613
+ port?: number | undefined;
614
+ database?: string | undefined;
615
+ user?: string | undefined;
616
+ password?: string | undefined;
573
617
  ssl?: boolean | undefined;
574
618
  max?: number | undefined;
575
619
  }>>;
@@ -606,21 +650,22 @@ declare const WorldConfigSchema: z.ZodObject<{
606
650
  useUnifiedTopology?: boolean | undefined;
607
651
  }>>;
608
652
  leveldb: z.ZodOptional<z.ZodObject<{
609
- path: z.ZodString;
653
+ location: z.ZodString;
610
654
  }, "strip", z.ZodTypeAny, {
611
- path: string;
655
+ location: string;
612
656
  }, {
613
- path: string;
657
+ location: string;
614
658
  }>>;
615
659
  autoSaveIntervalMs: z.ZodOptional<z.ZodNumber>;
616
660
  }, "strip", z.ZodTypeAny, {
617
661
  type: "memory" | "postgres" | "redis" | "mongodb" | "sqlite" | "leveldb";
618
662
  postgres?: {
619
- host: string;
620
- database: string;
621
- user: string;
622
- password: string;
663
+ connectionString?: string | undefined;
664
+ host?: string | undefined;
623
665
  port?: number | undefined;
666
+ database?: string | undefined;
667
+ user?: string | undefined;
668
+ password?: string | undefined;
624
669
  ssl?: boolean | undefined;
625
670
  max?: number | undefined;
626
671
  } | undefined;
@@ -641,17 +686,18 @@ declare const WorldConfigSchema: z.ZodObject<{
641
686
  memory?: boolean | undefined;
642
687
  } | undefined;
643
688
  leveldb?: {
644
- path: string;
689
+ location: string;
645
690
  } | undefined;
646
691
  autoSaveIntervalMs?: number | undefined;
647
692
  }, {
648
693
  type: "memory" | "postgres" | "redis" | "mongodb" | "sqlite" | "leveldb";
649
694
  postgres?: {
650
- host: string;
651
- database: string;
652
- user: string;
653
- password: string;
695
+ connectionString?: string | undefined;
696
+ host?: string | undefined;
654
697
  port?: number | undefined;
698
+ database?: string | undefined;
699
+ user?: string | undefined;
700
+ password?: string | undefined;
655
701
  ssl?: boolean | undefined;
656
702
  max?: number | undefined;
657
703
  } | undefined;
@@ -672,7 +718,7 @@ declare const WorldConfigSchema: z.ZodObject<{
672
718
  memory?: boolean | undefined;
673
719
  } | undefined;
674
720
  leveldb?: {
675
- path: string;
721
+ location: string;
676
722
  } | undefined;
677
723
  autoSaveIntervalMs?: number | undefined;
678
724
  }>>;
@@ -756,11 +802,12 @@ declare const WorldConfigSchema: z.ZodObject<{
756
802
  persistence?: {
757
803
  type: "memory" | "postgres" | "redis" | "mongodb" | "sqlite" | "leveldb";
758
804
  postgres?: {
759
- host: string;
760
- database: string;
761
- user: string;
762
- password: string;
805
+ connectionString?: string | undefined;
806
+ host?: string | undefined;
763
807
  port?: number | undefined;
808
+ database?: string | undefined;
809
+ user?: string | undefined;
810
+ password?: string | undefined;
764
811
  ssl?: boolean | undefined;
765
812
  max?: number | undefined;
766
813
  } | undefined;
@@ -781,7 +828,7 @@ declare const WorldConfigSchema: z.ZodObject<{
781
828
  memory?: boolean | undefined;
782
829
  } | undefined;
783
830
  leveldb?: {
784
- path: string;
831
+ location: string;
785
832
  } | undefined;
786
833
  autoSaveIntervalMs?: number | undefined;
787
834
  } | undefined;
@@ -833,11 +880,12 @@ declare const WorldConfigSchema: z.ZodObject<{
833
880
  persistence?: {
834
881
  type: "memory" | "postgres" | "redis" | "mongodb" | "sqlite" | "leveldb";
835
882
  postgres?: {
836
- host: string;
837
- database: string;
838
- user: string;
839
- password: string;
883
+ connectionString?: string | undefined;
884
+ host?: string | undefined;
840
885
  port?: number | undefined;
886
+ database?: string | undefined;
887
+ user?: string | undefined;
888
+ password?: string | undefined;
841
889
  ssl?: boolean | undefined;
842
890
  max?: number | undefined;
843
891
  } | undefined;
@@ -858,7 +906,7 @@ declare const WorldConfigSchema: z.ZodObject<{
858
906
  memory?: boolean | undefined;
859
907
  } | undefined;
860
908
  leveldb?: {
861
- path: string;
909
+ location: string;
862
910
  } | undefined;
863
911
  autoSaveIntervalMs?: number | undefined;
864
912
  } | undefined;
package/dist/index.js CHANGED
@@ -36,14 +36,18 @@ var SQLiteConfigSchema = z.object({
36
36
  memory: z.boolean().optional()
37
37
  });
38
38
  var PostgresConfigSchema = z.object({
39
- host: z.string(),
39
+ connectionString: z.string().optional(),
40
+ host: z.string().optional(),
40
41
  port: z.number().optional(),
41
- database: z.string(),
42
- user: z.string(),
43
- password: z.string(),
42
+ database: z.string().optional(),
43
+ user: z.string().optional(),
44
+ password: z.string().optional(),
44
45
  ssl: z.boolean().optional(),
45
46
  max: z.number().optional()
46
- });
47
+ }).refine(
48
+ (data) => data.connectionString || data.host && data.database && data.user,
49
+ { message: "Either connectionString or host+database+user is required" }
50
+ );
47
51
  var RedisConfigSchema = z.object({
48
52
  host: z.string(),
49
53
  port: z.number().optional(),
@@ -57,7 +61,7 @@ var MongoDBConfigSchema = z.object({
57
61
  useUnifiedTopology: z.boolean().optional()
58
62
  });
59
63
  var LevelDBConfigSchema = z.object({
60
- path: z.string()
64
+ location: z.string()
61
65
  });
62
66
  var PersistenceConfigSchema = z.object({
63
67
  type: z.enum(["memory", "postgres", "redis", "mongodb", "sqlite", "leveldb"]),