@secondlayer/shared 13.4.0 → 13.6.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.
Files changed (42) hide show
  1. package/dist/src/archive/range-digest.d.ts +45 -0
  2. package/dist/src/archive/semantic-digest-builder.d.ts +45 -0
  3. package/dist/src/coverage/index.d.ts +45 -0
  4. package/dist/src/db/index.d.ts +50 -1
  5. package/dist/src/db/index.js +4 -1
  6. package/dist/src/db/index.js.map +3 -3
  7. package/dist/src/db/queries/chain-reorgs.d.ts +45 -0
  8. package/dist/src/db/queries/chain-reorgs.js +4 -1
  9. package/dist/src/db/queries/chain-reorgs.js.map +3 -3
  10. package/dist/src/db/queries/contracts.d.ts +45 -0
  11. package/dist/src/db/queries/instance.d.ts +45 -0
  12. package/dist/src/db/queries/integrity.d.ts +45 -0
  13. package/dist/src/db/queries/subgraph-gaps.d.ts +45 -0
  14. package/dist/src/db/queries/subgraph-operations.d.ts +45 -0
  15. package/dist/src/db/queries/subgraphs.d.ts +45 -0
  16. package/dist/src/db/queries/sync-scope.d.ts +45 -0
  17. package/dist/src/db/queries/webhooks.d.ts +45 -0
  18. package/dist/src/db/schema.d.ts +47 -1
  19. package/dist/src/index.d.ts +144 -7
  20. package/dist/src/index.js +183 -87
  21. package/dist/src/index.js.map +5 -4
  22. package/dist/src/insights/index.d.ts +1554 -0
  23. package/dist/src/insights/index.js +2284 -0
  24. package/dist/src/insights/index.js.map +29 -0
  25. package/dist/src/insights/thresholds.d.ts +56 -0
  26. package/dist/src/insights/thresholds.js +86 -0
  27. package/dist/src/insights/thresholds.js.map +10 -0
  28. package/dist/src/leader.d.ts +3 -1
  29. package/dist/src/leader.js +3 -1
  30. package/dist/src/leader.js.map +3 -3
  31. package/dist/src/node/local-client.d.ts +45 -0
  32. package/dist/src/queue/listener.js +4 -1
  33. package/dist/src/queue/listener.js.map +3 -3
  34. package/dist/src/schemas/index.d.ts +95 -7
  35. package/dist/src/schemas/index.js +180 -87
  36. package/dist/src/schemas/index.js.map +4 -3
  37. package/dist/src/schemas/insights.d.ts +89 -0
  38. package/dist/src/schemas/insights.js +98 -0
  39. package/dist/src/schemas/insights.js.map +10 -0
  40. package/migrations/0170_insights.ts +63 -0
  41. package/migrations/0171_webhook_incident_alerts.ts +45 -0
  42. package/package.json +13 -1
package/dist/src/index.js CHANGED
@@ -860,12 +860,15 @@ var TABLE_TO_DB = {
860
860
  archive_fetches: "target",
861
861
  usage_ledger: "target",
862
862
  account_balance_alerts: "target",
863
+ webhook_incident_alerts: "target",
863
864
  sentinel_accounts: "target",
864
865
  waitlists: "target",
865
866
  waitlist_signups: "target",
866
867
  contact_requests: "target",
867
868
  api_failed_requests: "target",
868
869
  api_request_log: "target",
870
+ insights: "target",
871
+ insight_mutes: "target",
869
872
  feedback_tickets: "target",
870
873
  service_heartbeats: "both"
871
874
  };
@@ -1256,8 +1259,94 @@ var BILLING_PAUSED_PREFIX = "billing_paused: ";
1256
1259
  function billingPausedCode(lastError) {
1257
1260
  return lastError?.startsWith(BILLING_PAUSED_PREFIX) ? lastError.slice(BILLING_PAUSED_PREFIX.length) : null;
1258
1261
  }
1259
- // src/schemas/webhooks.ts
1262
+ // src/schemas/insights.ts
1260
1263
  import { z as z3 } from "zod";
1264
+ var INSIGHT_SEVERITIES = [
1265
+ "losing",
1266
+ "will_fail",
1267
+ "costs",
1268
+ "recovered"
1269
+ ];
1270
+ var InsightSeveritySchema = z3.enum(INSIGHT_SEVERITIES);
1271
+ var InsightResourceKindSchema = z3.enum(["webhook", "subgraph", "account"]);
1272
+ var InsightEvidenceSchema = z3.discriminatedUnion("kind", [
1273
+ z3.object({
1274
+ kind: z3.literal("series"),
1275
+ title: z3.string(),
1276
+ series: z3.array(z3.object({
1277
+ name: z3.string(),
1278
+ role: z3.enum(["a", "context", "mark"]),
1279
+ points: z3.array(z3.number())
1280
+ })),
1281
+ labels: z3.array(z3.tuple([z3.number(), z3.string()])),
1282
+ unit: z3.string().optional()
1283
+ }),
1284
+ z3.object({
1285
+ kind: z3.literal("table"),
1286
+ title: z3.string(),
1287
+ columns: z3.array(z3.string()),
1288
+ rows: z3.array(z3.array(z3.union([z3.string(), z3.number()]))),
1289
+ markRow: z3.number().optional()
1290
+ }),
1291
+ z3.object({
1292
+ kind: z3.literal("shapes"),
1293
+ title: z3.string(),
1294
+ shapes: z3.array(z3.object({
1295
+ code: z3.string(),
1296
+ body: z3.string(),
1297
+ count: z3.number(),
1298
+ isNew: z3.boolean()
1299
+ }))
1300
+ }),
1301
+ z3.object({
1302
+ kind: z3.literal("timeline"),
1303
+ title: z3.string(),
1304
+ steps: z3.array(z3.object({
1305
+ what: z3.string(),
1306
+ at: z3.string(),
1307
+ note: z3.string().optional(),
1308
+ failed: z3.boolean()
1309
+ }))
1310
+ })
1311
+ ]);
1312
+ var InsightSchema = z3.object({
1313
+ id: z3.string(),
1314
+ rule: z3.string(),
1315
+ severity: InsightSeveritySchema,
1316
+ impact: z3.number(),
1317
+ resource: z3.object({
1318
+ kind: InsightResourceKindSchema,
1319
+ id: z3.string(),
1320
+ name: z3.string()
1321
+ }),
1322
+ line: z3.string(),
1323
+ meta: z3.string().optional(),
1324
+ lead: z3.string(),
1325
+ body: z3.string(),
1326
+ evidence: z3.array(InsightEvidenceSchema),
1327
+ handoff: z3.object({
1328
+ prompt: z3.string(),
1329
+ commands: z3.array(z3.string())
1330
+ }),
1331
+ how: z3.object({
1332
+ detector: z3.string(),
1333
+ facts: z3.array(z3.tuple([z3.string(), z3.string()])),
1334
+ label: z3.object({ cause: z3.string(), confidence: z3.number() }).optional()
1335
+ }),
1336
+ createdAt: z3.string(),
1337
+ resolvedAt: z3.string().nullable().optional()
1338
+ });
1339
+ var InsightListResponseSchema = z3.object({
1340
+ data: z3.array(InsightSchema)
1341
+ });
1342
+ var SEVERITY_ORDER = {
1343
+ losing: 0,
1344
+ will_fail: 1,
1345
+ costs: 2,
1346
+ recovered: 3
1347
+ };
1348
+ // src/schemas/webhooks.ts
1349
+ import { z as z4 } from "zod";
1261
1350
  var WEBHOOK_FORMATS = [
1262
1351
  "standard-webhooks",
1263
1352
  "inngest",
@@ -1283,7 +1372,7 @@ function webhookTimeoutMsCeiling() {
1283
1372
  return ceilingFromEnv("WEBHOOK_TIMEOUT_MS_CEILING", WEBHOOK_TIMEOUT_MS_CEILING_DEFAULT);
1284
1373
  }
1285
1374
  function maxRetriesField() {
1286
- return z3.number().int().min(0).optional().superRefine((v, ctx) => {
1375
+ return z4.number().int().min(0).optional().superRefine((v, ctx) => {
1287
1376
  if (v === undefined)
1288
1377
  return;
1289
1378
  const ceiling = webhookMaxRetriesCeiling();
@@ -1296,7 +1385,7 @@ function maxRetriesField() {
1296
1385
  });
1297
1386
  }
1298
1387
  function timeoutMsField() {
1299
- return z3.number().int().min(100).optional().superRefine((v, ctx) => {
1388
+ return z4.number().int().min(100).optional().superRefine((v, ctx) => {
1300
1389
  if (v === undefined)
1301
1390
  return;
1302
1391
  const ceiling = webhookTimeoutMsCeiling();
@@ -1308,8 +1397,8 @@ function timeoutMsField() {
1308
1397
  }
1309
1398
  });
1310
1399
  }
1311
- var webhookUrl = z3.string().trim().min(1).refine((value) => value.startsWith("http://") || value.startsWith("https://"), "must be an http(s) URL");
1312
- var name = z3.string().trim().min(1).max(128);
1400
+ var webhookUrl = z4.string().trim().min(1).refine((value) => value.startsWith("http://") || value.startsWith("https://"), "must be an http(s) URL");
1401
+ var name = z4.string().trim().min(1).max(128);
1313
1402
  var MANAGED_NAME_PREFIXES = {
1314
1403
  "sentinel:": "Sentinel"
1315
1404
  };
@@ -1320,8 +1409,8 @@ function managedByForName(name) {
1320
1409
  }
1321
1410
  return null;
1322
1411
  }
1323
- var WebhookStatusSchema = z3.enum(WEBHOOK_STATUSES);
1324
- var WebhookFormatSchema = z3.enum(WEBHOOK_FORMATS);
1412
+ var WebhookStatusSchema = z4.enum(WEBHOOK_STATUSES);
1413
+ var WebhookFormatSchema = z4.enum(WEBHOOK_FORMATS);
1325
1414
  var CHAIN_TRIGGER_TYPES = [
1326
1415
  "stx_transfer",
1327
1416
  "stx_mint",
@@ -1351,212 +1440,212 @@ var CHAIN_TRIGGER_TYPES = [
1351
1440
  "rune_transfer",
1352
1441
  "rune_burn"
1353
1442
  ];
1354
- var runeRef = z3.string().trim().min(1);
1355
- var triggerAmount = z3.union([
1356
- z3.string().trim().regex(/^\d+$/, "must be a non-negative integer string"),
1357
- z3.number().int().nonnegative()
1443
+ var runeRef = z4.string().trim().min(1);
1444
+ var triggerAmount = z4.union([
1445
+ z4.string().trim().regex(/^\d+$/, "must be a non-negative integer string"),
1446
+ z4.number().int().nonnegative()
1358
1447
  ]);
1359
- var triggerPattern = z3.string().trim().min(1);
1360
- var trait = z3.string().trim().min(1);
1361
- var printWhereValue = z3.string().min(1).max(256);
1362
- var PrintWhereSchema = z3.record(z3.string().trim().min(1).max(64), z3.union([printWhereValue, z3.array(printWhereValue).min(1).max(20)])).refine((o) => {
1448
+ var triggerPattern = z4.string().trim().min(1);
1449
+ var trait = z4.string().trim().min(1);
1450
+ var printWhereValue = z4.string().min(1).max(256);
1451
+ var PrintWhereSchema = z4.record(z4.string().trim().min(1).max(64), z4.union([printWhereValue, z4.array(printWhereValue).min(1).max(20)])).refine((o) => {
1363
1452
  const n = Object.keys(o).length;
1364
1453
  return n >= 1 && n <= 10;
1365
1454
  }, "where takes 1 to 10 keys");
1366
- var ChainTriggerSchema = z3.discriminatedUnion("type", [
1367
- z3.object({
1368
- type: z3.literal("stx_transfer"),
1455
+ var ChainTriggerSchema = z4.discriminatedUnion("type", [
1456
+ z4.object({
1457
+ type: z4.literal("stx_transfer"),
1369
1458
  sender: triggerPattern.optional(),
1370
1459
  recipient: triggerPattern.optional(),
1371
1460
  minAmount: triggerAmount.optional(),
1372
1461
  maxAmount: triggerAmount.optional()
1373
1462
  }).strict(),
1374
- z3.object({
1375
- type: z3.literal("stx_mint"),
1463
+ z4.object({
1464
+ type: z4.literal("stx_mint"),
1376
1465
  recipient: triggerPattern.optional(),
1377
1466
  minAmount: triggerAmount.optional()
1378
1467
  }).strict(),
1379
- z3.object({
1380
- type: z3.literal("stx_burn"),
1468
+ z4.object({
1469
+ type: z4.literal("stx_burn"),
1381
1470
  sender: triggerPattern.optional(),
1382
1471
  minAmount: triggerAmount.optional()
1383
1472
  }).strict(),
1384
- z3.object({
1385
- type: z3.literal("stx_lock"),
1473
+ z4.object({
1474
+ type: z4.literal("stx_lock"),
1386
1475
  lockedAddress: triggerPattern.optional(),
1387
1476
  minAmount: triggerAmount.optional()
1388
1477
  }).strict(),
1389
- z3.object({
1390
- type: z3.literal("ft_transfer"),
1478
+ z4.object({
1479
+ type: z4.literal("ft_transfer"),
1391
1480
  assetIdentifier: triggerPattern.optional(),
1392
1481
  sender: triggerPattern.optional(),
1393
1482
  recipient: triggerPattern.optional(),
1394
1483
  minAmount: triggerAmount.optional(),
1395
1484
  trait: trait.optional()
1396
1485
  }).strict(),
1397
- z3.object({
1398
- type: z3.literal("ft_mint"),
1486
+ z4.object({
1487
+ type: z4.literal("ft_mint"),
1399
1488
  assetIdentifier: triggerPattern.optional(),
1400
1489
  recipient: triggerPattern.optional(),
1401
1490
  minAmount: triggerAmount.optional(),
1402
1491
  trait: trait.optional()
1403
1492
  }).strict(),
1404
- z3.object({
1405
- type: z3.literal("ft_burn"),
1493
+ z4.object({
1494
+ type: z4.literal("ft_burn"),
1406
1495
  assetIdentifier: triggerPattern.optional(),
1407
1496
  sender: triggerPattern.optional(),
1408
1497
  minAmount: triggerAmount.optional(),
1409
1498
  trait: trait.optional()
1410
1499
  }).strict(),
1411
- z3.object({
1412
- type: z3.literal("nft_transfer"),
1500
+ z4.object({
1501
+ type: z4.literal("nft_transfer"),
1413
1502
  assetIdentifier: triggerPattern.optional(),
1414
1503
  sender: triggerPattern.optional(),
1415
1504
  recipient: triggerPattern.optional(),
1416
1505
  trait: trait.optional()
1417
1506
  }).strict(),
1418
- z3.object({
1419
- type: z3.literal("nft_mint"),
1507
+ z4.object({
1508
+ type: z4.literal("nft_mint"),
1420
1509
  assetIdentifier: triggerPattern.optional(),
1421
1510
  recipient: triggerPattern.optional(),
1422
1511
  trait: trait.optional()
1423
1512
  }).strict(),
1424
- z3.object({
1425
- type: z3.literal("nft_burn"),
1513
+ z4.object({
1514
+ type: z4.literal("nft_burn"),
1426
1515
  assetIdentifier: triggerPattern.optional(),
1427
1516
  sender: triggerPattern.optional(),
1428
1517
  trait: trait.optional()
1429
1518
  }).strict(),
1430
- z3.object({
1431
- type: z3.literal("contract_call"),
1519
+ z4.object({
1520
+ type: z4.literal("contract_call"),
1432
1521
  contractId: triggerPattern.optional(),
1433
1522
  functionName: triggerPattern.optional(),
1434
1523
  caller: triggerPattern.optional(),
1435
1524
  trait: trait.optional()
1436
1525
  }).strict(),
1437
- z3.object({
1438
- type: z3.literal("contract_deploy"),
1526
+ z4.object({
1527
+ type: z4.literal("contract_deploy"),
1439
1528
  deployer: triggerPattern.optional(),
1440
1529
  contractName: triggerPattern.optional()
1441
1530
  }).strict(),
1442
- z3.object({
1443
- type: z3.literal("print_event"),
1531
+ z4.object({
1532
+ type: z4.literal("print_event"),
1444
1533
  contractId: triggerPattern.optional(),
1445
1534
  topic: triggerPattern.optional(),
1446
1535
  trait: trait.optional(),
1447
1536
  where: PrintWhereSchema.optional()
1448
1537
  }).strict(),
1449
- z3.object({
1450
- type: z3.literal("nested_contract_call"),
1538
+ z4.object({
1539
+ type: z4.literal("nested_contract_call"),
1451
1540
  contractId: triggerPattern.optional(),
1452
1541
  functionName: triggerPattern.optional(),
1453
1542
  caller: triggerPattern.optional(),
1454
1543
  sender: triggerPattern.optional(),
1455
1544
  trait: trait.optional()
1456
1545
  }).strict(),
1457
- z3.object({
1458
- type: z3.literal("var_set"),
1546
+ z4.object({
1547
+ type: z4.literal("var_set"),
1459
1548
  contractId: triggerPattern.optional(),
1460
1549
  varName: triggerPattern.optional(),
1461
1550
  trait: trait.optional()
1462
1551
  }).strict(),
1463
- z3.object({
1464
- type: z3.literal("map_set"),
1552
+ z4.object({
1553
+ type: z4.literal("map_set"),
1465
1554
  contractId: triggerPattern.optional(),
1466
1555
  map: triggerPattern.optional(),
1467
1556
  trait: trait.optional()
1468
1557
  }).strict(),
1469
- z3.object({
1470
- type: z3.literal("map_insert"),
1558
+ z4.object({
1559
+ type: z4.literal("map_insert"),
1471
1560
  contractId: triggerPattern.optional(),
1472
1561
  map: triggerPattern.optional(),
1473
1562
  trait: trait.optional()
1474
1563
  }).strict(),
1475
- z3.object({
1476
- type: z3.literal("map_delete"),
1564
+ z4.object({
1565
+ type: z4.literal("map_delete"),
1477
1566
  contractId: triggerPattern.optional(),
1478
1567
  map: triggerPattern.optional(),
1479
1568
  trait: trait.optional()
1480
1569
  }).strict(),
1481
- z3.object({
1482
- type: z3.literal("sbtc_deposit"),
1570
+ z4.object({
1571
+ type: z4.literal("sbtc_deposit"),
1483
1572
  sender: triggerPattern.optional(),
1484
1573
  minAmount: triggerAmount.optional(),
1485
1574
  maxAmount: triggerAmount.optional(),
1486
1575
  bitcoinTxid: triggerPattern.optional(),
1487
- requestId: z3.number().int().nonnegative().optional()
1576
+ requestId: z4.number().int().nonnegative().optional()
1488
1577
  }).strict(),
1489
- z3.object({
1490
- type: z3.literal("sbtc_withdrawal_create"),
1578
+ z4.object({
1579
+ type: z4.literal("sbtc_withdrawal_create"),
1491
1580
  sender: triggerPattern.optional(),
1492
1581
  minAmount: triggerAmount.optional(),
1493
1582
  maxAmount: triggerAmount.optional(),
1494
- requestId: z3.number().int().nonnegative().optional()
1583
+ requestId: z4.number().int().nonnegative().optional()
1495
1584
  }).strict(),
1496
- z3.object({
1497
- type: z3.literal("sbtc_withdrawal_accept"),
1498
- requestId: z3.number().int().nonnegative().optional(),
1585
+ z4.object({
1586
+ type: z4.literal("sbtc_withdrawal_accept"),
1587
+ requestId: z4.number().int().nonnegative().optional(),
1499
1588
  sweepTxid: triggerPattern.optional()
1500
1589
  }).strict(),
1501
- z3.object({
1502
- type: z3.literal("sbtc_withdrawal_reject"),
1503
- requestId: z3.number().int().nonnegative().optional()
1590
+ z4.object({
1591
+ type: z4.literal("sbtc_withdrawal_reject"),
1592
+ requestId: z4.number().int().nonnegative().optional()
1504
1593
  }).strict(),
1505
- z3.object({
1506
- type: z3.literal("sbtc_withdrawal_swept_confirmed"),
1507
- requestId: z3.number().int().nonnegative().optional(),
1594
+ z4.object({
1595
+ type: z4.literal("sbtc_withdrawal_swept_confirmed"),
1596
+ requestId: z4.number().int().nonnegative().optional(),
1508
1597
  sweepTxid: triggerPattern.optional()
1509
1598
  }).strict(),
1510
- z3.object({
1511
- type: z3.literal("rune_etch"),
1599
+ z4.object({
1600
+ type: z4.literal("rune_etch"),
1512
1601
  rune: runeRef.optional()
1513
1602
  }).strict(),
1514
- z3.object({
1515
- type: z3.literal("rune_mint"),
1603
+ z4.object({
1604
+ type: z4.literal("rune_mint"),
1516
1605
  rune: runeRef.optional()
1517
1606
  }).strict(),
1518
- z3.object({
1519
- type: z3.literal("rune_transfer"),
1607
+ z4.object({
1608
+ type: z4.literal("rune_transfer"),
1520
1609
  rune: runeRef.optional(),
1521
1610
  address: triggerPattern.optional(),
1522
1611
  minAmount: triggerAmount.optional()
1523
1612
  }).strict(),
1524
- z3.object({
1525
- type: z3.literal("rune_burn"),
1613
+ z4.object({
1614
+ type: z4.literal("rune_burn"),
1526
1615
  rune: runeRef.optional()
1527
1616
  }).strict()
1528
1617
  ]);
1529
- var ChainTriggersSchema = z3.array(ChainTriggerSchema).min(1).max(50);
1618
+ var ChainTriggersSchema = z4.array(ChainTriggerSchema).min(1).max(50);
1530
1619
  var CHAIN_TRIGGER_FIELDS = Object.fromEntries(ChainTriggerSchema._zod.def.options.map((opt) => {
1531
1620
  const shape = opt._zod.def.shape;
1532
1621
  const type = shape.type._zod.def.values[0];
1533
1622
  return [type, Object.keys(shape).filter((k) => k !== "type")];
1534
1623
  }));
1535
- var CreateWebhookRequestSchema = z3.object({
1624
+ var CreateWebhookRequestSchema = z4.object({
1536
1625
  name,
1537
1626
  triggers: ChainTriggersSchema,
1538
1627
  url: webhookUrl,
1539
1628
  format: WebhookFormatSchema.default("standard-webhooks"),
1540
- authConfig: z3.record(z3.string(), z3.unknown()).optional(),
1629
+ authConfig: z4.record(z4.string(), z4.unknown()).optional(),
1541
1630
  maxRetries: maxRetriesField(),
1542
1631
  timeoutMs: timeoutMsField(),
1543
- concurrency: z3.number().int().min(1).max(100).optional()
1632
+ concurrency: z4.number().int().min(1).max(100).optional()
1544
1633
  });
1545
- var UpdateWebhookRequestSchema = z3.object({
1634
+ var UpdateWebhookRequestSchema = z4.object({
1546
1635
  name: name.optional(),
1547
1636
  url: webhookUrl.optional(),
1548
1637
  format: WebhookFormatSchema.optional(),
1549
- authConfig: z3.record(z3.string(), z3.unknown()).optional(),
1638
+ authConfig: z4.record(z4.string(), z4.unknown()).optional(),
1550
1639
  maxRetries: maxRetriesField(),
1551
1640
  timeoutMs: timeoutMsField(),
1552
- concurrency: z3.number().int().min(1).max(100).optional()
1641
+ concurrency: z4.number().int().min(1).max(100).optional()
1553
1642
  }).refine((value) => Object.keys(value).length > 0, {
1554
1643
  message: "At least one field must be provided"
1555
1644
  });
1556
- var ReplayWebhookRequestSchema = z3.object({
1557
- fromBlock: z3.number().int().nonnegative(),
1558
- toBlock: z3.number().int().nonnegative(),
1559
- force: z3.string().trim().min(1).max(64).optional()
1645
+ var ReplayWebhookRequestSchema = z4.object({
1646
+ fromBlock: z4.number().int().nonnegative(),
1647
+ toBlock: z4.number().int().nonnegative(),
1648
+ force: z4.string().trim().min(1).max(64).optional()
1560
1649
  }).refine((value) => value.fromBlock <= value.toBlock, {
1561
1650
  message: "fromBlock must be less than or equal to toBlock",
1562
1651
  path: ["toBlock"]
@@ -2174,12 +2263,19 @@ export {
2174
2263
  EMPTY_RANGE_EVENT_INDEX_SENTINEL,
2175
2264
  ErrorCodes,
2176
2265
  ForbiddenError,
2266
+ INSIGHT_SEVERITIES,
2267
+ InsightEvidenceSchema,
2268
+ InsightListResponseSchema,
2269
+ InsightResourceKindSchema,
2270
+ InsightSchema,
2271
+ InsightSeveritySchema,
2177
2272
  KeyRotatedError,
2178
2273
  NotFoundError,
2179
2274
  PaymentRequiredError,
2180
2275
  RUNE_EVENT_TYPES,
2181
2276
  RateLimitError,
2182
2277
  ReplayWebhookRequestSchema,
2278
+ SEVERITY_ORDER,
2183
2279
  SOURCE_READ_COLUMNS,
2184
2280
  SOURCE_READ_PKS,
2185
2281
  SOURCE_READ_TYPES,
@@ -2243,5 +2339,5 @@ export {
2243
2339
  sql2 as sql
2244
2340
  };
2245
2341
 
2246
- //# debugId=E1550FF128BCB8A064756E2164756E21
2342
+ //# debugId=E9D9414E6585AEFB64756E2164756E21
2247
2343
  //# sourceMappingURL=index.js.map