@pipeline-builder/pipeline-data 4.3.2 → 4.3.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 (56) hide show
  1. package/lib/api/crud-service.d.ts +7 -0
  2. package/lib/api/crud-service.js +14 -3
  3. package/lib/api/ecosystem-privacy.d.ts +25 -0
  4. package/lib/api/ecosystem-privacy.js +58 -0
  5. package/lib/api/pipeline-step-resolution.d.ts +111 -0
  6. package/lib/api/pipeline-step-resolution.js +163 -0
  7. package/lib/api/plugin-consumption-policy.d.ts +8 -2
  8. package/lib/api/plugin-consumption-policy.js +20 -3
  9. package/lib/api/plugin-resolution.d.ts +26 -9
  10. package/lib/api/plugin-resolution.js +51 -33
  11. package/lib/api/public-directory.js +1 -1
  12. package/lib/api/reporting/analytics-queries.d.ts +6 -4
  13. package/lib/api/reporting/analytics-queries.js +15 -14
  14. package/lib/api/reporting/deploy-rollup.d.ts +2 -0
  15. package/lib/api/reporting/deploy-rollup.js +5 -1
  16. package/lib/api/reporting/failure-classifier.d.ts +2 -6
  17. package/lib/api/reporting/failure-classifier.js +22 -1
  18. package/lib/api/reporting/ingest.js +73 -16
  19. package/lib/api/reporting/plugin-exposure.d.ts +261 -15
  20. package/lib/api/reporting/plugin-exposure.js +423 -38
  21. package/lib/api/reporting/stakeholder/compose.d.ts +1 -1
  22. package/lib/api/reporting/stakeholder/compose.js +30 -1
  23. package/lib/api/reporting/stakeholder/store.d.ts +16 -2
  24. package/lib/api/reporting/stakeholder/store.js +17 -6
  25. package/lib/api/reporting/types.d.ts +80 -1
  26. package/lib/api/reporting/types.js +1 -1
  27. package/lib/api/reporting-service.d.ts +11 -4
  28. package/lib/api/reporting-service.js +106 -43
  29. package/lib/api/soft-delete-sweep.d.ts +8 -18
  30. package/lib/api/soft-delete-sweep.js +35 -5
  31. package/lib/api/support-cases.d.ts +380 -0
  32. package/lib/api/support-cases.js +671 -0
  33. package/lib/api/version-references.d.ts +80 -0
  34. package/lib/api/version-references.js +135 -0
  35. package/lib/core/query-filters.d.ts +3 -3
  36. package/lib/core/query-filters.js +1 -1
  37. package/lib/database/drizzle-schema.d.ts +4858 -2759
  38. package/lib/database/drizzle-schema.js +13 -3
  39. package/lib/database/index.d.ts +1 -1
  40. package/lib/database/index.js +2 -2
  41. package/lib/database/schema/ecosystem.d.ts +53 -0
  42. package/lib/database/schema/ecosystem.js +14 -3
  43. package/lib/database/schema/pipeline.d.ts +38 -0
  44. package/lib/database/schema/pipeline.js +20 -2
  45. package/lib/database/schema/plugin.d.ts +265 -0
  46. package/lib/database/schema/plugin.js +34 -3
  47. package/lib/database/schema/reporting-analytics.d.ts +786 -4
  48. package/lib/database/schema/reporting-analytics.js +111 -5
  49. package/lib/database/schema/support.d.ts +1093 -0
  50. package/lib/database/schema/support.js +323 -0
  51. package/lib/database/tenancy.d.ts +7 -5
  52. package/lib/database/tenancy.js +1 -1
  53. package/lib/index.d.ts +7 -3
  54. package/lib/index.js +11 -3
  55. package/lib/testing/exports.json +57 -0
  56. package/package.json +4 -3
@@ -40,9 +40,12 @@ export type ExposureSource = (typeof EXPOSURE_SOURCES)[number];
40
40
  * What an org decided about an exposure. `open` until someone looks;
41
41
  * `accepted` is a time-boxed decision with a reason and an owner, never a
42
42
  * permanent mute; `false_positive` is a scanner disagreement worth recording so
43
- * the same finding stops being re-raised as news.
43
+ * the same finding stops being re-raised as news. `fixed` = the pipeline moved
44
+ * to another version of the plugin; `removed` = the step (or the pipeline, or
45
+ * its deploy) is gone — the triage fields are KEPT, so a step re-added before
46
+ * an acceptance's deadline gets the acceptance back.
44
47
  */
45
- export declare const EXPOSURE_TRIAGE_STATES: readonly ['open', 'accepted', 'false_positive', 'fixed'];
48
+ export declare const EXPOSURE_TRIAGE_STATES: readonly ['open', 'accepted', 'false_positive', 'fixed', 'removed'];
46
49
  export type ExposureTriageState = (typeof EXPOSURE_TRIAGE_STATES)[number];
47
50
  /**
48
51
  * One deployment: an execution that reached an environment.
@@ -311,6 +314,25 @@ export declare const doraDeployment: import("drizzle-orm/pg-core").PgTableWithCo
311
314
  length: 10;
312
315
  $type: "high" | "low" | "medium";
313
316
  }>;
317
+ sourceEventId: import("drizzle-orm/pg-core").PgColumn<{
318
+ name: "source_event_id";
319
+ tableName: "dora_deployments";
320
+ dataType: "string";
321
+ columnType: "PgVarchar";
322
+ data: string;
323
+ driverParam: string;
324
+ notNull: false;
325
+ hasDefault: false;
326
+ isPrimaryKey: false;
327
+ isAutoincrement: false;
328
+ hasRuntimeDefault: false;
329
+ enumValues: [string, ...string[]];
330
+ baseColumn: never;
331
+ identity: undefined;
332
+ generated: undefined;
333
+ }, {}, {
334
+ length: 128;
335
+ }>;
314
336
  createdAt: import("drizzle-orm/pg-core").PgColumn<{
315
337
  name: "created_at";
316
338
  tableName: "dora_deployments";
@@ -760,6 +782,44 @@ export declare const pipelinePluginResolution: import("drizzle-orm/pg-core").PgT
760
782
  }, {}, {
761
783
  length: 50;
762
784
  }>;
785
+ resolvedPluginId: import("drizzle-orm/pg-core").PgColumn<{
786
+ name: "resolved_plugin_id";
787
+ tableName: "pipeline_plugin_resolution";
788
+ dataType: "string";
789
+ columnType: "PgVarchar";
790
+ data: string;
791
+ driverParam: string;
792
+ notNull: false;
793
+ hasDefault: false;
794
+ isPrimaryKey: false;
795
+ isAutoincrement: false;
796
+ hasRuntimeDefault: false;
797
+ enumValues: [string, ...string[]];
798
+ baseColumn: never;
799
+ identity: undefined;
800
+ generated: undefined;
801
+ }, {}, {
802
+ length: 255;
803
+ }>;
804
+ resolvedDigest: import("drizzle-orm/pg-core").PgColumn<{
805
+ name: "resolved_digest";
806
+ tableName: "pipeline_plugin_resolution";
807
+ dataType: "string";
808
+ columnType: "PgVarchar";
809
+ data: string;
810
+ driverParam: string;
811
+ notNull: false;
812
+ hasDefault: false;
813
+ isPrimaryKey: false;
814
+ isAutoincrement: false;
815
+ hasRuntimeDefault: false;
816
+ enumValues: [string, ...string[]];
817
+ baseColumn: never;
818
+ identity: undefined;
819
+ generated: undefined;
820
+ }, {}, {
821
+ length: 71;
822
+ }>;
763
823
  latestVersion: import("drizzle-orm/pg-core").PgColumn<{
764
824
  name: "latest_version";
765
825
  tableName: "pipeline_plugin_resolution";
@@ -815,6 +875,25 @@ export declare const pipelinePluginResolution: import("drizzle-orm/pg-core").PgT
815
875
  identity: undefined;
816
876
  generated: undefined;
817
877
  }, {}, {}>;
878
+ rootOrgId: import("drizzle-orm/pg-core").PgColumn<{
879
+ name: "root_org_id";
880
+ tableName: "pipeline_plugin_resolution";
881
+ dataType: "string";
882
+ columnType: "PgVarchar";
883
+ data: string;
884
+ driverParam: string;
885
+ notNull: false;
886
+ hasDefault: false;
887
+ isPrimaryKey: false;
888
+ isAutoincrement: false;
889
+ hasRuntimeDefault: false;
890
+ enumValues: [string, ...string[]];
891
+ baseColumn: never;
892
+ identity: undefined;
893
+ generated: undefined;
894
+ }, {}, {
895
+ length: 255;
896
+ }>;
818
897
  computedAt: import("drizzle-orm/pg-core").PgColumn<{
819
898
  name: "computed_at";
820
899
  tableName: "pipeline_plugin_resolution";
@@ -1060,6 +1139,111 @@ export declare const pluginVulnExposure: import("drizzle-orm/pg-core").PgTableWi
1060
1139
  }, {}, {
1061
1140
  $type: Record<string, unknown>[];
1062
1141
  }>;
1142
+ findingKeys: import("drizzle-orm/pg-core").PgColumn<{
1143
+ name: "finding_keys";
1144
+ tableName: "plugin_vuln_exposure";
1145
+ dataType: "array";
1146
+ columnType: "PgArray";
1147
+ data: string[];
1148
+ driverParam: string | string[];
1149
+ notNull: true;
1150
+ hasDefault: true;
1151
+ isPrimaryKey: false;
1152
+ isAutoincrement: false;
1153
+ hasRuntimeDefault: false;
1154
+ enumValues: [string, ...string[]];
1155
+ baseColumn: import("drizzle-orm").Column<{
1156
+ name: "finding_keys";
1157
+ tableName: "plugin_vuln_exposure";
1158
+ dataType: "string";
1159
+ columnType: "PgText";
1160
+ data: string;
1161
+ driverParam: string;
1162
+ notNull: false;
1163
+ hasDefault: false;
1164
+ isPrimaryKey: false;
1165
+ isAutoincrement: false;
1166
+ hasRuntimeDefault: false;
1167
+ enumValues: [string, ...string[]];
1168
+ baseColumn: never;
1169
+ identity: undefined;
1170
+ generated: undefined;
1171
+ }, {}, {}>;
1172
+ identity: undefined;
1173
+ generated: undefined;
1174
+ }, {}, {
1175
+ baseBuilder: import("drizzle-orm/pg-core").PgColumnBuilder<{
1176
+ name: "finding_keys";
1177
+ dataType: 'string';
1178
+ columnType: 'PgText';
1179
+ data: string;
1180
+ enumValues: [string, ...string[]];
1181
+ driverParam: string;
1182
+ }, {}, {}, import("drizzle-orm").ColumnBuilderExtraConfig>;
1183
+ size: undefined;
1184
+ $type: string[];
1185
+ }>;
1186
+ acceptedFindingKeys: import("drizzle-orm/pg-core").PgColumn<{
1187
+ name: "accepted_finding_keys";
1188
+ tableName: "plugin_vuln_exposure";
1189
+ dataType: "array";
1190
+ columnType: "PgArray";
1191
+ data: string[];
1192
+ driverParam: string | string[];
1193
+ notNull: true;
1194
+ hasDefault: true;
1195
+ isPrimaryKey: false;
1196
+ isAutoincrement: false;
1197
+ hasRuntimeDefault: false;
1198
+ enumValues: [string, ...string[]];
1199
+ baseColumn: import("drizzle-orm").Column<{
1200
+ name: "accepted_finding_keys";
1201
+ tableName: "plugin_vuln_exposure";
1202
+ dataType: "string";
1203
+ columnType: "PgText";
1204
+ data: string;
1205
+ driverParam: string;
1206
+ notNull: false;
1207
+ hasDefault: false;
1208
+ isPrimaryKey: false;
1209
+ isAutoincrement: false;
1210
+ hasRuntimeDefault: false;
1211
+ enumValues: [string, ...string[]];
1212
+ baseColumn: never;
1213
+ identity: undefined;
1214
+ generated: undefined;
1215
+ }, {}, {}>;
1216
+ identity: undefined;
1217
+ generated: undefined;
1218
+ }, {}, {
1219
+ baseBuilder: import("drizzle-orm/pg-core").PgColumnBuilder<{
1220
+ name: "accepted_finding_keys";
1221
+ dataType: 'string';
1222
+ columnType: 'PgText';
1223
+ data: string;
1224
+ enumValues: [string, ...string[]];
1225
+ driverParam: string;
1226
+ }, {}, {}, import("drizzle-orm").ColumnBuilderExtraConfig>;
1227
+ size: undefined;
1228
+ $type: string[];
1229
+ }>;
1230
+ acceptedKev: import("drizzle-orm/pg-core").PgColumn<{
1231
+ name: "accepted_kev";
1232
+ tableName: "plugin_vuln_exposure";
1233
+ dataType: "boolean";
1234
+ columnType: "PgBoolean";
1235
+ data: boolean;
1236
+ driverParam: boolean;
1237
+ notNull: true;
1238
+ hasDefault: true;
1239
+ isPrimaryKey: false;
1240
+ isAutoincrement: false;
1241
+ hasRuntimeDefault: false;
1242
+ enumValues: undefined;
1243
+ baseColumn: never;
1244
+ identity: undefined;
1245
+ generated: undefined;
1246
+ }, {}, {}>;
1063
1247
  flaggedAt: import("drizzle-orm/pg-core").PgColumn<{
1064
1248
  name: "flagged_at";
1065
1249
  tableName: "plugin_vuln_exposure";
@@ -1099,7 +1283,7 @@ export declare const pluginVulnExposure: import("drizzle-orm/pg-core").PgTableWi
1099
1283
  tableName: "plugin_vuln_exposure";
1100
1284
  dataType: "string";
1101
1285
  columnType: "PgVarchar";
1102
- data: "accepted" | "false_positive" | "fixed" | "open";
1286
+ data: "accepted" | "false_positive" | "fixed" | "open" | "removed";
1103
1287
  driverParam: string;
1104
1288
  notNull: true;
1105
1289
  hasDefault: true;
@@ -1112,7 +1296,7 @@ export declare const pluginVulnExposure: import("drizzle-orm/pg-core").PgTableWi
1112
1296
  generated: undefined;
1113
1297
  }, {}, {
1114
1298
  length: 20;
1115
- $type: "accepted" | "false_positive" | "fixed" | "open";
1299
+ $type: "accepted" | "false_positive" | "fixed" | "open" | "removed";
1116
1300
  }>;
1117
1301
  acceptedUntil: import("drizzle-orm/pg-core").PgColumn<{
1118
1302
  name: "accepted_until";
@@ -1202,6 +1386,601 @@ export declare const pluginVulnExposure: import("drizzle-orm/pg-core").PgTableWi
1202
1386
  };
1203
1387
  dialect: 'pg';
1204
1388
  }>;
1389
+ /**
1390
+ * The last `/plugins/lookup` outcome per pipeline STEP, when synth (CLI or the
1391
+ * CodeBuild Lambda) sends the step's context. The DECLARED side
1392
+ * (`pipeline_plugin_resolution`) says what the config resolves to when it was
1393
+ * saved; this says what synth was actually told — the version, the image, every
1394
+ * warning, and the refusal — which is what a "why did my deploy stop" page needs.
1395
+ *
1396
+ * @table pipeline_step_lookups
1397
+ */
1398
+ export declare const pipelineStepLookup: import("drizzle-orm/pg-core").PgTableWithColumns<{
1399
+ name: "pipeline_step_lookups";
1400
+ schema: undefined;
1401
+ columns: {
1402
+ orgId: import("drizzle-orm/pg-core").PgColumn<{
1403
+ name: "org_id";
1404
+ tableName: "pipeline_step_lookups";
1405
+ dataType: "string";
1406
+ columnType: "PgVarchar";
1407
+ data: string;
1408
+ driverParam: string;
1409
+ notNull: true;
1410
+ hasDefault: false;
1411
+ isPrimaryKey: false;
1412
+ isAutoincrement: false;
1413
+ hasRuntimeDefault: false;
1414
+ enumValues: [string, ...string[]];
1415
+ baseColumn: never;
1416
+ identity: undefined;
1417
+ generated: undefined;
1418
+ }, {}, {
1419
+ length: 255;
1420
+ }>;
1421
+ pipelineId: import("drizzle-orm/pg-core").PgColumn<{
1422
+ name: "pipeline_id";
1423
+ tableName: "pipeline_step_lookups";
1424
+ dataType: "string";
1425
+ columnType: "PgVarchar";
1426
+ data: string;
1427
+ driverParam: string;
1428
+ notNull: true;
1429
+ hasDefault: false;
1430
+ isPrimaryKey: false;
1431
+ isAutoincrement: false;
1432
+ hasRuntimeDefault: false;
1433
+ enumValues: [string, ...string[]];
1434
+ baseColumn: never;
1435
+ identity: undefined;
1436
+ generated: undefined;
1437
+ }, {}, {
1438
+ length: 255;
1439
+ }>;
1440
+ stepKey: import("drizzle-orm/pg-core").PgColumn<{
1441
+ name: "step_key";
1442
+ tableName: "pipeline_step_lookups";
1443
+ dataType: "string";
1444
+ columnType: "PgVarchar";
1445
+ data: string;
1446
+ driverParam: string;
1447
+ notNull: true;
1448
+ hasDefault: false;
1449
+ isPrimaryKey: false;
1450
+ isAutoincrement: false;
1451
+ hasRuntimeDefault: false;
1452
+ enumValues: [string, ...string[]];
1453
+ baseColumn: never;
1454
+ identity: undefined;
1455
+ generated: undefined;
1456
+ }, {}, {
1457
+ length: 512;
1458
+ }>;
1459
+ pluginPublisher: import("drizzle-orm/pg-core").PgColumn<{
1460
+ name: "plugin_publisher";
1461
+ tableName: "pipeline_step_lookups";
1462
+ dataType: "string";
1463
+ columnType: "PgVarchar";
1464
+ data: string;
1465
+ driverParam: string;
1466
+ notNull: false;
1467
+ hasDefault: false;
1468
+ isPrimaryKey: false;
1469
+ isAutoincrement: false;
1470
+ hasRuntimeDefault: false;
1471
+ enumValues: [string, ...string[]];
1472
+ baseColumn: never;
1473
+ identity: undefined;
1474
+ generated: undefined;
1475
+ }, {}, {
1476
+ length: 39;
1477
+ }>;
1478
+ pluginName: import("drizzle-orm/pg-core").PgColumn<{
1479
+ name: "plugin_name";
1480
+ tableName: "pipeline_step_lookups";
1481
+ dataType: "string";
1482
+ columnType: "PgVarchar";
1483
+ data: string;
1484
+ driverParam: string;
1485
+ notNull: true;
1486
+ hasDefault: false;
1487
+ isPrimaryKey: false;
1488
+ isAutoincrement: false;
1489
+ hasRuntimeDefault: false;
1490
+ enumValues: [string, ...string[]];
1491
+ baseColumn: never;
1492
+ identity: undefined;
1493
+ generated: undefined;
1494
+ }, {}, {
1495
+ length: 255;
1496
+ }>;
1497
+ requestedVersion: import("drizzle-orm/pg-core").PgColumn<{
1498
+ name: "requested_version";
1499
+ tableName: "pipeline_step_lookups";
1500
+ dataType: "string";
1501
+ columnType: "PgVarchar";
1502
+ data: string;
1503
+ driverParam: string;
1504
+ notNull: false;
1505
+ hasDefault: false;
1506
+ isPrimaryKey: false;
1507
+ isAutoincrement: false;
1508
+ hasRuntimeDefault: false;
1509
+ enumValues: [string, ...string[]];
1510
+ baseColumn: never;
1511
+ identity: undefined;
1512
+ generated: undefined;
1513
+ }, {}, {
1514
+ length: 50;
1515
+ }>;
1516
+ resolvedVersion: import("drizzle-orm/pg-core").PgColumn<{
1517
+ name: "resolved_version";
1518
+ tableName: "pipeline_step_lookups";
1519
+ dataType: "string";
1520
+ columnType: "PgVarchar";
1521
+ data: string;
1522
+ driverParam: string;
1523
+ notNull: false;
1524
+ hasDefault: false;
1525
+ isPrimaryKey: false;
1526
+ isAutoincrement: false;
1527
+ hasRuntimeDefault: false;
1528
+ enumValues: [string, ...string[]];
1529
+ baseColumn: never;
1530
+ identity: undefined;
1531
+ generated: undefined;
1532
+ }, {}, {
1533
+ length: 50;
1534
+ }>;
1535
+ resolvedPluginId: import("drizzle-orm/pg-core").PgColumn<{
1536
+ name: "resolved_plugin_id";
1537
+ tableName: "pipeline_step_lookups";
1538
+ dataType: "string";
1539
+ columnType: "PgVarchar";
1540
+ data: string;
1541
+ driverParam: string;
1542
+ notNull: false;
1543
+ hasDefault: false;
1544
+ isPrimaryKey: false;
1545
+ isAutoincrement: false;
1546
+ hasRuntimeDefault: false;
1547
+ enumValues: [string, ...string[]];
1548
+ baseColumn: never;
1549
+ identity: undefined;
1550
+ generated: undefined;
1551
+ }, {}, {
1552
+ length: 255;
1553
+ }>;
1554
+ imageDigest: import("drizzle-orm/pg-core").PgColumn<{
1555
+ name: "image_digest";
1556
+ tableName: "pipeline_step_lookups";
1557
+ dataType: "string";
1558
+ columnType: "PgVarchar";
1559
+ data: string;
1560
+ driverParam: string;
1561
+ notNull: false;
1562
+ hasDefault: false;
1563
+ isPrimaryKey: false;
1564
+ isAutoincrement: false;
1565
+ hasRuntimeDefault: false;
1566
+ enumValues: [string, ...string[]];
1567
+ baseColumn: never;
1568
+ identity: undefined;
1569
+ generated: undefined;
1570
+ }, {}, {
1571
+ length: 71;
1572
+ }>;
1573
+ warnings: import("drizzle-orm/pg-core").PgColumn<{
1574
+ name: "warnings";
1575
+ tableName: "pipeline_step_lookups";
1576
+ dataType: "json";
1577
+ columnType: "PgJsonb";
1578
+ data: {
1579
+ code: string;
1580
+ message: string;
1581
+ severity?: string;
1582
+ }[];
1583
+ driverParam: unknown;
1584
+ notNull: true;
1585
+ hasDefault: true;
1586
+ isPrimaryKey: false;
1587
+ isAutoincrement: false;
1588
+ hasRuntimeDefault: false;
1589
+ enumValues: undefined;
1590
+ baseColumn: never;
1591
+ identity: undefined;
1592
+ generated: undefined;
1593
+ }, {}, {
1594
+ $type: {
1595
+ code: string;
1596
+ message: string;
1597
+ severity?: string;
1598
+ }[];
1599
+ }>;
1600
+ refusal: import("drizzle-orm/pg-core").PgColumn<{
1601
+ name: "refusal";
1602
+ tableName: "pipeline_step_lookups";
1603
+ dataType: "json";
1604
+ columnType: "PgJsonb";
1605
+ data: {
1606
+ code: string;
1607
+ reason: string;
1608
+ message: string;
1609
+ } | null;
1610
+ driverParam: unknown;
1611
+ notNull: false;
1612
+ hasDefault: false;
1613
+ isPrimaryKey: false;
1614
+ isAutoincrement: false;
1615
+ hasRuntimeDefault: false;
1616
+ enumValues: undefined;
1617
+ baseColumn: never;
1618
+ identity: undefined;
1619
+ generated: undefined;
1620
+ }, {}, {
1621
+ $type: {
1622
+ code: string;
1623
+ reason: string;
1624
+ message: string;
1625
+ } | null;
1626
+ }>;
1627
+ lookedUpAt: import("drizzle-orm/pg-core").PgColumn<{
1628
+ name: "looked_up_at";
1629
+ tableName: "pipeline_step_lookups";
1630
+ dataType: "date";
1631
+ columnType: "PgTimestamp";
1632
+ data: Date;
1633
+ driverParam: string;
1634
+ notNull: true;
1635
+ hasDefault: true;
1636
+ isPrimaryKey: false;
1637
+ isAutoincrement: false;
1638
+ hasRuntimeDefault: false;
1639
+ enumValues: undefined;
1640
+ baseColumn: never;
1641
+ identity: undefined;
1642
+ generated: undefined;
1643
+ }, {}, {}>;
1644
+ };
1645
+ dialect: 'pg';
1646
+ }>;
1647
+ /**
1648
+ * The latest security-scanner report a pipeline RUN uploaded, per (pipeline,
1649
+ * tool, stage) — what the pipeline's own scan steps found in what it builds,
1650
+ * next to what the platform's rescan found in the plugin images it runs.
1651
+ * Counts are stored so a report section reads them without unpacking findings.
1652
+ *
1653
+ * @table pipeline_security_reports
1654
+ */
1655
+ export declare const pipelineSecurityReport: import("drizzle-orm/pg-core").PgTableWithColumns<{
1656
+ name: "pipeline_security_reports";
1657
+ schema: undefined;
1658
+ columns: {
1659
+ id: import("drizzle-orm/pg-core").PgColumn<{
1660
+ name: "id";
1661
+ tableName: "pipeline_security_reports";
1662
+ dataType: "string";
1663
+ columnType: "PgVarchar";
1664
+ data: string;
1665
+ driverParam: string;
1666
+ notNull: true;
1667
+ hasDefault: false;
1668
+ isPrimaryKey: true;
1669
+ isAutoincrement: false;
1670
+ hasRuntimeDefault: false;
1671
+ enumValues: [string, ...string[]];
1672
+ baseColumn: never;
1673
+ identity: undefined;
1674
+ generated: undefined;
1675
+ }, {}, {
1676
+ length: 255;
1677
+ }>;
1678
+ orgId: import("drizzle-orm/pg-core").PgColumn<{
1679
+ name: "org_id";
1680
+ tableName: "pipeline_security_reports";
1681
+ dataType: "string";
1682
+ columnType: "PgVarchar";
1683
+ data: string;
1684
+ driverParam: string;
1685
+ notNull: true;
1686
+ hasDefault: false;
1687
+ isPrimaryKey: false;
1688
+ isAutoincrement: false;
1689
+ hasRuntimeDefault: false;
1690
+ enumValues: [string, ...string[]];
1691
+ baseColumn: never;
1692
+ identity: undefined;
1693
+ generated: undefined;
1694
+ }, {}, {
1695
+ length: 255;
1696
+ }>;
1697
+ pipelineId: import("drizzle-orm/pg-core").PgColumn<{
1698
+ name: "pipeline_id";
1699
+ tableName: "pipeline_security_reports";
1700
+ dataType: "string";
1701
+ columnType: "PgVarchar";
1702
+ data: string;
1703
+ driverParam: string;
1704
+ notNull: true;
1705
+ hasDefault: false;
1706
+ isPrimaryKey: false;
1707
+ isAutoincrement: false;
1708
+ hasRuntimeDefault: false;
1709
+ enumValues: [string, ...string[]];
1710
+ baseColumn: never;
1711
+ identity: undefined;
1712
+ generated: undefined;
1713
+ }, {}, {
1714
+ length: 255;
1715
+ }>;
1716
+ tool: import("drizzle-orm/pg-core").PgColumn<{
1717
+ name: "tool";
1718
+ tableName: "pipeline_security_reports";
1719
+ dataType: "string";
1720
+ columnType: "PgVarchar";
1721
+ data: string;
1722
+ driverParam: string;
1723
+ notNull: true;
1724
+ hasDefault: false;
1725
+ isPrimaryKey: false;
1726
+ isAutoincrement: false;
1727
+ hasRuntimeDefault: false;
1728
+ enumValues: [string, ...string[]];
1729
+ baseColumn: never;
1730
+ identity: undefined;
1731
+ generated: undefined;
1732
+ }, {}, {
1733
+ length: 64;
1734
+ }>;
1735
+ format: import("drizzle-orm/pg-core").PgColumn<{
1736
+ name: "format";
1737
+ tableName: "pipeline_security_reports";
1738
+ dataType: "string";
1739
+ columnType: "PgVarchar";
1740
+ data: string;
1741
+ driverParam: string;
1742
+ notNull: true;
1743
+ hasDefault: false;
1744
+ isPrimaryKey: false;
1745
+ isAutoincrement: false;
1746
+ hasRuntimeDefault: false;
1747
+ enumValues: [string, ...string[]];
1748
+ baseColumn: never;
1749
+ identity: undefined;
1750
+ generated: undefined;
1751
+ }, {}, {
1752
+ length: 16;
1753
+ }>;
1754
+ stage: import("drizzle-orm/pg-core").PgColumn<{
1755
+ name: "stage";
1756
+ tableName: "pipeline_security_reports";
1757
+ dataType: "string";
1758
+ columnType: "PgVarchar";
1759
+ data: string;
1760
+ driverParam: string;
1761
+ notNull: true;
1762
+ hasDefault: true;
1763
+ isPrimaryKey: false;
1764
+ isAutoincrement: false;
1765
+ hasRuntimeDefault: false;
1766
+ enumValues: [string, ...string[]];
1767
+ baseColumn: never;
1768
+ identity: undefined;
1769
+ generated: undefined;
1770
+ }, {}, {
1771
+ length: 255;
1772
+ }>;
1773
+ executionId: import("drizzle-orm/pg-core").PgColumn<{
1774
+ name: "execution_id";
1775
+ tableName: "pipeline_security_reports";
1776
+ dataType: "string";
1777
+ columnType: "PgVarchar";
1778
+ data: string;
1779
+ driverParam: string;
1780
+ notNull: false;
1781
+ hasDefault: false;
1782
+ isPrimaryKey: false;
1783
+ isAutoincrement: false;
1784
+ hasRuntimeDefault: false;
1785
+ enumValues: [string, ...string[]];
1786
+ baseColumn: never;
1787
+ identity: undefined;
1788
+ generated: undefined;
1789
+ }, {}, {
1790
+ length: 255;
1791
+ }>;
1792
+ criticalCount: import("drizzle-orm/pg-core").PgColumn<{
1793
+ name: "critical_count";
1794
+ tableName: "pipeline_security_reports";
1795
+ dataType: "number";
1796
+ columnType: "PgInteger";
1797
+ data: number;
1798
+ driverParam: string | number;
1799
+ notNull: true;
1800
+ hasDefault: true;
1801
+ isPrimaryKey: false;
1802
+ isAutoincrement: false;
1803
+ hasRuntimeDefault: false;
1804
+ enumValues: undefined;
1805
+ baseColumn: never;
1806
+ identity: undefined;
1807
+ generated: undefined;
1808
+ }, {}, {}>;
1809
+ highCount: import("drizzle-orm/pg-core").PgColumn<{
1810
+ name: "high_count";
1811
+ tableName: "pipeline_security_reports";
1812
+ dataType: "number";
1813
+ columnType: "PgInteger";
1814
+ data: number;
1815
+ driverParam: string | number;
1816
+ notNull: true;
1817
+ hasDefault: true;
1818
+ isPrimaryKey: false;
1819
+ isAutoincrement: false;
1820
+ hasRuntimeDefault: false;
1821
+ enumValues: undefined;
1822
+ baseColumn: never;
1823
+ identity: undefined;
1824
+ generated: undefined;
1825
+ }, {}, {}>;
1826
+ mediumCount: import("drizzle-orm/pg-core").PgColumn<{
1827
+ name: "medium_count";
1828
+ tableName: "pipeline_security_reports";
1829
+ dataType: "number";
1830
+ columnType: "PgInteger";
1831
+ data: number;
1832
+ driverParam: string | number;
1833
+ notNull: true;
1834
+ hasDefault: true;
1835
+ isPrimaryKey: false;
1836
+ isAutoincrement: false;
1837
+ hasRuntimeDefault: false;
1838
+ enumValues: undefined;
1839
+ baseColumn: never;
1840
+ identity: undefined;
1841
+ generated: undefined;
1842
+ }, {}, {}>;
1843
+ lowCount: import("drizzle-orm/pg-core").PgColumn<{
1844
+ name: "low_count";
1845
+ tableName: "pipeline_security_reports";
1846
+ dataType: "number";
1847
+ columnType: "PgInteger";
1848
+ data: number;
1849
+ driverParam: string | number;
1850
+ notNull: true;
1851
+ hasDefault: true;
1852
+ isPrimaryKey: false;
1853
+ isAutoincrement: false;
1854
+ hasRuntimeDefault: false;
1855
+ enumValues: undefined;
1856
+ baseColumn: never;
1857
+ identity: undefined;
1858
+ generated: undefined;
1859
+ }, {}, {}>;
1860
+ kevCount: import("drizzle-orm/pg-core").PgColumn<{
1861
+ name: "kev_count";
1862
+ tableName: "pipeline_security_reports";
1863
+ dataType: "number";
1864
+ columnType: "PgInteger";
1865
+ data: number;
1866
+ driverParam: string | number;
1867
+ notNull: true;
1868
+ hasDefault: true;
1869
+ isPrimaryKey: false;
1870
+ isAutoincrement: false;
1871
+ hasRuntimeDefault: false;
1872
+ enumValues: undefined;
1873
+ baseColumn: never;
1874
+ identity: undefined;
1875
+ generated: undefined;
1876
+ }, {}, {}>;
1877
+ criticalFixable: import("drizzle-orm/pg-core").PgColumn<{
1878
+ name: "critical_fixable";
1879
+ tableName: "pipeline_security_reports";
1880
+ dataType: "number";
1881
+ columnType: "PgInteger";
1882
+ data: number;
1883
+ driverParam: string | number;
1884
+ notNull: true;
1885
+ hasDefault: true;
1886
+ isPrimaryKey: false;
1887
+ isAutoincrement: false;
1888
+ hasRuntimeDefault: false;
1889
+ enumValues: undefined;
1890
+ baseColumn: never;
1891
+ identity: undefined;
1892
+ generated: undefined;
1893
+ }, {}, {}>;
1894
+ highFixable: import("drizzle-orm/pg-core").PgColumn<{
1895
+ name: "high_fixable";
1896
+ tableName: "pipeline_security_reports";
1897
+ dataType: "number";
1898
+ columnType: "PgInteger";
1899
+ data: number;
1900
+ driverParam: string | number;
1901
+ notNull: true;
1902
+ hasDefault: true;
1903
+ isPrimaryKey: false;
1904
+ isAutoincrement: false;
1905
+ hasRuntimeDefault: false;
1906
+ enumValues: undefined;
1907
+ baseColumn: never;
1908
+ identity: undefined;
1909
+ generated: undefined;
1910
+ }, {}, {}>;
1911
+ findings: import("drizzle-orm/pg-core").PgColumn<{
1912
+ name: "findings";
1913
+ tableName: "pipeline_security_reports";
1914
+ dataType: "json";
1915
+ columnType: "PgJsonb";
1916
+ data: Record<string, unknown>[];
1917
+ driverParam: unknown;
1918
+ notNull: true;
1919
+ hasDefault: true;
1920
+ isPrimaryKey: false;
1921
+ isAutoincrement: false;
1922
+ hasRuntimeDefault: false;
1923
+ enumValues: undefined;
1924
+ baseColumn: never;
1925
+ identity: undefined;
1926
+ generated: undefined;
1927
+ }, {}, {
1928
+ $type: Record<string, unknown>[];
1929
+ }>;
1930
+ truncated: import("drizzle-orm/pg-core").PgColumn<{
1931
+ name: "truncated";
1932
+ tableName: "pipeline_security_reports";
1933
+ dataType: "boolean";
1934
+ columnType: "PgBoolean";
1935
+ data: boolean;
1936
+ driverParam: boolean;
1937
+ notNull: true;
1938
+ hasDefault: true;
1939
+ isPrimaryKey: false;
1940
+ isAutoincrement: false;
1941
+ hasRuntimeDefault: false;
1942
+ enumValues: undefined;
1943
+ baseColumn: never;
1944
+ identity: undefined;
1945
+ generated: undefined;
1946
+ }, {}, {}>;
1947
+ submittedBy: import("drizzle-orm/pg-core").PgColumn<{
1948
+ name: "submitted_by";
1949
+ tableName: "pipeline_security_reports";
1950
+ dataType: "string";
1951
+ columnType: "PgText";
1952
+ data: string;
1953
+ driverParam: string;
1954
+ notNull: false;
1955
+ hasDefault: false;
1956
+ isPrimaryKey: false;
1957
+ isAutoincrement: false;
1958
+ hasRuntimeDefault: false;
1959
+ enumValues: [string, ...string[]];
1960
+ baseColumn: never;
1961
+ identity: undefined;
1962
+ generated: undefined;
1963
+ }, {}, {}>;
1964
+ createdAt: import("drizzle-orm/pg-core").PgColumn<{
1965
+ name: "created_at";
1966
+ tableName: "pipeline_security_reports";
1967
+ dataType: "date";
1968
+ columnType: "PgTimestamp";
1969
+ data: Date;
1970
+ driverParam: string;
1971
+ notNull: true;
1972
+ hasDefault: true;
1973
+ isPrimaryKey: false;
1974
+ isAutoincrement: false;
1975
+ hasRuntimeDefault: false;
1976
+ enumValues: undefined;
1977
+ baseColumn: never;
1978
+ identity: undefined;
1979
+ generated: undefined;
1980
+ }, {}, {}>;
1981
+ };
1982
+ dialect: 'pg';
1983
+ }>;
1205
1984
  export type DoraDeployment = typeof doraDeployment.$inferSelect;
1206
1985
  export type DoraDeploymentInsert = typeof doraDeployment.$inferInsert;
1207
1986
  export type ExecutionDailyRollup = typeof executionDailyRollup.$inferSelect;
@@ -1210,3 +1989,6 @@ export type PipelinePluginResolution = typeof pipelinePluginResolution.$inferSel
1210
1989
  export type PipelinePluginResolutionInsert = typeof pipelinePluginResolution.$inferInsert;
1211
1990
  export type PluginVulnExposure = typeof pluginVulnExposure.$inferSelect;
1212
1991
  export type PluginVulnExposureInsert = typeof pluginVulnExposure.$inferInsert;
1992
+ export type PipelineStepLookup = typeof pipelineStepLookup.$inferSelect;
1993
+ export type PipelineSecurityReport = typeof pipelineSecurityReport.$inferSelect;
1994
+ export type PipelineStepLookupInsert = typeof pipelineStepLookup.$inferInsert;