@secondlayer/shared 11.13.0 → 11.13.2
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 +5 -2
- 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 +4 -1
- package/dist/src/schemas/index.js.map +2 -2
- package/dist/src/schemas/webhooks.d.ts +4 -1
- 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,6 +2696,10 @@ 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
|
}
|
|
@@ -2707,7 +2711,6 @@ interface WebhookDetail extends WebhookSummary {
|
|
|
2707
2711
|
maxRetries: number;
|
|
2708
2712
|
timeoutMs: number;
|
|
2709
2713
|
concurrency: number;
|
|
2710
|
-
circuitFailures: number;
|
|
2711
2714
|
lastError: string | null;
|
|
2712
2715
|
/** Set on a `kind="chain"` webhook when this instance's chain-trigger
|
|
2713
2716
|
* evaluator isn't running (`SUBGRAPH_SOURCE` != `streams-index`) — the
|