@secondlayer/shared 13.11.0 → 13.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/archive/range-digest.d.ts +125 -0
- package/dist/src/archive/semantic-digest-builder.d.ts +125 -0
- package/dist/src/coverage/index.d.ts +125 -0
- package/dist/src/db/index.d.ts +146 -2
- package/dist/src/db/index.js +11 -1
- package/dist/src/db/index.js.map +3 -3
- package/dist/src/db/queries/chain-reorgs.d.ts +125 -0
- package/dist/src/db/queries/chain-reorgs.js +11 -1
- package/dist/src/db/queries/chain-reorgs.js.map +3 -3
- package/dist/src/db/queries/contracts.d.ts +125 -0
- package/dist/src/db/queries/instance.d.ts +125 -0
- package/dist/src/db/queries/integrity.d.ts +125 -0
- package/dist/src/db/queries/subgraph-gaps.d.ts +125 -0
- package/dist/src/db/queries/subgraph-operations.d.ts +125 -0
- package/dist/src/db/queries/subgraphs.d.ts +125 -0
- package/dist/src/db/queries/sync-scope.d.ts +125 -0
- package/dist/src/db/queries/webhook-replays.d.ts +1431 -0
- package/dist/src/db/queries/webhook-replays.js +156 -0
- package/dist/src/db/queries/webhook-replays.js.map +10 -0
- package/dist/src/db/queries/webhooks.d.ts +125 -0
- package/dist/src/db/schema.d.ts +136 -2
- package/dist/src/index.d.ts +146 -2
- package/dist/src/index.js +15 -1
- package/dist/src/index.js.map +4 -4
- package/dist/src/insights/index.d.ts +142 -3
- package/dist/src/insights/index.js +40 -3
- package/dist/src/insights/index.js.map +3 -3
- package/dist/src/node/local-client.d.ts +125 -0
- package/dist/src/queue/listener.js +11 -1
- package/dist/src/queue/listener.js.map +3 -3
- package/dist/src/schemas/index.js +5 -1
- package/dist/src/schemas/index.js.map +3 -3
- package/dist/src/schemas/webhooks.d.ts +45 -1
- package/dist/src/schemas/webhooks.js +6 -1
- package/dist/src/schemas/webhooks.js.map +3 -3
- package/migrations/0177_oauth_mcp.ts +122 -0
- package/migrations/0178_insight_snooze.ts +22 -0
- package/migrations/0179_webhook_replays.ts +56 -0
- package/migrations/0180_push.ts +54 -0
- package/migrations/0181_push_sent.ts +30 -0
- package/package.json +5 -1
package/dist/src/index.d.ts
CHANGED
|
@@ -620,6 +620,7 @@ interface InsightsTable {
|
|
|
620
620
|
clear_streak: Generated<number>;
|
|
621
621
|
resolved_at: Date | null;
|
|
622
622
|
dismissed_at: Date | null;
|
|
623
|
+
snoozed_until: Date | null;
|
|
623
624
|
}
|
|
624
625
|
/** "Expected": mutes one rule for one resource until removed. */
|
|
625
626
|
interface InsightMutesTable {
|
|
@@ -1113,6 +1114,7 @@ interface Database {
|
|
|
1113
1114
|
webhooks: WebhooksTable;
|
|
1114
1115
|
webhook_outbox: WebhookOutboxTable;
|
|
1115
1116
|
webhook_deliveries: WebhookDeliveriesTable;
|
|
1117
|
+
webhook_replays: WebhookReplaysTable;
|
|
1116
1118
|
trigger_evaluator_state: TriggerEvaluatorStateTable;
|
|
1117
1119
|
decoded_events: DecodedEventsTable;
|
|
1118
1120
|
decoder_checkpoints: DecoderCheckpointsTable;
|
|
@@ -1146,6 +1148,12 @@ interface Database {
|
|
|
1146
1148
|
account_balance_alerts: AccountBalanceAlertsTable;
|
|
1147
1149
|
webhook_incident_alerts: WebhookIncidentAlertsTable;
|
|
1148
1150
|
cli_device_logins: CliDeviceLoginsTable;
|
|
1151
|
+
oauth_clients: OauthClientsTable;
|
|
1152
|
+
oauth_requests: OauthRequestsTable;
|
|
1153
|
+
oauth_codes: OauthCodesTable;
|
|
1154
|
+
oauth_grants: OauthGrantsTable;
|
|
1155
|
+
oauth_tokens: OauthTokensTable;
|
|
1156
|
+
oauth_refresh_retired: OauthRefreshRetiredTable;
|
|
1149
1157
|
sentinel_accounts: SentinelAccountsTable;
|
|
1150
1158
|
waitlists: WaitlistsTable;
|
|
1151
1159
|
waitlist_signups: WaitlistSignupsTable;
|
|
@@ -1155,6 +1163,9 @@ interface Database {
|
|
|
1155
1163
|
insights: InsightsTable;
|
|
1156
1164
|
insight_mutes: InsightMutesTable;
|
|
1157
1165
|
feedback_tickets: FeedbackTicketsTable;
|
|
1166
|
+
push_subscriptions: PushSubscriptionsTable;
|
|
1167
|
+
push_prefs: PushPrefsTable;
|
|
1168
|
+
push_sent: PushSentTable;
|
|
1158
1169
|
}
|
|
1159
1170
|
interface ServiceHeartbeatsTable {
|
|
1160
1171
|
name: string;
|
|
@@ -1260,6 +1271,38 @@ interface WebhookIncidentAlertsTable {
|
|
|
1260
1271
|
resolved_at: Date | null;
|
|
1261
1272
|
}
|
|
1262
1273
|
type WebhookIncidentAlert = Selectable<WebhookIncidentAlertsTable>;
|
|
1274
|
+
/** One browser/device push subscription; the endpoint is unique. */
|
|
1275
|
+
interface PushSubscriptionsTable {
|
|
1276
|
+
id: Generated<string>;
|
|
1277
|
+
account_id: string;
|
|
1278
|
+
endpoint: string;
|
|
1279
|
+
p256dh: string;
|
|
1280
|
+
auth: string;
|
|
1281
|
+
user_agent: string | null;
|
|
1282
|
+
created_at: Generated<Date>;
|
|
1283
|
+
last_success_at: Date | null;
|
|
1284
|
+
failed_count: Generated<number>;
|
|
1285
|
+
}
|
|
1286
|
+
type PushSubscription = Selectable<PushSubscriptionsTable>;
|
|
1287
|
+
/** Per-account push toggles. A missing row means the column defaults. */
|
|
1288
|
+
interface PushPrefsTable {
|
|
1289
|
+
account_id: string;
|
|
1290
|
+
webhook_failing: Generated<boolean>;
|
|
1291
|
+
subgraph_stopped: Generated<boolean>;
|
|
1292
|
+
subgraph_not_serving: Generated<boolean>;
|
|
1293
|
+
replay_done: Generated<boolean>;
|
|
1294
|
+
spend_cap: Generated<boolean>;
|
|
1295
|
+
key_repeat: Generated<boolean>;
|
|
1296
|
+
updated_at: Generated<Date>;
|
|
1297
|
+
}
|
|
1298
|
+
type PushPrefs = Selectable<PushPrefsTable>;
|
|
1299
|
+
/** A push already sent, keyed by what it was about; debounces repeat signals. */
|
|
1300
|
+
interface PushSentTable {
|
|
1301
|
+
account_id: string;
|
|
1302
|
+
key: string;
|
|
1303
|
+
kind: string;
|
|
1304
|
+
sent_at: Generated<Date>;
|
|
1305
|
+
}
|
|
1263
1306
|
type CliDeviceLoginStatus = "pending" | "approved" | "denied" | "consumed";
|
|
1264
1307
|
/** The product that started a CLI sign-in; null is `sl login`. */
|
|
1265
1308
|
type CliDeviceProduct = "sentinel";
|
|
@@ -1281,6 +1324,74 @@ interface CliDeviceLoginsTable {
|
|
|
1281
1324
|
consumed_at: Date | null;
|
|
1282
1325
|
}
|
|
1283
1326
|
type CliDeviceLogin = Selectable<CliDeviceLoginsTable>;
|
|
1327
|
+
/** An app that registered itself (RFC 7591). Public clients only: no secret. */
|
|
1328
|
+
interface OauthClientsTable {
|
|
1329
|
+
id: string;
|
|
1330
|
+
/** The app's own claim, validated at registration; shown quoted. */
|
|
1331
|
+
name: string;
|
|
1332
|
+
redirect_uris: string[];
|
|
1333
|
+
created_ip: string | null;
|
|
1334
|
+
created_at: Generated<Date>;
|
|
1335
|
+
/** Set when it first gets tokens; never-used clients are purged. */
|
|
1336
|
+
last_used_at: Date | null;
|
|
1337
|
+
}
|
|
1338
|
+
type OauthRequestStatus = "pending" | "approved" | "denied";
|
|
1339
|
+
/** One authorize request waiting for (or answered on) the consent page. */
|
|
1340
|
+
interface OauthRequestsTable {
|
|
1341
|
+
id: string;
|
|
1342
|
+
client_id: string;
|
|
1343
|
+
redirect_uri: string;
|
|
1344
|
+
state: string | null;
|
|
1345
|
+
code_challenge: string;
|
|
1346
|
+
resource: string;
|
|
1347
|
+
status: Generated<OauthRequestStatus>;
|
|
1348
|
+
account_id: string | null;
|
|
1349
|
+
created_at: Generated<Date>;
|
|
1350
|
+
expires_at: Date;
|
|
1351
|
+
answered_at: Date | null;
|
|
1352
|
+
}
|
|
1353
|
+
/** A one-time authorization code, bound to its client, redirect, PKCE
|
|
1354
|
+
* challenge, resource and account. */
|
|
1355
|
+
interface OauthCodesTable {
|
|
1356
|
+
code_hash: string;
|
|
1357
|
+
client_id: string;
|
|
1358
|
+
account_id: string;
|
|
1359
|
+
redirect_uri: string;
|
|
1360
|
+
code_challenge: string;
|
|
1361
|
+
resource: string;
|
|
1362
|
+
/** The grant its one use made, so a replay can revoke it. */
|
|
1363
|
+
grant_id: string | null;
|
|
1364
|
+
created_at: Generated<Date>;
|
|
1365
|
+
expires_at: Date;
|
|
1366
|
+
used_at: Date | null;
|
|
1367
|
+
}
|
|
1368
|
+
/** What a person allowed one app to do: use the hosted MCP as them. */
|
|
1369
|
+
interface OauthGrantsTable {
|
|
1370
|
+
id: Generated<string>;
|
|
1371
|
+
account_id: string;
|
|
1372
|
+
client_id: string;
|
|
1373
|
+
scope: Generated<string>;
|
|
1374
|
+
resource: string;
|
|
1375
|
+
created_at: Generated<Date>;
|
|
1376
|
+
last_used_at: Date | null;
|
|
1377
|
+
revoked_at: Date | null;
|
|
1378
|
+
}
|
|
1379
|
+
type OauthTokenKind = "access" | "refresh";
|
|
1380
|
+
interface OauthTokensTable {
|
|
1381
|
+
token_hash: string;
|
|
1382
|
+
grant_id: string;
|
|
1383
|
+
kind: OauthTokenKind;
|
|
1384
|
+
created_at: Generated<Date>;
|
|
1385
|
+
expires_at: Date;
|
|
1386
|
+
}
|
|
1387
|
+
/** A refresh token a rotation replaced: presented again, it revokes the grant. */
|
|
1388
|
+
interface OauthRefreshRetiredTable {
|
|
1389
|
+
token_hash: string;
|
|
1390
|
+
grant_id: string;
|
|
1391
|
+
retired_at: Generated<Date>;
|
|
1392
|
+
}
|
|
1393
|
+
type OauthClient = Selectable<OauthClientsTable>;
|
|
1394
|
+
type OauthGrant = Selectable<OauthGrantsTable>;
|
|
1284
1395
|
/** Accounts Sentinel's service key may touch: created by Sentinel, or the
|
|
1285
1396
|
* owner opted in. */
|
|
1286
1397
|
interface SentinelAccountsTable {
|
|
@@ -1386,6 +1497,8 @@ interface WebhookOutboxTable {
|
|
|
1386
1497
|
next_attempt_at: Generated<Date>;
|
|
1387
1498
|
status: ColumnType<OutboxStatus, OutboxStatus | undefined, OutboxStatus>;
|
|
1388
1499
|
is_replay: Generated<boolean>;
|
|
1500
|
+
/** The replay that created this row; null for live rows. */
|
|
1501
|
+
replay_id: string | null;
|
|
1389
1502
|
/** The chain block_time of the matched event/tx. Null for rows written
|
|
1390
1503
|
* before this column existed, and for the settlement scan path (not yet
|
|
1391
1504
|
* wired). Lets `delivered_at - block_time` measure end-to-end webhook
|
|
@@ -1401,7 +1514,28 @@ interface WebhookOutboxTable {
|
|
|
1401
1514
|
last_error: string | null;
|
|
1402
1515
|
created_at: Generated<Date>;
|
|
1403
1516
|
}
|
|
1404
|
-
type
|
|
1517
|
+
type WebhookReplayStatus = "scanning" | "running" | "done" | "failed";
|
|
1518
|
+
interface WebhookReplaysTable {
|
|
1519
|
+
id: string;
|
|
1520
|
+
webhook_id: string;
|
|
1521
|
+
from_block: number | bigint;
|
|
1522
|
+
to_block: number | bigint;
|
|
1523
|
+
status: WebhookReplayStatus;
|
|
1524
|
+
scanned_count: Generated<number>;
|
|
1525
|
+
enqueued_count: Generated<number>;
|
|
1526
|
+
total: number | null;
|
|
1527
|
+
delivered: number | null;
|
|
1528
|
+
gave_up: number | null;
|
|
1529
|
+
error: string | null;
|
|
1530
|
+
started_at: Generated<Date>;
|
|
1531
|
+
finished_at: Date | null;
|
|
1532
|
+
}
|
|
1533
|
+
type WebhookReplay = Selectable<WebhookReplaysTable>;
|
|
1534
|
+
/** `replay_id` is optional on the row type so hand-built rows (the test
|
|
1535
|
+
* delivery, fixtures) need not carry it; reads still return it. */
|
|
1536
|
+
type WebhookOutbox = Omit<Selectable<WebhookOutboxTable>, "replay_id"> & {
|
|
1537
|
+
replay_id?: string | null
|
|
1538
|
+
};
|
|
1405
1539
|
type InsertWebhookOutbox = Insertable<WebhookOutboxTable>;
|
|
1406
1540
|
type UpdateWebhookOutbox = Updateable<WebhookOutboxTable>;
|
|
1407
1541
|
interface WebhookDeliveriesTable {
|
|
@@ -2557,11 +2691,18 @@ declare const TABLE_TO_DB: {
|
|
|
2557
2691
|
sessions: string
|
|
2558
2692
|
magic_links: string
|
|
2559
2693
|
cli_device_logins: string
|
|
2694
|
+
oauth_clients: string
|
|
2695
|
+
oauth_requests: string
|
|
2696
|
+
oauth_codes: string
|
|
2697
|
+
oauth_grants: string
|
|
2698
|
+
oauth_tokens: string
|
|
2699
|
+
oauth_refresh_retired: string
|
|
2560
2700
|
account_spend_caps: string
|
|
2561
2701
|
processed_stripe_events: string
|
|
2562
2702
|
webhooks: string
|
|
2563
2703
|
webhook_outbox: string
|
|
2564
2704
|
webhook_deliveries: string
|
|
2705
|
+
webhook_replays: string
|
|
2565
2706
|
trigger_evaluator_state: string
|
|
2566
2707
|
subgraphs: string
|
|
2567
2708
|
subgraph_operations: string
|
|
@@ -2584,6 +2725,9 @@ declare const TABLE_TO_DB: {
|
|
|
2584
2725
|
insights: string
|
|
2585
2726
|
insight_mutes: string
|
|
2586
2727
|
feedback_tickets: string
|
|
2728
|
+
push_subscriptions: string
|
|
2729
|
+
push_prefs: string
|
|
2730
|
+
push_sent: string
|
|
2587
2731
|
service_heartbeats: string
|
|
2588
2732
|
};
|
|
2589
2733
|
/** OSS: one application URL. SOURCE_/TARGET_ are hosted split only. */
|
|
@@ -3682,4 +3826,4 @@ declare function publicKeyPemFromPrivate(privateKeyPem: string): string;
|
|
|
3682
3826
|
declare function ed25519KeyId(publicKeyPem: string): string;
|
|
3683
3827
|
declare function signEd25519(payload: string, privateKey: KeyObject): string;
|
|
3684
3828
|
declare function verifyEd25519(payload: string, signatureBase64: string, publicKey: KeyObject): boolean;
|
|
3685
|
-
export { Account, AccountBalanceAlerts, AccountBalanceAlertsTable, AccountCredits, AccountCreditsTable, AccountSpendCap, AccountSpendCapsTable, AccountsTable, ApiFailedRequest, ApiFailedRequestsTable, ApiKey, ApiKeyRevokedError, ApiKeysTable, ApiRequestLogRow, ApiRequestLogTable, ArchiveFetch, ArchiveFetchesTable, AuthenticationError, AuthorizationError, BILLING_PAUSED_PREFIX, Block, BlocksTable, BnsMarketplaceAction, BnsMarketplaceEventsTable, BnsNameEventTopic, BnsNameEventsTable, BnsNamesTable, BnsNamespaceEventStatus, BnsNamespaceEventsTable, BnsNamespacesTable, BurnBlockRewardSlotsTable, BurnBlockRewardsTable, CHAIN_TRIGGER_FIELDS, CHAIN_TRIGGER_TYPES, CODE_TO_STATUS, ChainApplyDeliveryOf, ChainApplyEnvelope, ChainApplyEnvelopeOf, ChainEventEnvelope, ChainFtBurnData, ChainFtMintData, ChainFtTransferData, ChainNftBurnData, ChainNftMintData, ChainNftTransferData, ChainPrintEventData, ChainReadCacheTable, ChainReorgOrphanedEntry, ChainReorgRollbackDelivery, ChainReorgRollbackEnvelope, ChainReorgsTable, ChainStxBurnData, ChainStxLockData, ChainStxMintData, ChainStxTransferData, ChainTestDelivery, ChainTxLevelEvent, ChainWebhookDelivery, ChainWebhookEnvelope, CliDeviceLogin, CliDeviceLoginStatus, CliDeviceLoginsTable, CliDeviceProduct, ContactRequest, ContactRequestsTable, Contract, ContractsTable, CoverageSegmentsTable, CreateWebhookRequest, CreateWebhookRequestSchema, CreateWebhookResponse, DB_TO_STREAMS_EVENT_TYPE, DECODED_EVENT_TYPES2 as DECODED_EVENT_TYPES, DEFAULT_BTC_CONFIRMATIONS, Database, DatabaseError, DbPlane, DbReadRow, DbSplitStatus, DeadLetterEventsTable, DeadRow, DecodedEventType2 as DecodedEventType, DecodedEventsTable, DecoderCheckpointsTable, DeliveryRow, DeploySubgraphRequest, DeploySubgraphRequestSchema, DeploySubgraphResponse, EMPTY_RANGE_EVENT_INDEX_SENTINEL, Env, ErrorCode, ErrorCodes, Event, EventsArchiveTable, EventsTable, FailureClass, FailureUnit, FeedbackTicket, FeedbackTicketsTable, ForbiddenError, HealthHour, HealthSnapshotPoint, INSIGHT_SEVERITIES, IndexColumn, IndexColumnType, IndexPrimaryKey, IndexProgress, IndexProgressTable, InsertAccount, InsertAccountBalanceAlerts, InsertAccountCredits, InsertAccountSpendCap, InsertApiFailedRequest, InsertApiKey, InsertApiRequestLogRow, InsertArchiveFetch, InsertBlock, InsertContactRequest, InsertContract, InsertEvent, InsertFeedbackTicket, InsertIndexProgress, InsertMagicLink, InsertMempoolTransaction, InsertSession, InsertStateWrite, InsertSubgraph, InsertSubgraphGap, InsertSubgraphHealthSnapshot, InsertSubgraphOperation, InsertTransaction, InsertUsageLedgerRow, InsertVmEvent, InsertWaitlistSignup, InsertWebhook, InsertWebhookDelivery, InsertWebhookOutbox, Insight, InsightEvidence, InsightEvidenceSchema, InsightListResponse, InsightListResponseSchema, InsightMutesTable, InsightResourceKind, InsightResourceKindSchema, InsightSchema, InsightSeverity, InsightSeveritySchema, InsightsTable, InstancesTable, KeyRotatedError, MagicLink, MagicLinksTable, MempoolTransaction, MempoolTransactionsTable, MigrationRole, NativeClock, NotFoundError, NumericAsText, ObserverJournalStatus, ObserverJournalTable, OutboxStatus, ParsedCreateWebhookRequest, ParsedReplayWebhookRequest, ParsedUpdateWebhookRequest, PaymentRequiredError, PendingForkBlocksTable, Pox4CallsTable, Pox4FunctionName, Pox5CycleSignersTable, Pox5CyclesTable, Pox5EventTopic, Pox5EventsTable, ProcessedStripeEventsTable, RUNE_EVENT_TYPES, RateLimitError, ReindexResponse, RepairMode, ReplayResult, ReplayWebhookRequest, ReplayWebhookRequestSchema, RetryState, RotateSecretResponse, RunStatus, RuneApplyDeliveryOf, RuneApplyEnvelope, RuneEventType, SEVERITY_ORDER, SOURCE_READ_COLUMNS, SOURCE_READ_PKS, SOURCE_READ_TYPES, STREAMS_DB_EVENT_TYPES, STREAMS_EVENT_TYPES, STREAMS_TO_DB_EVENT_TYPES, SbtcDepositEvent, SbtcEventTopic, SbtcEventsTable, SbtcSettlementsTable, SbtcTokenEventType, SbtcTokenEventsTable, SbtcWithdrawalEvent, SbtcWithdrawalSweptConfirmedEvent, SecondLayerError, SentinelAccount, SentinelAccountsTable, ServiceHeartbeatsTable, Session, SessionsTable, StageBlockReceiptsTable, StageFailuresTable, StageKind, StageRegistryTable, StageRunsTable, StateWrite, StateWritesArchiveTable, StateWritesTable, StreamsCursor, StreamsDbEventType, StreamsEventType, Subgraph, SubgraphAgentSchema, SubgraphAggregateParams, SubgraphAggregateResponse, SubgraphDetail, SubgraphErrorGroupsTable, SubgraphGap, SubgraphGapEntry, SubgraphGapRange, SubgraphGapsResponse, SubgraphGapsTable, SubgraphHealthSnapshot, SubgraphHealthSnapshotsTable, SubgraphOperation, SubgraphOperationKind, SubgraphOperationStatus, SubgraphOperationsTable, SubgraphProcessingStatsTable, SubgraphQueryParams, SubgraphSpecFormat, SubgraphSpecOptions, SubgraphSummary, SubgraphSyncInfo, SubgraphVerification, SubgraphViolationsTable, SubgraphsTable, SyncScopesTable, TABLE_TO_DB, TenantSuspendedError, Transaction, TransactionsArchiveTable, TransactionsTable, TriggerEvaluatorState, TriggerEvaluatorStateTable, UpdateAccountBalanceAlerts, UpdateAccountCredits, UpdateAccountSpendCap, UpdateApiKey, UpdateArchiveFetch, UpdateBlock, UpdateContract, UpdateEvent, UpdateIndexProgress, UpdateSubgraph, UpdateSubgraphOperation, UpdateTransaction, UpdateUsageLedgerRow, UpdateVmEvent, UpdateWebhook, UpdateWebhookOutbox, UpdateWebhookRequest, UpdateWebhookRequestSchema, UsageLedgerRow, UsageLedgerTable, VM_EVENT_TYPES, VM_NODE_TO_STORED_TYPE2 as VM_NODE_TO_STORED_TYPE, VM_STORED_TO_NODE_TYPE, ValidationError, VersionConflictError, VmEvent, VmEventType, VmEventsArchiveTable, VmEventsTable, VmNodeEventType, WEBHOOK_FORMATS, WEBHOOK_STATUSES, Waitlist, WaitlistSignup, WaitlistSignupsTable, WaitlistsTable, Webhook, WebhookDeliveriesTable, WebhookDelivery, WebhookDetail, WebhookFormat, WebhookFormatSchema, WebhookIncidentAlert, WebhookIncidentAlertsTable, WebhookKind, WebhookOutbox, WebhookOutboxTable, WebhookStatus, WebhookStatusSchema, WebhookSummary, WebhooksTable, applicationDatabaseUrl, assertDbSplit, billingPausedCode, blockEndCursor, bucketHourly, closeDb, closeDbOrTimeout, committedHeight, compareStreamsCursor, exports_hmac as crypto, decodeStreamsCursor, describeDbUrl, exports_ed25519 as ed25519, encodeStreamsCursor, finalizedBurnHeight, formatWebhookSchemaErrors, generateSubgraphAgentSchema, generateSubgraphMarkdown, generateSubgraphOpenApi, generateSubgraphSpec, getDb, getDbSplitStatus, getEnv, getErrorMessage, getMigrationRole, getRawClient, getSourceDb, getTargetDb, isBnsDecoderEnabled, isEmptyRangeCursor, isPox4DecoderEnabled, isPox5DecoderEnabled, isSbtcDecoderEnabled, jsonb, logger, onChainPlane, onControlPlane, parseJsonb, resolveSourceUrl, resolveTargetUrl, setMigrationRole, sql };
|
|
3829
|
+
export { Account, AccountBalanceAlerts, AccountBalanceAlertsTable, AccountCredits, AccountCreditsTable, AccountSpendCap, AccountSpendCapsTable, AccountsTable, ApiFailedRequest, ApiFailedRequestsTable, ApiKey, ApiKeyRevokedError, ApiKeysTable, ApiRequestLogRow, ApiRequestLogTable, ArchiveFetch, ArchiveFetchesTable, AuthenticationError, AuthorizationError, BILLING_PAUSED_PREFIX, Block, BlocksTable, BnsMarketplaceAction, BnsMarketplaceEventsTable, BnsNameEventTopic, BnsNameEventsTable, BnsNamesTable, BnsNamespaceEventStatus, BnsNamespaceEventsTable, BnsNamespacesTable, BurnBlockRewardSlotsTable, BurnBlockRewardsTable, CHAIN_TRIGGER_FIELDS, CHAIN_TRIGGER_TYPES, CODE_TO_STATUS, ChainApplyDeliveryOf, ChainApplyEnvelope, ChainApplyEnvelopeOf, ChainEventEnvelope, ChainFtBurnData, ChainFtMintData, ChainFtTransferData, ChainNftBurnData, ChainNftMintData, ChainNftTransferData, ChainPrintEventData, ChainReadCacheTable, ChainReorgOrphanedEntry, ChainReorgRollbackDelivery, ChainReorgRollbackEnvelope, ChainReorgsTable, ChainStxBurnData, ChainStxLockData, ChainStxMintData, ChainStxTransferData, ChainTestDelivery, ChainTxLevelEvent, ChainWebhookDelivery, ChainWebhookEnvelope, CliDeviceLogin, CliDeviceLoginStatus, CliDeviceLoginsTable, CliDeviceProduct, ContactRequest, ContactRequestsTable, Contract, ContractsTable, CoverageSegmentsTable, CreateWebhookRequest, CreateWebhookRequestSchema, CreateWebhookResponse, DB_TO_STREAMS_EVENT_TYPE, DECODED_EVENT_TYPES2 as DECODED_EVENT_TYPES, DEFAULT_BTC_CONFIRMATIONS, Database, DatabaseError, DbPlane, DbReadRow, DbSplitStatus, DeadLetterEventsTable, DeadRow, DecodedEventType2 as DecodedEventType, DecodedEventsTable, DecoderCheckpointsTable, DeliveryRow, DeploySubgraphRequest, DeploySubgraphRequestSchema, DeploySubgraphResponse, EMPTY_RANGE_EVENT_INDEX_SENTINEL, Env, ErrorCode, ErrorCodes, Event, EventsArchiveTable, EventsTable, FailureClass, FailureUnit, FeedbackTicket, FeedbackTicketsTable, ForbiddenError, HealthHour, HealthSnapshotPoint, INSIGHT_SEVERITIES, IndexColumn, IndexColumnType, IndexPrimaryKey, IndexProgress, IndexProgressTable, InsertAccount, InsertAccountBalanceAlerts, InsertAccountCredits, InsertAccountSpendCap, InsertApiFailedRequest, InsertApiKey, InsertApiRequestLogRow, InsertArchiveFetch, InsertBlock, InsertContactRequest, InsertContract, InsertEvent, InsertFeedbackTicket, InsertIndexProgress, InsertMagicLink, InsertMempoolTransaction, InsertSession, InsertStateWrite, InsertSubgraph, InsertSubgraphGap, InsertSubgraphHealthSnapshot, InsertSubgraphOperation, InsertTransaction, InsertUsageLedgerRow, InsertVmEvent, InsertWaitlistSignup, InsertWebhook, InsertWebhookDelivery, InsertWebhookOutbox, Insight, InsightEvidence, InsightEvidenceSchema, InsightListResponse, InsightListResponseSchema, InsightMutesTable, InsightResourceKind, InsightResourceKindSchema, InsightSchema, InsightSeverity, InsightSeveritySchema, InsightsTable, InstancesTable, KeyRotatedError, MagicLink, MagicLinksTable, MempoolTransaction, MempoolTransactionsTable, MigrationRole, NativeClock, NotFoundError, NumericAsText, OauthClient, OauthClientsTable, OauthCodesTable, OauthGrant, OauthGrantsTable, OauthRefreshRetiredTable, OauthRequestStatus, OauthRequestsTable, OauthTokenKind, OauthTokensTable, ObserverJournalStatus, ObserverJournalTable, OutboxStatus, ParsedCreateWebhookRequest, ParsedReplayWebhookRequest, ParsedUpdateWebhookRequest, PaymentRequiredError, PendingForkBlocksTable, Pox4CallsTable, Pox4FunctionName, Pox5CycleSignersTable, Pox5CyclesTable, Pox5EventTopic, Pox5EventsTable, ProcessedStripeEventsTable, PushPrefs, PushPrefsTable, PushSentTable, PushSubscription, PushSubscriptionsTable, RUNE_EVENT_TYPES, RateLimitError, ReindexResponse, RepairMode, ReplayResult, ReplayWebhookRequest, ReplayWebhookRequestSchema, RetryState, RotateSecretResponse, RunStatus, RuneApplyDeliveryOf, RuneApplyEnvelope, RuneEventType, SEVERITY_ORDER, SOURCE_READ_COLUMNS, SOURCE_READ_PKS, SOURCE_READ_TYPES, STREAMS_DB_EVENT_TYPES, STREAMS_EVENT_TYPES, STREAMS_TO_DB_EVENT_TYPES, SbtcDepositEvent, SbtcEventTopic, SbtcEventsTable, SbtcSettlementsTable, SbtcTokenEventType, SbtcTokenEventsTable, SbtcWithdrawalEvent, SbtcWithdrawalSweptConfirmedEvent, SecondLayerError, SentinelAccount, SentinelAccountsTable, ServiceHeartbeatsTable, Session, SessionsTable, StageBlockReceiptsTable, StageFailuresTable, StageKind, StageRegistryTable, StageRunsTable, StateWrite, StateWritesArchiveTable, StateWritesTable, StreamsCursor, StreamsDbEventType, StreamsEventType, Subgraph, SubgraphAgentSchema, SubgraphAggregateParams, SubgraphAggregateResponse, SubgraphDetail, SubgraphErrorGroupsTable, SubgraphGap, SubgraphGapEntry, SubgraphGapRange, SubgraphGapsResponse, SubgraphGapsTable, SubgraphHealthSnapshot, SubgraphHealthSnapshotsTable, SubgraphOperation, SubgraphOperationKind, SubgraphOperationStatus, SubgraphOperationsTable, SubgraphProcessingStatsTable, SubgraphQueryParams, SubgraphSpecFormat, SubgraphSpecOptions, SubgraphSummary, SubgraphSyncInfo, SubgraphVerification, SubgraphViolationsTable, SubgraphsTable, SyncScopesTable, TABLE_TO_DB, TenantSuspendedError, Transaction, TransactionsArchiveTable, TransactionsTable, TriggerEvaluatorState, TriggerEvaluatorStateTable, UpdateAccountBalanceAlerts, UpdateAccountCredits, UpdateAccountSpendCap, UpdateApiKey, UpdateArchiveFetch, UpdateBlock, UpdateContract, UpdateEvent, UpdateIndexProgress, UpdateSubgraph, UpdateSubgraphOperation, UpdateTransaction, UpdateUsageLedgerRow, UpdateVmEvent, UpdateWebhook, UpdateWebhookOutbox, UpdateWebhookRequest, UpdateWebhookRequestSchema, UsageLedgerRow, UsageLedgerTable, VM_EVENT_TYPES, VM_NODE_TO_STORED_TYPE2 as VM_NODE_TO_STORED_TYPE, VM_STORED_TO_NODE_TYPE, ValidationError, VersionConflictError, VmEvent, VmEventType, VmEventsArchiveTable, VmEventsTable, VmNodeEventType, WEBHOOK_FORMATS, WEBHOOK_STATUSES, Waitlist, WaitlistSignup, WaitlistSignupsTable, WaitlistsTable, Webhook, WebhookDeliveriesTable, WebhookDelivery, WebhookDetail, WebhookFormat, WebhookFormatSchema, WebhookIncidentAlert, WebhookIncidentAlertsTable, WebhookKind, WebhookOutbox, WebhookOutboxTable, WebhookReplay, WebhookReplayStatus, WebhookReplaysTable, WebhookStatus, WebhookStatusSchema, WebhookSummary, WebhooksTable, applicationDatabaseUrl, assertDbSplit, billingPausedCode, blockEndCursor, bucketHourly, closeDb, closeDbOrTimeout, committedHeight, compareStreamsCursor, exports_hmac as crypto, decodeStreamsCursor, describeDbUrl, exports_ed25519 as ed25519, encodeStreamsCursor, finalizedBurnHeight, formatWebhookSchemaErrors, generateSubgraphAgentSchema, generateSubgraphMarkdown, generateSubgraphOpenApi, generateSubgraphSpec, getDb, getDbSplitStatus, getEnv, getErrorMessage, getMigrationRole, getRawClient, getSourceDb, getTargetDb, isBnsDecoderEnabled, isEmptyRangeCursor, isPox4DecoderEnabled, isPox5DecoderEnabled, isSbtcDecoderEnabled, jsonb, logger, onChainPlane, onControlPlane, parseJsonb, resolveSourceUrl, resolveTargetUrl, setMigrationRole, sql };
|
package/dist/src/index.js
CHANGED
|
@@ -844,11 +844,18 @@ var TABLE_TO_DB = {
|
|
|
844
844
|
sessions: "target",
|
|
845
845
|
magic_links: "target",
|
|
846
846
|
cli_device_logins: "target",
|
|
847
|
+
oauth_clients: "target",
|
|
848
|
+
oauth_requests: "target",
|
|
849
|
+
oauth_codes: "target",
|
|
850
|
+
oauth_grants: "target",
|
|
851
|
+
oauth_tokens: "target",
|
|
852
|
+
oauth_refresh_retired: "target",
|
|
847
853
|
account_spend_caps: "target",
|
|
848
854
|
processed_stripe_events: "target",
|
|
849
855
|
webhooks: "target",
|
|
850
856
|
webhook_outbox: "target",
|
|
851
857
|
webhook_deliveries: "target",
|
|
858
|
+
webhook_replays: "target",
|
|
852
859
|
trigger_evaluator_state: "target",
|
|
853
860
|
subgraphs: "target",
|
|
854
861
|
subgraph_operations: "target",
|
|
@@ -871,6 +878,9 @@ var TABLE_TO_DB = {
|
|
|
871
878
|
insights: "target",
|
|
872
879
|
insight_mutes: "target",
|
|
873
880
|
feedback_tickets: "target",
|
|
881
|
+
push_subscriptions: "target",
|
|
882
|
+
push_prefs: "target",
|
|
883
|
+
push_sent: "target",
|
|
874
884
|
service_heartbeats: "both"
|
|
875
885
|
};
|
|
876
886
|
|
|
@@ -1712,6 +1722,10 @@ var ReplayWebhookRequestSchema = z4.object({
|
|
|
1712
1722
|
message: "fromBlock must be less than or equal to toBlock",
|
|
1713
1723
|
path: ["toBlock"]
|
|
1714
1724
|
});
|
|
1725
|
+
var RequeueDeadRequestSchema = z4.object({
|
|
1726
|
+
replayId: z4.string().regex(/^[0-9a-f]{16}$/, "replayId must be 16 hex characters").optional(),
|
|
1727
|
+
since: z4.iso.datetime({ offset: true }).optional()
|
|
1728
|
+
});
|
|
1715
1729
|
var trigger = {
|
|
1716
1730
|
stxTransfer: (f = {}) => ({
|
|
1717
1731
|
type: "stx_transfer",
|
|
@@ -2402,5 +2416,5 @@ export {
|
|
|
2402
2416
|
sql2 as sql
|
|
2403
2417
|
};
|
|
2404
2418
|
|
|
2405
|
-
//# debugId=
|
|
2419
|
+
//# debugId=4C61DE1D3131B7BB64756E2164756E21
|
|
2406
2420
|
//# sourceMappingURL=index.js.map
|