drizzle-kit 0.26.2-a43c673 → 0.26.2-b2b714a

Sign up to get free protection for your applications and to get access to all the features.
package/api.d.mts CHANGED
@@ -774,6 +774,28 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
774
774
  columns: string[];
775
775
  nullsNotDistinct: boolean;
776
776
  }>>>;
777
+ policies: zod.ZodDefault<zod.ZodRecord<zod.ZodString, zod.ZodObject<{
778
+ name: zod.ZodString;
779
+ as: zod.ZodOptional<zod.ZodEnum<["PERMISSIVE", "RESTRICTIVE"]>>;
780
+ for: zod.ZodOptional<zod.ZodEnum<["ALL", "SELECT", "INSERT", "UPDATE", "DELETE"]>>;
781
+ to: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
782
+ using: zod.ZodOptional<zod.ZodString>;
783
+ withCheck: zod.ZodOptional<zod.ZodString>;
784
+ }, "strict", zod.ZodTypeAny, {
785
+ name: string;
786
+ using?: string | undefined;
787
+ as?: "PERMISSIVE" | "RESTRICTIVE" | undefined;
788
+ for?: "ALL" | "SELECT" | "INSERT" | "UPDATE" | "DELETE" | undefined;
789
+ to?: string[] | undefined;
790
+ withCheck?: string | undefined;
791
+ }, {
792
+ name: string;
793
+ using?: string | undefined;
794
+ as?: "PERMISSIVE" | "RESTRICTIVE" | undefined;
795
+ for?: "ALL" | "SELECT" | "INSERT" | "UPDATE" | "DELETE" | undefined;
796
+ to?: string[] | undefined;
797
+ withCheck?: string | undefined;
798
+ }>>>;
777
799
  checkConstraints: zod.ZodDefault<zod.ZodRecord<zod.ZodString, zod.ZodObject<{
778
800
  name: zod.ZodString;
779
801
  value: zod.ZodString;
@@ -784,6 +806,7 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
784
806
  name: string;
785
807
  value: string;
786
808
  }>>>;
809
+ isRLSEnabled: zod.ZodDefault<zod.ZodBoolean>;
787
810
  }, "strict", zod.ZodTypeAny, {
788
811
  name: string;
789
812
  columns: Record<string, {
@@ -851,6 +874,15 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
851
874
  name: string;
852
875
  value: string;
853
876
  }>;
877
+ policies: Record<string, {
878
+ name: string;
879
+ using?: string | undefined;
880
+ as?: "PERMISSIVE" | "RESTRICTIVE" | undefined;
881
+ for?: "ALL" | "SELECT" | "INSERT" | "UPDATE" | "DELETE" | undefined;
882
+ to?: string[] | undefined;
883
+ withCheck?: string | undefined;
884
+ }>;
885
+ isRLSEnabled: boolean;
854
886
  }, {
855
887
  name: string;
856
888
  columns: Record<string, {
@@ -918,6 +950,15 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
918
950
  name: string;
919
951
  value: string;
920
952
  }> | undefined;
953
+ policies?: Record<string, {
954
+ name: string;
955
+ using?: string | undefined;
956
+ as?: "PERMISSIVE" | "RESTRICTIVE" | undefined;
957
+ for?: "ALL" | "SELECT" | "INSERT" | "UPDATE" | "DELETE" | undefined;
958
+ to?: string[] | undefined;
959
+ withCheck?: string | undefined;
960
+ }> | undefined;
961
+ isRLSEnabled?: boolean | undefined;
921
962
  }>>;
922
963
  enums: zod.ZodRecord<zod.ZodString, zod.ZodObject<{
923
964
  name: zod.ZodString;
@@ -1258,6 +1299,22 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
1258
1299
  cache?: string | undefined;
1259
1300
  cycle?: boolean | undefined;
1260
1301
  }>>>;
1302
+ roles: zod.ZodDefault<zod.ZodRecord<zod.ZodString, zod.ZodObject<{
1303
+ name: zod.ZodString;
1304
+ createDb: zod.ZodOptional<zod.ZodBoolean>;
1305
+ createRole: zod.ZodOptional<zod.ZodBoolean>;
1306
+ inherit: zod.ZodOptional<zod.ZodBoolean>;
1307
+ }, "strict", zod.ZodTypeAny, {
1308
+ name: string;
1309
+ createDb?: boolean | undefined;
1310
+ createRole?: boolean | undefined;
1311
+ inherit?: boolean | undefined;
1312
+ }, {
1313
+ name: string;
1314
+ createDb?: boolean | undefined;
1315
+ createRole?: boolean | undefined;
1316
+ inherit?: boolean | undefined;
1317
+ }>>>;
1261
1318
  _meta: zod.ZodObject<{
1262
1319
  schemas: zod.ZodRecord<zod.ZodString, zod.ZodString>;
1263
1320
  tables: zod.ZodRecord<zod.ZodString, zod.ZodString>;
@@ -1394,6 +1451,15 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
1394
1451
  name: string;
1395
1452
  value: string;
1396
1453
  }>;
1454
+ policies: Record<string, {
1455
+ name: string;
1456
+ using?: string | undefined;
1457
+ as?: "PERMISSIVE" | "RESTRICTIVE" | undefined;
1458
+ for?: "ALL" | "SELECT" | "INSERT" | "UPDATE" | "DELETE" | undefined;
1459
+ to?: string[] | undefined;
1460
+ withCheck?: string | undefined;
1461
+ }>;
1462
+ isRLSEnabled: boolean;
1397
1463
  }>;
1398
1464
  id: string;
1399
1465
  prevId: string;
@@ -1479,6 +1545,12 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
1479
1545
  cache?: string | undefined;
1480
1546
  cycle?: boolean | undefined;
1481
1547
  }>;
1548
+ roles: Record<string, {
1549
+ name: string;
1550
+ createDb?: boolean | undefined;
1551
+ createRole?: boolean | undefined;
1552
+ inherit?: boolean | undefined;
1553
+ }>;
1482
1554
  internal?: {
1483
1555
  tables: Record<string, {
1484
1556
  columns: Record<string, {
@@ -1557,6 +1629,15 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
1557
1629
  name: string;
1558
1630
  value: string;
1559
1631
  }> | undefined;
1632
+ policies?: Record<string, {
1633
+ name: string;
1634
+ using?: string | undefined;
1635
+ as?: "PERMISSIVE" | "RESTRICTIVE" | undefined;
1636
+ for?: "ALL" | "SELECT" | "INSERT" | "UPDATE" | "DELETE" | undefined;
1637
+ to?: string[] | undefined;
1638
+ withCheck?: string | undefined;
1639
+ }> | undefined;
1640
+ isRLSEnabled?: boolean | undefined;
1560
1641
  }>;
1561
1642
  id: string;
1562
1643
  prevId: string;
@@ -1652,6 +1733,12 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
1652
1733
  cache?: string | undefined;
1653
1734
  cycle?: boolean | undefined;
1654
1735
  }> | undefined;
1736
+ roles?: Record<string, {
1737
+ name: string;
1738
+ createDb?: boolean | undefined;
1739
+ createRole?: boolean | undefined;
1740
+ inherit?: boolean | undefined;
1741
+ }> | undefined;
1655
1742
  }>;
1656
1743
  type PgSchema = TypeOf<typeof pgSchema>;
1657
1744
 
@@ -2224,10 +2311,19 @@ declare const upPgSnapshot: (snapshot: Record<string, unknown>) => {
2224
2311
  columns: string[];
2225
2312
  nullsNotDistinct: boolean;
2226
2313
  }>;
2314
+ policies: Record<string, {
2315
+ name: string;
2316
+ as?: "PERMISSIVE" | "RESTRICTIVE" | undefined;
2317
+ for?: "ALL" | "SELECT" | "INSERT" | "UPDATE" | "DELETE" | undefined;
2318
+ to?: string[] | undefined;
2319
+ using?: string | undefined;
2320
+ withCheck?: string | undefined;
2321
+ }>;
2227
2322
  checkConstraints: Record<string, {
2228
2323
  value: string;
2229
2324
  name: string;
2230
2325
  }>;
2326
+ isRLSEnabled: boolean;
2231
2327
  }>;
2232
2328
  enums: Record<string, {
2233
2329
  values: string[];
@@ -2289,9 +2385,9 @@ declare const upPgSnapshot: (snapshot: Record<string, unknown>) => {
2289
2385
  logAutovacuumMinDuration?: number | undefined;
2290
2386
  userCatalogTable?: boolean | undefined;
2291
2387
  } | undefined;
2388
+ using?: string | undefined;
2292
2389
  definition?: string | undefined;
2293
2390
  withNoData?: boolean | undefined;
2294
- using?: string | undefined;
2295
2391
  tablespace?: string | undefined;
2296
2392
  }>;
2297
2393
  sequences: Record<string, {
@@ -2304,6 +2400,12 @@ declare const upPgSnapshot: (snapshot: Record<string, unknown>) => {
2304
2400
  cache?: string | undefined;
2305
2401
  cycle?: boolean | undefined;
2306
2402
  }>;
2403
+ roles: Record<string, {
2404
+ name: string;
2405
+ createDb?: boolean | undefined;
2406
+ createRole?: boolean | undefined;
2407
+ inherit?: boolean | undefined;
2408
+ }>;
2307
2409
  _meta: {
2308
2410
  tables: Record<string, string>;
2309
2411
  columns: Record<string, string>;
package/api.d.ts CHANGED
@@ -774,6 +774,28 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
774
774
  columns: string[];
775
775
  nullsNotDistinct: boolean;
776
776
  }>>>;
777
+ policies: zod.ZodDefault<zod.ZodRecord<zod.ZodString, zod.ZodObject<{
778
+ name: zod.ZodString;
779
+ as: zod.ZodOptional<zod.ZodEnum<["PERMISSIVE", "RESTRICTIVE"]>>;
780
+ for: zod.ZodOptional<zod.ZodEnum<["ALL", "SELECT", "INSERT", "UPDATE", "DELETE"]>>;
781
+ to: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
782
+ using: zod.ZodOptional<zod.ZodString>;
783
+ withCheck: zod.ZodOptional<zod.ZodString>;
784
+ }, "strict", zod.ZodTypeAny, {
785
+ name: string;
786
+ using?: string | undefined;
787
+ as?: "PERMISSIVE" | "RESTRICTIVE" | undefined;
788
+ for?: "ALL" | "SELECT" | "INSERT" | "UPDATE" | "DELETE" | undefined;
789
+ to?: string[] | undefined;
790
+ withCheck?: string | undefined;
791
+ }, {
792
+ name: string;
793
+ using?: string | undefined;
794
+ as?: "PERMISSIVE" | "RESTRICTIVE" | undefined;
795
+ for?: "ALL" | "SELECT" | "INSERT" | "UPDATE" | "DELETE" | undefined;
796
+ to?: string[] | undefined;
797
+ withCheck?: string | undefined;
798
+ }>>>;
777
799
  checkConstraints: zod.ZodDefault<zod.ZodRecord<zod.ZodString, zod.ZodObject<{
778
800
  name: zod.ZodString;
779
801
  value: zod.ZodString;
@@ -784,6 +806,7 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
784
806
  name: string;
785
807
  value: string;
786
808
  }>>>;
809
+ isRLSEnabled: zod.ZodDefault<zod.ZodBoolean>;
787
810
  }, "strict", zod.ZodTypeAny, {
788
811
  name: string;
789
812
  columns: Record<string, {
@@ -851,6 +874,15 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
851
874
  name: string;
852
875
  value: string;
853
876
  }>;
877
+ policies: Record<string, {
878
+ name: string;
879
+ using?: string | undefined;
880
+ as?: "PERMISSIVE" | "RESTRICTIVE" | undefined;
881
+ for?: "ALL" | "SELECT" | "INSERT" | "UPDATE" | "DELETE" | undefined;
882
+ to?: string[] | undefined;
883
+ withCheck?: string | undefined;
884
+ }>;
885
+ isRLSEnabled: boolean;
854
886
  }, {
855
887
  name: string;
856
888
  columns: Record<string, {
@@ -918,6 +950,15 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
918
950
  name: string;
919
951
  value: string;
920
952
  }> | undefined;
953
+ policies?: Record<string, {
954
+ name: string;
955
+ using?: string | undefined;
956
+ as?: "PERMISSIVE" | "RESTRICTIVE" | undefined;
957
+ for?: "ALL" | "SELECT" | "INSERT" | "UPDATE" | "DELETE" | undefined;
958
+ to?: string[] | undefined;
959
+ withCheck?: string | undefined;
960
+ }> | undefined;
961
+ isRLSEnabled?: boolean | undefined;
921
962
  }>>;
922
963
  enums: zod.ZodRecord<zod.ZodString, zod.ZodObject<{
923
964
  name: zod.ZodString;
@@ -1258,6 +1299,22 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
1258
1299
  cache?: string | undefined;
1259
1300
  cycle?: boolean | undefined;
1260
1301
  }>>>;
1302
+ roles: zod.ZodDefault<zod.ZodRecord<zod.ZodString, zod.ZodObject<{
1303
+ name: zod.ZodString;
1304
+ createDb: zod.ZodOptional<zod.ZodBoolean>;
1305
+ createRole: zod.ZodOptional<zod.ZodBoolean>;
1306
+ inherit: zod.ZodOptional<zod.ZodBoolean>;
1307
+ }, "strict", zod.ZodTypeAny, {
1308
+ name: string;
1309
+ createDb?: boolean | undefined;
1310
+ createRole?: boolean | undefined;
1311
+ inherit?: boolean | undefined;
1312
+ }, {
1313
+ name: string;
1314
+ createDb?: boolean | undefined;
1315
+ createRole?: boolean | undefined;
1316
+ inherit?: boolean | undefined;
1317
+ }>>>;
1261
1318
  _meta: zod.ZodObject<{
1262
1319
  schemas: zod.ZodRecord<zod.ZodString, zod.ZodString>;
1263
1320
  tables: zod.ZodRecord<zod.ZodString, zod.ZodString>;
@@ -1394,6 +1451,15 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
1394
1451
  name: string;
1395
1452
  value: string;
1396
1453
  }>;
1454
+ policies: Record<string, {
1455
+ name: string;
1456
+ using?: string | undefined;
1457
+ as?: "PERMISSIVE" | "RESTRICTIVE" | undefined;
1458
+ for?: "ALL" | "SELECT" | "INSERT" | "UPDATE" | "DELETE" | undefined;
1459
+ to?: string[] | undefined;
1460
+ withCheck?: string | undefined;
1461
+ }>;
1462
+ isRLSEnabled: boolean;
1397
1463
  }>;
1398
1464
  id: string;
1399
1465
  prevId: string;
@@ -1479,6 +1545,12 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
1479
1545
  cache?: string | undefined;
1480
1546
  cycle?: boolean | undefined;
1481
1547
  }>;
1548
+ roles: Record<string, {
1549
+ name: string;
1550
+ createDb?: boolean | undefined;
1551
+ createRole?: boolean | undefined;
1552
+ inherit?: boolean | undefined;
1553
+ }>;
1482
1554
  internal?: {
1483
1555
  tables: Record<string, {
1484
1556
  columns: Record<string, {
@@ -1557,6 +1629,15 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
1557
1629
  name: string;
1558
1630
  value: string;
1559
1631
  }> | undefined;
1632
+ policies?: Record<string, {
1633
+ name: string;
1634
+ using?: string | undefined;
1635
+ as?: "PERMISSIVE" | "RESTRICTIVE" | undefined;
1636
+ for?: "ALL" | "SELECT" | "INSERT" | "UPDATE" | "DELETE" | undefined;
1637
+ to?: string[] | undefined;
1638
+ withCheck?: string | undefined;
1639
+ }> | undefined;
1640
+ isRLSEnabled?: boolean | undefined;
1560
1641
  }>;
1561
1642
  id: string;
1562
1643
  prevId: string;
@@ -1652,6 +1733,12 @@ declare const pgSchema: zod.ZodObject<zod.objectUtil.extendShape<{
1652
1733
  cache?: string | undefined;
1653
1734
  cycle?: boolean | undefined;
1654
1735
  }> | undefined;
1736
+ roles?: Record<string, {
1737
+ name: string;
1738
+ createDb?: boolean | undefined;
1739
+ createRole?: boolean | undefined;
1740
+ inherit?: boolean | undefined;
1741
+ }> | undefined;
1655
1742
  }>;
1656
1743
  type PgSchema = TypeOf<typeof pgSchema>;
1657
1744
 
@@ -2224,10 +2311,19 @@ declare const upPgSnapshot: (snapshot: Record<string, unknown>) => {
2224
2311
  columns: string[];
2225
2312
  nullsNotDistinct: boolean;
2226
2313
  }>;
2314
+ policies: Record<string, {
2315
+ name: string;
2316
+ as?: "PERMISSIVE" | "RESTRICTIVE" | undefined;
2317
+ for?: "ALL" | "SELECT" | "INSERT" | "UPDATE" | "DELETE" | undefined;
2318
+ to?: string[] | undefined;
2319
+ using?: string | undefined;
2320
+ withCheck?: string | undefined;
2321
+ }>;
2227
2322
  checkConstraints: Record<string, {
2228
2323
  value: string;
2229
2324
  name: string;
2230
2325
  }>;
2326
+ isRLSEnabled: boolean;
2231
2327
  }>;
2232
2328
  enums: Record<string, {
2233
2329
  values: string[];
@@ -2289,9 +2385,9 @@ declare const upPgSnapshot: (snapshot: Record<string, unknown>) => {
2289
2385
  logAutovacuumMinDuration?: number | undefined;
2290
2386
  userCatalogTable?: boolean | undefined;
2291
2387
  } | undefined;
2388
+ using?: string | undefined;
2292
2389
  definition?: string | undefined;
2293
2390
  withNoData?: boolean | undefined;
2294
- using?: string | undefined;
2295
2391
  tablespace?: string | undefined;
2296
2392
  }>;
2297
2393
  sequences: Record<string, {
@@ -2304,6 +2400,12 @@ declare const upPgSnapshot: (snapshot: Record<string, unknown>) => {
2304
2400
  cache?: string | undefined;
2305
2401
  cycle?: boolean | undefined;
2306
2402
  }>;
2403
+ roles: Record<string, {
2404
+ name: string;
2405
+ createDb?: boolean | undefined;
2406
+ createRole?: boolean | undefined;
2407
+ inherit?: boolean | undefined;
2408
+ }>;
2307
2409
  _meta: {
2308
2410
  tables: Record<string, string>;
2309
2411
  columns: Record<string, string>;