@engramx/idl 0.16.0-rc.8 → 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.
@@ -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 Result_4 = IDL.Variant({ Ok: IDL.Nat, Err: Error });
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 Result_21 = IDL.Variant({ Ok: FleetCycleHealth, Err: Error });
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,11 +75,13 @@ export const idlFactory = ({ IDL }) => {
69
75
  leaf: StandingLeaf,
70
76
  witness: IDL.Vec(IDL.Nat8),
71
77
  });
72
- const Result_20 = IDL.Variant({ Ok: CertifiedStanding, Err: Error });
78
+ const Result_30 = IDL.Variant({ Ok: CertifiedStanding, Err: Error });
73
79
  const AnchorStats = IDL.Record({
74
80
  lastAnchorAtNs: IDL.Opt(IDL.Int),
81
+ lastEngramAnchorAtNs: IDL.Opt(IDL.Int),
75
82
  engramsAnchored: IDL.Nat,
76
83
  totalAnchors: IDL.Nat,
84
+ engramChainsAnchored: IDL.Opt(IDL.Nat),
77
85
  engramsWithConflicts: IDL.Nat,
78
86
  });
79
87
  const AuditHead = IDL.Record({
@@ -81,6 +89,7 @@ export const idlFactory = ({ IDL }) => {
81
89
  size: IDL.Nat,
82
90
  });
83
91
  const CertifiedAnchorLeaf = IDL.Record({
92
+ era: IDL.Opt(IDL.Nat),
84
93
  total: IDL.Nat,
85
94
  disputed: IDL.Bool,
86
95
  atNs: IDL.Int,
@@ -89,6 +98,7 @@ export const idlFactory = ({ IDL }) => {
89
98
  conflicts: IDL.Nat,
90
99
  version: IDL.Nat,
91
100
  refusedConflicts: IDL.Nat,
101
+ recoveredAtNs: IDL.Opt(IDL.Int),
92
102
  engram: IDL.Principal,
93
103
  });
94
104
  const CertifiedAnchor = IDL.Record({
@@ -103,18 +113,28 @@ export const idlFactory = ({ IDL }) => {
103
113
  size: IDL.Nat,
104
114
  witness: IDL.Opt(IDL.Vec(IDL.Nat8)),
105
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 });
106
126
  const CustodyMode = IDL.Variant({
107
127
  Sovereign: IDL.Null,
108
128
  Managed: IDL.Null,
109
129
  });
110
- const Result_5 = IDL.Variant({ Ok: CustodyMode, Err: Error });
130
+ const Result_11 = IDL.Variant({ Ok: CustodyMode, Err: Error });
111
131
  const OpenedThrough = IDL.Record({
112
132
  cutOffAtNs: IDL.Opt(IDL.Int),
113
133
  child: IDL.Principal,
114
134
  parent: IDL.Principal,
115
135
  });
116
- const Result_19 = IDL.Variant({ Ok: OpenedThrough, Err: Error });
117
- const Result_18 = IDL.Variant({ Ok: IDL.Vec(IDL.Nat8), Err: Error });
136
+ const Result_24 = IDL.Variant({ Ok: OpenedThrough, Err: Error });
137
+ const Result_28 = IDL.Variant({ Ok: IDL.Vec(IDL.Nat8), Err: Error });
118
138
  const ReleaseClass = IDL.Variant({
119
139
  Security: IDL.Null,
120
140
  Feature: IDL.Null,
@@ -137,7 +157,7 @@ export const idlFactory = ({ IDL }) => {
137
157
  totalEngrams: IDL.Nat,
138
158
  activeEngrams: IDL.Nat,
139
159
  });
140
- const Result_17 = IDL.Variant({ Ok: PrivateMetrics, Err: Error });
160
+ const Result_27 = IDL.Variant({ Ok: PrivateMetrics, Err: Error });
141
161
  const GenesisNote = IDL.Record({
142
162
  predecessorSize: IDL.Opt(IDL.Nat),
143
163
  predecessorHeadHash: IDL.Opt(IDL.Vec(IDL.Nat8)),
@@ -156,13 +176,25 @@ export const idlFactory = ({ IDL }) => {
156
176
  Deleted: IDL.Null,
157
177
  Frozen: IDL.Null,
158
178
  });
179
+ const ChangesCaused = IDL.Record({
180
+ sinceBirth: IDL.Bool,
181
+ count: IDL.Nat,
182
+ inFlight: IDL.Nat,
183
+ });
159
184
  const EngramRecordView = IDL.Record({
160
185
  status: EngramStatus,
186
+ changesCaused: IDL.Opt(ChangesCaused),
161
187
  owner: IDL.Principal,
162
188
  createdAtNs: IDL.Int,
163
189
  canisterId: IDL.Principal,
164
190
  });
165
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 });
166
198
  const OpeningCounts = IDL.Record({
167
199
  reopened: IDL.Nat,
168
200
  openedThroughParent: IDL.Nat,
@@ -172,7 +204,7 @@ export const idlFactory = ({ IDL }) => {
172
204
  reservationAttemptsRefusedAtCapacity: IDL.Nat,
173
205
  spawnAttemptsRefusedAtCap: IDL.Nat,
174
206
  });
175
- const Result_16 = IDL.Variant({ Ok: OpeningCounts, Err: Error });
207
+ const Result_25 = IDL.Variant({ Ok: OpeningCounts, Err: Error });
176
208
  const PairedSoon = IDL.Record({
177
209
  opened: IDL.Nat,
178
210
  pairedWithin7Days: IDL.Nat,
@@ -190,23 +222,56 @@ export const idlFactory = ({ IDL }) => {
190
222
  throughParent: PairedSoon,
191
223
  agentsByTreesSpanned: TreesSpanned,
192
224
  });
193
- const Result_15 = IDL.Variant({ Ok: ReferralCounts, Err: Error });
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 });
194
249
  const ReserveGateConfig = IDL.Record({
195
250
  enabled: IDL.Bool,
196
251
  inviteIssuer: IDL.Principal,
197
252
  trustedSigners: IDL.Vec(IDL.Principal),
198
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
+ });
199
264
  const UpdatePreference = IDL.Variant({
200
265
  ManualOnly: IDL.Null,
201
266
  AutoUpdate: IDL.Null,
202
267
  });
203
- const Result_14 = IDL.Variant({ Ok: IDL.Opt(IDL.Text), Err: Error });
268
+ const Result_21 = IDL.Variant({ Ok: IDL.Opt(IDL.Text), Err: Error });
204
269
  const Page_5 = IDL.Record({
205
270
  total: IDL.Nat,
206
271
  withheld: IDL.Nat,
207
272
  items: IDL.Vec(IDL.Principal),
208
273
  });
209
- const Result_12 = IDL.Variant({ Ok: Page_5, Err: Error });
274
+ const Result_18 = IDL.Variant({ Ok: Page_5, Err: Error });
210
275
  const AnchorConflict = IDL.Record({
211
276
  submittedHead: IDL.Vec(IDL.Nat8),
212
277
  atNs: IDL.Int,
@@ -219,13 +284,19 @@ export const idlFactory = ({ IDL }) => {
219
284
  withheld: IDL.Nat,
220
285
  items: IDL.Vec(AnchorConflict),
221
286
  });
222
- const Result_13 = IDL.Variant({ Ok: Page_6, Err: Error });
287
+ const Result_20 = IDL.Variant({ Ok: Page_6, Err: Error });
223
288
  const AnchorView = IDL.Record({
289
+ era: IDL.Opt(IDL.Nat),
224
290
  total: IDL.Nat,
225
291
  disputed: IDL.Bool,
226
292
  atNs: IDL.Int,
227
293
  head: IDL.Vec(IDL.Nat8),
228
294
  });
295
+ const SealedEntry = IDL.Record({
296
+ id: IDL.Nat,
297
+ entryHash: IDL.Vec(IDL.Nat8),
298
+ digest: IDL.Vec(IDL.Nat8),
299
+ });
229
300
  const Role = IDL.Variant({
230
301
  Anonymous: IDL.Null,
231
302
  Viewer: IDL.Null,
@@ -250,12 +321,14 @@ export const idlFactory = ({ IDL }) => {
250
321
  success: IDL.Bool,
251
322
  timestampNs: IDL.Int,
252
323
  });
253
- const Page_3 = IDL.Record({
324
+ const RecordPage = IDL.Record({
325
+ ringFloor: IDL.Nat,
254
326
  total: IDL.Nat,
255
- withheld: IDL.Nat,
327
+ sealed: IDL.Vec(SealedEntry),
256
328
  items: IDL.Vec(AuditEntry),
329
+ hashFirstFrom: IDL.Nat,
257
330
  });
258
- const Result_10 = IDL.Variant({ Ok: Page_3, Err: Error });
331
+ const Result_19 = IDL.Variant({ Ok: RecordPage, Err: Error });
259
332
  const ChangelogEntry = IDL.Record({
260
333
  atNs: IDL.Int,
261
334
  wasmHash: IDL.Text,
@@ -272,10 +345,16 @@ export const idlFactory = ({ IDL }) => {
272
345
  owner: IDL.Principal,
273
346
  child: IDL.Principal,
274
347
  });
275
- const Result_11 = IDL.Variant({
348
+ const Result_17 = IDL.Variant({
276
349
  Ok: IDL.Vec(OpenedEngram),
277
350
  Err: Error,
278
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 });
279
358
  const EndReason = IDL.Variant({
280
359
  Resigned: IDL.Null,
281
360
  OwnerRevoked: IDL.Null,
@@ -306,34 +385,79 @@ export const idlFactory = ({ IDL }) => {
306
385
  withheld: IDL.Nat,
307
386
  items: IDL.Vec(EngagementRow),
308
387
  });
309
- const Result_9 = IDL.Variant({ Ok: Page_2, Err: Error });
388
+ const Result_15 = IDL.Variant({ Ok: Page_2, Err: Error });
310
389
  const Page_1 = IDL.Record({
311
390
  total: IDL.Nat,
312
391
  withheld: IDL.Nat,
313
392
  items: IDL.Vec(EngramRecordView),
314
393
  });
315
- const Result_8 = IDL.Variant({ Ok: Page_1, Err: Error });
394
+ const Result_14 = IDL.Variant({ Ok: Page_1, Err: Error });
316
395
  const Dispute = IDL.Record({ statement: IDL.Text, atNs: IDL.Int });
317
396
  const Page = IDL.Record({
318
397
  total: IDL.Nat,
319
398
  withheld: IDL.Nat,
320
399
  items: IDL.Vec(IDL.Tuple(IDL.Principal, UpdatePreference)),
321
400
  });
322
- const Result_7 = IDL.Variant({ Ok: Page, Err: Error });
323
- const Result_6 = IDL.Variant({ Ok: IDL.Vec(IDL.Text), Err: Error });
324
- const Result_1 = IDL.Variant({ Ok: IDL.Principal, Err: Error });
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
+ });
325
449
  const MeterReading = IDL.Record({
326
450
  realizedPerDay: IDL.Opt(IDL.Nat),
327
451
  idlePerDay: IDL.Opt(IDL.Nat),
328
452
  cycles: IDL.Nat,
329
453
  freezeLineCycles: IDL.Nat,
330
454
  });
331
- const Result_3 = IDL.Variant({ Ok: MeterReading, Err: Error });
455
+ const Result_4 = IDL.Variant({ Ok: MeterReading, Err: Error });
332
456
  const ControlStep = IDL.Variant({
333
457
  EngramMustMove: IDL.Null,
334
458
  MovedByRegistry: IDL.Null,
335
459
  });
336
- const Result_2 = IDL.Variant({ Ok: ControlStep, Err: Error });
460
+ const Result_3 = IDL.Variant({ Ok: ControlStep, Err: Error });
337
461
  const Ending = IDL.Record({
338
462
  day: IDL.Int,
339
463
  key: IDL.Principal,
@@ -347,16 +471,22 @@ export const idlFactory = ({ IDL }) => {
347
471
  inviteCode: IDL.Text,
348
472
  });
349
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
+ });
350
478
  return IDL.Service({
351
479
  abandonMyEngram: IDL.Func([], [Result], []),
480
+ acceptEngramOffer: IDL.Func([IDL.Principal], [Result_32], []),
352
481
  addAuditViewer: IDL.Func([IDL.Principal], [Result], []),
353
482
  addChangelogEntry: IDL.Func([IDL.Text, IDL.Text], [Result], []),
354
483
  appendAgentDispute: IDL.Func([IDL.Text], [Result], []),
355
484
  claimSovereignty: IDL.Func([], [Result], []),
356
- engramWasmFinalize: IDL.Func([IDL.Text], [Result_4], []),
485
+ declineEngramOffer: IDL.Func([IDL.Principal], [Result], []),
486
+ engramWasmFinalize: IDL.Func([IDL.Text], [Result_7], []),
357
487
  engramWasmInit: IDL.Func([], [Result], []),
358
- engramWasmPushChunk: IDL.Func([IDL.Vec(IDL.Nat8)], [Result_4], []),
359
- fleetCycleHealth: IDL.Func([IDL.Nat, IDL.Nat, IDL.Nat], [Result_21], []),
488
+ engramWasmPushChunk: IDL.Func([IDL.Vec(IDL.Nat8)], [Result_7], []),
489
+ fleetCycleHealth: IDL.Func([IDL.Nat, IDL.Nat, IDL.Nat], [Result_31], []),
360
490
  fleetSummary: IDL.Func([], [FleetSummary], ['query']),
361
491
  getAbandonedAtNs: IDL.Func([IDL.Principal], [IDL.Opt(IDL.Int)], ['query']),
362
492
  getActivationFunnel: IDL.Func([], [ActivationFunnel], ['query']),
@@ -366,12 +496,15 @@ export const idlFactory = ({ IDL }) => {
366
496
  [IDL.Record({ agents: IDL.Nat, liveEngagements: IDL.Nat })],
367
497
  ['query'],
368
498
  ),
369
- getAgentStanding: IDL.Func([IDL.Principal], [Result_20], ['query']),
499
+ getAgentStanding: IDL.Func([IDL.Principal], [Result_30], ['query']),
370
500
  getAnchorStats: IDL.Func([], [AnchorStats], ['query']),
371
501
  getAuditHead: IDL.Func([], [AuditHead], ['query']),
372
502
  getCertifiedAnchor: IDL.Func([IDL.Principal], [IDL.Opt(CertifiedAnchor)], ['query']),
373
503
  getCertifiedAuditHead: IDL.Func([], [CertifiedAuditHead], ['query']),
374
- getCustodyMode: IDL.Func([IDL.Principal], [Result_5], ['query']),
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']),
375
508
  getCycleReserveStatus: IDL.Func(
376
509
  [],
377
510
  [
@@ -383,28 +516,33 @@ export const idlFactory = ({ IDL }) => {
383
516
  ['query'],
384
517
  ),
385
518
  getEngramNumberOf: IDL.Func([IDL.Principal], [IDL.Opt(IDL.Nat)], ['query']),
386
- getEngramOpenedThrough: IDL.Func([IDL.Principal], [Result_19], ['query']),
387
- getEngramWasmChunk: IDL.Func([IDL.Nat], [Result_18], ['query']),
519
+ getEngramOpenedThrough: IDL.Func([IDL.Principal], [Result_24], ['query']),
520
+ getEngramWasmChunk: IDL.Func([IDL.Nat], [Result_28], ['query']),
388
521
  getEngramWasmClass: IDL.Func([], [ReleaseClass], ['query']),
389
522
  getEngramWasmHash: IDL.Func([], [IDL.Text], ['query']),
390
523
  getEngramWasmInfo: IDL.Func([], [EngramWasmInfo], ['query']),
391
- getFleetMetrics: IDL.Func([], [Result_17], []),
524
+ getFleetMetrics: IDL.Func([], [Result_27], []),
392
525
  getGenesisNote: IDL.Func([], [GenesisNote], ['query']),
393
526
  getLastUpgrade: IDL.Func([IDL.Principal], [IDL.Opt(LastUpgrade)], ['query']),
394
527
  getMarketCanister: IDL.Func([], [IDL.Opt(IDL.Principal)], ['query']),
395
528
  getMetricsReader: IDL.Func([], [IDL.Opt(IDL.Principal)], ['query']),
396
529
  getMyEngram: IDL.Func([], [IDL.Opt(EngramRecordView)], ['query']),
397
530
  getMyReservation: IDL.Func([], [IDL.Opt(ReservationView)], ['query']),
398
- getOpeningCounts: IDL.Func([], [Result_16], ['query']),
399
- getReferralCounts: IDL.Func([IDL.Vec(IDL.Principal)], [Result_15], ['query']),
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']),
400
537
  getRentBiller: IDL.Func([], [IDL.Opt(IDL.Principal)], ['query']),
401
538
  getReserveGateConfig: IDL.Func([], [ReserveGateConfig], ['query']),
539
+ getRestartTotals: IDL.Func([], [RestartTotals], ['query']),
402
540
  getScreeningDenylistSize: IDL.Func([], [IDL.Nat], ['query']),
403
541
  getSecurityReleaseCount: IDL.Func([], [IDL.Nat], ['query']),
404
542
  getSponsoredCyclesTotal: IDL.Func([], [IDL.Nat], ['query']),
405
543
  getTreasuryAnchorId: IDL.Func([], [IDL.Opt(IDL.Principal)], ['query']),
406
544
  getUpdatePreference: IDL.Func([], [IDL.Opt(UpdatePreference)], ['query']),
407
- getUpgradeFundedTemplate: IDL.Func([IDL.Principal], [Result_14], ['query']),
545
+ getUpgradeFundedTemplate: IDL.Func([IDL.Principal], [Result_21], ['query']),
408
546
  getUpgradeSubsidyTotal: IDL.Func([], [IDL.Nat], ['query']),
409
547
  getUpgradeTopUpFloor: IDL.Func([], [IDL.Nat], ['query']),
410
548
  icrc21_canister_call_consent_message: IDL.Func(
@@ -436,39 +574,41 @@ export const idlFactory = ({ IDL }) => {
436
574
  ),
437
575
  isOfficialEngramWasm: IDL.Func([IDL.Text], [IDL.Bool], ['query']),
438
576
  isRegisteredActiveEngram: IDL.Func([IDL.Principal], [IDL.Bool], ['query']),
439
- listAgentEngrams: IDL.Func([IDL.Principal], [Result_12], ['query']),
440
- listAnchorConflicts: IDL.Func([IDL.Principal, IDL.Nat, IDL.Nat], [Result_13], ['query']),
577
+ listAgentEngrams: IDL.Func([IDL.Principal], [Result_18], ['query']),
578
+ listAnchorConflicts: IDL.Func([IDL.Principal, IDL.Nat, IDL.Nat], [Result_20], ['query']),
441
579
  listAnchors: IDL.Func([IDL.Principal], [IDL.Vec(AnchorView)], ['query']),
442
- listAuditEntries: IDL.Func([IDL.Nat, IDL.Nat], [Result_10], ['query']),
443
- listAuditViewers: IDL.Func([], [Result_12], ['query']),
580
+ listAuditEntries: IDL.Func([IDL.Nat, IDL.Nat], [Result_19], ['query']),
581
+ listAuditViewers: IDL.Func([], [Result_18], ['query']),
444
582
  listChangelogEntries: IDL.Func([IDL.Nat, IDL.Nat], [Page_4], ['query']),
445
- listChildrenOf: IDL.Func([IDL.Principal], [Result_11], ['query']),
446
- listDenialEntries: IDL.Func([IDL.Nat, IDL.Nat], [Result_10], ['query']),
583
+ listChildrenOf: IDL.Func([IDL.Principal], [Result_17], ['query']),
584
+ listDenialEntries: IDL.Func([IDL.Nat, IDL.Nat], [Result_16], ['query']),
447
585
  listEngagementRows: IDL.Func(
448
586
  [IDL.Int, IDL.Nat, IDL.Nat, IDL.Vec(IDL.Principal)],
449
- [Result_9],
587
+ [Result_15],
450
588
  [],
451
589
  ),
452
- listEngrams: IDL.Func([IDL.Nat, IDL.Nat], [Result_8], []),
590
+ listEngrams: IDL.Func([IDL.Nat, IDL.Nat], [Result_14], []),
453
591
  listMyAgentDisputes: IDL.Func([], [IDL.Vec(Dispute)], ['query']),
454
592
  listOfficialEngramWasmHashes: IDL.Func([], [IDL.Vec(IDL.Text)], ['query']),
455
593
  listPredecessors: IDL.Func([IDL.Principal], [IDL.Vec(IDL.Principal)], ['query']),
456
- listUpdatePrefs: IDL.Func([IDL.Nat, IDL.Nat], [Result_7], ['query']),
457
- mintReserveInvites: IDL.Func([IDL.Nat], [Result_6], []),
458
- probeCustodyMode: IDL.Func([], [Result_5], []),
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], []),
459
599
  provisionEngram: IDL.Func(
460
600
  [
461
601
  IDL.Opt(
462
602
  IDL.Record({
463
603
  walletProof: IDL.Opt(IDL.Vec(IDL.Nat8)),
464
604
  invite: IDL.Opt(IDL.Text),
465
- genesis: IDL.Opt(IDL.Record({ content: IDL.Vec(IDL.Nat8), path: IDL.Text })),
466
605
  }),
467
606
  ),
468
607
  ],
469
- [Result_1],
608
+ [Result_2],
470
609
  [],
471
610
  ),
611
+ recoverMyEngram: IDL.Func([], [Result_9], []),
472
612
  removeAuditViewer: IDL.Func([IDL.Principal], [Result], []),
473
613
  reserveEngram: IDL.Func(
474
614
  [
@@ -482,8 +622,11 @@ export const idlFactory = ({ IDL }) => {
482
622
  [Result],
483
623
  [],
484
624
  ),
625
+ resetEngramMemory: IDL.Func([IDL.Principal], [Result], []),
626
+ restartMyStoppedEngram: IDL.Func([], [Result_8], []),
485
627
  returnToManaged: IDL.Func([], [Result], []),
486
628
  setAdmin: IDL.Func([IDL.Principal], [Result], []),
629
+ setConsentOrigin: IDL.Func([IDL.Opt(IDL.Text)], [Result], []),
487
630
  setEngramWasm: IDL.Func([IDL.Vec(IDL.Nat8), IDL.Text], [Result], []),
488
631
  setEngramWasmClass: IDL.Func([ReleaseClass], [Result], []),
489
632
  setGenesisPredecessor: IDL.Func([IDL.Vec(IDL.Nat8), IDL.Nat], [Result], []),
@@ -494,24 +637,38 @@ export const idlFactory = ({ IDL }) => {
494
637
  setRentBiller: IDL.Func([IDL.Opt(IDL.Principal)], [Result], []),
495
638
  setReserveGateEnabled: IDL.Func([IDL.Bool], [Result], []),
496
639
  setScreeningDenylist: IDL.Func([IDL.Vec(IDL.Principal)], [Result], []),
497
- setSpawnCeiling: IDL.Func([IDL.Nat], [Result_4], []),
640
+ setSpawnCeiling: IDL.Func([IDL.Nat], [Result_7], []),
498
641
  setTreasuryAnchorId: IDL.Func([IDL.Opt(IDL.Principal)], [Result], []),
499
642
  setTrustedSigners: IDL.Func([IDL.Vec(IDL.Principal)], [Result], []),
500
643
  setUpdatePreference: IDL.Func([UpdatePreference], [Result], []),
501
- setUpgradeTopUpFloor: IDL.Func([IDL.Nat], [Result_4], []),
644
+ setUpgradeTopUpFloor: IDL.Func([IDL.Nat], [Result_7], []),
502
645
  setWasmAdmin: IDL.Func([IDL.Opt(IDL.Principal)], [Result], []),
646
+ stopMyEngramForRestart: IDL.Func([], [Result_6], []),
503
647
  sysAnchorHead: IDL.Func([IDL.Vec(IDL.Nat8), IDL.Nat], [Result], []),
648
+ sysCloseRestart: IDL.Func([], [Result_5], []),
504
649
  sysConfirmOwnershipTransfer: IDL.Func([IDL.Principal], [Result], []),
505
- sysMeterEngram: IDL.Func([IDL.Principal], [Result_3], []),
650
+ sysMeterEngram: IDL.Func([IDL.Principal], [Result_4], []),
651
+ sysNoteChildSignIn: IDL.Func([IDL.Record({ signIn: IDL.Opt(IDL.Principal) })], [Result], []),
506
652
  sysNoteReset: IDL.Func([], [Result], []),
507
- sysNotifyOwnershipTransfer: IDL.Func([IDL.Principal], [Result_2], []),
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
+ ),
508
665
  sysRecordAgentEdge: IDL.Func(
509
666
  [IDL.Record({ root: IDL.Principal, event: EdgeEvent })],
510
667
  [Result],
511
668
  [],
512
669
  ),
670
+ sysRepayUpgradeAdvance: IDL.Func([IDL.Record({ advanceId: IDL.Nat })], [Result_1], []),
513
671
  sysRevertOwnershipTransfer: IDL.Func([IDL.Principal], [Result], []),
514
- sysSpawnChild: IDL.Func([IDL.Principal], [Result_1], []),
515
672
  upgradeEngram: IDL.Func([IDL.Principal], [Result], []),
516
673
  upgradeMyEngram: IDL.Func([], [Result], []),
517
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-rc.8",
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.0"
45
+ "@icp-sdk/core": "^6.1.1"
46
46
  },
47
47
  "scripts": {
48
48
  "build": "node scripts/build.mjs"