@secondlayer/shared 11.7.0 → 11.7.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.
- package/dist/src/archive/range-digest.d.ts +23 -27
- package/dist/src/archive/semantic-digest-builder.d.ts +23 -27
- package/dist/src/coverage/index.d.ts +23 -27
- package/dist/src/db/index.d.ts +29 -39
- package/dist/src/db/index.js +3 -4
- package/dist/src/db/index.js.map +3 -3
- package/dist/src/db/queries/chain-reorgs.d.ts +23 -27
- package/dist/src/db/queries/chain-reorgs.js +3 -4
- package/dist/src/db/queries/chain-reorgs.js.map +3 -3
- package/dist/src/db/queries/contracts.d.ts +23 -27
- package/dist/src/db/queries/instance.d.ts +23 -27
- package/dist/src/db/queries/integrity.d.ts +24 -28
- package/dist/src/db/queries/integrity.js +4 -3
- package/dist/src/db/queries/integrity.js.map +3 -3
- package/dist/src/db/queries/subgraph-gaps.d.ts +23 -27
- package/dist/src/db/queries/subgraph-operations.d.ts +23 -27
- package/dist/src/db/queries/subgraphs.d.ts +24 -33
- package/dist/src/db/queries/subgraphs.js +1 -10
- package/dist/src/db/queries/subgraphs.js.map +3 -3
- package/dist/src/db/queries/sync-scope.d.ts +23 -27
- package/dist/src/db/queries/webhooks.d.ts +23 -27
- package/dist/src/db/schema.d.ts +27 -36
- package/dist/src/index.d.ts +29 -39
- package/dist/src/index.js +3 -4
- package/dist/src/index.js.map +3 -3
- package/dist/src/node/local-client.d.ts +23 -27
- package/migrations/0134_waitlists.ts +64 -0
- package/migrations/0135_drop_hosted_play_and_meters.ts +58 -0
- package/package.json +1 -1
|
@@ -283,21 +283,6 @@ interface MagicLinksTable {
|
|
|
283
283
|
failed_attempts: Generated<number>;
|
|
284
284
|
created_at: Generated<Date>;
|
|
285
285
|
}
|
|
286
|
-
/** One-shot hashed tokens that attach a play ghost to an email at claim. */
|
|
287
|
-
interface ClaimTokensTable {
|
|
288
|
-
id: Generated<string>;
|
|
289
|
-
account_id: string;
|
|
290
|
-
token_hash: string;
|
|
291
|
-
created_at: Generated<Date>;
|
|
292
|
-
expires_at: Date;
|
|
293
|
-
used_at: Date | null;
|
|
294
|
-
}
|
|
295
|
-
/** 3 play provisions per IP per UTC day. PK (ip_hash, day); `count` caps at 3. */
|
|
296
|
-
interface PlayProvisionsTable {
|
|
297
|
-
ip_hash: string;
|
|
298
|
-
day: string;
|
|
299
|
-
count: Generated<number>;
|
|
300
|
-
}
|
|
301
286
|
interface SubgraphProcessingStatsTable {
|
|
302
287
|
id: Generated<string>;
|
|
303
288
|
subgraph_name: string;
|
|
@@ -759,8 +744,6 @@ interface Database {
|
|
|
759
744
|
accounts: AccountsTable;
|
|
760
745
|
sessions: SessionsTable;
|
|
761
746
|
magic_links: MagicLinksTable;
|
|
762
|
-
claim_tokens: ClaimTokensTable;
|
|
763
|
-
play_provisions: PlayProvisionsTable;
|
|
764
747
|
subgraph_health_snapshots: SubgraphHealthSnapshotsTable;
|
|
765
748
|
subgraph_processing_stats: SubgraphProcessingStatsTable;
|
|
766
749
|
subgraph_gaps: SubgraphGapsTable;
|
|
@@ -769,7 +752,6 @@ interface Database {
|
|
|
769
752
|
processed_stripe_events: ProcessedStripeEventsTable;
|
|
770
753
|
account_spend_caps: AccountSpendCapsTable;
|
|
771
754
|
account_credits: AccountCreditsTable;
|
|
772
|
-
hosted_meter_days: HostedMeterDaysTable;
|
|
773
755
|
webhooks: WebhooksTable;
|
|
774
756
|
webhook_outbox: WebhookOutboxTable;
|
|
775
757
|
webhook_deliveries: WebhookDeliveriesTable;
|
|
@@ -800,6 +782,8 @@ interface Database {
|
|
|
800
782
|
coverage_segments: CoverageSegmentsTable;
|
|
801
783
|
stage_failures: StageFailuresTable;
|
|
802
784
|
archive_fetches: ArchiveFetchesTable;
|
|
785
|
+
waitlists: WaitlistsTable;
|
|
786
|
+
waitlist_signups: WaitlistSignupsTable;
|
|
803
787
|
}
|
|
804
788
|
interface ServiceHeartbeatsTable {
|
|
805
789
|
name: string;
|
|
@@ -828,15 +812,6 @@ interface AccountCreditsTable {
|
|
|
828
812
|
refill_last_at: Date | null;
|
|
829
813
|
updated_at: Generated<Date>;
|
|
830
814
|
}
|
|
831
|
-
/** Daily idempotency ledger for hosted subgraph running + storage meters. */
|
|
832
|
-
interface HostedMeterDaysTable {
|
|
833
|
-
day: string;
|
|
834
|
-
account_id: string;
|
|
835
|
-
subgraph_name: string;
|
|
836
|
-
kind: string;
|
|
837
|
-
usd_micros: string | number | bigint;
|
|
838
|
-
billed_at: Generated<Date>;
|
|
839
|
-
}
|
|
840
815
|
/**
|
|
841
816
|
* Archive fetch charge log (design-f089 gate). Append-only: one row per
|
|
842
817
|
* priced attempt to fetch a partition object. `usd_micros` is 0 for
|
|
@@ -939,6 +914,27 @@ interface TriggerEvaluatorStateTable {
|
|
|
939
914
|
last_settlement_scan_at: ColumnType<Date | null, Date | null | undefined, Date | null>;
|
|
940
915
|
updated_at: Generated<Date>;
|
|
941
916
|
}
|
|
917
|
+
/** A public waitlist page: what it is for and whether it takes signups. */
|
|
918
|
+
interface WaitlistsTable {
|
|
919
|
+
slug: string;
|
|
920
|
+
title: string;
|
|
921
|
+
description: string;
|
|
922
|
+
url: string;
|
|
923
|
+
opened_at: Generated<Date>;
|
|
924
|
+
/** Null while the list is open. */
|
|
925
|
+
closed_at: Date | null;
|
|
926
|
+
}
|
|
927
|
+
/**
|
|
928
|
+
* One signup per (list, contact, token). `answers` holds the list's own
|
|
929
|
+
* questions, validated per list by the API before insert.
|
|
930
|
+
*/
|
|
931
|
+
interface WaitlistSignupsTable {
|
|
932
|
+
id: Generated<string>;
|
|
933
|
+
list: string;
|
|
934
|
+
contact: string;
|
|
935
|
+
answers: Record<string, unknown>;
|
|
936
|
+
created_at: Generated<Date>;
|
|
937
|
+
}
|
|
942
938
|
import { Kysely } from "kysely";
|
|
943
939
|
/**
|
|
944
940
|
* Cheap, SQL-computed digests over a height range — the basis of a verify that
|
|
@@ -283,21 +283,6 @@ interface MagicLinksTable {
|
|
|
283
283
|
failed_attempts: Generated<number>;
|
|
284
284
|
created_at: Generated<Date>;
|
|
285
285
|
}
|
|
286
|
-
/** One-shot hashed tokens that attach a play ghost to an email at claim. */
|
|
287
|
-
interface ClaimTokensTable {
|
|
288
|
-
id: Generated<string>;
|
|
289
|
-
account_id: string;
|
|
290
|
-
token_hash: string;
|
|
291
|
-
created_at: Generated<Date>;
|
|
292
|
-
expires_at: Date;
|
|
293
|
-
used_at: Date | null;
|
|
294
|
-
}
|
|
295
|
-
/** 3 play provisions per IP per UTC day. PK (ip_hash, day); `count` caps at 3. */
|
|
296
|
-
interface PlayProvisionsTable {
|
|
297
|
-
ip_hash: string;
|
|
298
|
-
day: string;
|
|
299
|
-
count: Generated<number>;
|
|
300
|
-
}
|
|
301
286
|
interface SubgraphProcessingStatsTable {
|
|
302
287
|
id: Generated<string>;
|
|
303
288
|
subgraph_name: string;
|
|
@@ -759,8 +744,6 @@ interface Database {
|
|
|
759
744
|
accounts: AccountsTable;
|
|
760
745
|
sessions: SessionsTable;
|
|
761
746
|
magic_links: MagicLinksTable;
|
|
762
|
-
claim_tokens: ClaimTokensTable;
|
|
763
|
-
play_provisions: PlayProvisionsTable;
|
|
764
747
|
subgraph_health_snapshots: SubgraphHealthSnapshotsTable;
|
|
765
748
|
subgraph_processing_stats: SubgraphProcessingStatsTable;
|
|
766
749
|
subgraph_gaps: SubgraphGapsTable;
|
|
@@ -769,7 +752,6 @@ interface Database {
|
|
|
769
752
|
processed_stripe_events: ProcessedStripeEventsTable;
|
|
770
753
|
account_spend_caps: AccountSpendCapsTable;
|
|
771
754
|
account_credits: AccountCreditsTable;
|
|
772
|
-
hosted_meter_days: HostedMeterDaysTable;
|
|
773
755
|
webhooks: WebhooksTable;
|
|
774
756
|
webhook_outbox: WebhookOutboxTable;
|
|
775
757
|
webhook_deliveries: WebhookDeliveriesTable;
|
|
@@ -800,6 +782,8 @@ interface Database {
|
|
|
800
782
|
coverage_segments: CoverageSegmentsTable;
|
|
801
783
|
stage_failures: StageFailuresTable;
|
|
802
784
|
archive_fetches: ArchiveFetchesTable;
|
|
785
|
+
waitlists: WaitlistsTable;
|
|
786
|
+
waitlist_signups: WaitlistSignupsTable;
|
|
803
787
|
}
|
|
804
788
|
interface ServiceHeartbeatsTable {
|
|
805
789
|
name: string;
|
|
@@ -828,15 +812,6 @@ interface AccountCreditsTable {
|
|
|
828
812
|
refill_last_at: Date | null;
|
|
829
813
|
updated_at: Generated<Date>;
|
|
830
814
|
}
|
|
831
|
-
/** Daily idempotency ledger for hosted subgraph running + storage meters. */
|
|
832
|
-
interface HostedMeterDaysTable {
|
|
833
|
-
day: string;
|
|
834
|
-
account_id: string;
|
|
835
|
-
subgraph_name: string;
|
|
836
|
-
kind: string;
|
|
837
|
-
usd_micros: string | number | bigint;
|
|
838
|
-
billed_at: Generated<Date>;
|
|
839
|
-
}
|
|
840
815
|
/**
|
|
841
816
|
* Archive fetch charge log (design-f089 gate). Append-only: one row per
|
|
842
817
|
* priced attempt to fetch a partition object. `usd_micros` is 0 for
|
|
@@ -939,6 +914,27 @@ interface TriggerEvaluatorStateTable {
|
|
|
939
914
|
last_settlement_scan_at: ColumnType<Date | null, Date | null | undefined, Date | null>;
|
|
940
915
|
updated_at: Generated<Date>;
|
|
941
916
|
}
|
|
917
|
+
/** A public waitlist page: what it is for and whether it takes signups. */
|
|
918
|
+
interface WaitlistsTable {
|
|
919
|
+
slug: string;
|
|
920
|
+
title: string;
|
|
921
|
+
description: string;
|
|
922
|
+
url: string;
|
|
923
|
+
opened_at: Generated<Date>;
|
|
924
|
+
/** Null while the list is open. */
|
|
925
|
+
closed_at: Date | null;
|
|
926
|
+
}
|
|
927
|
+
/**
|
|
928
|
+
* One signup per (list, contact, token). `answers` holds the list's own
|
|
929
|
+
* questions, validated per list by the API before insert.
|
|
930
|
+
*/
|
|
931
|
+
interface WaitlistSignupsTable {
|
|
932
|
+
id: Generated<string>;
|
|
933
|
+
list: string;
|
|
934
|
+
contact: string;
|
|
935
|
+
answers: Record<string, unknown>;
|
|
936
|
+
created_at: Generated<Date>;
|
|
937
|
+
}
|
|
942
938
|
/**
|
|
943
939
|
* v1 canonical byte encoding for chain identity — the shape that lets
|
|
944
940
|
* independently-run runtimes agree on the same block.
|
|
@@ -601,21 +601,6 @@ interface MagicLinksTable {
|
|
|
601
601
|
failed_attempts: Generated<number>;
|
|
602
602
|
created_at: Generated<Date>;
|
|
603
603
|
}
|
|
604
|
-
/** One-shot hashed tokens that attach a play ghost to an email at claim. */
|
|
605
|
-
interface ClaimTokensTable {
|
|
606
|
-
id: Generated<string>;
|
|
607
|
-
account_id: string;
|
|
608
|
-
token_hash: string;
|
|
609
|
-
created_at: Generated<Date>;
|
|
610
|
-
expires_at: Date;
|
|
611
|
-
used_at: Date | null;
|
|
612
|
-
}
|
|
613
|
-
/** 3 play provisions per IP per UTC day. PK (ip_hash, day); `count` caps at 3. */
|
|
614
|
-
interface PlayProvisionsTable {
|
|
615
|
-
ip_hash: string;
|
|
616
|
-
day: string;
|
|
617
|
-
count: Generated<number>;
|
|
618
|
-
}
|
|
619
604
|
interface SubgraphProcessingStatsTable {
|
|
620
605
|
id: Generated<string>;
|
|
621
606
|
subgraph_name: string;
|
|
@@ -1077,8 +1062,6 @@ interface Database {
|
|
|
1077
1062
|
accounts: AccountsTable;
|
|
1078
1063
|
sessions: SessionsTable;
|
|
1079
1064
|
magic_links: MagicLinksTable;
|
|
1080
|
-
claim_tokens: ClaimTokensTable;
|
|
1081
|
-
play_provisions: PlayProvisionsTable;
|
|
1082
1065
|
subgraph_health_snapshots: SubgraphHealthSnapshotsTable;
|
|
1083
1066
|
subgraph_processing_stats: SubgraphProcessingStatsTable;
|
|
1084
1067
|
subgraph_gaps: SubgraphGapsTable;
|
|
@@ -1087,7 +1070,6 @@ interface Database {
|
|
|
1087
1070
|
processed_stripe_events: ProcessedStripeEventsTable;
|
|
1088
1071
|
account_spend_caps: AccountSpendCapsTable;
|
|
1089
1072
|
account_credits: AccountCreditsTable;
|
|
1090
|
-
hosted_meter_days: HostedMeterDaysTable;
|
|
1091
1073
|
webhooks: WebhooksTable;
|
|
1092
1074
|
webhook_outbox: WebhookOutboxTable;
|
|
1093
1075
|
webhook_deliveries: WebhookDeliveriesTable;
|
|
@@ -1118,6 +1100,8 @@ interface Database {
|
|
|
1118
1100
|
coverage_segments: CoverageSegmentsTable;
|
|
1119
1101
|
stage_failures: StageFailuresTable;
|
|
1120
1102
|
archive_fetches: ArchiveFetchesTable;
|
|
1103
|
+
waitlists: WaitlistsTable;
|
|
1104
|
+
waitlist_signups: WaitlistSignupsTable;
|
|
1121
1105
|
}
|
|
1122
1106
|
interface ServiceHeartbeatsTable {
|
|
1123
1107
|
name: string;
|
|
@@ -1146,15 +1130,6 @@ interface AccountCreditsTable {
|
|
|
1146
1130
|
refill_last_at: Date | null;
|
|
1147
1131
|
updated_at: Generated<Date>;
|
|
1148
1132
|
}
|
|
1149
|
-
/** Daily idempotency ledger for hosted subgraph running + storage meters. */
|
|
1150
|
-
interface HostedMeterDaysTable {
|
|
1151
|
-
day: string;
|
|
1152
|
-
account_id: string;
|
|
1153
|
-
subgraph_name: string;
|
|
1154
|
-
kind: string;
|
|
1155
|
-
usd_micros: string | number | bigint;
|
|
1156
|
-
billed_at: Generated<Date>;
|
|
1157
|
-
}
|
|
1158
1133
|
/**
|
|
1159
1134
|
* Archive fetch charge log (design-f089 gate). Append-only: one row per
|
|
1160
1135
|
* priced attempt to fetch a partition object. `usd_micros` is 0 for
|
|
@@ -1257,6 +1232,27 @@ interface TriggerEvaluatorStateTable {
|
|
|
1257
1232
|
last_settlement_scan_at: ColumnType<Date | null, Date | null | undefined, Date | null>;
|
|
1258
1233
|
updated_at: Generated<Date>;
|
|
1259
1234
|
}
|
|
1235
|
+
/** A public waitlist page: what it is for and whether it takes signups. */
|
|
1236
|
+
interface WaitlistsTable {
|
|
1237
|
+
slug: string;
|
|
1238
|
+
title: string;
|
|
1239
|
+
description: string;
|
|
1240
|
+
url: string;
|
|
1241
|
+
opened_at: Generated<Date>;
|
|
1242
|
+
/** Null while the list is open. */
|
|
1243
|
+
closed_at: Date | null;
|
|
1244
|
+
}
|
|
1245
|
+
/**
|
|
1246
|
+
* One signup per (list, contact, token). `answers` holds the list's own
|
|
1247
|
+
* questions, validated per list by the API before insert.
|
|
1248
|
+
*/
|
|
1249
|
+
interface WaitlistSignupsTable {
|
|
1250
|
+
id: Generated<string>;
|
|
1251
|
+
list: string;
|
|
1252
|
+
contact: string;
|
|
1253
|
+
answers: Record<string, unknown>;
|
|
1254
|
+
created_at: Generated<Date>;
|
|
1255
|
+
}
|
|
1260
1256
|
declare const DECODER_COMMIT_STEPS: readonly ["output", "checkpoint", "receipt", "failure"];
|
|
1261
1257
|
type DecoderCommitStep = (typeof DECODER_COMMIT_STEPS)[number];
|
|
1262
1258
|
declare class DecoderAdapterCrash extends Error {
|
package/dist/src/db/index.d.ts
CHANGED
|
@@ -302,21 +302,6 @@ interface MagicLinksTable {
|
|
|
302
302
|
failed_attempts: Generated<number>;
|
|
303
303
|
created_at: Generated<Date>;
|
|
304
304
|
}
|
|
305
|
-
/** One-shot hashed tokens that attach a play ghost to an email at claim. */
|
|
306
|
-
interface ClaimTokensTable {
|
|
307
|
-
id: Generated<string>;
|
|
308
|
-
account_id: string;
|
|
309
|
-
token_hash: string;
|
|
310
|
-
created_at: Generated<Date>;
|
|
311
|
-
expires_at: Date;
|
|
312
|
-
used_at: Date | null;
|
|
313
|
-
}
|
|
314
|
-
/** 3 play provisions per IP per UTC day. PK (ip_hash, day); `count` caps at 3. */
|
|
315
|
-
interface PlayProvisionsTable {
|
|
316
|
-
ip_hash: string;
|
|
317
|
-
day: string;
|
|
318
|
-
count: Generated<number>;
|
|
319
|
-
}
|
|
320
305
|
interface SubgraphProcessingStatsTable {
|
|
321
306
|
id: Generated<string>;
|
|
322
307
|
subgraph_name: string;
|
|
@@ -778,8 +763,6 @@ interface Database {
|
|
|
778
763
|
accounts: AccountsTable;
|
|
779
764
|
sessions: SessionsTable;
|
|
780
765
|
magic_links: MagicLinksTable;
|
|
781
|
-
claim_tokens: ClaimTokensTable;
|
|
782
|
-
play_provisions: PlayProvisionsTable;
|
|
783
766
|
subgraph_health_snapshots: SubgraphHealthSnapshotsTable;
|
|
784
767
|
subgraph_processing_stats: SubgraphProcessingStatsTable;
|
|
785
768
|
subgraph_gaps: SubgraphGapsTable;
|
|
@@ -788,7 +771,6 @@ interface Database {
|
|
|
788
771
|
processed_stripe_events: ProcessedStripeEventsTable;
|
|
789
772
|
account_spend_caps: AccountSpendCapsTable;
|
|
790
773
|
account_credits: AccountCreditsTable;
|
|
791
|
-
hosted_meter_days: HostedMeterDaysTable;
|
|
792
774
|
webhooks: WebhooksTable;
|
|
793
775
|
webhook_outbox: WebhookOutboxTable;
|
|
794
776
|
webhook_deliveries: WebhookDeliveriesTable;
|
|
@@ -819,6 +801,8 @@ interface Database {
|
|
|
819
801
|
coverage_segments: CoverageSegmentsTable;
|
|
820
802
|
stage_failures: StageFailuresTable;
|
|
821
803
|
archive_fetches: ArchiveFetchesTable;
|
|
804
|
+
waitlists: WaitlistsTable;
|
|
805
|
+
waitlist_signups: WaitlistSignupsTable;
|
|
822
806
|
}
|
|
823
807
|
interface ServiceHeartbeatsTable {
|
|
824
808
|
name: string;
|
|
@@ -853,18 +837,6 @@ interface AccountCreditsTable {
|
|
|
853
837
|
type AccountCredits = Selectable<AccountCreditsTable>;
|
|
854
838
|
type InsertAccountCredits = Insertable<AccountCreditsTable>;
|
|
855
839
|
type UpdateAccountCredits = Updateable<AccountCreditsTable>;
|
|
856
|
-
/** Daily idempotency ledger for hosted subgraph running + storage meters. */
|
|
857
|
-
interface HostedMeterDaysTable {
|
|
858
|
-
day: string;
|
|
859
|
-
account_id: string;
|
|
860
|
-
subgraph_name: string;
|
|
861
|
-
kind: string;
|
|
862
|
-
usd_micros: string | number | bigint;
|
|
863
|
-
billed_at: Generated<Date>;
|
|
864
|
-
}
|
|
865
|
-
type HostedMeterDay = Selectable<HostedMeterDaysTable>;
|
|
866
|
-
type InsertHostedMeterDay = Insertable<HostedMeterDaysTable>;
|
|
867
|
-
type UpdateHostedMeterDay = Updateable<HostedMeterDaysTable>;
|
|
868
840
|
/**
|
|
869
841
|
* Archive fetch charge log (design-f089 gate). Append-only: one row per
|
|
870
842
|
* priced attempt to fetch a partition object. `usd_micros` is 0 for
|
|
@@ -915,11 +887,6 @@ type Account = Selectable<AccountsTable>;
|
|
|
915
887
|
type InsertAccount = Insertable<AccountsTable>;
|
|
916
888
|
type MagicLink = Selectable<MagicLinksTable>;
|
|
917
889
|
type InsertMagicLink = Insertable<MagicLinksTable>;
|
|
918
|
-
type ClaimToken = Selectable<ClaimTokensTable>;
|
|
919
|
-
type InsertClaimToken = Insertable<ClaimTokensTable>;
|
|
920
|
-
type UpdateClaimToken = Updateable<ClaimTokensTable>;
|
|
921
|
-
type PlayProvision = Selectable<PlayProvisionsTable>;
|
|
922
|
-
type InsertPlayProvision = Insertable<PlayProvisionsTable>;
|
|
923
890
|
type Session = Selectable<SessionsTable>;
|
|
924
891
|
type InsertSession = Insertable<SessionsTable>;
|
|
925
892
|
type SubgraphHealthSnapshot = Selectable<SubgraphHealthSnapshotsTable>;
|
|
@@ -1023,6 +990,30 @@ interface TriggerEvaluatorStateTable {
|
|
|
1023
990
|
updated_at: Generated<Date>;
|
|
1024
991
|
}
|
|
1025
992
|
type TriggerEvaluatorState = Selectable<TriggerEvaluatorStateTable>;
|
|
993
|
+
/** A public waitlist page: what it is for and whether it takes signups. */
|
|
994
|
+
interface WaitlistsTable {
|
|
995
|
+
slug: string;
|
|
996
|
+
title: string;
|
|
997
|
+
description: string;
|
|
998
|
+
url: string;
|
|
999
|
+
opened_at: Generated<Date>;
|
|
1000
|
+
/** Null while the list is open. */
|
|
1001
|
+
closed_at: Date | null;
|
|
1002
|
+
}
|
|
1003
|
+
/**
|
|
1004
|
+
* One signup per (list, contact, token). `answers` holds the list's own
|
|
1005
|
+
* questions, validated per list by the API before insert.
|
|
1006
|
+
*/
|
|
1007
|
+
interface WaitlistSignupsTable {
|
|
1008
|
+
id: Generated<string>;
|
|
1009
|
+
list: string;
|
|
1010
|
+
contact: string;
|
|
1011
|
+
answers: Record<string, unknown>;
|
|
1012
|
+
created_at: Generated<Date>;
|
|
1013
|
+
}
|
|
1014
|
+
type Waitlist = Selectable<WaitlistsTable>;
|
|
1015
|
+
type WaitlistSignup = Selectable<WaitlistSignupsTable>;
|
|
1016
|
+
type InsertWaitlistSignup = Insertable<WaitlistSignupsTable>;
|
|
1026
1017
|
import { sql } from "kysely";
|
|
1027
1018
|
import { Selectable as Selectable2 } from "kysely";
|
|
1028
1019
|
/** Widen a single scalar to its driver-accurate read shape. */
|
|
@@ -1946,8 +1937,6 @@ declare const TABLE_TO_DB: {
|
|
|
1946
1937
|
api_keys: string
|
|
1947
1938
|
sessions: string
|
|
1948
1939
|
magic_links: string
|
|
1949
|
-
claim_tokens: string
|
|
1950
|
-
play_provisions: string
|
|
1951
1940
|
account_spend_caps: string
|
|
1952
1941
|
processed_stripe_events: string
|
|
1953
1942
|
webhooks: string
|
|
@@ -1961,8 +1950,9 @@ declare const TABLE_TO_DB: {
|
|
|
1961
1950
|
subgraph_violations: string
|
|
1962
1951
|
subgraph_processing_stats: string
|
|
1963
1952
|
account_credits: string
|
|
1964
|
-
hosted_meter_days: string
|
|
1965
1953
|
archive_fetches: string
|
|
1954
|
+
waitlists: string
|
|
1955
|
+
waitlist_signups: string
|
|
1966
1956
|
service_heartbeats: string
|
|
1967
1957
|
};
|
|
1968
1958
|
/** OSS: one application URL. SOURCE_/TARGET_ are hosted split only. */
|
|
@@ -2034,4 +2024,4 @@ declare function getRawClient(role?: "source" | "target"): ReturnType<typeof pos
|
|
|
2034
2024
|
declare function getRawClientFor(url: string): ReturnType<typeof postgres>;
|
|
2035
2025
|
/** Close all DB connection pools. Call in CLI commands to allow process exit. */
|
|
2036
2026
|
declare function closeDb(): Promise<void>;
|
|
2037
|
-
export { sql, setMigrationRole, parseJsonb, onControlPlane, onChainPlane, jsonb, getTargetDb, getSourceDb, getRawClientFor, getRawClient, getMigrationRole, getDbSplitStatus, getDb, closeDb, assertDbSplit, applicationDatabaseUrl, WebhooksTable, WebhookStatus, WebhookRuntime, WebhookOutboxTable, WebhookOutbox, WebhookKind, WebhookFormat, WebhookDelivery, WebhookDeliveriesTable, Webhook, VmEventsTable, VmEventsArchiveTable, VmEvent, UpdateWebhookOutbox, UpdateWebhook, UpdateVmEvent, UpdateTransaction, UpdateSubgraphOperation, UpdateSubgraph, UpdateIndexProgress,
|
|
2027
|
+
export { sql, setMigrationRole, parseJsonb, onControlPlane, onChainPlane, jsonb, getTargetDb, getSourceDb, getRawClientFor, getRawClient, getMigrationRole, getDbSplitStatus, getDb, closeDb, assertDbSplit, applicationDatabaseUrl, WebhooksTable, WebhookStatus, WebhookRuntime, WebhookOutboxTable, WebhookOutbox, WebhookKind, WebhookFormat, WebhookDelivery, WebhookDeliveriesTable, Webhook, WaitlistsTable, WaitlistSignupsTable, WaitlistSignup, Waitlist, VmEventsTable, VmEventsArchiveTable, VmEvent, UpdateWebhookOutbox, UpdateWebhook, UpdateVmEvent, UpdateTransaction, UpdateSubgraphOperation, UpdateSubgraph, UpdateIndexProgress, UpdateEvent, UpdateContract, UpdateBlock, UpdateArchiveFetch, UpdateApiKey, UpdateAccountSpendCap, UpdateAccountCredits, TriggerEvaluatorStateTable, TriggerEvaluatorState, TransactionsTable, TransactionsArchiveTable, Transaction, TABLE_TO_DB, SyncScopesTable, SubgraphsTable, SubgraphViolationsTable, SubgraphProcessingStatsTable, SubgraphOperationsTable, SubgraphOperationStatus, SubgraphOperationKind, SubgraphOperation, SubgraphHealthSnapshotsTable, SubgraphHealthSnapshot, SubgraphGapsTable, SubgraphGap, Subgraph, StageRunsTable, StageRegistryTable, StageKind, StageFailuresTable, StageBlockReceiptsTable, SessionsTable, Session, ServiceHeartbeatsTable, SbtcTokenEventsTable, SbtcTokenEventType, SbtcSettlementsTable, SbtcEventsTable, SbtcEventTopic, SOURCE_READ_TYPES, SOURCE_READ_PKS, SOURCE_READ_COLUMNS, RunStatus, RetryState, RepairMode, ProcessedStripeEventsTable, Pox5EventsTable, Pox5EventTopic, Pox4FunctionName, Pox4CallsTable, PendingForkBlocksTable, OutboxStatus, ObserverJournalTable, ObserverJournalStatus, NumericAsText, NativeClock, MigrationRole, MempoolTransactionsTable, MempoolTransaction, MagicLinksTable, MagicLink, InstancesTable, InsertWebhookOutbox, InsertWebhookDelivery, InsertWebhook, InsertWaitlistSignup, InsertVmEvent, InsertTransaction, InsertSubgraphOperation, InsertSubgraphHealthSnapshot, InsertSubgraphGap, InsertSubgraph, InsertSession, InsertMempoolTransaction, InsertMagicLink, InsertIndexProgress, InsertEvent, InsertContract, InsertBlock, InsertArchiveFetch, InsertApiKey, InsertAccountSpendCap, InsertAccountCredits, InsertAccount, IndexProgressTable, IndexProgress, IndexPrimaryKey, IndexColumnType, IndexColumn, FailureUnit, FailureClass, EventsTable, EventsArchiveTable, Event, DecoderCheckpointsTable, DecodedEventsTable, DeadLetterEventsTable, DbSplitStatus, DbReadRow, DbPlane, Database, CoverageSegmentsTable, ContractsTable, Contract, ChainReorgsTable, ChainReadCacheTable, BurnBlockRewardsTable, BurnBlockRewardSlotsTable, BnsNamespacesTable, BnsNamespaceEventsTable, BnsNamespaceEventStatus, BnsNamesTable, BnsNameEventsTable, BnsNameEventTopic, BnsMarketplaceEventsTable, BnsMarketplaceAction, BlocksTable, Block, ArchiveFetchesTable, ArchiveFetch, ApiKeysTable, ApiKey, AccountsTable, AccountSpendCapsTable, AccountSpendCap, AccountCreditsTable, AccountCredits, Account };
|
package/dist/src/db/index.js
CHANGED
|
@@ -774,8 +774,6 @@ var TABLE_TO_DB = {
|
|
|
774
774
|
api_keys: "target",
|
|
775
775
|
sessions: "target",
|
|
776
776
|
magic_links: "target",
|
|
777
|
-
claim_tokens: "target",
|
|
778
|
-
play_provisions: "target",
|
|
779
777
|
account_spend_caps: "target",
|
|
780
778
|
processed_stripe_events: "target",
|
|
781
779
|
webhooks: "target",
|
|
@@ -789,8 +787,9 @@ var TABLE_TO_DB = {
|
|
|
789
787
|
subgraph_violations: "target",
|
|
790
788
|
subgraph_processing_stats: "target",
|
|
791
789
|
account_credits: "target",
|
|
792
|
-
hosted_meter_days: "target",
|
|
793
790
|
archive_fetches: "target",
|
|
791
|
+
waitlists: "target",
|
|
792
|
+
waitlist_signups: "target",
|
|
794
793
|
service_heartbeats: "both"
|
|
795
794
|
};
|
|
796
795
|
|
|
@@ -993,5 +992,5 @@ export {
|
|
|
993
992
|
SOURCE_READ_COLUMNS
|
|
994
993
|
};
|
|
995
994
|
|
|
996
|
-
//# debugId=
|
|
995
|
+
//# debugId=9B89E15CFB7142D864756E2164756E21
|
|
997
996
|
//# sourceMappingURL=index.js.map
|