@engramx/idl 0.16.0-rc.13 → 0.16.0-rc.14
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 +204 -104
- package/dist/engram.idl.d.ts +186 -102
- package/dist/engram.idl.js +113 -84
- package/dist/market.did +45 -20
- package/dist/market.idl.d.ts +39 -20
- package/dist/market.idl.js +36 -23
- package/dist/registry.did +48 -19
- package/dist/registry.idl.d.ts +43 -20
- package/dist/registry.idl.js +35 -22
- package/package.json +1 -1
package/dist/market.did
CHANGED
|
@@ -128,6 +128,12 @@ type SellerStatus =
|
|
|
128
128
|
expiresAtNs: int;
|
|
129
129
|
verifiedAtNs: int;
|
|
130
130
|
};
|
|
131
|
+
type SealedEntry =
|
|
132
|
+
record {
|
|
133
|
+
digest: blob;
|
|
134
|
+
entryHash: blob;
|
|
135
|
+
id: nat;
|
|
136
|
+
};
|
|
131
137
|
type RoleGrant =
|
|
132
138
|
record {
|
|
133
139
|
holder: principal;
|
|
@@ -204,6 +210,11 @@ type Result_3 =
|
|
|
204
210
|
Err: Error;
|
|
205
211
|
Ok: EscrowRecovery;
|
|
206
212
|
};
|
|
213
|
+
type Result_20 =
|
|
214
|
+
variant {
|
|
215
|
+
Err: Error;
|
|
216
|
+
Ok: X402Endpoint;
|
|
217
|
+
};
|
|
207
218
|
type Result_2 =
|
|
208
219
|
variant {
|
|
209
220
|
Err: Error;
|
|
@@ -212,47 +223,47 @@ type Result_2 =
|
|
|
212
223
|
type Result_19 =
|
|
213
224
|
variant {
|
|
214
225
|
Err: Error;
|
|
215
|
-
Ok:
|
|
226
|
+
Ok: ServiceRequestResponse;
|
|
216
227
|
};
|
|
217
228
|
type Result_18 =
|
|
218
229
|
variant {
|
|
219
230
|
Err: Error;
|
|
220
|
-
Ok:
|
|
231
|
+
Ok: ContentResponse;
|
|
221
232
|
};
|
|
222
233
|
type Result_17 =
|
|
223
234
|
variant {
|
|
224
235
|
Err: Error;
|
|
225
|
-
Ok:
|
|
236
|
+
Ok: opt text;
|
|
226
237
|
};
|
|
227
238
|
type Result_16 =
|
|
228
239
|
variant {
|
|
229
240
|
Err: Error;
|
|
230
|
-
Ok:
|
|
241
|
+
Ok: Job;
|
|
231
242
|
};
|
|
232
243
|
type Result_15 =
|
|
233
244
|
variant {
|
|
234
245
|
Err: Error;
|
|
235
|
-
Ok:
|
|
246
|
+
Ok: blob;
|
|
236
247
|
};
|
|
237
248
|
type Result_14 =
|
|
238
249
|
variant {
|
|
239
250
|
Err: Error;
|
|
240
|
-
Ok:
|
|
251
|
+
Ok: JobStatus;
|
|
241
252
|
};
|
|
242
253
|
type Result_13 =
|
|
243
254
|
variant {
|
|
244
255
|
Err: Error;
|
|
245
|
-
Ok:
|
|
256
|
+
Ok: RevenueSummary;
|
|
246
257
|
};
|
|
247
258
|
type Result_12 =
|
|
248
259
|
variant {
|
|
249
260
|
Err: Error;
|
|
250
|
-
Ok:
|
|
261
|
+
Ok: SellerStatus;
|
|
251
262
|
};
|
|
252
263
|
type Result_11 =
|
|
253
264
|
variant {
|
|
254
265
|
Err: Error;
|
|
255
|
-
Ok:
|
|
266
|
+
Ok: RecordPage;
|
|
256
267
|
};
|
|
257
268
|
type Result_10 =
|
|
258
269
|
variant {
|
|
@@ -269,6 +280,14 @@ type Result =
|
|
|
269
280
|
Err: Error;
|
|
270
281
|
Ok: nat;
|
|
271
282
|
};
|
|
283
|
+
type RecordPage =
|
|
284
|
+
record {
|
|
285
|
+
hashFirstFrom: nat;
|
|
286
|
+
items: vec AuditEntry;
|
|
287
|
+
ringFloor: nat;
|
|
288
|
+
sealed: vec SealedEntry;
|
|
289
|
+
total: nat;
|
|
290
|
+
};
|
|
272
291
|
type QuotedRequirement =
|
|
273
292
|
record {
|
|
274
293
|
amount: nat;
|
|
@@ -663,7 +682,7 @@ service : {
|
|
|
663
682
|
/// Born disabled deliberately: a listing that went live at creation would be sellable before its
|
|
664
683
|
/// price was set, and `price` starts at 0 with `suggestedPrice` as the fallback.
|
|
665
684
|
createEndpoint: (name: text, description: text, contentId: text,
|
|
666
|
-
suggestedPriceE6: nat) -> (
|
|
685
|
+
suggestedPriceE6: nat) -> (Result_20);
|
|
667
686
|
/// Submit a paid service request. Returns a job id, or the price.
|
|
668
687
|
///
|
|
669
688
|
/// ⟨0.16.0⟩ TWO GATES FROM THE ENGRAM DO NOT TRAVEL, and both for the same reason: they were the
|
|
@@ -678,7 +697,7 @@ service : {
|
|
|
678
697
|
///
|
|
679
698
|
/// What DOES gate here is the market's freeze, and the service's own existence and pricing mode.
|
|
680
699
|
createJob: (serviceId: text, params: blob, paymentSig:
|
|
681
|
-
opt PaymentSignature) -> (
|
|
700
|
+
opt PaymentSignature) -> (Result_19);
|
|
682
701
|
/// Delete content.
|
|
683
702
|
///
|
|
684
703
|
/// ⚠ THE QUOTA IS NOT REFUNDED, and this is the honest part of the design rather than a
|
|
@@ -767,7 +786,7 @@ service : {
|
|
|
767
786
|
/// before the nonce lock or any ledger call, and the refusal reaches the buyer as #Refused with
|
|
768
787
|
/// ic402's text naming both principals. Pay as the principal that approved the allowance.
|
|
769
788
|
getContent: (contentId: text, paymentSig: opt PaymentSignature) ->
|
|
770
|
-
(
|
|
789
|
+
(Result_18);
|
|
771
790
|
/// ⟨0.16.0⟩ THE `getChunk` FIX, and it is the sharpest single case in the corpus.
|
|
772
791
|
///
|
|
773
792
|
/// The engram's version was:
|
|
@@ -792,13 +811,13 @@ service : {
|
|
|
792
811
|
/// list they scan holds authorization helpers only — so a refusal fabricated behind a payment
|
|
793
812
|
/// check was out of scope by construction rather than by ruling. L11 adds payment gates to that
|
|
794
813
|
/// list; this method is why.
|
|
795
|
-
getContentChunk: (grant: AccessGrant, index: nat) -> (
|
|
814
|
+
getContentChunk: (grant: AccessGrant, index: nat) -> (Result_15) query;
|
|
796
815
|
/// A seller's payout address — THEIRS, or the admin's to read.
|
|
797
816
|
///
|
|
798
817
|
/// The engram made this owner-only and TRAPPED at everyone else. Here the answer is a refusal a
|
|
799
818
|
/// caller can read, and `#Ok(null)` genuinely means "this seller has set no payout address" —
|
|
800
819
|
/// distinguishable from "you may not ask", which is the whole point of the envelope.
|
|
801
|
-
getEvmSellerPayout: (seller: principal) -> (
|
|
820
|
+
getEvmSellerPayout: (seller: principal) -> (Result_17) query;
|
|
802
821
|
/// PUBLIC: what this canister's chains continue, or that they continue nothing. A fresh chain
|
|
803
822
|
/// beside a published predecessor head is auditable; a fresh chain with no statement is
|
|
804
823
|
/// indistinguishable from a wipe.
|
|
@@ -811,7 +830,7 @@ service : {
|
|
|
811
830
|
/// collapsed "unknown jobId" and "not authorized", and the product rendered the wrong conclusion
|
|
812
831
|
/// from it — the marketplace UI printed "Job not found (or not yet visible)" at a caller who was
|
|
813
832
|
/// merely unauthorized. Job existence is not the secret: `getJobCounts()` is ungated.
|
|
814
|
-
getJob: (jobId: text) -> (
|
|
833
|
+
getJob: (jobId: text) -> (Result_16) query;
|
|
815
834
|
/// PUBLIC: aggregate counts that identify nobody — and already public on the engram, which is
|
|
816
835
|
/// what made `listJobs`' existence-leak justification false.
|
|
817
836
|
getJobCounts: () -> (JobCounts) query;
|
|
@@ -824,7 +843,7 @@ service : {
|
|
|
824
843
|
///
|
|
825
844
|
/// Three outcomes, three answers now. And `Payer` (above) removes the root cause rather than
|
|
826
845
|
/// only labelling it.
|
|
827
|
-
getJobResult: (jobId: text) -> (
|
|
846
|
+
getJobResult: (jobId: text) -> (Result_15) query;
|
|
828
847
|
/// Terminal money settlement — the seller gets paid. Honours the freeze exactly like every
|
|
829
848
|
/// other settle path; a settlement that ignored the freeze would make the freeze a suggestion.
|
|
830
849
|
/// PUBLIC: a job's state, and nothing else about it.
|
|
@@ -839,7 +858,7 @@ service : {
|
|
|
839
858
|
///
|
|
840
859
|
/// The engram returned `?EngramJobStatus`, conflating "no such job" with a null-ish answer. Here
|
|
841
860
|
/// a missing job is `#NotFound`, which is a fact rather than an absence a caller has to interpret.
|
|
842
|
-
getJobStatus: (jobId: text) -> (
|
|
861
|
+
getJobStatus: (jobId: text) -> (Result_14) query;
|
|
843
862
|
/// PUBLIC: the market's spend limits, with the caller rosters REDACTED.
|
|
844
863
|
///
|
|
845
864
|
/// The limits themselves are already public — they are advertised inside every 402 challenge, so
|
|
@@ -862,7 +881,7 @@ service : {
|
|
|
862
881
|
/// Anonymous is refused rather than answered with zeroes. A zero here is a real business fact —
|
|
863
882
|
/// "you have sold nothing" — and returning it to a caller who simply has no identity is the
|
|
864
883
|
/// fabricated-empty defect wearing a number instead of a list.
|
|
865
|
-
getRevenueSummary: () -> (
|
|
884
|
+
getRevenueSummary: () -> (Result_13) query;
|
|
866
885
|
/// PUBLIC: what a buyer can learn about a seller, and the whole of it.
|
|
867
886
|
///
|
|
868
887
|
/// The ENGRAM ID is the point of this read. This market runs no reputation system and issues no
|
|
@@ -873,7 +892,7 @@ service : {
|
|
|
873
892
|
///
|
|
874
893
|
/// `verified` is about ownership at a moment in time and nothing else. It is not an endorsement,
|
|
875
894
|
/// and the field name is the strongest claim it makes.
|
|
876
|
-
getSellerStatus: (seller: principal) -> (
|
|
895
|
+
getSellerStatus: (seller: principal) -> (Result_12) query;
|
|
877
896
|
/// PUBLIC: aggregate session counts. Identifies nobody, and the same reasoning as getJobCounts —
|
|
878
897
|
/// which is also what made `listJobs`' old "no existence leak" defence false.
|
|
879
898
|
getSessionCounts: () -> (SessionCounts) query;
|
|
@@ -952,7 +971,13 @@ service : {
|
|
|
952
971
|
isTradeFrozen: () -> (bool) query;
|
|
953
972
|
/// `total` is the head counter, not the row count: this is a bounded ring, so a page that
|
|
954
973
|
/// reported only what it returned would make a trimmed log look complete.
|
|
955
|
-
|
|
974
|
+
///
|
|
975
|
+
/// ⟨2026-10-15, the owner's ruling 6B of 2026-10-14⟩ The reply is the shared `Wire.RecordPage`, so
|
|
976
|
+
/// one checker reads every chain. A viewer sees every entry, so `sealed` is always empty here;
|
|
977
|
+
/// `ringFloor` says where the ring starts and `hashFirstFrom` where this record switched to the
|
|
978
|
+
/// hash-first rule. The gate is unchanged (hash-only rows for strangers were ruled for the
|
|
979
|
+
/// engram's record).
|
|
980
|
+
listAuditEntries: (start: nat, limit: nat) -> (Result_11) query;
|
|
956
981
|
/// Admin AND the enrolled viewers themselves — L8's roster rule. A viewer who cannot see the
|
|
957
982
|
/// roster cannot tell whether their own enrolment survived a rotation.
|
|
958
983
|
listAuditViewers: () -> (Result_10) query;
|
package/dist/market.idl.d.ts
CHANGED
|
@@ -244,19 +244,27 @@ export interface QuotedRequirement {
|
|
|
244
244
|
tokenName: [] | [string];
|
|
245
245
|
amount: bigint;
|
|
246
246
|
}
|
|
247
|
+
export interface RecordPage {
|
|
248
|
+
ringFloor: bigint;
|
|
249
|
+
total: bigint;
|
|
250
|
+
sealed: Array<SealedEntry>;
|
|
251
|
+
items: Array<AuditEntry>;
|
|
252
|
+
hashFirstFrom: bigint;
|
|
253
|
+
}
|
|
247
254
|
export type Result = { Ok: bigint } | { Err: Error };
|
|
248
255
|
export type Result_1 = { Ok: null } | { Err: Error };
|
|
249
256
|
export type Result_10 = { Ok: Page_7 } | { Err: Error };
|
|
250
|
-
export type Result_11 = { Ok:
|
|
251
|
-
export type Result_12 = { Ok:
|
|
252
|
-
export type Result_13 = { Ok:
|
|
253
|
-
export type Result_14 = { Ok:
|
|
254
|
-
export type Result_15 = { Ok:
|
|
255
|
-
export type Result_16 = { Ok:
|
|
256
|
-
export type Result_17 = { Ok:
|
|
257
|
-
export type Result_18 = { Ok:
|
|
258
|
-
export type Result_19 = { Ok:
|
|
257
|
+
export type Result_11 = { Ok: RecordPage } | { Err: Error };
|
|
258
|
+
export type Result_12 = { Ok: SellerStatus } | { Err: Error };
|
|
259
|
+
export type Result_13 = { Ok: RevenueSummary } | { Err: Error };
|
|
260
|
+
export type Result_14 = { Ok: JobStatus } | { Err: Error };
|
|
261
|
+
export type Result_15 = { Ok: Uint8Array | number[] } | { Err: Error };
|
|
262
|
+
export type Result_16 = { Ok: Job } | { Err: Error };
|
|
263
|
+
export type Result_17 = { Ok: [] | [string] } | { Err: Error };
|
|
264
|
+
export type Result_18 = { Ok: ContentResponse } | { Err: Error };
|
|
265
|
+
export type Result_19 = { Ok: ServiceRequestResponse } | { Err: Error };
|
|
259
266
|
export type Result_2 = { Ok: string } | { Err: Error };
|
|
267
|
+
export type Result_20 = { Ok: X402Endpoint } | { Err: Error };
|
|
260
268
|
export type Result_3 = { Ok: EscrowRecovery } | { Err: Error };
|
|
261
269
|
export type Result_4 = { Ok: PaymentQuote } | { Err: Error };
|
|
262
270
|
export type Result_5 = { Ok: SessionState } | { Err: Error };
|
|
@@ -295,6 +303,11 @@ export interface RoleGrant {
|
|
|
295
303
|
role: { Root: null } | { WasmAdmin: null } | { Admin: null } | { Other: string };
|
|
296
304
|
holder: Principal;
|
|
297
305
|
}
|
|
306
|
+
export interface SealedEntry {
|
|
307
|
+
id: bigint;
|
|
308
|
+
entryHash: Uint8Array | number[];
|
|
309
|
+
digest: Uint8Array | number[];
|
|
310
|
+
}
|
|
298
311
|
export interface SellerStatus {
|
|
299
312
|
expiresAtNs: bigint;
|
|
300
313
|
verifiedAtNs: bigint;
|
|
@@ -484,7 +497,7 @@ export interface _SERVICE {
|
|
|
484
497
|
* / Born disabled deliberately: a listing that went live at creation would be sellable before its
|
|
485
498
|
* / price was set, and `price` starts at 0 with `suggestedPrice` as the fallback.
|
|
486
499
|
*/
|
|
487
|
-
createEndpoint: ActorMethod<[string, string, string, bigint],
|
|
500
|
+
createEndpoint: ActorMethod<[string, string, string, bigint], Result_20>;
|
|
488
501
|
/**
|
|
489
502
|
* / Submit a paid service request. Returns a job id, or the price.
|
|
490
503
|
* /
|
|
@@ -500,7 +513,7 @@ export interface _SERVICE {
|
|
|
500
513
|
* /
|
|
501
514
|
* / What DOES gate here is the market's freeze, and the service's own existence and pricing mode.
|
|
502
515
|
*/
|
|
503
|
-
createJob: ActorMethod<[string, Uint8Array | number[], [] | [PaymentSignature]],
|
|
516
|
+
createJob: ActorMethod<[string, Uint8Array | number[], [] | [PaymentSignature]], Result_19>;
|
|
504
517
|
/**
|
|
505
518
|
* / Delete content.
|
|
506
519
|
* /
|
|
@@ -609,7 +622,7 @@ export interface _SERVICE {
|
|
|
609
622
|
* / before the nonce lock or any ledger call, and the refusal reaches the buyer as #Refused with
|
|
610
623
|
* / ic402's text naming both principals. Pay as the principal that approved the allowance.
|
|
611
624
|
*/
|
|
612
|
-
getContent: ActorMethod<[string, [] | [PaymentSignature]],
|
|
625
|
+
getContent: ActorMethod<[string, [] | [PaymentSignature]], Result_18>;
|
|
613
626
|
/**
|
|
614
627
|
* / ⟨0.16.0⟩ THE `getChunk` FIX, and it is the sharpest single case in the corpus.
|
|
615
628
|
* /
|
|
@@ -636,7 +649,7 @@ export interface _SERVICE {
|
|
|
636
649
|
* / check was out of scope by construction rather than by ruling. L11 adds payment gates to that
|
|
637
650
|
* / list; this method is why.
|
|
638
651
|
*/
|
|
639
|
-
getContentChunk: ActorMethod<[AccessGrant, bigint],
|
|
652
|
+
getContentChunk: ActorMethod<[AccessGrant, bigint], Result_15>;
|
|
640
653
|
/**
|
|
641
654
|
* / A seller's payout address — THEIRS, or the admin's to read.
|
|
642
655
|
* /
|
|
@@ -644,7 +657,7 @@ export interface _SERVICE {
|
|
|
644
657
|
* / caller can read, and `#Ok(null)` genuinely means "this seller has set no payout address" —
|
|
645
658
|
* / distinguishable from "you may not ask", which is the whole point of the envelope.
|
|
646
659
|
*/
|
|
647
|
-
getEvmSellerPayout: ActorMethod<[Principal],
|
|
660
|
+
getEvmSellerPayout: ActorMethod<[Principal], Result_17>;
|
|
648
661
|
/**
|
|
649
662
|
* / PUBLIC: what this canister's chains continue, or that they continue nothing. A fresh chain
|
|
650
663
|
* / beside a published predecessor head is auditable; a fresh chain with no statement is
|
|
@@ -661,7 +674,7 @@ export interface _SERVICE {
|
|
|
661
674
|
* / from it — the marketplace UI printed "Job not found (or not yet visible)" at a caller who was
|
|
662
675
|
* / merely unauthorized. Job existence is not the secret: `getJobCounts()` is ungated.
|
|
663
676
|
*/
|
|
664
|
-
getJob: ActorMethod<[string],
|
|
677
|
+
getJob: ActorMethod<[string], Result_16>;
|
|
665
678
|
/**
|
|
666
679
|
* / PUBLIC: aggregate counts that identify nobody — and already public on the engram, which is
|
|
667
680
|
* / what made `listJobs`' existence-leak justification false.
|
|
@@ -678,7 +691,7 @@ export interface _SERVICE {
|
|
|
678
691
|
* / Three outcomes, three answers now. And `Payer` (above) removes the root cause rather than
|
|
679
692
|
* / only labelling it.
|
|
680
693
|
*/
|
|
681
|
-
getJobResult: ActorMethod<[string],
|
|
694
|
+
getJobResult: ActorMethod<[string], Result_15>;
|
|
682
695
|
/**
|
|
683
696
|
* / Terminal money settlement — the seller gets paid. Honours the freeze exactly like every
|
|
684
697
|
* / other settle path; a settlement that ignored the freeze would make the freeze a suggestion.
|
|
@@ -695,7 +708,7 @@ export interface _SERVICE {
|
|
|
695
708
|
* / The engram returned `?EngramJobStatus`, conflating "no such job" with a null-ish answer. Here
|
|
696
709
|
* / a missing job is `#NotFound`, which is a fact rather than an absence a caller has to interpret.
|
|
697
710
|
*/
|
|
698
|
-
getJobStatus: ActorMethod<[string],
|
|
711
|
+
getJobStatus: ActorMethod<[string], Result_14>;
|
|
699
712
|
/**
|
|
700
713
|
* / PUBLIC: the market's spend limits, with the caller rosters REDACTED.
|
|
701
714
|
* /
|
|
@@ -722,7 +735,7 @@ export interface _SERVICE {
|
|
|
722
735
|
* / "you have sold nothing" — and returning it to a caller who simply has no identity is the
|
|
723
736
|
* / fabricated-empty defect wearing a number instead of a list.
|
|
724
737
|
*/
|
|
725
|
-
getRevenueSummary: ActorMethod<[],
|
|
738
|
+
getRevenueSummary: ActorMethod<[], Result_13>;
|
|
726
739
|
/**
|
|
727
740
|
* / PUBLIC: what a buyer can learn about a seller, and the whole of it.
|
|
728
741
|
* /
|
|
@@ -735,7 +748,7 @@ export interface _SERVICE {
|
|
|
735
748
|
* / `verified` is about ownership at a moment in time and nothing else. It is not an endorsement,
|
|
736
749
|
* / and the field name is the strongest claim it makes.
|
|
737
750
|
*/
|
|
738
|
-
getSellerStatus: ActorMethod<[Principal],
|
|
751
|
+
getSellerStatus: ActorMethod<[Principal], Result_12>;
|
|
739
752
|
/**
|
|
740
753
|
* / PUBLIC: aggregate session counts. Identifies nobody, and the same reasoning as getJobCounts —
|
|
741
754
|
* / which is also what made `listJobs`' old "no existence leak" defence false.
|
|
@@ -822,8 +835,14 @@ export interface _SERVICE {
|
|
|
822
835
|
/**
|
|
823
836
|
* / `total` is the head counter, not the row count: this is a bounded ring, so a page that
|
|
824
837
|
* / reported only what it returned would make a trimmed log look complete.
|
|
838
|
+
* /
|
|
839
|
+
* / ⟨2026-10-15, the owner's ruling 6B of 2026-10-14⟩ The reply is the shared `Wire.RecordPage`, so
|
|
840
|
+
* / one checker reads every chain. A viewer sees every entry, so `sealed` is always empty here;
|
|
841
|
+
* / `ringFloor` says where the ring starts and `hashFirstFrom` where this record switched to the
|
|
842
|
+
* / hash-first rule. The gate is unchanged (hash-only rows for strangers were ruled for the
|
|
843
|
+
* / engram's record).
|
|
825
844
|
*/
|
|
826
|
-
listAuditEntries: ActorMethod<[bigint, bigint],
|
|
845
|
+
listAuditEntries: ActorMethod<[bigint, bigint], Result_11>;
|
|
827
846
|
/**
|
|
828
847
|
* / Admin AND the enrolled viewers themselves — L8's roster rule. A viewer who cannot see the
|
|
829
848
|
* / roster cannot tell whether their own enrolment survived a rotation.
|
package/dist/market.idl.js
CHANGED
|
@@ -28,7 +28,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
28
28
|
suggestedPrice: IDL.Nat,
|
|
29
29
|
enabledAtNs: IDL.Opt(IDL.Int),
|
|
30
30
|
});
|
|
31
|
-
const
|
|
31
|
+
const Result_20 = IDL.Variant({ Ok: X402Endpoint, Err: Error });
|
|
32
32
|
const Eip3009Authorization = IDL.Record({
|
|
33
33
|
r: IDL.Vec(IDL.Nat8),
|
|
34
34
|
s: IDL.Vec(IDL.Nat8),
|
|
@@ -65,7 +65,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
65
65
|
Accepted: IDL.Record({ jobId: IDL.Text }),
|
|
66
66
|
PaymentRequired: IDL.Vec(PaymentRequirement),
|
|
67
67
|
});
|
|
68
|
-
const
|
|
68
|
+
const Result_19 = IDL.Variant({
|
|
69
69
|
Ok: ServiceRequestResponse,
|
|
70
70
|
Err: Error,
|
|
71
71
|
});
|
|
@@ -126,9 +126,9 @@ export const idlFactory = ({ IDL }) => {
|
|
|
126
126
|
Delivered: ContentDelivery,
|
|
127
127
|
PaymentRequired: IDL.Vec(PaymentRequirement),
|
|
128
128
|
});
|
|
129
|
-
const
|
|
130
|
-
const
|
|
131
|
-
const
|
|
129
|
+
const Result_18 = IDL.Variant({ Ok: ContentResponse, Err: Error });
|
|
130
|
+
const Result_15 = IDL.Variant({ Ok: IDL.Vec(IDL.Nat8), Err: Error });
|
|
131
|
+
const Result_17 = IDL.Variant({ Ok: IDL.Opt(IDL.Text), Err: Error });
|
|
132
132
|
const GenesisNote = IDL.Record({
|
|
133
133
|
predecessorSize: IDL.Opt(IDL.Nat),
|
|
134
134
|
predecessorHeadHash: IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
@@ -179,7 +179,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
179
179
|
amount: IDL.Nat,
|
|
180
180
|
params: IDL.Vec(IDL.Nat8),
|
|
181
181
|
});
|
|
182
|
-
const
|
|
182
|
+
const Result_16 = IDL.Variant({ Ok: Job, Err: Error });
|
|
183
183
|
const JobCounts = IDL.Record({
|
|
184
184
|
total: IDL.Nat,
|
|
185
185
|
active: IDL.Nat,
|
|
@@ -189,7 +189,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
189
189
|
settling: IDL.Nat,
|
|
190
190
|
parked: IDL.Nat,
|
|
191
191
|
});
|
|
192
|
-
const
|
|
192
|
+
const Result_14 = IDL.Variant({ Ok: JobStatus, Err: Error });
|
|
193
193
|
const SpendingPolicy = IDL.Record({
|
|
194
194
|
maxSessionDeposit: IDL.Opt(IDL.Nat),
|
|
195
195
|
blockedCallers: IDL.Opt(IDL.Vec(IDL.Principal)),
|
|
@@ -217,7 +217,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
217
217
|
contentPurchases: IDL.Nat,
|
|
218
218
|
unresolvedWithdrawals: IDL.Nat,
|
|
219
219
|
});
|
|
220
|
-
const
|
|
220
|
+
const Result_13 = IDL.Variant({ Ok: RevenueSummary, Err: Error });
|
|
221
221
|
const SellerStatus = IDL.Record({
|
|
222
222
|
expiresAtNs: IDL.Int,
|
|
223
223
|
verifiedAtNs: IDL.Int,
|
|
@@ -225,7 +225,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
225
225
|
engramId: IDL.Principal,
|
|
226
226
|
byteQuota: IDL.Nat,
|
|
227
227
|
});
|
|
228
|
-
const
|
|
228
|
+
const Result_12 = IDL.Variant({ Ok: SellerStatus, Err: Error });
|
|
229
229
|
const SessionCounts = IDL.Record({
|
|
230
230
|
closed: IDL.Nat,
|
|
231
231
|
total: IDL.Nat,
|
|
@@ -246,6 +246,11 @@ export const idlFactory = ({ IDL }) => {
|
|
|
246
246
|
upgrade: IDL.Opt(IDL.Bool),
|
|
247
247
|
status_code: IDL.Nat16,
|
|
248
248
|
});
|
|
249
|
+
const SealedEntry = IDL.Record({
|
|
250
|
+
id: IDL.Nat,
|
|
251
|
+
entryHash: IDL.Vec(IDL.Nat8),
|
|
252
|
+
digest: IDL.Vec(IDL.Nat8),
|
|
253
|
+
});
|
|
249
254
|
const Role = IDL.Variant({
|
|
250
255
|
Anonymous: IDL.Null,
|
|
251
256
|
Viewer: IDL.Null,
|
|
@@ -270,12 +275,14 @@ export const idlFactory = ({ IDL }) => {
|
|
|
270
275
|
success: IDL.Bool,
|
|
271
276
|
timestampNs: IDL.Int,
|
|
272
277
|
});
|
|
273
|
-
const
|
|
278
|
+
const RecordPage = IDL.Record({
|
|
279
|
+
ringFloor: IDL.Nat,
|
|
274
280
|
total: IDL.Nat,
|
|
275
|
-
|
|
281
|
+
sealed: IDL.Vec(SealedEntry),
|
|
276
282
|
items: IDL.Vec(AuditEntry),
|
|
283
|
+
hashFirstFrom: IDL.Nat,
|
|
277
284
|
});
|
|
278
|
-
const
|
|
285
|
+
const Result_11 = IDL.Variant({ Ok: RecordPage, Err: Error });
|
|
279
286
|
const Page_7 = IDL.Record({
|
|
280
287
|
total: IDL.Nat,
|
|
281
288
|
withheld: IDL.Nat,
|
|
@@ -294,6 +301,12 @@ export const idlFactory = ({ IDL }) => {
|
|
|
294
301
|
withheld: IDL.Nat,
|
|
295
302
|
items: IDL.Vec(ContentEntry),
|
|
296
303
|
});
|
|
304
|
+
const Page_5 = IDL.Record({
|
|
305
|
+
total: IDL.Nat,
|
|
306
|
+
withheld: IDL.Nat,
|
|
307
|
+
items: IDL.Vec(AuditEntry),
|
|
308
|
+
});
|
|
309
|
+
const Result_9 = IDL.Variant({ Ok: Page_5, Err: Error });
|
|
297
310
|
const Payer = IDL.Variant({ Evm: IDL.Text, Icp: IDL.Principal });
|
|
298
311
|
const PurchaseRecord = IDL.Record({
|
|
299
312
|
id: IDL.Text,
|
|
@@ -441,8 +454,8 @@ export const idlFactory = ({ IDL }) => {
|
|
|
441
454
|
anchorNow: IDL.Func([], [Result_1], []),
|
|
442
455
|
claimJob: IDL.Func([IDL.Text], [Result_1], []),
|
|
443
456
|
confirmJob: IDL.Func([IDL.Text, IDL.Opt(IDL.Vec(IDL.Nat8))], [Result_1], []),
|
|
444
|
-
createEndpoint: IDL.Func([IDL.Text, IDL.Text, IDL.Text, IDL.Nat], [
|
|
445
|
-
createJob: IDL.Func([IDL.Text, IDL.Vec(IDL.Nat8), IDL.Opt(PaymentSignature)], [
|
|
457
|
+
createEndpoint: IDL.Func([IDL.Text, IDL.Text, IDL.Text, IDL.Nat], [Result_20], []),
|
|
458
|
+
createJob: IDL.Func([IDL.Text, IDL.Vec(IDL.Nat8), IDL.Opt(PaymentSignature)], [Result_19], []),
|
|
446
459
|
deleteContent: IDL.Func([IDL.Text], [Result_1], []),
|
|
447
460
|
deleteEndpoint: IDL.Func([IDL.Text], [Result_1], []),
|
|
448
461
|
disputeJob: IDL.Func([IDL.Text, IDL.Text, IDL.Opt(IDL.Vec(IDL.Nat8))], [Result_1], []),
|
|
@@ -453,17 +466,17 @@ export const idlFactory = ({ IDL }) => {
|
|
|
453
466
|
getAuditHead: IDL.Func([], [AuditHead], ['query']),
|
|
454
467
|
getBuyerActionMessage: IDL.Func([IDL.Text, IDL.Text], [IDL.Text], ['query']),
|
|
455
468
|
getCertifiedAuditHead: IDL.Func([], [CertifiedAuditHead], ['query']),
|
|
456
|
-
getContent: IDL.Func([IDL.Text, IDL.Opt(PaymentSignature)], [
|
|
457
|
-
getContentChunk: IDL.Func([AccessGrant, IDL.Nat], [
|
|
458
|
-
getEvmSellerPayout: IDL.Func([IDL.Principal], [
|
|
469
|
+
getContent: IDL.Func([IDL.Text, IDL.Opt(PaymentSignature)], [Result_18], []),
|
|
470
|
+
getContentChunk: IDL.Func([AccessGrant, IDL.Nat], [Result_15], ['query']),
|
|
471
|
+
getEvmSellerPayout: IDL.Func([IDL.Principal], [Result_17], ['query']),
|
|
459
472
|
getGenesisNote: IDL.Func([], [GenesisNote], ['query']),
|
|
460
|
-
getJob: IDL.Func([IDL.Text], [
|
|
473
|
+
getJob: IDL.Func([IDL.Text], [Result_16], ['query']),
|
|
461
474
|
getJobCounts: IDL.Func([], [JobCounts], ['query']),
|
|
462
|
-
getJobResult: IDL.Func([IDL.Text], [
|
|
463
|
-
getJobStatus: IDL.Func([IDL.Text], [
|
|
475
|
+
getJobResult: IDL.Func([IDL.Text], [Result_15], ['query']),
|
|
476
|
+
getJobStatus: IDL.Func([IDL.Text], [Result_14], ['query']),
|
|
464
477
|
getPaymentPolicy: IDL.Func([], [SpendingPolicy], ['query']),
|
|
465
|
-
getRevenueSummary: IDL.Func([], [
|
|
466
|
-
getSellerStatus: IDL.Func([IDL.Principal], [
|
|
478
|
+
getRevenueSummary: IDL.Func([], [Result_13], ['query']),
|
|
479
|
+
getSellerStatus: IDL.Func([IDL.Principal], [Result_12], ['query']),
|
|
467
480
|
getSessionCounts: IDL.Func([], [SessionCounts], ['query']),
|
|
468
481
|
http_request: IDL.Func([HttpRequest], [HttpResponse], ['query']),
|
|
469
482
|
http_request_update: IDL.Func([HttpRequest], [HttpResponse], []),
|
|
@@ -495,7 +508,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
495
508
|
['query'],
|
|
496
509
|
),
|
|
497
510
|
isTradeFrozen: IDL.Func([], [IDL.Bool], ['query']),
|
|
498
|
-
listAuditEntries: IDL.Func([IDL.Nat, IDL.Nat], [
|
|
511
|
+
listAuditEntries: IDL.Func([IDL.Nat, IDL.Nat], [Result_11], ['query']),
|
|
499
512
|
listAuditViewers: IDL.Func([], [Result_10], ['query']),
|
|
500
513
|
listContent: IDL.Func([IDL.Nat, IDL.Nat], [Page_6], ['query']),
|
|
501
514
|
listDenialEntries: IDL.Func([IDL.Nat, IDL.Nat], [Result_9], ['query']),
|