@engramx/idl 0.16.0-rc.21 → 0.16.0-rc.23
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 +669 -194
- package/dist/engram.idl.d.ts +673 -194
- package/dist/engram.idl.js +289 -194
- package/dist/market.did +119 -107
- package/dist/market.idl.d.ts +123 -110
- package/dist/market.idl.js +52 -49
- package/dist/registry.did +317 -96
- package/dist/registry.idl.d.ts +308 -98
- package/dist/registry.idl.js +107 -48
- package/package.json +1 -1
package/dist/engram.idl.d.ts
CHANGED
|
@@ -47,6 +47,12 @@ export interface AgentCard {
|
|
|
47
47
|
description: string;
|
|
48
48
|
services: Array<ServiceEntry>;
|
|
49
49
|
}
|
|
50
|
+
export interface AgentConvertRule {
|
|
51
|
+
spacingSeconds: bigint;
|
|
52
|
+
minPerCallE6: bigint;
|
|
53
|
+
maxPerCallE6: bigint;
|
|
54
|
+
belowDays: bigint;
|
|
55
|
+
}
|
|
50
56
|
export type AgentEndReason =
|
|
51
57
|
| { Resigned: null }
|
|
52
58
|
| { OwnerRevoked: null }
|
|
@@ -104,7 +110,7 @@ export interface AgentSpendRow {
|
|
|
104
110
|
}
|
|
105
111
|
export interface AgentSpendToday {
|
|
106
112
|
dayStartNs: bigint;
|
|
107
|
-
agents:
|
|
113
|
+
agents: Page_24;
|
|
108
114
|
}
|
|
109
115
|
export type AgentStatus = { Active: null } | { Resigned: null } | { Revoked: null };
|
|
110
116
|
export interface AgentWriteReview {
|
|
@@ -270,7 +276,7 @@ export interface CertifiedAuditHead {
|
|
|
270
276
|
}
|
|
271
277
|
export interface CheckpointPage {
|
|
272
278
|
firstAvailableSeq: bigint;
|
|
273
|
-
page:
|
|
279
|
+
page: Page_19;
|
|
274
280
|
scannedThroughSeq: bigint;
|
|
275
281
|
}
|
|
276
282
|
export interface ChildAllowanceRow {
|
|
@@ -319,6 +325,13 @@ export interface CondenseResult {
|
|
|
319
325
|
}
|
|
320
326
|
export type ControlHandover =
|
|
321
327
|
{ MovedByRegistry: null } | { NotHeldHere: null } | { MovedByEngram: null };
|
|
328
|
+
export interface Conversion {
|
|
329
|
+
token: string;
|
|
330
|
+
daysLeftBefore: [] | [bigint];
|
|
331
|
+
amountE6: bigint;
|
|
332
|
+
cyclesAdded: bigint;
|
|
333
|
+
finishedBeforeRemovalSeen: boolean;
|
|
334
|
+
}
|
|
322
335
|
export interface CycleSnapshot {
|
|
323
336
|
seq: bigint;
|
|
324
337
|
source: { balance: null } | { self: null };
|
|
@@ -413,7 +426,15 @@ export interface Engram {
|
|
|
413
426
|
* / test/key-replacement.test.mo runs it; this body names no roster gate, because the caller holds
|
|
414
427
|
* / no role here until the move.
|
|
415
428
|
*/
|
|
416
|
-
acceptAgentKeyNomination: ActorMethod<[Principal],
|
|
429
|
+
acceptAgentKeyNomination: ActorMethod<[Principal], Result_90>;
|
|
430
|
+
/**
|
|
431
|
+
* / The person the owner asked again ACCEPTS: they become this engram's sign-in, and the sealed copy
|
|
432
|
+
* / that came with the ask becomes the engram's (sealed for them). Until this call they have no power
|
|
433
|
+
* / at all. Callable only by that person while the ask waits; refused (as at birth) if they are now
|
|
434
|
+
* / an agent or a guardian here.
|
|
435
|
+
* / Named caller: an owner console — "accept" on a waiting ask, signed in as the person asked.
|
|
436
|
+
*/
|
|
437
|
+
acceptSignIn: ActorMethod<[], Result_2>;
|
|
417
438
|
/**
|
|
418
439
|
* / Consensus transform for the alert webhook outcall: collapse the response to status-only so
|
|
419
440
|
* / replicas agree regardless of response headers/body (we only care that the POST landed 2xx).
|
|
@@ -446,7 +467,7 @@ export interface Engram {
|
|
|
446
467
|
* / account name). The action must be registered: a destination list belongs to an action, and a
|
|
447
468
|
* / list for no action would be a value nothing checks. The caller is the owner's app.
|
|
448
469
|
*/
|
|
449
|
-
addEip712Destination: ActorMethod<[Uint8Array | number[], string],
|
|
470
|
+
addEip712Destination: ActorMethod<[Uint8Array | number[], string], Result_11>;
|
|
450
471
|
/**
|
|
451
472
|
* / Register a typed-data shape as signable. Owner-only, freeze-gated (a registration is a grant
|
|
452
473
|
* / of FUTURE authority — a frozen engram must not be able to widen what it can sign), and the
|
|
@@ -463,6 +484,14 @@ export interface Engram {
|
|
|
463
484
|
* / `eip712SignFor` before the cap reservation. Before this, a withdrawal registered as `#standard`
|
|
464
485
|
* / needed no webhook, no guardian and no destination field, waited one hour, and signed to any
|
|
465
486
|
* / address. Intrinsic checks still come first and the watchers last (the 2026-08-06 re-ordering).
|
|
487
|
+
* /
|
|
488
|
+
* / ⟨2026-11-02, the child build's stage 5⟩ In an engram opened through another, after the spec's own
|
|
489
|
+
* / checks: the venue actions that move money or control to another account are refused by name
|
|
490
|
+
* / (`HyperliquidTransaction:` `UsdSend`, `SpotSend`, `SendAsset`, `SendToEvmWithData`,
|
|
491
|
+
* / `ConvertToMultiSigUser`, `ApproveBuilderFee`, `TokenDelegate` — `#Refused`), and
|
|
492
|
+
* / `HyperliquidTransaction:Withdraw` registers only with a must-equal rule on `destination` naming this
|
|
493
|
+
* / engram's own pay address (`#Refused` otherwise; `#Conflict` while the pay address has not been
|
|
494
|
+
* / derived — call `getEvmAddress` first). A first engram is unchanged.
|
|
466
495
|
*/
|
|
467
496
|
addEip712Type: ActorMethod<
|
|
468
497
|
[
|
|
@@ -481,7 +510,7 @@ export interface Engram {
|
|
|
481
510
|
ackIrrevocable: boolean;
|
|
482
511
|
},
|
|
483
512
|
],
|
|
484
|
-
|
|
513
|
+
Result_88
|
|
485
514
|
>;
|
|
486
515
|
/**
|
|
487
516
|
* / ⟨0.16.0, L1⟩ THE ROLE-CONFLICT ARM, and why three refusals here are not the same refusal.
|
|
@@ -504,7 +533,44 @@ export interface Engram {
|
|
|
504
533
|
* / holding a line break are `#Invalid`; an id past the head is `#NotFound`; nothing is recorded
|
|
505
534
|
* / on any refusal.
|
|
506
535
|
*/
|
|
507
|
-
addRecordNote: ActorMethod<[bigint, string],
|
|
536
|
+
addRecordNote: ActorMethod<[bigint, string], Result_15>;
|
|
537
|
+
/**
|
|
538
|
+
* / List a seller: from 24 hours after this call, x402 may pay `payTo` up to `perDayCapE6` a UTC day
|
|
539
|
+
* / (minor units of a six-decimal stablecoin — 1_000_000 is $1.00) without an approval, and a payment
|
|
540
|
+
* / to it no longer counts against the engram-wide ceiling or the paying agent's own limits. Above the
|
|
541
|
+
* / cap a payment goes to the approval queue like any other. `isPayout` marks it as where this engram
|
|
542
|
+
* / pays out (the same row, its own cap). The sign-in only, in an engram opened through another; the
|
|
543
|
+
* / owner in a first engram. Refused while payments are frozen, for a malformed or already-listed
|
|
544
|
+
* / address, a cap of 0, and past `Sellers.MAX_SELLERS` rows. Answers when the row starts to count.
|
|
545
|
+
* / Named callers: an owner console's seller list for an engram (signed in as its sign-in, for one
|
|
546
|
+
* / opened through another), and the owner kit.
|
|
547
|
+
*/
|
|
548
|
+
addSeller: ActorMethod<[string, bigint, boolean], Result_11>;
|
|
549
|
+
/**
|
|
550
|
+
* / AN AGENT CONVERTS THE ENGRAM'S BALANCE INTO COMPUTE, under the runway rule ⟨2026-11-04, the owner's
|
|
551
|
+
* / rulings of 2026-11-01, "2 A" and "agree"; `AgentConvert.mo` holds the rule and says why each number⟩.
|
|
552
|
+
* /
|
|
553
|
+
* / CALLER: a paired agent whose STORED grant holds the scope "wallet.convert" (`AgentConvert.SCOPE`),
|
|
554
|
+
* / which only the owner adds (`createAgentInvite` / `setAgentPermissions`); off by default, and no HTTP
|
|
555
|
+
* / connector token ever carries it (`OAuth.scopesToPermissions`). The OWNER's role is refused by name —
|
|
556
|
+
* / the owner converts with `convertEarningsToCycles`.
|
|
557
|
+
* /
|
|
558
|
+
* / THE RULE: converts only while this engram has under 30 days of compute left by its own reading; at
|
|
559
|
+
* / least 0.50 and at most 2.00 (or the owner's own per-call cap if lower); at most one conversion under
|
|
560
|
+
* / the rule in any rolling 24 hours (`agentConvertAtNs`, which holds with the engram-wide ceiling
|
|
561
|
+
* / removed); counted against that ceiling when one is set; refused under ANY payment freeze (ruled), and
|
|
562
|
+
* / while another of the engram's own calls is out (its balance reads low then). `amountE6 = null` converts
|
|
563
|
+
* / as much as allowed: the smaller of the cap and what the wallet holds less the ledger fee — the wallet
|
|
564
|
+
* / is READ before anything moves, and a wallet that cannot fund 0.50 is refused by name.
|
|
565
|
+
* /
|
|
566
|
+
* / STOPPED MID-WAY: if the agent is removed, leaves, loses the grant, payments are frozen or the engram is
|
|
567
|
+
* / reset while it waits on the ledger or the cashier's deposit address, nothing moves; after the money
|
|
568
|
+
* / reached the deposit, it is sent back to the wallet less one ledger fee (or held at the biller for the
|
|
569
|
+
* / owner's next Convert). THE RESIDUAL, stated: a removal landing DURING the cashier's own conversion call
|
|
570
|
+
* / cannot stop that call — it finishes, and the reply (`finishedBeforeRemovalSeen`) and the record row say
|
|
571
|
+
* / so. One inter-canister call, bounded by one cap.
|
|
572
|
+
*/
|
|
573
|
+
agentConvertBalance: ActorMethod<[string, [] | [bigint]], Result_86>;
|
|
508
574
|
/**
|
|
509
575
|
* / Returns the write RECEIPT, not just the version.
|
|
510
576
|
* /
|
|
@@ -539,7 +605,7 @@ export interface Engram {
|
|
|
539
605
|
* / is exactly what a guardian pause exists to hold. No action alert is raised: the operation is
|
|
540
606
|
* / owner-initiated, owner-only, and already chained into the audit log.
|
|
541
607
|
*/
|
|
542
|
-
applyCondense: ActorMethod<[bigint],
|
|
608
|
+
applyCondense: ActorMethod<[bigint], Result_85>;
|
|
543
609
|
/**
|
|
544
610
|
* / Owner-only: activate a guardian who has registered against an invite.
|
|
545
611
|
* /
|
|
@@ -574,6 +640,18 @@ export interface Engram {
|
|
|
574
640
|
* / "not pending" is the one refusal here an owner acts on differently depending on which it is.
|
|
575
641
|
*/
|
|
576
642
|
approveRequest: ActorMethod<[string], Result_2>;
|
|
643
|
+
/**
|
|
644
|
+
* / The OWNER asks the person who last declined to be this engram's sign-in again. No principal
|
|
645
|
+
* / argument: the ask goes to `signInDeclinedBy` alone, so the key file can never seat a sign-in of
|
|
646
|
+
* / its choosing — re-asking the person who already said no gives a thief nothing. `sealed` is the
|
|
647
|
+
* / owner's key sealed by the kit for that person; it is stored with the ask, inert, and becomes the
|
|
648
|
+
* / engram's sealed copy only if they accept. Refused in a first engram, while a sign-in is in place,
|
|
649
|
+
* / when nobody ever declined (an engram opened without a sign-in has nobody to ask, for life), while
|
|
650
|
+
* / an ask already waits, within 7 days of the last decline (`OwnerSignIn.askRefusal`), and when the
|
|
651
|
+
* / person has since become an agent or a guardian here. The sign-in and the person asked are refused.
|
|
652
|
+
* / Named caller: the owner kit, signed by the agent's lasting key (it seals the key for that person).
|
|
653
|
+
*/
|
|
654
|
+
askSignInAgain: ActorMethod<[Uint8Array | number[]], Result_2>;
|
|
577
655
|
/**
|
|
578
656
|
* / Discard a backup started by `backupInit` and never finalized. The way out of a failed upload,
|
|
579
657
|
* / and the reason a stalled one need not occupy space indefinitely. Same gate as the rest of the
|
|
@@ -619,7 +697,7 @@ export interface Engram {
|
|
|
619
697
|
* /
|
|
620
698
|
* / The write half also refuses while writes are PAUSED.
|
|
621
699
|
*/
|
|
622
|
-
backupInit: ActorMethod<[string, BackupType, [] | [string], string, [] | [string]],
|
|
700
|
+
backupInit: ActorMethod<[string, BackupType, [] | [string], string, [] | [string]], Result_55>;
|
|
623
701
|
/**
|
|
624
702
|
* / Read one chunk of a finalized backup, by index.
|
|
625
703
|
* /
|
|
@@ -627,7 +705,7 @@ export interface Engram {
|
|
|
627
705
|
* / `canAppendMemory`. Holding one says nothing about the other, deliberately: taking a backup and
|
|
628
706
|
* / carrying it away are different authorities.
|
|
629
707
|
*/
|
|
630
|
-
backupPullChunk: ActorMethod<[string, bigint],
|
|
708
|
+
backupPullChunk: ActorMethod<[string, bigint], Result_72>;
|
|
631
709
|
backupPushChunk: ActorMethod<[string, bigint, Uint8Array | number[]], Result_2>;
|
|
632
710
|
/**
|
|
633
711
|
* / The OWNER cancels an agent's pending key nomination; the agent keeps its current key. Refused
|
|
@@ -664,8 +742,22 @@ export interface Engram {
|
|
|
664
742
|
* / ⟨2026-10-02⟩ The second parameter is NAMED `amountE6` now, as the census row above rules the
|
|
665
743
|
* / pair — e6 base units of the token named first. A name only: Candid passes arguments by
|
|
666
744
|
* / position, so nothing on the wire moved.
|
|
667
|
-
|
|
668
|
-
|
|
745
|
+
* /
|
|
746
|
+
* / ⟨2026-11-04, the agent-conversion build — the owner's "2 A" and "agree"⟩ The body moved whole into
|
|
747
|
+
* / `runConversion`, which an agent's `agentConvertBalance` shares; this method keeps its name, its
|
|
748
|
+
* / signature and its bare `cyclesAdded` reply. Under "2 A" it converts the engram's BALANCE (what the
|
|
749
|
+
* / owner put in and what it earned are not told apart); the name is the wire's and stays. A FIRST
|
|
750
|
+
* / engram's owner Convert is unchanged: not counted, not freeze-gated, not runway-bound, not pre-read,
|
|
751
|
+
* / 10.00 / 5 min. In an engram OPENED THROUGH ANOTHER the key file's Convert runs the agent rule too
|
|
752
|
+
* / (ruled "agree", question 3: under 30 days, 0.50–2.00, once in 24 hours shared with the agents, the
|
|
753
|
+
* / wallet read first), keeping its own freeze gate (L18: a guardian's freeze only).
|
|
754
|
+
* / ⟨2026-11-04, review fix⟩ SHARED with an agent's conversion: the in-flight latch only (one deposit
|
|
755
|
+
* / account, one pending marker — one conversion at a time, whoever asked), so while an agent's conversion
|
|
756
|
+
* / is between its deposit and its landing this door answers "another conversion is still in flight". NOT
|
|
757
|
+
* / shared: the 5-minute cooldown (an agent's landing does not move it) and the latch during an agent's
|
|
758
|
+
* / wallet read (nothing is held while it reads).
|
|
759
|
+
*/
|
|
760
|
+
convertEarningsToCycles: ActorMethod<[string, bigint], Result_15>;
|
|
669
761
|
/**
|
|
670
762
|
* / Owner-only: mint a single-use invite code an agent redeems with `pairAgent`.
|
|
671
763
|
* /
|
|
@@ -695,7 +787,7 @@ export interface Engram {
|
|
|
695
787
|
* / ⟨2026-10-29, review F7⟩ A name the owner gives meets the rule `renameAgent` applies: a line break
|
|
696
788
|
* / or another control character is `#Invalid` (`People.nameRefusal`), as a rename to it would be.
|
|
697
789
|
*/
|
|
698
|
-
createAgentInvite: ActorMethod<[string, AgentPermissions],
|
|
790
|
+
createAgentInvite: ActorMethod<[string, AgentPermissions], Result_55>;
|
|
699
791
|
/**
|
|
700
792
|
* / Owner-only: mint an invite for a GUARDIAN — an independent check on agents, not a
|
|
701
793
|
* / co-owner and not a recovery agent.
|
|
@@ -719,7 +811,24 @@ export interface Engram {
|
|
|
719
811
|
* / So an invite that fails to redeem for that reason is not a bad code. The rule exists because
|
|
720
812
|
* / a check must be independent of the thing it checks.
|
|
721
813
|
*/
|
|
722
|
-
createGuardianInvite: ActorMethod<[string, GuardianPermissions],
|
|
814
|
+
createGuardianInvite: ActorMethod<[string, GuardianPermissions], Result_55>;
|
|
815
|
+
/**
|
|
816
|
+
* / The sign-in GIVES ITSELF UP, or the person the owner asked again says no. ⟨the owner's ruling "1
|
|
817
|
+
* / yes, but the child can ask again" — the child build's Challenge C3.1: whoever the kit names cannot
|
|
818
|
+
* / otherwise refuse a seat they never agreed to⟩
|
|
819
|
+
* / · as the sign-in: the slot empties, the sealed copy of the owner's key is deleted (nobody may
|
|
820
|
+
* / hold a copy for a seat that is gone), and the caller is recorded as the one who declined, with
|
|
821
|
+
* / the time. The engram keeps its small limits; the owner may ask this person again in 7 days.
|
|
822
|
+
* / Listed sellers stop counting at once (a raise waiting in them too): the rows are kept, and
|
|
823
|
+
* / count again only if this person accepts a re-ask (`Sellers.inForce`).
|
|
824
|
+
* / · as the person a waiting ask goes to: the ask and the copy that came with it are dropped, and
|
|
825
|
+
* / the decline's time moves to now (the next ask waits another 7 days).
|
|
826
|
+
* / The key file is refused: it cannot empty the slot (a thief would, to strand the honest owner's
|
|
827
|
+
* / approvals). A first engram has nothing to decline.
|
|
828
|
+
* / Named caller: an owner console — the sign-in's "decline", and the person asked's "decline" on a
|
|
829
|
+
* / waiting ask.
|
|
830
|
+
*/
|
|
831
|
+
declineSignIn: ActorMethod<[], Result_2>;
|
|
723
832
|
/**
|
|
724
833
|
* / OWNER-ONLY deletion of a stored backup.
|
|
725
834
|
* /
|
|
@@ -770,7 +879,7 @@ export interface Engram {
|
|
|
770
879
|
* / revision, or a paid session's append) that succeeded, still held in full by the ring.
|
|
771
880
|
* / One dispute per guardian per write (`#Conflict`, the first stands).
|
|
772
881
|
*/
|
|
773
|
-
disputeAgentWrite: ActorMethod<[bigint, string],
|
|
882
|
+
disputeAgentWrite: ActorMethod<[bigint, string], Result_15>;
|
|
774
883
|
/**
|
|
775
884
|
* / Record that log entries [fromSeq, toSeq] were served, and return the root that proves it.
|
|
776
885
|
* /
|
|
@@ -785,7 +894,7 @@ export interface Engram {
|
|
|
785
894
|
* / situation rather than a safety measure. It IS gated on requireMemoryAttached: a store that
|
|
786
895
|
* / failed its integrity check must not attest anything it cannot vouch for.
|
|
787
896
|
*/
|
|
788
|
-
exportMemoryRange: ActorMethod<[bigint, bigint, [] | [Principal]],
|
|
897
|
+
exportMemoryRange: ActorMethod<[bigint, bigint, [] | [Principal]], Result_84>;
|
|
789
898
|
/**
|
|
790
899
|
* / ⟨0.16.0, L2.2 — renamed from `guardianFreezePayments`⟩ The prefix LIED about who may call it.
|
|
791
900
|
* / The gate is `requireOwnerOrGuardian`, and an owner freezing their own payments is the ordinary
|
|
@@ -811,6 +920,10 @@ export interface Engram {
|
|
|
811
920
|
* / · `convertEarningsToCycles` — the owner's OWN earnings becoming their OWN engram's fuel. A
|
|
812
921
|
* / frozen engram still burns cycles, so freezing this would let a brake starve the thing it
|
|
813
922
|
* / is protecting. Owner-only, capped per call, and it moves nothing outward.
|
|
923
|
+
* / ⟨2026-11-04, the agent-conversion build — ruled "agree", question 2⟩ An AGENT's conversion
|
|
924
|
+
* / (`agentConvertBalance`) IS frozen, by any freeze — the owner's own included — before it starts and
|
|
925
|
+
* / again after each await. The owner's own Convert in a first engram stays as above; in an engram
|
|
926
|
+
* / opened through another it stops under a guardian's freeze only (L18).
|
|
814
927
|
* / · `approveRequest` — an approval is not a spend. The spend it authorises goes through
|
|
815
928
|
* / `x402SignFor`, which IS frozen, so an approval granted during a freeze simply waits.
|
|
816
929
|
* / · `transferOwnership` — ownership is not a payment, and a guardian's PAYMENTS brake is not
|
|
@@ -832,8 +945,18 @@ export interface Engram {
|
|
|
832
945
|
freezePaymentsWithReason: ActorMethod<[string], Result_2>;
|
|
833
946
|
/**
|
|
834
947
|
* / Delivery status + config readback. Owner-only (the URL is a secret).
|
|
948
|
+
* / ⟨2026-11-03, the pre-gate fixes — spec §7, "child: sign-in — reads yes"⟩ Also the seated sign-in of
|
|
949
|
+
* / an engram opened through another, as the owner (`#ownerOrSignIn`); a first engram is unchanged.
|
|
950
|
+
*/
|
|
951
|
+
getActionAlertStatus: ActorMethod<[], Result_73>;
|
|
952
|
+
/**
|
|
953
|
+
* / The agent-conversion rule's numbers.
|
|
954
|
+
* / PUBLIC: the class of `getTopUpLimits` — a policy, nobody's data. ⟨2026-11-04, the market-route
|
|
955
|
+
* / build: the marker's colon was missing, so the deployment's PUBLIC-rationale gate read the method as
|
|
956
|
+
* / unmarked; the reason itself is unchanged.⟩
|
|
957
|
+
* / The cap an agent meets is `min(maxPerCallE6, getTopUpLimits().maxCkusdcE6s)`.
|
|
835
958
|
*/
|
|
836
|
-
|
|
959
|
+
getAgentConvertRule: ActorMethod<[], AgentConvertRule>;
|
|
837
960
|
/**
|
|
838
961
|
* / Agents need to know what they may revise, so they can read it too. Whole-value config, same
|
|
839
962
|
* / carve-out as getProtectedPaths — and kept a SEPARATE method from it deliberately (L2.2): a
|
|
@@ -843,7 +966,7 @@ export interface Engram {
|
|
|
843
966
|
* / Refusal reason preserved from the trap: a grant is a power, and its absence and its
|
|
844
967
|
* / concealment are different facts.
|
|
845
968
|
*/
|
|
846
|
-
getAgentRevisablePaths: ActorMethod<[],
|
|
969
|
+
getAgentRevisablePaths: ActorMethod<[], Result_66>;
|
|
847
970
|
/**
|
|
848
971
|
* / OWNER-ONLY: every engagement's seat weeks on this engram, with the agent's root — the day it
|
|
849
972
|
* / paired, the days of its first and last payment signature, a 64-week map whose bit 0 is the week
|
|
@@ -855,8 +978,10 @@ export interface Engram {
|
|
|
855
978
|
* / order. Anyone else is refused by name (`#Refused getAgentSeatWeeks: …`), never answered with an
|
|
856
979
|
* / empty page. Paged; `total` is every engagement ever paired here (a reset keeps the rows).
|
|
857
980
|
* / Two rows can name one root: an agent paired again after it left is a second engagement.
|
|
981
|
+
* / ⟨2026-11-03, the pre-gate fixes — spec §7, "child: sign-in — reads yes"⟩ Also the seated sign-in of
|
|
982
|
+
* / an engram opened through another, as the owner (`#ownerOrSignIn`); a first engram is unchanged.
|
|
858
983
|
*/
|
|
859
|
-
getAgentSeatWeeks: ActorMethod<[bigint, bigint],
|
|
984
|
+
getAgentSeatWeeks: ActorMethod<[bigint, bigint], Result_82>;
|
|
860
985
|
/**
|
|
861
986
|
* / Owner: everything written into this engram by someone other than the owner since the last
|
|
862
987
|
* / markAgentWritesReviewed() — agent appends/revisions AND paid-session appends (see
|
|
@@ -865,8 +990,11 @@ export interface Engram {
|
|
|
865
990
|
* / them — the UI must page (markAgentWritesReviewed(?lastShownId)) and must NOT present 200
|
|
866
991
|
* / as a total. `earliest` discloses ring eviction — if cursor < earliest, entries between them
|
|
867
992
|
* / aged out of the ring (the CHAIN still proves total count; this view can't show their bodies).
|
|
993
|
+
* / ⟨2026-11-03, the pre-gate fixes — spec §7, "child: sign-in — reads yes"⟩ Also the seated sign-in of
|
|
994
|
+
* / an engram opened through another, as the owner (`AccessControl.requireOwnerOrSignIn`); a first
|
|
995
|
+
* / engram is unchanged.
|
|
868
996
|
*/
|
|
869
|
-
getAgentWriteReview: ActorMethod<[],
|
|
997
|
+
getAgentWriteReview: ActorMethod<[], Result_81>;
|
|
870
998
|
/**
|
|
871
999
|
* / Why anchoring is or is not advancing. PUBLIC: ungated on purpose — detecting a stalled
|
|
872
1000
|
* / engram is the point, a gated read would fail-to-empty and hand a third party fabricated zeros,
|
|
@@ -889,7 +1017,7 @@ export interface Engram {
|
|
|
889
1017
|
* / was signed rather than asserted.
|
|
890
1018
|
*/
|
|
891
1019
|
getAuditHead: ActorMethod<[], AuditHead>;
|
|
892
|
-
getBackupMetadata: ActorMethod<[string],
|
|
1020
|
+
getBackupMetadata: ActorMethod<[string], Result_80>;
|
|
893
1021
|
/**
|
|
894
1022
|
* / ⟨2026-10-21, the owner's round-11 answer m: a backup-retention getter⟩ How many backups of
|
|
895
1023
|
* / `dbType` each creator keeps, and whether that is the default — the read `setBackupRetention`
|
|
@@ -902,7 +1030,7 @@ export interface Engram {
|
|
|
902
1030
|
* / the anonymous caller. A kind the setter would refuse is `#Invalid` here too
|
|
903
1031
|
* / (`Backup.getRetention`). Records nothing (a query).
|
|
904
1032
|
*/
|
|
905
|
-
getBackupRetention: ActorMethod<[string],
|
|
1033
|
+
getBackupRetention: ActorMethod<[string], Result_79>;
|
|
906
1034
|
/**
|
|
907
1035
|
* / The cashier this engram recognises as its rent biller — `null` until the registry pushes one.
|
|
908
1036
|
* /
|
|
@@ -920,8 +1048,10 @@ export interface Engram {
|
|
|
920
1048
|
* / from, which is the owner's to disclose, not the registry's. The certified half is at the registry
|
|
921
1049
|
* / (`getCertifiedBirth`, public, revealing only whether a fingerprint is present); the client's
|
|
922
1050
|
* / `verifyBirthChain` checks both. Refused to anyone else by the combinator (`#ownerOnly`).
|
|
1051
|
+
* / ⟨2026-11-03, the pre-gate fixes — spec §7, "child: sign-in — reads yes"⟩ Also the seated sign-in of
|
|
1052
|
+
* / an engram opened through another, as the owner (`#ownerOrSignIn`); a first engram is unchanged.
|
|
923
1053
|
*/
|
|
924
|
-
getBirthChain: ActorMethod<[],
|
|
1054
|
+
getBirthChain: ActorMethod<[], Result_78>;
|
|
925
1055
|
/**
|
|
926
1056
|
* / ⟨2026-10-21, the owner's round-11 answer d⟩ Each brake: on or off, and while on, who pulled it
|
|
927
1057
|
* / LAST (their key and whether as owner or guardian), since when, and the reason they gave — the
|
|
@@ -932,7 +1062,7 @@ export interface Engram {
|
|
|
932
1062
|
* / is null for a brake that is off, and for one carried on across the upgrade that added this
|
|
933
1063
|
* / read (who pulled it was not recorded then) — never a guessed pull.
|
|
934
1064
|
*/
|
|
935
|
-
getBrakes: ActorMethod<[],
|
|
1065
|
+
getBrakes: ActorMethod<[], Result_77>;
|
|
936
1066
|
/**
|
|
937
1067
|
* / ⟨0.16.0, L9/L10 — census row⟩ `Wire.CertifiedAuditHead`, not an anonymous record. The
|
|
938
1068
|
* / registry, market and cashier already served the shared type; the engram — the canister that
|
|
@@ -959,13 +1089,35 @@ export interface Engram {
|
|
|
959
1089
|
* / recorded nothing while reading as if it did. The refusal is loud in the reply instead. WHAT
|
|
960
1090
|
* / WOULD MAKE THIS WRONG: a reason to record who asked — then this becomes an update that says so.
|
|
961
1091
|
*/
|
|
962
|
-
getChildAllowance: ActorMethod<[Principal],
|
|
1092
|
+
getChildAllowance: ActorMethod<[Principal], Result_76>;
|
|
963
1093
|
/**
|
|
964
1094
|
* / Owner-only, Billing-class: what opening an engram costs this engram, the balance below which an
|
|
965
1095
|
* / agent's request is refused, the balance now, and every agent's allowance. The console's cost
|
|
966
1096
|
* / sentence reads it. Cycles are owner-class information, as on the owner's console read.
|
|
1097
|
+
* / ⟨2026-11-03, the pre-gate fixes — spec §7, "child: sign-in — reads yes"⟩ Also the seated sign-in of
|
|
1098
|
+
* / an engram opened through another, as the owner (`#ownerOrSignIn`); a first engram is unchanged.
|
|
1099
|
+
*/
|
|
1100
|
+
getChildOpening: ActorMethod<[], Result_75>;
|
|
1101
|
+
/**
|
|
1102
|
+
* / Derive the key that opens the sealed copy, encrypted under the caller's transport public key —
|
|
1103
|
+
* / for the SIGN-IN alone (the combinator's `#ownerSignIn`; the key file is refused by name: only the
|
|
1104
|
+
* / sign-in opens the backup, and the key file holds the plaintext anyway). The derivation input is the
|
|
1105
|
+
* / sign-in's own principal, the same identity the kit sealed the copy to, so a former sign-in's key
|
|
1106
|
+
* / never opens a copy re-sealed for its successor. Refused in a first engram, with no sign-in, and
|
|
1107
|
+
* / with no copy, all before the call. The opening is recorded (`keyBackup.opened`), so the owner's
|
|
1108
|
+
* / alert fires: the one act a thief holding the sign-in cannot hide. Not blocked by a freeze: a
|
|
1109
|
+
* / freeze must never lock the owner out of its own key.
|
|
1110
|
+
* / ⟨CORRECTED 2026-11-03, the stage-6 review's m1, beside the sentence above⟩ "cannot hide" overstates
|
|
1111
|
+
* / it: in an engram opened through another the sign-in sets the alert address, so a thief holding the
|
|
1112
|
+
* / sign-in can re-point it first. Each opening is recorded in the engram's record (which the key file
|
|
1113
|
+
* / reads) and alerted to whatever address the sign-in has set.
|
|
1114
|
+
* /
|
|
1115
|
+
* / ⟨L7⟩ UPDATE, NOT QUERY, and this is the system call that forces it: the body awaits
|
|
1116
|
+
* / `VetKeys.ManagementCanister.vetKdDeriveKey`. A query cannot await.
|
|
1117
|
+
* / Named callers: an owner console signed in as the sign-in (the browser's recovery), and the owner
|
|
1118
|
+
* / kit's `--recover-key` signed by a key-file sign-in.
|
|
967
1119
|
*/
|
|
968
|
-
|
|
1120
|
+
getEncryptedKeyBackupKey: ActorMethod<[Uint8Array | number[]], Result_72>;
|
|
969
1121
|
/**
|
|
970
1122
|
* / Derive the shared memory-encryption key, encrypted under the caller's transport
|
|
971
1123
|
* / public key. Gated to owner + read-agents (the same principals allowed to read
|
|
@@ -991,7 +1143,7 @@ export interface Engram {
|
|
|
991
1143
|
* / cost. Stated here because L7 requires the reason be readable from the interface rather than
|
|
992
1144
|
* / inferred by opening the body — which is exactly what had to happen to write this line.
|
|
993
1145
|
*/
|
|
994
|
-
getEncryptedMemoryKey: ActorMethod<[[] | [bigint], Uint8Array | number[]],
|
|
1146
|
+
getEncryptedMemoryKey: ActorMethod<[[] | [bigint], Uint8Array | number[]], Result_72>;
|
|
995
1147
|
/**
|
|
996
1148
|
* / ⟨0.16.0, owner ruling 2026-08-20 — option (a)⟩ `x402Support` REPORTS THE RAIL, not a constant.
|
|
997
1149
|
* /
|
|
@@ -1090,7 +1242,7 @@ export interface Engram {
|
|
|
1090
1242
|
* / `#Err`, never a record carrying an empty string (ic402's `getEvmAddress` answers `""` on a
|
|
1091
1243
|
* / failed derivation — that is fail-to-empty on a money surface, and it stops here).
|
|
1092
1244
|
*/
|
|
1093
|
-
getEvmAddress: ActorMethod<[],
|
|
1245
|
+
getEvmAddress: ActorMethod<[], Result_74>;
|
|
1094
1246
|
/**
|
|
1095
1247
|
* / The owner's OWN EVM address, if they registered one — distinct from `getEvmAddress`, which is
|
|
1096
1248
|
* / the address this canister derives for itself.
|
|
@@ -1108,8 +1260,11 @@ export interface Engram {
|
|
|
1108
1260
|
* / the management canister's `ecdsa_public_key`. A query cannot await, so the round-trip is the
|
|
1109
1261
|
* / cost — stated here because L7 requires the reason be readable from the interface rather than
|
|
1110
1262
|
* / inferred by opening the body.
|
|
1263
|
+
* / ⟨2026-11-03, the pre-gate fixes — spec §7, "child: sign-in — reads yes"⟩ Also the seated sign-in of
|
|
1264
|
+
* / an engram opened through another, as the owner (`AccessControl.requireOwnerOrSignIn`); a first
|
|
1265
|
+
* / engram is unchanged.
|
|
1111
1266
|
*/
|
|
1112
|
-
getEvmSignerAddress: ActorMethod<[],
|
|
1267
|
+
getEvmSignerAddress: ActorMethod<[], Result_55>;
|
|
1113
1268
|
/**
|
|
1114
1269
|
* / PUBLIC: where this chain begins, for the stranger deciding whether to trust it.
|
|
1115
1270
|
* /
|
|
@@ -1122,7 +1277,46 @@ export interface Engram {
|
|
|
1122
1277
|
/**
|
|
1123
1278
|
* / A guardian's own channel status (their URL is their secret — each guardian sees only theirs).
|
|
1124
1279
|
*/
|
|
1125
|
-
getGuardianAlertStatus: ActorMethod<[],
|
|
1280
|
+
getGuardianAlertStatus: ActorMethod<[], Result_73>;
|
|
1281
|
+
/**
|
|
1282
|
+
* / The sealed copy itself — opaque bytes only the sign-in can open. Readable by the sign-in (it
|
|
1283
|
+
* / opens them with the key `getEncryptedKeyBackupKey` derives for it) and by the key file, which
|
|
1284
|
+
* / holds the plaintext already and so learns nothing — it reads them to compare with the copy the kit
|
|
1285
|
+
* / made (the Challenge's C2.11: a copy someone else stored first reads as "not this key", not as
|
|
1286
|
+
* / "sealed"). Refused in a first engram, and `#NotFound` when no copy is held. The copy that waits
|
|
1287
|
+
* / with an ask is never served here: it is inert until accepted.
|
|
1288
|
+
* / A QUERY: the refusal is in the reply, not the denial log (a query's writes are discarded).
|
|
1289
|
+
* / Named callers: the owner kit (`--recover-key`, and its check after sealing), and an owner console
|
|
1290
|
+
* / signed in as the sign-in (the browser's recovery).
|
|
1291
|
+
*/
|
|
1292
|
+
getKeyBackupCiphertext: ActorMethod<[], Result_72>;
|
|
1293
|
+
/**
|
|
1294
|
+
* / Whether this engram holds a sealed copy of its owner's key, for whom, since when, whether it is
|
|
1295
|
+
* / sealed for the sign-in seated now, and whether a copy waits with an ask (`Types.KeyBackupStatus`).
|
|
1296
|
+
* / Readable by the key file and the sign-in (`#ownerOrSignIn`); refused loudly to anyone else
|
|
1297
|
+
* / (ADR-0002). A first engram refuses by name rather than answer "not sealed": it never holds one,
|
|
1298
|
+
* / and an empty answer there would read as a child whose seal failed.
|
|
1299
|
+
* / A QUERY: the refusal is in the reply, not the denial log (a query's writes are discarded).
|
|
1300
|
+
* / Named callers: the owner kit after it opens an engram (it prints whether the copy is stored), and
|
|
1301
|
+
* / an owner console showing an engram opened through another (whether recovery can work).
|
|
1302
|
+
*/
|
|
1303
|
+
getKeyBackupStatus: ActorMethod<[], Result_71>;
|
|
1304
|
+
/**
|
|
1305
|
+
* / BLS verification key under which the owner kit seals the backup (`IbeCiphertext.encrypt` to the
|
|
1306
|
+
* / sign-in's principal) and the opener verifies the derived key. Served on-canister so the kit never
|
|
1307
|
+
* / has to know which master key this network uses (the spec's Q-K3: a wrong guess would seal a copy
|
|
1308
|
+
* / nobody can open). Static per (context, key id, canister) — cacheable.
|
|
1309
|
+
* /
|
|
1310
|
+
* / PUBLIC: intentionally unauthenticated — a vetKD public key reveals nothing secret and cannot
|
|
1311
|
+
* / decrypt anything — the sensitive derivation is getEncryptedKeyBackupKey below, which IS gated
|
|
1312
|
+
* / (the sign-in alone) and returns key material encrypted to the caller's transport key. The same
|
|
1313
|
+
* / reasoning as getMemoryKeyVerificationKey, for the backup's own context.
|
|
1314
|
+
* / ⟨L7⟩ UPDATE, NOT QUERY, and this is the system call that forces it: the body awaits
|
|
1315
|
+
* / `VetKeys.ManagementCanister.vetKdPublicKey`. A query cannot await.
|
|
1316
|
+
* / Named callers: the owner kit, when it seals the copy at birth or for an ask; an owner console,
|
|
1317
|
+
* / to verify the derived key during recovery.
|
|
1318
|
+
*/
|
|
1319
|
+
getKeyBackupVerificationKey: ActorMethod<[], Uint8Array | number[]>;
|
|
1126
1320
|
/**
|
|
1127
1321
|
* / The market this engram will accept signing requests from — `null` until the registry pushes
|
|
1128
1322
|
* / one at spawn, which is why `requireMarket` refuses fleet-wide today.
|
|
@@ -1155,7 +1349,7 @@ export interface Engram {
|
|
|
1155
1349
|
* / never renumbered: the next page starts at the last version returned plus one. Defaults
|
|
1156
1350
|
* / return the whole history of any file a pre-FD engram could have held.
|
|
1157
1351
|
*/
|
|
1158
|
-
getMemoryHistory: ActorMethod<[string, [] | [bigint], [] | [bigint]],
|
|
1352
|
+
getMemoryHistory: ActorMethod<[string, [] | [bigint], [] | [bigint]], Result_70>;
|
|
1159
1353
|
/**
|
|
1160
1354
|
* / PUBLIC: the epoch alone, and deliberately nothing else (rotation study D4). A `rotatedAt[]`
|
|
1161
1355
|
* / history would be a public, fleet-enumerable feed of when each owner terminated a trust
|
|
@@ -1204,7 +1398,7 @@ export interface Engram {
|
|
|
1204
1398
|
* / forever" — a claim about what this engram will DESTROY — and an empty guard list reads as
|
|
1205
1399
|
* / "nothing is held back".
|
|
1206
1400
|
*/
|
|
1207
|
-
getMemoryRetentionPolicy: ActorMethod<[],
|
|
1401
|
+
getMemoryRetentionPolicy: ActorMethod<[], Result_69>;
|
|
1208
1402
|
/**
|
|
1209
1403
|
* / The metrics reader this engram answers — `null` until the spawning registry names one.
|
|
1210
1404
|
* /
|
|
@@ -1221,7 +1415,7 @@ export interface Engram {
|
|
|
1221
1415
|
* / a fact about the caller, told to the caller. There is nothing to leak by omission — which is
|
|
1222
1416
|
* / the test the #NotFound arm sets.
|
|
1223
1417
|
*/
|
|
1224
|
-
getMyGuardianStatus: ActorMethod<[],
|
|
1418
|
+
getMyGuardianStatus: ActorMethod<[], Result_18>;
|
|
1225
1419
|
/**
|
|
1226
1420
|
* / ⟨0.16.0, NEW⟩ The gated half of the status() split.
|
|
1227
1421
|
* /
|
|
@@ -1233,7 +1427,18 @@ export interface Engram {
|
|
|
1233
1427
|
* / client (rule 4) and bought a masked answer nobody had asked for — the census could not even
|
|
1234
1428
|
* / find a consumer that read the masked `0`. Behind a gate there is nobody to mask it from.
|
|
1235
1429
|
*/
|
|
1236
|
-
getOwnerConsole: ActorMethod<[],
|
|
1430
|
+
getOwnerConsole: ActorMethod<[], Result_68>;
|
|
1431
|
+
/**
|
|
1432
|
+
* / The engram's sign-in, as `Types.OwnerSignInView` describes it: whether this engram was opened
|
|
1433
|
+
* / through another, who its sign-in is, whether the caller is it, and any decline or waiting ask.
|
|
1434
|
+
* / Readable by the owner's key, the sign-in, and the person a waiting ask goes to (they need to see
|
|
1435
|
+
* / the ask to answer it); refused loudly to anyone else (ADR-0002) — never an empty view, which would
|
|
1436
|
+
* / read as "no sign-in". A first engram answers its owner with every field null or false.
|
|
1437
|
+
* / A QUERY: the refusal is in the reply, not the denial log (a query's writes are discarded).
|
|
1438
|
+
* / Named callers: an owner console showing an engram opened through another (who signs in, and a
|
|
1439
|
+
* / waiting ask with Accept and Decline), and the owner kit after it opens one.
|
|
1440
|
+
*/
|
|
1441
|
+
getOwnerSignIn: ActorMethod<[], Result_67>;
|
|
1237
1442
|
/**
|
|
1238
1443
|
* / Owner + agents only (agents need it to avoid writing protected paths).
|
|
1239
1444
|
* /
|
|
@@ -1247,7 +1452,20 @@ export interface Engram {
|
|
|
1247
1452
|
* / writing one — so a fabricated empty here does not merely misinform, it invites the write the
|
|
1248
1453
|
* / list exists to prevent.
|
|
1249
1454
|
*/
|
|
1250
|
-
getProtectedPaths: ActorMethod<[],
|
|
1455
|
+
getProtectedPaths: ActorMethod<[], Result_66>;
|
|
1456
|
+
/**
|
|
1457
|
+
* / What an approval card shows beside a payment to `payTo` (`Types.RecipientHistory`): whether an x402
|
|
1458
|
+
* / signature from this engram has paid it before and since when, whether it is a listed seller and
|
|
1459
|
+
* / counts now, and whether the history is full (then "not paid before" may be one it forgot). Read
|
|
1460
|
+
* / beside the request, because the stored request is never reshaped. For the key file and the sign-in
|
|
1461
|
+
* / (the owner in a first engram); refused loudly to anyone else. A malformed address is `#Invalid`.
|
|
1462
|
+
* / ⟨2026-11-02, the child build's stage 5⟩ Also how many times x402 has paid it and the largest of
|
|
1463
|
+
* / those payments (`timesPaid`, `largestPaidE6`, six-decimal minor units), so a card can say "paid 3
|
|
1464
|
+
* / times, largest $12"; the history forgets the address paid longest ago when full.
|
|
1465
|
+
* / ⟨2026-11-03, the pre-gate fixes⟩ And when it was LAST paid (`lastPaidAtNs`; null when never).
|
|
1466
|
+
* / Named callers: an owner console's approval card for a payment request.
|
|
1467
|
+
*/
|
|
1468
|
+
getRecipientHistory: ActorMethod<[string], Result_65>;
|
|
1251
1469
|
/**
|
|
1252
1470
|
* / Whether the metrics reader's read is answered — `true` from birth.
|
|
1253
1471
|
* /
|
|
@@ -1262,8 +1480,10 @@ export interface Engram {
|
|
|
1262
1480
|
* / ⟨2026-11-01, "6 fix"⟩ Refused by name (`#Unavailable`) while this engram has not read its own
|
|
1263
1481
|
* / freezing setting: there is no floor to serve then, and a 30-day figure would be a made-up one
|
|
1264
1482
|
* / (ADR-0002) — the signers refuse in that state too, so the refusal is the truth on Billing.
|
|
1483
|
+
* / ⟨2026-11-03, the pre-gate fixes — spec §7, "child: sign-in — reads yes"⟩ Also the seated sign-in of
|
|
1484
|
+
* / an engram opened through another, as the owner (`#ownerOrSignIn`); a first engram is unchanged.
|
|
1265
1485
|
*/
|
|
1266
|
-
getSigningFloor: ActorMethod<[],
|
|
1486
|
+
getSigningFloor: ActorMethod<[], Result_64>;
|
|
1267
1487
|
/**
|
|
1268
1488
|
* / The registry that spawned this engram, if it recorded one.
|
|
1269
1489
|
* /
|
|
@@ -1278,13 +1498,19 @@ export interface Engram {
|
|
|
1278
1498
|
* / caller. ⟨2026-09-28, the owner's decision to add the ceiling⟩
|
|
1279
1499
|
* / ⟨CORRECTED 2026-09-29, review finding X-8: "spent" means signed in x402 payments; typed-data
|
|
1280
1500
|
* / and the engram's registration signatures are not counted here — see `setSpendCeiling`.⟩
|
|
1501
|
+
* / ⟨CORRECTED 2026-11-04, the agent-conversion build, beside the note above⟩ …and, since 2026-11, an
|
|
1502
|
+
* / agent's conversion of the engram's balance into compute (`agentConvertBalance`, in a first engram too);
|
|
1503
|
+
* / in an engram opened through another the key file's Convert as well (since 2026-11-02). Both are reserved
|
|
1504
|
+
* / before their first await and given back when nothing left the wallet.
|
|
1281
1505
|
* /
|
|
1282
1506
|
* / OWNER-ONLY, for the reason `getSpendPolicy` is: the limits are the owner's custody
|
|
1283
1507
|
* / configuration, and the engram-wide total would also tell one agent how much the others spent.
|
|
1284
1508
|
* / A refusal names this method (`Gated.gatedResult`) rather than answering null/0 — a ceiling of
|
|
1285
1509
|
* / "none" and a spend of 0 are both real answers, so a fabricated one would be read as fact.
|
|
1510
|
+
* / ⟨2026-11-03, the pre-gate fixes — spec §7, "child: sign-in — reads yes"⟩ Also the seated sign-in of
|
|
1511
|
+
* / an engram opened through another, as the owner (`#ownerOrSignIn`); a first engram is unchanged.
|
|
1286
1512
|
*/
|
|
1287
|
-
getSpendCeiling: ActorMethod<[],
|
|
1513
|
+
getSpendCeiling: ActorMethod<[], Result_63>;
|
|
1288
1514
|
/**
|
|
1289
1515
|
* / Read the caps in force for a caller.
|
|
1290
1516
|
* /
|
|
@@ -1293,9 +1519,18 @@ export interface Engram {
|
|
|
1293
1519
|
* / Here the engram serves no 402s at all: these caps are the owner's private custody
|
|
1294
1520
|
* / configuration, and publishing them would tell any caller exactly how large a signing request
|
|
1295
1521
|
* / can be before it needs an approval nobody is watching for.
|
|
1522
|
+
* /
|
|
1523
|
+
* / ⟨2026-11-03, the pre-gate fixes — spec §7, "child: sign-in — reads yes"⟩ Also the seated sign-in of
|
|
1524
|
+
* / an engram opened through another, as the owner, through the combinator's `#ownerOrSignIn` (a first
|
|
1525
|
+
* / engram is unchanged: the owner only). The inline owner comparison that stood here is gone with it —
|
|
1526
|
+
* / one fewer unnamed caller guard. Its refusal sentence is kept as the reason it never fails soft:
|
|
1527
|
+
* / "Spending caps are the owner's custody configuration. Refusing rather than answering with
|
|
1528
|
+
* / defaults — a default-looking answer would understate the real limits to anyone probing them." The
|
|
1529
|
+
* / refusal itself is now the combinator's (`#Refused getSpendPolicy: …`, `requireOwner`'s words), and
|
|
1530
|
+
* / an engram with no owner yet is refused the same way rather than answered `#Conflict`.
|
|
1296
1531
|
*/
|
|
1297
|
-
getSpendPolicy: ActorMethod<[[] | [Principal]],
|
|
1298
|
-
getStorageStats: ActorMethod<[],
|
|
1532
|
+
getSpendPolicy: ActorMethod<[[] | [Principal]], Result_62>;
|
|
1533
|
+
getStorageStats: ActorMethod<[], Result_61>;
|
|
1299
1534
|
/**
|
|
1300
1535
|
* / Timer arm-state. PUBLIC and deliberately so: these timers are self-arming to save cycles,
|
|
1301
1536
|
* / and an optimisation nobody can verify is an optimisation nobody should trust. Cheap to read,
|
|
@@ -1380,14 +1615,14 @@ export interface Engram {
|
|
|
1380
1615
|
* / UPDATE, marked per L7: it awaits three ICRC-1 ledgers". It was marked in prose and invisible
|
|
1381
1616
|
* / to any gate; the glyph is what `scripts/check-update-for-read.mjs` matches.
|
|
1382
1617
|
*/
|
|
1383
|
-
getWalletBalances: ActorMethod<[],
|
|
1618
|
+
getWalletBalances: ActorMethod<[], Result_60>;
|
|
1384
1619
|
/**
|
|
1385
1620
|
* / Refusal reason preserved, and it is the clearest case of why a masked read is worse than no
|
|
1386
1621
|
* / read: three empty strings with `configured = false` is a VALID-LOOKING answer meaning "this
|
|
1387
1622
|
* / engram has no World ID configuration" — handed to a caller who merely lacks a grant. The
|
|
1388
1623
|
* / fabrication is indistinguishable from the truth by construction.
|
|
1389
1624
|
*/
|
|
1390
|
-
getWorldIdConfig: ActorMethod<[],
|
|
1625
|
+
getWorldIdConfig: ActorMethod<[], Result_59>;
|
|
1391
1626
|
/**
|
|
1392
1627
|
* / ⟨L7⟩ UPDATE, NOT QUERY: this awaits THREE system calls — `raw_rand()` for the nonce,
|
|
1393
1628
|
* / `Call.signWithEcdsa` for the signature, and `worldIdRpPublicKey()` for the derived key. A
|
|
@@ -1398,7 +1633,7 @@ export interface Engram {
|
|
|
1398
1633
|
* / the World Developer Portal. Short-lived (300s TTL, idkit-server's default) and single-purpose —
|
|
1399
1634
|
* / it authorizes opening one verification request, nothing else.
|
|
1400
1635
|
*/
|
|
1401
|
-
getWorldIdRpContext: ActorMethod<[],
|
|
1636
|
+
getWorldIdRpContext: ActorMethod<[], Result_58>;
|
|
1402
1637
|
/**
|
|
1403
1638
|
* / Owner-only: the EVM address derived from the engram's dedicated World ID RP signing key (the
|
|
1404
1639
|
* / "worldid-rp" tECDSA path). Register THIS address as the rp_id's signer in the World Developer
|
|
@@ -1409,8 +1644,11 @@ export interface Engram {
|
|
|
1409
1644
|
* / awaits `worldIdRpPublicKey()` (management `ecdsa_public_key`), and it calls `denied()` on
|
|
1410
1645
|
* / refusal — a state write, which a query cannot perform. So even if the key were cached this
|
|
1411
1646
|
* / could not become a query without silently retiring its denial record (ADR-0002's class).
|
|
1647
|
+
* / ⟨2026-11-03, the pre-gate fixes — spec §7, "child: sign-in — reads yes"⟩ Also the seated sign-in of
|
|
1648
|
+
* / an engram opened through another, as the owner (`AccessControl.requireOwnerOrSignIn`); a first
|
|
1649
|
+
* / engram is unchanged.
|
|
1412
1650
|
*/
|
|
1413
|
-
getWorldIdRpSignerAddress: ActorMethod<[],
|
|
1651
|
+
getWorldIdRpSignerAddress: ActorMethod<[], Result_55>;
|
|
1414
1652
|
/**
|
|
1415
1653
|
* / The verified IDKitResult, verbatim, as World's /api/v4/verify accepted it — the re-checkable
|
|
1416
1654
|
* / artifact behind verifiedHuman. Role-gated because it carries the NULLIFIER.
|
|
@@ -1431,7 +1669,7 @@ export interface Engram {
|
|
|
1431
1669
|
* / canister does not serve. The tombstones below and at `about()` are historical and correct as
|
|
1432
1670
|
* / written; this one was present tense, which is the difference that matters.⟩
|
|
1433
1671
|
*/
|
|
1434
|
-
getWorldIdVerification: ActorMethod<[],
|
|
1672
|
+
getWorldIdVerification: ActorMethod<[], Result_57>;
|
|
1435
1673
|
/**
|
|
1436
1674
|
* / ⟨0.16.0, L1⟩ THE EMERGENCY FAMILY. Every refusal below is `#Refused` or `#NotFound`, and the
|
|
1437
1675
|
* / absence of a `#Conflict` here is the point: these are the calls someone makes while something
|
|
@@ -1514,8 +1752,11 @@ export interface Engram {
|
|
|
1514
1752
|
* /
|
|
1515
1753
|
* / Owner-gated because it reports on custody posture, and answered as a Result so that a
|
|
1516
1754
|
* / wrong-identity caller gets a refusal rather than a bare `false` that reads as "no address yet".
|
|
1755
|
+
* / ⟨2026-11-03, the pre-gate fixes — spec §7, "child: sign-in — reads yes"⟩ Also the seated sign-in of
|
|
1756
|
+
* / an engram opened through another, as the owner (`AccessControl.requireOwnerOrSignIn`); a first
|
|
1757
|
+
* / engram is unchanged.
|
|
1517
1758
|
*/
|
|
1518
|
-
isEvmAddressCached: ActorMethod<[],
|
|
1759
|
+
isEvmAddressCached: ActorMethod<[], Result_56>;
|
|
1519
1760
|
/**
|
|
1520
1761
|
* / Issue an OAuth authorization code. Called by an OAuth client's sign-in bridge
|
|
1521
1762
|
* / (an `/auth/connector`-style route) after II authentication. The client then
|
|
@@ -1524,7 +1765,7 @@ export interface Engram {
|
|
|
1524
1765
|
* /
|
|
1525
1766
|
* / Owner-only: only the engram owner can authorize a Connector install.
|
|
1526
1767
|
*/
|
|
1527
|
-
issueAuthCode: ActorMethod<[string, string, string, [] | [string]],
|
|
1768
|
+
issueAuthCode: ActorMethod<[string, string, string, [] | [string]], Result_55>;
|
|
1528
1769
|
/**
|
|
1529
1770
|
* / ⟨0.16.0⟩ `getCycleSnapshotSource` DELETED — folded into `CycleSnapshot.source`, one label per
|
|
1530
1771
|
* / ROW. A single label for a whole ring misattributes every row recorded under the other source,
|
|
@@ -1540,7 +1781,7 @@ export interface Engram {
|
|
|
1540
1781
|
* / DORMANT engram and corrupts retention math — a fabricated empty here does not just misinform a
|
|
1541
1782
|
* / reader, it feeds a wrong number into a decision about destroying data.
|
|
1542
1783
|
*/
|
|
1543
|
-
listActivitySnapshots: ActorMethod<[bigint, bigint],
|
|
1784
|
+
listActivitySnapshots: ActorMethod<[bigint, bigint], Result_54>;
|
|
1544
1785
|
/**
|
|
1545
1786
|
* / ⟨2026-10-21, round 11 item l — the owner's answer "round 11: a, b, c, d, e, f, g, h, i, j, k, l,
|
|
1546
1787
|
* / m."⟩ OWNER-ONLY: what each agent has spent today, beside the daily limit in force for it, so the
|
|
@@ -1558,8 +1799,10 @@ export interface Engram {
|
|
|
1558
1799
|
* / because the payment path keeps no figure then (`SpendCeiling.AgentSpendRow` says why).
|
|
1559
1800
|
* / WHAT WOULD MAKE THIS WRONG: `x402SignFor` keeping the per-caller total by something other than
|
|
1560
1801
|
* / the calling key, or under another day boundary.
|
|
1802
|
+
* / ⟨2026-11-03, the pre-gate fixes — spec §7, "child: sign-in — reads yes"⟩ Also the seated sign-in of
|
|
1803
|
+
* / an engram opened through another, as the owner (`#ownerOrSignIn`); a first engram is unchanged.
|
|
1561
1804
|
*/
|
|
1562
|
-
listAgentSpendToday: ActorMethod<[bigint, bigint],
|
|
1805
|
+
listAgentSpendToday: ActorMethod<[bigint, bigint], Result_53>;
|
|
1563
1806
|
/**
|
|
1564
1807
|
* / ⟨0.16.0⟩ THE PAGE EXEMPLAR. Trap → `#Refused`, bare array → `Result<Page<T>>` (L1 + L3).
|
|
1565
1808
|
* /
|
|
@@ -1575,8 +1818,10 @@ export interface Engram {
|
|
|
1575
1818
|
* /
|
|
1576
1819
|
* / `withheld` is 0: this roster is owner-only in whole, so there is no partial-visibility case.
|
|
1577
1820
|
* / A method that filters rows by caller sets it — see L1's row-level honesty rule.
|
|
1821
|
+
* / ⟨2026-11-03, the pre-gate fixes — spec §7, "child: sign-in — reads yes"⟩ Also the seated sign-in of
|
|
1822
|
+
* / an engram opened through another, as the owner (`#ownerOrSignIn`); a first engram is unchanged.
|
|
1578
1823
|
*/
|
|
1579
|
-
listAgents: ActorMethod<[bigint, bigint],
|
|
1824
|
+
listAgents: ActorMethod<[bigint, bigint], Result_52>;
|
|
1580
1825
|
/**
|
|
1581
1826
|
* / The GUARDIAN-audience projection of the agent roster — three fields, not the full record.
|
|
1582
1827
|
* /
|
|
@@ -1590,7 +1835,7 @@ export interface Engram {
|
|
|
1590
1835
|
* / guardian consults BEFORE REVOKING ONE. A fabricated empty here does not merely misinform —
|
|
1591
1836
|
* / it tells someone acting under emergency powers that there is nothing to act on.
|
|
1592
1837
|
*/
|
|
1593
|
-
listAgentsForGuardian: ActorMethod<[bigint, bigint],
|
|
1838
|
+
listAgentsForGuardian: ActorMethod<[bigint, bigint], Result_51>;
|
|
1594
1839
|
/**
|
|
1595
1840
|
* / Owner-only: rows carry caller, amount, operation and free-text rationale. The SDK omits it.
|
|
1596
1841
|
* /
|
|
@@ -1604,7 +1849,7 @@ export interface Engram {
|
|
|
1604
1849
|
* /
|
|
1605
1850
|
* / Refusal reason preserved: `[]` reads as "nothing is awaiting the owner's decision".
|
|
1606
1851
|
*/
|
|
1607
|
-
listApprovalRequests: ActorMethod<[[] | [ApprovalStatus], bigint, bigint],
|
|
1852
|
+
listApprovalRequests: ActorMethod<[[] | [ApprovalStatus], bigint, bigint], Result_37>;
|
|
1608
1853
|
/**
|
|
1609
1854
|
* / ⟨0.16.0⟩ `total` IS THE HEAD COUNTER, and on this method that is the entire point.
|
|
1610
1855
|
* /
|
|
@@ -1640,7 +1885,7 @@ export interface Engram {
|
|
|
1640
1885
|
* / at read time; nothing new is stored. WHAT WOULD MAKE THIS WRONG: a sealed row carrying any part
|
|
1641
1886
|
* / of a body, or a stranger reaching `items` (test/record-view.test.mo pins both).
|
|
1642
1887
|
*/
|
|
1643
|
-
listAuditEntries: ActorMethod<[bigint, bigint],
|
|
1888
|
+
listAuditEntries: ActorMethod<[bigint, bigint], Result_50>;
|
|
1644
1889
|
/**
|
|
1645
1890
|
* / ⟨0.16.0, L1 + L3 — census-ruled⟩ THE TWO-MECHANISM EXCEPTION DISSOLVES.
|
|
1646
1891
|
* /
|
|
@@ -1666,7 +1911,7 @@ export interface Engram {
|
|
|
1666
1911
|
* / keeps its optional filter and applies it to the page, so no caller loses the ability to ask
|
|
1667
1912
|
* / "backups of this database" — it stops being a thing the canister has to page around.
|
|
1668
1913
|
*/
|
|
1669
|
-
listBackups: ActorMethod<[bigint, bigint],
|
|
1914
|
+
listBackups: ActorMethod<[bigint, bigint], Result_49>;
|
|
1670
1915
|
/**
|
|
1671
1916
|
* / List all bearer tokens — Active, Revoked, and Expired. Owner uses this in
|
|
1672
1917
|
* / the dashboard to show installed Connectors (claude.ai, Claude Desktop, etc.).
|
|
@@ -1677,8 +1922,10 @@ export interface Engram {
|
|
|
1677
1922
|
* / `bearerTokenStore.list()` already resolves each token's status at read time (a token that
|
|
1678
1923
|
* / merely stopped being used is reported `#Expired`, not a stale `#Active`), so the page carries
|
|
1679
1924
|
* / the same honesty the store gained on 2026-08-17.
|
|
1925
|
+
* / ⟨2026-11-03, the pre-gate fixes — spec §7, "child: sign-in — reads yes"⟩ Also the seated sign-in of
|
|
1926
|
+
* / an engram opened through another, as the owner (`#ownerOrSignIn`); a first engram is unchanged.
|
|
1680
1927
|
*/
|
|
1681
|
-
listBearerTokens: ActorMethod<[bigint, bigint],
|
|
1928
|
+
listBearerTokens: ActorMethod<[bigint, bigint], Result_48>;
|
|
1682
1929
|
/**
|
|
1683
1930
|
* / The condense checkpoints in the retained log at or above `startSeq`, oldest first.
|
|
1684
1931
|
* /
|
|
@@ -1690,7 +1937,7 @@ export interface Engram {
|
|
|
1690
1937
|
* / Owner-only like every other archive surface, and for the same structural reason: these rows
|
|
1691
1938
|
* / carry the chain positions and roots of entries whose paths were inside the hash preimage.
|
|
1692
1939
|
*/
|
|
1693
|
-
listCondenseCheckpoints: ActorMethod<[bigint, bigint],
|
|
1940
|
+
listCondenseCheckpoints: ActorMethod<[bigint, bigint], Result_47>;
|
|
1694
1941
|
/**
|
|
1695
1942
|
* / ⟨0.16.0⟩ `metrics()` DELETED — absorbed by `about()`.
|
|
1696
1943
|
* /
|
|
@@ -1699,13 +1946,13 @@ export interface Engram {
|
|
|
1699
1946
|
* / both and know which one owned each field. Every field here survives on `about()`, day-flooring
|
|
1700
1947
|
* / included.
|
|
1701
1948
|
*/
|
|
1702
|
-
listCycleSnapshots: ActorMethod<[bigint, bigint],
|
|
1949
|
+
listCycleSnapshots: ActorMethod<[bigint, bigint], Result_46>;
|
|
1703
1950
|
/**
|
|
1704
1951
|
* / Same `withheld` treatment as listMemoryFiles — the tombstone listing filtered reserved paths
|
|
1705
1952
|
* / for non-owners just as silently, and a caller could not tell a filtered tombstone list from a
|
|
1706
1953
|
* / complete one. Counted before slicing, so policy-hidden rows never blur into paging.
|
|
1707
1954
|
*/
|
|
1708
|
-
listDeletedMemoryFiles: ActorMethod<[bigint, bigint],
|
|
1955
|
+
listDeletedMemoryFiles: ActorMethod<[bigint, bigint], Result_45>;
|
|
1709
1956
|
/**
|
|
1710
1957
|
* / Stays on the engram under B1 (hybrid): withdrawal custody does not leave.
|
|
1711
1958
|
* /
|
|
@@ -1721,7 +1968,7 @@ export interface Engram {
|
|
|
1721
1968
|
* / The item's field is `value`, not `address`: a list may hold a venue value that is no address.
|
|
1722
1969
|
* / Readable by the owner, an active agent or an active guardian, as the old list was.
|
|
1723
1970
|
*/
|
|
1724
|
-
listEip712Destinations: ActorMethod<[Uint8Array | number[], bigint, bigint],
|
|
1971
|
+
listEip712Destinations: ActorMethod<[Uint8Array | number[], bigint, bigint], Result_44>;
|
|
1725
1972
|
/**
|
|
1726
1973
|
* / The registered shapes — E3: encodeTypeString is the display artifact, verbatim.
|
|
1727
1974
|
* / Stays on the engram under B1 (hybrid): EIP-712 signing is custody, and custody does not leave.
|
|
@@ -1734,7 +1981,7 @@ export interface Engram {
|
|
|
1734
1981
|
* / from `eip712FieldRules` — they are part of what the type authorises, so a reader of the list must
|
|
1735
1982
|
* / not have to make a second call to learn them. The row type is `Eip712TypeView`.
|
|
1736
1983
|
*/
|
|
1737
|
-
listEip712Types: ActorMethod<[bigint, bigint],
|
|
1984
|
+
listEip712Types: ActorMethod<[bigint, bigint], Result_43>;
|
|
1738
1985
|
/**
|
|
1739
1986
|
* / ⟨2026-10-21, round 11 c⟩ Guardians' disputes, oldest first. Same visibility as
|
|
1740
1987
|
* / `listRepudiations` and `listRecordNotes`: the owner and ACTIVE guardians read the rows; an
|
|
@@ -1742,7 +1989,7 @@ export interface Engram {
|
|
|
1742
1989
|
* / guardian's entry, not the agent's); a stranger, a pending guardian and the anonymous caller are
|
|
1743
1990
|
* / refused.
|
|
1744
1991
|
*/
|
|
1745
|
-
listGuardianDisputes: ActorMethod<[bigint, bigint],
|
|
1992
|
+
listGuardianDisputes: ActorMethod<[bigint, bigint], Result_42>;
|
|
1746
1993
|
/**
|
|
1747
1994
|
* / Accessible by owner and guardians.
|
|
1748
1995
|
* /
|
|
@@ -1751,7 +1998,7 @@ export interface Engram {
|
|
|
1751
1998
|
* / pause writes" — a claim about who can STOP it. A caller who cannot tell that from "you may not
|
|
1752
1999
|
* / see the roster" has been told the engram is unguarded when it may be fully guarded.
|
|
1753
2000
|
*/
|
|
1754
|
-
listGuardians: ActorMethod<[bigint, bigint],
|
|
2001
|
+
listGuardians: ActorMethod<[bigint, bigint], Result_41>;
|
|
1755
2002
|
/**
|
|
1756
2003
|
* / The export receipts in the retained log at or above `startSeq`, oldest first.
|
|
1757
2004
|
* /
|
|
@@ -1769,7 +2016,7 @@ export interface Engram {
|
|
|
1769
2016
|
* / Read `MemoryRouter.ReceiptPage` before reading `page.total` as a receipt count. It is not one;
|
|
1770
2017
|
* / it is the chain's length, and the declaration says why.
|
|
1771
2018
|
*/
|
|
1772
|
-
listMemoryExportReceipts: ActorMethod<[bigint, bigint],
|
|
2019
|
+
listMemoryExportReceipts: ActorMethod<[bigint, bigint], Result_40>;
|
|
1773
2020
|
/**
|
|
1774
2021
|
* / ⟨0.16.0⟩ THE `withheld` EXEMPLAR — L1 names this exact method as the defect it fixes.
|
|
1775
2022
|
* /
|
|
@@ -1796,7 +2043,7 @@ export interface Engram {
|
|
|
1796
2043
|
* / row served, never one per file stored. A WIDENED REPLY: a reader that decodes the row by
|
|
1797
2044
|
* / position rather than by field name breaks — none in this repository does.
|
|
1798
2045
|
*/
|
|
1799
|
-
listMemoryFiles: ActorMethod<[bigint, bigint],
|
|
2046
|
+
listMemoryFiles: ActorMethod<[bigint, bigint], Result_39>;
|
|
1800
2047
|
/**
|
|
1801
2048
|
* / One page of the memory log, seq-ordered, optionally narrowed to one author.
|
|
1802
2049
|
* /
|
|
@@ -1823,7 +2070,7 @@ export interface Engram {
|
|
|
1823
2070
|
* / with the disclosures that make the page verifiable — the hidden-bound defect the census itself
|
|
1824
2071
|
* / names on previewCondense's row.
|
|
1825
2072
|
*/
|
|
1826
|
-
listMemoryLog: ActorMethod<[bigint, bigint, [] | [Principal]],
|
|
2073
|
+
listMemoryLog: ActorMethod<[bigint, bigint, [] | [Principal]], Result_38>;
|
|
1827
2074
|
/**
|
|
1828
2075
|
* / The caller's OWN spend-approval requests. ⟨0.16.0, L1 + L3 — fixed 2026-08-18⟩
|
|
1829
2076
|
* /
|
|
@@ -1842,7 +2089,7 @@ export interface Engram {
|
|
|
1842
2089
|
* / (The unbounded MAP is filed separately — pruning an approval record destroys evidence of what
|
|
1843
2090
|
* / was asked, which is a retention ruling rather than a shape fix.)
|
|
1844
2091
|
*/
|
|
1845
|
-
listMyApprovalRequests: ActorMethod<[bigint, bigint],
|
|
2092
|
+
listMyApprovalRequests: ActorMethod<[bigint, bigint], Result_37>;
|
|
1846
2093
|
/**
|
|
1847
2094
|
* / The payer's own sessions, live ones first. PAYER-SCOPED: a caller sees only their own, which
|
|
1848
2095
|
* / is why this needs no role — a session id is not a secret from the person who paid for it.
|
|
@@ -1853,7 +2100,7 @@ export interface Engram {
|
|
|
1853
2100
|
* / client would break on — the market paged its own pending withdrawals before its cut for the
|
|
1854
2101
|
* / same reason. The order is the order sessions were opened.
|
|
1855
2102
|
*/
|
|
1856
|
-
listMySessions: ActorMethod<[bigint, bigint],
|
|
2103
|
+
listMySessions: ActorMethod<[bigint, bigint], Result_36>;
|
|
1857
2104
|
/**
|
|
1858
2105
|
* /
|
|
1859
2106
|
* / ⟨0.16.0, L3⟩ Paged and enveloped like every other `list*`, and the envelope here is uniformity
|
|
@@ -1868,7 +2115,7 @@ export interface Engram {
|
|
|
1868
2115
|
* / IT recorded, so this chain is what a caller composes with when currency matters — which it
|
|
1869
2116
|
* / cannot do if it needs a role here.
|
|
1870
2117
|
*/
|
|
1871
|
-
listOwnershipTransfers: ActorMethod<[bigint, bigint],
|
|
2118
|
+
listOwnershipTransfers: ActorMethod<[bigint, bigint], Result_35>;
|
|
1872
2119
|
/**
|
|
1873
2120
|
* / ⟨2026-09-29, the platform's question from the build review⟩ OWNER-ONLY: how many payment
|
|
1874
2121
|
* / signatures each agent has obtained today, and the daily limit (200, `PaymentSignCap`). The
|
|
@@ -1885,8 +2132,10 @@ export interface Engram {
|
|
|
1885
2132
|
* / marketplace's one shared count today is in the reply's `marketplace` field, with the limit this
|
|
1886
2133
|
* / engram enforces for it — beside the agents, never a row among them
|
|
1887
2134
|
* / (`PaymentSignCap.marketplaceRow`). Null when no marketplace is set.
|
|
2135
|
+
* / ⟨2026-11-03, the pre-gate fixes — spec §7, "child: sign-in — reads yes"⟩ Also the seated sign-in of
|
|
2136
|
+
* / an engram opened through another, as the owner (`#ownerOrSignIn`); a first engram is unchanged.
|
|
1888
2137
|
*/
|
|
1889
|
-
listPaymentSignatureCounts: ActorMethod<[bigint, bigint],
|
|
2138
|
+
listPaymentSignatureCounts: ActorMethod<[bigint, bigint], Result_34>;
|
|
1890
2139
|
/**
|
|
1891
2140
|
* / Agent records removed by a reset. Each row is a NAMED record with the fields `principal`,
|
|
1892
2141
|
* / `name`, `registeredAt` and `purgedAt` — read them BY NAME, never by position.
|
|
@@ -1927,8 +2176,10 @@ export interface Engram {
|
|
|
1927
2176
|
* / `invite` its enrolment named, and `ended` — why and on what day its engagement ended (its own
|
|
1928
2177
|
* / earlier ending, or the reset) — the facts `resyncAgentEdges` re-sends. The stored rows are
|
|
1929
2178
|
* / served as they are.
|
|
2179
|
+
* / ⟨2026-11-03, the pre-gate fixes — spec §7, "child: sign-in — reads yes"⟩ Also the seated sign-in of
|
|
2180
|
+
* / an engram opened through another, as the owner (`#ownerOrSignIn`); a first engram is unchanged.
|
|
1930
2181
|
*/
|
|
1931
|
-
listPurgedAgents: ActorMethod<[bigint, bigint],
|
|
2182
|
+
listPurgedAgents: ActorMethod<[bigint, bigint], Result_33>;
|
|
1932
2183
|
/**
|
|
1933
2184
|
* / ⟨0.16.0⟩ ONE ACCESSOR, folding `readReadLog` and `getDenialLog` — and the fold only became
|
|
1934
2185
|
* / safe because of a change made earlier in this same leg.
|
|
@@ -1991,7 +2242,7 @@ export interface Engram {
|
|
|
1991
2242
|
* / on the chained record — the same `RecordView` filter, and `withheld` counts what it removed
|
|
1992
2243
|
* / together with what `successFilter` removed. WHAT WOULD MAKE THIS WRONG: see `listAuditEntries`.
|
|
1993
2244
|
*/
|
|
1994
|
-
listReadLog: ActorMethod<[[] | [boolean], bigint, bigint],
|
|
2245
|
+
listReadLog: ActorMethod<[[] | [boolean], bigint, bigint], Result_32>;
|
|
1995
2246
|
/**
|
|
1996
2247
|
* / ⟨2026-10-21, round 11 b⟩ The owner's notes, oldest first. Same visibility as
|
|
1997
2248
|
* / `listRepudiations`, for the same reason: the owner and ACTIVE guardians read the rows; an agent
|
|
@@ -1999,7 +2250,7 @@ export interface Engram {
|
|
|
1999
2250
|
* / gets an empty page whose `withheld` counts the notes in its window — never "there are none". A
|
|
2000
2251
|
* / stranger, a pending guardian and the anonymous caller are refused.
|
|
2001
2252
|
*/
|
|
2002
|
-
listRecordNotes: ActorMethod<[bigint, bigint],
|
|
2253
|
+
listRecordNotes: ActorMethod<[bigint, bigint], Result_31>;
|
|
2003
2254
|
/**
|
|
2004
2255
|
* / Same visibility as listAuditEntries: the owner, this engram's agents, and ACTIVE guardians
|
|
2005
2256
|
* / see disputes. An unauthorized read REFUSES — it does not return an empty list, because an
|
|
@@ -2016,7 +2267,16 @@ export interface Engram {
|
|
|
2016
2267
|
* / WOULD MAKE THIS WRONG: a ruling that an agent may see the disputes of its own writes; this would
|
|
2017
2268
|
* / then have to look up each disputed version's writer, which it does not do today.
|
|
2018
2269
|
*/
|
|
2019
|
-
listRepudiations: ActorMethod<[bigint, bigint],
|
|
2270
|
+
listRepudiations: ActorMethod<[bigint, bigint], Result_30>;
|
|
2271
|
+
/**
|
|
2272
|
+
* / The seller list, a page at a time, as `Types.SellerView` (a raise whose wait is over shown applied;
|
|
2273
|
+
* / `liveNow` — false for every row while an engram opened through another has no sign-in seated; what
|
|
2274
|
+
* / x402 reserved for each today). For the key file and the sign-in in an engram opened
|
|
2275
|
+
* / through another, the owner in a first engram; refused loudly to anyone else — never an empty page,
|
|
2276
|
+
* / which would read as "no sellers". A QUERY: the refusal is in the reply, not the denial log.
|
|
2277
|
+
* / Named callers: an owner console's seller list.
|
|
2278
|
+
*/
|
|
2279
|
+
listSellers: ActorMethod<[bigint, bigint], Result_29>;
|
|
2020
2280
|
/**
|
|
2021
2281
|
* / ⟨2026-10-21, the owner's round-11 answer f⟩ OWNER-ONLY: the sign-ins, each with the name its app
|
|
2022
2282
|
* / registered. The same tokens, in the same order and paged the same way, as `listBearerTokens`,
|
|
@@ -2026,8 +2286,10 @@ export interface Engram {
|
|
|
2026
2286
|
* / apps apart. A NEW method rather than a field on `BearerToken`: that record is stored (M0170)
|
|
2027
2287
|
* / and `listBearerTokens`' reply is shipped (never widened). An agent, a guardian, a stranger and
|
|
2028
2288
|
* / the anonymous caller are refused, by `listBearerTokens`' own gate and for its reason.
|
|
2289
|
+
* / ⟨2026-11-03, the pre-gate fixes — spec §7, "child: sign-in — reads yes"⟩ Also the seated sign-in of
|
|
2290
|
+
* / an engram opened through another, as the owner (`#ownerOrSignIn`); a first engram is unchanged.
|
|
2029
2291
|
*/
|
|
2030
|
-
listSignIns: ActorMethod<[bigint, bigint],
|
|
2292
|
+
listSignIns: ActorMethod<[bigint, bigint], Result_28>;
|
|
2031
2293
|
/**
|
|
2032
2294
|
* / Owner: advance the review cursor — "I have seen everything up to and including uptoAuditId"
|
|
2033
2295
|
* / (null = everything at the current head). Bounded so the attestation can never cover entries
|
|
@@ -2039,7 +2301,7 @@ export interface Engram {
|
|
|
2039
2301
|
* / and this never inspects an operation or a role. Widening what the review shows therefore
|
|
2040
2302
|
* / changes only which ids the console can pass here — it cannot desynchronise the cursor.
|
|
2041
2303
|
*/
|
|
2042
|
-
markAgentWritesReviewed: ActorMethod<[[] | [bigint]],
|
|
2304
|
+
markAgentWritesReviewed: ActorMethod<[[] | [bigint]], Result_15>;
|
|
2043
2305
|
/**
|
|
2044
2306
|
* / ⟨2026-10-21, the owner's round-11 answer g⟩ AN AGENT READS ITS OWN GRANT — to the calling key
|
|
2045
2307
|
* / only (`People.AgentGrant`): what it may read, where it may write, its rate, and the payment
|
|
@@ -2059,7 +2321,7 @@ export interface Engram {
|
|
|
2059
2321
|
* / ⟨2026-10-29, review F2⟩ And which whole-key refusal stops every payment now, if one does
|
|
2060
2322
|
* / (`paymentsStoppedBy`: the brake, the signing floor, the daily count of payment signatures).
|
|
2061
2323
|
*/
|
|
2062
|
-
myGrant: ActorMethod<[],
|
|
2324
|
+
myGrant: ActorMethod<[], Result_27>;
|
|
2063
2325
|
/**
|
|
2064
2326
|
* / The AGENT's current key nominates the key that will replace it. Nothing moves yet: the new
|
|
2065
2327
|
* / key must accept, by its own call, within 24 hours (`acceptAgentKeyNomination`). One pending
|
|
@@ -2070,7 +2332,7 @@ export interface Engram {
|
|
|
2070
2332
|
nominateAgentKey: ActorMethod<[Principal], Result_2>;
|
|
2071
2333
|
/**
|
|
2072
2334
|
* / An AGENT paired here asks this engram to open an engram of its own. This engram attaches 1.3 T of
|
|
2073
|
-
* / its own cycles to the registry's `
|
|
2335
|
+
* / its own cycles to the registry's `sysOpenChild`; the agent's lasting key owns what is opened, and
|
|
2074
2336
|
* / the engram is recorded as opened through this one. Answers the new engram's canister id.
|
|
2075
2337
|
* /
|
|
2076
2338
|
* / APPROVING IS GIVING: the owner allowed this with `setChildAllowance`, and what is attached is the
|
|
@@ -2097,9 +2359,30 @@ export interface Engram {
|
|
|
2097
2359
|
* /
|
|
2098
2360
|
* / WHAT WOULD MAKE THIS WRONG: an await added between `ChildAllowance.take` and the registry call; the
|
|
2099
2361
|
* / registry's `CHILD_MIN_ATTACHED_CYCLES` moving without `CHILD_ATTACH_CYCLES`.
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2362
|
+
* /
|
|
2363
|
+
* / ⟨2026-11-02, the owner's ruling "1-4 all as you recommended" (the child build's stage 2)⟩ THE
|
|
2364
|
+
* / SIGN-IN. `signIn` names the opened engram's sign-in — the person running the agent, on a second
|
|
2365
|
+
* / credential; null opens it with none, and it then keeps small limits for life. It goes to the
|
|
2366
|
+
* / registry's door and from there into the opened engram's init record, so that engram never runs a
|
|
2367
|
+
* / message without it. Refused here first, with no await and before the allowance is taken, by the
|
|
2368
|
+
* / door's own three rules (`OwnerSignIn.candidateRefusal`): the agent's lasting key itself, the
|
|
2369
|
+
* / anonymous principal, a canister — so the agent sees the refusal before any cycles move. The
|
|
2370
|
+
* / record entry says `signIn=set` or `signIn=none`, never the principal.
|
|
2371
|
+
* / ⟨2026-11-02, the stage-2 review M3, beside the above⟩ And a fourth, the door's own: the key this
|
|
2372
|
+
* / call is signed by — the agent's session key — is refused as the sign-in too
|
|
2373
|
+
* / (`OwnerSignIn.agentKeyRefusal`), at the same place.
|
|
2374
|
+
* /
|
|
2375
|
+
* / ⟨2026-11-02, the child build's stage 2 — RENAMED from `openChildEngram`, beside the paragraphs
|
|
2376
|
+
* / above, which describe the same door⟩ It was `openChildEngram()`, with no argument. A second
|
|
2377
|
+
* / positional argument would grow its argument tuple, and a shipped tuple is frozen (evolution
|
|
2378
|
+
* / happens inside records), so the door takes ONE record whose later fields are optional, under a
|
|
2379
|
+
* / new name — the shape the registry's own door took the same day (`sysSpawnChild` →
|
|
2380
|
+
* / `sysOpenChild`). An rc.21 kit calling the old name is rejected
|
|
2381
|
+
* / (IC0536) with nothing spent; it can never open an engram without a sign-in by accident.
|
|
2382
|
+
* / Named caller: the owner kit's `open-engram` command, signed by the agent's session key.
|
|
2383
|
+
*/
|
|
2384
|
+
openChild: ActorMethod<[{ signIn: [] | [Principal] }], Result_26>;
|
|
2385
|
+
openSession: ActorMethod<[SessionConfig, PaymentSignature], Result_25>;
|
|
2103
2386
|
/**
|
|
2104
2387
|
* / Withdraw tokens to the owner's principal. This is the ONLY way to
|
|
2105
2388
|
* / move tokens out of the engram to an external address, and the
|
|
@@ -2107,7 +2390,7 @@ export interface Engram {
|
|
|
2107
2390
|
* / NOT freeze-gated: the owner always controls their own funds.
|
|
2108
2391
|
* / Guardian freeze only blocks agent/public operations.
|
|
2109
2392
|
*/
|
|
2110
|
-
ownerWithdraw: ActorMethod<[TokenAmount, [] | [ActionAuth]],
|
|
2393
|
+
ownerWithdraw: ActorMethod<[TokenAmount, [] | [ActionAuth]], Result_15>;
|
|
2111
2394
|
/**
|
|
2112
2395
|
* / ⟨0.16.0⟩ `payRentFromEarnings` DELETED — ruled TWICE (B1 and B2), and it was the single
|
|
2113
2396
|
* / clearest violation of the OSS/platform split in this repo.
|
|
@@ -2164,7 +2447,7 @@ export interface Engram {
|
|
|
2164
2447
|
* / engagement on the agent's track record, and what to do. Before, the reply was `#Ok` with the
|
|
2165
2448
|
* / record alone even when the registry had refused the start, so the agent was never told.
|
|
2166
2449
|
*/
|
|
2167
|
-
pairAgent: ActorMethod<[{ enrolment: Enrolment; code: string }],
|
|
2450
|
+
pairAgent: ActorMethod<[{ enrolment: Enrolment; code: string }], Result_24>;
|
|
2168
2451
|
/**
|
|
2169
2452
|
* / ⟨0.16.0, L2.2 — renamed from `guardianPauseWrites`⟩ Same correction as freezePayments above:
|
|
2170
2453
|
* / owner-or-guardian, and `resumeWrites` never carried the prefix either.
|
|
@@ -2195,7 +2478,7 @@ export interface Engram {
|
|
|
2195
2478
|
* / `unlocked` is the export-receipt gate ONLY. It is not a promise the condense will land: the
|
|
2196
2479
|
* / history-budget delta is checked at commit time and can still refuse a short prefix.
|
|
2197
2480
|
*/
|
|
2198
|
-
previewCondense: ActorMethod<[bigint],
|
|
2481
|
+
previewCondense: ActorMethod<[bigint], Result_23>;
|
|
2199
2482
|
/**
|
|
2200
2483
|
* / A quote for a session this caller has not opened and is not committed to — the intent a
|
|
2201
2484
|
* / buyer signs against. Pure dry run, no state, no funds.
|
|
@@ -2243,8 +2526,10 @@ export interface Engram {
|
|
|
2243
2526
|
* / takes effect change it.
|
|
2244
2527
|
* / HONEST WHEN CUT SHORT: `complete = false` when the planning budget
|
|
2245
2528
|
* / (`MemoryRouter.PREVIEW_MAX_DROPS`) ran out — the totals are then a floor, and say so.
|
|
2529
|
+
* / ⟨2026-11-03, the pre-gate fixes — spec §7, "child: sign-in — reads yes"⟩ Also the seated sign-in of
|
|
2530
|
+
* / an engram opened through another, as the owner (`#ownerOrSignIn`); a first engram is unchanged.
|
|
2246
2531
|
*/
|
|
2247
|
-
previewRetention: ActorMethod<[Array<[string, RetentionClassSpec]>],
|
|
2532
|
+
previewRetention: ActorMethod<[Array<[string, RetentionClassSpec]>], Result_22>;
|
|
2248
2533
|
/**
|
|
2249
2534
|
* / Read one memory file at its current version.
|
|
2250
2535
|
* /
|
|
@@ -2261,7 +2546,7 @@ export interface Engram {
|
|
|
2261
2546
|
* / (`sessionReadContext` and the MCP reads). A caller measuring engram usage from this method
|
|
2262
2547
|
* / will measure nothing.
|
|
2263
2548
|
*/
|
|
2264
|
-
readMemory: ActorMethod<[string],
|
|
2549
|
+
readMemory: ActorMethod<[string], Result_13>;
|
|
2265
2550
|
/**
|
|
2266
2551
|
* / Read many paths in one call. Per-path Results are KEPT — partial success is the point, and
|
|
2267
2552
|
* / one unreadable path must not fail the other nine.
|
|
@@ -2279,7 +2564,7 @@ export interface Engram {
|
|
|
2279
2564
|
* / path, each with its own Result — a refused RESERVED path sits beside a readable one, which is
|
|
2280
2565
|
* / a genuine per-path fact.
|
|
2281
2566
|
*/
|
|
2282
|
-
readMemoryBatch: ActorMethod<[Array<string>],
|
|
2567
|
+
readMemoryBatch: ActorMethod<[Array<string>], Result_21>;
|
|
2283
2568
|
/**
|
|
2284
2569
|
* / ⟨0.16.0⟩ `getMemoryRetentionGuards` DELETED — folded into `getMemoryRetentionPolicy` above.
|
|
2285
2570
|
* / It was the second L2.1 array-returning `get*`, and separating it from the policy it modifies
|
|
@@ -2291,7 +2576,7 @@ export interface Engram {
|
|
|
2291
2576
|
* / see it cannot know whether it has the whole range, which is how silent truncation gets
|
|
2292
2577
|
* / reintroduced. Loop while `more` is true, advancing by the bytes actually returned.
|
|
2293
2578
|
*/
|
|
2294
|
-
readMemoryBytes: ActorMethod<[string, bigint, bigint, [] | [bigint]],
|
|
2579
|
+
readMemoryBytes: ActorMethod<[string, bigint, bigint, [] | [bigint]], Result_20>;
|
|
2295
2580
|
/**
|
|
2296
2581
|
* / The escrow exit for a session whose settle cannot pay.
|
|
2297
2582
|
* /
|
|
@@ -2356,7 +2641,7 @@ export interface Engram {
|
|
|
2356
2641
|
* / the amount can be read back — a session closed in the same moment as the recovery and cleaned up
|
|
2357
2642
|
* / during its transfer — it answers `#Other` naming the block, never a guessed amount.
|
|
2358
2643
|
*/
|
|
2359
|
-
recoverEscrow: ActorMethod<[string, bigint],
|
|
2644
|
+
recoverEscrow: ActorMethod<[string, bigint], Result_19>;
|
|
2360
2645
|
/**
|
|
2361
2646
|
* / ⟨0.16.0, L1⟩ A REDEMPTION PATH, where the arm choice is a disclosure decision.
|
|
2362
2647
|
* /
|
|
@@ -2372,7 +2657,7 @@ export interface Engram {
|
|
|
2372
2657
|
* / owner's invite gave them and that they cannot act until approved; before, that took a second
|
|
2373
2658
|
* / read they had no reason to know to make.
|
|
2374
2659
|
*/
|
|
2375
|
-
registerGuardian: ActorMethod<[string],
|
|
2660
|
+
registerGuardian: ActorMethod<[string], Result_18>;
|
|
2376
2661
|
/**
|
|
2377
2662
|
* / Remove a per-caller override so that caller reverts to — and keeps TRACKING — the global caps.
|
|
2378
2663
|
* /
|
|
@@ -2411,6 +2696,15 @@ export interface Engram {
|
|
|
2411
2696
|
* / line, so the roster is theirs and its contents are not a secret being withheld from them.
|
|
2412
2697
|
*/
|
|
2413
2698
|
removeGuardian: ActorMethod<[Principal], Result_2>;
|
|
2699
|
+
/**
|
|
2700
|
+
* / Remove a listed seller, at once: from now a payment to it meets the engram-wide ceiling and the
|
|
2701
|
+
* / paying agent's own limits again, and adding it back waits 24 hours. Removing TIGHTENS, so the key
|
|
2702
|
+
* / file may do it as well as the sign-in, and it works while payments are frozen. Its "paid before"
|
|
2703
|
+
* / history is kept (that is about the address, not the row). Unknown address `#NotFound`.
|
|
2704
|
+
* / Named callers: an owner console's seller list, and the owner kit (the key file's way to stop a
|
|
2705
|
+
* / seller).
|
|
2706
|
+
*/
|
|
2707
|
+
removeSeller: ActorMethod<[string], Result_2>;
|
|
2414
2708
|
/**
|
|
2415
2709
|
* / ⟨2026-10-21, the owner's round-11 answer a⟩ OWNER-ONLY: give an agent a new name. A name was
|
|
2416
2710
|
* / fixed at the invite, and two agents both called "agent" is how the 2026-10-20 session started.
|
|
@@ -2429,7 +2723,7 @@ export interface Engram {
|
|
|
2429
2723
|
* / the original audit entry stay exactly where they were; this appends a chained
|
|
2430
2724
|
* / `memory.repudiate` entry and lists the (path, version) so readers can see the dispute.
|
|
2431
2725
|
*/
|
|
2432
|
-
repudiateMemoryWrite: ActorMethod<[string, bigint, string],
|
|
2726
|
+
repudiateMemoryWrite: ActorMethod<[string, bigint, string], Result_15>;
|
|
2433
2727
|
/**
|
|
2434
2728
|
* / ⚠ OWNER-ONLY BULK RESET. Destructive, and wider than its name suggests.
|
|
2435
2729
|
* /
|
|
@@ -2449,6 +2743,10 @@ export interface Engram {
|
|
|
2449
2743
|
* / · ⟨2026-10-02⟩ the seat weeks of every engagement (`agentSeatWeeks`), with the signature count
|
|
2450
2744
|
* / they sit beside, and the owner's switch over the metrics reader's read and the reader it
|
|
2451
2745
|
* / names — a reset severs access, it does not change who may read what was kept.
|
|
2746
|
+
* / · ⟨2026-11-02, the child build — decided "unless you object", recorded at stage 5⟩ the seller
|
|
2747
|
+
* / list and the paid history (`listSellers`, `getRecipientHistory`), as the typed-data
|
|
2748
|
+
* / destinations are kept: a reset severs access, it does not forget which counterparties the
|
|
2749
|
+
* / owner approved or which addresses this engram has paid.
|
|
2452
2750
|
* /
|
|
2453
2751
|
* / ⟨2026-10-02⟩ It tells the spawning registry that it happened (`sysNoteReset`), on every reset.
|
|
2454
2752
|
* /
|
|
@@ -2459,7 +2757,7 @@ export interface Engram {
|
|
|
2459
2757
|
* / long-lived enough for the rent model to apply, the reset entry is not guaranteed to still be
|
|
2460
2758
|
* / there. `agentPurgeLog` is the evidence that does not age out — which is why it exists.
|
|
2461
2759
|
*/
|
|
2462
|
-
resetEngram: ActorMethod<[],
|
|
2760
|
+
resetEngram: ActorMethod<[], Result_17>;
|
|
2463
2761
|
/**
|
|
2464
2762
|
* / ⟨2026-09-28, owner decision: an agent can resign from an engram, and the resignation is
|
|
2465
2763
|
* / recorded⟩ The AGENT ends its own engagement with this engram.
|
|
@@ -2511,7 +2809,7 @@ export interface Engram {
|
|
|
2511
2809
|
* / each such engagement under `cannotBeRecorded` (key, root, invite, and how and when it ended),
|
|
2512
2810
|
* / apart from `notRecorded`, so the owner sees them rather than silence.
|
|
2513
2811
|
*/
|
|
2514
|
-
resyncAgentEdges: ActorMethod<[],
|
|
2812
|
+
resyncAgentEdges: ActorMethod<[], Result_16>;
|
|
2515
2813
|
/**
|
|
2516
2814
|
* / Return to managed custody: the engram adds the registry back as a controller ALONGSIDE the
|
|
2517
2815
|
* / owner — it does not remove the owner. The inverse of `claimSovereignty`, and the reason
|
|
@@ -2573,7 +2871,7 @@ export interface Engram {
|
|
|
2573
2871
|
* / that fails leaves the agents revoked here regardless — a partial notify is not a partial
|
|
2574
2872
|
* / revocation, which is the direction that matters for a panic button.
|
|
2575
2873
|
*/
|
|
2576
|
-
revokeAllAgents: ActorMethod<[],
|
|
2874
|
+
revokeAllAgents: ActorMethod<[], Result_15>;
|
|
2577
2875
|
/**
|
|
2578
2876
|
* / Owner-only panic button: revoke every connector bearer token at once. Returns how many.
|
|
2579
2877
|
* /
|
|
@@ -2584,7 +2882,7 @@ export interface Engram {
|
|
|
2584
2882
|
* /
|
|
2585
2883
|
* / Tokens are re-issuable: revoking them is not permanent the way revoking an agent is.
|
|
2586
2884
|
*/
|
|
2587
|
-
revokeAllBearerTokens: ActorMethod<[],
|
|
2885
|
+
revokeAllBearerTokens: ActorMethod<[], Result_15>;
|
|
2588
2886
|
/**
|
|
2589
2887
|
* / ⟨0.16.0⟩ `removeAllGuardians` DELETED — test-only (L6), and verified NOT part of KILL-SWITCH's
|
|
2590
2888
|
* / mass-revoke set. The destructive phase-07 suite iterates `removeGuardian` instead, so nothing
|
|
@@ -2598,7 +2896,7 @@ export interface Engram {
|
|
|
2598
2896
|
* / Unlike revoking an agent, this costs nothing permanently — an invite is a one-time code,
|
|
2599
2897
|
* / so voiding it and minting a fresh one is the ordinary path.
|
|
2600
2898
|
*/
|
|
2601
|
-
revokeAllInvites: ActorMethod<[],
|
|
2899
|
+
revokeAllInvites: ActorMethod<[], Result_15>;
|
|
2602
2900
|
/**
|
|
2603
2901
|
* / Revoke a bearer token by its public tokenId. Idempotent.
|
|
2604
2902
|
* / Subsequent /mcp requests using this token will be rejected.
|
|
@@ -2631,6 +2929,34 @@ export interface Engram {
|
|
|
2631
2929
|
* / agent reading `#Refused` would go looking for a permission that was never missing.
|
|
2632
2930
|
*/
|
|
2633
2931
|
rotateAgentKeyHash: ActorMethod<[string], Result_2>;
|
|
2932
|
+
/**
|
|
2933
|
+
* / Send money from this engram's wallet to the engram it was opened through — "up", and only up:
|
|
2934
|
+
* / the destination is always the parent engram's own default account, never an address the caller
|
|
2935
|
+
* / names. ANY amount (the owner's ruling "B"); the answer is the ledger's block index.
|
|
2936
|
+
* /
|
|
2937
|
+
* / WHO: the owner's key file or the sign-in, in an engram opened through another (the build's
|
|
2938
|
+
* / resolution L14: both may send — the key file's honest sweep needs it, and the sign-in may sweep
|
|
2939
|
+
* / too); refused to anyone else. In a first engram there is nothing above it, and it refuses with
|
|
2940
|
+
* / `#Conflict`. NOT freeze-gated: up is not out, so a payments freeze does not stop it.
|
|
2941
|
+
* /
|
|
2942
|
+
* / ORDER: the caller, then the parent from this engram's own birth record (`openedFrom`, no await),
|
|
2943
|
+
* / then ONE call to the registry — refused unless the registry shows the parent registered, active
|
|
2944
|
+
* / and not abandoned (`#Refused`; the registry unreachable is `#Unavailable`; nothing sent either
|
|
2945
|
+
* / way) — then ONE ledger transfer, the same per-token ledger as `ownerWithdraw`. Both calls are
|
|
2946
|
+
* / counted (ADR-0025), so near its freezing line this engram may be unable to send the registry
|
|
2947
|
+
* / call at all; it then answers `#Unavailable` and nothing moves.
|
|
2948
|
+
* /
|
|
2949
|
+
* / NO RE-CHECK between the two calls, deliberately: the parent can be abandoned in between, and the
|
|
2950
|
+
* / money then sits in an existing canister whose owner can still withdraw it. Guarding that window
|
|
2951
|
+
* / would need a third call and buys nothing the owner of the parent does not already have.
|
|
2952
|
+
* /
|
|
2953
|
+
* / NOT INCOME. The parent's track record is engagements, standing, seat-weeks and counts of use, and
|
|
2954
|
+
* / signature counts count signatures; nothing reads a ledger balance, and this method calls none of
|
|
2955
|
+
* / those writers (test/child-sign-in-wiring.test.ts rule 13). Written to the record as
|
|
2956
|
+
* / `wallet.sendToParent` (money class), with the amount, the token, the parent and the block.
|
|
2957
|
+
* / Named callers: the owner kit, signed by the key file; an owner console, signed in as the sign-in.
|
|
2958
|
+
*/
|
|
2959
|
+
sendToParent: ActorMethod<[TokenAmount], Result_15>;
|
|
2634
2960
|
/**
|
|
2635
2961
|
* / Append to a memory file against a PAID x402 session voucher — the write half of the paid rail,
|
|
2636
2962
|
* / authorized by the voucher rather than by a role.
|
|
@@ -2677,7 +3003,7 @@ export interface Engram {
|
|
|
2677
3003
|
* / CIPHERTEXT; the key-holding SDK decrypts it. A caller without the key gets bytes it cannot
|
|
2678
3004
|
* / read, not an error.
|
|
2679
3005
|
*/
|
|
2680
|
-
sessionReadContext: ActorMethod<[string],
|
|
3006
|
+
sessionReadContext: ActorMethod<[string], Result_14>;
|
|
2681
3007
|
/**
|
|
2682
3008
|
* / Read one memory file against a PAID x402 session voucher. No role, no invite — the voucher is
|
|
2683
3009
|
* / the authorization, which is what makes this the engram's one rail a stranger can pay to use.
|
|
@@ -2709,7 +3035,7 @@ export interface Engram {
|
|
|
2709
3035
|
* / cent voucher could read `secrets/*`.
|
|
2710
3036
|
* / · Payments are frozen on this engram.
|
|
2711
3037
|
*/
|
|
2712
|
-
sessionReadMemory: ActorMethod<[Voucher, string],
|
|
3038
|
+
sessionReadMemory: ActorMethod<[Voucher, string], Result_13>;
|
|
2713
3039
|
/**
|
|
2714
3040
|
* / Configure action alerts: an https webhook that receives new chained-audit entries matching the
|
|
2715
3041
|
* / enabled event classes (money / approvals / guardian / agentWrites), batched, at most one
|
|
@@ -2763,7 +3089,7 @@ export interface Engram {
|
|
|
2763
3089
|
* / across all of them. "The write is the read" above went stale for a second phone, which never
|
|
2764
3090
|
* / made the write: `getBackupRetention` is the read.
|
|
2765
3091
|
*/
|
|
2766
|
-
setBackupRetention: ActorMethod<[string, bigint],
|
|
3092
|
+
setBackupRetention: ActorMethod<[string, bigint], Result_12>;
|
|
2767
3093
|
/**
|
|
2768
3094
|
* / Override the caps for ONE caller — an agent this owner trusts more, or less, than the rest.
|
|
2769
3095
|
*/
|
|
@@ -2842,6 +3168,18 @@ export interface Engram {
|
|
|
2842
3168
|
* / only cost is a delay on keeping MORE, which destroys nothing.
|
|
2843
3169
|
*/
|
|
2844
3170
|
setMemoryRetentionPolicy: ActorMethod<[Array<[string, RetentionClassSpec]>], Result_2>;
|
|
3171
|
+
/**
|
|
3172
|
+
* / The SIGN-IN changes itself to `next` — "changeable only by itself". Immediate (a delay would need
|
|
3173
|
+
* / a third credential to cut it short). The key file is refused by name: it never names a sign-in,
|
|
3174
|
+
* / or a thief holding a copy would name themselves. A first engram refuses: its owner is its own
|
|
3175
|
+
* / sign-in. `next` must pass the door's rules and not be an agent or a guardian here. When this
|
|
3176
|
+
* / engram holds a sealed copy of the owner's key, `resealedBackup` is that copy re-sealed for `next`
|
|
3177
|
+
* / (the sign-in opens it and re-seals it client-side) and is stored in the same message, so the copy
|
|
3178
|
+
* / never names a sign-in that is not this engram's; with no copy held, none may be passed. Not
|
|
3179
|
+
* / blocked by a freeze: a freeze must not lock the sign-in out of itself.
|
|
3180
|
+
* / Named caller: an owner console, signed in as the sign-in ("change your sign-in").
|
|
3181
|
+
*/
|
|
3182
|
+
setOwnerSignIn: ActorMethod<[Principal, [] | [Uint8Array | number[]]], Result_2>;
|
|
2845
3183
|
/**
|
|
2846
3184
|
* / Owner-only: open or close the monetized read rail. When disabled (the default), sessionReadMemory
|
|
2847
3185
|
* / fails closed for every voucher-bearer — selling the owner's memory is opt-in, not the default.
|
|
@@ -2880,6 +3218,15 @@ export interface Engram {
|
|
|
2880
3218
|
* / when the read was on or off is part of the record. Anyone else is refused by name.
|
|
2881
3219
|
*/
|
|
2882
3220
|
setSeatWeeksReadEnabled: ActorMethod<[boolean], Result_2>;
|
|
3221
|
+
/**
|
|
3222
|
+
* / Change a listed seller's daily cap. A LOWER (or equal) cap applies at once and cancels a raise that
|
|
3223
|
+
* / was waiting; a HIGHER cap waits 24 hours, as a new seller does (the cap in force until then is the
|
|
3224
|
+
* / old one, and a second raise restarts the wait). Answers when the new cap applies. The sign-in only,
|
|
3225
|
+
* / in an engram opened through another; the owner in a first engram. A raise is refused while payments
|
|
3226
|
+
* / are frozen; a lowering is not. Unknown address `#NotFound`; a cap of 0 `#Invalid` (remove instead).
|
|
3227
|
+
* / Named callers: an owner console's seller list, as `addSeller`.
|
|
3228
|
+
*/
|
|
3229
|
+
setSellerCap: ActorMethod<[string, bigint], Result_11>;
|
|
2883
3230
|
/**
|
|
2884
3231
|
* / Set the most this engram may spend per day ACROSS EVERY CALLER — five agents, the owner and the
|
|
2885
3232
|
* / marketplace together. `null` removes the ceiling. ⟨2026-09-28⟩
|
|
@@ -2922,6 +3269,10 @@ export interface Engram {
|
|
|
2922
3269
|
* / The record entry `spend.setCeiling` carries the new AND the previous value, so a widening is
|
|
2923
3270
|
* / distinguishable from a tightening afterwards — the reason `spend.setPolicy` records its limits.
|
|
2924
3271
|
* / Not blocked by a payments freeze, like `setSpendPolicy`: setting a limit moves no money.
|
|
3272
|
+
* / ⟨2026-11-04, the agent-conversion build⟩ What counts against the ceiling: x402 payments, an agent's
|
|
3273
|
+
* / conversion of the engram's balance, and the key file's Convert in an engram opened through another
|
|
3274
|
+
* / (`getSpendCeiling`'s note). Removing the ceiling does NOT free agent conversions: they keep their own
|
|
3275
|
+
* / bound, one in any 24 hours (`agentConvertAtNs`).
|
|
2925
3276
|
*/
|
|
2926
3277
|
setSpendCeiling: ActorMethod<[[] | [bigint]], Result_2>;
|
|
2927
3278
|
/**
|
|
@@ -2983,6 +3334,14 @@ export interface Engram {
|
|
|
2983
3334
|
* / ⟨0.16.0⟩ PERSISTS beside the market's `sysSignEip712` (census row 177, ruled). The owner does
|
|
2984
3335
|
* / not lose the ability to sign because a marketplace gained it, and the two share every control
|
|
2985
3336
|
* / below the caller gate.
|
|
3337
|
+
* /
|
|
3338
|
+
* / ⟨2026-11-02, the owner's ruling "1-4 all as you recommended" (the sign-in "approves trading keys")
|
|
3339
|
+
* / — the child build's stage 5⟩ In an engram opened through another, a type named
|
|
3340
|
+
* / `HyperliquidTransaction:ApproveAgent` (`Eip712Policy.childSignInOnlyToSign`) is signed by the
|
|
3341
|
+
* / sign-in alone: the key file is refused it by name, and the sign-in may sign it (as the owner, on
|
|
3342
|
+
* / the record). Every other type is the key file's to sign, as before. An access check beside the
|
|
3343
|
+
* / owner gate, keyed by the registered NAME, before any of `eip712SignFor`'s eight checks; a first
|
|
3344
|
+
* / engram is untouched (its owner is its own sign-in).
|
|
2986
3345
|
*/
|
|
2987
3346
|
signEip712: ActorMethod<[Uint8Array | number[], Array<[string, Eip712Value]>], Result_5>;
|
|
2988
3347
|
/**
|
|
@@ -3085,6 +3444,17 @@ export interface Engram {
|
|
|
3085
3444
|
* / the same person again.
|
|
3086
3445
|
*/
|
|
3087
3446
|
stepDownAsGuardian: ActorMethod<[], Result_2>;
|
|
3447
|
+
/**
|
|
3448
|
+
* / The key file stores the sealed copy of its own key — once, right after the engram is opened,
|
|
3449
|
+
* / sealed by the owner kit for the sign-in named at birth. Refused in a first engram, when no
|
|
3450
|
+
* / sign-in is seated (nobody could open it), when a copy is already held (set-once: a thief holding
|
|
3451
|
+
* / the same file cannot overwrite the honest copy; a later sign-in's copy arrives through
|
|
3452
|
+
* / `setOwnerSignIn`'s re-seal or `acceptSignIn`), and for an empty or oversized blob
|
|
3453
|
+
* / (`OwnerSignIn.storeRefusal`). The engram stamps whom the copy is for from its own sign-in — the
|
|
3454
|
+
* / caller never names it. Not blocked by a freeze: storing a recovery path loosens nothing.
|
|
3455
|
+
* / Named caller: the owner kit, signed by the agent's lasting key, right after it opens the engram.
|
|
3456
|
+
*/
|
|
3457
|
+
storeKeyBackup: ActorMethod<[Uint8Array | number[]], Result_2>;
|
|
3088
3458
|
/**
|
|
3089
3459
|
* / OWNER force-close, for a session the payer abandoned.
|
|
3090
3460
|
* /
|
|
@@ -3276,6 +3646,51 @@ export interface Engram {
|
|
|
3276
3646
|
],
|
|
3277
3647
|
Result_2
|
|
3278
3648
|
>;
|
|
3649
|
+
/**
|
|
3650
|
+
* / ⟨2026-11-04, the owner's ruling "1 A": a marketplace sale is paid into the selling engram's own
|
|
3651
|
+
* / wallet, and the engram writes each sale to its record⟩ THE MARKET WRITING A SALE TO THIS ENGRAM'S
|
|
3652
|
+
* / RECORD, after it has paid this engram's own account (ckUSDC) or address (another chain). The
|
|
3653
|
+
* / money does not pass through here and nothing here moves any: a ledger account needs no running
|
|
3654
|
+
* / canister, so the sale is paid whatever state this engram is in, and this method only writes the
|
|
3655
|
+
* / line that says so — one `market.sale` row per sale, its details from `SaleNotice.details`.
|
|
3656
|
+
* /
|
|
3657
|
+
* / GATED TO THE CONFIGURED MARKET (`AccessControl.requireMarketSale`), the pointer the spawning
|
|
3658
|
+
* / registry set once (`sysSetMarketId`). Neither the owner nor an agent may write a sale row: a
|
|
3659
|
+
* / receipt an owner could write is a receipt an owner could forge.
|
|
3660
|
+
* /
|
|
3661
|
+
* / IDEMPOTENT ON THE RECEIPT ID. The market retries a notice it could not deliver (this engram out
|
|
3662
|
+
* / of compute, upgrading, stopped), and a retry of one that did land must learn it succeeded: a
|
|
3663
|
+
* / repeat answers `#Ok` and writes nothing — no row, no denial row (`sysNotifyWalletActivity`'s
|
|
3664
|
+
* / contract). The receipt ids live in `saleReceiptsStable`.
|
|
3665
|
+
* /
|
|
3666
|
+
* / IT AWAITS NOTHING, deliberately, and test/market-route-wiring.test.ts rule E3 holds that: no
|
|
3667
|
+
* / outgoing call means nothing to count under wiring rule 20, and NO WAKE DOOR — a sale brings
|
|
3668
|
+
* / dollars, not compute, so a paused engram's wake would find no room on every engram that is
|
|
3669
|
+
* / actually paused (the design's question 3, defaulted "wakes nothing unless the owner objects").
|
|
3670
|
+
* /
|
|
3671
|
+
* / NOT GATED ON a guardian's payment freeze (that stops this engram's own signing — money out;
|
|
3672
|
+
* / `sysRecordFeeEvent` is not freeze-gated either), on `pauseWrites` (memory writes), or on the
|
|
3673
|
+
* / owner's custody state. A receipt an owner could block is a receipt an owner could hide.
|
|
3674
|
+
* /
|
|
3675
|
+
* / It also stamps `walletActivatedAt` ("market-sale"): money landing in this engram's account IS
|
|
3676
|
+
* / the wallet-bearing event, and it covers services, which the market's listing notice never did.
|
|
3677
|
+
* / The listing notice (`sysNotifyWalletActivity`) stays, as ruled 2026-08-20; whether to retire it
|
|
3678
|
+
* / is the owner's question.
|
|
3679
|
+
* /
|
|
3680
|
+
* / ⟨2026-11-04, the owner's ruling "A", beside the gate paragraph above⟩ NO MARKET SET YET IS "NOT
|
|
3681
|
+
* / YET", NOT A REFUSAL. With `marketId` null the gate's refusal is answered `#Unavailable`, and the
|
|
3682
|
+
* / market PARKS the notice (it drops a sale's line on any other `#Err` at once — the defect this
|
|
3683
|
+
* / closes: the money landed and the line was lost for good). `marketId` is not final: the registry
|
|
3684
|
+
* / sets it later (`sysSetMarketId`), and then `retrySaleNotices` or the seller's next
|
|
3685
|
+
* / `registerSeller` writes the line; the market's 30-day age cap ends the wait. That arm writes NO
|
|
3686
|
+
* / `sysRecordSale.denied` row: nothing was denied, and `retrySaleNotices` is open to any caller, so a
|
|
3687
|
+
* / row per press would be spam on the owner's read log. A caller that is not the configured market,
|
|
3688
|
+
* / once one is set, is still `#Refused` with its row, unchanged. WHAT WOULD MAKE THIS WRONG: a
|
|
3689
|
+
* / `marketId` that can be set to null on purpose (a market retired from an engram) — then null would
|
|
3690
|
+
* / mean "never", and parking for 30 days would hold a line nobody can write.
|
|
3691
|
+
* / Witness: test/market-route/sale-route.test.ts S7 and record-row.test.ts R3.
|
|
3692
|
+
*/
|
|
3693
|
+
sysRecordSale: ActorMethod<[SaleNotice], Result_2>;
|
|
3279
3694
|
/**
|
|
3280
3695
|
* / Give back what a paid security update advanced this engram and the install did not use.
|
|
3281
3696
|
* /
|
|
@@ -3386,6 +3801,10 @@ export interface Engram {
|
|
|
3386
3801
|
* /
|
|
3387
3802
|
* / That is what "signatures only" means in code, and it is why this method needs no new authority
|
|
3388
3803
|
* / model: an unregistered typeId is refused for the market exactly as it is for the owner.
|
|
3804
|
+
* /
|
|
3805
|
+
* / ⟨2026-11-02, the child build's stage 5⟩ In an engram opened through another, approving a trading
|
|
3806
|
+
* / key (`HyperliquidTransaction:ApproveAgent`) is refused to the market (`#Refused`): it is signed by
|
|
3807
|
+
* / that engram's sign-in alone, through `signEip712`.
|
|
3389
3808
|
*/
|
|
3390
3809
|
sysSignEip712: ActorMethod<[Uint8Array | number[], Array<[string, Eip712Value]>], Result_5>;
|
|
3391
3810
|
/**
|
|
@@ -3639,6 +4058,13 @@ export interface Ic402Maintenance {
|
|
|
3639
4058
|
rateLimitRemoved: bigint;
|
|
3640
4059
|
lastRunAtNs: bigint;
|
|
3641
4060
|
}
|
|
4061
|
+
export interface KeyBackupStatus {
|
|
4062
|
+
matchesSignIn: boolean;
|
|
4063
|
+
copyWaitsWithAsk: boolean;
|
|
4064
|
+
sealed: boolean;
|
|
4065
|
+
sealedFor: [] | [Principal];
|
|
4066
|
+
sealedAtNs: [] | [bigint];
|
|
4067
|
+
}
|
|
3642
4068
|
export interface KeyNomination {
|
|
3643
4069
|
key: Principal;
|
|
3644
4070
|
atNs: bigint;
|
|
@@ -3646,7 +4072,7 @@ export interface KeyNomination {
|
|
|
3646
4072
|
export interface LogPage {
|
|
3647
4073
|
firstAvailableSeq: bigint;
|
|
3648
4074
|
head: Uint8Array | number[];
|
|
3649
|
-
page:
|
|
4075
|
+
page: Page_10;
|
|
3650
4076
|
}
|
|
3651
4077
|
export interface LogPosition {
|
|
3652
4078
|
reads: bigint;
|
|
@@ -3828,6 +4254,15 @@ export interface OwnerRow {
|
|
|
3828
4254
|
produced: bigint;
|
|
3829
4255
|
firstPaymentDay: [] | [bigint];
|
|
3830
4256
|
}
|
|
4257
|
+
export interface OwnerSignInView {
|
|
4258
|
+
askedAtNs: [] | [bigint];
|
|
4259
|
+
openedFrom: [] | [Principal];
|
|
4260
|
+
declinedAtNs: [] | [bigint];
|
|
4261
|
+
callerIsSignIn: boolean;
|
|
4262
|
+
declinedBy: [] | [Principal];
|
|
4263
|
+
callerIsAsked: boolean;
|
|
4264
|
+
ownerSignIn: [] | [Principal];
|
|
4265
|
+
}
|
|
3831
4266
|
export interface OwnershipTransfer {
|
|
3832
4267
|
to: Principal;
|
|
3833
4268
|
atNs: bigint;
|
|
@@ -3842,89 +4277,94 @@ export interface Page {
|
|
|
3842
4277
|
export interface Page_1 {
|
|
3843
4278
|
total: bigint;
|
|
3844
4279
|
withheld: bigint;
|
|
3845
|
-
items: Array<
|
|
4280
|
+
items: Array<SellerView>;
|
|
3846
4281
|
}
|
|
3847
4282
|
export interface Page_10 {
|
|
3848
4283
|
total: bigint;
|
|
3849
4284
|
withheld: bigint;
|
|
3850
|
-
items: Array<
|
|
4285
|
+
items: Array<MemoryLogEvent>;
|
|
3851
4286
|
}
|
|
3852
4287
|
export interface Page_11 {
|
|
3853
4288
|
total: bigint;
|
|
3854
4289
|
withheld: bigint;
|
|
3855
|
-
items: Array<
|
|
4290
|
+
items: Array<MemoryFileRow>;
|
|
3856
4291
|
}
|
|
3857
4292
|
export interface Page_12 {
|
|
3858
4293
|
total: bigint;
|
|
3859
4294
|
withheld: bigint;
|
|
3860
|
-
items: Array<
|
|
4295
|
+
items: Array<ExportReceiptRow>;
|
|
3861
4296
|
}
|
|
3862
4297
|
export interface Page_13 {
|
|
3863
4298
|
total: bigint;
|
|
3864
4299
|
withheld: bigint;
|
|
3865
|
-
items: Array<
|
|
4300
|
+
items: Array<GuardianRecord>;
|
|
3866
4301
|
}
|
|
3867
4302
|
export interface Page_14 {
|
|
3868
4303
|
total: bigint;
|
|
3869
4304
|
withheld: bigint;
|
|
3870
|
-
items: Array<
|
|
4305
|
+
items: Array<GuardianDispute>;
|
|
3871
4306
|
}
|
|
3872
4307
|
export interface Page_15 {
|
|
3873
4308
|
total: bigint;
|
|
3874
4309
|
withheld: bigint;
|
|
3875
|
-
items: Array<
|
|
4310
|
+
items: Array<Eip712TypeView>;
|
|
3876
4311
|
}
|
|
3877
4312
|
export interface Page_16 {
|
|
3878
4313
|
total: bigint;
|
|
3879
4314
|
withheld: bigint;
|
|
3880
|
-
items: Array<
|
|
4315
|
+
items: Array<Eip712Destination>;
|
|
3881
4316
|
}
|
|
3882
4317
|
export interface Page_17 {
|
|
3883
4318
|
total: bigint;
|
|
3884
4319
|
withheld: bigint;
|
|
3885
|
-
items: Array<
|
|
4320
|
+
items: Array<string>;
|
|
3886
4321
|
}
|
|
3887
4322
|
export interface Page_18 {
|
|
3888
4323
|
total: bigint;
|
|
3889
4324
|
withheld: bigint;
|
|
3890
|
-
items: Array<
|
|
4325
|
+
items: Array<CycleSnapshot>;
|
|
3891
4326
|
}
|
|
3892
4327
|
export interface Page_19 {
|
|
3893
4328
|
total: bigint;
|
|
3894
4329
|
withheld: bigint;
|
|
3895
|
-
items: Array<
|
|
4330
|
+
items: Array<CondenseCheckpointRow>;
|
|
3896
4331
|
}
|
|
3897
4332
|
export interface Page_2 {
|
|
3898
4333
|
total: bigint;
|
|
3899
4334
|
withheld: bigint;
|
|
3900
|
-
items: Array<
|
|
4335
|
+
items: Array<Repudiation>;
|
|
3901
4336
|
}
|
|
3902
4337
|
export interface Page_20 {
|
|
3903
4338
|
total: bigint;
|
|
3904
4339
|
withheld: bigint;
|
|
3905
|
-
items: Array<
|
|
4340
|
+
items: Array<BearerToken>;
|
|
3906
4341
|
}
|
|
3907
4342
|
export interface Page_21 {
|
|
3908
4343
|
total: bigint;
|
|
3909
4344
|
withheld: bigint;
|
|
3910
|
-
items: Array<
|
|
4345
|
+
items: Array<BackupMetadata>;
|
|
3911
4346
|
}
|
|
3912
4347
|
export interface Page_22 {
|
|
3913
4348
|
total: bigint;
|
|
3914
4349
|
withheld: bigint;
|
|
3915
|
-
items: Array<
|
|
4350
|
+
items: Array<{ status: AgentStatus; principal: Principal; name: string }>;
|
|
3916
4351
|
}
|
|
3917
4352
|
export interface Page_23 {
|
|
3918
4353
|
total: bigint;
|
|
3919
4354
|
withheld: bigint;
|
|
3920
|
-
items: Array<
|
|
4355
|
+
items: Array<AgentRecord>;
|
|
3921
4356
|
}
|
|
3922
4357
|
export interface Page_24 {
|
|
3923
4358
|
total: bigint;
|
|
3924
4359
|
withheld: bigint;
|
|
3925
|
-
items: Array<
|
|
4360
|
+
items: Array<AgentSpendRow>;
|
|
3926
4361
|
}
|
|
3927
4362
|
export interface Page_25 {
|
|
4363
|
+
total: bigint;
|
|
4364
|
+
withheld: bigint;
|
|
4365
|
+
items: Array<ActivitySnapshot>;
|
|
4366
|
+
}
|
|
4367
|
+
export interface Page_26 {
|
|
3928
4368
|
total: bigint;
|
|
3929
4369
|
withheld: bigint;
|
|
3930
4370
|
items: Array<OwnerRow>;
|
|
@@ -3932,37 +4372,37 @@ export interface Page_25 {
|
|
|
3932
4372
|
export interface Page_3 {
|
|
3933
4373
|
total: bigint;
|
|
3934
4374
|
withheld: bigint;
|
|
3935
|
-
items: Array<
|
|
4375
|
+
items: Array<RecordNote>;
|
|
3936
4376
|
}
|
|
3937
4377
|
export interface Page_4 {
|
|
3938
4378
|
total: bigint;
|
|
3939
4379
|
withheld: bigint;
|
|
3940
|
-
items: Array<
|
|
4380
|
+
items: Array<AuditEntry>;
|
|
3941
4381
|
}
|
|
3942
4382
|
export interface Page_5 {
|
|
3943
4383
|
total: bigint;
|
|
3944
4384
|
withheld: bigint;
|
|
3945
|
-
items: Array<
|
|
4385
|
+
items: Array<PurgedAgent>;
|
|
3946
4386
|
}
|
|
3947
4387
|
export interface Page_6 {
|
|
3948
4388
|
total: bigint;
|
|
3949
4389
|
withheld: bigint;
|
|
3950
|
-
items: Array<
|
|
4390
|
+
items: Array<AgentPaymentSignatures>;
|
|
3951
4391
|
}
|
|
3952
4392
|
export interface Page_7 {
|
|
3953
4393
|
total: bigint;
|
|
3954
4394
|
withheld: bigint;
|
|
3955
|
-
items: Array<
|
|
4395
|
+
items: Array<OwnershipTransfer>;
|
|
3956
4396
|
}
|
|
3957
4397
|
export interface Page_8 {
|
|
3958
4398
|
total: bigint;
|
|
3959
4399
|
withheld: bigint;
|
|
3960
|
-
items: Array<
|
|
4400
|
+
items: Array<EngramSessionState>;
|
|
3961
4401
|
}
|
|
3962
4402
|
export interface Page_9 {
|
|
3963
4403
|
total: bigint;
|
|
3964
4404
|
withheld: bigint;
|
|
3965
|
-
items: Array<
|
|
4405
|
+
items: Array<ApprovalRequest>;
|
|
3966
4406
|
}
|
|
3967
4407
|
export interface Pairing {
|
|
3968
4408
|
agent: AgentRecord;
|
|
@@ -3990,7 +4430,7 @@ export interface PaymentSignature {
|
|
|
3990
4430
|
export interface PaymentSignatureCounts {
|
|
3991
4431
|
day: bigint;
|
|
3992
4432
|
marketplace: [] | [MarketplacePaymentSignatures];
|
|
3993
|
-
agents:
|
|
4433
|
+
agents: Page_6;
|
|
3994
4434
|
limit: bigint;
|
|
3995
4435
|
}
|
|
3996
4436
|
export interface PaymentsNow {
|
|
@@ -4025,9 +4465,19 @@ export interface RailHealth {
|
|
|
4025
4465
|
}
|
|
4026
4466
|
export interface ReceiptPage {
|
|
4027
4467
|
firstAvailableSeq: bigint;
|
|
4028
|
-
page:
|
|
4468
|
+
page: Page_12;
|
|
4029
4469
|
scannedThroughSeq: bigint;
|
|
4030
4470
|
}
|
|
4471
|
+
export interface RecipientHistory {
|
|
4472
|
+
historyFull: boolean;
|
|
4473
|
+
firstPaidAtNs: [] | [bigint];
|
|
4474
|
+
timesPaid: bigint;
|
|
4475
|
+
paidBefore: boolean;
|
|
4476
|
+
liveNow: boolean;
|
|
4477
|
+
lastPaidAtNs: [] | [bigint];
|
|
4478
|
+
largestPaidE6: bigint;
|
|
4479
|
+
listedSeller: boolean;
|
|
4480
|
+
}
|
|
4031
4481
|
export interface RecordNote {
|
|
4032
4482
|
about: bigint;
|
|
4033
4483
|
atNs: bigint;
|
|
@@ -4057,86 +4507,91 @@ export interface ResetReport {
|
|
|
4057
4507
|
export type Result = { Ok: WriteReceipt } | { Err: Error };
|
|
4058
4508
|
export type Result_1 = { Ok: TimersWake } | { Err: Error };
|
|
4059
4509
|
export type Result_10 = { Ok: SignedTransaction } | { Err: Error };
|
|
4060
|
-
export type Result_11 = { Ok:
|
|
4061
|
-
export type Result_12 = { Ok:
|
|
4062
|
-
export type Result_13 = { Ok:
|
|
4063
|
-
export type Result_14 = { Ok:
|
|
4064
|
-
export type Result_15 = { Ok:
|
|
4065
|
-
export type Result_16 = { Ok:
|
|
4066
|
-
export type Result_17 = { Ok:
|
|
4067
|
-
export type Result_18 = { Ok:
|
|
4068
|
-
export type Result_19 = { Ok:
|
|
4510
|
+
export type Result_11 = { Ok: { activatesAtNs: bigint } } | { Err: Error };
|
|
4511
|
+
export type Result_12 = { Ok: BackupRetentionReport } | { Err: Error };
|
|
4512
|
+
export type Result_13 = { Ok: MemoryFile } | { Err: Error };
|
|
4513
|
+
export type Result_14 = { Ok: SessionContext } | { Err: Error };
|
|
4514
|
+
export type Result_15 = { Ok: bigint } | { Err: Error };
|
|
4515
|
+
export type Result_16 = { Ok: ResyncReport } | { Err: Error };
|
|
4516
|
+
export type Result_17 = { Ok: ResetReport } | { Err: Error };
|
|
4517
|
+
export type Result_18 = { Ok: GuardianRecord } | { Err: Error };
|
|
4518
|
+
export type Result_19 = { Ok: EngramEscrowRecovery } | { Err: Error };
|
|
4069
4519
|
export type Result_2 = { Ok: null } | { Err: Error };
|
|
4070
|
-
export type Result_20 = { Ok:
|
|
4071
|
-
export type Result_21 = { Ok:
|
|
4072
|
-
export type Result_22 = { Ok:
|
|
4073
|
-
export type Result_23 = { Ok:
|
|
4074
|
-
export type Result_24 = { Ok:
|
|
4075
|
-
export type Result_25 = { Ok:
|
|
4076
|
-
export type Result_26 = { Ok:
|
|
4077
|
-
export type Result_27 = { Ok:
|
|
4078
|
-
export type Result_28 = { Ok:
|
|
4079
|
-
export type Result_29 = { Ok:
|
|
4520
|
+
export type Result_20 = { Ok: MemoryByteChunk } | { Err: Error };
|
|
4521
|
+
export type Result_21 = { Ok: Array<BatchReadItem> } | { Err: Error };
|
|
4522
|
+
export type Result_22 = { Ok: RetentionPreview } | { Err: Error };
|
|
4523
|
+
export type Result_23 = { Ok: CondensePreview } | { Err: Error };
|
|
4524
|
+
export type Result_24 = { Ok: Pairing } | { Err: Error };
|
|
4525
|
+
export type Result_25 = { Ok: EngramSessionState } | { Err: Error };
|
|
4526
|
+
export type Result_26 = { Ok: Principal } | { Err: Error };
|
|
4527
|
+
export type Result_27 = { Ok: AgentGrant } | { Err: Error };
|
|
4528
|
+
export type Result_28 = { Ok: Page } | { Err: Error };
|
|
4529
|
+
export type Result_29 = { Ok: Page_1 } | { Err: Error };
|
|
4080
4530
|
export type Result_3 = { Ok: ControlHandover } | { Err: Error };
|
|
4081
|
-
export type Result_30 = { Ok:
|
|
4082
|
-
export type Result_31 = { Ok:
|
|
4083
|
-
export type Result_32 = { Ok:
|
|
4084
|
-
export type Result_33 = { Ok:
|
|
4085
|
-
export type Result_34 = { Ok:
|
|
4086
|
-
export type Result_35 = { Ok:
|
|
4087
|
-
export type Result_36 = { Ok:
|
|
4088
|
-
export type Result_37 = { Ok:
|
|
4089
|
-
export type Result_38 = { Ok:
|
|
4090
|
-
export type Result_39 = { Ok:
|
|
4531
|
+
export type Result_30 = { Ok: Page_2 } | { Err: Error };
|
|
4532
|
+
export type Result_31 = { Ok: Page_3 } | { Err: Error };
|
|
4533
|
+
export type Result_32 = { Ok: Page_4 } | { Err: Error };
|
|
4534
|
+
export type Result_33 = { Ok: Page_5 } | { Err: Error };
|
|
4535
|
+
export type Result_34 = { Ok: PaymentSignatureCounts } | { Err: Error };
|
|
4536
|
+
export type Result_35 = { Ok: Page_7 } | { Err: Error };
|
|
4537
|
+
export type Result_36 = { Ok: Page_8 } | { Err: Error };
|
|
4538
|
+
export type Result_37 = { Ok: Page_9 } | { Err: Error };
|
|
4539
|
+
export type Result_38 = { Ok: LogPage } | { Err: Error };
|
|
4540
|
+
export type Result_39 = { Ok: Page_11 } | { Err: Error };
|
|
4091
4541
|
export type Result_4 = { Ok: X402SignOutcome } | { Err: Error };
|
|
4092
|
-
export type Result_40 = { Ok:
|
|
4093
|
-
export type Result_41 = { Ok:
|
|
4094
|
-
export type Result_42 = { Ok:
|
|
4095
|
-
export type Result_43 = { Ok:
|
|
4096
|
-
export type Result_44 = { Ok:
|
|
4097
|
-
export type Result_45 = { Ok:
|
|
4098
|
-
export type Result_46 = { Ok:
|
|
4099
|
-
export type Result_47 = { Ok:
|
|
4100
|
-
export type Result_48 = { Ok:
|
|
4542
|
+
export type Result_40 = { Ok: ReceiptPage } | { Err: Error };
|
|
4543
|
+
export type Result_41 = { Ok: Page_13 } | { Err: Error };
|
|
4544
|
+
export type Result_42 = { Ok: Page_14 } | { Err: Error };
|
|
4545
|
+
export type Result_43 = { Ok: Page_15 } | { Err: Error };
|
|
4546
|
+
export type Result_44 = { Ok: Page_16 } | { Err: Error };
|
|
4547
|
+
export type Result_45 = { Ok: Page_17 } | { Err: Error };
|
|
4548
|
+
export type Result_46 = { Ok: Page_18 } | { Err: Error };
|
|
4549
|
+
export type Result_47 = { Ok: CheckpointPage } | { Err: Error };
|
|
4550
|
+
export type Result_48 = { Ok: Page_20 } | { Err: Error };
|
|
4101
4551
|
export type Result_49 = { Ok: Page_21 } | { Err: Error };
|
|
4102
4552
|
export type Result_5 = { Ok: Eip712SignatureOut } | { Err: Error };
|
|
4103
|
-
export type Result_50 = { Ok:
|
|
4104
|
-
export type Result_51 = { Ok:
|
|
4105
|
-
export type Result_52 = { Ok:
|
|
4106
|
-
export type Result_53 = { Ok:
|
|
4107
|
-
export type Result_54 = { Ok:
|
|
4108
|
-
export type Result_55 = { Ok:
|
|
4109
|
-
export type Result_56 = { Ok:
|
|
4110
|
-
export type Result_57 = { Ok:
|
|
4111
|
-
export type Result_58 = { Ok:
|
|
4112
|
-
export type Result_59 = { Ok:
|
|
4553
|
+
export type Result_50 = { Ok: RecordPage } | { Err: Error };
|
|
4554
|
+
export type Result_51 = { Ok: Page_22 } | { Err: Error };
|
|
4555
|
+
export type Result_52 = { Ok: Page_23 } | { Err: Error };
|
|
4556
|
+
export type Result_53 = { Ok: AgentSpendToday } | { Err: Error };
|
|
4557
|
+
export type Result_54 = { Ok: Page_25 } | { Err: Error };
|
|
4558
|
+
export type Result_55 = { Ok: string } | { Err: Error };
|
|
4559
|
+
export type Result_56 = { Ok: boolean } | { Err: Error };
|
|
4560
|
+
export type Result_57 = { Ok: [] | [string] } | { Err: Error };
|
|
4561
|
+
export type Result_58 = { Ok: WorldIdRpContext } | { Err: Error };
|
|
4562
|
+
export type Result_59 = { Ok: WorldIdConfig } | { Err: Error };
|
|
4113
4563
|
export type Result_6 = { Ok: { returned: bigint } } | { Err: Error };
|
|
4114
|
-
export type Result_60 = { Ok:
|
|
4115
|
-
export type Result_61 = { Ok:
|
|
4116
|
-
export type Result_62 = { Ok:
|
|
4117
|
-
export type Result_63 = { Ok:
|
|
4118
|
-
export type Result_64 = { Ok:
|
|
4119
|
-
export type Result_65 = { Ok:
|
|
4120
|
-
export type Result_66 = { Ok:
|
|
4121
|
-
export type Result_67 = { Ok:
|
|
4122
|
-
export type Result_68 = { Ok:
|
|
4123
|
-
export type Result_69 = { Ok:
|
|
4564
|
+
export type Result_60 = { Ok: WalletBalances } | { Err: Error };
|
|
4565
|
+
export type Result_61 = { Ok: StorageReport } | { Err: Error };
|
|
4566
|
+
export type Result_62 = { Ok: SpendingPolicy } | { Err: Error };
|
|
4567
|
+
export type Result_63 = { Ok: SpendCeiling } | { Err: Error };
|
|
4568
|
+
export type Result_64 = { Ok: SigningFloorStatus } | { Err: Error };
|
|
4569
|
+
export type Result_65 = { Ok: RecipientHistory } | { Err: Error };
|
|
4570
|
+
export type Result_66 = { Ok: { paths: Array<string> } } | { Err: Error };
|
|
4571
|
+
export type Result_67 = { Ok: OwnerSignInView } | { Err: Error };
|
|
4572
|
+
export type Result_68 = { Ok: OwnerConsole } | { Err: Error };
|
|
4573
|
+
export type Result_69 = { Ok: MemoryRetentionPolicy } | { Err: Error };
|
|
4124
4574
|
export type Result_7 = { Ok: SignatureCounts } | { Err: Error };
|
|
4125
|
-
export type Result_70 = { Ok:
|
|
4126
|
-
export type Result_71 = { Ok:
|
|
4127
|
-
export type Result_72 = { Ok:
|
|
4128
|
-
export type Result_73 = { Ok:
|
|
4129
|
-
export type Result_74 = { Ok:
|
|
4130
|
-
export type Result_75 = { Ok:
|
|
4131
|
-
export type Result_76 = { Ok:
|
|
4132
|
-
export type Result_77 = { Ok:
|
|
4133
|
-
export type
|
|
4575
|
+
export type Result_70 = { Ok: MemoryHistory } | { Err: Error };
|
|
4576
|
+
export type Result_71 = { Ok: KeyBackupStatus } | { Err: Error };
|
|
4577
|
+
export type Result_72 = { Ok: Uint8Array | number[] } | { Err: Error };
|
|
4578
|
+
export type Result_73 = { Ok: AlertStatus } | { Err: Error };
|
|
4579
|
+
export type Result_74 = { Ok: EvmAddresses } | { Err: Error };
|
|
4580
|
+
export type Result_75 = { Ok: ChildOpening } | { Err: Error };
|
|
4581
|
+
export type Result_76 = { Ok: ChildAllowanceRow } | { Err: Error };
|
|
4582
|
+
export type Result_77 = { Ok: Brakes } | { Err: Error };
|
|
4583
|
+
export type Result_78 = { Ok: Array<BirthRecord> } | { Err: Error };
|
|
4584
|
+
export type Result_79 = { Ok: BackupRetention } | { Err: Error };
|
|
4134
4585
|
export type Result_8 = { Ok: RailHealth } | { Err: Error };
|
|
4135
|
-
export type Result_80 = { Ok:
|
|
4136
|
-
export type Result_81 = { Ok:
|
|
4137
|
-
export type Result_82 = { Ok:
|
|
4138
|
-
export type
|
|
4586
|
+
export type Result_80 = { Ok: BackupMetadata } | { Err: Error };
|
|
4587
|
+
export type Result_81 = { Ok: AgentWriteReview } | { Err: Error };
|
|
4588
|
+
export type Result_82 = { Ok: Page_26 } | { Err: Error };
|
|
4589
|
+
export type Result_84 = { Ok: MemoryRangeExport } | { Err: Error };
|
|
4590
|
+
export type Result_85 = { Ok: CondenseResult } | { Err: Error };
|
|
4591
|
+
export type Result_86 = { Ok: Conversion } | { Err: Error };
|
|
4592
|
+
export type Result_88 = { Ok: Eip712Registration } | { Err: Error };
|
|
4139
4593
|
export type Result_9 = { Ok: Array<Seat> } | { Err: Error };
|
|
4594
|
+
export type Result_90 = { Ok: AgentRecord } | { Err: Error };
|
|
4140
4595
|
export interface ResyncReport {
|
|
4141
4596
|
startsAcknowledged: bigint;
|
|
4142
4597
|
cannotBeRecorded: Array<UnrecordableEngagement>;
|
|
@@ -4186,6 +4641,18 @@ export type Role =
|
|
|
4186
4641
|
| { Agent: null }
|
|
4187
4642
|
| { Other: null }
|
|
4188
4643
|
| { Owner: null };
|
|
4644
|
+
export interface SaleNotice {
|
|
4645
|
+
token: string;
|
|
4646
|
+
txRef: [] | [string];
|
|
4647
|
+
listingId: string;
|
|
4648
|
+
kind: { service: null } | { content: null };
|
|
4649
|
+
jobId: [] | [string];
|
|
4650
|
+
network: string;
|
|
4651
|
+
amountE6: bigint;
|
|
4652
|
+
receiptId: string;
|
|
4653
|
+
buyer: string;
|
|
4654
|
+
settledAtNs: bigint;
|
|
4655
|
+
}
|
|
4189
4656
|
export interface SealedEntry {
|
|
4190
4657
|
id: bigint;
|
|
4191
4658
|
entryHash: Uint8Array | number[];
|
|
@@ -4198,6 +4665,18 @@ export interface Seat {
|
|
|
4198
4665
|
produced: bigint;
|
|
4199
4666
|
firstPaymentDay: [] | [bigint];
|
|
4200
4667
|
}
|
|
4668
|
+
export interface SellerView {
|
|
4669
|
+
spentTodayE6: bigint;
|
|
4670
|
+
isPayout: boolean;
|
|
4671
|
+
perDayCapE6: bigint;
|
|
4672
|
+
addedBy: Principal;
|
|
4673
|
+
activatesAtNs: bigint;
|
|
4674
|
+
addedAtNs: bigint;
|
|
4675
|
+
liveNow: boolean;
|
|
4676
|
+
payTo: string;
|
|
4677
|
+
pendingActivatesAtNs: [] | [bigint];
|
|
4678
|
+
pendingCapE6: [] | [bigint];
|
|
4679
|
+
}
|
|
4201
4680
|
export interface ServiceEntry {
|
|
4202
4681
|
endpoint: string;
|
|
4203
4682
|
name: string;
|