@secondlayer/shared 11.5.1 → 11.6.1

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.
@@ -136,7 +136,6 @@ interface SubgraphsTable {
136
136
  expires_at: Date | null;
137
137
  /** (event type, contract) probe pairs persisted at deploy for weight classification. */
138
138
  sparse_probe_targets: unknown | null;
139
- database_url_enc: ColumnType<Buffer | null, Buffer | null | undefined, Buffer | null>;
140
139
  sandbox_workers: Generated<boolean>;
141
140
  created_at: Generated<Date>;
142
141
  updated_at: Generated<Date>;
@@ -232,7 +231,7 @@ interface AccountsTable {
232
231
  email: string | null;
233
232
  /** True for anonymous self-serve accounts until claimed via magic link. */
234
233
  ghost: Generated<boolean>;
235
- /** Stacks principal owning a wallet-ghost account (x402-paid deploys). */
234
+ /** Stacks principal owning a wallet-ghost account. */
236
235
  wallet_principal: string | null;
237
236
  display_name: string | null;
238
237
  bio: string | null;
@@ -294,14 +293,6 @@ interface SubgraphProcessingStatsTable {
294
293
  is_catchup: Generated<boolean>;
295
294
  created_at: Generated<Date>;
296
295
  }
297
- interface SubgraphTableSnapshotsTable {
298
- id: Generated<string>;
299
- subgraph_name: string;
300
- api_key_id: string | null;
301
- table_name: string;
302
- row_count: number | null;
303
- created_at: Generated<Date>;
304
- }
305
296
  interface SubgraphHealthSnapshotsTable {
306
297
  id: Generated<string>;
307
298
  subgraph_id: string;
@@ -391,26 +382,6 @@ interface Pox4CallsTable {
391
382
  source_cursor: string;
392
383
  created_at: Generated<Date>;
393
384
  }
394
- interface Pox4CyclesDailyTable {
395
- date: string;
396
- reward_cycle: number;
397
- total_stacked_ustx: Generated<string>;
398
- solo_stackers: Generated<number>;
399
- delegated_principals: Generated<number>;
400
- unique_pools: Generated<number>;
401
- unique_signers: Generated<number>;
402
- calls_today: Generated<number>;
403
- updated_at: Generated<Date>;
404
- }
405
- interface Pox4SignersDailyTable {
406
- date: string;
407
- reward_cycle: number;
408
- signer_key: string;
409
- weight_ustx: Generated<string>;
410
- stacker_count: Generated<number>;
411
- aggregation_calls: Generated<number>;
412
- updated_at: Generated<Date>;
413
- }
414
385
  type Pox5EventTopic = "set-bond-admin" | "set-pause-admin" | "pause-rewards" | "setup-bond" | "add-to-allowlist" | "register-for-bond" | "update-bond-registration" | "register-signer" | "stake" | "stake-update" | "announce-l1-early-exit" | "unstake-sbtc" | "unstake" | "calculate-rewards" | "bond-distribution" | "claim-rewards" | "claim-staker-rewards-for-signer" | "grant-signer-key" | "revoke-signer-grant";
415
386
  interface Pox5EventsTable {
416
387
  cursor: string;
@@ -528,17 +499,6 @@ interface SbtcSettlementsTable {
528
499
  confirmed_at: Date | null;
529
500
  updated_at: Generated<Date>;
530
501
  }
531
- interface SbtcSupplySnapshotsTable {
532
- date: string;
533
- total_supply: Generated<string>;
534
- mints_today: Generated<string>;
535
- burns_today: Generated<string>;
536
- deposit_count: Generated<number>;
537
- withdrawal_create_count: Generated<number>;
538
- withdrawal_accept_count: Generated<number>;
539
- withdrawal_reject_count: Generated<number>;
540
- updated_at: Generated<Date>;
541
- }
542
502
  type BnsNameEventTopic = "new-name" | "transfer-name" | "renew-name" | "burn-name" | "new-airdrop";
543
503
  interface BnsNameEventsTable {
544
504
  cursor: string;
@@ -780,7 +740,6 @@ interface Database {
780
740
  play_provisions: PlayProvisionsTable;
781
741
  subgraph_health_snapshots: SubgraphHealthSnapshotsTable;
782
742
  subgraph_processing_stats: SubgraphProcessingStatsTable;
783
- subgraph_table_snapshots: SubgraphTableSnapshotsTable;
784
743
  subgraph_gaps: SubgraphGapsTable;
785
744
  subgraph_violations: SubgraphViolationsTable;
786
745
  subgraph_operations: SubgraphOperationsTable;
@@ -796,23 +755,18 @@ interface Database {
796
755
  decoder_checkpoints: DecoderCheckpointsTable;
797
756
  chain_reorgs: ChainReorgsTable;
798
757
  pox4_calls: Pox4CallsTable;
799
- pox4_cycles_daily: Pox4CyclesDailyTable;
800
- pox4_signers_daily: Pox4SignersDailyTable;
801
758
  pox5_events: Pox5EventsTable;
802
759
  burn_block_rewards: BurnBlockRewardsTable;
803
760
  burn_block_reward_slots: BurnBlockRewardSlotsTable;
804
761
  sbtc_events: SbtcEventsTable;
805
762
  sbtc_token_events: SbtcTokenEventsTable;
806
763
  sbtc_settlements: SbtcSettlementsTable;
807
- sbtc_supply_snapshots: SbtcSupplySnapshotsTable;
808
764
  bns_name_events: BnsNameEventsTable;
809
765
  bns_namespace_events: BnsNamespaceEventsTable;
810
766
  bns_marketplace_events: BnsMarketplaceEventsTable;
811
767
  bns_names: BnsNamesTable;
812
768
  bns_namespaces: BnsNamespacesTable;
813
769
  service_heartbeats: ServiceHeartbeatsTable;
814
- x402_payments: X402PaymentsTable;
815
- x402_balances: X402BalancesTable;
816
770
  chain_read_cache: ChainReadCacheTable;
817
771
  pending_fork_blocks: PendingForkBlocksTable;
818
772
  observer_journal: ObserverJournalTable;
@@ -824,46 +778,10 @@ interface Database {
824
778
  stage_failures: StageFailuresTable;
825
779
  archive_fetches: ArchiveFetchesTable;
826
780
  }
827
- /** Prepaid x402 credit — one running USD-micros balance per payer principal. */
828
- interface X402BalancesTable {
829
- principal: string;
830
- balance_usd_micros: Generated<string | number | bigint>;
831
- /** Month bucket ("YYYY-MM") the spend counter applies to. */
832
- spent_month: string | null;
833
- spent_month_usd_micros: Generated<string | number | bigint>;
834
- updated_at: Generated<Date>;
835
- }
836
781
  interface ServiceHeartbeatsTable {
837
782
  name: string;
838
783
  updated_at: Generated<Date>;
839
784
  }
840
- /** x402 pay-per-request ledger (control plane). One row per settled payment,
841
- * keyed by challenge nonce + settled txid. `state` tracks confirmed-tier
842
- * settlement and post-serve reorg reversal. */
843
- interface X402PaymentsTable {
844
- id: Generated<string>;
845
- nonce: string;
846
- txid: string;
847
- asset: string;
848
- amount: string;
849
- payer: string;
850
- surface: string;
851
- state: Generated<"pending" | "confirmed" | "reverted">;
852
- created_at: Generated<Date>;
853
- updated_at: Generated<Date>;
854
- /** "payment" = per-call settle; "deposit" = prepaid balance top-up. */
855
- kind: Generated<string>;
856
- /** Linked claimed account once the paying wallet is attached (continuity). */
857
- account_id: string | null;
858
- /** USD-micros to credit on confirmation, for deposit rows the reconciler
859
- * settles asynchronously. NULL for per-call settles (credit nothing). */
860
- credit_usd_micros: string | null;
861
- /** Idempotency key: stamped exactly once when this row's credit is applied.
862
- * NULL means never credited (or not a credit-bearing row). Pre-migration
863
- * non-pending deposit rows are backfilled to a non-null sentinel so the
864
- * reconciler's heal path can never double-credit them. */
865
- credited_at: Generated<Date> | null;
866
- }
867
785
  interface AccountSpendCapsTable {
868
786
  account_id: string;
869
787
  monthly_cap_cents: number | null;
@@ -874,7 +792,7 @@ interface AccountSpendCapsTable {
874
792
  frozen_at: Date | null;
875
793
  updated_at: Generated<Date>;
876
794
  }
877
- /** Prepaid dev credits — card-funded balance per account (peer to x402_balances). */
795
+ /** Prepaid dev credits — card-funded balance per account. */
878
796
  interface AccountCreditsTable {
879
797
  account_id: string;
880
798
  balance_usd_micros: Generated<string | number | bigint>;
@@ -136,7 +136,6 @@ interface SubgraphsTable {
136
136
  expires_at: Date | null;
137
137
  /** (event type, contract) probe pairs persisted at deploy for weight classification. */
138
138
  sparse_probe_targets: unknown | null;
139
- database_url_enc: ColumnType<Buffer | null, Buffer | null | undefined, Buffer | null>;
140
139
  sandbox_workers: Generated<boolean>;
141
140
  created_at: Generated<Date>;
142
141
  updated_at: Generated<Date>;
@@ -232,7 +231,7 @@ interface AccountsTable {
232
231
  email: string | null;
233
232
  /** True for anonymous self-serve accounts until claimed via magic link. */
234
233
  ghost: Generated<boolean>;
235
- /** Stacks principal owning a wallet-ghost account (x402-paid deploys). */
234
+ /** Stacks principal owning a wallet-ghost account. */
236
235
  wallet_principal: string | null;
237
236
  display_name: string | null;
238
237
  bio: string | null;
@@ -294,14 +293,6 @@ interface SubgraphProcessingStatsTable {
294
293
  is_catchup: Generated<boolean>;
295
294
  created_at: Generated<Date>;
296
295
  }
297
- interface SubgraphTableSnapshotsTable {
298
- id: Generated<string>;
299
- subgraph_name: string;
300
- api_key_id: string | null;
301
- table_name: string;
302
- row_count: number | null;
303
- created_at: Generated<Date>;
304
- }
305
296
  interface SubgraphHealthSnapshotsTable {
306
297
  id: Generated<string>;
307
298
  subgraph_id: string;
@@ -391,26 +382,6 @@ interface Pox4CallsTable {
391
382
  source_cursor: string;
392
383
  created_at: Generated<Date>;
393
384
  }
394
- interface Pox4CyclesDailyTable {
395
- date: string;
396
- reward_cycle: number;
397
- total_stacked_ustx: Generated<string>;
398
- solo_stackers: Generated<number>;
399
- delegated_principals: Generated<number>;
400
- unique_pools: Generated<number>;
401
- unique_signers: Generated<number>;
402
- calls_today: Generated<number>;
403
- updated_at: Generated<Date>;
404
- }
405
- interface Pox4SignersDailyTable {
406
- date: string;
407
- reward_cycle: number;
408
- signer_key: string;
409
- weight_ustx: Generated<string>;
410
- stacker_count: Generated<number>;
411
- aggregation_calls: Generated<number>;
412
- updated_at: Generated<Date>;
413
- }
414
385
  type Pox5EventTopic = "set-bond-admin" | "set-pause-admin" | "pause-rewards" | "setup-bond" | "add-to-allowlist" | "register-for-bond" | "update-bond-registration" | "register-signer" | "stake" | "stake-update" | "announce-l1-early-exit" | "unstake-sbtc" | "unstake" | "calculate-rewards" | "bond-distribution" | "claim-rewards" | "claim-staker-rewards-for-signer" | "grant-signer-key" | "revoke-signer-grant";
415
386
  interface Pox5EventsTable {
416
387
  cursor: string;
@@ -528,17 +499,6 @@ interface SbtcSettlementsTable {
528
499
  confirmed_at: Date | null;
529
500
  updated_at: Generated<Date>;
530
501
  }
531
- interface SbtcSupplySnapshotsTable {
532
- date: string;
533
- total_supply: Generated<string>;
534
- mints_today: Generated<string>;
535
- burns_today: Generated<string>;
536
- deposit_count: Generated<number>;
537
- withdrawal_create_count: Generated<number>;
538
- withdrawal_accept_count: Generated<number>;
539
- withdrawal_reject_count: Generated<number>;
540
- updated_at: Generated<Date>;
541
- }
542
502
  type BnsNameEventTopic = "new-name" | "transfer-name" | "renew-name" | "burn-name" | "new-airdrop";
543
503
  interface BnsNameEventsTable {
544
504
  cursor: string;
@@ -780,7 +740,6 @@ interface Database {
780
740
  play_provisions: PlayProvisionsTable;
781
741
  subgraph_health_snapshots: SubgraphHealthSnapshotsTable;
782
742
  subgraph_processing_stats: SubgraphProcessingStatsTable;
783
- subgraph_table_snapshots: SubgraphTableSnapshotsTable;
784
743
  subgraph_gaps: SubgraphGapsTable;
785
744
  subgraph_violations: SubgraphViolationsTable;
786
745
  subgraph_operations: SubgraphOperationsTable;
@@ -796,23 +755,18 @@ interface Database {
796
755
  decoder_checkpoints: DecoderCheckpointsTable;
797
756
  chain_reorgs: ChainReorgsTable;
798
757
  pox4_calls: Pox4CallsTable;
799
- pox4_cycles_daily: Pox4CyclesDailyTable;
800
- pox4_signers_daily: Pox4SignersDailyTable;
801
758
  pox5_events: Pox5EventsTable;
802
759
  burn_block_rewards: BurnBlockRewardsTable;
803
760
  burn_block_reward_slots: BurnBlockRewardSlotsTable;
804
761
  sbtc_events: SbtcEventsTable;
805
762
  sbtc_token_events: SbtcTokenEventsTable;
806
763
  sbtc_settlements: SbtcSettlementsTable;
807
- sbtc_supply_snapshots: SbtcSupplySnapshotsTable;
808
764
  bns_name_events: BnsNameEventsTable;
809
765
  bns_namespace_events: BnsNamespaceEventsTable;
810
766
  bns_marketplace_events: BnsMarketplaceEventsTable;
811
767
  bns_names: BnsNamesTable;
812
768
  bns_namespaces: BnsNamespacesTable;
813
769
  service_heartbeats: ServiceHeartbeatsTable;
814
- x402_payments: X402PaymentsTable;
815
- x402_balances: X402BalancesTable;
816
770
  chain_read_cache: ChainReadCacheTable;
817
771
  pending_fork_blocks: PendingForkBlocksTable;
818
772
  observer_journal: ObserverJournalTable;
@@ -824,46 +778,10 @@ interface Database {
824
778
  stage_failures: StageFailuresTable;
825
779
  archive_fetches: ArchiveFetchesTable;
826
780
  }
827
- /** Prepaid x402 credit — one running USD-micros balance per payer principal. */
828
- interface X402BalancesTable {
829
- principal: string;
830
- balance_usd_micros: Generated<string | number | bigint>;
831
- /** Month bucket ("YYYY-MM") the spend counter applies to. */
832
- spent_month: string | null;
833
- spent_month_usd_micros: Generated<string | number | bigint>;
834
- updated_at: Generated<Date>;
835
- }
836
781
  interface ServiceHeartbeatsTable {
837
782
  name: string;
838
783
  updated_at: Generated<Date>;
839
784
  }
840
- /** x402 pay-per-request ledger (control plane). One row per settled payment,
841
- * keyed by challenge nonce + settled txid. `state` tracks confirmed-tier
842
- * settlement and post-serve reorg reversal. */
843
- interface X402PaymentsTable {
844
- id: Generated<string>;
845
- nonce: string;
846
- txid: string;
847
- asset: string;
848
- amount: string;
849
- payer: string;
850
- surface: string;
851
- state: Generated<"pending" | "confirmed" | "reverted">;
852
- created_at: Generated<Date>;
853
- updated_at: Generated<Date>;
854
- /** "payment" = per-call settle; "deposit" = prepaid balance top-up. */
855
- kind: Generated<string>;
856
- /** Linked claimed account once the paying wallet is attached (continuity). */
857
- account_id: string | null;
858
- /** USD-micros to credit on confirmation, for deposit rows the reconciler
859
- * settles asynchronously. NULL for per-call settles (credit nothing). */
860
- credit_usd_micros: string | null;
861
- /** Idempotency key: stamped exactly once when this row's credit is applied.
862
- * NULL means never credited (or not a credit-bearing row). Pre-migration
863
- * non-pending deposit rows are backfilled to a non-null sentinel so the
864
- * reconciler's heal path can never double-credit them. */
865
- credited_at: Generated<Date> | null;
866
- }
867
785
  interface AccountSpendCapsTable {
868
786
  account_id: string;
869
787
  monthly_cap_cents: number | null;
@@ -874,7 +792,7 @@ interface AccountSpendCapsTable {
874
792
  frozen_at: Date | null;
875
793
  updated_at: Generated<Date>;
876
794
  }
877
- /** Prepaid dev credits — card-funded balance per account (peer to x402_balances). */
795
+ /** Prepaid dev credits — card-funded balance per account. */
878
796
  interface AccountCreditsTable {
879
797
  account_id: string;
880
798
  balance_usd_micros: Generated<string | number | bigint>;
@@ -454,7 +454,6 @@ interface SubgraphsTable {
454
454
  expires_at: Date | null;
455
455
  /** (event type, contract) probe pairs persisted at deploy for weight classification. */
456
456
  sparse_probe_targets: unknown | null;
457
- database_url_enc: ColumnType<Buffer | null, Buffer | null | undefined, Buffer | null>;
458
457
  sandbox_workers: Generated<boolean>;
459
458
  created_at: Generated<Date>;
460
459
  updated_at: Generated<Date>;
@@ -550,7 +549,7 @@ interface AccountsTable {
550
549
  email: string | null;
551
550
  /** True for anonymous self-serve accounts until claimed via magic link. */
552
551
  ghost: Generated<boolean>;
553
- /** Stacks principal owning a wallet-ghost account (x402-paid deploys). */
552
+ /** Stacks principal owning a wallet-ghost account. */
554
553
  wallet_principal: string | null;
555
554
  display_name: string | null;
556
555
  bio: string | null;
@@ -612,14 +611,6 @@ interface SubgraphProcessingStatsTable {
612
611
  is_catchup: Generated<boolean>;
613
612
  created_at: Generated<Date>;
614
613
  }
615
- interface SubgraphTableSnapshotsTable {
616
- id: Generated<string>;
617
- subgraph_name: string;
618
- api_key_id: string | null;
619
- table_name: string;
620
- row_count: number | null;
621
- created_at: Generated<Date>;
622
- }
623
614
  interface SubgraphHealthSnapshotsTable {
624
615
  id: Generated<string>;
625
616
  subgraph_id: string;
@@ -709,26 +700,6 @@ interface Pox4CallsTable {
709
700
  source_cursor: string;
710
701
  created_at: Generated<Date>;
711
702
  }
712
- interface Pox4CyclesDailyTable {
713
- date: string;
714
- reward_cycle: number;
715
- total_stacked_ustx: Generated<string>;
716
- solo_stackers: Generated<number>;
717
- delegated_principals: Generated<number>;
718
- unique_pools: Generated<number>;
719
- unique_signers: Generated<number>;
720
- calls_today: Generated<number>;
721
- updated_at: Generated<Date>;
722
- }
723
- interface Pox4SignersDailyTable {
724
- date: string;
725
- reward_cycle: number;
726
- signer_key: string;
727
- weight_ustx: Generated<string>;
728
- stacker_count: Generated<number>;
729
- aggregation_calls: Generated<number>;
730
- updated_at: Generated<Date>;
731
- }
732
703
  type Pox5EventTopic = "set-bond-admin" | "set-pause-admin" | "pause-rewards" | "setup-bond" | "add-to-allowlist" | "register-for-bond" | "update-bond-registration" | "register-signer" | "stake" | "stake-update" | "announce-l1-early-exit" | "unstake-sbtc" | "unstake" | "calculate-rewards" | "bond-distribution" | "claim-rewards" | "claim-staker-rewards-for-signer" | "grant-signer-key" | "revoke-signer-grant";
733
704
  interface Pox5EventsTable {
734
705
  cursor: string;
@@ -846,17 +817,6 @@ interface SbtcSettlementsTable {
846
817
  confirmed_at: Date | null;
847
818
  updated_at: Generated<Date>;
848
819
  }
849
- interface SbtcSupplySnapshotsTable {
850
- date: string;
851
- total_supply: Generated<string>;
852
- mints_today: Generated<string>;
853
- burns_today: Generated<string>;
854
- deposit_count: Generated<number>;
855
- withdrawal_create_count: Generated<number>;
856
- withdrawal_accept_count: Generated<number>;
857
- withdrawal_reject_count: Generated<number>;
858
- updated_at: Generated<Date>;
859
- }
860
820
  type BnsNameEventTopic = "new-name" | "transfer-name" | "renew-name" | "burn-name" | "new-airdrop";
861
821
  interface BnsNameEventsTable {
862
822
  cursor: string;
@@ -1098,7 +1058,6 @@ interface Database {
1098
1058
  play_provisions: PlayProvisionsTable;
1099
1059
  subgraph_health_snapshots: SubgraphHealthSnapshotsTable;
1100
1060
  subgraph_processing_stats: SubgraphProcessingStatsTable;
1101
- subgraph_table_snapshots: SubgraphTableSnapshotsTable;
1102
1061
  subgraph_gaps: SubgraphGapsTable;
1103
1062
  subgraph_violations: SubgraphViolationsTable;
1104
1063
  subgraph_operations: SubgraphOperationsTable;
@@ -1114,23 +1073,18 @@ interface Database {
1114
1073
  decoder_checkpoints: DecoderCheckpointsTable;
1115
1074
  chain_reorgs: ChainReorgsTable;
1116
1075
  pox4_calls: Pox4CallsTable;
1117
- pox4_cycles_daily: Pox4CyclesDailyTable;
1118
- pox4_signers_daily: Pox4SignersDailyTable;
1119
1076
  pox5_events: Pox5EventsTable;
1120
1077
  burn_block_rewards: BurnBlockRewardsTable;
1121
1078
  burn_block_reward_slots: BurnBlockRewardSlotsTable;
1122
1079
  sbtc_events: SbtcEventsTable;
1123
1080
  sbtc_token_events: SbtcTokenEventsTable;
1124
1081
  sbtc_settlements: SbtcSettlementsTable;
1125
- sbtc_supply_snapshots: SbtcSupplySnapshotsTable;
1126
1082
  bns_name_events: BnsNameEventsTable;
1127
1083
  bns_namespace_events: BnsNamespaceEventsTable;
1128
1084
  bns_marketplace_events: BnsMarketplaceEventsTable;
1129
1085
  bns_names: BnsNamesTable;
1130
1086
  bns_namespaces: BnsNamespacesTable;
1131
1087
  service_heartbeats: ServiceHeartbeatsTable;
1132
- x402_payments: X402PaymentsTable;
1133
- x402_balances: X402BalancesTable;
1134
1088
  chain_read_cache: ChainReadCacheTable;
1135
1089
  pending_fork_blocks: PendingForkBlocksTable;
1136
1090
  observer_journal: ObserverJournalTable;
@@ -1142,46 +1096,10 @@ interface Database {
1142
1096
  stage_failures: StageFailuresTable;
1143
1097
  archive_fetches: ArchiveFetchesTable;
1144
1098
  }
1145
- /** Prepaid x402 credit — one running USD-micros balance per payer principal. */
1146
- interface X402BalancesTable {
1147
- principal: string;
1148
- balance_usd_micros: Generated<string | number | bigint>;
1149
- /** Month bucket ("YYYY-MM") the spend counter applies to. */
1150
- spent_month: string | null;
1151
- spent_month_usd_micros: Generated<string | number | bigint>;
1152
- updated_at: Generated<Date>;
1153
- }
1154
1099
  interface ServiceHeartbeatsTable {
1155
1100
  name: string;
1156
1101
  updated_at: Generated<Date>;
1157
1102
  }
1158
- /** x402 pay-per-request ledger (control plane). One row per settled payment,
1159
- * keyed by challenge nonce + settled txid. `state` tracks confirmed-tier
1160
- * settlement and post-serve reorg reversal. */
1161
- interface X402PaymentsTable {
1162
- id: Generated<string>;
1163
- nonce: string;
1164
- txid: string;
1165
- asset: string;
1166
- amount: string;
1167
- payer: string;
1168
- surface: string;
1169
- state: Generated<"pending" | "confirmed" | "reverted">;
1170
- created_at: Generated<Date>;
1171
- updated_at: Generated<Date>;
1172
- /** "payment" = per-call settle; "deposit" = prepaid balance top-up. */
1173
- kind: Generated<string>;
1174
- /** Linked claimed account once the paying wallet is attached (continuity). */
1175
- account_id: string | null;
1176
- /** USD-micros to credit on confirmation, for deposit rows the reconciler
1177
- * settles asynchronously. NULL for per-call settles (credit nothing). */
1178
- credit_usd_micros: string | null;
1179
- /** Idempotency key: stamped exactly once when this row's credit is applied.
1180
- * NULL means never credited (or not a credit-bearing row). Pre-migration
1181
- * non-pending deposit rows are backfilled to a non-null sentinel so the
1182
- * reconciler's heal path can never double-credit them. */
1183
- credited_at: Generated<Date> | null;
1184
- }
1185
1103
  interface AccountSpendCapsTable {
1186
1104
  account_id: string;
1187
1105
  monthly_cap_cents: number | null;
@@ -1192,7 +1110,7 @@ interface AccountSpendCapsTable {
1192
1110
  frozen_at: Date | null;
1193
1111
  updated_at: Generated<Date>;
1194
1112
  }
1195
- /** Prepaid dev credits — card-funded balance per account (peer to x402_balances). */
1113
+ /** Prepaid dev credits — card-funded balance per account. */
1196
1114
  interface AccountCreditsTable {
1197
1115
  account_id: string;
1198
1116
  balance_usd_micros: Generated<string | number | bigint>;