@secondlayer/shared 11.13.0 → 11.14.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 +1 -1
- package/dist/src/archive/semantic-digest-builder.d.ts +1 -1
- package/dist/src/coverage/index.d.ts +1 -1
- package/dist/src/db/index.d.ts +1 -1
- package/dist/src/db/queries/chain-reorgs.d.ts +1 -1
- package/dist/src/db/queries/contracts.d.ts +1 -1
- package/dist/src/db/queries/instance.d.ts +1 -1
- package/dist/src/db/queries/integrity.d.ts +1 -1
- package/dist/src/db/queries/subgraph-gaps.d.ts +1 -1
- package/dist/src/db/queries/subgraph-operations.d.ts +1 -1
- package/dist/src/db/queries/subgraphs.d.ts +1 -1
- package/dist/src/db/queries/sync-scope.d.ts +1 -1
- package/dist/src/db/queries/webhooks.d.ts +1 -1
- package/dist/src/db/schema.d.ts +1 -1
- package/dist/src/index.d.ts +25 -3
- package/dist/src/index.js.map +2 -2
- package/dist/src/node/local-client.d.ts +1 -1
- package/dist/src/schemas/index.d.ts +24 -2
- package/dist/src/schemas/index.js.map +2 -2
- package/dist/src/schemas/webhooks.d.ts +29 -3
- package/dist/src/schemas/webhooks.js.map +2 -2
- package/migrations/0141_api_keys_internal_tier.ts +49 -0
- package/package.json +1 -1
|
@@ -235,7 +235,7 @@ interface ApiKeysTable {
|
|
|
235
235
|
ip_address: string;
|
|
236
236
|
account_id: string;
|
|
237
237
|
product: Generated<"account" | "streams" | "index">;
|
|
238
|
-
tier: "free" | "build" | "scale" | "enterprise" | null;
|
|
238
|
+
tier: "free" | "build" | "scale" | "enterprise" | "internal" | null;
|
|
239
239
|
last_used_at: Date | null;
|
|
240
240
|
revoked_at: Date | null;
|
|
241
241
|
created_at: Generated<Date>;
|
|
@@ -235,7 +235,7 @@ interface ApiKeysTable {
|
|
|
235
235
|
ip_address: string;
|
|
236
236
|
account_id: string;
|
|
237
237
|
product: Generated<"account" | "streams" | "index">;
|
|
238
|
-
tier: "free" | "build" | "scale" | "enterprise" | null;
|
|
238
|
+
tier: "free" | "build" | "scale" | "enterprise" | "internal" | null;
|
|
239
239
|
last_used_at: Date | null;
|
|
240
240
|
revoked_at: Date | null;
|
|
241
241
|
created_at: Generated<Date>;
|
|
@@ -552,7 +552,7 @@ interface ApiKeysTable {
|
|
|
552
552
|
ip_address: string;
|
|
553
553
|
account_id: string;
|
|
554
554
|
product: Generated<"account" | "streams" | "index">;
|
|
555
|
-
tier: "free" | "build" | "scale" | "enterprise" | null;
|
|
555
|
+
tier: "free" | "build" | "scale" | "enterprise" | "internal" | null;
|
|
556
556
|
last_used_at: Date | null;
|
|
557
557
|
revoked_at: Date | null;
|
|
558
558
|
created_at: Generated<Date>;
|
package/dist/src/db/index.d.ts
CHANGED
|
@@ -236,7 +236,7 @@ interface ApiKeysTable {
|
|
|
236
236
|
ip_address: string;
|
|
237
237
|
account_id: string;
|
|
238
238
|
product: Generated<"account" | "streams" | "index">;
|
|
239
|
-
tier: "free" | "build" | "scale" | "enterprise" | null;
|
|
239
|
+
tier: "free" | "build" | "scale" | "enterprise" | "internal" | null;
|
|
240
240
|
last_used_at: Date | null;
|
|
241
241
|
revoked_at: Date | null;
|
|
242
242
|
created_at: Generated<Date>;
|
|
@@ -235,7 +235,7 @@ interface ApiKeysTable {
|
|
|
235
235
|
ip_address: string;
|
|
236
236
|
account_id: string;
|
|
237
237
|
product: Generated<"account" | "streams" | "index">;
|
|
238
|
-
tier: "free" | "build" | "scale" | "enterprise" | null;
|
|
238
|
+
tier: "free" | "build" | "scale" | "enterprise" | "internal" | null;
|
|
239
239
|
last_used_at: Date | null;
|
|
240
240
|
revoked_at: Date | null;
|
|
241
241
|
created_at: Generated<Date>;
|
|
@@ -235,7 +235,7 @@ interface ApiKeysTable {
|
|
|
235
235
|
ip_address: string;
|
|
236
236
|
account_id: string;
|
|
237
237
|
product: Generated<"account" | "streams" | "index">;
|
|
238
|
-
tier: "free" | "build" | "scale" | "enterprise" | null;
|
|
238
|
+
tier: "free" | "build" | "scale" | "enterprise" | "internal" | null;
|
|
239
239
|
last_used_at: Date | null;
|
|
240
240
|
revoked_at: Date | null;
|
|
241
241
|
created_at: Generated<Date>;
|
|
@@ -235,7 +235,7 @@ interface ApiKeysTable {
|
|
|
235
235
|
ip_address: string;
|
|
236
236
|
account_id: string;
|
|
237
237
|
product: Generated<"account" | "streams" | "index">;
|
|
238
|
-
tier: "free" | "build" | "scale" | "enterprise" | null;
|
|
238
|
+
tier: "free" | "build" | "scale" | "enterprise" | "internal" | null;
|
|
239
239
|
last_used_at: Date | null;
|
|
240
240
|
revoked_at: Date | null;
|
|
241
241
|
created_at: Generated<Date>;
|
|
@@ -235,7 +235,7 @@ interface ApiKeysTable {
|
|
|
235
235
|
ip_address: string;
|
|
236
236
|
account_id: string;
|
|
237
237
|
product: Generated<"account" | "streams" | "index">;
|
|
238
|
-
tier: "free" | "build" | "scale" | "enterprise" | null;
|
|
238
|
+
tier: "free" | "build" | "scale" | "enterprise" | "internal" | null;
|
|
239
239
|
last_used_at: Date | null;
|
|
240
240
|
revoked_at: Date | null;
|
|
241
241
|
created_at: Generated<Date>;
|
|
@@ -235,7 +235,7 @@ interface ApiKeysTable {
|
|
|
235
235
|
ip_address: string;
|
|
236
236
|
account_id: string;
|
|
237
237
|
product: Generated<"account" | "streams" | "index">;
|
|
238
|
-
tier: "free" | "build" | "scale" | "enterprise" | null;
|
|
238
|
+
tier: "free" | "build" | "scale" | "enterprise" | "internal" | null;
|
|
239
239
|
last_used_at: Date | null;
|
|
240
240
|
revoked_at: Date | null;
|
|
241
241
|
created_at: Generated<Date>;
|
|
@@ -235,7 +235,7 @@ interface ApiKeysTable {
|
|
|
235
235
|
ip_address: string;
|
|
236
236
|
account_id: string;
|
|
237
237
|
product: Generated<"account" | "streams" | "index">;
|
|
238
|
-
tier: "free" | "build" | "scale" | "enterprise" | null;
|
|
238
|
+
tier: "free" | "build" | "scale" | "enterprise" | "internal" | null;
|
|
239
239
|
last_used_at: Date | null;
|
|
240
240
|
revoked_at: Date | null;
|
|
241
241
|
created_at: Generated<Date>;
|
|
@@ -235,7 +235,7 @@ interface ApiKeysTable {
|
|
|
235
235
|
ip_address: string;
|
|
236
236
|
account_id: string;
|
|
237
237
|
product: Generated<"account" | "streams" | "index">;
|
|
238
|
-
tier: "free" | "build" | "scale" | "enterprise" | null;
|
|
238
|
+
tier: "free" | "build" | "scale" | "enterprise" | "internal" | null;
|
|
239
239
|
last_used_at: Date | null;
|
|
240
240
|
revoked_at: Date | null;
|
|
241
241
|
created_at: Generated<Date>;
|
|
@@ -245,7 +245,7 @@ interface ApiKeysTable {
|
|
|
245
245
|
ip_address: string;
|
|
246
246
|
account_id: string;
|
|
247
247
|
product: Generated<"account" | "streams" | "index">;
|
|
248
|
-
tier: "free" | "build" | "scale" | "enterprise" | null;
|
|
248
|
+
tier: "free" | "build" | "scale" | "enterprise" | "internal" | null;
|
|
249
249
|
last_used_at: Date | null;
|
|
250
250
|
revoked_at: Date | null;
|
|
251
251
|
created_at: Generated<Date>;
|
|
@@ -235,7 +235,7 @@ interface ApiKeysTable {
|
|
|
235
235
|
ip_address: string;
|
|
236
236
|
account_id: string;
|
|
237
237
|
product: Generated<"account" | "streams" | "index">;
|
|
238
|
-
tier: "free" | "build" | "scale" | "enterprise" | null;
|
|
238
|
+
tier: "free" | "build" | "scale" | "enterprise" | "internal" | null;
|
|
239
239
|
last_used_at: Date | null;
|
|
240
240
|
revoked_at: Date | null;
|
|
241
241
|
created_at: Generated<Date>;
|
package/dist/src/db/schema.d.ts
CHANGED
|
@@ -234,7 +234,7 @@ interface ApiKeysTable {
|
|
|
234
234
|
ip_address: string;
|
|
235
235
|
account_id: string;
|
|
236
236
|
product: Generated<"account" | "streams" | "index">;
|
|
237
|
-
tier: "free" | "build" | "scale" | "enterprise" | null;
|
|
237
|
+
tier: "free" | "build" | "scale" | "enterprise" | "internal" | null;
|
|
238
238
|
last_used_at: Date | null;
|
|
239
239
|
revoked_at: Date | null;
|
|
240
240
|
created_at: Generated<Date>;
|
package/dist/src/index.d.ts
CHANGED
|
@@ -234,7 +234,7 @@ interface ApiKeysTable {
|
|
|
234
234
|
ip_address: string;
|
|
235
235
|
account_id: string;
|
|
236
236
|
product: Generated<"account" | "streams" | "index">;
|
|
237
|
-
tier: "free" | "build" | "scale" | "enterprise" | null;
|
|
237
|
+
tier: "free" | "build" | "scale" | "enterprise" | "internal" | null;
|
|
238
238
|
last_used_at: Date | null;
|
|
239
239
|
revoked_at: Date | null;
|
|
240
240
|
created_at: Generated<Date>;
|
|
@@ -2696,18 +2696,33 @@ interface WebhookSummary {
|
|
|
2696
2696
|
* cleared on resume. Present on the list summary (not detail-only) so a
|
|
2697
2697
|
* numbers-only insight can be shown per row without a per-row fetch. */
|
|
2698
2698
|
circuitOpenedAt: string | null;
|
|
2699
|
+
/** Consecutive failed deliveries (reset to 0 on a success). On the
|
|
2700
|
+
* summary so the list can show a failing receiver per row without a
|
|
2701
|
+
* per-row fetch. */
|
|
2702
|
+
circuitFailures: number;
|
|
2699
2703
|
createdAt: string;
|
|
2700
2704
|
updatedAt: string;
|
|
2701
2705
|
}
|
|
2706
|
+
/** What a webhook's receiver credentials look like once redacted for a
|
|
2707
|
+
* response — never the bearer token, basic-auth string, or header values
|
|
2708
|
+
* themselves, only enough to show what's set. `authConfig` on create/update
|
|
2709
|
+
* is unaffected (write-only: the API still accepts it, just never echoes
|
|
2710
|
+
* it back). */
|
|
2711
|
+
interface WebhookAuth {
|
|
2712
|
+
type: "bearer" | "basic" | "none";
|
|
2713
|
+
/** Keys of any extra headers the receiver expects — never their values. */
|
|
2714
|
+
headerNames: string[];
|
|
2715
|
+
/** True when a bearer token or basic-auth string is set, whatever it is. */
|
|
2716
|
+
hasSecret: boolean;
|
|
2717
|
+
}
|
|
2702
2718
|
interface WebhookDetail extends WebhookSummary {
|
|
2703
2719
|
filter: Record<string, unknown>;
|
|
2704
2720
|
/** Chain-trigger filters (chain webhooks only). */
|
|
2705
2721
|
triggers: ChainTrigger[] | null;
|
|
2706
|
-
|
|
2722
|
+
auth: WebhookAuth;
|
|
2707
2723
|
maxRetries: number;
|
|
2708
2724
|
timeoutMs: number;
|
|
2709
2725
|
concurrency: number;
|
|
2710
|
-
circuitFailures: number;
|
|
2711
2726
|
lastError: string | null;
|
|
2712
2727
|
/** Set on a `kind="chain"` webhook when this instance's chain-trigger
|
|
2713
2728
|
* evaluator isn't running (`SUBGRAPH_SOURCE` != `streams-index`) — the
|
|
@@ -2741,6 +2756,13 @@ interface DeliveryRow {
|
|
|
2741
2756
|
* deliveries, events already compacted out of the outbox, and rows
|
|
2742
2757
|
* written before this column existed. */
|
|
2743
2758
|
blockTime: string | null;
|
|
2759
|
+
/** Null for test deliveries and events already compacted out of the
|
|
2760
|
+
* outbox. */
|
|
2761
|
+
txId: string | null;
|
|
2762
|
+
/** The row's position within its block/tx, from the outbox's `row_pk`.
|
|
2763
|
+
* Null for test deliveries, compacted rows, and rows with neither shape
|
|
2764
|
+
* (a settlement or reorg outbox row). */
|
|
2765
|
+
eventIndex: number | null;
|
|
2744
2766
|
}
|
|
2745
2767
|
interface ReplayResult {
|
|
2746
2768
|
replayId: string;
|