@secondlayer/shared 13.3.0 → 13.5.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/src/archive/range-digest.d.ts +50 -0
- package/dist/src/archive/semantic-digest-builder.d.ts +50 -0
- package/dist/src/coverage/index.d.ts +50 -0
- package/dist/src/db/index.d.ts +54 -1
- package/dist/src/db/index.js +4 -1
- package/dist/src/db/index.js.map +3 -3
- package/dist/src/db/queries/chain-reorgs.d.ts +50 -0
- package/dist/src/db/queries/chain-reorgs.js +4 -1
- package/dist/src/db/queries/chain-reorgs.js.map +3 -3
- package/dist/src/db/queries/contracts.d.ts +50 -0
- package/dist/src/db/queries/instance.d.ts +50 -0
- package/dist/src/db/queries/integrity.d.ts +50 -0
- package/dist/src/db/queries/subgraph-gaps.d.ts +50 -0
- package/dist/src/db/queries/subgraph-operations.d.ts +50 -0
- package/dist/src/db/queries/subgraphs.d.ts +50 -0
- package/dist/src/db/queries/sync-scope.d.ts +50 -0
- package/dist/src/db/queries/webhooks.d.ts +50 -0
- package/dist/src/db/schema.d.ts +51 -1
- package/dist/src/index.d.ts +169 -7
- package/dist/src/index.js +239 -87
- package/dist/src/index.js.map +6 -4
- package/dist/src/insights/index.d.ts +1540 -0
- package/dist/src/insights/index.js +2284 -0
- package/dist/src/insights/index.js.map +29 -0
- package/dist/src/insights/thresholds.d.ts +56 -0
- package/dist/src/insights/thresholds.js +86 -0
- package/dist/src/insights/thresholds.js.map +10 -0
- package/dist/src/leader.d.ts +3 -1
- package/dist/src/leader.js +3 -1
- package/dist/src/leader.js.map +3 -3
- package/dist/src/node/local-client.d.ts +50 -0
- package/dist/src/queue/listener.js +4 -1
- package/dist/src/queue/listener.js.map +3 -3
- package/dist/src/schemas/index.d.ts +95 -7
- package/dist/src/schemas/index.js +180 -87
- package/dist/src/schemas/index.js.map +4 -3
- package/dist/src/schemas/insights.d.ts +89 -0
- package/dist/src/schemas/insights.js +98 -0
- package/dist/src/schemas/insights.js.map +10 -0
- package/migrations/0169_subgraph_health_history.ts +54 -0
- package/migrations/0170_insights.ts +63 -0
- package/package.json +13 -1
|
@@ -369,8 +369,55 @@ interface SubgraphHealthSnapshotsTable {
|
|
|
369
369
|
total_processed: number;
|
|
370
370
|
total_errors: number;
|
|
371
371
|
last_processed_block: number | null;
|
|
372
|
+
chain_tip: string | number | null;
|
|
373
|
+
rows_written_total: string | number | null;
|
|
374
|
+
storage_bytes: string | number | null;
|
|
372
375
|
captured_at: Generated<Date>;
|
|
373
376
|
}
|
|
377
|
+
/** Handler errors grouped by fingerprint. Cap 50/subgraph. */
|
|
378
|
+
interface SubgraphErrorGroupsTable {
|
|
379
|
+
id: Generated<string>;
|
|
380
|
+
subgraph_name: string;
|
|
381
|
+
fingerprint: string;
|
|
382
|
+
source_name: string;
|
|
383
|
+
event_type: string | null;
|
|
384
|
+
message: string;
|
|
385
|
+
frame: string | null;
|
|
386
|
+
count: Generated<string | number>;
|
|
387
|
+
sample_tx_id: string | null;
|
|
388
|
+
sample_block_height: string | number | null;
|
|
389
|
+
first_seen: Generated<Date>;
|
|
390
|
+
last_seen: Generated<Date>;
|
|
391
|
+
}
|
|
392
|
+
/**
|
|
393
|
+
* One ranked dashboard insight. `account_id` is NULL on tenant and self-host
|
|
394
|
+
* databases. `severity` is never "recovered": that is derived on read from
|
|
395
|
+
* `resolved_at`.
|
|
396
|
+
*/
|
|
397
|
+
interface InsightsTable {
|
|
398
|
+
id: Generated<string>;
|
|
399
|
+
account_id: string | null;
|
|
400
|
+
resource_kind: string;
|
|
401
|
+
resource_id: string;
|
|
402
|
+
rule: string;
|
|
403
|
+
severity: string;
|
|
404
|
+
impact: Generated<number>;
|
|
405
|
+
/** resource, line, meta, lead, body, evidence, handoff, how. */
|
|
406
|
+
payload: unknown;
|
|
407
|
+
first_seen_at: Generated<Date>;
|
|
408
|
+
last_seen_at: Generated<Date>;
|
|
409
|
+
clear_streak: Generated<number>;
|
|
410
|
+
resolved_at: Date | null;
|
|
411
|
+
dismissed_at: Date | null;
|
|
412
|
+
}
|
|
413
|
+
/** "Expected": mutes one rule for one resource until removed. */
|
|
414
|
+
interface InsightMutesTable {
|
|
415
|
+
account_id: string | null;
|
|
416
|
+
resource_kind: string;
|
|
417
|
+
resource_id: string;
|
|
418
|
+
rule: string;
|
|
419
|
+
created_at: Generated<Date>;
|
|
420
|
+
}
|
|
374
421
|
interface ProcessedStripeEventsTable {
|
|
375
422
|
event_id: string;
|
|
376
423
|
event_type: string;
|
|
@@ -847,6 +894,7 @@ interface Database {
|
|
|
847
894
|
subgraph_processing_stats: SubgraphProcessingStatsTable;
|
|
848
895
|
subgraph_gaps: SubgraphGapsTable;
|
|
849
896
|
subgraph_violations: SubgraphViolationsTable;
|
|
897
|
+
subgraph_error_groups: SubgraphErrorGroupsTable;
|
|
850
898
|
subgraph_operations: SubgraphOperationsTable;
|
|
851
899
|
processed_stripe_events: ProcessedStripeEventsTable;
|
|
852
900
|
account_spend_caps: AccountSpendCapsTable;
|
|
@@ -891,6 +939,8 @@ interface Database {
|
|
|
891
939
|
contact_requests: ContactRequestsTable;
|
|
892
940
|
api_failed_requests: ApiFailedRequestsTable;
|
|
893
941
|
api_request_log: ApiRequestLogTable;
|
|
942
|
+
insights: InsightsTable;
|
|
943
|
+
insight_mutes: InsightMutesTable;
|
|
894
944
|
feedback_tickets: FeedbackTicketsTable;
|
|
895
945
|
}
|
|
896
946
|
interface ServiceHeartbeatsTable {
|
|
@@ -359,8 +359,55 @@ interface SubgraphHealthSnapshotsTable {
|
|
|
359
359
|
total_processed: number;
|
|
360
360
|
total_errors: number;
|
|
361
361
|
last_processed_block: number | null;
|
|
362
|
+
chain_tip: string | number | null;
|
|
363
|
+
rows_written_total: string | number | null;
|
|
364
|
+
storage_bytes: string | number | null;
|
|
362
365
|
captured_at: Generated<Date>;
|
|
363
366
|
}
|
|
367
|
+
/** Handler errors grouped by fingerprint. Cap 50/subgraph. */
|
|
368
|
+
interface SubgraphErrorGroupsTable {
|
|
369
|
+
id: Generated<string>;
|
|
370
|
+
subgraph_name: string;
|
|
371
|
+
fingerprint: string;
|
|
372
|
+
source_name: string;
|
|
373
|
+
event_type: string | null;
|
|
374
|
+
message: string;
|
|
375
|
+
frame: string | null;
|
|
376
|
+
count: Generated<string | number>;
|
|
377
|
+
sample_tx_id: string | null;
|
|
378
|
+
sample_block_height: string | number | null;
|
|
379
|
+
first_seen: Generated<Date>;
|
|
380
|
+
last_seen: Generated<Date>;
|
|
381
|
+
}
|
|
382
|
+
/**
|
|
383
|
+
* One ranked dashboard insight. `account_id` is NULL on tenant and self-host
|
|
384
|
+
* databases. `severity` is never "recovered": that is derived on read from
|
|
385
|
+
* `resolved_at`.
|
|
386
|
+
*/
|
|
387
|
+
interface InsightsTable {
|
|
388
|
+
id: Generated<string>;
|
|
389
|
+
account_id: string | null;
|
|
390
|
+
resource_kind: string;
|
|
391
|
+
resource_id: string;
|
|
392
|
+
rule: string;
|
|
393
|
+
severity: string;
|
|
394
|
+
impact: Generated<number>;
|
|
395
|
+
/** resource, line, meta, lead, body, evidence, handoff, how. */
|
|
396
|
+
payload: unknown;
|
|
397
|
+
first_seen_at: Generated<Date>;
|
|
398
|
+
last_seen_at: Generated<Date>;
|
|
399
|
+
clear_streak: Generated<number>;
|
|
400
|
+
resolved_at: Date | null;
|
|
401
|
+
dismissed_at: Date | null;
|
|
402
|
+
}
|
|
403
|
+
/** "Expected": mutes one rule for one resource until removed. */
|
|
404
|
+
interface InsightMutesTable {
|
|
405
|
+
account_id: string | null;
|
|
406
|
+
resource_kind: string;
|
|
407
|
+
resource_id: string;
|
|
408
|
+
rule: string;
|
|
409
|
+
created_at: Generated<Date>;
|
|
410
|
+
}
|
|
364
411
|
interface ProcessedStripeEventsTable {
|
|
365
412
|
event_id: string;
|
|
366
413
|
event_type: string;
|
|
@@ -837,6 +884,7 @@ interface Database {
|
|
|
837
884
|
subgraph_processing_stats: SubgraphProcessingStatsTable;
|
|
838
885
|
subgraph_gaps: SubgraphGapsTable;
|
|
839
886
|
subgraph_violations: SubgraphViolationsTable;
|
|
887
|
+
subgraph_error_groups: SubgraphErrorGroupsTable;
|
|
840
888
|
subgraph_operations: SubgraphOperationsTable;
|
|
841
889
|
processed_stripe_events: ProcessedStripeEventsTable;
|
|
842
890
|
account_spend_caps: AccountSpendCapsTable;
|
|
@@ -881,6 +929,8 @@ interface Database {
|
|
|
881
929
|
contact_requests: ContactRequestsTable;
|
|
882
930
|
api_failed_requests: ApiFailedRequestsTable;
|
|
883
931
|
api_request_log: ApiRequestLogTable;
|
|
932
|
+
insights: InsightsTable;
|
|
933
|
+
insight_mutes: InsightMutesTable;
|
|
884
934
|
feedback_tickets: FeedbackTicketsTable;
|
|
885
935
|
}
|
|
886
936
|
interface ServiceHeartbeatsTable {
|
package/dist/src/db/schema.d.ts
CHANGED
|
@@ -358,8 +358,55 @@ interface SubgraphHealthSnapshotsTable {
|
|
|
358
358
|
total_processed: number;
|
|
359
359
|
total_errors: number;
|
|
360
360
|
last_processed_block: number | null;
|
|
361
|
+
chain_tip: string | number | null;
|
|
362
|
+
rows_written_total: string | number | null;
|
|
363
|
+
storage_bytes: string | number | null;
|
|
361
364
|
captured_at: Generated<Date>;
|
|
362
365
|
}
|
|
366
|
+
/** Handler errors grouped by fingerprint. Cap 50/subgraph. */
|
|
367
|
+
interface SubgraphErrorGroupsTable {
|
|
368
|
+
id: Generated<string>;
|
|
369
|
+
subgraph_name: string;
|
|
370
|
+
fingerprint: string;
|
|
371
|
+
source_name: string;
|
|
372
|
+
event_type: string | null;
|
|
373
|
+
message: string;
|
|
374
|
+
frame: string | null;
|
|
375
|
+
count: Generated<string | number>;
|
|
376
|
+
sample_tx_id: string | null;
|
|
377
|
+
sample_block_height: string | number | null;
|
|
378
|
+
first_seen: Generated<Date>;
|
|
379
|
+
last_seen: Generated<Date>;
|
|
380
|
+
}
|
|
381
|
+
/**
|
|
382
|
+
* One ranked dashboard insight. `account_id` is NULL on tenant and self-host
|
|
383
|
+
* databases. `severity` is never "recovered": that is derived on read from
|
|
384
|
+
* `resolved_at`.
|
|
385
|
+
*/
|
|
386
|
+
interface InsightsTable {
|
|
387
|
+
id: Generated<string>;
|
|
388
|
+
account_id: string | null;
|
|
389
|
+
resource_kind: string;
|
|
390
|
+
resource_id: string;
|
|
391
|
+
rule: string;
|
|
392
|
+
severity: string;
|
|
393
|
+
impact: Generated<number>;
|
|
394
|
+
/** resource, line, meta, lead, body, evidence, handoff, how. */
|
|
395
|
+
payload: unknown;
|
|
396
|
+
first_seen_at: Generated<Date>;
|
|
397
|
+
last_seen_at: Generated<Date>;
|
|
398
|
+
clear_streak: Generated<number>;
|
|
399
|
+
resolved_at: Date | null;
|
|
400
|
+
dismissed_at: Date | null;
|
|
401
|
+
}
|
|
402
|
+
/** "Expected": mutes one rule for one resource until removed. */
|
|
403
|
+
interface InsightMutesTable {
|
|
404
|
+
account_id: string | null;
|
|
405
|
+
resource_kind: string;
|
|
406
|
+
resource_id: string;
|
|
407
|
+
rule: string;
|
|
408
|
+
created_at: Generated<Date>;
|
|
409
|
+
}
|
|
363
410
|
interface ProcessedStripeEventsTable {
|
|
364
411
|
event_id: string;
|
|
365
412
|
event_type: string;
|
|
@@ -836,6 +883,7 @@ interface Database {
|
|
|
836
883
|
subgraph_processing_stats: SubgraphProcessingStatsTable;
|
|
837
884
|
subgraph_gaps: SubgraphGapsTable;
|
|
838
885
|
subgraph_violations: SubgraphViolationsTable;
|
|
886
|
+
subgraph_error_groups: SubgraphErrorGroupsTable;
|
|
839
887
|
subgraph_operations: SubgraphOperationsTable;
|
|
840
888
|
processed_stripe_events: ProcessedStripeEventsTable;
|
|
841
889
|
account_spend_caps: AccountSpendCapsTable;
|
|
@@ -880,6 +928,8 @@ interface Database {
|
|
|
880
928
|
contact_requests: ContactRequestsTable;
|
|
881
929
|
api_failed_requests: ApiFailedRequestsTable;
|
|
882
930
|
api_request_log: ApiRequestLogTable;
|
|
931
|
+
insights: InsightsTable;
|
|
932
|
+
insight_mutes: InsightMutesTable;
|
|
883
933
|
feedback_tickets: FeedbackTicketsTable;
|
|
884
934
|
}
|
|
885
935
|
interface ServiceHeartbeatsTable {
|
|
@@ -1234,4 +1284,4 @@ type WaitlistSignup = Selectable<WaitlistSignupsTable>;
|
|
|
1234
1284
|
type InsertWaitlistSignup = Insertable<WaitlistSignupsTable>;
|
|
1235
1285
|
type ContactRequest = Selectable<ContactRequestsTable>;
|
|
1236
1286
|
type InsertContactRequest = Insertable<ContactRequestsTable>;
|
|
1237
|
-
export { Account, AccountBalanceAlerts, AccountBalanceAlertsTable, AccountCredits, AccountCreditsTable, AccountSpendCap, AccountSpendCapsTable, AccountsTable, ApiFailedRequest, ApiFailedRequestsTable, ApiKey, ApiKeysTable, ApiRequestLogRow, ApiRequestLogTable, ArchiveFetch, ArchiveFetchesTable, Block, BlocksTable, BnsMarketplaceAction, BnsMarketplaceEventsTable, BnsNameEventTopic, BnsNameEventsTable, BnsNamesTable, BnsNamespaceEventStatus, BnsNamespaceEventsTable, BnsNamespacesTable, BurnBlockRewardSlotsTable, BurnBlockRewardsTable, ChainReadCacheTable, ChainReorgsTable, ContactRequest, ContactRequestsTable, Contract, ContractsTable, CoverageSegmentsTable, Database, DeadLetterEventsTable, DecodedEventsTable, DecoderCheckpointsTable, Event, EventsArchiveTable, EventsTable, FailureClass, FailureUnit, FeedbackTicket, FeedbackTicketsTable, IndexProgress, IndexProgressTable, InsertAccount, InsertAccountBalanceAlerts, InsertAccountCredits, InsertAccountSpendCap, InsertApiFailedRequest, InsertApiKey, InsertApiRequestLogRow, InsertArchiveFetch, InsertBlock, InsertContactRequest, InsertContract, InsertEvent, InsertFeedbackTicket, InsertIndexProgress, InsertMagicLink, InsertMempoolTransaction, InsertSession, InsertStateWrite, InsertSubgraph, InsertSubgraphGap, InsertSubgraphHealthSnapshot, InsertSubgraphOperation, InsertTransaction, InsertUsageLedgerRow, InsertVmEvent, InsertWaitlistSignup, InsertWebhook, InsertWebhookDelivery, InsertWebhookOutbox, InstancesTable, MagicLink, MagicLinksTable, MempoolTransaction, MempoolTransactionsTable, NativeClock, ObserverJournalStatus, ObserverJournalTable, OutboxStatus, PendingForkBlocksTable, Pox4CallsTable, Pox4FunctionName, Pox5CycleSignersTable, Pox5CyclesTable, Pox5EventTopic, Pox5EventsTable, ProcessedStripeEventsTable, RepairMode, RetryState, RunStatus, SbtcEventTopic, SbtcEventsTable, SbtcSettlementsTable, SbtcTokenEventType, SbtcTokenEventsTable, SentinelAccount, SentinelAccountsTable, ServiceHeartbeatsTable, Session, SessionsTable, StageBlockReceiptsTable, StageFailuresTable, StageKind, StageRegistryTable, StageRunsTable, StateWrite, StateWritesArchiveTable, StateWritesTable, Subgraph, SubgraphGap, SubgraphGapsTable, SubgraphHealthSnapshot, SubgraphHealthSnapshotsTable, SubgraphOperation, SubgraphOperationKind, SubgraphOperationStatus, SubgraphOperationsTable, SubgraphProcessingStatsTable, SubgraphViolationsTable, SubgraphsTable, SyncScopesTable, Transaction, TransactionsArchiveTable, TransactionsTable, TriggerEvaluatorState, TriggerEvaluatorStateTable, UpdateAccountBalanceAlerts, UpdateAccountCredits, UpdateAccountSpendCap, UpdateApiKey, UpdateArchiveFetch, UpdateBlock, UpdateContract, UpdateEvent, UpdateIndexProgress, UpdateSubgraph, UpdateSubgraphOperation, UpdateTransaction, UpdateUsageLedgerRow, UpdateVmEvent, UpdateWebhook, UpdateWebhookOutbox, UsageLedgerRow, UsageLedgerTable, VmEvent, VmEventsArchiveTable, VmEventsTable, Waitlist, WaitlistSignup, WaitlistSignupsTable, WaitlistsTable, Webhook, WebhookDeliveriesTable, WebhookDelivery, WebhookFormat, WebhookKind, WebhookOutbox, WebhookOutboxTable, WebhookStatus, WebhooksTable };
|
|
1287
|
+
export { Account, AccountBalanceAlerts, AccountBalanceAlertsTable, AccountCredits, AccountCreditsTable, AccountSpendCap, AccountSpendCapsTable, AccountsTable, ApiFailedRequest, ApiFailedRequestsTable, ApiKey, ApiKeysTable, ApiRequestLogRow, ApiRequestLogTable, ArchiveFetch, ArchiveFetchesTable, Block, BlocksTable, BnsMarketplaceAction, BnsMarketplaceEventsTable, BnsNameEventTopic, BnsNameEventsTable, BnsNamesTable, BnsNamespaceEventStatus, BnsNamespaceEventsTable, BnsNamespacesTable, BurnBlockRewardSlotsTable, BurnBlockRewardsTable, ChainReadCacheTable, ChainReorgsTable, ContactRequest, ContactRequestsTable, Contract, ContractsTable, CoverageSegmentsTable, Database, DeadLetterEventsTable, DecodedEventsTable, DecoderCheckpointsTable, Event, EventsArchiveTable, EventsTable, FailureClass, FailureUnit, FeedbackTicket, FeedbackTicketsTable, IndexProgress, IndexProgressTable, InsertAccount, InsertAccountBalanceAlerts, InsertAccountCredits, InsertAccountSpendCap, InsertApiFailedRequest, InsertApiKey, InsertApiRequestLogRow, InsertArchiveFetch, InsertBlock, InsertContactRequest, InsertContract, InsertEvent, InsertFeedbackTicket, InsertIndexProgress, InsertMagicLink, InsertMempoolTransaction, InsertSession, InsertStateWrite, InsertSubgraph, InsertSubgraphGap, InsertSubgraphHealthSnapshot, InsertSubgraphOperation, InsertTransaction, InsertUsageLedgerRow, InsertVmEvent, InsertWaitlistSignup, InsertWebhook, InsertWebhookDelivery, InsertWebhookOutbox, InsightMutesTable, InsightsTable, InstancesTable, MagicLink, MagicLinksTable, MempoolTransaction, MempoolTransactionsTable, NativeClock, ObserverJournalStatus, ObserverJournalTable, OutboxStatus, PendingForkBlocksTable, Pox4CallsTable, Pox4FunctionName, Pox5CycleSignersTable, Pox5CyclesTable, Pox5EventTopic, Pox5EventsTable, ProcessedStripeEventsTable, RepairMode, RetryState, RunStatus, SbtcEventTopic, SbtcEventsTable, SbtcSettlementsTable, SbtcTokenEventType, SbtcTokenEventsTable, SentinelAccount, SentinelAccountsTable, ServiceHeartbeatsTable, Session, SessionsTable, StageBlockReceiptsTable, StageFailuresTable, StageKind, StageRegistryTable, StageRunsTable, StateWrite, StateWritesArchiveTable, StateWritesTable, Subgraph, SubgraphErrorGroupsTable, SubgraphGap, SubgraphGapsTable, SubgraphHealthSnapshot, SubgraphHealthSnapshotsTable, SubgraphOperation, SubgraphOperationKind, SubgraphOperationStatus, SubgraphOperationsTable, SubgraphProcessingStatsTable, SubgraphViolationsTable, SubgraphsTable, SyncScopesTable, Transaction, TransactionsArchiveTable, TransactionsTable, TriggerEvaluatorState, TriggerEvaluatorStateTable, UpdateAccountBalanceAlerts, UpdateAccountCredits, UpdateAccountSpendCap, UpdateApiKey, UpdateArchiveFetch, UpdateBlock, UpdateContract, UpdateEvent, UpdateIndexProgress, UpdateSubgraph, UpdateSubgraphOperation, UpdateTransaction, UpdateUsageLedgerRow, UpdateVmEvent, UpdateWebhook, UpdateWebhookOutbox, UsageLedgerRow, UsageLedgerTable, VmEvent, VmEventsArchiveTable, VmEventsTable, Waitlist, WaitlistSignup, WaitlistSignupsTable, WaitlistsTable, Webhook, WebhookDeliveriesTable, WebhookDelivery, WebhookFormat, WebhookKind, WebhookOutbox, WebhookOutboxTable, WebhookStatus, WebhooksTable };
|
package/dist/src/index.d.ts
CHANGED
|
@@ -577,8 +577,55 @@ interface SubgraphHealthSnapshotsTable {
|
|
|
577
577
|
total_processed: number;
|
|
578
578
|
total_errors: number;
|
|
579
579
|
last_processed_block: number | null;
|
|
580
|
+
chain_tip: string | number | null;
|
|
581
|
+
rows_written_total: string | number | null;
|
|
582
|
+
storage_bytes: string | number | null;
|
|
580
583
|
captured_at: Generated<Date>;
|
|
581
584
|
}
|
|
585
|
+
/** Handler errors grouped by fingerprint. Cap 50/subgraph. */
|
|
586
|
+
interface SubgraphErrorGroupsTable {
|
|
587
|
+
id: Generated<string>;
|
|
588
|
+
subgraph_name: string;
|
|
589
|
+
fingerprint: string;
|
|
590
|
+
source_name: string;
|
|
591
|
+
event_type: string | null;
|
|
592
|
+
message: string;
|
|
593
|
+
frame: string | null;
|
|
594
|
+
count: Generated<string | number>;
|
|
595
|
+
sample_tx_id: string | null;
|
|
596
|
+
sample_block_height: string | number | null;
|
|
597
|
+
first_seen: Generated<Date>;
|
|
598
|
+
last_seen: Generated<Date>;
|
|
599
|
+
}
|
|
600
|
+
/**
|
|
601
|
+
* One ranked dashboard insight. `account_id` is NULL on tenant and self-host
|
|
602
|
+
* databases. `severity` is never "recovered": that is derived on read from
|
|
603
|
+
* `resolved_at`.
|
|
604
|
+
*/
|
|
605
|
+
interface InsightsTable {
|
|
606
|
+
id: Generated<string>;
|
|
607
|
+
account_id: string | null;
|
|
608
|
+
resource_kind: string;
|
|
609
|
+
resource_id: string;
|
|
610
|
+
rule: string;
|
|
611
|
+
severity: string;
|
|
612
|
+
impact: Generated<number>;
|
|
613
|
+
/** resource, line, meta, lead, body, evidence, handoff, how. */
|
|
614
|
+
payload: unknown;
|
|
615
|
+
first_seen_at: Generated<Date>;
|
|
616
|
+
last_seen_at: Generated<Date>;
|
|
617
|
+
clear_streak: Generated<number>;
|
|
618
|
+
resolved_at: Date | null;
|
|
619
|
+
dismissed_at: Date | null;
|
|
620
|
+
}
|
|
621
|
+
/** "Expected": mutes one rule for one resource until removed. */
|
|
622
|
+
interface InsightMutesTable {
|
|
623
|
+
account_id: string | null;
|
|
624
|
+
resource_kind: string;
|
|
625
|
+
resource_id: string;
|
|
626
|
+
rule: string;
|
|
627
|
+
created_at: Generated<Date>;
|
|
628
|
+
}
|
|
582
629
|
interface ProcessedStripeEventsTable {
|
|
583
630
|
event_id: string;
|
|
584
631
|
event_type: string;
|
|
@@ -1055,6 +1102,7 @@ interface Database {
|
|
|
1055
1102
|
subgraph_processing_stats: SubgraphProcessingStatsTable;
|
|
1056
1103
|
subgraph_gaps: SubgraphGapsTable;
|
|
1057
1104
|
subgraph_violations: SubgraphViolationsTable;
|
|
1105
|
+
subgraph_error_groups: SubgraphErrorGroupsTable;
|
|
1058
1106
|
subgraph_operations: SubgraphOperationsTable;
|
|
1059
1107
|
processed_stripe_events: ProcessedStripeEventsTable;
|
|
1060
1108
|
account_spend_caps: AccountSpendCapsTable;
|
|
@@ -1099,6 +1147,8 @@ interface Database {
|
|
|
1099
1147
|
contact_requests: ContactRequestsTable;
|
|
1100
1148
|
api_failed_requests: ApiFailedRequestsTable;
|
|
1101
1149
|
api_request_log: ApiRequestLogTable;
|
|
1150
|
+
insights: InsightsTable;
|
|
1151
|
+
insight_mutes: InsightMutesTable;
|
|
1102
1152
|
feedback_tickets: FeedbackTicketsTable;
|
|
1103
1153
|
}
|
|
1104
1154
|
interface ServiceHeartbeatsTable {
|
|
@@ -2475,6 +2525,7 @@ declare const TABLE_TO_DB: {
|
|
|
2475
2525
|
subgraph_health_snapshots: string
|
|
2476
2526
|
subgraph_gaps: string
|
|
2477
2527
|
subgraph_violations: string
|
|
2528
|
+
subgraph_error_groups: string
|
|
2478
2529
|
subgraph_processing_stats: string
|
|
2479
2530
|
account_credits: string
|
|
2480
2531
|
archive_fetches: string
|
|
@@ -2486,6 +2537,8 @@ declare const TABLE_TO_DB: {
|
|
|
2486
2537
|
contact_requests: string
|
|
2487
2538
|
api_failed_requests: string
|
|
2488
2539
|
api_request_log: string
|
|
2540
|
+
insights: string
|
|
2541
|
+
insight_mutes: string
|
|
2489
2542
|
feedback_tickets: string
|
|
2490
2543
|
service_heartbeats: string
|
|
2491
2544
|
};
|
|
@@ -2733,10 +2786,98 @@ declare class Logger {
|
|
|
2733
2786
|
}
|
|
2734
2787
|
declare const logger: Logger;
|
|
2735
2788
|
import { z as z3 } from "zod";
|
|
2789
|
+
/**
|
|
2790
|
+
* The insight contract. The tenant (`/api/insights`) and platform
|
|
2791
|
+
* (`/api/accounts/insights`) routes serve `Insight` verbatim. The web app keeps
|
|
2792
|
+
* a field-for-field copy in `apps/web/src/lib/insights.ts`; change both
|
|
2793
|
+
* together.
|
|
2794
|
+
*
|
|
2795
|
+
* The types are written out and the schemas annotated with them, rather than
|
|
2796
|
+
* inferred: the bundled `.d.ts` loses inferred zod types (they come out as
|
|
2797
|
+
* `unknown`), the same reason `schemas/webhooks.ts` annotates its schemas.
|
|
2798
|
+
*/
|
|
2799
|
+
declare const INSIGHT_SEVERITIES: readonly ["losing", "will_fail", "costs", "recovered"];
|
|
2800
|
+
type InsightSeverity = (typeof INSIGHT_SEVERITIES)[number];
|
|
2801
|
+
type InsightResourceKind = "webhook" | "subgraph" | "account";
|
|
2802
|
+
type InsightEvidence = {
|
|
2803
|
+
kind: "series"
|
|
2804
|
+
title: string
|
|
2805
|
+
series: {
|
|
2806
|
+
name: string
|
|
2807
|
+
role: "a" | "context" | "mark"
|
|
2808
|
+
points: number[]
|
|
2809
|
+
}[]
|
|
2810
|
+
labels: [number, string][]
|
|
2811
|
+
unit?: string
|
|
2812
|
+
} | {
|
|
2813
|
+
kind: "table"
|
|
2814
|
+
title: string
|
|
2815
|
+
columns: string[]
|
|
2816
|
+
rows: (string | number)[][]
|
|
2817
|
+
markRow?: number
|
|
2818
|
+
} | {
|
|
2819
|
+
kind: "shapes"
|
|
2820
|
+
title: string
|
|
2821
|
+
shapes: {
|
|
2822
|
+
code: string
|
|
2823
|
+
body: string
|
|
2824
|
+
count: number
|
|
2825
|
+
isNew: boolean
|
|
2826
|
+
}[]
|
|
2827
|
+
} | {
|
|
2828
|
+
kind: "timeline"
|
|
2829
|
+
title: string
|
|
2830
|
+
steps: {
|
|
2831
|
+
what: string
|
|
2832
|
+
at: string
|
|
2833
|
+
note?: string
|
|
2834
|
+
failed: boolean
|
|
2835
|
+
}[]
|
|
2836
|
+
};
|
|
2837
|
+
interface Insight {
|
|
2838
|
+
id: string;
|
|
2839
|
+
rule: string;
|
|
2840
|
+
severity: InsightSeverity;
|
|
2841
|
+
impact: number;
|
|
2842
|
+
resource: {
|
|
2843
|
+
kind: InsightResourceKind
|
|
2844
|
+
id: string
|
|
2845
|
+
name: string
|
|
2846
|
+
};
|
|
2847
|
+
line: string;
|
|
2848
|
+
meta?: string;
|
|
2849
|
+
lead: string;
|
|
2850
|
+
body: string;
|
|
2851
|
+
evidence: InsightEvidence[];
|
|
2852
|
+
handoff: {
|
|
2853
|
+
prompt: string
|
|
2854
|
+
commands: string[]
|
|
2855
|
+
};
|
|
2856
|
+
how: {
|
|
2857
|
+
detector: string
|
|
2858
|
+
facts: [string, string][]
|
|
2859
|
+
label?: {
|
|
2860
|
+
cause: string
|
|
2861
|
+
confidence: number
|
|
2862
|
+
}
|
|
2863
|
+
};
|
|
2864
|
+
createdAt: string;
|
|
2865
|
+
resolvedAt?: string | null;
|
|
2866
|
+
}
|
|
2867
|
+
interface InsightListResponse {
|
|
2868
|
+
data: Insight[];
|
|
2869
|
+
}
|
|
2870
|
+
declare const InsightSeveritySchema: z3.ZodType<InsightSeverity>;
|
|
2871
|
+
declare const InsightResourceKindSchema: z3.ZodType<InsightResourceKind>;
|
|
2872
|
+
declare const InsightEvidenceSchema: z3.ZodType<InsightEvidence>;
|
|
2873
|
+
declare const InsightSchema: z3.ZodType<Insight>;
|
|
2874
|
+
declare const InsightListResponseSchema: z3.ZodType<InsightListResponse>;
|
|
2875
|
+
declare const SEVERITY_ORDER: Record<InsightSeverity, number>;
|
|
2876
|
+
import { z as z4 } from "zod";
|
|
2736
2877
|
declare const WEBHOOK_FORMATS: readonly ["standard-webhooks", "inngest", "trigger", "cloudflare", "cloudevents", "raw"];
|
|
2737
2878
|
declare const WEBHOOK_STATUSES: readonly ["active", "paused", "error"];
|
|
2738
|
-
declare const WebhookStatusSchema:
|
|
2739
|
-
declare const WebhookFormatSchema:
|
|
2879
|
+
declare const WebhookStatusSchema: z4.ZodType<WebhookStatus2>;
|
|
2880
|
+
declare const WebhookFormatSchema: z4.ZodType<WebhookFormat2>;
|
|
2740
2881
|
declare const CHAIN_TRIGGER_TYPES: readonly ["stx_transfer", "stx_mint", "stx_burn", "stx_lock", "ft_transfer", "ft_mint", "ft_burn", "nft_transfer", "nft_mint", "nft_burn", "contract_call", "contract_deploy", "print_event", "nested_contract_call", "var_set", "map_set", "map_insert", "map_delete", "sbtc_deposit", "sbtc_withdrawal_create", "sbtc_withdrawal_accept", "sbtc_withdrawal_reject", "sbtc_withdrawal_swept_confirmed", "rune_etch", "rune_mint", "rune_transfer", "rune_burn"];
|
|
2741
2882
|
/**
|
|
2742
2883
|
* Per-type accepted filter fields for chain triggers, DERIVED from
|
|
@@ -2744,9 +2885,9 @@ declare const CHAIN_TRIGGER_TYPES: readonly ["stx_transfer", "stx_mint", "stx_bu
|
|
|
2744
2885
|
* the validator. `{ stx_transfer: ["sender","recipient","minAmount","maxAmount"], ... }`.
|
|
2745
2886
|
*/
|
|
2746
2887
|
declare const CHAIN_TRIGGER_FIELDS: Record<string, string[]>;
|
|
2747
|
-
declare const CreateWebhookRequestSchema:
|
|
2748
|
-
declare const UpdateWebhookRequestSchema:
|
|
2749
|
-
declare const ReplayWebhookRequestSchema:
|
|
2888
|
+
declare const CreateWebhookRequestSchema: z4.ZodType<ParsedCreateWebhookRequest>;
|
|
2889
|
+
declare const UpdateWebhookRequestSchema: z4.ZodType<UpdateWebhookRequest>;
|
|
2890
|
+
declare const ReplayWebhookRequestSchema: z4.ZodType<ReplayWebhookRequest>;
|
|
2750
2891
|
type WebhookStatus2 = (typeof WEBHOOK_STATUSES)[number];
|
|
2751
2892
|
/** Webhook kind (mirrors db/types `WebhookKind`). Chain events only. */
|
|
2752
2893
|
type WebhookKind2 = "chain";
|
|
@@ -3020,7 +3161,7 @@ interface DeadRow {
|
|
|
3020
3161
|
failedAt: string | null;
|
|
3021
3162
|
createdAt: string;
|
|
3022
3163
|
}
|
|
3023
|
-
declare function formatWebhookSchemaErrors(error:
|
|
3164
|
+
declare function formatWebhookSchemaErrors(error: z4.ZodError): string[];
|
|
3024
3165
|
type SubgraphSpecFormat = "openapi" | "agent" | "markdown";
|
|
3025
3166
|
/** Options for generating a subgraph's agent schema. */
|
|
3026
3167
|
interface SubgraphSpecOptions {
|
|
@@ -3066,6 +3207,27 @@ declare function generateSubgraphAgentSchema(detail: SubgraphDetail, options?: S
|
|
|
3066
3207
|
declare function generateSubgraphOpenApi(detail: SubgraphDetail, options?: SubgraphSpecOptions): Record<string, unknown>;
|
|
3067
3208
|
declare function generateSubgraphMarkdown(detail: SubgraphDetail, options?: SubgraphSpecOptions): string;
|
|
3068
3209
|
declare function generateSubgraphSpec(detail: SubgraphDetail, format: SubgraphSpecFormat, options?: SubgraphSpecOptions): Record<string, unknown> | SubgraphAgentSchema | string;
|
|
3210
|
+
interface HealthSnapshotPoint {
|
|
3211
|
+
captured_at: Date | string;
|
|
3212
|
+
chain_tip: string | number | null;
|
|
3213
|
+
last_processed_block: string | number | null;
|
|
3214
|
+
rows_written_total: string | number | null;
|
|
3215
|
+
total_errors: string | number;
|
|
3216
|
+
total_processed: string | number;
|
|
3217
|
+
}
|
|
3218
|
+
interface HealthHour {
|
|
3219
|
+
hour: string;
|
|
3220
|
+
lagBlocks: number | null;
|
|
3221
|
+
rowsWritten: number;
|
|
3222
|
+
errors: number;
|
|
3223
|
+
eventsHandled: number;
|
|
3224
|
+
}
|
|
3225
|
+
/**
|
|
3226
|
+
* Bucket snapshots into the last `hours` UTC hours (oldest first, ending with
|
|
3227
|
+
* the hour containing `now`). The delta for an hour also spans the boundary
|
|
3228
|
+
* from the previous hour's last snapshot, so no growth falls between buckets.
|
|
3229
|
+
*/
|
|
3230
|
+
declare function bucketHourly(snapshots: HealthSnapshotPoint[], hours: number, now?: number): HealthHour[];
|
|
3069
3231
|
/** The etch a `rune_etch` event created — everything a consumer needs to
|
|
3070
3232
|
* render a fresh rune without a second lookup, minus what the envelope
|
|
3071
3233
|
* already carries (`rune_id`). Mirrors 058's `RuneEntry` shape
|
|
@@ -3456,4 +3618,4 @@ declare function publicKeyPemFromPrivate(privateKeyPem: string): string;
|
|
|
3456
3618
|
declare function ed25519KeyId(publicKeyPem: string): string;
|
|
3457
3619
|
declare function signEd25519(payload: string, privateKey: KeyObject): string;
|
|
3458
3620
|
declare function verifyEd25519(payload: string, signatureBase64: string, publicKey: KeyObject): boolean;
|
|
3459
|
-
export { Account, AccountBalanceAlerts, AccountBalanceAlertsTable, AccountCredits, AccountCreditsTable, AccountSpendCap, AccountSpendCapsTable, AccountsTable, ApiFailedRequest, ApiFailedRequestsTable, ApiKey, ApiKeysTable, ApiRequestLogRow, ApiRequestLogTable, ArchiveFetch, ArchiveFetchesTable, AuthenticationError, AuthorizationError, BILLING_PAUSED_PREFIX, Block, BlocksTable, BnsMarketplaceAction, BnsMarketplaceEventsTable, BnsNameEventTopic, BnsNameEventsTable, BnsNamesTable, BnsNamespaceEventStatus, BnsNamespaceEventsTable, BnsNamespacesTable, BurnBlockRewardSlotsTable, BurnBlockRewardsTable, CHAIN_TRIGGER_FIELDS, CHAIN_TRIGGER_TYPES, CODE_TO_STATUS, ChainApplyDeliveryOf, ChainApplyEnvelope, ChainApplyEnvelopeOf, ChainEventEnvelope, ChainFtBurnData, ChainFtMintData, ChainFtTransferData, ChainNftBurnData, ChainNftMintData, ChainNftTransferData, ChainPrintEventData, ChainReadCacheTable, ChainReorgOrphanedEntry, ChainReorgRollbackDelivery, ChainReorgRollbackEnvelope, ChainReorgsTable, ChainStxBurnData, ChainStxLockData, ChainStxMintData, ChainStxTransferData, ChainTestDelivery, ChainTxLevelEvent, ChainWebhookDelivery, ChainWebhookEnvelope, ContactRequest, ContactRequestsTable, Contract, ContractsTable, CoverageSegmentsTable, CreateWebhookRequest, CreateWebhookRequestSchema, CreateWebhookResponse, DB_TO_STREAMS_EVENT_TYPE, DECODED_EVENT_TYPES2 as DECODED_EVENT_TYPES, DEFAULT_BTC_CONFIRMATIONS, Database, DatabaseError, DbPlane, DbReadRow, DbSplitStatus, DeadLetterEventsTable, DeadRow, DecodedEventType2 as DecodedEventType, DecodedEventsTable, DecoderCheckpointsTable, DeliveryRow, DeploySubgraphRequest, DeploySubgraphRequestSchema, DeploySubgraphResponse, EMPTY_RANGE_EVENT_INDEX_SENTINEL, Env, ErrorCode, ErrorCodes, Event, EventsArchiveTable, EventsTable, FailureClass, FailureUnit, FeedbackTicket, FeedbackTicketsTable, ForbiddenError, IndexColumn, IndexColumnType, IndexPrimaryKey, IndexProgress, IndexProgressTable, InsertAccount, InsertAccountBalanceAlerts, InsertAccountCredits, InsertAccountSpendCap, InsertApiFailedRequest, InsertApiKey, InsertApiRequestLogRow, InsertArchiveFetch, InsertBlock, InsertContactRequest, InsertContract, InsertEvent, InsertFeedbackTicket, InsertIndexProgress, InsertMagicLink, InsertMempoolTransaction, InsertSession, InsertStateWrite, InsertSubgraph, InsertSubgraphGap, InsertSubgraphHealthSnapshot, InsertSubgraphOperation, InsertTransaction, InsertUsageLedgerRow, InsertVmEvent, InsertWaitlistSignup, InsertWebhook, InsertWebhookDelivery, InsertWebhookOutbox, InstancesTable, KeyRotatedError, MagicLink, MagicLinksTable, MempoolTransaction, MempoolTransactionsTable, MigrationRole, NativeClock, NotFoundError, NumericAsText, ObserverJournalStatus, ObserverJournalTable, OutboxStatus, ParsedCreateWebhookRequest, ParsedReplayWebhookRequest, ParsedUpdateWebhookRequest, PaymentRequiredError, PendingForkBlocksTable, Pox4CallsTable, Pox4FunctionName, Pox5CycleSignersTable, Pox5CyclesTable, Pox5EventTopic, Pox5EventsTable, ProcessedStripeEventsTable, RUNE_EVENT_TYPES, RateLimitError, ReindexResponse, RepairMode, ReplayResult, ReplayWebhookRequest, ReplayWebhookRequestSchema, RetryState, RotateSecretResponse, RunStatus, RuneApplyDeliveryOf, RuneApplyEnvelope, RuneEventType, SOURCE_READ_COLUMNS, SOURCE_READ_PKS, SOURCE_READ_TYPES, STREAMS_DB_EVENT_TYPES, STREAMS_EVENT_TYPES, STREAMS_TO_DB_EVENT_TYPES, SbtcDepositEvent, SbtcEventTopic, SbtcEventsTable, SbtcSettlementsTable, SbtcTokenEventType, SbtcTokenEventsTable, SbtcWithdrawalEvent, SbtcWithdrawalSweptConfirmedEvent, SecondLayerError, SentinelAccount, SentinelAccountsTable, ServiceHeartbeatsTable, Session, SessionsTable, StageBlockReceiptsTable, StageFailuresTable, StageKind, StageRegistryTable, StageRunsTable, StateWrite, StateWritesArchiveTable, StateWritesTable, StreamsCursor, StreamsDbEventType, StreamsEventType, Subgraph, SubgraphAgentSchema, SubgraphAggregateParams, SubgraphAggregateResponse, SubgraphDetail, SubgraphGap, SubgraphGapEntry, SubgraphGapRange, SubgraphGapsResponse, SubgraphGapsTable, SubgraphHealthSnapshot, SubgraphHealthSnapshotsTable, SubgraphOperation, SubgraphOperationKind, SubgraphOperationStatus, SubgraphOperationsTable, SubgraphProcessingStatsTable, SubgraphQueryParams, SubgraphSpecFormat, SubgraphSpecOptions, SubgraphSummary, SubgraphSyncInfo, SubgraphVerification, SubgraphViolationsTable, SubgraphsTable, SyncScopesTable, TABLE_TO_DB, TenantSuspendedError, Transaction, TransactionsArchiveTable, TransactionsTable, TriggerEvaluatorState, TriggerEvaluatorStateTable, UpdateAccountBalanceAlerts, UpdateAccountCredits, UpdateAccountSpendCap, UpdateApiKey, UpdateArchiveFetch, UpdateBlock, UpdateContract, UpdateEvent, UpdateIndexProgress, UpdateSubgraph, UpdateSubgraphOperation, UpdateTransaction, UpdateUsageLedgerRow, UpdateVmEvent, UpdateWebhook, UpdateWebhookOutbox, UpdateWebhookRequest, UpdateWebhookRequestSchema, UsageLedgerRow, UsageLedgerTable, VM_EVENT_TYPES, VM_NODE_TO_STORED_TYPE2 as VM_NODE_TO_STORED_TYPE, VM_STORED_TO_NODE_TYPE, ValidationError, VersionConflictError, VmEvent, VmEventType, VmEventsArchiveTable, VmEventsTable, VmNodeEventType, WEBHOOK_FORMATS, WEBHOOK_STATUSES, Waitlist, WaitlistSignup, WaitlistSignupsTable, WaitlistsTable, Webhook, WebhookDeliveriesTable, WebhookDelivery, WebhookDetail, WebhookFormat, WebhookFormatSchema, WebhookKind, WebhookOutbox, WebhookOutboxTable, WebhookStatus, WebhookStatusSchema, WebhookSummary, WebhooksTable, applicationDatabaseUrl, assertDbSplit, billingPausedCode, blockEndCursor, closeDb, closeDbOrTimeout, committedHeight, compareStreamsCursor, exports_hmac as crypto, decodeStreamsCursor, describeDbUrl, exports_ed25519 as ed25519, encodeStreamsCursor, finalizedBurnHeight, formatWebhookSchemaErrors, generateSubgraphAgentSchema, generateSubgraphMarkdown, generateSubgraphOpenApi, generateSubgraphSpec, getDb, getDbSplitStatus, getEnv, getErrorMessage, getMigrationRole, getRawClient, getSourceDb, getTargetDb, isBnsDecoderEnabled, isEmptyRangeCursor, isPox4DecoderEnabled, isPox5DecoderEnabled, isSbtcDecoderEnabled, jsonb, logger, onChainPlane, onControlPlane, parseJsonb, resolveSourceUrl, resolveTargetUrl, setMigrationRole, sql };
|
|
3621
|
+
export { Account, AccountBalanceAlerts, AccountBalanceAlertsTable, AccountCredits, AccountCreditsTable, AccountSpendCap, AccountSpendCapsTable, AccountsTable, ApiFailedRequest, ApiFailedRequestsTable, ApiKey, ApiKeysTable, ApiRequestLogRow, ApiRequestLogTable, ArchiveFetch, ArchiveFetchesTable, AuthenticationError, AuthorizationError, BILLING_PAUSED_PREFIX, Block, BlocksTable, BnsMarketplaceAction, BnsMarketplaceEventsTable, BnsNameEventTopic, BnsNameEventsTable, BnsNamesTable, BnsNamespaceEventStatus, BnsNamespaceEventsTable, BnsNamespacesTable, BurnBlockRewardSlotsTable, BurnBlockRewardsTable, CHAIN_TRIGGER_FIELDS, CHAIN_TRIGGER_TYPES, CODE_TO_STATUS, ChainApplyDeliveryOf, ChainApplyEnvelope, ChainApplyEnvelopeOf, ChainEventEnvelope, ChainFtBurnData, ChainFtMintData, ChainFtTransferData, ChainNftBurnData, ChainNftMintData, ChainNftTransferData, ChainPrintEventData, ChainReadCacheTable, ChainReorgOrphanedEntry, ChainReorgRollbackDelivery, ChainReorgRollbackEnvelope, ChainReorgsTable, ChainStxBurnData, ChainStxLockData, ChainStxMintData, ChainStxTransferData, ChainTestDelivery, ChainTxLevelEvent, ChainWebhookDelivery, ChainWebhookEnvelope, ContactRequest, ContactRequestsTable, Contract, ContractsTable, CoverageSegmentsTable, CreateWebhookRequest, CreateWebhookRequestSchema, CreateWebhookResponse, DB_TO_STREAMS_EVENT_TYPE, DECODED_EVENT_TYPES2 as DECODED_EVENT_TYPES, DEFAULT_BTC_CONFIRMATIONS, Database, DatabaseError, DbPlane, DbReadRow, DbSplitStatus, DeadLetterEventsTable, DeadRow, DecodedEventType2 as DecodedEventType, DecodedEventsTable, DecoderCheckpointsTable, DeliveryRow, DeploySubgraphRequest, DeploySubgraphRequestSchema, DeploySubgraphResponse, EMPTY_RANGE_EVENT_INDEX_SENTINEL, Env, ErrorCode, ErrorCodes, Event, EventsArchiveTable, EventsTable, FailureClass, FailureUnit, FeedbackTicket, FeedbackTicketsTable, ForbiddenError, HealthHour, HealthSnapshotPoint, INSIGHT_SEVERITIES, IndexColumn, IndexColumnType, IndexPrimaryKey, IndexProgress, IndexProgressTable, InsertAccount, InsertAccountBalanceAlerts, InsertAccountCredits, InsertAccountSpendCap, InsertApiFailedRequest, InsertApiKey, InsertApiRequestLogRow, InsertArchiveFetch, InsertBlock, InsertContactRequest, InsertContract, InsertEvent, InsertFeedbackTicket, InsertIndexProgress, InsertMagicLink, InsertMempoolTransaction, InsertSession, InsertStateWrite, InsertSubgraph, InsertSubgraphGap, InsertSubgraphHealthSnapshot, InsertSubgraphOperation, InsertTransaction, InsertUsageLedgerRow, InsertVmEvent, InsertWaitlistSignup, InsertWebhook, InsertWebhookDelivery, InsertWebhookOutbox, Insight, InsightEvidence, InsightEvidenceSchema, InsightListResponse, InsightListResponseSchema, InsightMutesTable, InsightResourceKind, InsightResourceKindSchema, InsightSchema, InsightSeverity, InsightSeveritySchema, InsightsTable, InstancesTable, KeyRotatedError, MagicLink, MagicLinksTable, MempoolTransaction, MempoolTransactionsTable, MigrationRole, NativeClock, NotFoundError, NumericAsText, ObserverJournalStatus, ObserverJournalTable, OutboxStatus, ParsedCreateWebhookRequest, ParsedReplayWebhookRequest, ParsedUpdateWebhookRequest, PaymentRequiredError, PendingForkBlocksTable, Pox4CallsTable, Pox4FunctionName, Pox5CycleSignersTable, Pox5CyclesTable, Pox5EventTopic, Pox5EventsTable, ProcessedStripeEventsTable, RUNE_EVENT_TYPES, RateLimitError, ReindexResponse, RepairMode, ReplayResult, ReplayWebhookRequest, ReplayWebhookRequestSchema, RetryState, RotateSecretResponse, RunStatus, RuneApplyDeliveryOf, RuneApplyEnvelope, RuneEventType, SEVERITY_ORDER, SOURCE_READ_COLUMNS, SOURCE_READ_PKS, SOURCE_READ_TYPES, STREAMS_DB_EVENT_TYPES, STREAMS_EVENT_TYPES, STREAMS_TO_DB_EVENT_TYPES, SbtcDepositEvent, SbtcEventTopic, SbtcEventsTable, SbtcSettlementsTable, SbtcTokenEventType, SbtcTokenEventsTable, SbtcWithdrawalEvent, SbtcWithdrawalSweptConfirmedEvent, SecondLayerError, SentinelAccount, SentinelAccountsTable, ServiceHeartbeatsTable, Session, SessionsTable, StageBlockReceiptsTable, StageFailuresTable, StageKind, StageRegistryTable, StageRunsTable, StateWrite, StateWritesArchiveTable, StateWritesTable, StreamsCursor, StreamsDbEventType, StreamsEventType, Subgraph, SubgraphAgentSchema, SubgraphAggregateParams, SubgraphAggregateResponse, SubgraphDetail, SubgraphErrorGroupsTable, SubgraphGap, SubgraphGapEntry, SubgraphGapRange, SubgraphGapsResponse, SubgraphGapsTable, SubgraphHealthSnapshot, SubgraphHealthSnapshotsTable, SubgraphOperation, SubgraphOperationKind, SubgraphOperationStatus, SubgraphOperationsTable, SubgraphProcessingStatsTable, SubgraphQueryParams, SubgraphSpecFormat, SubgraphSpecOptions, SubgraphSummary, SubgraphSyncInfo, SubgraphVerification, SubgraphViolationsTable, SubgraphsTable, SyncScopesTable, TABLE_TO_DB, TenantSuspendedError, Transaction, TransactionsArchiveTable, TransactionsTable, TriggerEvaluatorState, TriggerEvaluatorStateTable, UpdateAccountBalanceAlerts, UpdateAccountCredits, UpdateAccountSpendCap, UpdateApiKey, UpdateArchiveFetch, UpdateBlock, UpdateContract, UpdateEvent, UpdateIndexProgress, UpdateSubgraph, UpdateSubgraphOperation, UpdateTransaction, UpdateUsageLedgerRow, UpdateVmEvent, UpdateWebhook, UpdateWebhookOutbox, UpdateWebhookRequest, UpdateWebhookRequestSchema, UsageLedgerRow, UsageLedgerTable, VM_EVENT_TYPES, VM_NODE_TO_STORED_TYPE2 as VM_NODE_TO_STORED_TYPE, VM_STORED_TO_NODE_TYPE, ValidationError, VersionConflictError, VmEvent, VmEventType, VmEventsArchiveTable, VmEventsTable, VmNodeEventType, WEBHOOK_FORMATS, WEBHOOK_STATUSES, Waitlist, WaitlistSignup, WaitlistSignupsTable, WaitlistsTable, Webhook, WebhookDeliveriesTable, WebhookDelivery, WebhookDetail, WebhookFormat, WebhookFormatSchema, WebhookKind, WebhookOutbox, WebhookOutboxTable, WebhookStatus, WebhookStatusSchema, WebhookSummary, WebhooksTable, applicationDatabaseUrl, assertDbSplit, billingPausedCode, blockEndCursor, bucketHourly, closeDb, closeDbOrTimeout, committedHeight, compareStreamsCursor, exports_hmac as crypto, decodeStreamsCursor, describeDbUrl, exports_ed25519 as ed25519, encodeStreamsCursor, finalizedBurnHeight, formatWebhookSchemaErrors, generateSubgraphAgentSchema, generateSubgraphMarkdown, generateSubgraphOpenApi, generateSubgraphSpec, getDb, getDbSplitStatus, getEnv, getErrorMessage, getMigrationRole, getRawClient, getSourceDb, getTargetDb, isBnsDecoderEnabled, isEmptyRangeCursor, isPox4DecoderEnabled, isPox5DecoderEnabled, isSbtcDecoderEnabled, jsonb, logger, onChainPlane, onControlPlane, parseJsonb, resolveSourceUrl, resolveTargetUrl, setMigrationRole, sql };
|