@carllee1983/dbcli 1.45.1 → 1.47.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/core.d.ts CHANGED
@@ -29,6 +29,12 @@ export interface ConnectionOptions {
29
29
  uri?: string;
30
30
  /** MongoDB auth database — used when building URI from host/port/user/password (default: 'admin') */
31
31
  authSource?: string;
32
+ /** MongoDB replica set name (optional, field-based config) */
33
+ replicaSet?: string;
34
+ /** MongoDB TLS switch (optional, field-based config; implied true when srv) */
35
+ tls?: boolean;
36
+ /** MongoDB SRV lookup — build a mongodb+srv:// URI from host (optional, field-based config) */
37
+ srv?: boolean;
32
38
  /** Connection timeout in milliseconds (default: 5000) */
33
39
  timeout?: number;
34
40
  /** Elasticsearch protocol (http or https) */
@@ -349,13 +355,13 @@ export declare class BlacklistError extends Error {
349
355
  * Enables system-aware instantiation without coupling CLI commands to specific drivers
350
356
  */
351
357
  export declare class AdapterFactory {
352
- static createSqlAdapter(options: SqlConnectionOptions): DatabaseAdapter;
353
- static createQueryableAdapter(options: QueryableConnectionOptions): QueryableAdapter;
358
+ static createSqlAdapter(rawOptions: SqlConnectionOptions): DatabaseAdapter;
359
+ static createQueryableAdapter(rawOptions: QueryableConnectionOptions): QueryableAdapter;
354
360
  static createAdapter(options: SqlConnectionOptions): DatabaseAdapter;
355
361
  static createAdapter(options: QueryableConnectionOptions): QueryableAdapter;
356
362
  static createAdapter(options: ConnectionOptions): DatabaseAdapter | QueryableAdapter;
357
363
  static createMongoDBAdapter(options: ConnectionOptions): QueryableAdapter;
358
- static createRedisAdapter(options: ConnectionOptions, blacklistRules?: string[], maskRules?: RedisMaskRule[]): QueryableAdapter;
364
+ static createRedisAdapter(rawOptions: ConnectionOptions, blacklistRules?: string[], maskRules?: RedisMaskRule[]): QueryableAdapter;
359
365
  static createElasticsearchAdapter(options: ConnectionOptions): QueryableAdapter;
360
366
  }
361
367
  /**
@@ -430,6 +436,16 @@ interface MongoDBConnectionConfig {
430
436
  database: string | {
431
437
  $env: string;
432
438
  };
439
+ /** Auth database; defaults to 'admin' when credentials are present */
440
+ authSource?: string | {
441
+ $env: string;
442
+ };
443
+ replicaSet?: string | {
444
+ $env: string;
445
+ };
446
+ tls?: boolean;
447
+ /** Build a mongodb+srv:// URI from host and expand it via DNS SRV lookup */
448
+ srv?: boolean;
433
449
  }
434
450
  interface RedisConnectionConfig {
435
451
  system: "redis";
@@ -652,6 +668,7 @@ export declare class BlacklistValidator {
652
668
  declare const DbcliConfigSchema: z.ZodObject<{
653
669
  connection: z.ZodUnion<[
654
670
  z.ZodObject<{
671
+ timeout: z.ZodOptional<z.ZodNumber>;
655
672
  system: z.ZodEnum<[
656
673
  "postgresql",
657
674
  "mysql",
@@ -724,6 +741,7 @@ declare const DbcliConfigSchema: z.ZodObject<{
724
741
  database: string | {
725
742
  $env: string;
726
743
  };
744
+ timeout?: number | undefined;
727
745
  }, {
728
746
  user: string | {
729
747
  $env: string;
@@ -738,11 +756,13 @@ declare const DbcliConfigSchema: z.ZodObject<{
738
756
  database: string | {
739
757
  $env: string;
740
758
  };
759
+ timeout?: number | undefined;
741
760
  password?: string | {
742
761
  $env: string;
743
762
  } | undefined;
744
763
  }>,
745
764
  z.ZodObject<{
765
+ timeout: z.ZodOptional<z.ZodNumber>;
746
766
  system: z.ZodLiteral<"mongodb">;
747
767
  uri: z.ZodOptional<z.ZodUnion<[
748
768
  z.ZodString,
@@ -804,6 +824,28 @@ declare const DbcliConfigSchema: z.ZodObject<{
804
824
  $env: string;
805
825
  }>
806
826
  ]>>>;
827
+ authSource: z.ZodOptional<z.ZodUnion<[
828
+ z.ZodString,
829
+ z.ZodObject<{
830
+ $env: z.ZodString;
831
+ }, "strict", z.ZodTypeAny, {
832
+ $env: string;
833
+ }, {
834
+ $env: string;
835
+ }>
836
+ ]>>;
837
+ replicaSet: z.ZodOptional<z.ZodUnion<[
838
+ z.ZodString,
839
+ z.ZodObject<{
840
+ $env: z.ZodString;
841
+ }, "strict", z.ZodTypeAny, {
842
+ $env: string;
843
+ }, {
844
+ $env: string;
845
+ }>
846
+ ]>>;
847
+ tls: z.ZodOptional<z.ZodBoolean>;
848
+ srv: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
807
849
  }, "strip", z.ZodTypeAny, {
808
850
  password: string | {
809
851
  $env: string;
@@ -821,11 +863,21 @@ declare const DbcliConfigSchema: z.ZodObject<{
821
863
  database: string | {
822
864
  $env: string;
823
865
  };
866
+ srv: boolean;
867
+ timeout?: number | undefined;
868
+ authSource?: string | {
869
+ $env: string;
870
+ } | undefined;
871
+ replicaSet?: string | {
872
+ $env: string;
873
+ } | undefined;
874
+ tls?: boolean | undefined;
824
875
  uri?: string | {
825
876
  $env: string;
826
877
  } | undefined;
827
878
  }, {
828
879
  system: "mongodb";
880
+ timeout?: number | undefined;
829
881
  password?: string | {
830
882
  $env: string;
831
883
  } | undefined;
@@ -841,11 +893,20 @@ declare const DbcliConfigSchema: z.ZodObject<{
841
893
  database?: string | {
842
894
  $env: string;
843
895
  } | undefined;
896
+ authSource?: string | {
897
+ $env: string;
898
+ } | undefined;
899
+ replicaSet?: string | {
900
+ $env: string;
901
+ } | undefined;
902
+ tls?: boolean | undefined;
903
+ srv?: boolean | undefined;
844
904
  uri?: string | {
845
905
  $env: string;
846
906
  } | undefined;
847
907
  }>,
848
908
  z.ZodObject<{
909
+ timeout: z.ZodOptional<z.ZodNumber>;
849
910
  system: z.ZodLiteral<"redis">;
850
911
  host: z.ZodUnion<[
851
912
  z.ZodString,
@@ -914,6 +975,7 @@ declare const DbcliConfigSchema: z.ZodObject<{
914
975
  database: string | {
915
976
  $env: string;
916
977
  };
978
+ timeout?: number | undefined;
917
979
  }, {
918
980
  system: "redis";
919
981
  host: string | {
@@ -922,6 +984,7 @@ declare const DbcliConfigSchema: z.ZodObject<{
922
984
  port: number | {
923
985
  $env: string;
924
986
  };
987
+ timeout?: number | undefined;
925
988
  password?: string | {
926
989
  $env: string;
927
990
  } | undefined;
@@ -933,6 +996,7 @@ declare const DbcliConfigSchema: z.ZodObject<{
933
996
  } | undefined;
934
997
  }>,
935
998
  z.ZodObject<{
999
+ timeout: z.ZodOptional<z.ZodNumber>;
936
1000
  system: z.ZodLiteral<"elasticsearch">;
937
1001
  protocol: z.ZodDefault<z.ZodOptional<z.ZodEnum<[
938
1002
  "http",
@@ -1030,6 +1094,7 @@ declare const DbcliConfigSchema: z.ZodObject<{
1030
1094
  };
1031
1095
  rejectUnauthorized: boolean;
1032
1096
  protocol: "http" | "https";
1097
+ timeout?: number | undefined;
1033
1098
  nodes?: string[] | undefined;
1034
1099
  cloudId?: string | {
1035
1100
  $env: string;
@@ -1040,6 +1105,7 @@ declare const DbcliConfigSchema: z.ZodObject<{
1040
1105
  caPath?: string | undefined;
1041
1106
  }, {
1042
1107
  system: "elasticsearch";
1108
+ timeout?: number | undefined;
1043
1109
  password?: string | {
1044
1110
  $env: string;
1045
1111
  } | undefined;
@@ -1183,6 +1249,15 @@ declare const DbcliConfigSchema: z.ZodObject<{
1183
1249
  database: string | {
1184
1250
  $env: string;
1185
1251
  };
1252
+ srv: boolean;
1253
+ timeout?: number | undefined;
1254
+ authSource?: string | {
1255
+ $env: string;
1256
+ } | undefined;
1257
+ replicaSet?: string | {
1258
+ $env: string;
1259
+ } | undefined;
1260
+ tls?: boolean | undefined;
1186
1261
  uri?: string | {
1187
1262
  $env: string;
1188
1263
  } | undefined;
@@ -1203,6 +1278,7 @@ declare const DbcliConfigSchema: z.ZodObject<{
1203
1278
  database: string | {
1204
1279
  $env: string;
1205
1280
  };
1281
+ timeout?: number | undefined;
1206
1282
  } | {
1207
1283
  password: string | {
1208
1284
  $env: string;
@@ -1220,6 +1296,7 @@ declare const DbcliConfigSchema: z.ZodObject<{
1220
1296
  database: string | {
1221
1297
  $env: string;
1222
1298
  };
1299
+ timeout?: number | undefined;
1223
1300
  } | {
1224
1301
  password: string | {
1225
1302
  $env: string;
@@ -1239,6 +1316,7 @@ declare const DbcliConfigSchema: z.ZodObject<{
1239
1316
  };
1240
1317
  rejectUnauthorized: boolean;
1241
1318
  protocol: "http" | "https";
1319
+ timeout?: number | undefined;
1242
1320
  nodes?: string[] | undefined;
1243
1321
  cloudId?: string | {
1244
1322
  $env: string;
@@ -1258,6 +1336,7 @@ declare const DbcliConfigSchema: z.ZodObject<{
1258
1336
  }, {
1259
1337
  connection: {
1260
1338
  system: "mongodb";
1339
+ timeout?: number | undefined;
1261
1340
  password?: string | {
1262
1341
  $env: string;
1263
1342
  } | undefined;
@@ -1273,6 +1352,14 @@ declare const DbcliConfigSchema: z.ZodObject<{
1273
1352
  database?: string | {
1274
1353
  $env: string;
1275
1354
  } | undefined;
1355
+ authSource?: string | {
1356
+ $env: string;
1357
+ } | undefined;
1358
+ replicaSet?: string | {
1359
+ $env: string;
1360
+ } | undefined;
1361
+ tls?: boolean | undefined;
1362
+ srv?: boolean | undefined;
1276
1363
  uri?: string | {
1277
1364
  $env: string;
1278
1365
  } | undefined;
@@ -1290,6 +1377,7 @@ declare const DbcliConfigSchema: z.ZodObject<{
1290
1377
  database: string | {
1291
1378
  $env: string;
1292
1379
  };
1380
+ timeout?: number | undefined;
1293
1381
  password?: string | {
1294
1382
  $env: string;
1295
1383
  } | undefined;
@@ -1301,6 +1389,7 @@ declare const DbcliConfigSchema: z.ZodObject<{
1301
1389
  port: number | {
1302
1390
  $env: string;
1303
1391
  };
1392
+ timeout?: number | undefined;
1304
1393
  password?: string | {
1305
1394
  $env: string;
1306
1395
  } | undefined;
@@ -1312,6 +1401,7 @@ declare const DbcliConfigSchema: z.ZodObject<{
1312
1401
  } | undefined;
1313
1402
  } | {
1314
1403
  system: "elasticsearch";
1404
+ timeout?: number | undefined;
1315
1405
  password?: string | {
1316
1406
  $env: string;
1317
1407
  } | undefined;
@@ -1373,6 +1463,7 @@ declare const DbcliConfigV2Schema: z.ZodEffects<z.ZodObject<{
1373
1463
  default: z.ZodString;
1374
1464
  connections: z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodUnion<[
1375
1465
  z.ZodObject<{
1466
+ timeout: z.ZodOptional<z.ZodNumber>;
1376
1467
  system: z.ZodEnum<[
1377
1468
  "postgresql",
1378
1469
  "mysql",
@@ -1455,6 +1546,7 @@ declare const DbcliConfigV2Schema: z.ZodEffects<z.ZodObject<{
1455
1546
  $env: string;
1456
1547
  };
1457
1548
  permission: "admin" | "query-only" | "read-write" | "data-admin";
1549
+ timeout?: number | undefined;
1458
1550
  envFile?: string | undefined;
1459
1551
  environment?: string | undefined;
1460
1552
  }, {
@@ -1471,6 +1563,7 @@ declare const DbcliConfigV2Schema: z.ZodEffects<z.ZodObject<{
1471
1563
  database: string | {
1472
1564
  $env: string;
1473
1565
  };
1566
+ timeout?: number | undefined;
1474
1567
  password?: string | {
1475
1568
  $env: string;
1476
1569
  } | undefined;
@@ -1479,6 +1572,7 @@ declare const DbcliConfigV2Schema: z.ZodEffects<z.ZodObject<{
1479
1572
  environment?: string | undefined;
1480
1573
  }>,
1481
1574
  z.ZodObject<{
1575
+ timeout: z.ZodOptional<z.ZodNumber>;
1482
1576
  system: z.ZodLiteral<"mongodb">;
1483
1577
  uri: z.ZodOptional<z.ZodUnion<[
1484
1578
  z.ZodString,
@@ -1540,6 +1634,28 @@ declare const DbcliConfigV2Schema: z.ZodEffects<z.ZodObject<{
1540
1634
  $env: string;
1541
1635
  }>
1542
1636
  ]>>>;
1637
+ authSource: z.ZodOptional<z.ZodUnion<[
1638
+ z.ZodString,
1639
+ z.ZodObject<{
1640
+ $env: z.ZodString;
1641
+ }, "strict", z.ZodTypeAny, {
1642
+ $env: string;
1643
+ }, {
1644
+ $env: string;
1645
+ }>
1646
+ ]>>;
1647
+ replicaSet: z.ZodOptional<z.ZodUnion<[
1648
+ z.ZodString,
1649
+ z.ZodObject<{
1650
+ $env: z.ZodString;
1651
+ }, "strict", z.ZodTypeAny, {
1652
+ $env: string;
1653
+ }, {
1654
+ $env: string;
1655
+ }>
1656
+ ]>>;
1657
+ tls: z.ZodOptional<z.ZodBoolean>;
1658
+ srv: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1543
1659
  } & {
1544
1660
  permission: z.ZodDefault<z.ZodEnum<[
1545
1661
  "query-only",
@@ -1566,7 +1682,16 @@ declare const DbcliConfigV2Schema: z.ZodEffects<z.ZodObject<{
1566
1682
  database: string | {
1567
1683
  $env: string;
1568
1684
  };
1685
+ srv: boolean;
1569
1686
  permission: "admin" | "query-only" | "read-write" | "data-admin";
1687
+ timeout?: number | undefined;
1688
+ authSource?: string | {
1689
+ $env: string;
1690
+ } | undefined;
1691
+ replicaSet?: string | {
1692
+ $env: string;
1693
+ } | undefined;
1694
+ tls?: boolean | undefined;
1570
1695
  uri?: string | {
1571
1696
  $env: string;
1572
1697
  } | undefined;
@@ -1574,6 +1699,7 @@ declare const DbcliConfigV2Schema: z.ZodEffects<z.ZodObject<{
1574
1699
  environment?: string | undefined;
1575
1700
  }, {
1576
1701
  system: "mongodb";
1702
+ timeout?: number | undefined;
1577
1703
  password?: string | {
1578
1704
  $env: string;
1579
1705
  } | undefined;
@@ -1589,6 +1715,14 @@ declare const DbcliConfigV2Schema: z.ZodEffects<z.ZodObject<{
1589
1715
  database?: string | {
1590
1716
  $env: string;
1591
1717
  } | undefined;
1718
+ authSource?: string | {
1719
+ $env: string;
1720
+ } | undefined;
1721
+ replicaSet?: string | {
1722
+ $env: string;
1723
+ } | undefined;
1724
+ tls?: boolean | undefined;
1725
+ srv?: boolean | undefined;
1592
1726
  uri?: string | {
1593
1727
  $env: string;
1594
1728
  } | undefined;
@@ -1597,6 +1731,7 @@ declare const DbcliConfigV2Schema: z.ZodEffects<z.ZodObject<{
1597
1731
  environment?: string | undefined;
1598
1732
  }>,
1599
1733
  z.ZodObject<{
1734
+ timeout: z.ZodOptional<z.ZodNumber>;
1600
1735
  system: z.ZodLiteral<"redis">;
1601
1736
  host: z.ZodUnion<[
1602
1737
  z.ZodString,
@@ -1675,6 +1810,7 @@ declare const DbcliConfigV2Schema: z.ZodEffects<z.ZodObject<{
1675
1810
  $env: string;
1676
1811
  };
1677
1812
  permission: "admin" | "query-only" | "read-write" | "data-admin";
1813
+ timeout?: number | undefined;
1678
1814
  envFile?: string | undefined;
1679
1815
  environment?: string | undefined;
1680
1816
  }, {
@@ -1685,6 +1821,7 @@ declare const DbcliConfigV2Schema: z.ZodEffects<z.ZodObject<{
1685
1821
  port: number | {
1686
1822
  $env: string;
1687
1823
  };
1824
+ timeout?: number | undefined;
1688
1825
  password?: string | {
1689
1826
  $env: string;
1690
1827
  } | undefined;
@@ -1699,6 +1836,7 @@ declare const DbcliConfigV2Schema: z.ZodEffects<z.ZodObject<{
1699
1836
  environment?: string | undefined;
1700
1837
  }>,
1701
1838
  z.ZodObject<{
1839
+ timeout: z.ZodOptional<z.ZodNumber>;
1702
1840
  system: z.ZodLiteral<"elasticsearch">;
1703
1841
  protocol: z.ZodDefault<z.ZodOptional<z.ZodEnum<[
1704
1842
  "http",
@@ -1806,6 +1944,7 @@ declare const DbcliConfigV2Schema: z.ZodEffects<z.ZodObject<{
1806
1944
  rejectUnauthorized: boolean;
1807
1945
  protocol: "http" | "https";
1808
1946
  permission: "admin" | "query-only" | "read-write" | "data-admin";
1947
+ timeout?: number | undefined;
1809
1948
  nodes?: string[] | undefined;
1810
1949
  cloudId?: string | {
1811
1950
  $env: string;
@@ -1818,6 +1957,7 @@ declare const DbcliConfigV2Schema: z.ZodEffects<z.ZodObject<{
1818
1957
  environment?: string | undefined;
1819
1958
  }, {
1820
1959
  system: "elasticsearch";
1960
+ timeout?: number | undefined;
1821
1961
  password?: string | {
1822
1962
  $env: string;
1823
1963
  } | undefined;
@@ -1865,6 +2005,7 @@ declare const DbcliConfigV2Schema: z.ZodEffects<z.ZodObject<{
1865
2005
  $env: string;
1866
2006
  };
1867
2007
  permission: "admin" | "query-only" | "read-write" | "data-admin";
2008
+ timeout?: number | undefined;
1868
2009
  envFile?: string | undefined;
1869
2010
  environment?: string | undefined;
1870
2011
  } | {
@@ -1884,7 +2025,16 @@ declare const DbcliConfigV2Schema: z.ZodEffects<z.ZodObject<{
1884
2025
  database: string | {
1885
2026
  $env: string;
1886
2027
  };
2028
+ srv: boolean;
1887
2029
  permission: "admin" | "query-only" | "read-write" | "data-admin";
2030
+ timeout?: number | undefined;
2031
+ authSource?: string | {
2032
+ $env: string;
2033
+ } | undefined;
2034
+ replicaSet?: string | {
2035
+ $env: string;
2036
+ } | undefined;
2037
+ tls?: boolean | undefined;
1888
2038
  uri?: string | {
1889
2039
  $env: string;
1890
2040
  } | undefined;
@@ -1908,6 +2058,7 @@ declare const DbcliConfigV2Schema: z.ZodEffects<z.ZodObject<{
1908
2058
  $env: string;
1909
2059
  };
1910
2060
  permission: "admin" | "query-only" | "read-write" | "data-admin";
2061
+ timeout?: number | undefined;
1911
2062
  envFile?: string | undefined;
1912
2063
  environment?: string | undefined;
1913
2064
  } | {
@@ -1930,6 +2081,7 @@ declare const DbcliConfigV2Schema: z.ZodEffects<z.ZodObject<{
1930
2081
  rejectUnauthorized: boolean;
1931
2082
  protocol: "http" | "https";
1932
2083
  permission: "admin" | "query-only" | "read-write" | "data-admin";
2084
+ timeout?: number | undefined;
1933
2085
  nodes?: string[] | undefined;
1934
2086
  cloudId?: string | {
1935
2087
  $env: string;
@@ -1954,6 +2106,7 @@ declare const DbcliConfigV2Schema: z.ZodEffects<z.ZodObject<{
1954
2106
  database: string | {
1955
2107
  $env: string;
1956
2108
  };
2109
+ timeout?: number | undefined;
1957
2110
  password?: string | {
1958
2111
  $env: string;
1959
2112
  } | undefined;
@@ -1962,6 +2115,7 @@ declare const DbcliConfigV2Schema: z.ZodEffects<z.ZodObject<{
1962
2115
  environment?: string | undefined;
1963
2116
  } | {
1964
2117
  system: "mongodb";
2118
+ timeout?: number | undefined;
1965
2119
  password?: string | {
1966
2120
  $env: string;
1967
2121
  } | undefined;
@@ -1977,6 +2131,14 @@ declare const DbcliConfigV2Schema: z.ZodEffects<z.ZodObject<{
1977
2131
  database?: string | {
1978
2132
  $env: string;
1979
2133
  } | undefined;
2134
+ authSource?: string | {
2135
+ $env: string;
2136
+ } | undefined;
2137
+ replicaSet?: string | {
2138
+ $env: string;
2139
+ } | undefined;
2140
+ tls?: boolean | undefined;
2141
+ srv?: boolean | undefined;
1980
2142
  uri?: string | {
1981
2143
  $env: string;
1982
2144
  } | undefined;
@@ -1991,6 +2153,7 @@ declare const DbcliConfigV2Schema: z.ZodEffects<z.ZodObject<{
1991
2153
  port: number | {
1992
2154
  $env: string;
1993
2155
  };
2156
+ timeout?: number | undefined;
1994
2157
  password?: string | {
1995
2158
  $env: string;
1996
2159
  } | undefined;
@@ -2005,6 +2168,7 @@ declare const DbcliConfigV2Schema: z.ZodEffects<z.ZodObject<{
2005
2168
  environment?: string | undefined;
2006
2169
  } | {
2007
2170
  system: "elasticsearch";
2171
+ timeout?: number | undefined;
2008
2172
  password?: string | {
2009
2173
  $env: string;
2010
2174
  } | undefined;
@@ -2148,6 +2312,7 @@ declare const DbcliConfigV2Schema: z.ZodEffects<z.ZodObject<{
2148
2312
  $env: string;
2149
2313
  };
2150
2314
  permission: "admin" | "query-only" | "read-write" | "data-admin";
2315
+ timeout?: number | undefined;
2151
2316
  envFile?: string | undefined;
2152
2317
  environment?: string | undefined;
2153
2318
  } | {
@@ -2167,7 +2332,16 @@ declare const DbcliConfigV2Schema: z.ZodEffects<z.ZodObject<{
2167
2332
  database: string | {
2168
2333
  $env: string;
2169
2334
  };
2335
+ srv: boolean;
2170
2336
  permission: "admin" | "query-only" | "read-write" | "data-admin";
2337
+ timeout?: number | undefined;
2338
+ authSource?: string | {
2339
+ $env: string;
2340
+ } | undefined;
2341
+ replicaSet?: string | {
2342
+ $env: string;
2343
+ } | undefined;
2344
+ tls?: boolean | undefined;
2171
2345
  uri?: string | {
2172
2346
  $env: string;
2173
2347
  } | undefined;
@@ -2191,6 +2365,7 @@ declare const DbcliConfigV2Schema: z.ZodEffects<z.ZodObject<{
2191
2365
  $env: string;
2192
2366
  };
2193
2367
  permission: "admin" | "query-only" | "read-write" | "data-admin";
2368
+ timeout?: number | undefined;
2194
2369
  envFile?: string | undefined;
2195
2370
  environment?: string | undefined;
2196
2371
  } | {
@@ -2213,6 +2388,7 @@ declare const DbcliConfigV2Schema: z.ZodEffects<z.ZodObject<{
2213
2388
  rejectUnauthorized: boolean;
2214
2389
  protocol: "http" | "https";
2215
2390
  permission: "admin" | "query-only" | "read-write" | "data-admin";
2391
+ timeout?: number | undefined;
2216
2392
  nodes?: string[] | undefined;
2217
2393
  cloudId?: string | {
2218
2394
  $env: string;
@@ -2248,6 +2424,7 @@ declare const DbcliConfigV2Schema: z.ZodEffects<z.ZodObject<{
2248
2424
  database: string | {
2249
2425
  $env: string;
2250
2426
  };
2427
+ timeout?: number | undefined;
2251
2428
  password?: string | {
2252
2429
  $env: string;
2253
2430
  } | undefined;
@@ -2256,6 +2433,7 @@ declare const DbcliConfigV2Schema: z.ZodEffects<z.ZodObject<{
2256
2433
  environment?: string | undefined;
2257
2434
  } | {
2258
2435
  system: "mongodb";
2436
+ timeout?: number | undefined;
2259
2437
  password?: string | {
2260
2438
  $env: string;
2261
2439
  } | undefined;
@@ -2271,6 +2449,14 @@ declare const DbcliConfigV2Schema: z.ZodEffects<z.ZodObject<{
2271
2449
  database?: string | {
2272
2450
  $env: string;
2273
2451
  } | undefined;
2452
+ authSource?: string | {
2453
+ $env: string;
2454
+ } | undefined;
2455
+ replicaSet?: string | {
2456
+ $env: string;
2457
+ } | undefined;
2458
+ tls?: boolean | undefined;
2459
+ srv?: boolean | undefined;
2274
2460
  uri?: string | {
2275
2461
  $env: string;
2276
2462
  } | undefined;
@@ -2285,6 +2471,7 @@ declare const DbcliConfigV2Schema: z.ZodEffects<z.ZodObject<{
2285
2471
  port: number | {
2286
2472
  $env: string;
2287
2473
  };
2474
+ timeout?: number | undefined;
2288
2475
  password?: string | {
2289
2476
  $env: string;
2290
2477
  } | undefined;
@@ -2299,6 +2486,7 @@ declare const DbcliConfigV2Schema: z.ZodEffects<z.ZodObject<{
2299
2486
  environment?: string | undefined;
2300
2487
  } | {
2301
2488
  system: "elasticsearch";
2489
+ timeout?: number | undefined;
2302
2490
  password?: string | {
2303
2491
  $env: string;
2304
2492
  } | undefined;
@@ -2392,6 +2580,7 @@ declare const DbcliConfigV2Schema: z.ZodEffects<z.ZodObject<{
2392
2580
  $env: string;
2393
2581
  };
2394
2582
  permission: "admin" | "query-only" | "read-write" | "data-admin";
2583
+ timeout?: number | undefined;
2395
2584
  envFile?: string | undefined;
2396
2585
  environment?: string | undefined;
2397
2586
  } | {
@@ -2411,7 +2600,16 @@ declare const DbcliConfigV2Schema: z.ZodEffects<z.ZodObject<{
2411
2600
  database: string | {
2412
2601
  $env: string;
2413
2602
  };
2603
+ srv: boolean;
2414
2604
  permission: "admin" | "query-only" | "read-write" | "data-admin";
2605
+ timeout?: number | undefined;
2606
+ authSource?: string | {
2607
+ $env: string;
2608
+ } | undefined;
2609
+ replicaSet?: string | {
2610
+ $env: string;
2611
+ } | undefined;
2612
+ tls?: boolean | undefined;
2415
2613
  uri?: string | {
2416
2614
  $env: string;
2417
2615
  } | undefined;
@@ -2435,6 +2633,7 @@ declare const DbcliConfigV2Schema: z.ZodEffects<z.ZodObject<{
2435
2633
  $env: string;
2436
2634
  };
2437
2635
  permission: "admin" | "query-only" | "read-write" | "data-admin";
2636
+ timeout?: number | undefined;
2438
2637
  envFile?: string | undefined;
2439
2638
  environment?: string | undefined;
2440
2639
  } | {
@@ -2457,6 +2656,7 @@ declare const DbcliConfigV2Schema: z.ZodEffects<z.ZodObject<{
2457
2656
  rejectUnauthorized: boolean;
2458
2657
  protocol: "http" | "https";
2459
2658
  permission: "admin" | "query-only" | "read-write" | "data-admin";
2659
+ timeout?: number | undefined;
2460
2660
  nodes?: string[] | undefined;
2461
2661
  cloudId?: string | {
2462
2662
  $env: string;
@@ -2492,6 +2692,7 @@ declare const DbcliConfigV2Schema: z.ZodEffects<z.ZodObject<{
2492
2692
  database: string | {
2493
2693
  $env: string;
2494
2694
  };
2695
+ timeout?: number | undefined;
2495
2696
  password?: string | {
2496
2697
  $env: string;
2497
2698
  } | undefined;
@@ -2500,6 +2701,7 @@ declare const DbcliConfigV2Schema: z.ZodEffects<z.ZodObject<{
2500
2701
  environment?: string | undefined;
2501
2702
  } | {
2502
2703
  system: "mongodb";
2704
+ timeout?: number | undefined;
2503
2705
  password?: string | {
2504
2706
  $env: string;
2505
2707
  } | undefined;
@@ -2515,6 +2717,14 @@ declare const DbcliConfigV2Schema: z.ZodEffects<z.ZodObject<{
2515
2717
  database?: string | {
2516
2718
  $env: string;
2517
2719
  } | undefined;
2720
+ authSource?: string | {
2721
+ $env: string;
2722
+ } | undefined;
2723
+ replicaSet?: string | {
2724
+ $env: string;
2725
+ } | undefined;
2726
+ tls?: boolean | undefined;
2727
+ srv?: boolean | undefined;
2518
2728
  uri?: string | {
2519
2729
  $env: string;
2520
2730
  } | undefined;
@@ -2529,6 +2739,7 @@ declare const DbcliConfigV2Schema: z.ZodEffects<z.ZodObject<{
2529
2739
  port: number | {
2530
2740
  $env: string;
2531
2741
  };
2742
+ timeout?: number | undefined;
2532
2743
  password?: string | {
2533
2744
  $env: string;
2534
2745
  } | undefined;
@@ -2543,6 +2754,7 @@ declare const DbcliConfigV2Schema: z.ZodEffects<z.ZodObject<{
2543
2754
  environment?: string | undefined;
2544
2755
  } | {
2545
2756
  system: "elasticsearch";
2757
+ timeout?: number | undefined;
2546
2758
  password?: string | {
2547
2759
  $env: string;
2548
2760
  } | undefined;