@engramx/idl 0.16.0-rc.22 → 0.16.0-rc.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -21,7 +21,7 @@ export const idlFactory = ({ IDL }) => {
21
21
  sovereignSkipped: IDL.Nat,
22
22
  lowCycles: IDL.Nat,
23
23
  });
24
- const Result_30 = IDL.Variant({ Ok: FleetCycleHealth, Err: Error });
24
+ const Result_31 = IDL.Variant({ Ok: FleetCycleHealth, Err: Error });
25
25
  const FleetSummary = IDL.Record({
26
26
  registrySinceNs: IDL.Opt(IDL.Int),
27
27
  uniqueOwners: IDL.Nat,
@@ -69,7 +69,7 @@ export const idlFactory = ({ IDL }) => {
69
69
  leaf: StandingLeaf,
70
70
  witness: IDL.Vec(IDL.Nat8),
71
71
  });
72
- const Result_29 = IDL.Variant({ Ok: CertifiedStanding, Err: Error });
72
+ const Result_30 = IDL.Variant({ Ok: CertifiedStanding, Err: Error });
73
73
  const AnchorStats = IDL.Record({
74
74
  lastAnchorAtNs: IDL.Opt(IDL.Int),
75
75
  lastEngramAnchorAtNs: IDL.Opt(IDL.Int),
@@ -83,6 +83,7 @@ export const idlFactory = ({ IDL }) => {
83
83
  size: IDL.Nat,
84
84
  });
85
85
  const CertifiedAnchorLeaf = IDL.Record({
86
+ era: IDL.Opt(IDL.Nat),
86
87
  total: IDL.Nat,
87
88
  disputed: IDL.Bool,
88
89
  atNs: IDL.Int,
@@ -91,6 +92,7 @@ export const idlFactory = ({ IDL }) => {
91
92
  conflicts: IDL.Nat,
92
93
  version: IDL.Nat,
93
94
  refusedConflicts: IDL.Nat,
95
+ recoveredAtNs: IDL.Opt(IDL.Int),
94
96
  engram: IDL.Principal,
95
97
  });
96
98
  const CertifiedAnchor = IDL.Record({
@@ -114,19 +116,19 @@ export const idlFactory = ({ IDL }) => {
114
116
  parentIsFirstEngram: IDL.Bool,
115
117
  parentOwner: IDL.Opt(IDL.Principal),
116
118
  });
117
- const Result_28 = IDL.Variant({ Ok: ChildSignInOffer, Err: Error });
119
+ const Result_29 = IDL.Variant({ Ok: ChildSignInOffer, Err: Error });
118
120
  const CustodyMode = IDL.Variant({
119
121
  Sovereign: IDL.Null,
120
122
  Managed: IDL.Null,
121
123
  });
122
- const Result_10 = IDL.Variant({ Ok: CustodyMode, Err: Error });
124
+ const Result_11 = IDL.Variant({ Ok: CustodyMode, Err: Error });
123
125
  const OpenedThrough = IDL.Record({
124
126
  cutOffAtNs: IDL.Opt(IDL.Int),
125
127
  child: IDL.Principal,
126
128
  parent: IDL.Principal,
127
129
  });
128
- const Result_23 = IDL.Variant({ Ok: OpenedThrough, Err: Error });
129
- const Result_27 = IDL.Variant({ Ok: IDL.Vec(IDL.Nat8), Err: Error });
130
+ const Result_24 = IDL.Variant({ Ok: OpenedThrough, Err: Error });
131
+ const Result_28 = IDL.Variant({ Ok: IDL.Vec(IDL.Nat8), Err: Error });
130
132
  const ReleaseClass = IDL.Variant({
131
133
  Security: IDL.Null,
132
134
  Feature: IDL.Null,
@@ -149,7 +151,7 @@ export const idlFactory = ({ IDL }) => {
149
151
  totalEngrams: IDL.Nat,
150
152
  activeEngrams: IDL.Nat,
151
153
  });
152
- const Result_26 = IDL.Variant({ Ok: PrivateMetrics, Err: Error });
154
+ const Result_27 = IDL.Variant({ Ok: PrivateMetrics, Err: Error });
153
155
  const GenesisNote = IDL.Record({
154
156
  predecessorSize: IDL.Opt(IDL.Nat),
155
157
  predecessorHeadHash: IDL.Opt(IDL.Vec(IDL.Nat8)),
@@ -180,7 +182,7 @@ export const idlFactory = ({ IDL }) => {
180
182
  loanOwed: IDL.Nat,
181
183
  openUntilNs: IDL.Opt(IDL.Int),
182
184
  });
183
- const Result_25 = IDL.Variant({ Ok: RestartStatus, Err: Error });
185
+ const Result_26 = IDL.Variant({ Ok: RestartStatus, Err: Error });
184
186
  const OpeningCounts = IDL.Record({
185
187
  reopened: IDL.Nat,
186
188
  openedThroughParent: IDL.Nat,
@@ -190,7 +192,7 @@ export const idlFactory = ({ IDL }) => {
190
192
  reservationAttemptsRefusedAtCapacity: IDL.Nat,
191
193
  spawnAttemptsRefusedAtCap: IDL.Nat,
192
194
  });
193
- const Result_24 = IDL.Variant({ Ok: OpeningCounts, Err: Error });
195
+ const Result_25 = IDL.Variant({ Ok: OpeningCounts, Err: Error });
194
196
  const PairedSoon = IDL.Record({
195
197
  opened: IDL.Nat,
196
198
  pairedWithin7Days: IDL.Nat,
@@ -208,7 +210,7 @@ export const idlFactory = ({ IDL }) => {
208
210
  throughParent: PairedSoon,
209
211
  agentsByTreesSpanned: TreesSpanned,
210
212
  });
211
- const Result_22 = IDL.Variant({ Ok: ReferralCounts, Err: Error });
213
+ const Result_23 = IDL.Variant({ Ok: ReferralCounts, Err: Error });
212
214
  const RegistryClockHealth = IDL.Record({
213
215
  nextWakeAtNs: IDL.Opt(IDL.Int),
214
216
  lastAttemptAtNs: IDL.Opt(IDL.Int),
@@ -231,7 +233,7 @@ export const idlFactory = ({ IDL }) => {
231
233
  }),
232
234
  ),
233
235
  });
234
- const Result_21 = IDL.Variant({ Ok: RegistryHealth, Err: Error });
236
+ const Result_22 = IDL.Variant({ Ok: RegistryHealth, Err: Error });
235
237
  const ReserveGateConfig = IDL.Record({
236
238
  enabled: IDL.Bool,
237
239
  inviteIssuer: IDL.Principal,
@@ -251,13 +253,13 @@ export const idlFactory = ({ IDL }) => {
251
253
  ManualOnly: IDL.Null,
252
254
  AutoUpdate: IDL.Null,
253
255
  });
254
- const Result_20 = IDL.Variant({ Ok: IDL.Opt(IDL.Text), Err: Error });
256
+ const Result_21 = IDL.Variant({ Ok: IDL.Opt(IDL.Text), Err: Error });
255
257
  const Page_5 = IDL.Record({
256
258
  total: IDL.Nat,
257
259
  withheld: IDL.Nat,
258
260
  items: IDL.Vec(IDL.Principal),
259
261
  });
260
- const Result_17 = IDL.Variant({ Ok: Page_5, Err: Error });
262
+ const Result_18 = IDL.Variant({ Ok: Page_5, Err: Error });
261
263
  const AnchorConflict = IDL.Record({
262
264
  submittedHead: IDL.Vec(IDL.Nat8),
263
265
  atNs: IDL.Int,
@@ -270,8 +272,9 @@ export const idlFactory = ({ IDL }) => {
270
272
  withheld: IDL.Nat,
271
273
  items: IDL.Vec(AnchorConflict),
272
274
  });
273
- const Result_19 = IDL.Variant({ Ok: Page_6, Err: Error });
275
+ const Result_20 = IDL.Variant({ Ok: Page_6, Err: Error });
274
276
  const AnchorView = IDL.Record({
277
+ era: IDL.Opt(IDL.Nat),
275
278
  total: IDL.Nat,
276
279
  disputed: IDL.Bool,
277
280
  atNs: IDL.Int,
@@ -313,7 +316,7 @@ export const idlFactory = ({ IDL }) => {
313
316
  items: IDL.Vec(AuditEntry),
314
317
  hashFirstFrom: IDL.Nat,
315
318
  });
316
- const Result_18 = IDL.Variant({ Ok: RecordPage, Err: Error });
319
+ const Result_19 = IDL.Variant({ Ok: RecordPage, Err: Error });
317
320
  const ChangelogEntry = IDL.Record({
318
321
  atNs: IDL.Int,
319
322
  wasmHash: IDL.Text,
@@ -330,7 +333,7 @@ export const idlFactory = ({ IDL }) => {
330
333
  owner: IDL.Principal,
331
334
  child: IDL.Principal,
332
335
  });
333
- const Result_16 = IDL.Variant({
336
+ const Result_17 = IDL.Variant({
334
337
  Ok: IDL.Vec(OpenedEngram),
335
338
  Err: Error,
336
339
  });
@@ -339,7 +342,7 @@ export const idlFactory = ({ IDL }) => {
339
342
  withheld: IDL.Nat,
340
343
  items: IDL.Vec(AuditEntry),
341
344
  });
342
- const Result_15 = IDL.Variant({ Ok: Page_3, Err: Error });
345
+ const Result_16 = IDL.Variant({ Ok: Page_3, Err: Error });
343
346
  const EndReason = IDL.Variant({
344
347
  Resigned: IDL.Null,
345
348
  OwnerRevoked: IDL.Null,
@@ -370,24 +373,26 @@ export const idlFactory = ({ IDL }) => {
370
373
  withheld: IDL.Nat,
371
374
  items: IDL.Vec(EngagementRow),
372
375
  });
373
- const Result_14 = IDL.Variant({ Ok: Page_2, Err: Error });
376
+ const Result_15 = IDL.Variant({ Ok: Page_2, Err: Error });
374
377
  const Page_1 = IDL.Record({
375
378
  total: IDL.Nat,
376
379
  withheld: IDL.Nat,
377
380
  items: IDL.Vec(EngramRecordView),
378
381
  });
379
- const Result_13 = IDL.Variant({ Ok: Page_1, Err: Error });
382
+ const Result_14 = IDL.Variant({ Ok: Page_1, Err: Error });
380
383
  const Dispute = IDL.Record({ statement: IDL.Text, atNs: IDL.Int });
381
384
  const Page = IDL.Record({
382
385
  total: IDL.Nat,
383
386
  withheld: IDL.Nat,
384
387
  items: IDL.Vec(IDL.Tuple(IDL.Principal, UpdatePreference)),
385
388
  });
386
- const Result_12 = IDL.Variant({ Ok: Page, Err: Error });
387
- const Result_11 = IDL.Variant({ Ok: IDL.Vec(IDL.Text), Err: Error });
389
+ const Result_13 = IDL.Variant({ Ok: Page, Err: Error });
390
+ const Result_12 = IDL.Variant({ Ok: IDL.Vec(IDL.Text), Err: Error });
388
391
  const EngramComputeView = IDL.Record({
389
392
  restartOpenUntilNs: IDL.Opt(IDL.Int),
393
+ recoverOpen: IDL.Opt(IDL.Bool),
390
394
  idlePerDay: IDL.Nat,
395
+ erased: IDL.Opt(IDL.Bool),
391
396
  line: IDL.Nat,
392
397
  quiet: IDL.Bool,
393
398
  eraseAboutNs: IDL.Opt(IDL.Int),
@@ -398,11 +403,21 @@ export const idlFactory = ({ IDL }) => {
398
403
  running: IDL.Null,
399
404
  }),
400
405
  thresholdSecs: IDL.Nat,
406
+ recoveredAtNs: IDL.Opt(IDL.Int),
401
407
  updateWaiting: IDL.Bool,
402
408
  frozen: IDL.Bool,
403
409
  });
404
- const Result_9 = IDL.Variant({ Ok: EngramComputeView, Err: Error });
410
+ const Result_10 = IDL.Variant({ Ok: EngramComputeView, Err: Error });
405
411
  const Result_2 = IDL.Variant({ Ok: IDL.Principal, Err: Error });
412
+ const RecoverReply = IDL.Record({
413
+ billingLinked: IDL.Bool,
414
+ balance: IDL.Nat,
415
+ finished: IDL.Bool,
416
+ number: IDL.Opt(IDL.Nat),
417
+ restartLoanOwed: IDL.Nat,
418
+ template: IDL.Text,
419
+ });
420
+ const Result_9 = IDL.Variant({ Ok: RecoverReply, Err: Error });
406
421
  const RestartReply = IDL.Record({
407
422
  securityInstalled: IDL.Bool,
408
423
  lentCycles: IDL.Nat,
@@ -457,7 +472,7 @@ export const idlFactory = ({ IDL }) => {
457
472
  engramWasmFinalize: IDL.Func([IDL.Text], [Result_7], []),
458
473
  engramWasmInit: IDL.Func([], [Result], []),
459
474
  engramWasmPushChunk: IDL.Func([IDL.Vec(IDL.Nat8)], [Result_7], []),
460
- fleetCycleHealth: IDL.Func([IDL.Nat, IDL.Nat, IDL.Nat], [Result_30], []),
475
+ fleetCycleHealth: IDL.Func([IDL.Nat, IDL.Nat, IDL.Nat], [Result_31], []),
461
476
  fleetSummary: IDL.Func([], [FleetSummary], ['query']),
462
477
  getAbandonedAtNs: IDL.Func([IDL.Principal], [IDL.Opt(IDL.Int)], ['query']),
463
478
  getActivationFunnel: IDL.Func([], [ActivationFunnel], ['query']),
@@ -467,14 +482,14 @@ export const idlFactory = ({ IDL }) => {
467
482
  [IDL.Record({ agents: IDL.Nat, liveEngagements: IDL.Nat })],
468
483
  ['query'],
469
484
  ),
470
- getAgentStanding: IDL.Func([IDL.Principal], [Result_29], ['query']),
485
+ getAgentStanding: IDL.Func([IDL.Principal], [Result_30], ['query']),
471
486
  getAnchorStats: IDL.Func([], [AnchorStats], ['query']),
472
487
  getAuditHead: IDL.Func([], [AuditHead], ['query']),
473
488
  getCertifiedAnchor: IDL.Func([IDL.Principal], [IDL.Opt(CertifiedAnchor)], ['query']),
474
489
  getCertifiedAuditHead: IDL.Func([], [CertifiedAuditHead], ['query']),
475
490
  getCertifiedBirth: IDL.Func([IDL.Vec(IDL.Nat8)], [IDL.Opt(CertifiedBirth)], ['query']),
476
- getChildSignInOffer: IDL.Func([IDL.Principal], [Result_28], ['query']),
477
- getCustodyMode: IDL.Func([IDL.Principal], [Result_10], ['query']),
491
+ getChildSignInOffer: IDL.Func([IDL.Principal], [Result_29], ['query']),
492
+ getCustodyMode: IDL.Func([IDL.Principal], [Result_11], ['query']),
478
493
  getCycleReserveStatus: IDL.Func(
479
494
  [],
480
495
  [
@@ -486,23 +501,24 @@ export const idlFactory = ({ IDL }) => {
486
501
  ['query'],
487
502
  ),
488
503
  getEngramNumberOf: IDL.Func([IDL.Principal], [IDL.Opt(IDL.Nat)], ['query']),
489
- getEngramOpenedThrough: IDL.Func([IDL.Principal], [Result_23], ['query']),
490
- getEngramWasmChunk: IDL.Func([IDL.Nat], [Result_27], ['query']),
504
+ getEngramOpenedThrough: IDL.Func([IDL.Principal], [Result_24], ['query']),
505
+ getEngramWasmChunk: IDL.Func([IDL.Nat], [Result_28], ['query']),
491
506
  getEngramWasmClass: IDL.Func([], [ReleaseClass], ['query']),
492
507
  getEngramWasmHash: IDL.Func([], [IDL.Text], ['query']),
493
508
  getEngramWasmInfo: IDL.Func([], [EngramWasmInfo], ['query']),
494
- getFleetMetrics: IDL.Func([], [Result_26], []),
509
+ getFleetMetrics: IDL.Func([], [Result_27], []),
495
510
  getGenesisNote: IDL.Func([], [GenesisNote], ['query']),
496
511
  getLastUpgrade: IDL.Func([IDL.Principal], [IDL.Opt(LastUpgrade)], ['query']),
497
512
  getMarketCanister: IDL.Func([], [IDL.Opt(IDL.Principal)], ['query']),
498
513
  getMetricsReader: IDL.Func([], [IDL.Opt(IDL.Principal)], ['query']),
499
514
  getMyEngram: IDL.Func([], [IDL.Opt(EngramRecordView)], ['query']),
500
515
  getMyReservation: IDL.Func([], [IDL.Opt(ReservationView)], ['query']),
501
- getMyRestartStatus: IDL.Func([], [Result_25], ['query']),
502
- getOpeningCounts: IDL.Func([], [Result_24], ['query']),
503
- getParentOf: IDL.Func([IDL.Principal], [Result_23], ['query']),
504
- getReferralCounts: IDL.Func([IDL.Vec(IDL.Principal)], [Result_22], ['query']),
505
- getRegistryHealth: IDL.Func([], [Result_21], ['query']),
516
+ getMyRestartStatus: IDL.Func([], [Result_26], ['query']),
517
+ getOpeningCounts: IDL.Func([], [Result_25], ['query']),
518
+ getParentOf: IDL.Func([IDL.Principal], [Result_24], ['query']),
519
+ getRecoveredAtNs: IDL.Func([IDL.Principal], [IDL.Opt(IDL.Int)], ['query']),
520
+ getReferralCounts: IDL.Func([IDL.Vec(IDL.Principal)], [Result_23], ['query']),
521
+ getRegistryHealth: IDL.Func([], [Result_22], ['query']),
506
522
  getRentBiller: IDL.Func([], [IDL.Opt(IDL.Principal)], ['query']),
507
523
  getReserveGateConfig: IDL.Func([], [ReserveGateConfig], ['query']),
508
524
  getRestartTotals: IDL.Func([], [RestartTotals], ['query']),
@@ -511,7 +527,7 @@ export const idlFactory = ({ IDL }) => {
511
527
  getSponsoredCyclesTotal: IDL.Func([], [IDL.Nat], ['query']),
512
528
  getTreasuryAnchorId: IDL.Func([], [IDL.Opt(IDL.Principal)], ['query']),
513
529
  getUpdatePreference: IDL.Func([], [IDL.Opt(UpdatePreference)], ['query']),
514
- getUpgradeFundedTemplate: IDL.Func([IDL.Principal], [Result_20], ['query']),
530
+ getUpgradeFundedTemplate: IDL.Func([IDL.Principal], [Result_21], ['query']),
515
531
  getUpgradeSubsidyTotal: IDL.Func([], [IDL.Nat], ['query']),
516
532
  getUpgradeTopUpFloor: IDL.Func([], [IDL.Nat], ['query']),
517
533
  icrc21_canister_call_consent_message: IDL.Func(
@@ -543,27 +559,28 @@ export const idlFactory = ({ IDL }) => {
543
559
  ),
544
560
  isOfficialEngramWasm: IDL.Func([IDL.Text], [IDL.Bool], ['query']),
545
561
  isRegisteredActiveEngram: IDL.Func([IDL.Principal], [IDL.Bool], ['query']),
546
- listAgentEngrams: IDL.Func([IDL.Principal], [Result_17], ['query']),
547
- listAnchorConflicts: IDL.Func([IDL.Principal, IDL.Nat, IDL.Nat], [Result_19], ['query']),
562
+ listAgentEngrams: IDL.Func([IDL.Principal], [Result_18], ['query']),
563
+ listAnchorConflicts: IDL.Func([IDL.Principal, IDL.Nat, IDL.Nat], [Result_20], ['query']),
548
564
  listAnchors: IDL.Func([IDL.Principal], [IDL.Vec(AnchorView)], ['query']),
549
- listAuditEntries: IDL.Func([IDL.Nat, IDL.Nat], [Result_18], ['query']),
550
- listAuditViewers: IDL.Func([], [Result_17], ['query']),
565
+ listAuditEntries: IDL.Func([IDL.Nat, IDL.Nat], [Result_19], ['query']),
566
+ listAuditViewers: IDL.Func([], [Result_18], ['query']),
551
567
  listChangelogEntries: IDL.Func([IDL.Nat, IDL.Nat], [Page_4], ['query']),
552
- listChildrenOf: IDL.Func([IDL.Principal], [Result_16], ['query']),
553
- listDenialEntries: IDL.Func([IDL.Nat, IDL.Nat], [Result_15], ['query']),
568
+ listChildrenOf: IDL.Func([IDL.Principal], [Result_17], ['query']),
569
+ listDenialEntries: IDL.Func([IDL.Nat, IDL.Nat], [Result_16], ['query']),
554
570
  listEngagementRows: IDL.Func(
555
571
  [IDL.Int, IDL.Nat, IDL.Nat, IDL.Vec(IDL.Principal)],
556
- [Result_14],
572
+ [Result_15],
557
573
  [],
558
574
  ),
559
- listEngrams: IDL.Func([IDL.Nat, IDL.Nat], [Result_13], []),
575
+ listEngrams: IDL.Func([IDL.Nat, IDL.Nat], [Result_14], []),
560
576
  listMyAgentDisputes: IDL.Func([], [IDL.Vec(Dispute)], ['query']),
561
577
  listOfficialEngramWasmHashes: IDL.Func([], [IDL.Vec(IDL.Text)], ['query']),
562
578
  listPredecessors: IDL.Func([IDL.Principal], [IDL.Vec(IDL.Principal)], ['query']),
563
- listUpdatePrefs: IDL.Func([IDL.Nat, IDL.Nat], [Result_12], ['query']),
564
- mintReserveInvites: IDL.Func([IDL.Nat], [Result_11], []),
565
- probeCustodyMode: IDL.Func([], [Result_10], []),
566
- probeMyEngramCompute: IDL.Func([], [Result_9], []),
579
+ listUpdatePrefs: IDL.Func([IDL.Nat, IDL.Nat], [Result_13], ['query']),
580
+ mintReserveInvites: IDL.Func([IDL.Nat], [Result_12], []),
581
+ probeCustodyMode: IDL.Func([], [Result_11], []),
582
+ probeMyEngramCompute: IDL.Func([], [Result_10], []),
583
+ probeOpenedEngramCompute: IDL.Func([IDL.Principal], [Result_10], []),
567
584
  provisionEngram: IDL.Func(
568
585
  [
569
586
  IDL.Opt(
@@ -576,6 +593,7 @@ export const idlFactory = ({ IDL }) => {
576
593
  [Result_2],
577
594
  [],
578
595
  ),
596
+ recoverMyEngram: IDL.Func([], [Result_9], []),
579
597
  removeAuditViewer: IDL.Func([IDL.Principal], [Result], []),
580
598
  reserveEngram: IDL.Func(
581
599
  [
@@ -614,6 +632,7 @@ export const idlFactory = ({ IDL }) => {
614
632
  sysCloseRestart: IDL.Func([], [Result_5], []),
615
633
  sysConfirmOwnershipTransfer: IDL.Func([IDL.Principal], [Result], []),
616
634
  sysMeterEngram: IDL.Func([IDL.Principal], [Result_4], []),
635
+ sysNoteChildSignIn: IDL.Func([IDL.Record({ signIn: IDL.Opt(IDL.Principal) })], [Result], []),
617
636
  sysNoteReset: IDL.Func([], [Result], []),
618
637
  sysNotifyOwnershipTransfer: IDL.Func([IDL.Principal], [Result_3], []),
619
638
  sysOpenChild: IDL.Func(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@engramx/idl",
3
- "version": "0.16.0-rc.22",
3
+ "version": "0.16.0-rc.23",
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>",