@engramx/idl 0.16.0-rc.6 → 0.16.0-rc.7

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/engram.did CHANGED
@@ -615,6 +615,7 @@ type RailHealth =
615
615
  freezeReservation: nat;
616
616
  memoryBytes: nat;
617
617
  paidVouchersConsumed: nat;
618
+ refundOwed: opt nat;
618
619
  sendHeadroom: nat;
619
620
  sessionsClosed: nat;
620
621
  sessionsClosing: nat;
@@ -3395,7 +3396,10 @@ type Engram =
3395
3396
  /// The metrics reader the registry designated reads this engram's paid-rail health, in one call:
3396
3397
  /// the balance and the line it must stay above, the memory that line is computed from, the sessions
3397
3398
  /// by state, the escrow open sessions hold, the vouchers spent and the refused ones
3398
- /// (`RailHealth.RailHealth` says what each is, and what is never in it).
3399
+ /// (`RailHealth.RailHealth` says what each is, and what is never in it). ⟨2026-10-08, ic402 2.18.0⟩
3400
+ /// And `refundOwed`: the closed sessions whose refund failed and whose payer has not yet recovered
3401
+ /// it — counted from the close, never read from the ledger; `opt` from birth, and null (an engram
3402
+ /// that does not count) is never 0.
3399
3403
  ///
3400
3404
  /// CALLER: the metrics reader the spawning registry named on this engram (`metricsReaderId`), and
3401
3405
  /// nobody else — the owner reads its balance through `getOwnerConsole`. Answered only while the
@@ -2821,7 +2821,10 @@ export interface Engram {
2821
2821
  * / The metrics reader the registry designated reads this engram's paid-rail health, in one call:
2822
2822
  * / the balance and the line it must stay above, the memory that line is computed from, the sessions
2823
2823
  * / by state, the escrow open sessions hold, the vouchers spent and the refused ones
2824
- * / (`RailHealth.RailHealth` says what each is, and what is never in it).
2824
+ * / (`RailHealth.RailHealth` says what each is, and what is never in it). ⟨2026-10-08, ic402 2.18.0⟩
2825
+ * / And `refundOwed`: the closed sessions whose refund failed and whose payer has not yet recovered
2826
+ * / it — counted from the close, never read from the ledger; `opt` from birth, and null (an engram
2827
+ * / that does not count) is never 0.
2825
2828
  * /
2826
2829
  * / CALLER: the metrics reader the spawning registry named on this engram (`metricsReaderId`), and
2827
2830
  * / nobody else — the owner reads its balance through `getOwnerConsole`. Answered only while the
@@ -3574,6 +3577,7 @@ export interface RailHealth {
3574
3577
  paidVouchersConsumed: bigint;
3575
3578
  escrowOpen: [] | [bigint];
3576
3579
  sessionsOpen: bigint;
3580
+ refundOwed: [] | [bigint];
3577
3581
  sessionsClosing: bigint;
3578
3582
  cycles: bigint;
3579
3583
  sendHeadroom: bigint;
@@ -1061,6 +1061,7 @@ export const idlFactory = ({ IDL }) => {
1061
1061
  paidVouchersConsumed: IDL.Nat,
1062
1062
  escrowOpen: IDL.Opt(IDL.Nat),
1063
1063
  sessionsOpen: IDL.Nat,
1064
+ refundOwed: IDL.Opt(IDL.Nat),
1064
1065
  sessionsClosing: IDL.Nat,
1065
1066
  cycles: IDL.Nat,
1066
1067
  sendHeadroom: IDL.Nat,
package/dist/market.did CHANGED
@@ -81,6 +81,7 @@ type SessionCounts =
81
81
  closing: nat;
82
82
  expired: nat;
83
83
  open: nat;
84
+ refundOwed: opt nat;
84
85
  total: nat;
85
86
  };
86
87
  type SessionConfig =
@@ -329,6 +329,7 @@ export interface SessionCounts {
329
329
  total: bigint;
330
330
  expired: bigint;
331
331
  open: bigint;
332
+ refundOwed: [] | [bigint];
332
333
  closing: bigint;
333
334
  }
334
335
  export interface SessionIntent {
@@ -231,6 +231,7 @@ export const idlFactory = ({ IDL }) => {
231
231
  total: IDL.Nat,
232
232
  expired: IDL.Nat,
233
233
  open: IDL.Nat,
234
+ refundOwed: IDL.Opt(IDL.Nat),
234
235
  closing: IDL.Nat,
235
236
  });
236
237
  const HttpRequest = IDL.Record({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@engramx/idl",
3
- "version": "0.16.0-rc.6",
3
+ "version": "0.16.0-rc.7",
4
4
  "description": "The Candid interfaces of the EngramX canisters (engram, registry, market) — the .did files and the JS/TS IDL factories generated from them, published with every release so code that calls them pins the interface by version.",
5
5
  "license": "Apache-2.0",
6
6
  "author": "EngramX <developer@engramx.ai>",