@engramx/idl 0.16.0-rc.9 → 0.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -149,7 +149,7 @@ export interface Page {
149
149
  export interface Page_1 {
150
150
  total: bigint;
151
151
  withheld: bigint;
152
- items: Array<PendingWithdrawal>;
152
+ items: Array<PendingPayout>;
153
153
  }
154
154
  export interface Page_2 {
155
155
  total: bigint;
@@ -215,13 +215,16 @@ export interface PaymentSignature {
215
215
  nonce: Uint8Array | number[];
216
216
  authorization: [] | [Eip3009Authorization];
217
217
  }
218
- export interface PendingWithdrawal {
218
+ export interface PendingPayout {
219
219
  id: bigint;
220
220
  parkedAtNs: bigint;
221
221
  createdAtTimeNs: bigint;
222
- seller: Principal;
223
- amountE6s: bigint;
224
- reason: string;
222
+ memo: Uint8Array | number[];
223
+ amountE6: bigint;
224
+ engramId: Principal;
225
+ receiptId: string;
226
+ lastError: string;
227
+ feeE6: bigint;
225
228
  }
226
229
  export type PricingScheme = { Exact: bigint } | { Upto: bigint } | { Session: null };
227
230
  export interface PurchaseRecord {
@@ -244,15 +247,22 @@ export interface QuotedRequirement {
244
247
  tokenName: [] | [string];
245
248
  amount: bigint;
246
249
  }
247
- export type Result = { Ok: bigint } | { Err: Error };
248
- export type Result_1 = { Ok: null } | { Err: Error };
250
+ export interface RecordPage {
251
+ ringFloor: bigint;
252
+ total: bigint;
253
+ sealed: Array<SealedEntry>;
254
+ items: Array<AuditEntry>;
255
+ hashFirstFrom: bigint;
256
+ }
257
+ export type Result = { Ok: null } | { Err: Error };
258
+ export type Result_1 = { Ok: bigint } | { Err: Error };
249
259
  export type Result_10 = { Ok: Page_7 } | { Err: Error };
250
- export type Result_11 = { Ok: SellerStatus } | { Err: Error };
251
- export type Result_12 = { Ok: RevenueSummary } | { Err: Error };
252
- export type Result_13 = { Ok: JobStatus } | { Err: Error };
253
- export type Result_14 = { Ok: Uint8Array | number[] } | { Err: Error };
254
- export type Result_15 = { Ok: Job } | { Err: Error };
255
- export type Result_16 = { Ok: [] | [string] } | { Err: Error };
260
+ export type Result_11 = { Ok: RecordPage } | { Err: Error };
261
+ export type Result_12 = { Ok: SellerStatus } | { Err: Error };
262
+ export type Result_13 = { Ok: RevenueSummary } | { Err: Error };
263
+ export type Result_14 = { Ok: JobStatus } | { Err: Error };
264
+ export type Result_15 = { Ok: Uint8Array | number[] } | { Err: Error };
265
+ export type Result_16 = { Ok: Job } | { Err: Error };
256
266
  export type Result_17 = { Ok: ContentResponse } | { Err: Error };
257
267
  export type Result_18 = { Ok: ServiceRequestResponse } | { Err: Error };
258
268
  export type Result_19 = { Ok: X402Endpoint } | { Err: Error };
@@ -266,17 +276,16 @@ export type Result_8 = { Ok: Page_4 } | { Err: Error };
266
276
  export type Result_9 = { Ok: Page_5 } | { Err: Error };
267
277
  export interface RevenueSummary {
268
278
  serviceJobsSettled: bigint;
269
- owedToYou: bigint;
270
279
  endpointBreakdown: Array<{
271
280
  revenue: bigint;
272
281
  endpointId: string;
273
282
  name: string;
274
283
  purchases: bigint;
275
284
  }>;
285
+ parkedPayouts: bigint;
276
286
  contentRevenue: bigint;
277
287
  serviceRevenue: bigint;
278
288
  contentPurchases: bigint;
279
- unresolvedWithdrawals: bigint;
280
289
  }
281
290
  export type Role =
282
291
  | { Anonymous: null }
@@ -295,12 +304,21 @@ export interface RoleGrant {
295
304
  role: { Root: null } | { WasmAdmin: null } | { Admin: null } | { Other: string };
296
305
  holder: Principal;
297
306
  }
307
+ export interface SealedEntry {
308
+ id: bigint;
309
+ entryHash: Uint8Array | number[];
310
+ digest: Uint8Array | number[];
311
+ }
298
312
  export interface SellerStatus {
299
313
  expiresAtNs: bigint;
300
314
  verifiedAtNs: bigint;
301
315
  bytesStored: bigint;
316
+ evmPayout: [] | [string];
317
+ parkedPayouts: bigint;
302
318
  engramId: Principal;
303
319
  byteQuota: bigint;
320
+ parkedSaleNotices: bigint;
321
+ evmPayoutError: [] | [string];
304
322
  }
305
323
  export interface ServiceDefinition {
306
324
  id: string;
@@ -396,12 +414,13 @@ export interface X402Endpoint {
396
414
  enabledAtNs: [] | [bigint];
397
415
  }
398
416
  export interface _SERVICE {
399
- addAuditViewer: ActorMethod<[Principal], Result_1>;
417
+ addAuditViewer: ActorMethod<[Principal], Result>;
400
418
  /**
401
419
  * / Push this canister's chain head into the registry's anchor ring — the same thing every engram
402
- * / does with its memory head, and the cashier with its treasury head.
420
+ * / does with its memory head, and the biller with its treasury head.
403
421
  * /
404
- * / L12's argument applies to escrow with full force: a self-attested commerce ledger sitting
422
+ * / The argument for anchoring the treasury's ledger head in the registry applies to escrow with full
423
+ * / force: a self-attested commerce ledger sitting
405
424
  * / beside witnessed ones is the asymmetry an auditor finds first. Every chain in this system is
406
425
  * / witnessed by a party that does not control it, or the phrase means nothing.
407
426
  * /
@@ -413,7 +432,7 @@ export interface _SERVICE {
413
432
  * / caller is the market's admin, a person, so it does not belong to the canister-to-canister
414
433
  * / tier the `sys` prefix names.⟩
415
434
  */
416
- anchorNow: ActorMethod<[], Result_1>;
435
+ anchorNow: ActorMethod<[], Result>;
417
436
  /**
418
437
  * / A seller takes on a pending job. The CALLER must be the seller of the service the job was
419
438
  * / created against — claiming is not open, and there is no assignment step: whoever registered
@@ -427,12 +446,13 @@ export interface _SERVICE {
427
446
  * / · the job is not pending ⟶ properly `#Conflict`
428
447
  * / · **you are not the seller** ⟶ properly `#Refused`
429
448
  * /
430
- * / **Read the MESSAGE, not the arm, on this method only.** That is the opposite of what L1 asks
449
+ * / **Read the MESSAGE, not the arm, on this method only.** That is the opposite of what the 0.16.0
450
+ * / result rule (one Result shape, refusals as values) asks
431
451
  * / everywhere else, and it is stated here rather than left to be discovered: a caller branching
432
452
  * / on the arm will retry a call that can never succeed for it. Recovering the distinction needs
433
453
  * / the LIBRARY to carry arms — matching its prose here would reintroduce exactly the
434
- * / message-branching L1 abolished, and would break silently on an ic402 bump. ⟨Recorded with
435
- * / three costed options in the project's backlog, 2026-08-21. This is the market's whole ic402
454
+ * / message-branching that rule abolished, and would break silently on an ic402 bump. ⟨Three costed
455
+ * / options were recorded for it, 2026-08-21. This is the market's whole ic402
436
456
  * / seam, not one method: 6 call sites collapse a module error into `#Conflict`.⟩
437
457
  * / ⟨2026-10-02 — counted again, and ruled.⟩ ELEVEN sites on this market collapse an ic402 text
438
458
  * / into `#Conflict`, not 6: `setServiceEnabled`, `claimJob`, `submitJobResult`, `confirmJob`,
@@ -441,8 +461,8 @@ export interface _SERVICE {
441
461
  * / refusal of the caller's standing — `claimJob`, `confirmJob`, `disputeJob` and `submitJobResult`;
442
462
  * / `setServiceEnabled`, the fourth noted on 2026-08-21, is now gated by this canister before the
443
463
  * / library is called; the other six are state behind this canister's own gate. Read-the-message
444
- * / is RATIFIED as the 0.16.0 contract (the owner's ruling of 2026-10-02, the pre-cut
445
- * / recommendation); giving the library one arm per kind of refusal is post-cut dependency work,
464
+ * / is RATIFIED as the 0.16.0 contract (the owner's ruling of 2026-10-02, as the review before the
465
+ * / cut recommended); giving the library one arm per kind of refusal is post-cut dependency work,
446
466
  * / not a change made mid-cut.
447
467
  * / ⟨2026-10-07, beside the count above⟩ Twelve: the admin's `retrySellerPayment` (the owner's
448
468
  * / decision of that day) passes the library's settle refusal through as `#Conflict` too — state
@@ -452,9 +472,9 @@ export interface _SERVICE {
452
472
  * / so explicitly ("Not a permission problem and not a missing job"), and `isTradeFrozen()` is the
453
473
  * / ungated read that confirms it.
454
474
  */
455
- claimJob: ActorMethod<[string], Result_1>;
475
+ claimJob: ActorMethod<[string], Result>;
456
476
  /**
457
- * / ⟨0.16.0, L2.6⟩ `confirmJob` ABSORBS `confirmJobEvm`. One buyer action, two ways to prove you
477
+ * / ⟨0.16.0⟩ `confirmJob` ABSORBS `confirmJobEvm`. One buyer action, two ways to prove you
458
478
  * / are the buyer.
459
479
  * /
460
480
  * / The pair existed because authorization arrives differently on the two rails, not because the
@@ -475,9 +495,9 @@ export interface _SERVICE {
475
495
  * / `#Conflict`) and **`Not the buyer`** (properly `#Refused`) all arrive as `#Conflict`. On THIS
476
496
  * / method read the MESSAGE rather than the arm — it is terminal money settlement, so a caller
477
497
  * / who reads `#Conflict` as "retry later" will retry a release that can never happen for them.
478
- * / Same seam as `claimJob`; three costed fixes in the project's backlog ⟨2026-08-21⟩.
498
+ * / Same seam as `claimJob`; three costed fixes were recorded ⟨2026-08-21⟩.
479
499
  */
480
- confirmJob: ActorMethod<[string, [] | [Uint8Array | number[]]], Result_1>;
500
+ confirmJob: ActorMethod<[string, [] | [Uint8Array | number[]]], Result>;
481
501
  /**
482
502
  * / Create a content endpoint — a shelf in the storefront. Born DISABLED.
483
503
  * /
@@ -510,14 +530,14 @@ export interface _SERVICE {
510
530
  * / forever against a ceiling that only ever rose in reality. The quota tracks bytes CLAIMED, not
511
531
  * / bytes currently held, because claimed is the number that costs money.
512
532
  */
513
- deleteContent: ActorMethod<[string], Result_1>;
533
+ deleteContent: ActorMethod<[string], Result>;
514
534
  /**
515
535
  * / Delete an endpoint. Terminal — the record stays as #Deleted so purchase history keeps
516
536
  * / resolving, and the id is never reused.
517
537
  */
518
- deleteEndpoint: ActorMethod<[string], Result_1>;
538
+ deleteEndpoint: ActorMethod<[string], Result>;
519
539
  /**
520
- * / ⟨0.16.0, L2.6⟩ `disputeJob` ABSORBS `disputeJobEvm`, exactly as confirmJob does, and for the
540
+ * / ⟨0.16.0⟩ `disputeJob` ABSORBS `disputeJobEvm`, exactly as confirmJob does, and for the
521
541
  * / same reason: one act, two proofs of buyership.
522
542
  * /
523
543
  * / NOT FREEZE-GATED, and that asymmetry with confirmJob is deliberate. Recording a dispute moves
@@ -528,19 +548,19 @@ export interface _SERVICE {
528
548
  * / ⚠ `#Conflict` HERE ALSO COVERS "NOT THE BUYER" — same ic402 seam as `confirmJob` and
529
549
  * / `claimJob`: `Job not found`, `Job not in submitted status` and **`Not the buyer`** all arrive
530
550
  * / as `#Conflict` because the library hands back strings. Read the MESSAGE, not the arm.
531
- * / ⟨2026-08-21; the project's backlog carries the three fixes and why none is a one-liner.⟩
551
+ * / ⟨2026-08-21; three fixes were recorded, with why none is a one-liner.⟩
532
552
  * /
533
553
  * / ⚠ AND NOTE WHERE THE DISPUTE GOES: `resolveDispute` is answered by the SERVICE'S OWN SELLER
534
554
  * / — the party being disputed. This market has no admin arbitration and no appeal, deliberately
535
555
  * / and on the record. Filing a dispute is not an escalation to a neutral party.
536
556
  */
537
- disputeJob: ActorMethod<[string, string, [] | [Uint8Array | number[]]], Result_1>;
557
+ disputeJob: ActorMethod<[string, string, [] | [Uint8Array | number[]]], Result>;
538
558
  /**
539
559
  * / Closing refunds the unconsumed deposit to the payer, so it is NOT freeze-gated — the same
540
560
  * / reasoning as disputeJob and forceCloseSession. A halt stops money moving toward sellers; it
541
561
  * / must not strand a buyer's own escrow.
542
562
  */
543
- endSession: ActorMethod<[string], Result_1>;
563
+ endSession: ActorMethod<[string], Result>;
544
564
  /**
545
565
  * / Admin recovery: force a stuck session closed and return the unconsumed deposit to its payer.
546
566
  * /
@@ -548,7 +568,7 @@ export interface _SERVICE {
548
568
  * / authority is the market admin, because the session's own parties are precisely who cannot
549
569
  * / unstick it. No discretion: the refund destination is the payer recorded on the session.
550
570
  */
551
- forceCloseSession: ActorMethod<[string], Result_1>;
571
+ forceCloseSession: ActorMethod<[string], Result>;
552
572
  /**
553
573
  * / Admin recovery: mark a stuck session resolved. STATE ONLY — no funds move.
554
574
  * /
@@ -566,8 +586,13 @@ export interface _SERVICE {
566
586
  * / arrives as `#Conflict` rather than `#NotFound`. Read the MESSAGE for which. This is the 0.16.0
567
587
  * / contract as ratified on 2026-10-02; giving the library one arm per kind of refusal is post-cut
568
588
  * / dependency work.
589
+ * /
590
+ * / ⟨2026-11-05, ic402 2.20.0⟩ NOT FOR AN ICP SESSION LEFT `#closing` BY AN UNKNOWN SETTLE (a close that
591
+ * / answered "outcome unknown"): `reconcileSession` resolves that one from the escrow balance. Forcing it
592
+ * / would mark it closed whether or not the settle landed, stranding the recipient's share if it did
593
+ * / not. This method stays for a close that trapped after an await.
569
594
  */
570
- forceResolveSession: ActorMethod<[string], Result_1>;
595
+ forceResolveSession: ActorMethod<[string], Result>;
571
596
  /**
572
597
  * / PUBLIC: accountability requires knowing who holds power. This is the shape every canister
573
598
  * / in the system serves, so one reader covers all of them.
@@ -598,7 +623,7 @@ export interface _SERVICE {
598
623
  * / The `approvalId` parameter is gone, as it is on openSession: an approval is the BUYER's own
599
624
  * / custody policy, checked on their engram before they call here.
600
625
  * /
601
- * / ⟨L7⟩ UPDATE, NOT QUERY: the paid path awaits `gate.settle(sig, ?amount)`, an inter-canister
626
+ * / ⟨update-for-read⟩ UPDATE, NOT QUERY: the paid path awaits `gate.settle(sig, ?amount)`, an inter-canister
602
627
  * / settlement. A query cannot await it, and splitting the free and paid halves into two methods
603
628
  * / would put the price and the content behind different names for one buyer act.
604
629
  * /
@@ -611,7 +636,8 @@ export interface _SERVICE {
611
636
  */
612
637
  getContent: ActorMethod<[string, [] | [PaymentSignature]], Result_17>;
613
638
  /**
614
- * / ⟨0.16.0⟩ THE `getChunk` FIX, and it is the sharpest single case in the corpus.
639
+ * / ⟨0.16.0⟩ THE `getChunk` FIX, and it is the sharpest single case in the August 2026 audit of every
640
+ * / wire method.
615
641
  * /
616
642
  * / The engram's version was:
617
643
  * /
@@ -633,18 +659,10 @@ export interface _SERVICE {
633
659
  * /
634
660
  * / The honesty gates could not see it. `gate.verifyGrant` is a PAYMENT gate, and the gate-call
635
661
  * / list they scan holds authorization helpers only — so a refusal fabricated behind a payment
636
- * / check was out of scope by construction rather than by ruling. L11 adds payment gates to that
637
- * / list; this method is why.
662
+ * / check was out of scope by construction rather than by ruling. The 0.16.0 honesty rule adds
663
+ * / payment gates to that list; this method is why.
638
664
  */
639
- getContentChunk: ActorMethod<[AccessGrant, bigint], Result_14>;
640
- /**
641
- * / A seller's payout address — THEIRS, or the admin's to read.
642
- * /
643
- * / The engram made this owner-only and TRAPPED at everyone else. Here the answer is a refusal a
644
- * / caller can read, and `#Ok(null)` genuinely means "this seller has set no payout address" —
645
- * / distinguishable from "you may not ask", which is the whole point of the envelope.
646
- */
647
- getEvmSellerPayout: ActorMethod<[Principal], Result_16>;
665
+ getContentChunk: ActorMethod<[AccessGrant, bigint], Result_15>;
648
666
  /**
649
667
  * / PUBLIC: what this canister's chains continue, or that they continue nothing. A fresh chain
650
668
  * / beside a published predecessor head is auditable; a fresh chain with no statement is
@@ -652,16 +670,17 @@ export interface _SERVICE {
652
670
  */
653
671
  getGenesisNote: ActorMethod<[], GenesisNote>;
654
672
  /**
655
- * / ⟨0.16.0, L1⟩ The engram TRAPPED here. Trapping was the right fix at the time — it stopped the
673
+ * / ⟨0.16.0, refusals are values, never traps⟩
674
+ * / The engram TRAPPED here. Trapping was the right fix at the time — it stopped the
656
675
  * / refusal masquerading as a not-found — but it hands the caller no structured reason and cannot
657
- * / be told from a genuine fault. Under L1 the refusal is a value.
676
+ * / be told from a genuine fault. Under the 0.16.0 result rule the refusal is a value.
658
677
  * /
659
678
  * / The comment the engram carried is worth keeping because it names what went wrong: `null`
660
679
  * / collapsed "unknown jobId" and "not authorized", and the product rendered the wrong conclusion
661
680
  * / from it — the marketplace UI printed "Job not found (or not yet visible)" at a caller who was
662
681
  * / merely unauthorized. Job existence is not the secret: `getJobCounts()` is ungated.
663
682
  */
664
- getJob: ActorMethod<[string], Result_15>;
683
+ getJob: ActorMethod<[string], Result_16>;
665
684
  /**
666
685
  * / PUBLIC: aggregate counts that identify nobody — and already public on the engram, which is
667
686
  * / what made `listJobs`' existence-leak justification false.
@@ -678,7 +697,7 @@ export interface _SERVICE {
678
697
  * / Three outcomes, three answers now. And `Payer` (above) removes the root cause rather than
679
698
  * / only labelling it.
680
699
  */
681
- getJobResult: ActorMethod<[string], Result_14>;
700
+ getJobResult: ActorMethod<[string], Result_15>;
682
701
  /**
683
702
  * / Terminal money settlement — the seller gets paid. Honours the freeze exactly like every
684
703
  * / other settle path; a settlement that ignored the freeze would make the freeze a suggestion.
@@ -695,7 +714,7 @@ export interface _SERVICE {
695
714
  * / The engram returned `?EngramJobStatus`, conflating "no such job" with a null-ish answer. Here
696
715
  * / a missing job is `#NotFound`, which is a fact rather than an absence a caller has to interpret.
697
716
  */
698
- getJobStatus: ActorMethod<[string], Result_13>;
717
+ getJobStatus: ActorMethod<[string], Result_14>;
699
718
  /**
700
719
  * / PUBLIC: the market's spend limits, with the caller rosters REDACTED.
701
720
  * /
@@ -711,6 +730,11 @@ export interface _SERVICE {
711
730
  */
712
731
  getPaymentPolicy: ActorMethod<[], SpendingPolicy>;
713
732
  /**
733
+ * / A seller's own revenue on this market.
734
+ * /
735
+ * / ⟨0.16.0⟩ SELLER-SCOPED. The engram's version was owner-only and TRAPPED at everyone else,
736
+ * / which was coherent when the owner was the only seller. Here every caller has a different
737
+ * / answer, and no caller is entitled to another's: the numbers cover the caller's own listings
714
738
  * / and nothing is aggregated across sellers.
715
739
  * /
716
740
  * / THE FIGURES ARE COMPUTED, NOT READ FROM THE CANISTER-WIDE COUNTERS. `payments`' scalars are
@@ -722,7 +746,7 @@ export interface _SERVICE {
722
746
  * / "you have sold nothing" — and returning it to a caller who simply has no identity is the
723
747
  * / fabricated-empty defect wearing a number instead of a list.
724
748
  */
725
- getRevenueSummary: ActorMethod<[], Result_12>;
749
+ getRevenueSummary: ActorMethod<[], Result_13>;
726
750
  /**
727
751
  * / PUBLIC: what a buyer can learn about a seller, and the whole of it.
728
752
  * /
@@ -734,8 +758,12 @@ export interface _SERVICE {
734
758
  * /
735
759
  * / `verified` is about ownership at a moment in time and nothing else. It is not an endorsement,
736
760
  * / and the field name is the strongest claim it makes.
761
+ * /
762
+ * / ⟨2026-11-04, the owner's sale-payout ruling⟩ It also says where this seller's sales land
763
+ * / (`evmPayout`, `evmPayoutError`) and how many are still in flight (`parkedPayouts`,
764
+ * / `parkedSaleNotices`) — counts, never amounts (`Types.SellerStatus`).
737
765
  */
738
- getSellerStatus: ActorMethod<[Principal], Result_11>;
766
+ getSellerStatus: ActorMethod<[Principal], Result_12>;
739
767
  /**
740
768
  * / PUBLIC: aggregate session counts. Identifies nobody, and the same reasoning as getJobCounts —
741
769
  * / which is also what made `listJobs`' old "no existence leak" defence false.
@@ -753,7 +781,7 @@ export interface _SERVICE {
753
781
  * / THIS WRONG: an HTTP route that could authenticate its payer, or a flow of ours that approves
754
782
  * / more than one payment's worth or without an expiry.
755
783
  * /
756
- * / ⟨CORRECTED 2026-09-30 — the owner's answer "1 B"⟩ The paragraph above is history. No web route
784
+ * / ⟨CORRECTED 2026-09-30 — the owner's web-route answer⟩ The paragraph above is history. No web route
757
785
  * / settles an ICP-rail payment any more, so none spends an allowance and none can be used against
758
786
  * / a standing one. The one `gate.settle` left is on /service/, reached only with an EVM (`eip155:`)
759
787
  * / payment carrying the buyer's own EIP-3009 authorization — a signature that names the payment and
@@ -822,10 +850,17 @@ export interface _SERVICE {
822
850
  /**
823
851
  * / `total` is the head counter, not the row count: this is a bounded ring, so a page that
824
852
  * / reported only what it returned would make a trimmed log look complete.
853
+ * /
854
+ * / ⟨2026-10-15, the owner's ruling of 2026-10-14 on the chained record⟩ The reply is the shared
855
+ * / `Wire.RecordPage`, so
856
+ * / one checker reads every chain. A viewer sees every entry, so `sealed` is always empty here;
857
+ * / `ringFloor` says where the ring starts and `hashFirstFrom` where this record switched to the
858
+ * / hash-first rule. The gate is unchanged (hash-only rows for strangers were ruled for the
859
+ * / engram's record).
825
860
  */
826
- listAuditEntries: ActorMethod<[bigint, bigint], Result_9>;
861
+ listAuditEntries: ActorMethod<[bigint, bigint], Result_11>;
827
862
  /**
828
- * / Admin AND the enrolled viewers themselves — L8's roster rule. A viewer who cannot see the
863
+ * / Admin AND the enrolled viewers themselves — the roster rule of who may read what. A viewer who cannot see the
829
864
  * / roster cannot tell whether their own enrolment survived a rotation.
830
865
  */
831
866
  listAuditViewers: ActorMethod<[], Result_10>;
@@ -835,7 +870,7 @@ export interface _SERVICE {
835
870
  */
836
871
  listContent: ActorMethod<[bigint, bigint], Page_6>;
837
872
  /**
838
- * / L11 names this canister's reason for having a denial log at all: the commerce surface is where
873
+ * / The 0.16.0 honesty rule names this canister's reason for having a denial log at all: the commerce surface is where
839
874
  * / the fabricated-empty class was born, and a refusal that leaves no trace cannot be counted,
840
875
  * / alerted on, or disproved.
841
876
  */
@@ -862,7 +897,7 @@ export interface _SERVICE {
862
897
  */
863
898
  listEndpoints: ActorMethod<[[] | [EndpointStatus], bigint, bigint], Page_3>;
864
899
  /**
865
- * / ⟨0.16.0⟩ THE `listJobs` FIX — the second of the two fabricated empties L11 names.
900
+ * / ⟨0.16.0⟩ THE `listJobs` FIX — the second of the two fabricated empties the 0.16.0 honesty rule names.
866
901
  * /
867
902
  * / The engram's version ended its authorization check with `if (not (isOwner or
868
903
  * / isServiceOperator)) { return [] }`, and its own `.did` comment declared the behaviour on the
@@ -886,22 +921,18 @@ export interface _SERVICE {
886
921
  */
887
922
  listJobs: ActorMethod<[string, [] | [JobStatus], bigint, bigint], Result_7>;
888
923
  /**
889
- * / The parked withdrawals belonging to this caller, so an unresolved payout is discoverable
890
- * / rather than something a seller has to already know the id of.
891
- * /
892
- * / PAGED, and NOT taken as a bounded exemption, though the temptation was real: a seller parks a
893
- * / withdrawal only when a ledger call rejects, and each withdrawal zeroes their balance — so the
894
- * / list is 0 or 1 in every ordinary history. It is not STRUCTURALLY bounded, which is the test
895
- * / the page-shape rule actually applies: a run of ledger outages across a run of sales
896
- * / accumulates rows with nothing to stop it. A bare array that silently truncated would be
897
- * / indistinguishable from "you have no other unresolved payouts", and this is money.
898
- * /
899
- * / `withheld` is always 0 here. The filter is by owner and a caller cannot own a row they may
900
- * / not see, so nothing is ever hidden from them — unlike `listEndpointPurchases`, where a
901
- * / non-owner's view withholds other buyers' rows. Stated because a reader comparing the two
902
- * / should know the zero is a fact about this surface, not an unimplemented field.
924
+ * / ⟨2026-11-04, the owner's sale-payout ruling⟩ The parked payouts to the caller's engram — a content sale
925
+ * / whose push the ledger has not confirmed, each settled by `retrySalePayout` — so an unresolved
926
+ * / payout is discoverable rather than something a seller must already know the id of.
927
+ * /
928
+ * / Behind the seller's CURRENT registration (`requireSellerRead`, the query twin of `requireSeller`),
929
+ * / and scoped to that registration's engram by `Payments.parkedFor` — not an inline filter, for the
930
+ * / reason that helper gives. `withheld` is 0 truthfully: the rows it drops belong to OTHER engrams
931
+ * / and were never this caller's to see; a global count would tell a seller how many other sellers
932
+ * / have a parked payout. PAGED, not a bounded exemption: a run of ledger outages across a run of
933
+ * / sales accumulates rows with nothing to stop it.
903
934
  */
904
- listMyPendingWithdrawals: ActorMethod<[bigint, bigint], Result_6>;
935
+ listMyParkedPayouts: ActorMethod<[bigint, bigint], Result_6>;
905
936
  /**
906
937
  * / ⟨0.16.0⟩ `listAllServices` FOLDS in as `includeDisabled`.
907
938
  * /
@@ -956,19 +987,19 @@ export interface _SERVICE {
956
987
  */
957
988
  openSession: ActorMethod<[SessionConfig, PaymentSignature], Result_5>;
958
989
  /**
959
- * / RENAMED from `requestSession` (census tier-3 #21): it is a pure dry run — a quote for a session
990
+ * / RENAMED from `requestSession` in the 0.16.0 interface pass: it is a pure dry run — a quote for a session
960
991
  * / the caller has not opened and is not committed to. `request` read as an action with an effect.
961
992
  * /
962
993
  * / PUBLIC: a price list nobody can read is not a price list, and this is the market's. ⟨The
963
- * / sentence was already here as "Ungated:"; only the marker the L8 gate greps for was missing,
994
+ * / sentence was already here as "Ungated:"; only the marker the disclosure gate greps for was missing,
964
995
  * / which is why this method read as undefended when it was not.⟩
965
- * / ⟨CORRECTED 2026-08-24 — this said "⟨L7⟩ UPDATE, NOT QUERY" and cited a market ruling that
966
- * / DEC-107 had already closed.⟩ QUERY, per the ruled quote convention: FAST READS. Both
967
- * / `quotePayment` and `previewOpenSession` become queries, and L7's open-ruling exception
968
- * / retires with them — so the argument written here for keeping it an update was arguing the
969
- * / losing side of a decision already made, and was added the same day by not reading forward
970
- * / to the ruling. `gate.offerSession` is pure — it validates the intent and returns it — so
971
- * / nothing forced the update in the first place.
996
+ * / ⟨CORRECTED 2026-08-24 — this said "UPDATE, NOT QUERY" under the update-for-read marker and cited a
997
+ * / market ruling that a later market ruling had already closed.⟩ QUERY, per the ruled quote
998
+ * / convention: FAST READS. Both `quotePayment` and `previewOpenSession` become queries, and the
999
+ * / update-for-read rule's open-ruling exception retires with them — so the argument written here
1000
+ * / for keeping it an update was arguing the losing side of a decision already made, and was added
1001
+ * / the same day by not reading forward to the ruling. `gate.offerSession` is pure — it validates
1002
+ * / the intent and returns it — so nothing forced the update in the first place.
972
1003
  * /
973
1004
  * / ONE-REPLICA CAVEAT, stated here because the ruling requires it at both sites: a query is one
974
1005
  * / replica's word and is NOT a settleable challenge. Nothing quoted here can be redeemed. The
@@ -996,9 +1027,9 @@ export interface _SERVICE {
996
1027
  * / ⟨CORRECTED 2026-10-02 — the nonce is GONE from the quote; the two paragraphs below are kept as
997
1028
  * / the record of why.⟩ Each requirement is now a `QuotedRequirement`: ic402's requirement without
998
1029
  * / its `nonce` (and with `expiry` spelled `expiryNs`). The paragraphs below describe the throwaway
999
- * / that was published until this date; the pre-cut review recommended dropping it over ratifying
1000
- * / it, and it was dropped. "Do not pay against it" is now enforced by there being nothing to pay
1001
- * / against.
1030
+ * / that was published until this date; the review before the 0.16.0 cut recommended dropping it
1031
+ * / over ratifying it, and it was dropped. "Do not pay against it" is now enforced by there being
1032
+ * / nothing to pay against.
1002
1033
  * /
1003
1034
  * / ⚠ THE NONCE IN EACH REQUIREMENT IS A THROWAWAY — DO NOT PAY AGAINST IT. `requireAll` mints a
1004
1035
  * / server nonce with a HashMap put, and this is a QUERY, so the write is discarded on return.
@@ -1052,25 +1083,18 @@ export interface _SERVICE {
1052
1083
  * / arrives as `#Conflict` rather than `#NotFound`. Read the MESSAGE for which. This is the 0.16.0
1053
1084
  * / contract as ratified on 2026-10-02; giving the library one arm per kind of refusal is post-cut
1054
1085
  * / dependency work.
1055
- */
1056
- reconcileSession: ActorMethod<[string], Result_2>;
1057
- /**
1058
- * / Settle a parked withdrawal by asking the ledger what happened, rather than assuming.
1059
1086
  * /
1060
- * / Re-sends the IDENTICAL transfer — same amount, same fee, same `created_at_time`. Within
1061
- * / ICRC-1's 24h deduplication window there are exactly two outcomes and both are conclusive:
1062
- * / · `#Err(#Duplicate)` — the original DID execute. The seller has been paid; discard the
1063
- * / parked record.
1064
- * / · `#Ok` — the original did NOT execute, and this call has now paid it. Discard.
1065
- * / Anything else leaves the record parked and retryable; it is never guessed at.
1066
- * /
1067
- * / Callable by the SELLER it belongs to. This pays only ever to the recorded seller, so a
1068
- * / stranger calling it could not misdirect funds — but it is still scoped, because a parked
1069
- * / withdrawal is the seller's business and its existence is a fact about their balance.
1070
- * /
1071
- * / The precedent is the cashier's `recoverPendingClaim`: same saga, same rail, same reason.
1087
+ * / ⟨2026-11-05, ic402 2.20.0 — beside the list of refusals above⟩ It now also resolves an ICP session
1088
+ * / left `#closing` by a close whose settle the ledger rejected after it may have run (that close
1089
+ * / answers "outcome unknown"). It moves no money itself: it reads the session's escrow balance, and
1090
+ * / the full deposit still there means the settle did not land, so the session reopens for a close to
1091
+ * / settle it once; less than the deposit means it did, so the session ends `#closed` with the
1092
+ * / remainder recoverable by its payer (`recoverEscrow`). Refused while a close of that session is
1093
+ * / still running ("call again once it returns"), and a failed balance or fee query leaves the session
1094
+ * / `#closing` to be reconciled again. THIS, NOT `forceResolveSession`, IS THE WAY OUT for such a
1095
+ * / session: forcing one whose settle never landed strands the recipient's share.
1072
1096
  */
1073
- recoverContentWithdrawal: ActorMethod<[bigint], Result>;
1097
+ reconcileSession: ActorMethod<[string], Result_2>;
1074
1098
  /**
1075
1099
  * / Admin recovery: return unconsumed escrow from a stuck or terminal session's own subaccount.
1076
1100
  * / THE ONE RECOVERY METHOD THAT MOVES REAL MONEY.
@@ -1114,6 +1138,10 @@ export interface _SERVICE {
1114
1138
  * / that was the block index alone, which read as the amount. If the session's record is removed
1115
1139
  * / before the amount can be read back — a session closed in the same moment as the recovery and
1116
1140
  * / cleaned up during its transfer — it answers `#Other` naming the block, never a guessed amount.
1141
+ * /
1142
+ * / ⟨2026-11-19, ic402 2.23.0, beside the paragraph above⟩ `amount` is now the library's own figure for what
1143
+ * / it paid, from its receipt (since ic402 2.22.0 it is also capped at what the session's close recorded as
1144
+ * / still owed, less one fee). The `#Other` answer for a record removed during the transfer no longer occurs.
1117
1145
  */
1118
1146
  recoverEscrow: ActorMethod<[string, TokenAmount], Result_3>;
1119
1147
  /**
@@ -1127,8 +1155,20 @@ export interface _SERVICE {
1127
1155
  * / Re-registering is how a seller refreshes an expiring binding, and it is idempotent apart from
1128
1156
  * / the timestamp. The byte count SURVIVES re-registration — otherwise the quota would reset every
1129
1157
  * / thirty days, which is a quota in name only.
1158
+ * /
1159
+ * / ⟨2026-11-04, the owner's ruling: a sale is paid into the selling engram's own wallet⟩
1160
+ * / ON THIS MARKET'S BOOKS THE SELLER IS THE ENGRAM; the caller is the hand that lists for it. Every
1161
+ * / identity this market hands the payment library — a service's operator, the claimant, the
1162
+ * / submitter, the EVM payout key — is `engramId`, so the library pays the engram's own account on
1163
+ * / the ckUSDC rail with no money code of ours, and content sales are pushed there by `payEngram`.
1164
+ * / Three steps more than before, in order: the one-engram check (`oneEngramConflict`) before the
1165
+ * / first await; after the registry, the engram is asked for its own EVM address
1166
+ * / (`askEngramPayAddress`) and that address is registered with the library under the engram; the
1167
+ * / one-engram check again, and the binding written from the LIVE map (the byte count may have moved
1168
+ * / across the awaits). Last, this engram's parked sale notices are delivered (at most 16): a
1169
+ * / seller's own message, and the engram just answered.
1130
1170
  */
1131
- registerSeller: ActorMethod<[Principal], Result_1>;
1171
+ registerSeller: ActorMethod<[Principal], Result>;
1132
1172
  /**
1133
1173
  * / Register a paid service. Born DISABLED, like an endpoint and for the same reason: a listing
1134
1174
  * / that went live at creation would be sellable before its seller had checked it.
@@ -1161,7 +1201,7 @@ export interface _SERVICE {
1161
1201
  ],
1162
1202
  Result_2
1163
1203
  >;
1164
- removeAuditViewer: ActorMethod<[Principal], Result_1>;
1204
+ removeAuditViewer: ActorMethod<[Principal], Result>;
1165
1205
  /**
1166
1206
  * / Remove a per-payer override so that payer reverts to — and keeps TRACKING — the global policy.
1167
1207
  * /
@@ -1169,7 +1209,7 @@ export interface _SERVICE {
1169
1209
  * / policy, which then stops following later global changes. That is why the two never travel
1170
1210
  * / apart: without this one, every override is permanent in effect.
1171
1211
  */
1172
- removeCallerPolicy: ActorMethod<[Principal], Result_1>;
1212
+ removeCallerPolicy: ActorMethod<[Principal], Result>;
1173
1213
  /**
1174
1214
  * / ⟨0.16.0⟩ RULED 2026-08-17: THE SELLER RESOLVES. Not the market admin.
1175
1215
  * /
@@ -1200,7 +1240,7 @@ export interface _SERVICE {
1200
1240
  * / contract as ratified on 2026-10-02; giving the library one arm per kind of refusal is post-cut
1201
1241
  * / dependency work.
1202
1242
  */
1203
- resolveDispute: ActorMethod<[string, boolean], Result_1>;
1243
+ resolveDispute: ActorMethod<[string, boolean], Result>;
1204
1244
  /**
1205
1245
  * / Admin LAST RESORT: force a job to a terminal status when reconcileJob cannot determine one —
1206
1246
  * / a reverted or dead transaction that the chain will never resolve either way.
@@ -1223,7 +1263,34 @@ export interface _SERVICE {
1223
1263
  * / contract as ratified on 2026-10-02; giving the library one arm per kind of refusal is post-cut
1224
1264
  * / dependency work.
1225
1265
  */
1226
- resolveJob: ActorMethod<[string, JobStatus], Result_1>;
1266
+ resolveJob: ActorMethod<[string, JobStatus], Result>;
1267
+ /**
1268
+ * / ⟨2026-11-04, the owner's sale-payout ruling⟩ Deliver one engram's parked sale notices to its record —
1269
+ * / at most 16 a call, oldest first — and answer how many landed. CALLABLE BY ANYONE, anonymous
1270
+ * / included: the engram dedups on the receipt id and accepts only this market, so nothing can be
1271
+ * / misdirected or written twice; the same accepted residual as `retrySalePayout`. `#NotFound` when
1272
+ * / nothing is parked for that engram (every sale it made here reached its record, or none was made).
1273
+ */
1274
+ retrySaleNotices: ActorMethod<[Principal], Result_1>;
1275
+ /**
1276
+ * / ⟨2026-11-04, the owner's sale-payout ruling⟩ Settle a parked sale payout by asking the ledger what
1277
+ * / happened, rather than assuming — the retired withdrawal recovery's saga, kept whole for the payout
1278
+ * / that replaced the withdrawal.
1279
+ * /
1280
+ * / Re-sends the IDENTICAL transfer: same engram, amount, fee, memo and `created_at_time`. Within
1281
+ * / ICRC-1's 24-hour window there are exactly two conclusive outcomes: `#Duplicate` — the first push
1282
+ * / DID land, the engram has been paid, clear the row; `#Ok` — it had not, and this call has now
1283
+ * / paid it. `#TooOld` leaves it parked (outside the window only a human reading the ledger can say);
1284
+ * / `#BadFee` leaves it parked (the fee is part of the tuple — see `Types.PendingPayout.feeE6`); any
1285
+ * / other answer leaves it parked and retryable. Never guessed at.
1286
+ * /
1287
+ * / PUBLIC: callable by anyone, anonymous included: the destination, amount, fee, memo and time are all
1288
+ * / recorded, so nothing about the call can be misdirected, and the chained row names whoever asked.
1289
+ * / The residual — a stranger can make the market spend one ledger call per press on its own debt —
1290
+ * / is accepted (a caller gate would buy nothing but a name). The sale's record line does not wait
1291
+ * / on this: the engram was told when the sale settled, whether the push paid or parked.
1292
+ */
1293
+ retrySalePayout: ActorMethod<[bigint], Result_1>;
1227
1294
  /**
1228
1295
  * / Admin recovery: retry the payment to the seller of a job left `#Verified` by a failed payment.
1229
1296
  * / NOTHING ELSE. It never refunds the buyer, and it refuses every job that does not read
@@ -1255,18 +1322,19 @@ export interface _SERVICE {
1255
1322
  * / own (a job that moved on before the retry ran, or a payment that failed). `#NotFound` is a job id
1256
1323
  * / this market does not have.
1257
1324
  */
1258
- retrySellerPayment: ActorMethod<[string], Result_1>;
1259
- setAdmin: ActorMethod<[Principal], Result_1>;
1325
+ retrySellerPayment: ActorMethod<[string], Result>;
1326
+ setAdmin: ActorMethod<[Principal], Result>;
1260
1327
  /**
1261
1328
  * / Override the policy for ONE payer — the market's per-buyer risk control.
1262
1329
  */
1263
- setCallerPolicy: ActorMethod<[Principal, SpendingPolicy], Result_1>;
1330
+ setCallerPolicy: ActorMethod<[Principal, SpendingPolicy], Result>;
1264
1331
  /**
1265
- * / ⟨0.16.0, L2.6⟩ `enableEndpoint` and `disableEndpoint` FOLD into one setter.
1332
+ * / ⟨0.16.0, one boolean idiom⟩ `enableEndpoint` and `disableEndpoint` FOLD into one setter.
1266
1333
  * /
1267
1334
  * / They were byte-identical apart from the status they wrote and the word in their name, which is
1268
- * / the definition of a boolean expressed as two methods. L2.6 rules one idiom for a boolean
1269
- * / feature, and the fold also removes a real hazard: two methods meant two authorization checks
1335
+ * / the definition of a boolean expressed as two methods. The 0.16.0 naming rules allow one idiom for
1336
+ * / a boolean feature (a set…Enabled setter plus a readable flag), and the fold also removes a real
1337
+ * / hazard: two methods meant two authorization checks
1270
1338
  * / to keep in step, and a divergence between them would have been invisible to a reader looking at
1271
1339
  * / either one alone.
1272
1340
  * /
@@ -1274,7 +1342,7 @@ export interface _SERVICE {
1274
1342
  * / request is well-formed and permitted, the endpoint is simply in a terminal state — and calling
1275
1343
  * / that `#Invalid` would tell a caller to fix their request when nothing about it is wrong.
1276
1344
  */
1277
- setEndpointEnabled: ActorMethod<[string, boolean], Result_1>;
1345
+ setEndpointEnabled: ActorMethod<[string, boolean], Result>;
1278
1346
  /**
1279
1347
  * / Set an endpoint's price. THE SELLER'S, not the admin's.
1280
1348
  * /
@@ -1282,19 +1350,7 @@ export interface _SERVICE {
1282
1350
  * / admin cannot take down is a moderation problem. PRICE IS DIFFERENT: changing what a seller
1283
1351
  * / charges is trading on their behalf, and no recovery story needs it.
1284
1352
  */
1285
- setEndpointPrice: ActorMethod<[string, bigint], Result_1>;
1286
- /**
1287
- * / A seller registers the EVM address their EVM-paid settlements are sent to.
1288
- * /
1289
- * / SELF-SCOPED: the address is keyed by `msg.caller`, so the only account a caller can change is
1290
- * / their own — there is no gate to get wrong, because there is nothing to gate. The engram's
1291
- * / `requireAgentOrOwner` here was protecting a canister-level roster that a shared market does
1292
- * / not have. Anonymous is refused: an anonymous payout address is an address nobody can be paid at.
1293
- * /
1294
- * / Without one, an EVM-paid job's settlement FAILS CLOSED and rolls back — the market does not
1295
- * / cross rails and pay an EVM seller out of the ICP pool.
1296
- */
1297
- setEvmSellerPayout: ActorMethod<[string], Result_1>;
1353
+ setEndpointPrice: ActorMethod<[string, bigint], Result>;
1298
1354
  /**
1299
1355
  * / Set the market's global spending policy.
1300
1356
  * /
@@ -1302,22 +1358,22 @@ export interface _SERVICE {
1302
1358
  * / distinguishable from a tightening after the fact. A policy raise is the quiet half of most
1303
1359
  * / money incidents, and "policy changed" alone cannot tell an investigator which way.
1304
1360
  */
1305
- setPaymentPolicy: ActorMethod<[SpendingPolicy], Result_1>;
1361
+ setPaymentPolicy: ActorMethod<[SpendingPolicy], Result>;
1306
1362
  /**
1307
1363
  * / Whom this canister anchors to. Set by the admin at deploy; `sys` because it is protocol
1308
1364
  * / configuration, not a product surface.
1309
1365
  * /
1310
1366
  * / ⟨RENAMED 2026-10-02 from `sysSetRegistryId` — the sys-tier retier ruled 2026-08-24, executed
1311
- * / under the owner's 2026-10-02 ruling to carry out the pre-cut interface decisions as
1312
- * / recommended.⟩ The sentence above is why it was sys-named, and the retier is why it no longer
1313
- * / is: the `sys` prefix names the canister-to-canister tier, whose callers are other canisters,
1314
- * / and this method's only caller is a PERSON — the market's admin, at deploy. Keeping it there
1315
- * / made "a `sys` method has no human caller" false, and so uncheckable. A plain admin setter
1367
+ * / under the owner's 2026-10-02 ruling to carry out the interface decisions reviewed before the
1368
+ * / 0.16.0 cut as recommended.⟩ The sentence above is why it was sys-named, and the retier is why it
1369
+ * / no longer is: the `sys` prefix names the canister-to-canister tier, whose callers are other
1370
+ * / canisters, and this method's only caller is a PERSON — the market's admin, at deploy. Keeping it
1371
+ * / there made "a `sys` method has no human caller" false, and so uncheckable. A plain admin setter
1316
1372
  * / (`setAdmin`'s sibling) is what it always was.
1317
1373
  */
1318
- setRegistryId: ActorMethod<[Principal], Result_1>;
1374
+ setRegistryId: ActorMethod<[Principal], Result>;
1319
1375
  /**
1320
- * / ⟨0.16.0, L2.6⟩ enableService + disableService FOLD, same as the endpoint pair.
1376
+ * / ⟨0.16.0, one boolean idiom⟩ enableService + disableService FOLD, same as the endpoint pair.
1321
1377
  * /
1322
1378
  * / Deliberately NOT admin-overridable, unlike endpoints. Disabling a seller's service is a
1323
1379
  * / commercial act against that seller, and an admin who needs to remove a listing should do it
@@ -1329,7 +1385,7 @@ export interface _SERVICE {
1329
1385
  * / `confirmJob` and `disputeJob`. `enableService`/`disableService` return `Service not found`
1330
1386
  * / (properly `#NotFound`) and **`Not the seller`** (properly `#Refused`) as plain strings, so
1331
1387
  * / the arm is gone before this method sees it. Read the MESSAGE, not the arm.
1332
- * / ⟨2026-08-21; the project's backlog carries the three costed fixes and why none is a
1388
+ * / ⟨2026-08-21; three costed fixes were recorded, with why none is a
1333
1389
  * / one-liner.⟩
1334
1390
  * / ⟨CORRECTED 2026-10-02, audited at this site — the paragraph above no longer holds here.⟩
1335
1391
  * / `requireServiceSeller` now runs BEFORE the library: a missing service is refused `#NotFound`
@@ -1339,7 +1395,7 @@ export interface _SERVICE {
1339
1395
  * / The seam is closed on this method by the gate, not by the library; the others keep their
1340
1396
  * / caveats.
1341
1397
  */
1342
- setServiceEnabled: ActorMethod<[string, boolean], Result_1>;
1398
+ setServiceEnabled: ActorMethod<[string, boolean], Result>;
1343
1399
  /**
1344
1400
  * / A seller submits a finished job's result.
1345
1401
  * /
@@ -1363,17 +1419,17 @@ export interface _SERVICE {
1363
1419
  */
1364
1420
  submitJobResult: ActorMethod<
1365
1421
  [string, Uint8Array | number[], [] | [Uint8Array | number[]], [] | [bigint]],
1366
- Result_1
1422
+ Result
1367
1423
  >;
1368
1424
  /**
1369
1425
  * / Upload a whole file in one call.
1370
1426
  */
1371
- uploadContent: ActorMethod<[string, string, Uint8Array | number[]], Result_1>;
1427
+ uploadContent: ActorMethod<[string, string, Uint8Array | number[]], Result>;
1372
1428
  /**
1373
1429
  * / Push one chunk of a started upload. NOT charged — uploadContentInit already reserved the
1374
1430
  * / declared total, so charging again here would bill the same bytes twice.
1375
1431
  */
1376
- uploadContentChunk: ActorMethod<[string, bigint, Uint8Array | number[]], Result_1>;
1432
+ uploadContentChunk: ActorMethod<[string, bigint, Uint8Array | number[]], Result>;
1377
1433
  /**
1378
1434
  * / Begin a chunked upload. The WHOLE declared size is charged here, up front.
1379
1435
  * /
@@ -1381,27 +1437,13 @@ export interface _SERVICE {
1381
1437
  * / begin an upload that cannot finish, and discover it only after claiming most of the memory.
1382
1438
  * / Reserving the declared total means an over-quota upload is refused before its first byte lands.
1383
1439
  */
1384
- uploadContentInit: ActorMethod<[string, string, bigint, bigint], Result_1>;
1440
+ uploadContentInit: ActorMethod<[string, string, bigint, bigint], Result>;
1385
1441
  /**
1386
1442
  * / The buyer-facing half of the same check, kept because it answers a different question: "is my
1387
1443
  * / grant still good", asked BEFORE spending a round trip on a chunk. Documented in ACCESS-CONTROL
1388
1444
  * / as the buyer's pre-flight.
1389
1445
  */
1390
- verifyGrant: ActorMethod<[AccessGrant], Result_1>;
1391
- /**
1392
- * / Withdraw everything this caller has earned from content sales, to their own principal.
1393
- * /
1394
- * / NO DESTINATION ARGUMENT, and that is the security property rather than a missing feature: the
1395
- * / funds go to `msg.caller` and nowhere else, so a stolen or mis-signed call cannot redirect a
1396
- * / seller's balance to an attacker's account. A seller who wants the money elsewhere moves it
1397
- * / from their own account, where they are the only signer.
1398
- * /
1399
- * / NOT GATED ON `requireSeller`. A seller binding expires and can be revoked; earnings do not.
1400
- * / Gating withdrawal on current seller status would strand the balance of anyone whose engram
1401
- * / lapsed after they sold — money owed, permanently unreachable, for a reason unrelated to the
1402
- * / debt. The gate is the debt itself: you may withdraw exactly what you are owed.
1403
- */
1404
- withdrawContentRevenue: ActorMethod<[], Result>;
1446
+ verifyGrant: ActorMethod<[AccessGrant], Result>;
1405
1447
  }
1406
1448
  export declare const idlFactory: IDL.InterfaceFactory;
1407
1449
  export declare const init: (args: { IDL: typeof IDL }) => IDL.Type[];