@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.
@@ -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>;
@@ -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>;
@@ -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>;
@@ -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
- authConfig: Record<string, unknown>;
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;