@gscdump/contracts 0.25.4 → 0.25.5

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.
Files changed (2) hide show
  1. package/dist/index.d.mts +16 -0
  2. package/package.json +1 -1
package/dist/index.d.mts CHANGED
@@ -1611,6 +1611,22 @@ interface ResolvedTable {
1611
1611
  mode: 'browser' | 'server';
1612
1612
  /** Compacted Iceberg data files. Empty when `mode === 'server'`. */
1613
1613
  files: ResolvedParquetFile[];
1614
+ /**
1615
+ * Recent-window overlay parquet — the non-stable tail (the freshest days the
1616
+ * ingest stability cutoff excludes from the lake), materialized out-of-band at
1617
+ * `_recent_overlay/{site}/{searchType}/{table}.parquet`. When present, the
1618
+ * browser unions it with an anti-join dedup (the lake wins on any shared day;
1619
+ * the overlay supplies only days the lake lacks) so the freshest days serve
1620
+ * from the overlay instead of returning 0. Absent (`undefined`) when no
1621
+ * overlay exists for this `(site, searchType, table)` or for `mode: 'server'`.
1622
+ *
1623
+ * The overlay is OVERWRITTEN in place each sync, so its `contentHash` MUST
1624
+ * change whenever the bytes change (the server derives it from the R2 object
1625
+ * etag) — otherwise the OPFS cache would serve a stale overlay. The enclosing
1626
+ * `FileResolutionResponse.snapshotVersion` folds the overlay hash in for the
1627
+ * same reason (it gates browser re-attach).
1628
+ */
1629
+ overlay?: ResolvedParquetFile;
1614
1630
  /** Total bytes across `files` — compared against the ceiling. */
1615
1631
  totalBytes: number;
1616
1632
  /** Total rows across `files`. */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@gscdump/contracts",
3
3
  "type": "module",
4
- "version": "0.25.4",
4
+ "version": "0.25.5",
5
5
  "description": "Shared gscdump.com API, webhook, realtime, and lifecycle contracts.",
6
6
  "author": {
7
7
  "name": "Harlan Wilton",