@engramx/idl 0.16.0-rc.29 → 0.16.0-rc.30
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 +24 -5
- package/dist/engram.idl.d.ts +19 -0
- package/dist/market.did +4 -0
- package/dist/market.idl.d.ts +4 -0
- package/dist/registry.did +7 -0
- package/dist/registry.idl.d.ts +6 -0
- package/dist/registry.idl.js +6 -0
- package/package.json +1 -1
package/dist/engram.did
CHANGED
|
@@ -1871,6 +1871,8 @@ type Engram =
|
|
|
1871
1871
|
/// hash is the misreading to avoid — and it is an easy one to reach, because the REGISTRY's
|
|
1872
1872
|
/// chunked upload (`engramWasmInit`/`PushChunk`/`Finalize`) has the same shape and DOES verify:
|
|
1873
1873
|
/// it hashes the assembled bytes and refuses on mismatch. Same protocol, opposite semantics.
|
|
1874
|
+
/// ⟨2026-11-19, beside the paragraph above⟩ The argument is named `declaredSha256` now (it was `sha256`), so the
|
|
1875
|
+
/// name says what this paragraph says. A name only: Candid passes arguments by position, so no caller changes.
|
|
1874
1876
|
///
|
|
1875
1877
|
/// **TWO DIFFERENT PERMISSIONS GUARD THE TWO HALVES.** Writing (init, push, finalize, abort) is
|
|
1876
1878
|
/// owner-or-agent and an AGENT additionally needs `canAppendMemory`; reading
|
|
@@ -1879,7 +1881,7 @@ type Engram =
|
|
|
1879
1881
|
///
|
|
1880
1882
|
/// The write half also refuses while writes are PAUSED.
|
|
1881
1883
|
backupInit: (dbType: text, backupType: BackupType, parentBackupId:
|
|
1882
|
-
opt text,
|
|
1884
|
+
opt text, declaredSha256: text, backupLabel: opt text) -> (Result_58);
|
|
1883
1885
|
/// Read one chunk of a finalized backup, by index.
|
|
1884
1886
|
///
|
|
1885
1887
|
/// ⚠ GATED ON `read_backup`, which is NOT the permission the upload half uses — that one is
|
|
@@ -2460,7 +2462,7 @@ type Engram =
|
|
|
2460
2462
|
/// Paging is by version number, which works as its own cursor because versions are dense and
|
|
2461
2463
|
/// never renumbered: the next page starts at the last version returned plus one. Defaults
|
|
2462
2464
|
/// return the whole history of any file a pre-FD engram could have held.
|
|
2463
|
-
getMemoryHistory: (path: text, start: opt nat,
|
|
2465
|
+
getMemoryHistory: (path: text, start: opt nat, limit: opt nat) ->
|
|
2464
2466
|
(Result_75) query;
|
|
2465
2467
|
/// PUBLIC: the epoch alone, and deliberately nothing else (a public rotation history would tell everyone, the party just cut off included, when an owner ended a trust relationship). A `rotatedAt[]`
|
|
2466
2468
|
/// history would be a public, fleet-enumerable feed of when each owner terminated a trust
|
|
@@ -2762,6 +2764,10 @@ type Engram =
|
|
|
2762
2764
|
/// `///`, so the dead name was PUBLISHED in engram.did and pointed every client at a method the
|
|
2763
2765
|
/// canister does not serve. The tombstones below and at `about()` are historical and correct as
|
|
2764
2766
|
/// written; this one was present tense, which is the difference that matters.⟩
|
|
2767
|
+
///
|
|
2768
|
+
/// ⟨2026-11-19, beside "stays role-gated" above⟩ Owner only now (it was any role: owner, agent or guardian). The
|
|
2769
|
+
/// nullifier is the owner's unique-human pseudonym; an agent never needed it, and a guardian is a check on agents,
|
|
2770
|
+
/// not a party to it. Everyone else reads `about().verifiedHuman`.
|
|
2765
2771
|
getWorldIdVerification: () -> (Result_60) query;
|
|
2766
2772
|
/// ⟨0.16.0, refusals are values, never traps⟩ THE EMERGENCY FAMILY. Every refusal below is `#Refused`
|
|
2767
2773
|
/// or `#NotFound`, and the absence of a `#Conflict` here is the point: these are the calls someone
|
|
@@ -3014,7 +3020,7 @@ type Engram =
|
|
|
3014
3020
|
///
|
|
3015
3021
|
/// Owner-only like every other archive surface, and for the same structural reason: these rows
|
|
3016
3022
|
/// carry the chain positions and roots of entries whose paths were inside the hash preimage.
|
|
3017
|
-
listCondenseCheckpoints: (startSeq: nat,
|
|
3023
|
+
listCondenseCheckpoints: (startSeq: nat, limit: nat) -> (Result_49) query;
|
|
3018
3024
|
/// ⟨0.16.0⟩ `metrics()` DELETED — absorbed by `about()`.
|
|
3019
3025
|
///
|
|
3020
3026
|
/// Two public projections of one canister (one concept, one name): `metrics()` and `status()` both answered "what
|
|
@@ -3083,7 +3089,7 @@ type Engram =
|
|
|
3083
3089
|
///
|
|
3084
3090
|
/// Read `MemoryRouter.ReceiptPage` before reading `page.total` as a receipt count. It is not one;
|
|
3085
3091
|
/// it is the chain's length, and the declaration says why.
|
|
3086
|
-
listMemoryExportReceipts: (startSeq: nat,
|
|
3092
|
+
listMemoryExportReceipts: (startSeq: nat, limit: nat) -> (Result_42) query;
|
|
3087
3093
|
/// ⟨0.16.0⟩ THE `withheld` EXEMPLAR — the 0.16.0 interface law on refusals names this exact method as
|
|
3088
3094
|
/// the defect it fixes.
|
|
3089
3095
|
///
|
|
@@ -3134,7 +3140,10 @@ type Engram =
|
|
|
3134
3140
|
/// checks the page against. Flattening to a bare `Page` to satisfy the shape would buy uniformity
|
|
3135
3141
|
/// with the disclosures that make the page verifiable — the hidden-bound defect the interface plan
|
|
3136
3142
|
/// itself names on previewCondense's entry.
|
|
3137
|
-
|
|
3143
|
+
/// ⟨2026-11-19⟩ The count argument is `limit`, as on every other list (it was `max` here and on
|
|
3144
|
+
/// `listMemoryExportReceipts`, `listCondenseCheckpoints` and `getMemoryHistory`). A name only: Candid passes
|
|
3145
|
+
/// arguments by position, so no caller changes.
|
|
3146
|
+
listMemoryLog: (startSeq: nat, limit: nat, authorFilter: opt principal) ->
|
|
3138
3147
|
(Result_40) query;
|
|
3139
3148
|
/// The caller's OWN spend-approval requests. ⟨0.16.0, refusals are values; the one page shape — fixed 2026-08-18⟩
|
|
3140
3149
|
///
|
|
@@ -3673,6 +3682,16 @@ type Engram =
|
|
|
3673
3682
|
/// was the block index alone, which read as the amount. If the session's record is removed before
|
|
3674
3683
|
/// the amount can be read back — a session closed in the same moment as the recovery and cleaned up
|
|
3675
3684
|
/// during its transfer — it answers `#Other` naming the block, never a guessed amount.
|
|
3685
|
+
///
|
|
3686
|
+
/// ⟨2026-11-18, ic402 2.22.0, beside the two paragraphs above⟩ A recovery is also capped at what the
|
|
3687
|
+
/// session's close recorded as still owed to the payer, less one ledger fee, and lowers that record by
|
|
3688
|
+
/// what it paid. So asking for everything returns what the escrow can pay, and `amountE6` says how
|
|
3689
|
+
/// much. A session with no such record (its close refunded in full, or it was recovered already) is
|
|
3690
|
+
/// refused: "Nothing is owed on this session…". One recovery of a session runs at a time.
|
|
3691
|
+
///
|
|
3692
|
+
/// ⟨2026-11-19, ic402 2.23.0, beside the paragraphs above⟩ `amountE6` is now the library's own figure for
|
|
3693
|
+
/// what it paid, from its receipt. The `#Other` answer for a record removed during the transfer no longer
|
|
3694
|
+
/// occurs.
|
|
3676
3695
|
recoverEscrow: (sessionId: text, amountE6: nat) -> (Result_20);
|
|
3677
3696
|
/// ⟨0.16.0, refusals are values, never traps⟩ A REDEMPTION PATH, where the arm choice is a disclosure decision.
|
|
3678
3697
|
///
|
package/dist/engram.idl.d.ts
CHANGED
|
@@ -799,6 +799,8 @@ export interface Engram {
|
|
|
799
799
|
* / hash is the misreading to avoid — and it is an easy one to reach, because the REGISTRY's
|
|
800
800
|
* / chunked upload (`engramWasmInit`/`PushChunk`/`Finalize`) has the same shape and DOES verify:
|
|
801
801
|
* / it hashes the assembled bytes and refuses on mismatch. Same protocol, opposite semantics.
|
|
802
|
+
* / ⟨2026-11-19, beside the paragraph above⟩ The argument is named `declaredSha256` now (it was `sha256`), so the
|
|
803
|
+
* / name says what this paragraph says. A name only: Candid passes arguments by position, so no caller changes.
|
|
802
804
|
* /
|
|
803
805
|
* / **TWO DIFFERENT PERMISSIONS GUARD THE TWO HALVES.** Writing (init, push, finalize, abort) is
|
|
804
806
|
* / owner-or-agent and an AGENT additionally needs `canAppendMemory`; reading
|
|
@@ -1813,6 +1815,10 @@ export interface Engram {
|
|
|
1813
1815
|
* / `///`, so the dead name was PUBLISHED in engram.did and pointed every client at a method the
|
|
1814
1816
|
* / canister does not serve. The tombstones below and at `about()` are historical and correct as
|
|
1815
1817
|
* / written; this one was present tense, which is the difference that matters.⟩
|
|
1818
|
+
* /
|
|
1819
|
+
* / ⟨2026-11-19, beside "stays role-gated" above⟩ Owner only now (it was any role: owner, agent or guardian). The
|
|
1820
|
+
* / nullifier is the owner's unique-human pseudonym; an agent never needed it, and a guardian is a check on agents,
|
|
1821
|
+
* / not a party to it. Everyone else reads `about().verifiedHuman`.
|
|
1816
1822
|
*/
|
|
1817
1823
|
getWorldIdVerification: ActorMethod<[], Result_60>;
|
|
1818
1824
|
/**
|
|
@@ -2231,6 +2237,9 @@ export interface Engram {
|
|
|
2231
2237
|
* / checks the page against. Flattening to a bare `Page` to satisfy the shape would buy uniformity
|
|
2232
2238
|
* / with the disclosures that make the page verifiable — the hidden-bound defect the interface plan
|
|
2233
2239
|
* / itself names on previewCondense's entry.
|
|
2240
|
+
* / ⟨2026-11-19⟩ The count argument is `limit`, as on every other list (it was `max` here and on
|
|
2241
|
+
* / `listMemoryExportReceipts`, `listCondenseCheckpoints` and `getMemoryHistory`). A name only: Candid passes
|
|
2242
|
+
* / arguments by position, so no caller changes.
|
|
2234
2243
|
*/
|
|
2235
2244
|
listMemoryLog: ActorMethod<[bigint, bigint, [] | [Principal]], Result_40>;
|
|
2236
2245
|
/**
|
|
@@ -2812,6 +2821,16 @@ export interface Engram {
|
|
|
2812
2821
|
* / was the block index alone, which read as the amount. If the session's record is removed before
|
|
2813
2822
|
* / the amount can be read back — a session closed in the same moment as the recovery and cleaned up
|
|
2814
2823
|
* / during its transfer — it answers `#Other` naming the block, never a guessed amount.
|
|
2824
|
+
* /
|
|
2825
|
+
* / ⟨2026-11-18, ic402 2.22.0, beside the two paragraphs above⟩ A recovery is also capped at what the
|
|
2826
|
+
* / session's close recorded as still owed to the payer, less one ledger fee, and lowers that record by
|
|
2827
|
+
* / what it paid. So asking for everything returns what the escrow can pay, and `amountE6` says how
|
|
2828
|
+
* / much. A session with no such record (its close refunded in full, or it was recovered already) is
|
|
2829
|
+
* / refused: "Nothing is owed on this session…". One recovery of a session runs at a time.
|
|
2830
|
+
* /
|
|
2831
|
+
* / ⟨2026-11-19, ic402 2.23.0, beside the paragraphs above⟩ `amountE6` is now the library's own figure for
|
|
2832
|
+
* / what it paid, from its receipt. The `#Other` answer for a record removed during the transfer no longer
|
|
2833
|
+
* / occurs.
|
|
2815
2834
|
*/
|
|
2816
2835
|
recoverEscrow: ActorMethod<[string, bigint], Result_20>;
|
|
2817
2836
|
/**
|
package/dist/market.did
CHANGED
|
@@ -1247,6 +1247,10 @@ service : {
|
|
|
1247
1247
|
/// that was the block index alone, which read as the amount. If the session's record is removed
|
|
1248
1248
|
/// before the amount can be read back — a session closed in the same moment as the recovery and
|
|
1249
1249
|
/// cleaned up during its transfer — it answers `#Other` naming the block, never a guessed amount.
|
|
1250
|
+
///
|
|
1251
|
+
/// ⟨2026-11-19, ic402 2.23.0, beside the paragraph above⟩ `amount` is now the library's own figure for what
|
|
1252
|
+
/// it paid, from its receipt (since ic402 2.22.0 it is also capped at what the session's close recorded as
|
|
1253
|
+
/// still owed, less one fee). The `#Other` answer for a record removed during the transfer no longer occurs.
|
|
1250
1254
|
recoverEscrow: (sessionId: text, amount: TokenAmount) -> (Result_3);
|
|
1251
1255
|
/// Register as a seller by naming the engram you own.
|
|
1252
1256
|
///
|
package/dist/market.idl.d.ts
CHANGED
|
@@ -1138,6 +1138,10 @@ export interface _SERVICE {
|
|
|
1138
1138
|
* / that was the block index alone, which read as the amount. If the session's record is removed
|
|
1139
1139
|
* / before the amount can be read back — a session closed in the same moment as the recovery and
|
|
1140
1140
|
* / cleaned up during its transfer — it answers `#Other` naming the block, never a guessed amount.
|
|
1141
|
+
* /
|
|
1142
|
+
* / ⟨2026-11-19, ic402 2.23.0, beside the paragraph above⟩ `amount` is now the library's own figure for what
|
|
1143
|
+
* / it paid, from its receipt (since ic402 2.22.0 it is also capped at what the session's close recorded as
|
|
1144
|
+
* / still owed, less one fee). The `#Other` answer for a record removed during the transfer no longer occurs.
|
|
1141
1145
|
*/
|
|
1142
1146
|
recoverEscrow: ActorMethod<[string, TokenAmount], Result_3>;
|
|
1143
1147
|
/**
|
package/dist/registry.did
CHANGED
|
@@ -480,6 +480,7 @@ type EngramStatus =
|
|
|
480
480
|
type EngramRecordView =
|
|
481
481
|
record {
|
|
482
482
|
canisterId: principal;
|
|
483
|
+
changesCaused: opt ChangesCaused;
|
|
483
484
|
createdAtNs: int;
|
|
484
485
|
owner: principal;
|
|
485
486
|
status: EngramStatus;
|
|
@@ -563,6 +564,12 @@ type ChildSignInOffer =
|
|
|
563
564
|
parentIsFirstEngram: bool;
|
|
564
565
|
parentOwner: opt principal;
|
|
565
566
|
};
|
|
567
|
+
type ChangesCaused =
|
|
568
|
+
record {
|
|
569
|
+
count: nat;
|
|
570
|
+
inFlight: nat;
|
|
571
|
+
sinceBirth: bool;
|
|
572
|
+
};
|
|
566
573
|
type ChangelogEntry =
|
|
567
574
|
record {
|
|
568
575
|
atNs: int;
|
package/dist/registry.idl.d.ts
CHANGED
|
@@ -94,6 +94,11 @@ export interface ChangelogEntry {
|
|
|
94
94
|
releaseNotes: string;
|
|
95
95
|
version: string;
|
|
96
96
|
}
|
|
97
|
+
export interface ChangesCaused {
|
|
98
|
+
sinceBirth: boolean;
|
|
99
|
+
count: bigint;
|
|
100
|
+
inFlight: bigint;
|
|
101
|
+
}
|
|
97
102
|
export interface ChildSignInOffer {
|
|
98
103
|
parentActive: boolean;
|
|
99
104
|
parentIsFirstEngram: boolean;
|
|
@@ -152,6 +157,7 @@ export interface EngramComputeView {
|
|
|
152
157
|
}
|
|
153
158
|
export interface EngramRecordView {
|
|
154
159
|
status: EngramStatus;
|
|
160
|
+
changesCaused: [] | [ChangesCaused];
|
|
155
161
|
owner: Principal;
|
|
156
162
|
createdAtNs: bigint;
|
|
157
163
|
canisterId: Principal;
|
package/dist/registry.idl.js
CHANGED
|
@@ -176,8 +176,14 @@ export const idlFactory = ({ IDL }) => {
|
|
|
176
176
|
Deleted: IDL.Null,
|
|
177
177
|
Frozen: IDL.Null,
|
|
178
178
|
});
|
|
179
|
+
const ChangesCaused = IDL.Record({
|
|
180
|
+
sinceBirth: IDL.Bool,
|
|
181
|
+
count: IDL.Nat,
|
|
182
|
+
inFlight: IDL.Nat,
|
|
183
|
+
});
|
|
179
184
|
const EngramRecordView = IDL.Record({
|
|
180
185
|
status: EngramStatus,
|
|
186
|
+
changesCaused: IDL.Opt(ChangesCaused),
|
|
181
187
|
owner: IDL.Principal,
|
|
182
188
|
createdAtNs: IDL.Int,
|
|
183
189
|
canisterId: IDL.Principal,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@engramx/idl",
|
|
3
|
-
"version": "0.16.0-rc.
|
|
3
|
+
"version": "0.16.0-rc.30",
|
|
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>",
|