@secondlayer/shared 11.15.1 → 11.15.3

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.
@@ -417,6 +417,39 @@ interface Pox5EventsTable {
417
417
  source_cursor: string;
418
418
  created_at: Generated<Date>;
419
419
  }
420
+ interface Pox5CyclesTable {
421
+ reward_cycle: number;
422
+ start_burn_height: number;
423
+ prepare_start_burn_height: number;
424
+ end_burn_height: number;
425
+ total_stacked_ustx: string;
426
+ reward_eligible_ustx: string;
427
+ stakers: number;
428
+ signers_in_set: number;
429
+ /** bond index (as string) -> sats staked for this cycle. */
430
+ bond_sats: unknown;
431
+ bond_total_sats: string;
432
+ sbtc_custodied_sats: string;
433
+ rewards_allocated_stx: string;
434
+ rewards_allocated_bond: string;
435
+ reserve_deposit: string;
436
+ rewards_per_token_stx: string | null;
437
+ /** bond index (as string) -> cumulative rewards-per-sat for this cycle. */
438
+ rewards_per_token_bond: unknown;
439
+ distributions: number;
440
+ rewards_claimed: string;
441
+ computed_through_height: number;
442
+ updated_at: Generated<Date>;
443
+ }
444
+ interface Pox5CycleSignersTable {
445
+ reward_cycle: number;
446
+ signer: string;
447
+ delegated_ustx: string;
448
+ stx_only_ustx: string;
449
+ reward_shares_ustx: string;
450
+ in_set: boolean;
451
+ rewards_claimed: string;
452
+ }
420
453
  interface BurnBlockRewardsTable {
421
454
  cursor: string;
422
455
  burn_block_height: number;
@@ -764,6 +797,8 @@ interface Database {
764
797
  chain_reorgs: ChainReorgsTable;
765
798
  pox4_calls: Pox4CallsTable;
766
799
  pox5_events: Pox5EventsTable;
800
+ pox5_cycles: Pox5CyclesTable;
801
+ pox5_cycle_signers: Pox5CycleSignersTable;
767
802
  burn_block_rewards: BurnBlockRewardsTable;
768
803
  burn_block_reward_slots: BurnBlockRewardSlotsTable;
769
804
  sbtc_events: SbtcEventsTable;
@@ -786,6 +821,7 @@ interface Database {
786
821
  stage_failures: StageFailuresTable;
787
822
  archive_fetches: ArchiveFetchesTable;
788
823
  usage_ledger: UsageLedgerTable;
824
+ account_balance_alerts: AccountBalanceAlertsTable;
789
825
  waitlists: WaitlistsTable;
790
826
  waitlist_signups: WaitlistSignupsTable;
791
827
  }
@@ -844,6 +880,10 @@ interface UsageLedgerTable {
844
880
  account_id: string;
845
881
  unit: string;
846
882
  quantity: string | number | bigint;
883
+ /** Raw sampled quantity before any floor (e.g. `memory.gb_hour`'s actual
884
+ * RAM, before the 0.5 GB minimum). NULL for every unit that has no
885
+ * floor to observe past. */
886
+ observed_quantity: string | number | null;
847
887
  usd_micros: string | number | bigint;
848
888
  debited: Generated<boolean>;
849
889
  source: string;
@@ -851,6 +891,16 @@ interface UsageLedgerTable {
851
891
  occurred_at: Generated<Date>;
852
892
  recorded_at: Generated<Date>;
853
893
  }
894
+ /** Preferences + debounce state for the balance-runway email alerts. One
895
+ * row per account; a missing row means both alerts are on (defaults). */
896
+ interface AccountBalanceAlertsTable {
897
+ account_id: string;
898
+ notify_7d: Generated<boolean>;
899
+ notify_2d: Generated<boolean>;
900
+ sent_7d_at: Date | null;
901
+ sent_2d_at: Date | null;
902
+ sent_stopped_at: Date | null;
903
+ }
854
904
  type WebhookStatus = "active" | "paused" | "error";
855
905
  /** Polymorphic webhook mode: `subgraph` reacts to processed table rows;
856
906
  * `chain` reacts to raw chain events matched directly off the Index/Streams
@@ -417,6 +417,39 @@ interface Pox5EventsTable {
417
417
  source_cursor: string;
418
418
  created_at: Generated<Date>;
419
419
  }
420
+ interface Pox5CyclesTable {
421
+ reward_cycle: number;
422
+ start_burn_height: number;
423
+ prepare_start_burn_height: number;
424
+ end_burn_height: number;
425
+ total_stacked_ustx: string;
426
+ reward_eligible_ustx: string;
427
+ stakers: number;
428
+ signers_in_set: number;
429
+ /** bond index (as string) -> sats staked for this cycle. */
430
+ bond_sats: unknown;
431
+ bond_total_sats: string;
432
+ sbtc_custodied_sats: string;
433
+ rewards_allocated_stx: string;
434
+ rewards_allocated_bond: string;
435
+ reserve_deposit: string;
436
+ rewards_per_token_stx: string | null;
437
+ /** bond index (as string) -> cumulative rewards-per-sat for this cycle. */
438
+ rewards_per_token_bond: unknown;
439
+ distributions: number;
440
+ rewards_claimed: string;
441
+ computed_through_height: number;
442
+ updated_at: Generated<Date>;
443
+ }
444
+ interface Pox5CycleSignersTable {
445
+ reward_cycle: number;
446
+ signer: string;
447
+ delegated_ustx: string;
448
+ stx_only_ustx: string;
449
+ reward_shares_ustx: string;
450
+ in_set: boolean;
451
+ rewards_claimed: string;
452
+ }
420
453
  interface BurnBlockRewardsTable {
421
454
  cursor: string;
422
455
  burn_block_height: number;
@@ -764,6 +797,8 @@ interface Database {
764
797
  chain_reorgs: ChainReorgsTable;
765
798
  pox4_calls: Pox4CallsTable;
766
799
  pox5_events: Pox5EventsTable;
800
+ pox5_cycles: Pox5CyclesTable;
801
+ pox5_cycle_signers: Pox5CycleSignersTable;
767
802
  burn_block_rewards: BurnBlockRewardsTable;
768
803
  burn_block_reward_slots: BurnBlockRewardSlotsTable;
769
804
  sbtc_events: SbtcEventsTable;
@@ -786,6 +821,7 @@ interface Database {
786
821
  stage_failures: StageFailuresTable;
787
822
  archive_fetches: ArchiveFetchesTable;
788
823
  usage_ledger: UsageLedgerTable;
824
+ account_balance_alerts: AccountBalanceAlertsTable;
789
825
  waitlists: WaitlistsTable;
790
826
  waitlist_signups: WaitlistSignupsTable;
791
827
  }
@@ -844,6 +880,10 @@ interface UsageLedgerTable {
844
880
  account_id: string;
845
881
  unit: string;
846
882
  quantity: string | number | bigint;
883
+ /** Raw sampled quantity before any floor (e.g. `memory.gb_hour`'s actual
884
+ * RAM, before the 0.5 GB minimum). NULL for every unit that has no
885
+ * floor to observe past. */
886
+ observed_quantity: string | number | null;
847
887
  usd_micros: string | number | bigint;
848
888
  debited: Generated<boolean>;
849
889
  source: string;
@@ -851,6 +891,16 @@ interface UsageLedgerTable {
851
891
  occurred_at: Generated<Date>;
852
892
  recorded_at: Generated<Date>;
853
893
  }
894
+ /** Preferences + debounce state for the balance-runway email alerts. One
895
+ * row per account; a missing row means both alerts are on (defaults). */
896
+ interface AccountBalanceAlertsTable {
897
+ account_id: string;
898
+ notify_7d: Generated<boolean>;
899
+ notify_2d: Generated<boolean>;
900
+ sent_7d_at: Date | null;
901
+ sent_2d_at: Date | null;
902
+ sent_stopped_at: Date | null;
903
+ }
854
904
  type SubgraphOperation = Selectable<SubgraphOperationsTable>;
855
905
  type WebhookStatus = "active" | "paused" | "error";
856
906
  /** Polymorphic webhook mode: `subgraph` reacts to processed table rows;
@@ -417,6 +417,39 @@ interface Pox5EventsTable {
417
417
  source_cursor: string;
418
418
  created_at: Generated<Date>;
419
419
  }
420
+ interface Pox5CyclesTable {
421
+ reward_cycle: number;
422
+ start_burn_height: number;
423
+ prepare_start_burn_height: number;
424
+ end_burn_height: number;
425
+ total_stacked_ustx: string;
426
+ reward_eligible_ustx: string;
427
+ stakers: number;
428
+ signers_in_set: number;
429
+ /** bond index (as string) -> sats staked for this cycle. */
430
+ bond_sats: unknown;
431
+ bond_total_sats: string;
432
+ sbtc_custodied_sats: string;
433
+ rewards_allocated_stx: string;
434
+ rewards_allocated_bond: string;
435
+ reserve_deposit: string;
436
+ rewards_per_token_stx: string | null;
437
+ /** bond index (as string) -> cumulative rewards-per-sat for this cycle. */
438
+ rewards_per_token_bond: unknown;
439
+ distributions: number;
440
+ rewards_claimed: string;
441
+ computed_through_height: number;
442
+ updated_at: Generated<Date>;
443
+ }
444
+ interface Pox5CycleSignersTable {
445
+ reward_cycle: number;
446
+ signer: string;
447
+ delegated_ustx: string;
448
+ stx_only_ustx: string;
449
+ reward_shares_ustx: string;
450
+ in_set: boolean;
451
+ rewards_claimed: string;
452
+ }
420
453
  interface BurnBlockRewardsTable {
421
454
  cursor: string;
422
455
  burn_block_height: number;
@@ -764,6 +797,8 @@ interface Database {
764
797
  chain_reorgs: ChainReorgsTable;
765
798
  pox4_calls: Pox4CallsTable;
766
799
  pox5_events: Pox5EventsTable;
800
+ pox5_cycles: Pox5CyclesTable;
801
+ pox5_cycle_signers: Pox5CycleSignersTable;
767
802
  burn_block_rewards: BurnBlockRewardsTable;
768
803
  burn_block_reward_slots: BurnBlockRewardSlotsTable;
769
804
  sbtc_events: SbtcEventsTable;
@@ -786,6 +821,7 @@ interface Database {
786
821
  stage_failures: StageFailuresTable;
787
822
  archive_fetches: ArchiveFetchesTable;
788
823
  usage_ledger: UsageLedgerTable;
824
+ account_balance_alerts: AccountBalanceAlertsTable;
789
825
  waitlists: WaitlistsTable;
790
826
  waitlist_signups: WaitlistSignupsTable;
791
827
  }
@@ -844,6 +880,10 @@ interface UsageLedgerTable {
844
880
  account_id: string;
845
881
  unit: string;
846
882
  quantity: string | number | bigint;
883
+ /** Raw sampled quantity before any floor (e.g. `memory.gb_hour`'s actual
884
+ * RAM, before the 0.5 GB minimum). NULL for every unit that has no
885
+ * floor to observe past. */
886
+ observed_quantity: string | number | null;
847
887
  usd_micros: string | number | bigint;
848
888
  debited: Generated<boolean>;
849
889
  source: string;
@@ -851,6 +891,16 @@ interface UsageLedgerTable {
851
891
  occurred_at: Generated<Date>;
852
892
  recorded_at: Generated<Date>;
853
893
  }
894
+ /** Preferences + debounce state for the balance-runway email alerts. One
895
+ * row per account; a missing row means both alerts are on (defaults). */
896
+ interface AccountBalanceAlertsTable {
897
+ account_id: string;
898
+ notify_7d: Generated<boolean>;
899
+ notify_2d: Generated<boolean>;
900
+ sent_7d_at: Date | null;
901
+ sent_2d_at: Date | null;
902
+ sent_stopped_at: Date | null;
903
+ }
854
904
  type Subgraph = Selectable<SubgraphsTable>;
855
905
  type WebhookStatus = "active" | "paused" | "error";
856
906
  /** Polymorphic webhook mode: `subgraph` reacts to processed table rows;
@@ -427,6 +427,39 @@ interface Pox5EventsTable {
427
427
  source_cursor: string;
428
428
  created_at: Generated<Date>;
429
429
  }
430
+ interface Pox5CyclesTable {
431
+ reward_cycle: number;
432
+ start_burn_height: number;
433
+ prepare_start_burn_height: number;
434
+ end_burn_height: number;
435
+ total_stacked_ustx: string;
436
+ reward_eligible_ustx: string;
437
+ stakers: number;
438
+ signers_in_set: number;
439
+ /** bond index (as string) -> sats staked for this cycle. */
440
+ bond_sats: unknown;
441
+ bond_total_sats: string;
442
+ sbtc_custodied_sats: string;
443
+ rewards_allocated_stx: string;
444
+ rewards_allocated_bond: string;
445
+ reserve_deposit: string;
446
+ rewards_per_token_stx: string | null;
447
+ /** bond index (as string) -> cumulative rewards-per-sat for this cycle. */
448
+ rewards_per_token_bond: unknown;
449
+ distributions: number;
450
+ rewards_claimed: string;
451
+ computed_through_height: number;
452
+ updated_at: Generated<Date>;
453
+ }
454
+ interface Pox5CycleSignersTable {
455
+ reward_cycle: number;
456
+ signer: string;
457
+ delegated_ustx: string;
458
+ stx_only_ustx: string;
459
+ reward_shares_ustx: string;
460
+ in_set: boolean;
461
+ rewards_claimed: string;
462
+ }
430
463
  interface BurnBlockRewardsTable {
431
464
  cursor: string;
432
465
  burn_block_height: number;
@@ -774,6 +807,8 @@ interface Database {
774
807
  chain_reorgs: ChainReorgsTable;
775
808
  pox4_calls: Pox4CallsTable;
776
809
  pox5_events: Pox5EventsTable;
810
+ pox5_cycles: Pox5CyclesTable;
811
+ pox5_cycle_signers: Pox5CycleSignersTable;
777
812
  burn_block_rewards: BurnBlockRewardsTable;
778
813
  burn_block_reward_slots: BurnBlockRewardSlotsTable;
779
814
  sbtc_events: SbtcEventsTable;
@@ -796,6 +831,7 @@ interface Database {
796
831
  stage_failures: StageFailuresTable;
797
832
  archive_fetches: ArchiveFetchesTable;
798
833
  usage_ledger: UsageLedgerTable;
834
+ account_balance_alerts: AccountBalanceAlertsTable;
799
835
  waitlists: WaitlistsTable;
800
836
  waitlist_signups: WaitlistSignupsTable;
801
837
  }
@@ -854,6 +890,10 @@ interface UsageLedgerTable {
854
890
  account_id: string;
855
891
  unit: string;
856
892
  quantity: string | number | bigint;
893
+ /** Raw sampled quantity before any floor (e.g. `memory.gb_hour`'s actual
894
+ * RAM, before the 0.5 GB minimum). NULL for every unit that has no
895
+ * floor to observe past. */
896
+ observed_quantity: string | number | null;
857
897
  usd_micros: string | number | bigint;
858
898
  debited: Generated<boolean>;
859
899
  source: string;
@@ -861,6 +901,16 @@ interface UsageLedgerTable {
861
901
  occurred_at: Generated<Date>;
862
902
  recorded_at: Generated<Date>;
863
903
  }
904
+ /** Preferences + debounce state for the balance-runway email alerts. One
905
+ * row per account; a missing row means both alerts are on (defaults). */
906
+ interface AccountBalanceAlertsTable {
907
+ account_id: string;
908
+ notify_7d: Generated<boolean>;
909
+ notify_2d: Generated<boolean>;
910
+ sent_7d_at: Date | null;
911
+ sent_2d_at: Date | null;
912
+ sent_stopped_at: Date | null;
913
+ }
864
914
  type WebhookStatus = "active" | "paused" | "error";
865
915
  /** Polymorphic webhook mode: `subgraph` reacts to processed table rows;
866
916
  * `chain` reacts to raw chain events matched directly off the Index/Streams
@@ -417,6 +417,39 @@ interface Pox5EventsTable {
417
417
  source_cursor: string;
418
418
  created_at: Generated<Date>;
419
419
  }
420
+ interface Pox5CyclesTable {
421
+ reward_cycle: number;
422
+ start_burn_height: number;
423
+ prepare_start_burn_height: number;
424
+ end_burn_height: number;
425
+ total_stacked_ustx: string;
426
+ reward_eligible_ustx: string;
427
+ stakers: number;
428
+ signers_in_set: number;
429
+ /** bond index (as string) -> sats staked for this cycle. */
430
+ bond_sats: unknown;
431
+ bond_total_sats: string;
432
+ sbtc_custodied_sats: string;
433
+ rewards_allocated_stx: string;
434
+ rewards_allocated_bond: string;
435
+ reserve_deposit: string;
436
+ rewards_per_token_stx: string | null;
437
+ /** bond index (as string) -> cumulative rewards-per-sat for this cycle. */
438
+ rewards_per_token_bond: unknown;
439
+ distributions: number;
440
+ rewards_claimed: string;
441
+ computed_through_height: number;
442
+ updated_at: Generated<Date>;
443
+ }
444
+ interface Pox5CycleSignersTable {
445
+ reward_cycle: number;
446
+ signer: string;
447
+ delegated_ustx: string;
448
+ stx_only_ustx: string;
449
+ reward_shares_ustx: string;
450
+ in_set: boolean;
451
+ rewards_claimed: string;
452
+ }
420
453
  interface BurnBlockRewardsTable {
421
454
  cursor: string;
422
455
  burn_block_height: number;
@@ -764,6 +797,8 @@ interface Database {
764
797
  chain_reorgs: ChainReorgsTable;
765
798
  pox4_calls: Pox4CallsTable;
766
799
  pox5_events: Pox5EventsTable;
800
+ pox5_cycles: Pox5CyclesTable;
801
+ pox5_cycle_signers: Pox5CycleSignersTable;
767
802
  burn_block_rewards: BurnBlockRewardsTable;
768
803
  burn_block_reward_slots: BurnBlockRewardSlotsTable;
769
804
  sbtc_events: SbtcEventsTable;
@@ -786,6 +821,7 @@ interface Database {
786
821
  stage_failures: StageFailuresTable;
787
822
  archive_fetches: ArchiveFetchesTable;
788
823
  usage_ledger: UsageLedgerTable;
824
+ account_balance_alerts: AccountBalanceAlertsTable;
789
825
  waitlists: WaitlistsTable;
790
826
  waitlist_signups: WaitlistSignupsTable;
791
827
  }
@@ -844,6 +880,10 @@ interface UsageLedgerTable {
844
880
  account_id: string;
845
881
  unit: string;
846
882
  quantity: string | number | bigint;
883
+ /** Raw sampled quantity before any floor (e.g. `memory.gb_hour`'s actual
884
+ * RAM, before the 0.5 GB minimum). NULL for every unit that has no
885
+ * floor to observe past. */
886
+ observed_quantity: string | number | null;
847
887
  usd_micros: string | number | bigint;
848
888
  debited: Generated<boolean>;
849
889
  source: string;
@@ -851,6 +891,16 @@ interface UsageLedgerTable {
851
891
  occurred_at: Generated<Date>;
852
892
  recorded_at: Generated<Date>;
853
893
  }
894
+ /** Preferences + debounce state for the balance-runway email alerts. One
895
+ * row per account; a missing row means both alerts are on (defaults). */
896
+ interface AccountBalanceAlertsTable {
897
+ account_id: string;
898
+ notify_7d: Generated<boolean>;
899
+ notify_2d: Generated<boolean>;
900
+ sent_7d_at: Date | null;
901
+ sent_2d_at: Date | null;
902
+ sent_stopped_at: Date | null;
903
+ }
854
904
  type WebhookStatus = "active" | "paused" | "error";
855
905
  /** Polymorphic webhook mode: `subgraph` reacts to processed table rows;
856
906
  * `chain` reacts to raw chain events matched directly off the Index/Streams
@@ -416,6 +416,39 @@ interface Pox5EventsTable {
416
416
  source_cursor: string;
417
417
  created_at: Generated<Date>;
418
418
  }
419
+ interface Pox5CyclesTable {
420
+ reward_cycle: number;
421
+ start_burn_height: number;
422
+ prepare_start_burn_height: number;
423
+ end_burn_height: number;
424
+ total_stacked_ustx: string;
425
+ reward_eligible_ustx: string;
426
+ stakers: number;
427
+ signers_in_set: number;
428
+ /** bond index (as string) -> sats staked for this cycle. */
429
+ bond_sats: unknown;
430
+ bond_total_sats: string;
431
+ sbtc_custodied_sats: string;
432
+ rewards_allocated_stx: string;
433
+ rewards_allocated_bond: string;
434
+ reserve_deposit: string;
435
+ rewards_per_token_stx: string | null;
436
+ /** bond index (as string) -> cumulative rewards-per-sat for this cycle. */
437
+ rewards_per_token_bond: unknown;
438
+ distributions: number;
439
+ rewards_claimed: string;
440
+ computed_through_height: number;
441
+ updated_at: Generated<Date>;
442
+ }
443
+ interface Pox5CycleSignersTable {
444
+ reward_cycle: number;
445
+ signer: string;
446
+ delegated_ustx: string;
447
+ stx_only_ustx: string;
448
+ reward_shares_ustx: string;
449
+ in_set: boolean;
450
+ rewards_claimed: string;
451
+ }
419
452
  interface BurnBlockRewardsTable {
420
453
  cursor: string;
421
454
  burn_block_height: number;
@@ -763,6 +796,8 @@ interface Database {
763
796
  chain_reorgs: ChainReorgsTable;
764
797
  pox4_calls: Pox4CallsTable;
765
798
  pox5_events: Pox5EventsTable;
799
+ pox5_cycles: Pox5CyclesTable;
800
+ pox5_cycle_signers: Pox5CycleSignersTable;
766
801
  burn_block_rewards: BurnBlockRewardsTable;
767
802
  burn_block_reward_slots: BurnBlockRewardSlotsTable;
768
803
  sbtc_events: SbtcEventsTable;
@@ -785,6 +820,7 @@ interface Database {
785
820
  stage_failures: StageFailuresTable;
786
821
  archive_fetches: ArchiveFetchesTable;
787
822
  usage_ledger: UsageLedgerTable;
823
+ account_balance_alerts: AccountBalanceAlertsTable;
788
824
  waitlists: WaitlistsTable;
789
825
  waitlist_signups: WaitlistSignupsTable;
790
826
  }
@@ -852,6 +888,10 @@ interface UsageLedgerTable {
852
888
  account_id: string;
853
889
  unit: string;
854
890
  quantity: string | number | bigint;
891
+ /** Raw sampled quantity before any floor (e.g. `memory.gb_hour`'s actual
892
+ * RAM, before the 0.5 GB minimum). NULL for every unit that has no
893
+ * floor to observe past. */
894
+ observed_quantity: string | number | null;
855
895
  usd_micros: string | number | bigint;
856
896
  debited: Generated<boolean>;
857
897
  source: string;
@@ -862,6 +902,19 @@ interface UsageLedgerTable {
862
902
  type UsageLedgerRow = Selectable<UsageLedgerTable>;
863
903
  type InsertUsageLedgerRow = Insertable<UsageLedgerTable>;
864
904
  type UpdateUsageLedgerRow = Updateable<UsageLedgerTable>;
905
+ /** Preferences + debounce state for the balance-runway email alerts. One
906
+ * row per account; a missing row means both alerts are on (defaults). */
907
+ interface AccountBalanceAlertsTable {
908
+ account_id: string;
909
+ notify_7d: Generated<boolean>;
910
+ notify_2d: Generated<boolean>;
911
+ sent_7d_at: Date | null;
912
+ sent_2d_at: Date | null;
913
+ sent_stopped_at: Date | null;
914
+ }
915
+ type AccountBalanceAlerts = Selectable<AccountBalanceAlertsTable>;
916
+ type InsertAccountBalanceAlerts = Insertable<AccountBalanceAlertsTable>;
917
+ type UpdateAccountBalanceAlerts = Updateable<AccountBalanceAlertsTable>;
865
918
  type Block = Selectable<BlocksTable>;
866
919
  type InsertBlock = Insertable<BlocksTable>;
867
920
  type UpdateBlock = Updateable<BlocksTable>;
@@ -1036,4 +1089,4 @@ interface WaitlistSignupsTable {
1036
1089
  type Waitlist = Selectable<WaitlistsTable>;
1037
1090
  type WaitlistSignup = Selectable<WaitlistSignupsTable>;
1038
1091
  type InsertWaitlistSignup = Insertable<WaitlistSignupsTable>;
1039
- export { Account, AccountCredits, AccountCreditsTable, AccountSpendCap, AccountSpendCapsTable, AccountsTable, ApiKey, ApiKeysTable, ArchiveFetch, ArchiveFetchesTable, Block, BlocksTable, BnsMarketplaceAction, BnsMarketplaceEventsTable, BnsNameEventTopic, BnsNameEventsTable, BnsNamesTable, BnsNamespaceEventStatus, BnsNamespaceEventsTable, BnsNamespacesTable, BurnBlockRewardSlotsTable, BurnBlockRewardsTable, ChainReadCacheTable, ChainReorgsTable, Contract, ContractsTable, CoverageSegmentsTable, Database, DeadLetterEventsTable, DecodedEventsTable, DecoderCheckpointsTable, Event, EventsArchiveTable, EventsTable, FailureClass, FailureUnit, IndexProgress, IndexProgressTable, InsertAccount, InsertAccountCredits, InsertAccountSpendCap, InsertApiKey, InsertArchiveFetch, InsertBlock, InsertContract, InsertEvent, InsertIndexProgress, InsertMagicLink, InsertMempoolTransaction, InsertSession, InsertSubgraph, InsertSubgraphGap, InsertSubgraphHealthSnapshot, InsertSubgraphOperation, InsertTransaction, InsertUsageLedgerRow, InsertVmEvent, InsertWaitlistSignup, InsertWebhook, InsertWebhookDelivery, InsertWebhookOutbox, InstancesTable, MagicLink, MagicLinksTable, MempoolTransaction, MempoolTransactionsTable, NativeClock, ObserverJournalStatus, ObserverJournalTable, OutboxStatus, PendingForkBlocksTable, Pox4CallsTable, Pox4FunctionName, Pox5EventTopic, Pox5EventsTable, ProcessedStripeEventsTable, RepairMode, RetryState, RunStatus, SbtcEventTopic, SbtcEventsTable, SbtcSettlementsTable, SbtcTokenEventType, SbtcTokenEventsTable, ServiceHeartbeatsTable, Session, SessionsTable, StageBlockReceiptsTable, StageFailuresTable, StageKind, StageRegistryTable, StageRunsTable, Subgraph, SubgraphGap, SubgraphGapsTable, SubgraphHealthSnapshot, SubgraphHealthSnapshotsTable, SubgraphOperation, SubgraphOperationKind, SubgraphOperationStatus, SubgraphOperationsTable, SubgraphProcessingStatsTable, SubgraphViolationsTable, SubgraphsTable, SyncScopesTable, Transaction, TransactionsArchiveTable, TransactionsTable, TriggerEvaluatorState, TriggerEvaluatorStateTable, 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, WebhookRuntime, WebhookStatus, WebhooksTable };
1092
+ export { Account, AccountBalanceAlerts, AccountBalanceAlertsTable, AccountCredits, AccountCreditsTable, AccountSpendCap, AccountSpendCapsTable, AccountsTable, ApiKey, ApiKeysTable, ArchiveFetch, ArchiveFetchesTable, Block, BlocksTable, BnsMarketplaceAction, BnsMarketplaceEventsTable, BnsNameEventTopic, BnsNameEventsTable, BnsNamesTable, BnsNamespaceEventStatus, BnsNamespaceEventsTable, BnsNamespacesTable, BurnBlockRewardSlotsTable, BurnBlockRewardsTable, ChainReadCacheTable, ChainReorgsTable, Contract, ContractsTable, CoverageSegmentsTable, Database, DeadLetterEventsTable, DecodedEventsTable, DecoderCheckpointsTable, Event, EventsArchiveTable, EventsTable, FailureClass, FailureUnit, IndexProgress, IndexProgressTable, InsertAccount, InsertAccountBalanceAlerts, InsertAccountCredits, InsertAccountSpendCap, InsertApiKey, InsertArchiveFetch, InsertBlock, InsertContract, InsertEvent, InsertIndexProgress, InsertMagicLink, InsertMempoolTransaction, InsertSession, 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, ServiceHeartbeatsTable, Session, SessionsTable, StageBlockReceiptsTable, StageFailuresTable, StageKind, StageRegistryTable, StageRunsTable, 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, WebhookRuntime, WebhookStatus, WebhooksTable };
@@ -416,6 +416,39 @@ interface Pox5EventsTable {
416
416
  source_cursor: string;
417
417
  created_at: Generated<Date>;
418
418
  }
419
+ interface Pox5CyclesTable {
420
+ reward_cycle: number;
421
+ start_burn_height: number;
422
+ prepare_start_burn_height: number;
423
+ end_burn_height: number;
424
+ total_stacked_ustx: string;
425
+ reward_eligible_ustx: string;
426
+ stakers: number;
427
+ signers_in_set: number;
428
+ /** bond index (as string) -> sats staked for this cycle. */
429
+ bond_sats: unknown;
430
+ bond_total_sats: string;
431
+ sbtc_custodied_sats: string;
432
+ rewards_allocated_stx: string;
433
+ rewards_allocated_bond: string;
434
+ reserve_deposit: string;
435
+ rewards_per_token_stx: string | null;
436
+ /** bond index (as string) -> cumulative rewards-per-sat for this cycle. */
437
+ rewards_per_token_bond: unknown;
438
+ distributions: number;
439
+ rewards_claimed: string;
440
+ computed_through_height: number;
441
+ updated_at: Generated<Date>;
442
+ }
443
+ interface Pox5CycleSignersTable {
444
+ reward_cycle: number;
445
+ signer: string;
446
+ delegated_ustx: string;
447
+ stx_only_ustx: string;
448
+ reward_shares_ustx: string;
449
+ in_set: boolean;
450
+ rewards_claimed: string;
451
+ }
419
452
  interface BurnBlockRewardsTable {
420
453
  cursor: string;
421
454
  burn_block_height: number;
@@ -763,6 +796,8 @@ interface Database {
763
796
  chain_reorgs: ChainReorgsTable;
764
797
  pox4_calls: Pox4CallsTable;
765
798
  pox5_events: Pox5EventsTable;
799
+ pox5_cycles: Pox5CyclesTable;
800
+ pox5_cycle_signers: Pox5CycleSignersTable;
766
801
  burn_block_rewards: BurnBlockRewardsTable;
767
802
  burn_block_reward_slots: BurnBlockRewardSlotsTable;
768
803
  sbtc_events: SbtcEventsTable;
@@ -785,6 +820,7 @@ interface Database {
785
820
  stage_failures: StageFailuresTable;
786
821
  archive_fetches: ArchiveFetchesTable;
787
822
  usage_ledger: UsageLedgerTable;
823
+ account_balance_alerts: AccountBalanceAlertsTable;
788
824
  waitlists: WaitlistsTable;
789
825
  waitlist_signups: WaitlistSignupsTable;
790
826
  }
@@ -852,6 +888,10 @@ interface UsageLedgerTable {
852
888
  account_id: string;
853
889
  unit: string;
854
890
  quantity: string | number | bigint;
891
+ /** Raw sampled quantity before any floor (e.g. `memory.gb_hour`'s actual
892
+ * RAM, before the 0.5 GB minimum). NULL for every unit that has no
893
+ * floor to observe past. */
894
+ observed_quantity: string | number | null;
855
895
  usd_micros: string | number | bigint;
856
896
  debited: Generated<boolean>;
857
897
  source: string;
@@ -862,6 +902,19 @@ interface UsageLedgerTable {
862
902
  type UsageLedgerRow = Selectable<UsageLedgerTable>;
863
903
  type InsertUsageLedgerRow = Insertable<UsageLedgerTable>;
864
904
  type UpdateUsageLedgerRow = Updateable<UsageLedgerTable>;
905
+ /** Preferences + debounce state for the balance-runway email alerts. One
906
+ * row per account; a missing row means both alerts are on (defaults). */
907
+ interface AccountBalanceAlertsTable {
908
+ account_id: string;
909
+ notify_7d: Generated<boolean>;
910
+ notify_2d: Generated<boolean>;
911
+ sent_7d_at: Date | null;
912
+ sent_2d_at: Date | null;
913
+ sent_stopped_at: Date | null;
914
+ }
915
+ type AccountBalanceAlerts = Selectable<AccountBalanceAlertsTable>;
916
+ type InsertAccountBalanceAlerts = Insertable<AccountBalanceAlertsTable>;
917
+ type UpdateAccountBalanceAlerts = Updateable<AccountBalanceAlertsTable>;
865
918
  type Block = Selectable<BlocksTable>;
866
919
  type InsertBlock = Insertable<BlocksTable>;
867
920
  type UpdateBlock = Updateable<BlocksTable>;
@@ -2028,6 +2081,8 @@ declare const TABLE_TO_DB: {
2028
2081
  decoder_checkpoints: string
2029
2082
  pox4_calls: string
2030
2083
  pox5_events: string
2084
+ pox5_cycles: string
2085
+ pox5_cycle_signers: string
2031
2086
  burn_block_rewards: string
2032
2087
  burn_block_reward_slots: string
2033
2088
  sbtc_events: string
@@ -2058,6 +2113,7 @@ declare const TABLE_TO_DB: {
2058
2113
  account_credits: string
2059
2114
  archive_fetches: string
2060
2115
  usage_ledger: string
2116
+ account_balance_alerts: string
2061
2117
  waitlists: string
2062
2118
  waitlist_signups: string
2063
2119
  service_heartbeats: string
@@ -3262,4 +3318,4 @@ declare function publicKeyPemFromPrivate(privateKeyPem: string): string;
3262
3318
  declare function ed25519KeyId(publicKeyPem: string): string;
3263
3319
  declare function signEd25519(payload: string, privateKey: KeyObject): string;
3264
3320
  declare function verifyEd25519(payload: string, signatureBase64: string, publicKey: KeyObject): boolean;
3265
- export { Account, AccountCredits, AccountCreditsTable, AccountSpendCap, AccountSpendCapsTable, AccountsTable, ApiKey, ApiKeysTable, ArchiveFetch, ArchiveFetchesTable, AuthenticationError, AuthorizationError, 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, 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, ForbiddenError, IndexColumn, IndexColumnType, IndexPrimaryKey, IndexProgress, IndexProgressTable, InsertAccount, InsertAccountCredits, InsertAccountSpendCap, InsertApiKey, InsertArchiveFetch, InsertBlock, InsertContract, InsertEvent, InsertIndexProgress, InsertMagicLink, InsertMempoolTransaction, InsertSession, 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, 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, ServiceHeartbeatsTable, Session, SessionsTable, StageBlockReceiptsTable, StageFailuresTable, StageKind, StageRegistryTable, StageRunsTable, 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, SubgraphViolationsTable, SubgraphsTable, SyncScopesTable, TABLE_TO_DB, TenantSuspendedError, Transaction, TransactionsArchiveTable, TransactionsTable, TriggerEvaluatorState, TriggerEvaluatorStateTable, 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_FILTER_OPERATORS, WEBHOOK_FORMATS, WEBHOOK_RUNTIMES, WEBHOOK_STATUSES, Waitlist, WaitlistSignup, WaitlistSignupsTable, WaitlistsTable, Webhook, WebhookDeliveriesTable, WebhookDelivery, WebhookDetail, WebhookFilter, WebhookFilterClause, WebhookFilterClauseSchema, WebhookFilterOperator, WebhookFilterOperatorSchema, WebhookFilterPrimitive, WebhookFilterPrimitiveSchema, WebhookFilterSchema, WebhookFormat, WebhookFormatSchema, WebhookKind, WebhookOutbox, WebhookOutboxTable, WebhookRuntime, WebhookRuntimeSchema, WebhookSchemaColumn, WebhookSchemaTable, WebhookSchemaTables, WebhookStatus, WebhookStatusSchema, WebhookSummary, WebhooksTable, applicationDatabaseUrl, assertDbSplit, 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, getRawClientFor, getSourceDb, getTargetDb, isBnsDecoderEnabled, isEmptyRangeCursor, isPox4DecoderEnabled, isPox5DecoderEnabled, isSbtcDecoderEnabled, jsonb, logger, onChainPlane, onControlPlane, parseJsonb, resolveSourceUrl, resolveTargetUrl, setMigrationRole, sql, validateWebhookFilterForTable };
3321
+ export { Account, AccountBalanceAlerts, AccountBalanceAlertsTable, AccountCredits, AccountCreditsTable, AccountSpendCap, AccountSpendCapsTable, AccountsTable, ApiKey, ApiKeysTable, ArchiveFetch, ArchiveFetchesTable, AuthenticationError, AuthorizationError, 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, 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, ForbiddenError, IndexColumn, IndexColumnType, IndexPrimaryKey, IndexProgress, IndexProgressTable, InsertAccount, InsertAccountBalanceAlerts, InsertAccountCredits, InsertAccountSpendCap, InsertApiKey, InsertArchiveFetch, InsertBlock, InsertContract, InsertEvent, InsertIndexProgress, InsertMagicLink, InsertMempoolTransaction, InsertSession, 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, ServiceHeartbeatsTable, Session, SessionsTable, StageBlockReceiptsTable, StageFailuresTable, StageKind, StageRegistryTable, StageRunsTable, 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, 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_FILTER_OPERATORS, WEBHOOK_FORMATS, WEBHOOK_RUNTIMES, WEBHOOK_STATUSES, Waitlist, WaitlistSignup, WaitlistSignupsTable, WaitlistsTable, Webhook, WebhookDeliveriesTable, WebhookDelivery, WebhookDetail, WebhookFilter, WebhookFilterClause, WebhookFilterClauseSchema, WebhookFilterOperator, WebhookFilterOperatorSchema, WebhookFilterPrimitive, WebhookFilterPrimitiveSchema, WebhookFilterSchema, WebhookFormat, WebhookFormatSchema, WebhookKind, WebhookOutbox, WebhookOutboxTable, WebhookRuntime, WebhookRuntimeSchema, WebhookSchemaColumn, WebhookSchemaTable, WebhookSchemaTables, WebhookStatus, WebhookStatusSchema, WebhookSummary, WebhooksTable, applicationDatabaseUrl, assertDbSplit, 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, getRawClientFor, getSourceDb, getTargetDb, isBnsDecoderEnabled, isEmptyRangeCursor, isPox4DecoderEnabled, isPox5DecoderEnabled, isSbtcDecoderEnabled, jsonb, logger, onChainPlane, onControlPlane, parseJsonb, resolveSourceUrl, resolveTargetUrl, setMigrationRole, sql, validateWebhookFilterForTable };
package/dist/src/index.js CHANGED
@@ -824,6 +824,8 @@ var TABLE_TO_DB = {
824
824
  decoder_checkpoints: "source",
825
825
  pox4_calls: "source",
826
826
  pox5_events: "source",
827
+ pox5_cycles: "source",
828
+ pox5_cycle_signers: "source",
827
829
  burn_block_rewards: "source",
828
830
  burn_block_reward_slots: "source",
829
831
  sbtc_events: "source",
@@ -854,6 +856,7 @@ var TABLE_TO_DB = {
854
856
  account_credits: "target",
855
857
  archive_fetches: "target",
856
858
  usage_ledger: "target",
859
+ account_balance_alerts: "target",
857
860
  waitlists: "target",
858
861
  waitlist_signups: "target",
859
862
  service_heartbeats: "both"
@@ -2260,5 +2263,5 @@ export {
2260
2263
  validateWebhookFilterForTable
2261
2264
  };
2262
2265
 
2263
- //# debugId=05427342C6057A7964756E2164756E21
2266
+ //# debugId=BEA1E4A2E36AC50B64756E2164756E21
2264
2267
  //# sourceMappingURL=index.js.map