@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.
- package/dist/engram.did +2038 -656
- package/dist/engram.idl.d.ts +1941 -658
- package/dist/engram.idl.js +691 -309
- package/dist/market.did +199 -152
- package/dist/market.idl.d.ts +201 -159
- package/dist/market.idl.js +74 -58
- package/dist/registry.did +899 -225
- package/dist/registry.idl.d.ts +867 -220
- package/dist/registry.idl.js +207 -52
- package/package.json +2 -2
package/dist/registry.idl.js
CHANGED
|
@@ -8,7 +8,13 @@ export const idlFactory = ({ IDL }) => {
|
|
|
8
8
|
Conflict: IDL.Text,
|
|
9
9
|
});
|
|
10
10
|
const Result = IDL.Variant({ Ok: IDL.Null, Err: Error });
|
|
11
|
-
const
|
|
11
|
+
const AcceptedAtRegistry = IDL.Record({
|
|
12
|
+
expiresAtNs: IDL.Int,
|
|
13
|
+
from: IDL.Principal,
|
|
14
|
+
custody: IDL.Variant({ Sovereign: IDL.Null, Managed: IDL.Null }),
|
|
15
|
+
});
|
|
16
|
+
const Result_32 = IDL.Variant({ Ok: AcceptedAtRegistry, Err: Error });
|
|
17
|
+
const Result_7 = IDL.Variant({ Ok: IDL.Nat, Err: Error });
|
|
12
18
|
const FleetCycleHealth = IDL.Record({
|
|
13
19
|
unreadable: IDL.Nat,
|
|
14
20
|
deleted: IDL.Nat,
|
|
@@ -21,7 +27,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
21
27
|
sovereignSkipped: IDL.Nat,
|
|
22
28
|
lowCycles: IDL.Nat,
|
|
23
29
|
});
|
|
24
|
-
const
|
|
30
|
+
const Result_31 = IDL.Variant({ Ok: FleetCycleHealth, Err: Error });
|
|
25
31
|
const FleetSummary = IDL.Record({
|
|
26
32
|
registrySinceNs: IDL.Opt(IDL.Int),
|
|
27
33
|
uniqueOwners: IDL.Nat,
|
|
@@ -69,7 +75,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
69
75
|
leaf: StandingLeaf,
|
|
70
76
|
witness: IDL.Vec(IDL.Nat8),
|
|
71
77
|
});
|
|
72
|
-
const
|
|
78
|
+
const Result_30 = IDL.Variant({ Ok: CertifiedStanding, Err: Error });
|
|
73
79
|
const AnchorStats = IDL.Record({
|
|
74
80
|
lastAnchorAtNs: IDL.Opt(IDL.Int),
|
|
75
81
|
lastEngramAnchorAtNs: IDL.Opt(IDL.Int),
|
|
@@ -83,6 +89,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
83
89
|
size: IDL.Nat,
|
|
84
90
|
});
|
|
85
91
|
const CertifiedAnchorLeaf = IDL.Record({
|
|
92
|
+
era: IDL.Opt(IDL.Nat),
|
|
86
93
|
total: IDL.Nat,
|
|
87
94
|
disputed: IDL.Bool,
|
|
88
95
|
atNs: IDL.Int,
|
|
@@ -91,6 +98,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
91
98
|
conflicts: IDL.Nat,
|
|
92
99
|
version: IDL.Nat,
|
|
93
100
|
refusedConflicts: IDL.Nat,
|
|
101
|
+
recoveredAtNs: IDL.Opt(IDL.Int),
|
|
94
102
|
engram: IDL.Principal,
|
|
95
103
|
});
|
|
96
104
|
const CertifiedAnchor = IDL.Record({
|
|
@@ -105,18 +113,28 @@ export const idlFactory = ({ IDL }) => {
|
|
|
105
113
|
size: IDL.Nat,
|
|
106
114
|
witness: IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
107
115
|
});
|
|
116
|
+
const CertifiedBirth = IDL.Record({
|
|
117
|
+
certificate: IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
118
|
+
witness: IDL.Vec(IDL.Nat8),
|
|
119
|
+
});
|
|
120
|
+
const ChildSignInOffer = IDL.Record({
|
|
121
|
+
parentActive: IDL.Bool,
|
|
122
|
+
parentIsFirstEngram: IDL.Bool,
|
|
123
|
+
parentOwner: IDL.Opt(IDL.Principal),
|
|
124
|
+
});
|
|
125
|
+
const Result_29 = IDL.Variant({ Ok: ChildSignInOffer, Err: Error });
|
|
108
126
|
const CustodyMode = IDL.Variant({
|
|
109
127
|
Sovereign: IDL.Null,
|
|
110
128
|
Managed: IDL.Null,
|
|
111
129
|
});
|
|
112
|
-
const
|
|
130
|
+
const Result_11 = IDL.Variant({ Ok: CustodyMode, Err: Error });
|
|
113
131
|
const OpenedThrough = IDL.Record({
|
|
114
132
|
cutOffAtNs: IDL.Opt(IDL.Int),
|
|
115
133
|
child: IDL.Principal,
|
|
116
134
|
parent: IDL.Principal,
|
|
117
135
|
});
|
|
118
|
-
const
|
|
119
|
-
const
|
|
136
|
+
const Result_24 = IDL.Variant({ Ok: OpenedThrough, Err: Error });
|
|
137
|
+
const Result_28 = IDL.Variant({ Ok: IDL.Vec(IDL.Nat8), Err: Error });
|
|
120
138
|
const ReleaseClass = IDL.Variant({
|
|
121
139
|
Security: IDL.Null,
|
|
122
140
|
Feature: IDL.Null,
|
|
@@ -139,7 +157,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
139
157
|
totalEngrams: IDL.Nat,
|
|
140
158
|
activeEngrams: IDL.Nat,
|
|
141
159
|
});
|
|
142
|
-
const
|
|
160
|
+
const Result_27 = IDL.Variant({ Ok: PrivateMetrics, Err: Error });
|
|
143
161
|
const GenesisNote = IDL.Record({
|
|
144
162
|
predecessorSize: IDL.Opt(IDL.Nat),
|
|
145
163
|
predecessorHeadHash: IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
@@ -158,13 +176,25 @@ export const idlFactory = ({ IDL }) => {
|
|
|
158
176
|
Deleted: IDL.Null,
|
|
159
177
|
Frozen: IDL.Null,
|
|
160
178
|
});
|
|
179
|
+
const ChangesCaused = IDL.Record({
|
|
180
|
+
sinceBirth: IDL.Bool,
|
|
181
|
+
count: IDL.Nat,
|
|
182
|
+
inFlight: IDL.Nat,
|
|
183
|
+
});
|
|
161
184
|
const EngramRecordView = IDL.Record({
|
|
162
185
|
status: EngramStatus,
|
|
186
|
+
changesCaused: IDL.Opt(ChangesCaused),
|
|
163
187
|
owner: IDL.Principal,
|
|
164
188
|
createdAtNs: IDL.Int,
|
|
165
189
|
canisterId: IDL.Principal,
|
|
166
190
|
});
|
|
167
191
|
const ReservationView = IDL.Record({ reservedAtNs: IDL.Int });
|
|
192
|
+
const RestartStatus = IDL.Record({
|
|
193
|
+
nextRestartAtNs: IDL.Opt(IDL.Int),
|
|
194
|
+
loanOwed: IDL.Nat,
|
|
195
|
+
openUntilNs: IDL.Opt(IDL.Int),
|
|
196
|
+
});
|
|
197
|
+
const Result_26 = IDL.Variant({ Ok: RestartStatus, Err: Error });
|
|
168
198
|
const OpeningCounts = IDL.Record({
|
|
169
199
|
reopened: IDL.Nat,
|
|
170
200
|
openedThroughParent: IDL.Nat,
|
|
@@ -174,7 +204,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
174
204
|
reservationAttemptsRefusedAtCapacity: IDL.Nat,
|
|
175
205
|
spawnAttemptsRefusedAtCap: IDL.Nat,
|
|
176
206
|
});
|
|
177
|
-
const
|
|
207
|
+
const Result_25 = IDL.Variant({ Ok: OpeningCounts, Err: Error });
|
|
178
208
|
const PairedSoon = IDL.Record({
|
|
179
209
|
opened: IDL.Nat,
|
|
180
210
|
pairedWithin7Days: IDL.Nat,
|
|
@@ -192,23 +222,56 @@ export const idlFactory = ({ IDL }) => {
|
|
|
192
222
|
throughParent: PairedSoon,
|
|
193
223
|
agentsByTreesSpanned: TreesSpanned,
|
|
194
224
|
});
|
|
195
|
-
const
|
|
225
|
+
const Result_23 = IDL.Variant({ Ok: ReferralCounts, Err: Error });
|
|
226
|
+
const RegistryClockHealth = IDL.Record({
|
|
227
|
+
nextWakeAtNs: IDL.Opt(IDL.Int),
|
|
228
|
+
lastAttemptAtNs: IDL.Opt(IDL.Int),
|
|
229
|
+
attemptTotal: IDL.Opt(IDL.Nat),
|
|
230
|
+
lastErrorAtNs: IDL.Opt(IDL.Int),
|
|
231
|
+
okTotal: IDL.Opt(IDL.Nat),
|
|
232
|
+
overdue: IDL.Opt(IDL.Nat),
|
|
233
|
+
lastError: IDL.Opt(IDL.Text),
|
|
234
|
+
lastOkAtNs: IDL.Opt(IDL.Int),
|
|
235
|
+
});
|
|
236
|
+
const RegistryHealth = IDL.Record({
|
|
237
|
+
anchors: IDL.Opt(AnchorStats),
|
|
238
|
+
adminRoles: IDL.Opt(AdminRoles),
|
|
239
|
+
atNs: IDL.Opt(IDL.Int),
|
|
240
|
+
clock: IDL.Opt(RegistryClockHealth),
|
|
241
|
+
cycleReserve: IDL.Opt(
|
|
242
|
+
IDL.Record({
|
|
243
|
+
cycleBalance: IDL.Nat,
|
|
244
|
+
minOperatingReserveCycles: IDL.Nat,
|
|
245
|
+
}),
|
|
246
|
+
),
|
|
247
|
+
});
|
|
248
|
+
const Result_22 = IDL.Variant({ Ok: RegistryHealth, Err: Error });
|
|
196
249
|
const ReserveGateConfig = IDL.Record({
|
|
197
250
|
enabled: IDL.Bool,
|
|
198
251
|
inviteIssuer: IDL.Principal,
|
|
199
252
|
trustedSigners: IDL.Vec(IDL.Principal),
|
|
200
253
|
});
|
|
254
|
+
const RestartTotals = IDL.Record({
|
|
255
|
+
repaid: IDL.Nat,
|
|
256
|
+
advanceOutstanding: IDL.Nat,
|
|
257
|
+
outstanding: IDL.Nat,
|
|
258
|
+
lent: IDL.Nat,
|
|
259
|
+
advanceReturned: IDL.Nat,
|
|
260
|
+
writtenOff: IDL.Nat,
|
|
261
|
+
advanceWrittenOff: IDL.Nat,
|
|
262
|
+
advancePaid: IDL.Nat,
|
|
263
|
+
});
|
|
201
264
|
const UpdatePreference = IDL.Variant({
|
|
202
265
|
ManualOnly: IDL.Null,
|
|
203
266
|
AutoUpdate: IDL.Null,
|
|
204
267
|
});
|
|
205
|
-
const
|
|
268
|
+
const Result_21 = IDL.Variant({ Ok: IDL.Opt(IDL.Text), Err: Error });
|
|
206
269
|
const Page_5 = IDL.Record({
|
|
207
270
|
total: IDL.Nat,
|
|
208
271
|
withheld: IDL.Nat,
|
|
209
272
|
items: IDL.Vec(IDL.Principal),
|
|
210
273
|
});
|
|
211
|
-
const
|
|
274
|
+
const Result_18 = IDL.Variant({ Ok: Page_5, Err: Error });
|
|
212
275
|
const AnchorConflict = IDL.Record({
|
|
213
276
|
submittedHead: IDL.Vec(IDL.Nat8),
|
|
214
277
|
atNs: IDL.Int,
|
|
@@ -221,13 +284,19 @@ export const idlFactory = ({ IDL }) => {
|
|
|
221
284
|
withheld: IDL.Nat,
|
|
222
285
|
items: IDL.Vec(AnchorConflict),
|
|
223
286
|
});
|
|
224
|
-
const
|
|
287
|
+
const Result_20 = IDL.Variant({ Ok: Page_6, Err: Error });
|
|
225
288
|
const AnchorView = IDL.Record({
|
|
289
|
+
era: IDL.Opt(IDL.Nat),
|
|
226
290
|
total: IDL.Nat,
|
|
227
291
|
disputed: IDL.Bool,
|
|
228
292
|
atNs: IDL.Int,
|
|
229
293
|
head: IDL.Vec(IDL.Nat8),
|
|
230
294
|
});
|
|
295
|
+
const SealedEntry = IDL.Record({
|
|
296
|
+
id: IDL.Nat,
|
|
297
|
+
entryHash: IDL.Vec(IDL.Nat8),
|
|
298
|
+
digest: IDL.Vec(IDL.Nat8),
|
|
299
|
+
});
|
|
231
300
|
const Role = IDL.Variant({
|
|
232
301
|
Anonymous: IDL.Null,
|
|
233
302
|
Viewer: IDL.Null,
|
|
@@ -252,12 +321,14 @@ export const idlFactory = ({ IDL }) => {
|
|
|
252
321
|
success: IDL.Bool,
|
|
253
322
|
timestampNs: IDL.Int,
|
|
254
323
|
});
|
|
255
|
-
const
|
|
324
|
+
const RecordPage = IDL.Record({
|
|
325
|
+
ringFloor: IDL.Nat,
|
|
256
326
|
total: IDL.Nat,
|
|
257
|
-
|
|
327
|
+
sealed: IDL.Vec(SealedEntry),
|
|
258
328
|
items: IDL.Vec(AuditEntry),
|
|
329
|
+
hashFirstFrom: IDL.Nat,
|
|
259
330
|
});
|
|
260
|
-
const
|
|
331
|
+
const Result_19 = IDL.Variant({ Ok: RecordPage, Err: Error });
|
|
261
332
|
const ChangelogEntry = IDL.Record({
|
|
262
333
|
atNs: IDL.Int,
|
|
263
334
|
wasmHash: IDL.Text,
|
|
@@ -274,10 +345,16 @@ export const idlFactory = ({ IDL }) => {
|
|
|
274
345
|
owner: IDL.Principal,
|
|
275
346
|
child: IDL.Principal,
|
|
276
347
|
});
|
|
277
|
-
const
|
|
348
|
+
const Result_17 = IDL.Variant({
|
|
278
349
|
Ok: IDL.Vec(OpenedEngram),
|
|
279
350
|
Err: Error,
|
|
280
351
|
});
|
|
352
|
+
const Page_3 = IDL.Record({
|
|
353
|
+
total: IDL.Nat,
|
|
354
|
+
withheld: IDL.Nat,
|
|
355
|
+
items: IDL.Vec(AuditEntry),
|
|
356
|
+
});
|
|
357
|
+
const Result_16 = IDL.Variant({ Ok: Page_3, Err: Error });
|
|
281
358
|
const EndReason = IDL.Variant({
|
|
282
359
|
Resigned: IDL.Null,
|
|
283
360
|
OwnerRevoked: IDL.Null,
|
|
@@ -308,34 +385,79 @@ export const idlFactory = ({ IDL }) => {
|
|
|
308
385
|
withheld: IDL.Nat,
|
|
309
386
|
items: IDL.Vec(EngagementRow),
|
|
310
387
|
});
|
|
311
|
-
const
|
|
388
|
+
const Result_15 = IDL.Variant({ Ok: Page_2, Err: Error });
|
|
312
389
|
const Page_1 = IDL.Record({
|
|
313
390
|
total: IDL.Nat,
|
|
314
391
|
withheld: IDL.Nat,
|
|
315
392
|
items: IDL.Vec(EngramRecordView),
|
|
316
393
|
});
|
|
317
|
-
const
|
|
394
|
+
const Result_14 = IDL.Variant({ Ok: Page_1, Err: Error });
|
|
318
395
|
const Dispute = IDL.Record({ statement: IDL.Text, atNs: IDL.Int });
|
|
319
396
|
const Page = IDL.Record({
|
|
320
397
|
total: IDL.Nat,
|
|
321
398
|
withheld: IDL.Nat,
|
|
322
399
|
items: IDL.Vec(IDL.Tuple(IDL.Principal, UpdatePreference)),
|
|
323
400
|
});
|
|
324
|
-
const
|
|
325
|
-
const
|
|
326
|
-
const
|
|
401
|
+
const Result_13 = IDL.Variant({ Ok: Page, Err: Error });
|
|
402
|
+
const Result_12 = IDL.Variant({ Ok: IDL.Vec(IDL.Text), Err: Error });
|
|
403
|
+
const EngramComputeView = IDL.Record({
|
|
404
|
+
restartOpenUntilNs: IDL.Opt(IDL.Int),
|
|
405
|
+
recoverOpen: IDL.Opt(IDL.Bool),
|
|
406
|
+
idlePerDay: IDL.Nat,
|
|
407
|
+
erased: IDL.Opt(IDL.Bool),
|
|
408
|
+
line: IDL.Nat,
|
|
409
|
+
quiet: IDL.Bool,
|
|
410
|
+
eraseAboutNs: IDL.Opt(IDL.Int),
|
|
411
|
+
cycles: IDL.Nat,
|
|
412
|
+
runState: IDL.Variant({
|
|
413
|
+
stopped: IDL.Null,
|
|
414
|
+
stopping: IDL.Null,
|
|
415
|
+
running: IDL.Null,
|
|
416
|
+
}),
|
|
417
|
+
thresholdSecs: IDL.Nat,
|
|
418
|
+
recoveredAtNs: IDL.Opt(IDL.Int),
|
|
419
|
+
updateWaiting: IDL.Bool,
|
|
420
|
+
frozen: IDL.Bool,
|
|
421
|
+
});
|
|
422
|
+
const Result_10 = IDL.Variant({ Ok: EngramComputeView, Err: Error });
|
|
423
|
+
const Result_2 = IDL.Variant({ Ok: IDL.Principal, Err: Error });
|
|
424
|
+
const RecoverReply = IDL.Record({
|
|
425
|
+
billingLinked: IDL.Bool,
|
|
426
|
+
balance: IDL.Nat,
|
|
427
|
+
finished: IDL.Bool,
|
|
428
|
+
number: IDL.Opt(IDL.Nat),
|
|
429
|
+
restartLoanOwed: IDL.Nat,
|
|
430
|
+
template: IDL.Text,
|
|
431
|
+
});
|
|
432
|
+
const Result_9 = IDL.Variant({ Ok: RecoverReply, Err: Error });
|
|
433
|
+
const RestartReply = IDL.Record({
|
|
434
|
+
securityInstalled: IDL.Bool,
|
|
435
|
+
lentCycles: IDL.Nat,
|
|
436
|
+
updateWaiting: IDL.Bool,
|
|
437
|
+
installError: IDL.Opt(IDL.Text),
|
|
438
|
+
engramTold: IDL.Bool,
|
|
439
|
+
});
|
|
440
|
+
const Result_8 = IDL.Variant({ Ok: RestartReply, Err: Error });
|
|
441
|
+
const Result_6 = IDL.Variant({
|
|
442
|
+
Ok: IDL.Record({ updateWaiting: IDL.Bool, finishByNs: IDL.Int }),
|
|
443
|
+
Err: Error,
|
|
444
|
+
});
|
|
445
|
+
const Result_5 = IDL.Variant({
|
|
446
|
+
Ok: IDL.Record({ repaid: IDL.Nat, stillOwed: IDL.Nat }),
|
|
447
|
+
Err: Error,
|
|
448
|
+
});
|
|
327
449
|
const MeterReading = IDL.Record({
|
|
328
450
|
realizedPerDay: IDL.Opt(IDL.Nat),
|
|
329
451
|
idlePerDay: IDL.Opt(IDL.Nat),
|
|
330
452
|
cycles: IDL.Nat,
|
|
331
453
|
freezeLineCycles: IDL.Nat,
|
|
332
454
|
});
|
|
333
|
-
const
|
|
455
|
+
const Result_4 = IDL.Variant({ Ok: MeterReading, Err: Error });
|
|
334
456
|
const ControlStep = IDL.Variant({
|
|
335
457
|
EngramMustMove: IDL.Null,
|
|
336
458
|
MovedByRegistry: IDL.Null,
|
|
337
459
|
});
|
|
338
|
-
const
|
|
460
|
+
const Result_3 = IDL.Variant({ Ok: ControlStep, Err: Error });
|
|
339
461
|
const Ending = IDL.Record({
|
|
340
462
|
day: IDL.Int,
|
|
341
463
|
key: IDL.Principal,
|
|
@@ -349,16 +471,22 @@ export const idlFactory = ({ IDL }) => {
|
|
|
349
471
|
inviteCode: IDL.Text,
|
|
350
472
|
});
|
|
351
473
|
const EdgeEvent = IDL.Variant({ Ended: Ending, Added: EnrolmentProof });
|
|
474
|
+
const Result_1 = IDL.Variant({
|
|
475
|
+
Ok: IDL.Record({ accepted: IDL.Nat }),
|
|
476
|
+
Err: Error,
|
|
477
|
+
});
|
|
352
478
|
return IDL.Service({
|
|
353
479
|
abandonMyEngram: IDL.Func([], [Result], []),
|
|
480
|
+
acceptEngramOffer: IDL.Func([IDL.Principal], [Result_32], []),
|
|
354
481
|
addAuditViewer: IDL.Func([IDL.Principal], [Result], []),
|
|
355
482
|
addChangelogEntry: IDL.Func([IDL.Text, IDL.Text], [Result], []),
|
|
356
483
|
appendAgentDispute: IDL.Func([IDL.Text], [Result], []),
|
|
357
484
|
claimSovereignty: IDL.Func([], [Result], []),
|
|
358
|
-
|
|
485
|
+
declineEngramOffer: IDL.Func([IDL.Principal], [Result], []),
|
|
486
|
+
engramWasmFinalize: IDL.Func([IDL.Text], [Result_7], []),
|
|
359
487
|
engramWasmInit: IDL.Func([], [Result], []),
|
|
360
|
-
engramWasmPushChunk: IDL.Func([IDL.Vec(IDL.Nat8)], [
|
|
361
|
-
fleetCycleHealth: IDL.Func([IDL.Nat, IDL.Nat, IDL.Nat], [
|
|
488
|
+
engramWasmPushChunk: IDL.Func([IDL.Vec(IDL.Nat8)], [Result_7], []),
|
|
489
|
+
fleetCycleHealth: IDL.Func([IDL.Nat, IDL.Nat, IDL.Nat], [Result_31], []),
|
|
362
490
|
fleetSummary: IDL.Func([], [FleetSummary], ['query']),
|
|
363
491
|
getAbandonedAtNs: IDL.Func([IDL.Principal], [IDL.Opt(IDL.Int)], ['query']),
|
|
364
492
|
getActivationFunnel: IDL.Func([], [ActivationFunnel], ['query']),
|
|
@@ -368,12 +496,15 @@ export const idlFactory = ({ IDL }) => {
|
|
|
368
496
|
[IDL.Record({ agents: IDL.Nat, liveEngagements: IDL.Nat })],
|
|
369
497
|
['query'],
|
|
370
498
|
),
|
|
371
|
-
getAgentStanding: IDL.Func([IDL.Principal], [
|
|
499
|
+
getAgentStanding: IDL.Func([IDL.Principal], [Result_30], ['query']),
|
|
372
500
|
getAnchorStats: IDL.Func([], [AnchorStats], ['query']),
|
|
373
501
|
getAuditHead: IDL.Func([], [AuditHead], ['query']),
|
|
374
502
|
getCertifiedAnchor: IDL.Func([IDL.Principal], [IDL.Opt(CertifiedAnchor)], ['query']),
|
|
375
503
|
getCertifiedAuditHead: IDL.Func([], [CertifiedAuditHead], ['query']),
|
|
376
|
-
|
|
504
|
+
getCertifiedBirth: IDL.Func([IDL.Vec(IDL.Nat8)], [IDL.Opt(CertifiedBirth)], ['query']),
|
|
505
|
+
getChildSignInOffer: IDL.Func([IDL.Principal], [Result_29], ['query']),
|
|
506
|
+
getConsentOrigin: IDL.Func([], [IDL.Opt(IDL.Text)], ['query']),
|
|
507
|
+
getCustodyMode: IDL.Func([IDL.Principal], [Result_11], ['query']),
|
|
377
508
|
getCycleReserveStatus: IDL.Func(
|
|
378
509
|
[],
|
|
379
510
|
[
|
|
@@ -385,28 +516,33 @@ export const idlFactory = ({ IDL }) => {
|
|
|
385
516
|
['query'],
|
|
386
517
|
),
|
|
387
518
|
getEngramNumberOf: IDL.Func([IDL.Principal], [IDL.Opt(IDL.Nat)], ['query']),
|
|
388
|
-
getEngramOpenedThrough: IDL.Func([IDL.Principal], [
|
|
389
|
-
getEngramWasmChunk: IDL.Func([IDL.Nat], [
|
|
519
|
+
getEngramOpenedThrough: IDL.Func([IDL.Principal], [Result_24], ['query']),
|
|
520
|
+
getEngramWasmChunk: IDL.Func([IDL.Nat], [Result_28], ['query']),
|
|
390
521
|
getEngramWasmClass: IDL.Func([], [ReleaseClass], ['query']),
|
|
391
522
|
getEngramWasmHash: IDL.Func([], [IDL.Text], ['query']),
|
|
392
523
|
getEngramWasmInfo: IDL.Func([], [EngramWasmInfo], ['query']),
|
|
393
|
-
getFleetMetrics: IDL.Func([], [
|
|
524
|
+
getFleetMetrics: IDL.Func([], [Result_27], []),
|
|
394
525
|
getGenesisNote: IDL.Func([], [GenesisNote], ['query']),
|
|
395
526
|
getLastUpgrade: IDL.Func([IDL.Principal], [IDL.Opt(LastUpgrade)], ['query']),
|
|
396
527
|
getMarketCanister: IDL.Func([], [IDL.Opt(IDL.Principal)], ['query']),
|
|
397
528
|
getMetricsReader: IDL.Func([], [IDL.Opt(IDL.Principal)], ['query']),
|
|
398
529
|
getMyEngram: IDL.Func([], [IDL.Opt(EngramRecordView)], ['query']),
|
|
399
530
|
getMyReservation: IDL.Func([], [IDL.Opt(ReservationView)], ['query']),
|
|
400
|
-
|
|
401
|
-
|
|
531
|
+
getMyRestartStatus: IDL.Func([], [Result_26], ['query']),
|
|
532
|
+
getOpeningCounts: IDL.Func([], [Result_25], ['query']),
|
|
533
|
+
getParentOf: IDL.Func([IDL.Principal], [Result_24], ['query']),
|
|
534
|
+
getRecoveredAtNs: IDL.Func([IDL.Principal], [IDL.Opt(IDL.Int)], ['query']),
|
|
535
|
+
getReferralCounts: IDL.Func([IDL.Vec(IDL.Principal)], [Result_23], ['query']),
|
|
536
|
+
getRegistryHealth: IDL.Func([], [Result_22], ['query']),
|
|
402
537
|
getRentBiller: IDL.Func([], [IDL.Opt(IDL.Principal)], ['query']),
|
|
403
538
|
getReserveGateConfig: IDL.Func([], [ReserveGateConfig], ['query']),
|
|
539
|
+
getRestartTotals: IDL.Func([], [RestartTotals], ['query']),
|
|
404
540
|
getScreeningDenylistSize: IDL.Func([], [IDL.Nat], ['query']),
|
|
405
541
|
getSecurityReleaseCount: IDL.Func([], [IDL.Nat], ['query']),
|
|
406
542
|
getSponsoredCyclesTotal: IDL.Func([], [IDL.Nat], ['query']),
|
|
407
543
|
getTreasuryAnchorId: IDL.Func([], [IDL.Opt(IDL.Principal)], ['query']),
|
|
408
544
|
getUpdatePreference: IDL.Func([], [IDL.Opt(UpdatePreference)], ['query']),
|
|
409
|
-
getUpgradeFundedTemplate: IDL.Func([IDL.Principal], [
|
|
545
|
+
getUpgradeFundedTemplate: IDL.Func([IDL.Principal], [Result_21], ['query']),
|
|
410
546
|
getUpgradeSubsidyTotal: IDL.Func([], [IDL.Nat], ['query']),
|
|
411
547
|
getUpgradeTopUpFloor: IDL.Func([], [IDL.Nat], ['query']),
|
|
412
548
|
icrc21_canister_call_consent_message: IDL.Func(
|
|
@@ -438,39 +574,41 @@ export const idlFactory = ({ IDL }) => {
|
|
|
438
574
|
),
|
|
439
575
|
isOfficialEngramWasm: IDL.Func([IDL.Text], [IDL.Bool], ['query']),
|
|
440
576
|
isRegisteredActiveEngram: IDL.Func([IDL.Principal], [IDL.Bool], ['query']),
|
|
441
|
-
listAgentEngrams: IDL.Func([IDL.Principal], [
|
|
442
|
-
listAnchorConflicts: IDL.Func([IDL.Principal, IDL.Nat, IDL.Nat], [
|
|
577
|
+
listAgentEngrams: IDL.Func([IDL.Principal], [Result_18], ['query']),
|
|
578
|
+
listAnchorConflicts: IDL.Func([IDL.Principal, IDL.Nat, IDL.Nat], [Result_20], ['query']),
|
|
443
579
|
listAnchors: IDL.Func([IDL.Principal], [IDL.Vec(AnchorView)], ['query']),
|
|
444
|
-
listAuditEntries: IDL.Func([IDL.Nat, IDL.Nat], [
|
|
445
|
-
listAuditViewers: IDL.Func([], [
|
|
580
|
+
listAuditEntries: IDL.Func([IDL.Nat, IDL.Nat], [Result_19], ['query']),
|
|
581
|
+
listAuditViewers: IDL.Func([], [Result_18], ['query']),
|
|
446
582
|
listChangelogEntries: IDL.Func([IDL.Nat, IDL.Nat], [Page_4], ['query']),
|
|
447
|
-
listChildrenOf: IDL.Func([IDL.Principal], [
|
|
448
|
-
listDenialEntries: IDL.Func([IDL.Nat, IDL.Nat], [
|
|
583
|
+
listChildrenOf: IDL.Func([IDL.Principal], [Result_17], ['query']),
|
|
584
|
+
listDenialEntries: IDL.Func([IDL.Nat, IDL.Nat], [Result_16], ['query']),
|
|
449
585
|
listEngagementRows: IDL.Func(
|
|
450
586
|
[IDL.Int, IDL.Nat, IDL.Nat, IDL.Vec(IDL.Principal)],
|
|
451
|
-
[
|
|
587
|
+
[Result_15],
|
|
452
588
|
[],
|
|
453
589
|
),
|
|
454
|
-
listEngrams: IDL.Func([IDL.Nat, IDL.Nat], [
|
|
590
|
+
listEngrams: IDL.Func([IDL.Nat, IDL.Nat], [Result_14], []),
|
|
455
591
|
listMyAgentDisputes: IDL.Func([], [IDL.Vec(Dispute)], ['query']),
|
|
456
592
|
listOfficialEngramWasmHashes: IDL.Func([], [IDL.Vec(IDL.Text)], ['query']),
|
|
457
593
|
listPredecessors: IDL.Func([IDL.Principal], [IDL.Vec(IDL.Principal)], ['query']),
|
|
458
|
-
listUpdatePrefs: IDL.Func([IDL.Nat, IDL.Nat], [
|
|
459
|
-
mintReserveInvites: IDL.Func([IDL.Nat], [
|
|
460
|
-
probeCustodyMode: IDL.Func([], [
|
|
594
|
+
listUpdatePrefs: IDL.Func([IDL.Nat, IDL.Nat], [Result_13], ['query']),
|
|
595
|
+
mintReserveInvites: IDL.Func([IDL.Nat], [Result_12], []),
|
|
596
|
+
probeCustodyMode: IDL.Func([], [Result_11], []),
|
|
597
|
+
probeMyEngramCompute: IDL.Func([], [Result_10], []),
|
|
598
|
+
probeOpenedEngramCompute: IDL.Func([IDL.Principal], [Result_10], []),
|
|
461
599
|
provisionEngram: IDL.Func(
|
|
462
600
|
[
|
|
463
601
|
IDL.Opt(
|
|
464
602
|
IDL.Record({
|
|
465
603
|
walletProof: IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
466
604
|
invite: IDL.Opt(IDL.Text),
|
|
467
|
-
genesis: IDL.Opt(IDL.Record({ content: IDL.Vec(IDL.Nat8), path: IDL.Text })),
|
|
468
605
|
}),
|
|
469
606
|
),
|
|
470
607
|
],
|
|
471
|
-
[
|
|
608
|
+
[Result_2],
|
|
472
609
|
[],
|
|
473
610
|
),
|
|
611
|
+
recoverMyEngram: IDL.Func([], [Result_9], []),
|
|
474
612
|
removeAuditViewer: IDL.Func([IDL.Principal], [Result], []),
|
|
475
613
|
reserveEngram: IDL.Func(
|
|
476
614
|
[
|
|
@@ -484,8 +622,11 @@ export const idlFactory = ({ IDL }) => {
|
|
|
484
622
|
[Result],
|
|
485
623
|
[],
|
|
486
624
|
),
|
|
625
|
+
resetEngramMemory: IDL.Func([IDL.Principal], [Result], []),
|
|
626
|
+
restartMyStoppedEngram: IDL.Func([], [Result_8], []),
|
|
487
627
|
returnToManaged: IDL.Func([], [Result], []),
|
|
488
628
|
setAdmin: IDL.Func([IDL.Principal], [Result], []),
|
|
629
|
+
setConsentOrigin: IDL.Func([IDL.Opt(IDL.Text)], [Result], []),
|
|
489
630
|
setEngramWasm: IDL.Func([IDL.Vec(IDL.Nat8), IDL.Text], [Result], []),
|
|
490
631
|
setEngramWasmClass: IDL.Func([ReleaseClass], [Result], []),
|
|
491
632
|
setGenesisPredecessor: IDL.Func([IDL.Vec(IDL.Nat8), IDL.Nat], [Result], []),
|
|
@@ -496,24 +637,38 @@ export const idlFactory = ({ IDL }) => {
|
|
|
496
637
|
setRentBiller: IDL.Func([IDL.Opt(IDL.Principal)], [Result], []),
|
|
497
638
|
setReserveGateEnabled: IDL.Func([IDL.Bool], [Result], []),
|
|
498
639
|
setScreeningDenylist: IDL.Func([IDL.Vec(IDL.Principal)], [Result], []),
|
|
499
|
-
setSpawnCeiling: IDL.Func([IDL.Nat], [
|
|
640
|
+
setSpawnCeiling: IDL.Func([IDL.Nat], [Result_7], []),
|
|
500
641
|
setTreasuryAnchorId: IDL.Func([IDL.Opt(IDL.Principal)], [Result], []),
|
|
501
642
|
setTrustedSigners: IDL.Func([IDL.Vec(IDL.Principal)], [Result], []),
|
|
502
643
|
setUpdatePreference: IDL.Func([UpdatePreference], [Result], []),
|
|
503
|
-
setUpgradeTopUpFloor: IDL.Func([IDL.Nat], [
|
|
644
|
+
setUpgradeTopUpFloor: IDL.Func([IDL.Nat], [Result_7], []),
|
|
504
645
|
setWasmAdmin: IDL.Func([IDL.Opt(IDL.Principal)], [Result], []),
|
|
646
|
+
stopMyEngramForRestart: IDL.Func([], [Result_6], []),
|
|
505
647
|
sysAnchorHead: IDL.Func([IDL.Vec(IDL.Nat8), IDL.Nat], [Result], []),
|
|
648
|
+
sysCloseRestart: IDL.Func([], [Result_5], []),
|
|
506
649
|
sysConfirmOwnershipTransfer: IDL.Func([IDL.Principal], [Result], []),
|
|
507
|
-
sysMeterEngram: IDL.Func([IDL.Principal], [
|
|
650
|
+
sysMeterEngram: IDL.Func([IDL.Principal], [Result_4], []),
|
|
651
|
+
sysNoteChildSignIn: IDL.Func([IDL.Record({ signIn: IDL.Opt(IDL.Principal) })], [Result], []),
|
|
508
652
|
sysNoteReset: IDL.Func([], [Result], []),
|
|
509
|
-
sysNotifyOwnershipTransfer: IDL.Func([IDL.Principal], [
|
|
653
|
+
sysNotifyOwnershipTransfer: IDL.Func([IDL.Principal], [Result_3], []),
|
|
654
|
+
sysOfferOwnership: IDL.Func([IDL.Principal, IDL.Int], [Result], []),
|
|
655
|
+
sysOpenChild: IDL.Func(
|
|
656
|
+
[
|
|
657
|
+
IDL.Record({
|
|
658
|
+
ownerKey: IDL.Principal,
|
|
659
|
+
signIn: IDL.Opt(IDL.Principal),
|
|
660
|
+
}),
|
|
661
|
+
],
|
|
662
|
+
[Result_2],
|
|
663
|
+
[],
|
|
664
|
+
),
|
|
510
665
|
sysRecordAgentEdge: IDL.Func(
|
|
511
666
|
[IDL.Record({ root: IDL.Principal, event: EdgeEvent })],
|
|
512
667
|
[Result],
|
|
513
668
|
[],
|
|
514
669
|
),
|
|
670
|
+
sysRepayUpgradeAdvance: IDL.Func([IDL.Record({ advanceId: IDL.Nat })], [Result_1], []),
|
|
515
671
|
sysRevertOwnershipTransfer: IDL.Func([IDL.Principal], [Result], []),
|
|
516
|
-
sysSpawnChild: IDL.Func([IDL.Principal], [Result_1], []),
|
|
517
672
|
upgradeEngram: IDL.Func([IDL.Principal], [Result], []),
|
|
518
673
|
upgradeMyEngram: IDL.Func([], [Result], []),
|
|
519
674
|
verifyEngramActiveOwner: IDL.Func([IDL.Principal, IDL.Principal], [IDL.Bool], ['query']),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@engramx/idl",
|
|
3
|
-
"version": "0.16.0
|
|
3
|
+
"version": "0.16.0",
|
|
4
4
|
"description": "The Candid interfaces of the EngramX canisters (engram, registry, market) — the .did files and the JS/TS IDL factories generated from them, published with every release so code that calls them pins the interface by version.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "EngramX <developer@engramx.ai>",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"access": "public"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
|
-
"@icp-sdk/core": "^6.1.
|
|
45
|
+
"@icp-sdk/core": "^6.1.1"
|
|
46
46
|
},
|
|
47
47
|
"scripts": {
|
|
48
48
|
"build": "node scripts/build.mjs"
|