@byok-sdk/core 0.12.0 → 0.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/mailbox.d.ts CHANGED
@@ -73,6 +73,26 @@ export interface MailboxPage {
73
73
  */
74
74
  readonly nextSeq: number;
75
75
  readonly hasMore: boolean;
76
+ /**
77
+ * The earliest seq a reader can still recover from: one past the highest row
78
+ * this device LOST. A caller at `recoverableFrom - 1` can still be handed
79
+ * the first row it has any claim to; a caller below that has a gap it cannot
80
+ * see, and resuming it would hand back a partial tail indistinguishable from
81
+ * a complete one.
82
+ *
83
+ * Lost means `expired` — a row that aged out before anyone acked it. An
84
+ * `acked` row is consumed, not lost, so acking never moves this and never
85
+ * turns a re-poll from an old cursor into a failure; that distinction is the
86
+ * whole point of the field.
87
+ *
88
+ * `1` for a mailbox that has lost nothing, so a fresh device's cursor `0` is
89
+ * always inside the window. Monotonic for as long as dead-lettered rows are
90
+ * retained, which §12.7.5 requires.
91
+ *
92
+ * This is a READ of the retained window, never a second retention authority:
93
+ * `collectRetired` decides what is retained, this reports what it cost.
94
+ */
95
+ readonly recoverableFrom: number;
76
96
  }
77
97
  export interface MailboxAdvanceCursorInput {
78
98
  readonly deviceId: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@byok-sdk/core",
3
- "version": "0.12.0",
3
+ "version": "0.14.0",
4
4
  "description": "BYOK SDK platform contracts: branded tenant identity, tenant-first store ports, device proof canonicalization, and the composition conformance reference",
5
5
  "type": "module",
6
6
  "license": "MIT",