@engramx/idl 0.16.0-rc.1

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.
@@ -0,0 +1,522 @@
1
+ export const idlFactory = ({ IDL }) => {
2
+ const Error = IDL.Variant({
3
+ Invalid: IDL.Text,
4
+ NotFound: IDL.Text,
5
+ Refused: IDL.Text,
6
+ Other: IDL.Text,
7
+ Unavailable: IDL.Text,
8
+ Conflict: IDL.Text,
9
+ });
10
+ const Result = IDL.Variant({ Ok: IDL.Null, Err: Error });
11
+ const Result_4 = IDL.Variant({ Ok: IDL.Nat, Err: Error });
12
+ const FleetCycleHealth = IDL.Record({
13
+ unreadable: IDL.Nat,
14
+ deleted: IDL.Nat,
15
+ total: IDL.Nat,
16
+ active: IDL.Nat,
17
+ thresholdCycles: IDL.Nat,
18
+ scanned: IDL.Nat,
19
+ probed: IDL.Nat,
20
+ frozen: IDL.Nat,
21
+ sovereignSkipped: IDL.Nat,
22
+ lowCycles: IDL.Nat,
23
+ });
24
+ const Result_21 = IDL.Variant({ Ok: FleetCycleHealth, Err: Error });
25
+ const FleetSummary = IDL.Record({
26
+ registrySinceNs: IDL.Opt(IDL.Int),
27
+ uniqueOwners: IDL.Nat,
28
+ totalCyclesAllocated: IDL.Nat,
29
+ engramWasmHash: IDL.Text,
30
+ cycleReserve: IDL.Nat,
31
+ registryVersion: IDL.Text,
32
+ sovereignEngrams: IDL.Nat,
33
+ totalEngrams: IDL.Nat,
34
+ activeEngrams: IDL.Nat,
35
+ });
36
+ const ActivationFunnel = IDL.Record({
37
+ spawnsToday: IDL.Nat,
38
+ reserved: IDL.Nat,
39
+ spawnCeiling: IDL.Nat,
40
+ reservedStale: IDL.Nat,
41
+ dailyCap: IDL.Nat,
42
+ provisioned: IDL.Nat,
43
+ });
44
+ const RoleGrant = IDL.Record({
45
+ role: IDL.Variant({
46
+ Root: IDL.Null,
47
+ WasmAdmin: IDL.Null,
48
+ Admin: IDL.Null,
49
+ Other: IDL.Text,
50
+ }),
51
+ holder: IDL.Principal,
52
+ });
53
+ const AdminRoles = IDL.Record({ roles: IDL.Vec(RoleGrant) });
54
+ const StandingLeaf = IDL.Record({
55
+ disputes: IDL.Nat,
56
+ live: IDL.Nat,
57
+ root: IDL.Principal,
58
+ endedKillSwitch: IDL.Nat,
59
+ version: IDL.Nat,
60
+ endedReset: IDL.Nat,
61
+ firstEngagementDay: IDL.Int,
62
+ lastDisputeDay: IDL.Opt(IDL.Int),
63
+ endedResigned: IDL.Nat,
64
+ endedGuardianRevoked: IDL.Nat,
65
+ endedOwnerRevoked: IDL.Nat,
66
+ });
67
+ const CertifiedStanding = IDL.Record({
68
+ certificate: IDL.Opt(IDL.Vec(IDL.Nat8)),
69
+ leaf: StandingLeaf,
70
+ witness: IDL.Vec(IDL.Nat8),
71
+ });
72
+ const Result_20 = IDL.Variant({ Ok: CertifiedStanding, Err: Error });
73
+ const AnchorStats = IDL.Record({
74
+ lastAnchorAtNs: IDL.Opt(IDL.Int),
75
+ engramsAnchored: IDL.Nat,
76
+ totalAnchors: IDL.Nat,
77
+ engramsWithConflicts: IDL.Nat,
78
+ });
79
+ const AuditHead = IDL.Record({
80
+ headHash: IDL.Vec(IDL.Nat8),
81
+ size: IDL.Nat,
82
+ });
83
+ const CertifiedAnchorLeaf = IDL.Record({
84
+ total: IDL.Nat,
85
+ disputed: IDL.Bool,
86
+ atNs: IDL.Int,
87
+ head: IDL.Vec(IDL.Nat8),
88
+ wasmHash: IDL.Text,
89
+ conflicts: IDL.Nat,
90
+ version: IDL.Nat,
91
+ refusedConflicts: IDL.Nat,
92
+ engram: IDL.Principal,
93
+ });
94
+ const CertifiedAnchor = IDL.Record({
95
+ certificate: IDL.Opt(IDL.Vec(IDL.Nat8)),
96
+ leaf: CertifiedAnchorLeaf,
97
+ witness: IDL.Vec(IDL.Nat8),
98
+ });
99
+ const CertifiedAuditHead = IDL.Record({
100
+ total: IDL.Nat,
101
+ certificate: IDL.Opt(IDL.Vec(IDL.Nat8)),
102
+ headHash: IDL.Vec(IDL.Nat8),
103
+ size: IDL.Nat,
104
+ witness: IDL.Opt(IDL.Vec(IDL.Nat8)),
105
+ });
106
+ const CustodyMode = IDL.Variant({
107
+ Sovereign: IDL.Null,
108
+ Managed: IDL.Null,
109
+ });
110
+ const Result_5 = IDL.Variant({ Ok: CustodyMode, Err: Error });
111
+ const OpenedThrough = IDL.Record({
112
+ cutOffAtNs: IDL.Opt(IDL.Int),
113
+ child: IDL.Principal,
114
+ parent: IDL.Principal,
115
+ });
116
+ const Result_19 = IDL.Variant({ Ok: OpenedThrough, Err: Error });
117
+ const Result_18 = IDL.Variant({ Ok: IDL.Vec(IDL.Nat8), Err: Error });
118
+ const ReleaseClass = IDL.Variant({
119
+ Security: IDL.Null,
120
+ Feature: IDL.Null,
121
+ });
122
+ const EngramWasmInfo = IDL.Record({
123
+ chunkBytes: IDL.Nat,
124
+ hash: IDL.Text,
125
+ totalBytes: IDL.Nat,
126
+ chunks: IDL.Nat,
127
+ });
128
+ const PrivateMetrics = IDL.Record({
129
+ registrySinceNs: IDL.Opt(IDL.Int),
130
+ cyclesLastUpdatedNs: IDL.Opt(IDL.Int),
131
+ uniqueOwners: IDL.Nat,
132
+ totalCyclesAllocated: IDL.Nat,
133
+ engramWasmHash: IDL.Text,
134
+ cycleReserve: IDL.Nat,
135
+ registryVersion: IDL.Text,
136
+ sovereignEngrams: IDL.Nat,
137
+ totalEngrams: IDL.Nat,
138
+ activeEngrams: IDL.Nat,
139
+ });
140
+ const Result_17 = IDL.Variant({ Ok: PrivateMetrics, Err: Error });
141
+ const GenesisNote = IDL.Record({
142
+ predecessorSize: IDL.Opt(IDL.Nat),
143
+ predecessorHeadHash: IDL.Opt(IDL.Vec(IDL.Nat8)),
144
+ note: IDL.Text,
145
+ version: IDL.Text,
146
+ genesisAtNs: IDL.Int,
147
+ });
148
+ const LastUpgrade = IDL.Record({
149
+ atNs: IDL.Int,
150
+ changedAtNs: IDL.Opt(IDL.Int),
151
+ upgraded: IDL.Bool,
152
+ template: IDL.Text,
153
+ });
154
+ const EngramStatus = IDL.Variant({
155
+ Active: IDL.Null,
156
+ Deleted: IDL.Null,
157
+ Frozen: IDL.Null,
158
+ });
159
+ const EngramRecordView = IDL.Record({
160
+ status: EngramStatus,
161
+ owner: IDL.Principal,
162
+ createdAtNs: IDL.Int,
163
+ canisterId: IDL.Principal,
164
+ });
165
+ const ReservationView = IDL.Record({ reservedAtNs: IDL.Int });
166
+ const OpeningCounts = IDL.Record({
167
+ reopened: IDL.Nat,
168
+ openedThroughParent: IDL.Nat,
169
+ cutOff: IDL.Nat,
170
+ abandoned: IDL.Nat,
171
+ spawnedEver: IDL.Nat,
172
+ reservationAttemptsRefusedAtCapacity: IDL.Nat,
173
+ spawnAttemptsRefusedAtCap: IDL.Nat,
174
+ });
175
+ const Result_16 = IDL.Variant({ Ok: OpeningCounts, Err: Error });
176
+ const PairedSoon = IDL.Record({
177
+ opened: IDL.Nat,
178
+ pairedWithin7Days: IDL.Nat,
179
+ });
180
+ const TreesSpanned = IDL.Record({
181
+ one: IDL.Nat,
182
+ two: IDL.Nat,
183
+ threeToFour: IDL.Nat,
184
+ fivePlus: IDL.Nat,
185
+ });
186
+ const ReferralCounts = IDL.Record({
187
+ firstOrReopened: PairedSoon,
188
+ openedThroughParentLive: IDL.Nat,
189
+ openedThroughParentCutOff: IDL.Nat,
190
+ throughParent: PairedSoon,
191
+ agentsByTreesSpanned: TreesSpanned,
192
+ });
193
+ const Result_15 = IDL.Variant({ Ok: ReferralCounts, Err: Error });
194
+ const ReserveGateConfig = IDL.Record({
195
+ enabled: IDL.Bool,
196
+ inviteIssuer: IDL.Principal,
197
+ trustedSigners: IDL.Vec(IDL.Principal),
198
+ });
199
+ const UpdatePreference = IDL.Variant({
200
+ ManualOnly: IDL.Null,
201
+ AutoUpdate: IDL.Null,
202
+ });
203
+ const Result_14 = IDL.Variant({ Ok: IDL.Opt(IDL.Text), Err: Error });
204
+ const Page_5 = IDL.Record({
205
+ total: IDL.Nat,
206
+ withheld: IDL.Nat,
207
+ items: IDL.Vec(IDL.Principal),
208
+ });
209
+ const Result_12 = IDL.Variant({ Ok: Page_5, Err: Error });
210
+ const AnchorConflict = IDL.Record({
211
+ submittedHead: IDL.Vec(IDL.Nat8),
212
+ atNs: IDL.Int,
213
+ storedHead: IDL.Vec(IDL.Nat8),
214
+ submittedTotal: IDL.Nat,
215
+ storedTotal: IDL.Nat,
216
+ });
217
+ const Page_6 = IDL.Record({
218
+ total: IDL.Nat,
219
+ withheld: IDL.Nat,
220
+ items: IDL.Vec(AnchorConflict),
221
+ });
222
+ const Result_13 = IDL.Variant({ Ok: Page_6, Err: Error });
223
+ const AnchorView = IDL.Record({
224
+ total: IDL.Nat,
225
+ disputed: IDL.Bool,
226
+ atNs: IDL.Int,
227
+ head: IDL.Vec(IDL.Nat8),
228
+ });
229
+ const Role = IDL.Variant({
230
+ Anonymous: IDL.Null,
231
+ Viewer: IDL.Null,
232
+ Engram: IDL.Null,
233
+ Root: IDL.Null,
234
+ Buyer: IDL.Null,
235
+ WasmAdmin: IDL.Null,
236
+ Guardian: IDL.Null,
237
+ Seller: IDL.Null,
238
+ Admin: IDL.Null,
239
+ Agent: IDL.Null,
240
+ Other: IDL.Null,
241
+ Owner: IDL.Null,
242
+ });
243
+ const AuditEntry = IDL.Record({
244
+ id: IDL.Nat,
245
+ entryHash: IDL.Vec(IDL.Nat8),
246
+ callerRole: Role,
247
+ operation: IDL.Text,
248
+ details: IDL.Text,
249
+ caller: IDL.Principal,
250
+ success: IDL.Bool,
251
+ timestampNs: IDL.Int,
252
+ });
253
+ const Page_3 = IDL.Record({
254
+ total: IDL.Nat,
255
+ withheld: IDL.Nat,
256
+ items: IDL.Vec(AuditEntry),
257
+ });
258
+ const Result_10 = IDL.Variant({ Ok: Page_3, Err: Error });
259
+ const ChangelogEntry = IDL.Record({
260
+ atNs: IDL.Int,
261
+ wasmHash: IDL.Text,
262
+ releaseNotes: IDL.Text,
263
+ version: IDL.Text,
264
+ });
265
+ const Page_4 = IDL.Record({
266
+ total: IDL.Nat,
267
+ withheld: IDL.Nat,
268
+ items: IDL.Vec(ChangelogEntry),
269
+ });
270
+ const OpenedEngram = IDL.Record({
271
+ cutOffAtNs: IDL.Opt(IDL.Int),
272
+ owner: IDL.Principal,
273
+ child: IDL.Principal,
274
+ });
275
+ const Result_11 = IDL.Variant({
276
+ Ok: IDL.Vec(OpenedEngram),
277
+ Err: Error,
278
+ });
279
+ const EndReason = IDL.Variant({
280
+ Resigned: IDL.Null,
281
+ OwnerRevoked: IDL.Null,
282
+ Reset: IDL.Null,
283
+ KillSwitch: IDL.Null,
284
+ GuardianRevoked: IDL.Null,
285
+ });
286
+ const RowEnding = IDL.Record({ day: IDL.Int, reason: EndReason });
287
+ const EngagementRow = IDL.Record({
288
+ seq: IDL.Nat,
289
+ top: IDL.Principal,
290
+ ownerOnList: IDL.Bool,
291
+ openedThroughParent: IDL.Bool,
292
+ replacesAnother: IDL.Bool,
293
+ ended: IDL.Opt(RowEnding),
294
+ abandonedDay: IDL.Opt(IDL.Int),
295
+ resetDays: IDL.Vec(IDL.Int),
296
+ sameRootAsPrevious: IDL.Opt(IDL.Bool),
297
+ firstOutsideOnTree: IDL.Bool,
298
+ topOnList: IDL.Bool,
299
+ rootIsTopOwner: IDL.Bool,
300
+ rootOnList: IDL.Bool,
301
+ startedDay: IDL.Int,
302
+ engram: IDL.Principal,
303
+ });
304
+ const Page_2 = IDL.Record({
305
+ total: IDL.Nat,
306
+ withheld: IDL.Nat,
307
+ items: IDL.Vec(EngagementRow),
308
+ });
309
+ const Result_9 = IDL.Variant({ Ok: Page_2, Err: Error });
310
+ const Page_1 = IDL.Record({
311
+ total: IDL.Nat,
312
+ withheld: IDL.Nat,
313
+ items: IDL.Vec(EngramRecordView),
314
+ });
315
+ const Result_8 = IDL.Variant({ Ok: Page_1, Err: Error });
316
+ const Dispute = IDL.Record({ statement: IDL.Text, atNs: IDL.Int });
317
+ const Page = IDL.Record({
318
+ total: IDL.Nat,
319
+ withheld: IDL.Nat,
320
+ items: IDL.Vec(IDL.Tuple(IDL.Principal, UpdatePreference)),
321
+ });
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 });
325
+ const MeterReading = IDL.Record({
326
+ realizedPerDay: IDL.Opt(IDL.Nat),
327
+ idlePerDay: IDL.Opt(IDL.Nat),
328
+ cycles: IDL.Nat,
329
+ freezeLineCycles: IDL.Nat,
330
+ });
331
+ const Result_3 = IDL.Variant({ Ok: MeterReading, Err: Error });
332
+ const ControlStep = IDL.Variant({
333
+ EngramMustMove: IDL.Null,
334
+ MovedByRegistry: IDL.Null,
335
+ });
336
+ const Result_2 = IDL.Variant({ Ok: ControlStep, Err: Error });
337
+ const Ending = IDL.Record({
338
+ day: IDL.Int,
339
+ key: IDL.Principal,
340
+ invite: IDL.Text,
341
+ reason: EndReason,
342
+ });
343
+ const EnrolmentProof = IDL.Record({
344
+ signature: IDL.Vec(IDL.Nat8),
345
+ enrolledKey: IDL.Principal,
346
+ rootPubkey: IDL.Vec(IDL.Nat8),
347
+ inviteCode: IDL.Text,
348
+ });
349
+ const EdgeEvent = IDL.Variant({ Ended: Ending, Added: EnrolmentProof });
350
+ return IDL.Service({
351
+ abandonMyEngram: IDL.Func([], [Result], []),
352
+ addAuditViewer: IDL.Func([IDL.Principal], [Result], []),
353
+ addChangelogEntry: IDL.Func([IDL.Text, IDL.Text], [Result], []),
354
+ appendAgentDispute: IDL.Func([IDL.Text], [Result], []),
355
+ claimSovereignty: IDL.Func([], [Result], []),
356
+ engramWasmFinalize: IDL.Func([IDL.Text], [Result_4], []),
357
+ 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], []),
360
+ fleetSummary: IDL.Func([], [FleetSummary], ['query']),
361
+ getAbandonedAtNs: IDL.Func([IDL.Principal], [IDL.Opt(IDL.Int)], ['query']),
362
+ getActivationFunnel: IDL.Func([], [ActivationFunnel], ['query']),
363
+ getAdminRoles: IDL.Func([], [AdminRoles], ['query']),
364
+ getAgentEdgeStats: IDL.Func(
365
+ [],
366
+ [IDL.Record({ agents: IDL.Nat, liveEngagements: IDL.Nat })],
367
+ ['query'],
368
+ ),
369
+ getAgentStanding: IDL.Func([IDL.Principal], [Result_20], ['query']),
370
+ getAnchorStats: IDL.Func([], [AnchorStats], ['query']),
371
+ getAuditHead: IDL.Func([], [AuditHead], ['query']),
372
+ getCertifiedAnchor: IDL.Func([IDL.Principal], [IDL.Opt(CertifiedAnchor)], ['query']),
373
+ getCertifiedAuditHead: IDL.Func([], [CertifiedAuditHead], ['query']),
374
+ getCustodyMode: IDL.Func([IDL.Principal], [Result_5], ['query']),
375
+ getCycleReserveStatus: IDL.Func(
376
+ [],
377
+ [
378
+ IDL.Record({
379
+ cycleBalance: IDL.Nat,
380
+ minOperatingReserveCycles: IDL.Nat,
381
+ }),
382
+ ],
383
+ ['query'],
384
+ ),
385
+ 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']),
388
+ getEngramWasmClass: IDL.Func([], [ReleaseClass], ['query']),
389
+ getEngramWasmHash: IDL.Func([], [IDL.Text], ['query']),
390
+ getEngramWasmInfo: IDL.Func([], [EngramWasmInfo], ['query']),
391
+ getFleetMetrics: IDL.Func([], [Result_17], []),
392
+ getGenesisNote: IDL.Func([], [GenesisNote], ['query']),
393
+ getLastUpgrade: IDL.Func([IDL.Principal], [IDL.Opt(LastUpgrade)], ['query']),
394
+ getMarketCanister: IDL.Func([], [IDL.Opt(IDL.Principal)], ['query']),
395
+ getMetricsReader: IDL.Func([], [IDL.Opt(IDL.Principal)], ['query']),
396
+ getMyEngram: IDL.Func([], [IDL.Opt(EngramRecordView)], ['query']),
397
+ 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']),
400
+ getRentBiller: IDL.Func([], [IDL.Opt(IDL.Principal)], ['query']),
401
+ getReserveGateConfig: IDL.Func([], [ReserveGateConfig], ['query']),
402
+ getScreeningDenylistSize: IDL.Func([], [IDL.Nat], ['query']),
403
+ getSecurityReleaseCount: IDL.Func([], [IDL.Nat], ['query']),
404
+ getSponsoredCyclesTotal: IDL.Func([], [IDL.Nat], ['query']),
405
+ getTreasuryAnchorId: IDL.Func([], [IDL.Opt(IDL.Principal)], ['query']),
406
+ getUpdatePreference: IDL.Func([], [IDL.Opt(UpdatePreference)], ['query']),
407
+ getUpgradeFundedTemplate: IDL.Func([IDL.Principal], [Result_14], ['query']),
408
+ getUpgradeSubsidyTotal: IDL.Func([], [IDL.Nat], ['query']),
409
+ getUpgradeTopUpFloor: IDL.Func([], [IDL.Nat], ['query']),
410
+ icrc21_canister_call_consent_message: IDL.Func(
411
+ [
412
+ IDL.Record({
413
+ arg: IDL.Vec(IDL.Nat8),
414
+ method: IDL.Text,
415
+ user_preferences: IDL.Record({}),
416
+ }),
417
+ ],
418
+ [
419
+ IDL.Variant({
420
+ Ok: IDL.Record({
421
+ metadata: IDL.Record({
422
+ utc_offset_minutes: IDL.Opt(IDL.Int16),
423
+ language: IDL.Text,
424
+ }),
425
+ consent_message: IDL.Variant({
426
+ GenericDisplayMessage: IDL.Text,
427
+ }),
428
+ }),
429
+ Err: IDL.Record({
430
+ description: IDL.Text,
431
+ error_code: IDL.Nat,
432
+ }),
433
+ }),
434
+ ],
435
+ ['query'],
436
+ ),
437
+ isOfficialEngramWasm: IDL.Func([IDL.Text], [IDL.Bool], ['query']),
438
+ 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']),
441
+ 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']),
444
+ 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']),
447
+ listEngagementRows: IDL.Func(
448
+ [IDL.Int, IDL.Nat, IDL.Nat, IDL.Vec(IDL.Principal)],
449
+ [Result_9],
450
+ [],
451
+ ),
452
+ listEngrams: IDL.Func([IDL.Nat, IDL.Nat], [Result_8], []),
453
+ listMyAgentDisputes: IDL.Func([], [IDL.Vec(Dispute)], ['query']),
454
+ listOfficialEngramWasmHashes: IDL.Func([], [IDL.Vec(IDL.Text)], ['query']),
455
+ 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], []),
459
+ provisionEngram: IDL.Func(
460
+ [
461
+ IDL.Opt(
462
+ IDL.Record({
463
+ walletProof: IDL.Opt(IDL.Vec(IDL.Nat8)),
464
+ invite: IDL.Opt(IDL.Text),
465
+ genesis: IDL.Opt(IDL.Record({ content: IDL.Vec(IDL.Nat8), path: IDL.Text })),
466
+ }),
467
+ ),
468
+ ],
469
+ [Result_1],
470
+ [],
471
+ ),
472
+ removeAuditViewer: IDL.Func([IDL.Principal], [Result], []),
473
+ reserveEngram: IDL.Func(
474
+ [
475
+ IDL.Opt(
476
+ IDL.Record({
477
+ walletProof: IDL.Opt(IDL.Vec(IDL.Nat8)),
478
+ invite: IDL.Opt(IDL.Text),
479
+ }),
480
+ ),
481
+ ],
482
+ [Result],
483
+ [],
484
+ ),
485
+ returnToManaged: IDL.Func([], [Result], []),
486
+ setAdmin: IDL.Func([IDL.Principal], [Result], []),
487
+ setEngramWasm: IDL.Func([IDL.Vec(IDL.Nat8), IDL.Text], [Result], []),
488
+ setEngramWasmClass: IDL.Func([ReleaseClass], [Result], []),
489
+ setGenesisPredecessor: IDL.Func([IDL.Vec(IDL.Nat8), IDL.Nat], [Result], []),
490
+ setInviteIssuer: IDL.Func([IDL.Opt(IDL.Principal)], [Result], []),
491
+ setMarketCanister: IDL.Func([IDL.Opt(IDL.Principal)], [Result], []),
492
+ setMetricsReader: IDL.Func([IDL.Opt(IDL.Principal)], [Result], []),
493
+ setMinCycleReserve: IDL.Func([IDL.Nat], [Result], []),
494
+ setRentBiller: IDL.Func([IDL.Opt(IDL.Principal)], [Result], []),
495
+ setReserveGateEnabled: IDL.Func([IDL.Bool], [Result], []),
496
+ setScreeningDenylist: IDL.Func([IDL.Vec(IDL.Principal)], [Result], []),
497
+ setSpawnCeiling: IDL.Func([IDL.Nat], [Result_4], []),
498
+ setTreasuryAnchorId: IDL.Func([IDL.Opt(IDL.Principal)], [Result], []),
499
+ setTrustedSigners: IDL.Func([IDL.Vec(IDL.Principal)], [Result], []),
500
+ setUpdatePreference: IDL.Func([UpdatePreference], [Result], []),
501
+ setUpgradeTopUpFloor: IDL.Func([IDL.Nat], [Result_4], []),
502
+ setWasmAdmin: IDL.Func([IDL.Opt(IDL.Principal)], [Result], []),
503
+ sysAnchorHead: IDL.Func([IDL.Vec(IDL.Nat8), IDL.Nat], [Result], []),
504
+ sysConfirmOwnershipTransfer: IDL.Func([IDL.Principal], [Result], []),
505
+ sysMeterEngram: IDL.Func([IDL.Principal], [Result_3], []),
506
+ sysNoteReset: IDL.Func([], [Result], []),
507
+ sysNotifyOwnershipTransfer: IDL.Func([IDL.Principal], [Result_2], []),
508
+ sysRecordAgentEdge: IDL.Func(
509
+ [IDL.Record({ root: IDL.Principal, event: EdgeEvent })],
510
+ [Result],
511
+ [],
512
+ ),
513
+ sysRevertOwnershipTransfer: IDL.Func([IDL.Principal], [Result], []),
514
+ sysSpawnChild: IDL.Func([IDL.Principal], [Result_1], []),
515
+ upgradeEngram: IDL.Func([IDL.Principal], [Result], []),
516
+ upgradeMyEngram: IDL.Func([], [Result], []),
517
+ verifyEngramActiveOwner: IDL.Func([IDL.Principal, IDL.Principal], [IDL.Bool], ['query']),
518
+ });
519
+ };
520
+ export const init = ({ IDL }) => {
521
+ return [];
522
+ };
package/package.json ADDED
@@ -0,0 +1,50 @@
1
+ {
2
+ "name": "@engramx/idl",
3
+ "version": "0.16.0-rc.1",
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
+ "license": "Apache-2.0",
6
+ "author": "EngramX <developer@engramx.ai>",
7
+ "keywords": [
8
+ "icp",
9
+ "internet-computer",
10
+ "candid",
11
+ "idl",
12
+ "engram"
13
+ ],
14
+ "type": "module",
15
+ "engines": {
16
+ "node": ">=22.12.0"
17
+ },
18
+ "exports": {
19
+ "./engram": {
20
+ "types": "./dist/engram.idl.d.ts",
21
+ "import": "./dist/engram.idl.js"
22
+ },
23
+ "./registry": {
24
+ "types": "./dist/registry.idl.d.ts",
25
+ "import": "./dist/registry.idl.js"
26
+ },
27
+ "./market": {
28
+ "types": "./dist/market.idl.d.ts",
29
+ "import": "./dist/market.idl.js"
30
+ },
31
+ "./engram.did": "./dist/engram.did",
32
+ "./registry.did": "./dist/registry.did",
33
+ "./market.did": "./dist/market.did",
34
+ "./package.json": "./package.json"
35
+ },
36
+ "files": [
37
+ "dist/",
38
+ "README.md",
39
+ "LICENSE"
40
+ ],
41
+ "publishConfig": {
42
+ "access": "public"
43
+ },
44
+ "peerDependencies": {
45
+ "@icp-sdk/core": "^5.4.0"
46
+ },
47
+ "scripts": {
48
+ "build": "node scripts/build.mjs"
49
+ }
50
+ }