@engramx/client 0.16.0-rc.2 → 0.16.0-rc.4

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.
@@ -1,1366 +0,0 @@
1
- // GENERATED — DO NOT EDIT BY HAND. Vendored copy of engramx/src/generated/engram.idl.js, the
2
- // didc output that scripts/gen-did.sh regenerates from the engram canister's source.
3
- //
4
- // WHY A COPY LIVES INSIDE THE PACKAGE. @engramx/client publishes `dist/` and nothing else, and
5
- // its tsconfig pins `rootDir: "src"` — so the package can neither import nor emit a module that
6
- // sits above its own source root. An import of ../../../src/generated resolves in this checkout
7
- // and resolves to NOTHING in the installed tarball. Vendoring the didc output into the package is
8
- // what makes the generated factory reachable at build time AND at install time.
9
- //
10
- // This is a MACHINE copy, not a hand copy, and that distinction is the whole point: the hand IDL
11
- // it replaces could (and historically did) mistype a field or drop a variant tag, a class of
12
- // defect Candid surfaces only when the first value carrying that shape appears. The freshness gate
13
- // in test/idl-fidelity.test.ts fails if this file is not byte-derivable from the source above.
14
- //
15
- // INTERIM. ADR-0018 (ratified 2026-08-16) ships these interfaces as an npm-pinned artifact;
16
- // execution-plan W2 item 5 / W3 item 3 build it. When that artifact exists this file is deleted
17
- // and the package depends on it instead, and the freshness gate goes with it.
18
- // ---- GENERATED SOURCE BELOW: byte-identical to the .js apart from the `{ IDL: any }` annotation ----
19
- export const idlFactory = ({ IDL }) => {
20
- const About = IDL.Record({
21
- verifiedHuman: IDL.Bool,
22
- guardianCount: IDL.Nat,
23
- totalMemoryWrites: IDL.Nat,
24
- lastAgentWriteAtNs: IDL.Opt(IDL.Int),
25
- distinctReaderPrincipals: IDL.Nat,
26
- lastWriteAtNs: IDL.Opt(IDL.Int),
27
- totalBackupSize: IDL.Nat,
28
- backupCount: IDL.Nat,
29
- lastAgentReadAtNs: IDL.Opt(IDL.Int),
30
- firstWriteAtNs: IDL.Opt(IDL.Int),
31
- agentCount: IDL.Nat,
32
- paidMemoryReadEnabled: IDL.Bool,
33
- version: IDL.Text,
34
- paymentsFrozen: IDL.Bool,
35
- agentMemoryWrites: IDL.Nat,
36
- agentMemoryReads: IDL.Nat,
37
- auditLogSize: IDL.Nat,
38
- memoryFileCount: IDL.Nat,
39
- firstAgentWriteAtNs: IDL.Opt(IDL.Int),
40
- lastReadAtNs: IDL.Opt(IDL.Int),
41
- writesPaused: IDL.Bool,
42
- distinctReaderClients: IDL.Nat,
43
- totalMemoryReads: IDL.Nat,
44
- walletActivatedAtNs: IDL.Opt(IDL.Int),
45
- encryptionEnabled: IDL.Bool,
46
- paidMemoryWriteEnabled: IDL.Bool,
47
- });
48
- const AgentStatus = IDL.Variant({
49
- Active: IDL.Null,
50
- Resigned: IDL.Null,
51
- Revoked: IDL.Null,
52
- });
53
- const LogPosition = IDL.Record({ reads: IDL.Nat, record: IDL.Nat });
54
- const HeldKey = IDL.Record({
55
- key: IDL.Principal,
56
- from: LogPosition,
57
- until: LogPosition,
58
- });
59
- const AgentPermissions = IDL.Record({
60
- canReadMemory: IDL.Bool,
61
- scopes: IDL.Opt(IDL.Vec(IDL.Text)),
62
- canReadBackup: IDL.Opt(IDL.Bool),
63
- callsPerMinute: IDL.Nat,
64
- canAppendMemory: IDL.Bool,
65
- canReadWallet: IDL.Bool,
66
- });
67
- const EnrolmentProof = IDL.Record({
68
- signature: IDL.Vec(IDL.Nat8),
69
- enrolledKey: IDL.Principal,
70
- rootPubkey: IDL.Vec(IDL.Nat8),
71
- inviteCode: IDL.Text,
72
- });
73
- const AgentEndReason = IDL.Variant({
74
- Resigned: IDL.Null,
75
- OwnerRevoked: IDL.Null,
76
- Reset: IDL.Null,
77
- KillSwitch: IDL.Null,
78
- GuardianRevoked: IDL.Null,
79
- });
80
- const AgentEnding = IDL.Record({
81
- day: IDL.Int,
82
- reason: AgentEndReason,
83
- });
84
- const KeyNomination = IDL.Record({ key: IDL.Principal, atNs: IDL.Int });
85
- const AgentRecord = IDL.Record({
86
- status: AgentStatus,
87
- earlierKeys: IDL.Vec(HeldKey),
88
- permissions: AgentPermissions,
89
- principal: IDL.Principal,
90
- keyRotationCount: IDL.Nat,
91
- publicKeyHash: IDL.Opt(IDL.Text),
92
- pairedAtNs: IDL.Int,
93
- enrolment: EnrolmentProof,
94
- lastSeenNs: IDL.Int,
95
- name: IDL.Text,
96
- root: IDL.Principal,
97
- ended: IDL.Opt(AgentEnding),
98
- keyNomination: IDL.Opt(KeyNomination),
99
- keyRotatedAtNs: IDL.Int,
100
- keyHeldFrom: LogPosition,
101
- });
102
- const Error = IDL.Variant({
103
- Invalid: IDL.Text,
104
- NotFound: IDL.Text,
105
- Refused: IDL.Text,
106
- Other: IDL.Text,
107
- Unavailable: IDL.Text,
108
- Conflict: IDL.Text,
109
- });
110
- const Result_70 = IDL.Variant({ Ok: AgentRecord, Err: Error });
111
- const HttpHeader = IDL.Record({ value: IDL.Text, name: IDL.Text });
112
- const HttpRequestResult = IDL.Record({
113
- status: IDL.Nat,
114
- body: IDL.Vec(IDL.Nat8),
115
- headers: IDL.Vec(HttpHeader),
116
- });
117
- const Eip712Registration = IDL.Record({
118
- encodeTypeString: IDL.Text,
119
- cooloffEndsAtNs: IDL.Int,
120
- typeId: IDL.Vec(IDL.Nat8),
121
- });
122
- const Result_69 = IDL.Variant({ Ok: Eip712Registration, Err: Error });
123
- const Result_68 = IDL.Variant({
124
- Ok: IDL.Record({ activatesAtNs: IDL.Int }),
125
- Err: Error,
126
- });
127
- const GuardianPermissions = IDL.Record({
128
- canFreezePayments: IDL.Bool,
129
- canRevokeAgents: IDL.Bool,
130
- scopes: IDL.Opt(IDL.Vec(IDL.Text)),
131
- canPauseWrites: IDL.Bool,
132
- });
133
- const Result_1 = IDL.Variant({ Ok: IDL.Null, Err: Error });
134
- const MemorySource = IDL.Variant({
135
- sessionTranscript: IDL.Null,
136
- human: IDL.Null,
137
- fileSync: IDL.Null,
138
- agentDerived: IDL.Null,
139
- deterministic: IDL.Null,
140
- });
141
- const WriteReceipt = IDL.Record({
142
- seq: IDL.Nat,
143
- head: IDL.Vec(IDL.Nat8),
144
- version: IDL.Nat,
145
- });
146
- const Result = IDL.Variant({ Ok: WriteReceipt, Err: Error });
147
- const CondenseResult = IDL.Record({
148
- seq: IDL.Nat,
149
- toSeq: IDL.Nat,
150
- opsRoot: IDL.Vec(IDL.Nat8),
151
- head: IDL.Vec(IDL.Nat8),
152
- fromSeq: IDL.Nat,
153
- headAtBoundary: IDL.Vec(IDL.Nat8),
154
- newFirstAvailableSeq: IDL.Nat,
155
- historyBytesDelta: IDL.Int,
156
- opCount: IDL.Nat,
157
- });
158
- const Result_67 = IDL.Variant({ Ok: CondenseResult, Err: Error });
159
- const BackupType = IDL.Variant({
160
- PartialSnapshot: IDL.Null,
161
- IncrementalDiff: IDL.Null,
162
- FullSnapshot: IDL.Null,
163
- });
164
- const Result_43 = IDL.Variant({ Ok: IDL.Text, Err: Error });
165
- const Result_59 = IDL.Variant({ Ok: IDL.Vec(IDL.Nat8), Err: Error });
166
- const Result_8 = IDL.Variant({ Ok: IDL.Nat, Err: Error });
167
- const MemoryRangeExport = IDL.Record({
168
- seq: IDL.Nat,
169
- toSeq: IDL.Nat,
170
- opsRoot: IDL.Vec(IDL.Nat8),
171
- atNs: IDL.Int,
172
- head: IDL.Vec(IDL.Nat8),
173
- fromSeq: IDL.Nat,
174
- authorFilter: IDL.Opt(IDL.Principal),
175
- });
176
- const Result_66 = IDL.Variant({ Ok: MemoryRangeExport, Err: Error });
177
- const AlertConfig = IDL.Record({
178
- url: IDL.Opt(IDL.Text),
179
- money: IDL.Bool,
180
- classes: IDL.Opt(IDL.Vec(IDL.Tuple(IDL.Text, IDL.Bool))),
181
- agentWrites: IDL.Bool,
182
- guardian: IDL.Bool,
183
- approvals: IDL.Bool,
184
- });
185
- const AlertStatus = IDL.Record({
186
- lastDeliveredAtNs: IDL.Opt(IDL.Int),
187
- failures: IDL.Nat,
188
- totalAudit: IDL.Nat,
189
- cursor: IDL.Nat,
190
- disabled: IDL.Bool,
191
- config: AlertConfig,
192
- });
193
- const Result_57 = IDL.Variant({ Ok: AlertStatus, Err: Error });
194
- const Result_53 = IDL.Variant({
195
- Ok: IDL.Record({ paths: IDL.Vec(IDL.Text) }),
196
- Err: Error,
197
- });
198
- const OwnerRow = IDL.Record({
199
- pairedDay: IDL.Nat,
200
- lastPaymentDay: IDL.Opt(IDL.Nat),
201
- root: IDL.Principal,
202
- weeks: IDL.Nat64,
203
- produced: IDL.Nat,
204
- firstPaymentDay: IDL.Opt(IDL.Nat),
205
- });
206
- const Page_21 = IDL.Record({
207
- total: IDL.Nat,
208
- withheld: IDL.Nat,
209
- items: IDL.Vec(OwnerRow),
210
- });
211
- const Result_64 = IDL.Variant({ Ok: Page_21, Err: Error });
212
- const Role = IDL.Variant({
213
- Anonymous: IDL.Null,
214
- Viewer: IDL.Null,
215
- Engram: IDL.Null,
216
- Root: IDL.Null,
217
- Buyer: IDL.Null,
218
- WasmAdmin: IDL.Null,
219
- Guardian: IDL.Null,
220
- Seller: IDL.Null,
221
- Admin: IDL.Null,
222
- Agent: IDL.Null,
223
- Other: IDL.Null,
224
- Owner: IDL.Null,
225
- });
226
- const AuditEntry = IDL.Record({
227
- id: IDL.Nat,
228
- entryHash: IDL.Vec(IDL.Nat8),
229
- callerRole: Role,
230
- operation: IDL.Text,
231
- details: IDL.Text,
232
- caller: IDL.Principal,
233
- success: IDL.Bool,
234
- timestampNs: IDL.Int,
235
- });
236
- const AgentWriteRow = IDL.Record({
237
- source: IDL.Opt(IDL.Text),
238
- path: IDL.Opt(IDL.Text),
239
- entry: AuditEntry,
240
- version: IDL.Opt(IDL.Nat),
241
- connector: IDL.Opt(IDL.Text),
242
- });
243
- const AgentWriteReview = IDL.Record({
244
- cursor: IDL.Nat,
245
- head: IDL.Nat,
246
- rows: IDL.Vec(AgentWriteRow),
247
- earliest: IDL.Nat,
248
- capped: IDL.Bool,
249
- });
250
- const Result_63 = IDL.Variant({ Ok: AgentWriteReview, Err: Error });
251
- const AnchorPushStatus = IDL.Record({
252
- anchorTickAtNs: IDL.Opt(IDL.Int),
253
- okAtNs: IDL.Opt(IDL.Int),
254
- cadenceSeconds: IDL.Nat,
255
- attemptTotal: IDL.Nat,
256
- currentTotal: IDL.Nat,
257
- timerTickAtNs: IDL.Opt(IDL.Int),
258
- okTotal: IDL.Nat,
259
- carrierArmedAtNs: IDL.Int,
260
- attemptAtNs: IDL.Opt(IDL.Int),
261
- skipCursor: IDL.Nat,
262
- lastError: IDL.Text,
263
- });
264
- const AuditHead = IDL.Record({
265
- headHash: IDL.Vec(IDL.Nat8),
266
- size: IDL.Nat,
267
- });
268
- const BackupStatus = IDL.Variant({
269
- Uploading: IDL.Null,
270
- Failed: IDL.Null,
271
- Finalized: IDL.Null,
272
- });
273
- const BackupMetadata = IDL.Record({
274
- status: BackupStatus,
275
- sha256: IDL.Text,
276
- backupId: IDL.Text,
277
- createdBy: IDL.Principal,
278
- createdAtNs: IDL.Int,
279
- totalSize: IDL.Nat,
280
- backupLabel: IDL.Opt(IDL.Text),
281
- backupType: BackupType,
282
- dbType: IDL.Text,
283
- chunkCount: IDL.Nat,
284
- parentBackupId: IDL.Opt(IDL.Text),
285
- });
286
- const Result_62 = IDL.Variant({ Ok: BackupMetadata, Err: Error });
287
- const CertifiedAuditHead = IDL.Record({
288
- total: IDL.Nat,
289
- certificate: IDL.Opt(IDL.Vec(IDL.Nat8)),
290
- headHash: IDL.Vec(IDL.Nat8),
291
- size: IDL.Nat,
292
- witness: IDL.Opt(IDL.Vec(IDL.Nat8)),
293
- });
294
- const ChildAllowanceRow = IDL.Record({
295
- root: IDL.Principal,
296
- remaining: IDL.Nat,
297
- });
298
- const Result_61 = IDL.Variant({ Ok: ChildAllowanceRow, Err: Error });
299
- const ChildOpening = IDL.Record({
300
- attachCycles: IDL.Nat,
301
- balance: IDL.Nat,
302
- allowances: IDL.Vec(ChildAllowanceRow),
303
- floorCycles: IDL.Nat,
304
- });
305
- const Result_60 = IDL.Variant({ Ok: ChildOpening, Err: Error });
306
- const ServiceEntry = IDL.Record({
307
- endpoint: IDL.Text,
308
- name: IDL.Text,
309
- version: IDL.Text,
310
- domains: IDL.Vec(IDL.Text),
311
- skills: IDL.Vec(IDL.Text),
312
- });
313
- const AgentCard = IDL.Record({
314
- x402Support: IDL.Bool,
315
- name: IDL.Text,
316
- description: IDL.Text,
317
- services: IDL.Vec(ServiceEntry),
318
- });
319
- const EvmAddresses = IDL.Record({
320
- pay: IDL.Text,
321
- engramRegistration: IDL.Text,
322
- });
323
- const Result_58 = IDL.Variant({ Ok: EvmAddresses, Err: Error });
324
- const GenesisNote = IDL.Record({
325
- predecessorSize: IDL.Opt(IDL.Nat),
326
- predecessorHeadHash: IDL.Opt(IDL.Vec(IDL.Nat8)),
327
- note: IDL.Text,
328
- version: IDL.Text,
329
- genesisAtNs: IDL.Int,
330
- });
331
- const MemoryEviction = IDL.Record({
332
- evictSeq: IDL.Nat,
333
- fromVersion: IDL.Nat,
334
- evictedRoot: IDL.Vec(IDL.Nat8),
335
- trigger: IDL.Variant({
336
- globalCap: IDL.Null,
337
- thinTail: IDL.Null,
338
- perFileCap: IDL.Null,
339
- thinLogSpaced: IDL.Null,
340
- policy: IDL.Null,
341
- }),
342
- cause: IDL.Variant({ maxVersions: IDL.Null, maxBytes: IDL.Null }),
343
- toVersion: IDL.Nat,
344
- });
345
- const MemoryVersionSummary = IDL.Record({
346
- by: IDL.Principal,
347
- seq: IDL.Nat,
348
- contentRoot: IDL.Vec(IDL.Nat8),
349
- atNs: IDL.Int,
350
- kind: IDL.Variant({
351
- set: IDL.Null,
352
- restore: IDL.Null,
353
- append: IDL.Null,
354
- tombstone: IDL.Null,
355
- }),
356
- size: IDL.Nat,
357
- version: IDL.Nat,
358
- });
359
- const MemoryHistory = IDL.Record({
360
- evictions: IDL.Vec(MemoryEviction),
361
- oldestRetainedVersion: IDL.Nat,
362
- everCount: IDL.Nat,
363
- retainedCount: IDL.Nat,
364
- versions: IDL.Vec(MemoryVersionSummary),
365
- evictedCount: IDL.Nat,
366
- });
367
- const Result_56 = IDL.Variant({ Ok: MemoryHistory, Err: Error });
368
- const MemoryMaintainStatus = IDL.Record({
369
- attachOk: IDL.Bool,
370
- attachDetail: IDL.Text,
371
- totalEvictions: IDL.Nat,
372
- refusedQuota: IDL.Text,
373
- more: IDL.Bool,
374
- lastEvictions: IDL.Nat,
375
- lastScrubbed: IDL.Nat,
376
- lastMaintainAtNs: IDL.Opt(IDL.Int),
377
- totalFindings: IDL.Nat,
378
- refused: IDL.Bool,
379
- });
380
- const RetentionClassSpec = IDL.Variant({
381
- vault: IDL.Null,
382
- working: IDL.Record({
383
- maxVersions: IDL.Opt(IDL.Nat),
384
- maxBytes: IDL.Opt(IDL.Nat),
385
- thinning: IDL.Variant({
386
- tail: IDL.Null,
387
- logSpaced: IDL.Record({ denseTail: IDL.Nat }),
388
- }),
389
- }),
390
- });
391
- const MemoryRetentionPolicy = IDL.Record({
392
- entries: IDL.Vec(IDL.Tuple(IDL.Text, RetentionClassSpec)),
393
- guards: IDL.Vec(IDL.Record({ notBeforeNs: IDL.Int, prefix: IDL.Text })),
394
- });
395
- const Result_55 = IDL.Variant({
396
- Ok: MemoryRetentionPolicy,
397
- Err: Error,
398
- });
399
- const GuardianStatus = IDL.Variant({
400
- Active: IDL.Null,
401
- Pending: IDL.Null,
402
- });
403
- const GuardianRecord = IDL.Record({
404
- status: GuardianStatus,
405
- permissions: GuardianPermissions,
406
- principal: IDL.Principal,
407
- name: IDL.Text,
408
- addedAtNs: IDL.Int,
409
- });
410
- const Result_15 = IDL.Variant({ Ok: GuardianRecord, Err: Error });
411
- const OwnerConsole = IDL.Record({
412
- pendingApprovalCount: IDL.Nat,
413
- memoryKeyEpoch: IDL.Nat,
414
- owner: IDL.Opt(IDL.Principal),
415
- agentRevisablePathCount: IDL.Nat,
416
- protectedPathCount: IDL.Nat,
417
- cyclesBalance: IDL.Nat,
418
- unknownSessionRefusals: IDL.Nat,
419
- });
420
- const Result_54 = IDL.Variant({ Ok: OwnerConsole, Err: Error });
421
- const SigningFloorStatus = IDL.Record({
422
- floor: IDL.Nat,
423
- signaturesAboveFloor: IDL.Nat,
424
- balance: IDL.Nat,
425
- perSignature: IDL.Nat,
426
- });
427
- const Result_52 = IDL.Variant({ Ok: SigningFloorStatus, Err: Error });
428
- const SpendCeiling = IDL.Record({
429
- spentToday: IDL.Nat,
430
- maxPerDay: IDL.Opt(IDL.Nat),
431
- });
432
- const Result_51 = IDL.Variant({ Ok: SpendCeiling, Err: Error });
433
- const SpendingPolicy = IDL.Record({
434
- maxSessionDeposit: IDL.Opt(IDL.Nat),
435
- blockedCallers: IDL.Opt(IDL.Vec(IDL.Principal)),
436
- maxPerDay: IDL.Opt(IDL.Nat),
437
- maxSessionDuration: IDL.Opt(IDL.Int),
438
- sessionIdleTimeout: IDL.Opt(IDL.Int),
439
- rateLimitPerMinute: IDL.Opt(IDL.Nat),
440
- maxPerTransaction: IDL.Opt(IDL.Nat),
441
- allowedCallers: IDL.Opt(IDL.Vec(IDL.Principal)),
442
- maxConcurrentSessions: IDL.Opt(IDL.Nat),
443
- });
444
- const Result_50 = IDL.Variant({ Ok: SpendingPolicy, Err: Error });
445
- const StorageReport = IDL.Record({
446
- sessionFilesSize: IDL.Nat,
447
- totalFiles: IDL.Nat,
448
- memoryFilesSize: IDL.Nat,
449
- totalContentSize: IDL.Nat,
450
- backupCount: IDL.Nat,
451
- memoryFilesCount: IDL.Nat,
452
- versionHistorySize: IDL.Nat,
453
- fileLimit: IDL.Nat,
454
- backupSize: IDL.Nat,
455
- auditLogSize: IDL.Nat,
456
- versionHistoryCount: IDL.Nat,
457
- sessionFilesCount: IDL.Nat,
458
- });
459
- const Result_49 = IDL.Variant({ Ok: StorageReport, Err: Error });
460
- const TimerHealth = IDL.Record({
461
- jobExpiryFastMode: IDL.Bool,
462
- jobExpiryArmed: IDL.Bool,
463
- alertTimerArmed: IDL.Bool,
464
- sessionExpiryArmed: IDL.Bool,
465
- });
466
- const WalletBalances = IDL.Record({
467
- icpE8s: IDL.Nat,
468
- ckusdcE6s: IDL.Nat,
469
- ckusdtE6s: IDL.Nat,
470
- cycles: IDL.Nat,
471
- });
472
- const Result_48 = IDL.Variant({ Ok: WalletBalances, Err: Error });
473
- const WorldIdConfig = IDL.Record({
474
- action: IDL.Text,
475
- appId: IDL.Text,
476
- rpId: IDL.Text,
477
- configured: IDL.Bool,
478
- });
479
- const Result_47 = IDL.Variant({ Ok: WorldIdConfig, Err: Error });
480
- const WorldIdRpContext = IDL.Record({
481
- signature: IDL.Text,
482
- expiresAt: IDL.Nat,
483
- createdAt: IDL.Nat,
484
- rpId: IDL.Text,
485
- nonce: IDL.Text,
486
- });
487
- const Result_46 = IDL.Variant({ Ok: WorldIdRpContext, Err: Error });
488
- const Result_45 = IDL.Variant({ Ok: IDL.Opt(IDL.Text), Err: Error });
489
- const HttpRequest = IDL.Record({
490
- url: IDL.Text,
491
- method: IDL.Text,
492
- body: IDL.Vec(IDL.Nat8),
493
- headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
494
- });
495
- const HttpResponse = IDL.Record({
496
- body: IDL.Vec(IDL.Nat8),
497
- headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
498
- upgrade: IDL.Opt(IDL.Bool),
499
- status_code: IDL.Nat16,
500
- });
501
- const Result_44 = IDL.Variant({ Ok: IDL.Bool, Err: Error });
502
- const ActivitySnapshot = IDL.Record({
503
- atNs: IDL.Int,
504
- memoryReads: IDL.Nat,
505
- memoryWrites: IDL.Nat,
506
- });
507
- const Page_20 = IDL.Record({
508
- total: IDL.Nat,
509
- withheld: IDL.Nat,
510
- items: IDL.Vec(ActivitySnapshot),
511
- });
512
- const Result_42 = IDL.Variant({ Ok: Page_20, Err: Error });
513
- const Page_19 = IDL.Record({
514
- total: IDL.Nat,
515
- withheld: IDL.Nat,
516
- items: IDL.Vec(AgentRecord),
517
- });
518
- const Result_41 = IDL.Variant({ Ok: Page_19, Err: Error });
519
- const Page_18 = IDL.Record({
520
- total: IDL.Nat,
521
- withheld: IDL.Nat,
522
- items: IDL.Vec(IDL.Record({
523
- status: AgentStatus,
524
- principal: IDL.Principal,
525
- name: IDL.Text,
526
- })),
527
- });
528
- const Result_40 = IDL.Variant({ Ok: Page_18, Err: Error });
529
- const ApprovalStatus = IDL.Variant({
530
- Used: IDL.Null,
531
- Approved: IDL.Null,
532
- Denied: IDL.Null,
533
- Expired: IDL.Null,
534
- Pending: IDL.Null,
535
- });
536
- const ApprovalRequest = IDL.Record({
537
- id: IDL.Text,
538
- expiresAtNs: IDL.Int,
539
- status: ApprovalStatus,
540
- denialReason: IDL.Opt(IDL.Text),
541
- policyField: IDL.Text,
542
- approvedBy: IDL.Opt(IDL.Principal),
543
- createdAtNs: IDL.Int,
544
- approvedAtNs: IDL.Opt(IDL.Int),
545
- binding: IDL.Text,
546
- operation: IDL.Text,
547
- rationale: IDL.Text,
548
- policyLimit: IDL.Nat,
549
- caller: IDL.Principal,
550
- amount: IDL.Nat,
551
- });
552
- const Page_6 = IDL.Record({
553
- total: IDL.Nat,
554
- withheld: IDL.Nat,
555
- items: IDL.Vec(ApprovalRequest),
556
- });
557
- const Result_28 = IDL.Variant({ Ok: Page_6, Err: Error });
558
- const Page_1 = IDL.Record({
559
- total: IDL.Nat,
560
- withheld: IDL.Nat,
561
- items: IDL.Vec(AuditEntry),
562
- });
563
- const Result_23 = IDL.Variant({ Ok: Page_1, Err: Error });
564
- const Page_17 = IDL.Record({
565
- total: IDL.Nat,
566
- withheld: IDL.Nat,
567
- items: IDL.Vec(BackupMetadata),
568
- });
569
- const Result_39 = IDL.Variant({ Ok: Page_17, Err: Error });
570
- const BearerTokenStatus = IDL.Variant({
571
- Active: IDL.Null,
572
- Revoked: IDL.Null,
573
- Expired: IDL.Null,
574
- });
575
- const BearerToken = IDL.Record({
576
- expiresAtNs: IDL.Int,
577
- status: BearerTokenStatus,
578
- lastUsedNs: IDL.Int,
579
- permissions: AgentPermissions,
580
- tokenId: IDL.Text,
581
- clientLabel: IDL.Text,
582
- issuedAtNs: IDL.Int,
583
- tokenHash: IDL.Text,
584
- issuedBy: IDL.Principal,
585
- });
586
- const Page_16 = IDL.Record({
587
- total: IDL.Nat,
588
- withheld: IDL.Nat,
589
- items: IDL.Vec(BearerToken),
590
- });
591
- const Result_38 = IDL.Variant({ Ok: Page_16, Err: Error });
592
- const CondenseCheckpointRow = IDL.Record({
593
- by: IDL.Principal,
594
- seq: IDL.Nat,
595
- toSeq: IDL.Nat,
596
- opsRoot: IDL.Vec(IDL.Nat8),
597
- atNs: IDL.Int,
598
- fromSeq: IDL.Nat,
599
- headAtBoundary: IDL.Vec(IDL.Nat8),
600
- opCount: IDL.Nat,
601
- });
602
- const Page_15 = IDL.Record({
603
- total: IDL.Nat,
604
- withheld: IDL.Nat,
605
- items: IDL.Vec(CondenseCheckpointRow),
606
- });
607
- const CheckpointPage = IDL.Record({
608
- firstAvailableSeq: IDL.Nat,
609
- page: Page_15,
610
- scannedThroughSeq: IDL.Nat,
611
- });
612
- const Result_37 = IDL.Variant({ Ok: CheckpointPage, Err: Error });
613
- const CycleSnapshot = IDL.Record({
614
- seq: IDL.Nat,
615
- source: IDL.Variant({ balance: IDL.Null, self: IDL.Null }),
616
- atNs: IDL.Int,
617
- cycles: IDL.Nat,
618
- });
619
- const Page_14 = IDL.Record({
620
- total: IDL.Nat,
621
- withheld: IDL.Nat,
622
- items: IDL.Vec(CycleSnapshot),
623
- });
624
- const Result_36 = IDL.Variant({ Ok: Page_14, Err: Error });
625
- const Page_13 = IDL.Record({
626
- total: IDL.Nat,
627
- withheld: IDL.Nat,
628
- items: IDL.Vec(IDL.Text),
629
- });
630
- const Result_35 = IDL.Variant({ Ok: Page_13, Err: Error });
631
- const AuthorityClass = IDL.Variant({
632
- standingAuthority: IDL.Null,
633
- valueBearing: IDL.Null,
634
- standard: IDL.Null,
635
- });
636
- const RegisteredType = IDL.Record({
637
- primaryType: IDL.Text,
638
- encodeTypeString: IDL.Text,
639
- cooloffEndsAtNs: IDL.Int,
640
- domainName: IDL.Text,
641
- typeId: IDL.Vec(IDL.Nat8),
642
- verifyingContract: IDL.Text,
643
- dailySignCap: IDL.Nat,
644
- fields: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
645
- domainSeparator: IDL.Vec(IDL.Nat8),
646
- destinationFields: IDL.Vec(IDL.Text),
647
- authorityClass: AuthorityClass,
648
- typeHash: IDL.Vec(IDL.Nat8),
649
- registeredAtNs: IDL.Int,
650
- chainId: IDL.Nat,
651
- domainVersion: IDL.Text,
652
- ackIrrevocable: IDL.Bool,
653
- });
654
- const Page_12 = IDL.Record({
655
- total: IDL.Nat,
656
- withheld: IDL.Nat,
657
- items: IDL.Vec(RegisteredType),
658
- });
659
- const Result_34 = IDL.Variant({ Ok: Page_12, Err: Error });
660
- const Page_11 = IDL.Record({
661
- total: IDL.Nat,
662
- withheld: IDL.Nat,
663
- items: IDL.Vec(IDL.Record({ activeFromNs: IDL.Int, address: IDL.Text })),
664
- });
665
- const Result_33 = IDL.Variant({ Ok: Page_11, Err: Error });
666
- const Page_10 = IDL.Record({
667
- total: IDL.Nat,
668
- withheld: IDL.Nat,
669
- items: IDL.Vec(GuardianRecord),
670
- });
671
- const Result_32 = IDL.Variant({ Ok: Page_10, Err: Error });
672
- const ExportReceiptRow = IDL.Record({
673
- by: IDL.Principal,
674
- seq: IDL.Nat,
675
- toSeq: IDL.Nat,
676
- opsRoot: IDL.Vec(IDL.Nat8),
677
- atNs: IDL.Int,
678
- fromSeq: IDL.Nat,
679
- authorFilter: IDL.Opt(IDL.Principal),
680
- });
681
- const Page_9 = IDL.Record({
682
- total: IDL.Nat,
683
- withheld: IDL.Nat,
684
- items: IDL.Vec(ExportReceiptRow),
685
- });
686
- const ReceiptPage = IDL.Record({
687
- firstAvailableSeq: IDL.Nat,
688
- page: Page_9,
689
- scannedThroughSeq: IDL.Nat,
690
- });
691
- const Result_31 = IDL.Variant({ Ok: ReceiptPage, Err: Error });
692
- const Page_8 = IDL.Record({
693
- total: IDL.Nat,
694
- withheld: IDL.Nat,
695
- items: IDL.Vec(IDL.Record({
696
- path: IDL.Text,
697
- version: IDL.Nat,
698
- lastModifiedAtNs: IDL.Int,
699
- })),
700
- });
701
- const Result_30 = IDL.Variant({ Ok: Page_8, Err: Error });
702
- const MemoryLogChunkRef = IDL.Record({
703
- hash: IDL.Vec(IDL.Nat8),
704
- size: IDL.Nat,
705
- birthSeq: IDL.Nat,
706
- });
707
- const MemoryLogManifest = IDL.Record({
708
- contentRoot: IDL.Vec(IDL.Nat8),
709
- totalSize: IDL.Nat,
710
- chunks: IDL.Vec(MemoryLogChunkRef),
711
- });
712
- const MemoryLogImportNote = IDL.Variant({
713
- legacyDelete: IDL.Null,
714
- legacyTruncated: IDL.Record({
715
- prefixHash: IDL.Vec(IDL.Nat8),
716
- storedBytes: IDL.Nat,
717
- }),
718
- legacyGap: IDL.Record({ firstSurviving: IDL.Nat }),
719
- legacyUnreconstructable: IDL.Record({
720
- contentHash: IDL.Vec(IDL.Nat8),
721
- reason: IDL.Text,
722
- }),
723
- genesis: IDL.Record({ boundTo: IDL.Opt(IDL.Vec(IDL.Nat8)) }),
724
- });
725
- const MemoryLogOp = IDL.Variant({
726
- set: IDL.Record({ manifest: MemoryLogManifest }),
727
- exported: IDL.Record({
728
- toSeq: IDL.Nat,
729
- opsRoot: IDL.Vec(IDL.Nat8),
730
- fromSeq: IDL.Nat,
731
- authorFilter: IDL.Opt(IDL.Principal),
732
- }),
733
- imported: MemoryLogImportNote,
734
- restore: IDL.Record({
735
- toVersion: IDL.Nat,
736
- manifest: MemoryLogManifest,
737
- }),
738
- evict: IDL.Record({
739
- fromVersion: IDL.Nat,
740
- evictedRoot: IDL.Vec(IDL.Nat8),
741
- toVersion: IDL.Nat,
742
- chunkCount: IDL.Nat,
743
- byteCount: IDL.Nat,
744
- }),
745
- append: IDL.Record({
746
- deltaHash: IDL.Vec(IDL.Nat8),
747
- deltaSize: IDL.Nat,
748
- newSize: IDL.Nat,
749
- }),
750
- tombstone: IDL.Null,
751
- condense: IDL.Record({
752
- toSeq: IDL.Nat,
753
- opsRoot: IDL.Vec(IDL.Nat8),
754
- fromSeq: IDL.Nat,
755
- headAtBoundary: IDL.Vec(IDL.Nat8),
756
- opCount: IDL.Nat,
757
- }),
758
- });
759
- const MemoryLogEvent = IDL.Record({
760
- by: IDL.Principal,
761
- op: MemoryLogOp,
762
- seq: IDL.Nat,
763
- contentRoot: IDL.Vec(IDL.Nat8),
764
- atNs: IDL.Int,
765
- path: IDL.Text,
766
- prev: IDL.Vec(IDL.Nat8),
767
- size: IDL.Nat,
768
- version: IDL.Nat,
769
- });
770
- const Page_7 = IDL.Record({
771
- total: IDL.Nat,
772
- withheld: IDL.Nat,
773
- items: IDL.Vec(MemoryLogEvent),
774
- });
775
- const LogPage = IDL.Record({
776
- firstAvailableSeq: IDL.Nat,
777
- head: IDL.Vec(IDL.Nat8),
778
- page: Page_7,
779
- });
780
- const Result_29 = IDL.Variant({ Ok: LogPage, Err: Error });
781
- const EngramSessionStatus = IDL.Variant({
782
- closed: IDL.Null,
783
- expired: IDL.Null,
784
- other: IDL.Text,
785
- open: IDL.Null,
786
- closing: IDL.Null,
787
- });
788
- const EngramSessionState = IDL.Record({
789
- id: IDL.Text,
790
- status: EngramSessionStatus,
791
- deposited: IDL.Nat,
792
- openedAtNs: IDL.Int,
793
- lastActivityAtNs: IDL.Int,
794
- consumed: IDL.Nat,
795
- voucherCount: IDL.Nat,
796
- remaining: IDL.Nat,
797
- payer: IDL.Principal,
798
- });
799
- const Page_5 = IDL.Record({
800
- total: IDL.Nat,
801
- withheld: IDL.Nat,
802
- items: IDL.Vec(EngramSessionState),
803
- });
804
- const Result_27 = IDL.Variant({ Ok: Page_5, Err: Error });
805
- const OwnershipTransfer = IDL.Record({
806
- to: IDL.Principal,
807
- atNs: IDL.Int,
808
- from: IDL.Opt(IDL.Principal),
809
- authorizedBy: IDL.Principal,
810
- });
811
- const Page_4 = IDL.Record({
812
- total: IDL.Nat,
813
- withheld: IDL.Nat,
814
- items: IDL.Vec(OwnershipTransfer),
815
- });
816
- const Result_26 = IDL.Variant({ Ok: Page_4, Err: Error });
817
- const MarketplacePaymentSignatures = IDL.Record({
818
- marketplace: IDL.Principal,
819
- sharedSignedToday: IDL.Nat,
820
- limit: IDL.Nat,
821
- });
822
- const AgentPaymentSignatures = IDL.Record({
823
- agent: IDL.Principal,
824
- signedToday: IDL.Nat,
825
- root: IDL.Principal,
826
- });
827
- const Page_3 = IDL.Record({
828
- total: IDL.Nat,
829
- withheld: IDL.Nat,
830
- items: IDL.Vec(AgentPaymentSignatures),
831
- });
832
- const PaymentSignatureCounts = IDL.Record({
833
- day: IDL.Int,
834
- marketplace: IDL.Opt(MarketplacePaymentSignatures),
835
- agents: Page_3,
836
- limit: IDL.Nat,
837
- });
838
- const Result_25 = IDL.Variant({
839
- Ok: PaymentSignatureCounts,
840
- Err: Error,
841
- });
842
- const PurgedAgent = IDL.Record({
843
- principal: IDL.Principal,
844
- pairedAtNs: IDL.Int,
845
- name: IDL.Text,
846
- root: IDL.Principal,
847
- enrolledKey: IDL.Principal,
848
- ended: AgentEnding,
849
- invite: IDL.Text,
850
- purgedAtNs: IDL.Int,
851
- });
852
- const Page_2 = IDL.Record({
853
- total: IDL.Nat,
854
- withheld: IDL.Nat,
855
- items: IDL.Vec(PurgedAgent),
856
- });
857
- const Result_24 = IDL.Variant({ Ok: Page_2, Err: Error });
858
- const Repudiation = IDL.Record({
859
- atNs: IDL.Int,
860
- path: IDL.Text,
861
- auditId: IDL.Nat,
862
- version: IDL.Nat,
863
- reason: IDL.Text,
864
- });
865
- const Page = IDL.Record({
866
- total: IDL.Nat,
867
- withheld: IDL.Nat,
868
- items: IDL.Vec(Repudiation),
869
- });
870
- const Result_22 = IDL.Variant({ Ok: Page, Err: Error });
871
- const Result_21 = IDL.Variant({ Ok: IDL.Principal, Err: Error });
872
- const SessionConfig = IDL.Record({
873
- autoClose: IDL.Bool,
874
- idleTimeout: IDL.Opt(IDL.Int),
875
- maxDeposit: IDL.Nat,
876
- });
877
- const Eip3009Authorization = IDL.Record({
878
- r: IDL.Vec(IDL.Nat8),
879
- s: IDL.Vec(IDL.Nat8),
880
- v: IDL.Nat8,
881
- to: IDL.Text,
882
- value: IDL.Nat,
883
- from: IDL.Text,
884
- validAfter: IDL.Nat,
885
- nonce: IDL.Vec(IDL.Nat8),
886
- validBefore: IDL.Nat,
887
- });
888
- const PaymentSignature = IDL.Record({
889
- signature: IDL.Vec(IDL.Nat8),
890
- asset: IDL.Opt(IDL.Text),
891
- publicKey: IDL.Opt(IDL.Vec(IDL.Nat8)),
892
- scheme: IDL.Text,
893
- network: IDL.Text,
894
- sender: IDL.Text,
895
- nonce: IDL.Vec(IDL.Nat8),
896
- authorization: IDL.Opt(Eip3009Authorization),
897
- });
898
- const Result_20 = IDL.Variant({ Ok: EngramSessionState, Err: Error });
899
- const TokenAmount = IDL.Variant({
900
- Icp: IDL.Nat,
901
- Ckusdc: IDL.Nat,
902
- Ckusdt: IDL.Nat,
903
- });
904
- const ActionAuth = IDL.Record({
905
- signature: IDL.Vec(IDL.Nat8),
906
- pubkey: IDL.Vec(IDL.Nat8),
907
- nonce: IDL.Nat,
908
- });
909
- const Enrolment = IDL.Record({
910
- signature: IDL.Vec(IDL.Nat8),
911
- enrolledKey: IDL.Principal,
912
- rootPubkey: IDL.Vec(IDL.Nat8),
913
- engram: IDL.Principal,
914
- });
915
- const TrackRecordNotice = IDL.Variant({
916
- Recorded: IDL.Null,
917
- NotRecorded: IDL.Text,
918
- });
919
- const Pairing = IDL.Record({
920
- agent: AgentRecord,
921
- trackRecord: TrackRecordNotice,
922
- });
923
- const Result_19 = IDL.Variant({ Ok: Pairing, Err: Error });
924
- const CondensePreview = IDL.Record({
925
- scannedFromSeq: IDL.Nat,
926
- scanTruncated: IDL.Bool,
927
- firstAvailableSeq: IDL.Nat,
928
- unlocked: IDL.Bool,
929
- totalEvents: IDL.Nat,
930
- maxUnlockableToSeq: IDL.Nat,
931
- bestUnfilteredReceipt: IDL.Opt(IDL.Record({ seq: IDL.Nat, toSeq: IDL.Nat, fromSeq: IDL.Nat })),
932
- opCountInRange: IDL.Nat,
933
- filteredReceiptsSeen: IDL.Nat,
934
- coveringReceipt: IDL.Opt(IDL.Record({ seq: IDL.Nat, toSeq: IDL.Nat, fromSeq: IDL.Nat })),
935
- proposedToSeq: IDL.Nat,
936
- });
937
- const Result_18 = IDL.Variant({ Ok: CondensePreview, Err: Error });
938
- const SessionIntent = IDL.Record({
939
- token: IDL.Text,
940
- costPerCall: IDL.Opt(IDL.Nat),
941
- minDeposit: IDL.Opt(IDL.Nat),
942
- recipient: IDL.Text,
943
- network: IDL.Text,
944
- description: IDL.Opt(IDL.Text),
945
- expiryNs: IDL.Int,
946
- suggestedDeposit: IDL.Nat,
947
- });
948
- const MemoryFile = IDL.Record({
949
- content: IDL.Vec(IDL.Nat8),
950
- path: IDL.Text,
951
- version: IDL.Nat,
952
- lastModifiedBy: IDL.Principal,
953
- lastModifiedAtNs: IDL.Int,
954
- });
955
- const Result_11 = IDL.Variant({ Ok: MemoryFile, Err: Error });
956
- const BatchReadItem = IDL.Record({
957
- result: IDL.Variant({ Ok: MemoryFile, Err: Error }),
958
- path: IDL.Text,
959
- });
960
- const Result_17 = IDL.Variant({
961
- Ok: IDL.Vec(BatchReadItem),
962
- Err: Error,
963
- });
964
- const MemoryByteChunk = IDL.Record({
965
- more: IDL.Bool,
966
- fileSize: IDL.Nat,
967
- bytes: IDL.Vec(IDL.Nat8),
968
- });
969
- const Result_16 = IDL.Variant({ Ok: MemoryByteChunk, Err: Error });
970
- const ResetReport = IDL.Record({
971
- agentsRemoved: IDL.Nat,
972
- agentsPurged: IDL.Nat,
973
- guardiansRemoved: IDL.Nat,
974
- filesCleared: IDL.Nat,
975
- });
976
- const Result_14 = IDL.Variant({ Ok: ResetReport, Err: Error });
977
- const UnrecordableEngagement = IDL.Record({
978
- principal: IDL.Principal,
979
- root: IDL.Principal,
980
- ended: AgentEnding,
981
- invite: IDL.Text,
982
- });
983
- const ResyncReport = IDL.Record({
984
- startsAcknowledged: IDL.Nat,
985
- cannotBeRecorded: IDL.Vec(UnrecordableEngagement),
986
- endingsAcknowledged: IDL.Nat,
987
- notRecorded: IDL.Vec(IDL.Record({
988
- why: IDL.Text,
989
- principal: IDL.Principal,
990
- root: IDL.Principal,
991
- event: IDL.Text,
992
- })),
993
- });
994
- const Result_13 = IDL.Variant({ Ok: ResyncReport, Err: Error });
995
- const Voucher = IDL.Record({
996
- signature: IDL.Vec(IDL.Nat8),
997
- sessionId: IDL.Text,
998
- sequence: IDL.Nat,
999
- cumulativeAmount: IDL.Nat,
1000
- });
1001
- const SessionContext = IDL.Record({
1002
- files: IDL.Vec(MemoryFile),
1003
- totalFiles: IDL.Nat,
1004
- truncated: IDL.Bool,
1005
- includedFiles: IDL.Nat,
1006
- totalBytes: IDL.Nat,
1007
- });
1008
- const Result_12 = IDL.Variant({ Ok: SessionContext, Err: Error });
1009
- const BackupRetentionReport = IDL.Record({
1010
- maxBackups: IDL.Nat,
1011
- dbType: IDL.Text,
1012
- prunedBackups: IDL.Nat,
1013
- });
1014
- const Result_10 = IDL.Variant({
1015
- Ok: BackupRetentionReport,
1016
- Err: Error,
1017
- });
1018
- const Eip712Value = IDL.Variant({
1019
- string: IDL.Text,
1020
- bool: IDL.Bool,
1021
- uint: IDL.Nat,
1022
- address: IDL.Text,
1023
- fixedBytes: IDL.Vec(IDL.Nat8),
1024
- bytes: IDL.Vec(IDL.Nat8),
1025
- });
1026
- const Eip712SignatureOut = IDL.Record({
1027
- r: IDL.Vec(IDL.Nat8),
1028
- s: IDL.Vec(IDL.Nat8),
1029
- v: IDL.Nat8,
1030
- rendered: IDL.Text,
1031
- digest: IDL.Vec(IDL.Nat8),
1032
- });
1033
- const Result_4 = IDL.Variant({ Ok: Eip712SignatureOut, Err: Error });
1034
- const SignedTransaction = IDL.Record({
1035
- txHash: IDL.Text,
1036
- rawTx: IDL.Text,
1037
- });
1038
- const Result_9 = IDL.Variant({ Ok: SignedTransaction, Err: Error });
1039
- const SignedAuthorization = IDL.Record({
1040
- paidAmount: IDL.Nat,
1041
- authorization: IDL.Record({
1042
- to: IDL.Text,
1043
- signature: IDL.Text,
1044
- value: IDL.Nat,
1045
- from: IDL.Text,
1046
- validAfter: IDL.Nat,
1047
- nonce: IDL.Text,
1048
- validBefore: IDL.Nat,
1049
- }),
1050
- header: IDL.Text,
1051
- });
1052
- const X402SignOutcome = IDL.Variant({
1053
- ApprovalPending: ApprovalRequest,
1054
- Signed: SignedAuthorization,
1055
- });
1056
- const Result_3 = IDL.Variant({ Ok: X402SignOutcome, Err: Error });
1057
- const Seat = IDL.Record({
1058
- pairedDay: IDL.Nat,
1059
- lastPaymentDay: IDL.Opt(IDL.Nat),
1060
- weeks: IDL.Nat64,
1061
- produced: IDL.Nat,
1062
- firstPaymentDay: IDL.Opt(IDL.Nat),
1063
- });
1064
- const Result_7 = IDL.Variant({ Ok: IDL.Vec(Seat), Err: Error });
1065
- const RailHealth = IDL.Record({
1066
- sessionsExpired: IDL.Nat,
1067
- sessionsClosed: IDL.Nat,
1068
- paidVouchersConsumed: IDL.Nat,
1069
- escrowOpen: IDL.Opt(IDL.Nat),
1070
- sessionsOpen: IDL.Nat,
1071
- sessionsClosing: IDL.Nat,
1072
- cycles: IDL.Nat,
1073
- sendHeadroom: IDL.Nat,
1074
- memoryBytes: IDL.Nat,
1075
- freezeReservation: IDL.Nat,
1076
- unknownSessionRefusals: IDL.Nat,
1077
- });
1078
- const Result_6 = IDL.Variant({ Ok: RailHealth, Err: Error });
1079
- const CallerSignatureCount = IDL.Record({
1080
- count: IDL.Nat,
1081
- role: Role,
1082
- root: IDL.Opt(IDL.Principal),
1083
- caller: IDL.Principal,
1084
- });
1085
- const SignatureCounts = IDL.Record({
1086
- total: IDL.Nat,
1087
- byCaller: IDL.Vec(CallerSignatureCount),
1088
- });
1089
- const Result_5 = IDL.Variant({ Ok: SignatureCounts, Err: Error });
1090
- const ControlHandover = IDL.Variant({
1091
- MovedByRegistry: IDL.Null,
1092
- NotHeldHere: IDL.Null,
1093
- MovedByEngram: IDL.Null,
1094
- });
1095
- const Result_2 = IDL.Variant({ Ok: ControlHandover, Err: Error });
1096
- const Engram = IDL.Service({
1097
- about: IDL.Func([], [About], ['query']),
1098
- acceptAgentKeyNomination: IDL.Func([IDL.Principal], [Result_70], []),
1099
- actionAlertTransform: IDL.Func([
1100
- IDL.Record({
1101
- context: IDL.Vec(IDL.Nat8),
1102
- response: HttpRequestResult,
1103
- }),
1104
- ], [HttpRequestResult], ['query']),
1105
- addEip712Type: IDL.Func([
1106
- IDL.Record({
1107
- primaryType: IDL.Text,
1108
- canonicalTypeString: IDL.Text,
1109
- domainName: IDL.Text,
1110
- verifyingContract: IDL.Text,
1111
- dailySignCap: IDL.Nat,
1112
- fields: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
1113
- destinationFields: IDL.Vec(IDL.Text),
1114
- authorityClass: IDL.Variant({
1115
- standingAuthority: IDL.Null,
1116
- valueBearing: IDL.Null,
1117
- standard: IDL.Null,
1118
- }),
1119
- chainId: IDL.Nat,
1120
- domainVersion: IDL.Text,
1121
- ackIrrevocable: IDL.Bool,
1122
- }),
1123
- ], [Result_69], []),
1124
- addEvmWithdrawDestination: IDL.Func([IDL.Text], [Result_68], []),
1125
- addGuardian: IDL.Func([IDL.Principal, IDL.Text, GuardianPermissions], [Result_1], []),
1126
- appendMemory: IDL.Func([IDL.Text, IDL.Vec(IDL.Nat8), IDL.Opt(MemorySource)], [Result], []),
1127
- applyCondense: IDL.Func([IDL.Nat], [Result_67], []),
1128
- approveGuardian: IDL.Func([IDL.Principal], [Result_1], []),
1129
- approveRequest: IDL.Func([IDL.Text], [Result_1], []),
1130
- backupAbort: IDL.Func([IDL.Text], [Result_1], []),
1131
- backupFinalize: IDL.Func([IDL.Text], [Result_1], []),
1132
- backupInit: IDL.Func([IDL.Text, BackupType, IDL.Opt(IDL.Text), IDL.Text, IDL.Opt(IDL.Text)], [Result_43], []),
1133
- backupPullChunk: IDL.Func([IDL.Text, IDL.Nat], [Result_59], ['query']),
1134
- backupPushChunk: IDL.Func([IDL.Text, IDL.Nat, IDL.Vec(IDL.Nat8)], [Result_1], []),
1135
- cancelAgentKeyNomination: IDL.Func([IDL.Principal], [Result_1], []),
1136
- closeSession: IDL.Func([IDL.Text], [Result_1], []),
1137
- convertEarningsToCycles: IDL.Func([IDL.Text, IDL.Nat], [Result_8], []),
1138
- createAgentInvite: IDL.Func([IDL.Text, AgentPermissions], [Result_43], []),
1139
- createGuardianInvite: IDL.Func([IDL.Text, GuardianPermissions], [Result_43], []),
1140
- deleteBackup: IDL.Func([IDL.Text], [Result_1], []),
1141
- deleteMemoryFile: IDL.Func([IDL.Text], [Result], []),
1142
- denyRequest: IDL.Func([IDL.Text, IDL.Text], [Result_1], []),
1143
- ensureEvmReady: IDL.Func([], [Result_43], []),
1144
- exportMemoryRange: IDL.Func([IDL.Nat, IDL.Nat, IDL.Opt(IDL.Principal)], [Result_66], []),
1145
- freezePayments: IDL.Func([], [Result_1], []),
1146
- getActionAlertStatus: IDL.Func([], [Result_57], ['query']),
1147
- getAgentRevisablePaths: IDL.Func([], [Result_53], ['query']),
1148
- getAgentSeatWeeks: IDL.Func([IDL.Nat, IDL.Nat], [Result_64], ['query']),
1149
- getAgentWriteReview: IDL.Func([], [Result_63], ['query']),
1150
- getAnchorPushStatus: IDL.Func([], [AnchorPushStatus], ['query']),
1151
- getAuditHead: IDL.Func([], [AuditHead], ['query']),
1152
- getBackupMetadata: IDL.Func([IDL.Text], [Result_62], ['query']),
1153
- getBillerId: IDL.Func([], [IDL.Opt(IDL.Principal)], ['query']),
1154
- getCertifiedAuditHead: IDL.Func([], [CertifiedAuditHead], ['query']),
1155
- getChildAllowance: IDL.Func([IDL.Principal], [Result_61], ['query']),
1156
- getChildOpening: IDL.Func([], [Result_60], ['query']),
1157
- getEncryptedMemoryKey: IDL.Func([IDL.Opt(IDL.Nat), IDL.Vec(IDL.Nat8)], [Result_59], []),
1158
- getEngramCard: IDL.Func([], [AgentCard], ['query']),
1159
- getEngramNumber: IDL.Func([], [IDL.Opt(IDL.Nat)], ['query']),
1160
- getEvmAddress: IDL.Func([], [Result_58], []),
1161
- getEvmOwnerAddress: IDL.Func([], [IDL.Opt(IDL.Text)], ['query']),
1162
- getEvmSignerAddress: IDL.Func([], [Result_43], []),
1163
- getGenesisNote: IDL.Func([], [GenesisNote], ['query']),
1164
- getGuardianAlertStatus: IDL.Func([], [Result_57], ['query']),
1165
- getMarketId: IDL.Func([], [IDL.Opt(IDL.Principal)], ['query']),
1166
- getMemoryHistory: IDL.Func([IDL.Text, IDL.Opt(IDL.Nat), IDL.Opt(IDL.Nat)], [Result_56], ['query']),
1167
- getMemoryKeyEpoch: IDL.Func([], [IDL.Nat], ['query']),
1168
- getMemoryKeyVerificationKey: IDL.Func([], [IDL.Vec(IDL.Nat8)], []),
1169
- getMemoryMaintainStatus: IDL.Func([], [MemoryMaintainStatus], ['query']),
1170
- getMemoryRetentionPolicy: IDL.Func([], [Result_55], ['query']),
1171
- getMetricsReaderId: IDL.Func([], [IDL.Opt(IDL.Principal)], ['query']),
1172
- getMyGuardianStatus: IDL.Func([], [Result_15], ['query']),
1173
- getOwnerConsole: IDL.Func([], [Result_54], ['query']),
1174
- getProtectedPaths: IDL.Func([], [Result_53], ['query']),
1175
- getSeatWeeksReadEnabled: IDL.Func([], [IDL.Bool], ['query']),
1176
- getSigningFloor: IDL.Func([], [Result_52], ['query']),
1177
- getSpawnedBy: IDL.Func([], [IDL.Opt(IDL.Principal)], ['query']),
1178
- getSpendCeiling: IDL.Func([], [Result_51], ['query']),
1179
- getSpendPolicy: IDL.Func([IDL.Opt(IDL.Principal)], [Result_50], ['query']),
1180
- getStorageStats: IDL.Func([], [Result_49], ['query']),
1181
- getTimerHealth: IDL.Func([], [TimerHealth], ['query']),
1182
- getTopUpLimits: IDL.Func([], [IDL.Record({ cooldownSeconds: IDL.Nat, maxCkusdcE6s: IDL.Nat })], ['query']),
1183
- getWalletBalances: IDL.Func([], [Result_48], []),
1184
- getWorldIdConfig: IDL.Func([], [Result_47], ['query']),
1185
- getWorldIdRpContext: IDL.Func([], [Result_46], []),
1186
- getWorldIdRpSignerAddress: IDL.Func([], [Result_43], []),
1187
- getWorldIdVerification: IDL.Func([], [Result_45], ['query']),
1188
- guardianRevokeAgent: IDL.Func([IDL.Principal], [Result_1], []),
1189
- http_request: IDL.Func([HttpRequest], [HttpResponse], ['query']),
1190
- http_request_update: IDL.Func([HttpRequest], [HttpResponse], []),
1191
- icrc21_canister_call_consent_message: IDL.Func([
1192
- IDL.Record({
1193
- arg: IDL.Vec(IDL.Nat8),
1194
- method: IDL.Text,
1195
- user_preferences: IDL.Record({}),
1196
- }),
1197
- ], [
1198
- IDL.Variant({
1199
- Ok: IDL.Record({
1200
- metadata: IDL.Record({
1201
- utc_offset_minutes: IDL.Opt(IDL.Int16),
1202
- language: IDL.Text,
1203
- }),
1204
- consent_message: IDL.Variant({
1205
- GenericDisplayMessage: IDL.Text,
1206
- }),
1207
- }),
1208
- Err: IDL.Record({
1209
- description: IDL.Text,
1210
- error_code: IDL.Nat,
1211
- }),
1212
- }),
1213
- ], ['query']),
1214
- isEvmAddressCached: IDL.Func([], [Result_44], ['query']),
1215
- issueAuthCode: IDL.Func([IDL.Text, IDL.Text, IDL.Text, IDL.Opt(IDL.Text)], [Result_43], []),
1216
- listActivitySnapshots: IDL.Func([IDL.Nat, IDL.Nat], [Result_42], ['query']),
1217
- listAgents: IDL.Func([IDL.Nat, IDL.Nat], [Result_41], ['query']),
1218
- listAgentsForGuardian: IDL.Func([IDL.Nat, IDL.Nat], [Result_40], ['query']),
1219
- listApprovalRequests: IDL.Func([IDL.Opt(ApprovalStatus), IDL.Nat, IDL.Nat], [Result_28], ['query']),
1220
- listAuditEntries: IDL.Func([IDL.Nat, IDL.Nat], [Result_23], ['query']),
1221
- listBackups: IDL.Func([IDL.Nat, IDL.Nat], [Result_39], ['query']),
1222
- listBearerTokens: IDL.Func([IDL.Nat, IDL.Nat], [Result_38], ['query']),
1223
- listCondenseCheckpoints: IDL.Func([IDL.Nat, IDL.Nat], [Result_37], ['query']),
1224
- listCycleSnapshots: IDL.Func([IDL.Nat, IDL.Nat], [Result_36], ['query']),
1225
- listDeletedMemoryFiles: IDL.Func([IDL.Nat, IDL.Nat], [Result_35], ['query']),
1226
- listEip712Types: IDL.Func([IDL.Nat, IDL.Nat], [Result_34], ['query']),
1227
- listEvmWithdrawDestinations: IDL.Func([IDL.Nat, IDL.Nat], [Result_33], ['query']),
1228
- listGuardians: IDL.Func([IDL.Nat, IDL.Nat], [Result_32], ['query']),
1229
- listMemoryExportReceipts: IDL.Func([IDL.Nat, IDL.Nat], [Result_31], ['query']),
1230
- listMemoryFiles: IDL.Func([IDL.Nat, IDL.Nat], [Result_30], ['query']),
1231
- listMemoryLog: IDL.Func([IDL.Nat, IDL.Nat, IDL.Opt(IDL.Principal)], [Result_29], ['query']),
1232
- listMyApprovalRequests: IDL.Func([IDL.Nat, IDL.Nat], [Result_28], ['query']),
1233
- listMySessions: IDL.Func([IDL.Nat, IDL.Nat], [Result_27], ['query']),
1234
- listOwnershipTransfers: IDL.Func([IDL.Nat, IDL.Nat], [Result_26], ['query']),
1235
- listPaymentSignatureCounts: IDL.Func([IDL.Nat, IDL.Nat], [Result_25], ['query']),
1236
- listPurgedAgents: IDL.Func([IDL.Nat, IDL.Nat], [Result_24], ['query']),
1237
- listReadLog: IDL.Func([IDL.Opt(IDL.Bool), IDL.Nat, IDL.Nat], [Result_23], ['query']),
1238
- listRepudiations: IDL.Func([IDL.Nat, IDL.Nat], [Result_22], ['query']),
1239
- markAgentWritesReviewed: IDL.Func([IDL.Opt(IDL.Nat)], [Result_8], []),
1240
- nominateAgentKey: IDL.Func([IDL.Principal], [Result_1], []),
1241
- openChildEngram: IDL.Func([], [Result_21], []),
1242
- openSession: IDL.Func([SessionConfig, PaymentSignature], [Result_20], []),
1243
- ownerWithdraw: IDL.Func([TokenAmount, IDL.Opt(ActionAuth)], [Result_8], []),
1244
- pairAgent: IDL.Func([IDL.Record({ enrolment: Enrolment, code: IDL.Text })], [Result_19], []),
1245
- pauseWrites: IDL.Func([], [Result_1], []),
1246
- previewCondense: IDL.Func([IDL.Nat], [Result_18], ['query']),
1247
- previewOpenSession: IDL.Func([], [SessionIntent], ['query']),
1248
- readMemory: IDL.Func([IDL.Text], [Result_11], ['query']),
1249
- readMemoryBatch: IDL.Func([IDL.Vec(IDL.Text)], [Result_17], ['query']),
1250
- readMemoryBytes: IDL.Func([IDL.Text, IDL.Nat, IDL.Nat, IDL.Opt(IDL.Nat)], [Result_16], ['query']),
1251
- recoverEscrow: IDL.Func([IDL.Text, IDL.Nat], [Result_8], []),
1252
- registerGuardian: IDL.Func([IDL.Text], [Result_15], []),
1253
- removeCallerSpendPolicy: IDL.Func([IDL.Principal], [Result_1], []),
1254
- removeEip712Type: IDL.Func([IDL.Vec(IDL.Nat8)], [Result_1], []),
1255
- removeEvmWithdrawDestination: IDL.Func([IDL.Text], [Result_1], []),
1256
- removeGuardian: IDL.Func([IDL.Principal], [Result_1], []),
1257
- repudiateMemoryWrite: IDL.Func([IDL.Text, IDL.Nat, IDL.Text], [Result_8], []),
1258
- resetEngram: IDL.Func([], [Result_14], []),
1259
- resignAgent: IDL.Func([], [Result_1], []),
1260
- resumeWrites: IDL.Func([], [Result_1], []),
1261
- resyncAgentEdges: IDL.Func([], [Result_13], []),
1262
- returnToManaged: IDL.Func([], [Result_1], []),
1263
- reviseMemory: IDL.Func([IDL.Text, IDL.Vec(IDL.Nat8)], [Result], []),
1264
- revokeAgent: IDL.Func([IDL.Principal], [Result_1], []),
1265
- revokeAllAgents: IDL.Func([], [Result_8], []),
1266
- revokeAllBearerTokens: IDL.Func([], [Result_8], []),
1267
- revokeAllInvites: IDL.Func([], [Result_8], []),
1268
- revokeBearerToken: IDL.Func([IDL.Text], [Result_1], []),
1269
- rollbackMemory: IDL.Func([IDL.Text, IDL.Nat], [Result], []),
1270
- rotateAgentKeyHash: IDL.Func([IDL.Text], [Result_1], []),
1271
- seedMemory: IDL.Func([IDL.Text, IDL.Vec(IDL.Nat8)], [Result], []),
1272
- sessionAppendMemory: IDL.Func([Voucher, IDL.Text, IDL.Vec(IDL.Nat8)], [Result], []),
1273
- sessionReadContext: IDL.Func([IDL.Text], [Result_12], []),
1274
- sessionReadMemory: IDL.Func([Voucher, IDL.Text], [Result_11], []),
1275
- setActionAlertConfig: IDL.Func([AlertConfig], [Result_1], []),
1276
- setAgentPermissions: IDL.Func([IDL.Principal, AgentPermissions], [Result_1], []),
1277
- setAgentRevisablePaths: IDL.Func([IDL.Vec(IDL.Text)], [Result_1], []),
1278
- setBackupRetention: IDL.Func([IDL.Text, IDL.Nat], [Result_10], []),
1279
- setCallerSpendPolicy: IDL.Func([IDL.Principal, SpendingPolicy], [Result_1], []),
1280
- setChildAllowance: IDL.Func([IDL.Principal, IDL.Nat], [Result_1], []),
1281
- setEncryptionEnabled: IDL.Func([IDL.Bool], [Result_1], []),
1282
- setEvmOwnerAddress: IDL.Func([IDL.Text], [Result_1], []),
1283
- setGuardianAlertConfig: IDL.Func([AlertConfig], [Result_1], []),
1284
- setMemoryRetentionPolicy: IDL.Func([IDL.Vec(IDL.Tuple(IDL.Text, RetentionClassSpec))], [Result_1], []),
1285
- setPaidMemoryReadEnabled: IDL.Func([IDL.Bool], [Result_1], []),
1286
- setPaidMemoryWriteEnabled: IDL.Func([IDL.Bool], [Result_1], []),
1287
- setProtectedPaths: IDL.Func([IDL.Vec(IDL.Text)], [Result_1], []),
1288
- setSeatWeeksReadEnabled: IDL.Func([IDL.Bool], [Result_1], []),
1289
- setSpendCeiling: IDL.Func([IDL.Opt(IDL.Nat)], [Result_1], []),
1290
- setSpendPolicy: IDL.Func([SpendingPolicy], [Result_1], []),
1291
- setTopUpLimits: IDL.Func([IDL.Record({ cooldownSeconds: IDL.Nat, maxCkusdcE6s: IDL.Nat })], [Result_1], []),
1292
- setWorldIdConfig: IDL.Func([IDL.Text, IDL.Text, IDL.Text], [Result_1], []),
1293
- setWorldIdProof: IDL.Func([IDL.Text, IDL.Text], [Result_1], []),
1294
- signEip712: IDL.Func([IDL.Vec(IDL.Nat8), IDL.Vec(IDL.Tuple(IDL.Text, Eip712Value))], [Result_4], []),
1295
- signEngramRegistration: IDL.Func([
1296
- IDL.Record({
1297
- maxFeePerGas: IDL.Nat,
1298
- nonce: IDL.Nat,
1299
- maxPriorityFeePerGas: IDL.Nat,
1300
- }),
1301
- ], [Result_9], []),
1302
- signX402Payment: IDL.Func([
1303
- IDL.Record({
1304
- tokenVersion: IDL.Text,
1305
- tokenAddress: IDL.Text,
1306
- approvalId: IDL.Opt(IDL.Text),
1307
- recipient: IDL.Text,
1308
- rationale: IDL.Opt(IDL.Text),
1309
- tokenName: IDL.Text,
1310
- chainId: IDL.Nat,
1311
- amount: IDL.Nat,
1312
- }),
1313
- ], [Result_3], []),
1314
- syncEngramNumber: IDL.Func([], [Result_8], []),
1315
- sysApplyGenesisSeed: IDL.Func([IDL.Text, IDL.Vec(IDL.Nat8)], [Result_8], []),
1316
- sysForceCloseSession: IDL.Func([IDL.Text], [Result_1], []),
1317
- sysGetAgentSeatWeeks: IDL.Func([], [Result_7], []),
1318
- sysGetRailHealth: IDL.Func([], [Result_6], ['query']),
1319
- sysGetSignatureCounts: IDL.Func([], [Result_5], []),
1320
- sysNotifyRentLifecycle: IDL.Func([IDL.Text, IDL.Text], [Result_1], []),
1321
- sysNotifyWalletActivity: IDL.Func([IDL.Text], [Result_1], []),
1322
- sysRecordFeeEvent: IDL.Func([
1323
- IDL.Record({
1324
- paidThroughNs: IDL.Opt(IDL.Int),
1325
- cycles: IDL.Nat,
1326
- scheduleVersion: IDL.Opt(IDL.Text),
1327
- }),
1328
- ], [Result_1], []),
1329
- sysSetBillerId: IDL.Func([IDL.Principal], [Result_1], []),
1330
- sysSetEngramNumber: IDL.Func([IDL.Nat], [Result_1], []),
1331
- sysSetMarketId: IDL.Func([IDL.Principal], [Result_1], []),
1332
- sysSetMetricsReaderId: IDL.Func([IDL.Principal], [Result_1], []),
1333
- sysSignEip712: IDL.Func([IDL.Vec(IDL.Nat8), IDL.Vec(IDL.Tuple(IDL.Text, Eip712Value))], [Result_4], []),
1334
- sysSignX402Payment: IDL.Func([
1335
- IDL.Nat,
1336
- IDL.Text,
1337
- IDL.Text,
1338
- IDL.Nat,
1339
- IDL.Text,
1340
- IDL.Text,
1341
- IDL.Opt(IDL.Text),
1342
- IDL.Opt(IDL.Text),
1343
- ], [Result_3], []),
1344
- testActionAlert: IDL.Func([], [Result_1], []),
1345
- testGuardianAlert: IDL.Func([], [Result_1], []),
1346
- transferOwnership: IDL.Func([IDL.Principal], [Result_2], []),
1347
- unfreezePayments: IDL.Func([], [Result_1], []),
1348
- worldIdTransform: IDL.Func([
1349
- IDL.Record({
1350
- context: IDL.Vec(IDL.Nat8),
1351
- response: HttpRequestResult,
1352
- }),
1353
- ], [HttpRequestResult], ['query']),
1354
- writeMemory: IDL.Func([IDL.Text, IDL.Vec(IDL.Nat8)], [Result], []),
1355
- });
1356
- return Engram;
1357
- };
1358
- export const init = ({ IDL }) => {
1359
- return [
1360
- IDL.Opt(IDL.Record({
1361
- owner: IDL.Opt(IDL.Principal),
1362
- registry: IDL.Opt(IDL.Principal),
1363
- })),
1364
- ];
1365
- };
1366
- //# sourceMappingURL=engram.idl.js.map