@engramx/idl 0.16.0-rc.26 → 0.16.0-rc.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/engram.did +681 -482
- package/dist/engram.idl.d.ts +666 -477
- package/dist/engram.idl.js +77 -48
- package/dist/market.did +56 -50
- package/dist/market.idl.d.ts +56 -50
- package/dist/registry.did +277 -182
- package/dist/registry.idl.d.ts +275 -182
- package/dist/registry.idl.js +9 -0
- package/package.json +1 -1
package/dist/engram.idl.js
CHANGED
|
@@ -90,7 +90,26 @@ export const idlFactory = ({ IDL }) => {
|
|
|
90
90
|
Unavailable: IDL.Text,
|
|
91
91
|
Conflict: IDL.Text,
|
|
92
92
|
});
|
|
93
|
-
const
|
|
93
|
+
const Result_96 = IDL.Variant({ Ok: AgentRecord, Err: Error });
|
|
94
|
+
const Ended = IDL.Record({
|
|
95
|
+
typedDataDestinationsRemoved: IDL.Nat,
|
|
96
|
+
approvalsEnded: IDL.Nat,
|
|
97
|
+
sellersRemoved: IDL.Nat,
|
|
98
|
+
invitesVoided: IDL.Nat,
|
|
99
|
+
guardiansRemoved: IDL.Nat,
|
|
100
|
+
agentRecordsRemoved: IDL.Nat,
|
|
101
|
+
agentsEnded: IDL.Nat,
|
|
102
|
+
callerPoliciesRemoved: IDL.Nat,
|
|
103
|
+
});
|
|
104
|
+
const Accepted = IDL.Record({
|
|
105
|
+
closed: Ended,
|
|
106
|
+
handed: IDL.Variant({
|
|
107
|
+
MovedByRegistry: IDL.Null,
|
|
108
|
+
NotHeldHere: IDL.Null,
|
|
109
|
+
MovedByEngram: IDL.Null,
|
|
110
|
+
}),
|
|
111
|
+
});
|
|
112
|
+
const Result_95 = IDL.Variant({ Ok: Accepted, Err: Error });
|
|
94
113
|
const Result_2 = IDL.Variant({ Ok: IDL.Null, Err: Error });
|
|
95
114
|
const HttpHeader = IDL.Record({ value: IDL.Text, name: IDL.Text });
|
|
96
115
|
const HttpRequestResult = IDL.Record({
|
|
@@ -111,7 +130,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
111
130
|
cooloffEndsAtNs: IDL.Int,
|
|
112
131
|
typeId: IDL.Vec(IDL.Nat8),
|
|
113
132
|
});
|
|
114
|
-
const
|
|
133
|
+
const Result_93 = IDL.Variant({ Ok: Eip712Registration, Err: Error });
|
|
115
134
|
const GuardianPermissions = IDL.Record({
|
|
116
135
|
canFreezePayments: IDL.Bool,
|
|
117
136
|
canRevokeAgents: IDL.Bool,
|
|
@@ -126,7 +145,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
126
145
|
cyclesAdded: IDL.Nat,
|
|
127
146
|
finishedBeforeRemovalSeen: IDL.Bool,
|
|
128
147
|
});
|
|
129
|
-
const
|
|
148
|
+
const Result_91 = IDL.Variant({ Ok: Conversion, Err: Error });
|
|
130
149
|
const MemorySource = IDL.Variant({
|
|
131
150
|
sessionTranscript: IDL.Null,
|
|
132
151
|
human: IDL.Null,
|
|
@@ -162,14 +181,14 @@ export const idlFactory = ({ IDL }) => {
|
|
|
162
181
|
historyBytesDelta: IDL.Int,
|
|
163
182
|
opCount: IDL.Nat,
|
|
164
183
|
});
|
|
165
|
-
const
|
|
184
|
+
const Result_90 = IDL.Variant({ Ok: CondenseResult, Err: Error });
|
|
166
185
|
const BackupType = IDL.Variant({
|
|
167
186
|
PartialSnapshot: IDL.Null,
|
|
168
187
|
IncrementalDiff: IDL.Null,
|
|
169
188
|
FullSnapshot: IDL.Null,
|
|
170
189
|
});
|
|
171
190
|
const Result_58 = IDL.Variant({ Ok: IDL.Text, Err: Error });
|
|
172
|
-
const
|
|
191
|
+
const Result_77 = IDL.Variant({ Ok: IDL.Vec(IDL.Nat8), Err: Error });
|
|
173
192
|
const MemoryRangeExport = IDL.Record({
|
|
174
193
|
seq: IDL.Nat,
|
|
175
194
|
toSeq: IDL.Nat,
|
|
@@ -179,7 +198,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
179
198
|
fromSeq: IDL.Nat,
|
|
180
199
|
authorFilter: IDL.Opt(IDL.Principal),
|
|
181
200
|
});
|
|
182
|
-
const
|
|
201
|
+
const Result_89 = IDL.Variant({ Ok: MemoryRangeExport, Err: Error });
|
|
183
202
|
const AlertConfig = IDL.Record({
|
|
184
203
|
url: IDL.Opt(IDL.Text),
|
|
185
204
|
money: IDL.Bool,
|
|
@@ -196,7 +215,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
196
215
|
disabled: IDL.Bool,
|
|
197
216
|
config: AlertConfig,
|
|
198
217
|
});
|
|
199
|
-
const
|
|
218
|
+
const Result_78 = IDL.Variant({ Ok: AlertStatus, Err: Error });
|
|
200
219
|
const AgentConvertRule = IDL.Record({
|
|
201
220
|
spacingSeconds: IDL.Nat,
|
|
202
221
|
minPerCallE6: IDL.Nat,
|
|
@@ -220,7 +239,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
220
239
|
withheld: IDL.Nat,
|
|
221
240
|
items: IDL.Vec(OwnerRow),
|
|
222
241
|
});
|
|
223
|
-
const
|
|
242
|
+
const Result_87 = IDL.Variant({ Ok: Page_27, Err: Error });
|
|
224
243
|
const Role = IDL.Variant({
|
|
225
244
|
Anonymous: IDL.Null,
|
|
226
245
|
Viewer: IDL.Null,
|
|
@@ -259,7 +278,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
259
278
|
earliest: IDL.Nat,
|
|
260
279
|
capped: IDL.Bool,
|
|
261
280
|
});
|
|
262
|
-
const
|
|
281
|
+
const Result_86 = IDL.Variant({ Ok: AgentWriteReview, Err: Error });
|
|
263
282
|
const AnchorPushStatus = IDL.Record({
|
|
264
283
|
anchorTickAtNs: IDL.Opt(IDL.Int),
|
|
265
284
|
okAtNs: IDL.Opt(IDL.Int),
|
|
@@ -300,13 +319,13 @@ export const idlFactory = ({ IDL }) => {
|
|
|
300
319
|
chunkCount: IDL.Nat,
|
|
301
320
|
parentBackupId: IDL.Opt(IDL.Text),
|
|
302
321
|
});
|
|
303
|
-
const
|
|
322
|
+
const Result_85 = IDL.Variant({ Ok: BackupMetadata, Err: Error });
|
|
304
323
|
const BackupRetention = IDL.Record({
|
|
305
324
|
maxBackups: IDL.Nat,
|
|
306
325
|
isDefault: IDL.Bool,
|
|
307
326
|
dbType: IDL.Text,
|
|
308
327
|
});
|
|
309
|
-
const
|
|
328
|
+
const Result_84 = IDL.Variant({ Ok: BackupRetention, Err: Error });
|
|
310
329
|
const BirthRecord = IDL.Record({
|
|
311
330
|
bornAtNs: IDL.Int,
|
|
312
331
|
parentFingerprint: IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
@@ -316,7 +335,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
316
335
|
number: IDL.Nat,
|
|
317
336
|
parent: IDL.Opt(IDL.Principal),
|
|
318
337
|
});
|
|
319
|
-
const
|
|
338
|
+
const Result_83 = IDL.Variant({ Ok: IDL.Vec(BirthRecord), Err: Error });
|
|
320
339
|
const BrakeRole = IDL.Variant({ Guardian: IDL.Null, Owner: IDL.Null });
|
|
321
340
|
const BrakePull = IDL.Record({
|
|
322
341
|
by: IDL.Principal,
|
|
@@ -329,7 +348,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
329
348
|
pull: IDL.Opt(BrakePull),
|
|
330
349
|
});
|
|
331
350
|
const Brakes = IDL.Record({ payments: BrakeState, writes: BrakeState });
|
|
332
|
-
const
|
|
351
|
+
const Result_82 = IDL.Variant({ Ok: Brakes, Err: Error });
|
|
333
352
|
const CertifiedAuditHead = IDL.Record({
|
|
334
353
|
total: IDL.Nat,
|
|
335
354
|
certificate: IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
@@ -341,14 +360,14 @@ export const idlFactory = ({ IDL }) => {
|
|
|
341
360
|
root: IDL.Principal,
|
|
342
361
|
remaining: IDL.Nat,
|
|
343
362
|
});
|
|
344
|
-
const
|
|
363
|
+
const Result_81 = IDL.Variant({ Ok: ChildAllowanceRow, Err: Error });
|
|
345
364
|
const ChildOpening = IDL.Record({
|
|
346
365
|
attachCycles: IDL.Nat,
|
|
347
366
|
balance: IDL.Nat,
|
|
348
367
|
allowances: IDL.Vec(ChildAllowanceRow),
|
|
349
368
|
floorCycles: IDL.Nat,
|
|
350
369
|
});
|
|
351
|
-
const
|
|
370
|
+
const Result_80 = IDL.Variant({ Ok: ChildOpening, Err: Error });
|
|
352
371
|
const ServiceEntry = IDL.Record({
|
|
353
372
|
endpoint: IDL.Text,
|
|
354
373
|
name: IDL.Text,
|
|
@@ -366,7 +385,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
366
385
|
pay: IDL.Text,
|
|
367
386
|
engramRegistration: IDL.Text,
|
|
368
387
|
});
|
|
369
|
-
const
|
|
388
|
+
const Result_79 = IDL.Variant({ Ok: EvmAddresses, Err: Error });
|
|
370
389
|
const GenesisNote = IDL.Record({
|
|
371
390
|
predecessorSize: IDL.Opt(IDL.Nat),
|
|
372
391
|
predecessorHeadHash: IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
@@ -381,7 +400,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
381
400
|
sealedFor: IDL.Opt(IDL.Principal),
|
|
382
401
|
sealedAtNs: IDL.Opt(IDL.Int),
|
|
383
402
|
});
|
|
384
|
-
const
|
|
403
|
+
const Result_76 = IDL.Variant({ Ok: KeyBackupStatus, Err: Error });
|
|
385
404
|
const MemoryEviction = IDL.Record({
|
|
386
405
|
evictSeq: IDL.Nat,
|
|
387
406
|
fromVersion: IDL.Nat,
|
|
@@ -418,7 +437,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
418
437
|
versions: IDL.Vec(MemoryVersionSummary),
|
|
419
438
|
evictedCount: IDL.Nat,
|
|
420
439
|
});
|
|
421
|
-
const
|
|
440
|
+
const Result_75 = IDL.Variant({ Ok: MemoryHistory, Err: Error });
|
|
422
441
|
const MemoryMaintainStatus = IDL.Record({
|
|
423
442
|
attachOk: IDL.Bool,
|
|
424
443
|
attachDetail: IDL.Text,
|
|
@@ -446,7 +465,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
446
465
|
entries: IDL.Vec(IDL.Tuple(IDL.Text, RetentionClassSpec)),
|
|
447
466
|
guards: IDL.Vec(IDL.Record({ notBeforeNs: IDL.Int, prefix: IDL.Text })),
|
|
448
467
|
});
|
|
449
|
-
const
|
|
468
|
+
const Result_74 = IDL.Variant({
|
|
450
469
|
Ok: MemoryRetentionPolicy,
|
|
451
470
|
Err: Error,
|
|
452
471
|
});
|
|
@@ -471,7 +490,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
471
490
|
cyclesBalance: IDL.Nat,
|
|
472
491
|
unknownSessionRefusals: IDL.Nat,
|
|
473
492
|
});
|
|
474
|
-
const
|
|
493
|
+
const Result_73 = IDL.Variant({ Ok: OwnerConsole, Err: Error });
|
|
475
494
|
const OwnerSignInView = IDL.Record({
|
|
476
495
|
askedAtNs: IDL.Opt(IDL.Int),
|
|
477
496
|
openedFrom: IDL.Opt(IDL.Principal),
|
|
@@ -481,7 +500,13 @@ export const idlFactory = ({ IDL }) => {
|
|
|
481
500
|
callerIsAsked: IDL.Bool,
|
|
482
501
|
ownerSignIn: IDL.Opt(IDL.Principal),
|
|
483
502
|
});
|
|
484
|
-
const
|
|
503
|
+
const Result_72 = IDL.Variant({ Ok: OwnerSignInView, Err: Error });
|
|
504
|
+
const Offer = IDL.Record({
|
|
505
|
+
to: IDL.Principal,
|
|
506
|
+
expiresAtNs: IDL.Int,
|
|
507
|
+
offeredAtNs: IDL.Int,
|
|
508
|
+
});
|
|
509
|
+
const Result_71 = IDL.Variant({ Ok: IDL.Opt(Offer), Err: Error });
|
|
485
510
|
const MemoryFile = IDL.Record({
|
|
486
511
|
content: IDL.Vec(IDL.Nat8),
|
|
487
512
|
path: IDL.Text,
|
|
@@ -1389,17 +1414,19 @@ export const idlFactory = ({ IDL }) => {
|
|
|
1389
1414
|
Ok: IDL.Record({ returned: IDL.Nat }),
|
|
1390
1415
|
Err: Error,
|
|
1391
1416
|
});
|
|
1392
|
-
const
|
|
1417
|
+
const Outcome = IDL.Variant({
|
|
1393
1418
|
MovedByRegistry: IDL.Null,
|
|
1419
|
+
Offered: Offer,
|
|
1394
1420
|
NotHeldHere: IDL.Null,
|
|
1395
1421
|
MovedByEngram: IDL.Null,
|
|
1396
1422
|
});
|
|
1397
|
-
const Result_3 = IDL.Variant({ Ok:
|
|
1423
|
+
const Result_3 = IDL.Variant({ Ok: Outcome, Err: Error });
|
|
1398
1424
|
const TimersWake = IDL.Record({ gap: IDL.Int, needed: IDL.Nat });
|
|
1399
1425
|
const Result_1 = IDL.Variant({ Ok: TimersWake, Err: Error });
|
|
1400
1426
|
const Engram = IDL.Service({
|
|
1401
1427
|
about: IDL.Func([], [About], ['query']),
|
|
1402
|
-
acceptAgentKeyNomination: IDL.Func([IDL.Principal], [
|
|
1428
|
+
acceptAgentKeyNomination: IDL.Func([IDL.Principal], [Result_96], []),
|
|
1429
|
+
acceptOwnership: IDL.Func([], [Result_95], []),
|
|
1403
1430
|
acceptSignIn: IDL.Func([], [Result_2], []),
|
|
1404
1431
|
actionAlertTransform: IDL.Func(
|
|
1405
1432
|
[
|
|
@@ -1433,16 +1460,16 @@ export const idlFactory = ({ IDL }) => {
|
|
|
1433
1460
|
ackIrrevocable: IDL.Bool,
|
|
1434
1461
|
}),
|
|
1435
1462
|
],
|
|
1436
|
-
[
|
|
1463
|
+
[Result_93],
|
|
1437
1464
|
[],
|
|
1438
1465
|
),
|
|
1439
1466
|
addGuardian: IDL.Func([IDL.Principal, IDL.Text, GuardianPermissions], [Result_2], []),
|
|
1440
1467
|
addRecordNote: IDL.Func([IDL.Nat, IDL.Text], [Result_15], []),
|
|
1441
1468
|
addSeller: IDL.Func([IDL.Text, IDL.Nat, IDL.Bool], [Result_11], []),
|
|
1442
|
-
agentConvertBalance: IDL.Func([IDL.Text, IDL.Opt(IDL.Nat)], [
|
|
1469
|
+
agentConvertBalance: IDL.Func([IDL.Text, IDL.Opt(IDL.Nat)], [Result_91], []),
|
|
1443
1470
|
appendMemory: IDL.Func([IDL.Text, IDL.Vec(IDL.Nat8), IDL.Opt(MemorySource)], [Result], []),
|
|
1444
1471
|
appendMemoryText: IDL.Func([IDL.Text, IDL.Text, IDL.Opt(MemorySource)], [Result_16], []),
|
|
1445
|
-
applyCondense: IDL.Func([IDL.Nat], [
|
|
1472
|
+
applyCondense: IDL.Func([IDL.Nat], [Result_90], []),
|
|
1446
1473
|
approveGuardian: IDL.Func([IDL.Principal], [Result_2], []),
|
|
1447
1474
|
approveRequest: IDL.Func([IDL.Text], [Result_2], []),
|
|
1448
1475
|
askSignInAgain: IDL.Func([IDL.Vec(IDL.Nat8)], [Result_2], []),
|
|
@@ -1453,9 +1480,10 @@ export const idlFactory = ({ IDL }) => {
|
|
|
1453
1480
|
[Result_58],
|
|
1454
1481
|
[],
|
|
1455
1482
|
),
|
|
1456
|
-
backupPullChunk: IDL.Func([IDL.Text, IDL.Nat], [
|
|
1483
|
+
backupPullChunk: IDL.Func([IDL.Text, IDL.Nat], [Result_77], ['query']),
|
|
1457
1484
|
backupPushChunk: IDL.Func([IDL.Text, IDL.Nat, IDL.Vec(IDL.Nat8)], [Result_2], []),
|
|
1458
1485
|
cancelAgentKeyNomination: IDL.Func([IDL.Principal], [Result_2], []),
|
|
1486
|
+
cancelOwnershipOffer: IDL.Func([], [Result_2], []),
|
|
1459
1487
|
closeSession: IDL.Func([IDL.Text], [Result_2], []),
|
|
1460
1488
|
convertEarningsToCycles: IDL.Func([IDL.Text, IDL.Nat], [Result_15], []),
|
|
1461
1489
|
createAgentInvite: IDL.Func([IDL.Text, AgentPermissions], [Result_58], []),
|
|
@@ -1465,49 +1493,50 @@ export const idlFactory = ({ IDL }) => {
|
|
|
1465
1493
|
deleteMemoryFile: IDL.Func([IDL.Text], [Result], []),
|
|
1466
1494
|
denyRequest: IDL.Func([IDL.Text, IDL.Text], [Result_2], []),
|
|
1467
1495
|
disputeAgentWrite: IDL.Func([IDL.Nat, IDL.Text], [Result_15], []),
|
|
1468
|
-
exportMemoryRange: IDL.Func([IDL.Nat, IDL.Nat, IDL.Opt(IDL.Principal)], [
|
|
1496
|
+
exportMemoryRange: IDL.Func([IDL.Nat, IDL.Nat, IDL.Opt(IDL.Principal)], [Result_89], []),
|
|
1469
1497
|
freezePayments: IDL.Func([], [Result_2], []),
|
|
1470
1498
|
freezePaymentsWithReason: IDL.Func([IDL.Text], [Result_2], []),
|
|
1471
|
-
getActionAlertStatus: IDL.Func([], [
|
|
1499
|
+
getActionAlertStatus: IDL.Func([], [Result_78], ['query']),
|
|
1472
1500
|
getAgentConvertRule: IDL.Func([], [AgentConvertRule], ['query']),
|
|
1473
1501
|
getAgentRevisablePaths: IDL.Func([], [Result_69], ['query']),
|
|
1474
|
-
getAgentSeatWeeks: IDL.Func([IDL.Nat, IDL.Nat], [
|
|
1475
|
-
getAgentWriteReview: IDL.Func([], [
|
|
1502
|
+
getAgentSeatWeeks: IDL.Func([IDL.Nat, IDL.Nat], [Result_87], ['query']),
|
|
1503
|
+
getAgentWriteReview: IDL.Func([], [Result_86], ['query']),
|
|
1476
1504
|
getAnchorPushStatus: IDL.Func([], [AnchorPushStatus], ['query']),
|
|
1477
1505
|
getAuditHead: IDL.Func([], [AuditHead], ['query']),
|
|
1478
|
-
getBackupMetadata: IDL.Func([IDL.Text], [
|
|
1479
|
-
getBackupRetention: IDL.Func([IDL.Text], [
|
|
1506
|
+
getBackupMetadata: IDL.Func([IDL.Text], [Result_85], ['query']),
|
|
1507
|
+
getBackupRetention: IDL.Func([IDL.Text], [Result_84], ['query']),
|
|
1480
1508
|
getBillerId: IDL.Func([], [IDL.Opt(IDL.Principal)], ['query']),
|
|
1481
|
-
getBirthChain: IDL.Func([], [
|
|
1482
|
-
getBrakes: IDL.Func([], [
|
|
1509
|
+
getBirthChain: IDL.Func([], [Result_83], ['query']),
|
|
1510
|
+
getBrakes: IDL.Func([], [Result_82], ['query']),
|
|
1483
1511
|
getCertifiedAuditHead: IDL.Func([], [CertifiedAuditHead], ['query']),
|
|
1484
|
-
getChildAllowance: IDL.Func([IDL.Principal], [
|
|
1485
|
-
getChildOpening: IDL.Func([], [
|
|
1486
|
-
getEncryptedKeyBackupKey: IDL.Func([IDL.Vec(IDL.Nat8)], [
|
|
1487
|
-
getEncryptedMemoryKey: IDL.Func([IDL.Opt(IDL.Nat), IDL.Vec(IDL.Nat8)], [
|
|
1512
|
+
getChildAllowance: IDL.Func([IDL.Principal], [Result_81], ['query']),
|
|
1513
|
+
getChildOpening: IDL.Func([], [Result_80], ['query']),
|
|
1514
|
+
getEncryptedKeyBackupKey: IDL.Func([IDL.Vec(IDL.Nat8)], [Result_77], []),
|
|
1515
|
+
getEncryptedMemoryKey: IDL.Func([IDL.Opt(IDL.Nat), IDL.Vec(IDL.Nat8)], [Result_77], []),
|
|
1488
1516
|
getEngramCard: IDL.Func([], [AgentCard], ['query']),
|
|
1489
|
-
getEvmAddress: IDL.Func([], [
|
|
1517
|
+
getEvmAddress: IDL.Func([], [Result_79], []),
|
|
1490
1518
|
getEvmOwnerAddress: IDL.Func([], [IDL.Opt(IDL.Text)], ['query']),
|
|
1491
1519
|
getEvmSignerAddress: IDL.Func([], [Result_58], []),
|
|
1492
1520
|
getGenesisNote: IDL.Func([], [GenesisNote], ['query']),
|
|
1493
|
-
getGuardianAlertStatus: IDL.Func([], [
|
|
1494
|
-
getKeyBackupCiphertext: IDL.Func([], [
|
|
1495
|
-
getKeyBackupStatus: IDL.Func([], [
|
|
1521
|
+
getGuardianAlertStatus: IDL.Func([], [Result_78], ['query']),
|
|
1522
|
+
getKeyBackupCiphertext: IDL.Func([], [Result_77], ['query']),
|
|
1523
|
+
getKeyBackupStatus: IDL.Func([], [Result_76], ['query']),
|
|
1496
1524
|
getKeyBackupVerificationKey: IDL.Func([], [IDL.Vec(IDL.Nat8)], []),
|
|
1497
1525
|
getMarketId: IDL.Func([], [IDL.Opt(IDL.Principal)], ['query']),
|
|
1498
1526
|
getMemoryHistory: IDL.Func(
|
|
1499
1527
|
[IDL.Text, IDL.Opt(IDL.Nat), IDL.Opt(IDL.Nat)],
|
|
1500
|
-
[
|
|
1528
|
+
[Result_75],
|
|
1501
1529
|
['query'],
|
|
1502
1530
|
),
|
|
1503
1531
|
getMemoryKeyEpoch: IDL.Func([], [IDL.Nat], ['query']),
|
|
1504
1532
|
getMemoryKeyVerificationKey: IDL.Func([], [IDL.Vec(IDL.Nat8)], []),
|
|
1505
1533
|
getMemoryMaintainStatus: IDL.Func([], [MemoryMaintainStatus], ['query']),
|
|
1506
|
-
getMemoryRetentionPolicy: IDL.Func([], [
|
|
1534
|
+
getMemoryRetentionPolicy: IDL.Func([], [Result_74], ['query']),
|
|
1507
1535
|
getMetricsReaderId: IDL.Func([], [IDL.Opt(IDL.Principal)], ['query']),
|
|
1508
1536
|
getMyGuardianStatus: IDL.Func([], [Result_19], ['query']),
|
|
1509
|
-
getOwnerConsole: IDL.Func([], [
|
|
1510
|
-
getOwnerSignIn: IDL.Func([], [
|
|
1537
|
+
getOwnerConsole: IDL.Func([], [Result_73], ['query']),
|
|
1538
|
+
getOwnerSignIn: IDL.Func([], [Result_72], ['query']),
|
|
1539
|
+
getOwnershipOffer: IDL.Func([], [Result_71], ['query']),
|
|
1511
1540
|
getProfile: IDL.Func([], [Result_70], ['query']),
|
|
1512
1541
|
getProtectedPaths: IDL.Func([], [Result_69], ['query']),
|
|
1513
1542
|
getRecipientHistory: IDL.Func([IDL.Text], [Result_68], ['query']),
|
package/dist/market.did
CHANGED
|
@@ -604,9 +604,10 @@ type AccessGrant =
|
|
|
604
604
|
service : {
|
|
605
605
|
addAuditViewer: (viewer: principal) -> (Result);
|
|
606
606
|
/// Push this canister's chain head into the registry's anchor ring — the same thing every engram
|
|
607
|
-
/// does with its memory head, and the
|
|
607
|
+
/// does with its memory head, and the biller with its treasury head.
|
|
608
608
|
///
|
|
609
|
-
///
|
|
609
|
+
/// The argument for anchoring the treasury's ledger head in the registry applies to escrow with full
|
|
610
|
+
/// force: a self-attested commerce ledger sitting
|
|
610
611
|
/// beside witnessed ones is the asymmetry an auditor finds first. Every chain in this system is
|
|
611
612
|
/// witnessed by a party that does not control it, or the phrase means nothing.
|
|
612
613
|
///
|
|
@@ -630,12 +631,13 @@ service : {
|
|
|
630
631
|
/// · the job is not pending ⟶ properly `#Conflict`
|
|
631
632
|
/// · **you are not the seller** ⟶ properly `#Refused`
|
|
632
633
|
///
|
|
633
|
-
/// **Read the MESSAGE, not the arm, on this method only.** That is the opposite of what
|
|
634
|
+
/// **Read the MESSAGE, not the arm, on this method only.** That is the opposite of what the 0.16.0
|
|
635
|
+
/// result rule (one Result shape, refusals as values) asks
|
|
634
636
|
/// everywhere else, and it is stated here rather than left to be discovered: a caller branching
|
|
635
637
|
/// on the arm will retry a call that can never succeed for it. Recovering the distinction needs
|
|
636
638
|
/// the LIBRARY to carry arms — matching its prose here would reintroduce exactly the
|
|
637
|
-
/// message-branching
|
|
638
|
-
///
|
|
639
|
+
/// message-branching that rule abolished, and would break silently on an ic402 bump. ⟨Three costed
|
|
640
|
+
/// options were recorded for it, 2026-08-21. This is the market's whole ic402
|
|
639
641
|
/// seam, not one method: 6 call sites collapse a module error into `#Conflict`.⟩
|
|
640
642
|
/// ⟨2026-10-02 — counted again, and ruled.⟩ ELEVEN sites on this market collapse an ic402 text
|
|
641
643
|
/// into `#Conflict`, not 6: `setServiceEnabled`, `claimJob`, `submitJobResult`, `confirmJob`,
|
|
@@ -644,8 +646,8 @@ service : {
|
|
|
644
646
|
/// refusal of the caller's standing — `claimJob`, `confirmJob`, `disputeJob` and `submitJobResult`;
|
|
645
647
|
/// `setServiceEnabled`, the fourth noted on 2026-08-21, is now gated by this canister before the
|
|
646
648
|
/// library is called; the other six are state behind this canister's own gate. Read-the-message
|
|
647
|
-
/// is RATIFIED as the 0.16.0 contract (the owner's ruling of 2026-10-02, the
|
|
648
|
-
///
|
|
649
|
+
/// is RATIFIED as the 0.16.0 contract (the owner's ruling of 2026-10-02, as the review before the
|
|
650
|
+
/// cut recommended); giving the library one arm per kind of refusal is post-cut dependency work,
|
|
649
651
|
/// not a change made mid-cut.
|
|
650
652
|
/// ⟨2026-10-07, beside the count above⟩ Twelve: the admin's `retrySellerPayment` (the owner's
|
|
651
653
|
/// decision of that day) passes the library's settle refusal through as `#Conflict` too — state
|
|
@@ -655,7 +657,7 @@ service : {
|
|
|
655
657
|
/// so explicitly ("Not a permission problem and not a missing job"), and `isTradeFrozen()` is the
|
|
656
658
|
/// ungated read that confirms it.
|
|
657
659
|
claimJob: (jobId: text) -> (Result);
|
|
658
|
-
/// ⟨0.16.0
|
|
660
|
+
/// ⟨0.16.0⟩ `confirmJob` ABSORBS `confirmJobEvm`. One buyer action, two ways to prove you
|
|
659
661
|
/// are the buyer.
|
|
660
662
|
///
|
|
661
663
|
/// The pair existed because authorization arrives differently on the two rails, not because the
|
|
@@ -676,7 +678,7 @@ service : {
|
|
|
676
678
|
/// `#Conflict`) and **`Not the buyer`** (properly `#Refused`) all arrive as `#Conflict`. On THIS
|
|
677
679
|
/// method read the MESSAGE rather than the arm — it is terminal money settlement, so a caller
|
|
678
680
|
/// who reads `#Conflict` as "retry later" will retry a release that can never happen for them.
|
|
679
|
-
/// Same seam as `claimJob`; three costed fixes
|
|
681
|
+
/// Same seam as `claimJob`; three costed fixes were recorded ⟨2026-08-21⟩.
|
|
680
682
|
confirmJob: (jobId: text, evmProof: opt vec nat8) -> (Result);
|
|
681
683
|
/// Create a content endpoint — a shelf in the storefront. Born DISABLED.
|
|
682
684
|
///
|
|
@@ -710,7 +712,7 @@ service : {
|
|
|
710
712
|
/// Delete an endpoint. Terminal — the record stays as #Deleted so purchase history keeps
|
|
711
713
|
/// resolving, and the id is never reused.
|
|
712
714
|
deleteEndpoint: (endpointId: text) -> (Result);
|
|
713
|
-
/// ⟨0.16.0
|
|
715
|
+
/// ⟨0.16.0⟩ `disputeJob` ABSORBS `disputeJobEvm`, exactly as confirmJob does, and for the
|
|
714
716
|
/// same reason: one act, two proofs of buyership.
|
|
715
717
|
///
|
|
716
718
|
/// NOT FREEZE-GATED, and that asymmetry with confirmJob is deliberate. Recording a dispute moves
|
|
@@ -721,7 +723,7 @@ service : {
|
|
|
721
723
|
/// ⚠ `#Conflict` HERE ALSO COVERS "NOT THE BUYER" — same ic402 seam as `confirmJob` and
|
|
722
724
|
/// `claimJob`: `Job not found`, `Job not in submitted status` and **`Not the buyer`** all arrive
|
|
723
725
|
/// as `#Conflict` because the library hands back strings. Read the MESSAGE, not the arm.
|
|
724
|
-
/// ⟨2026-08-21;
|
|
726
|
+
/// ⟨2026-08-21; three fixes were recorded, with why none is a one-liner.⟩
|
|
725
727
|
///
|
|
726
728
|
/// ⚠ AND NOTE WHERE THE DISPUTE GOES: `resolveDispute` is answered by the SERVICE'S OWN SELLER
|
|
727
729
|
/// — the party being disputed. This market has no admin arbitration and no appeal, deliberately
|
|
@@ -780,7 +782,7 @@ service : {
|
|
|
780
782
|
/// The `approvalId` parameter is gone, as it is on openSession: an approval is the BUYER's own
|
|
781
783
|
/// custody policy, checked on their engram before they call here.
|
|
782
784
|
///
|
|
783
|
-
/// ⟨
|
|
785
|
+
/// ⟨update-for-read⟩ UPDATE, NOT QUERY: the paid path awaits `gate.settle(sig, ?amount)`, an inter-canister
|
|
784
786
|
/// settlement. A query cannot await it, and splitting the free and paid halves into two methods
|
|
785
787
|
/// would put the price and the content behind different names for one buyer act.
|
|
786
788
|
///
|
|
@@ -792,7 +794,8 @@ service : {
|
|
|
792
794
|
/// ic402's text naming both principals. Pay as the principal that approved the allowance.
|
|
793
795
|
getContent: (contentId: text, paymentSig: opt PaymentSignature) ->
|
|
794
796
|
(Result_17);
|
|
795
|
-
/// ⟨0.16.0⟩ THE `getChunk` FIX, and it is the sharpest single case in the
|
|
797
|
+
/// ⟨0.16.0⟩ THE `getChunk` FIX, and it is the sharpest single case in the August 2026 audit of every
|
|
798
|
+
/// wire method.
|
|
796
799
|
///
|
|
797
800
|
/// The engram's version was:
|
|
798
801
|
///
|
|
@@ -814,16 +817,17 @@ service : {
|
|
|
814
817
|
///
|
|
815
818
|
/// The honesty gates could not see it. `gate.verifyGrant` is a PAYMENT gate, and the gate-call
|
|
816
819
|
/// list they scan holds authorization helpers only — so a refusal fabricated behind a payment
|
|
817
|
-
/// check was out of scope by construction rather than by ruling.
|
|
818
|
-
/// list; this method is why.
|
|
820
|
+
/// check was out of scope by construction rather than by ruling. The 0.16.0 honesty rule adds
|
|
821
|
+
/// payment gates to that list; this method is why.
|
|
819
822
|
getContentChunk: (grant: AccessGrant, index: nat) -> (Result_15) query;
|
|
820
823
|
/// PUBLIC: what this canister's chains continue, or that they continue nothing. A fresh chain
|
|
821
824
|
/// beside a published predecessor head is auditable; a fresh chain with no statement is
|
|
822
825
|
/// indistinguishable from a wipe.
|
|
823
826
|
getGenesisNote: () -> (GenesisNote) query;
|
|
824
|
-
/// ⟨0.16.0,
|
|
827
|
+
/// ⟨0.16.0, refusals are values, never traps⟩
|
|
828
|
+
/// The engram TRAPPED here. Trapping was the right fix at the time — it stopped the
|
|
825
829
|
/// refusal masquerading as a not-found — but it hands the caller no structured reason and cannot
|
|
826
|
-
/// be told from a genuine fault. Under
|
|
830
|
+
/// be told from a genuine fault. Under the 0.16.0 result rule the refusal is a value.
|
|
827
831
|
///
|
|
828
832
|
/// The comment the engram carried is worth keeping because it names what went wrong: `null`
|
|
829
833
|
/// collapsed "unknown jobId" and "not authorized", and the product rendered the wrong conclusion
|
|
@@ -897,7 +901,7 @@ service : {
|
|
|
897
901
|
/// `verified` is about ownership at a moment in time and nothing else. It is not an endorsement,
|
|
898
902
|
/// and the field name is the strongest claim it makes.
|
|
899
903
|
///
|
|
900
|
-
/// ⟨2026-11-04, the owner's ruling
|
|
904
|
+
/// ⟨2026-11-04, the owner's sale-payout ruling⟩ It also says where this seller's sales land
|
|
901
905
|
/// (`evmPayout`, `evmPayoutError`) and how many are still in flight (`parkedPayouts`,
|
|
902
906
|
/// `parkedSaleNotices`) — counts, never amounts (`Types.SellerStatus`).
|
|
903
907
|
getSellerStatus: (seller: principal) -> (Result_12) query;
|
|
@@ -915,7 +919,7 @@ service : {
|
|
|
915
919
|
/// THIS WRONG: an HTTP route that could authenticate its payer, or a flow of ours that approves
|
|
916
920
|
/// more than one payment's worth or without an expiry.
|
|
917
921
|
///
|
|
918
|
-
/// ⟨CORRECTED 2026-09-30 — the owner's answer
|
|
922
|
+
/// ⟨CORRECTED 2026-09-30 — the owner's web-route answer⟩ The paragraph above is history. No web route
|
|
919
923
|
/// settles an ICP-rail payment any more, so none spends an allowance and none can be used against
|
|
920
924
|
/// a standing one. The one `gate.settle` left is on /service/, reached only with an EVM (`eip155:`)
|
|
921
925
|
/// payment carrying the buyer's own EIP-3009 authorization — a signature that names the payment and
|
|
@@ -980,19 +984,20 @@ service : {
|
|
|
980
984
|
/// `total` is the head counter, not the row count: this is a bounded ring, so a page that
|
|
981
985
|
/// reported only what it returned would make a trimmed log look complete.
|
|
982
986
|
///
|
|
983
|
-
/// ⟨2026-10-15, the owner's ruling
|
|
987
|
+
/// ⟨2026-10-15, the owner's ruling of 2026-10-14 on the chained record⟩ The reply is the shared
|
|
988
|
+
/// `Wire.RecordPage`, so
|
|
984
989
|
/// one checker reads every chain. A viewer sees every entry, so `sealed` is always empty here;
|
|
985
990
|
/// `ringFloor` says where the ring starts and `hashFirstFrom` where this record switched to the
|
|
986
991
|
/// hash-first rule. The gate is unchanged (hash-only rows for strangers were ruled for the
|
|
987
992
|
/// engram's record).
|
|
988
993
|
listAuditEntries: (start: nat, limit: nat) -> (Result_11) query;
|
|
989
|
-
/// Admin AND the enrolled viewers themselves —
|
|
994
|
+
/// Admin AND the enrolled viewers themselves — the roster rule of who may read what. A viewer who cannot see the
|
|
990
995
|
/// roster cannot tell whether their own enrolment survived a rotation.
|
|
991
996
|
listAuditViewers: () -> (Result_10) query;
|
|
992
997
|
/// PUBLIC: the catalogue is the storefront. A shop that refuses to say what it sells to
|
|
993
998
|
/// anyone who has not already bought is not a shop.
|
|
994
999
|
listContent: (start: nat, limit: nat) -> (Page_6) query;
|
|
995
|
-
///
|
|
1000
|
+
/// The 0.16.0 honesty rule names this canister's reason for having a denial log at all: the commerce surface is where
|
|
996
1001
|
/// the fabricated-empty class was born, and a refusal that leaves no trace cannot be counted,
|
|
997
1002
|
/// alerted on, or disproved.
|
|
998
1003
|
listDenialEntries: (start: nat, limit: nat) -> (Result_9) query;
|
|
@@ -1015,7 +1020,7 @@ service : {
|
|
|
1015
1020
|
/// none look different, which is the honest answer, without publishing what was withdrawn.
|
|
1016
1021
|
listEndpoints: (statusFilter: opt EndpointStatus, start: nat, limit:
|
|
1017
1022
|
nat) -> (Page_3) query;
|
|
1018
|
-
/// ⟨0.16.0⟩ THE `listJobs` FIX — the second of the two fabricated empties
|
|
1023
|
+
/// ⟨0.16.0⟩ THE `listJobs` FIX — the second of the two fabricated empties the 0.16.0 honesty rule names.
|
|
1019
1024
|
///
|
|
1020
1025
|
/// The engram's version ended its authorization check with `if (not (isOwner or
|
|
1021
1026
|
/// isServiceOperator)) { return [] }`, and its own `.did` comment declared the behaviour on the
|
|
@@ -1038,7 +1043,7 @@ service : {
|
|
|
1038
1043
|
/// two facts that were one empty list.
|
|
1039
1044
|
listJobs: (serviceId: text, statusFilter: opt JobStatus, start: nat, limit:
|
|
1040
1045
|
nat) -> (Result_7) query;
|
|
1041
|
-
/// ⟨2026-11-04, the owner's ruling
|
|
1046
|
+
/// ⟨2026-11-04, the owner's sale-payout ruling⟩ The parked payouts to the caller's engram — a content sale
|
|
1042
1047
|
/// whose push the ledger has not confirmed, each settled by `retrySalePayout` — so an unresolved
|
|
1043
1048
|
/// payout is discoverable rather than something a seller must already know the id of.
|
|
1044
1049
|
///
|
|
@@ -1099,19 +1104,19 @@ service : {
|
|
|
1099
1104
|
/// not the bare `consumeVoucher`: the signed fallback is off on this canister, so the bare call
|
|
1100
1105
|
/// refuses every voucher, and only the session key calling as itself may spend a session.
|
|
1101
1106
|
openSession: (config: SessionConfig, sig: PaymentSignature) -> (Result_5);
|
|
1102
|
-
/// RENAMED from `requestSession`
|
|
1107
|
+
/// RENAMED from `requestSession` in the 0.16.0 interface pass: it is a pure dry run — a quote for a session
|
|
1103
1108
|
/// the caller has not opened and is not committed to. `request` read as an action with an effect.
|
|
1104
1109
|
///
|
|
1105
1110
|
/// PUBLIC: a price list nobody can read is not a price list, and this is the market's. ⟨The
|
|
1106
|
-
/// sentence was already here as "Ungated:"; only the marker the
|
|
1111
|
+
/// sentence was already here as "Ungated:"; only the marker the disclosure gate greps for was missing,
|
|
1107
1112
|
/// which is why this method read as undefended when it was not.⟩
|
|
1108
|
-
/// ⟨CORRECTED 2026-08-24 — this said "
|
|
1109
|
-
///
|
|
1110
|
-
/// `quotePayment` and `previewOpenSession` become queries, and
|
|
1111
|
-
/// retires with them — so the argument written here
|
|
1112
|
-
/// losing side of a decision already made, and was added
|
|
1113
|
-
/// to the ruling. `gate.offerSession` is pure — it validates
|
|
1114
|
-
/// nothing forced the update in the first place.
|
|
1113
|
+
/// ⟨CORRECTED 2026-08-24 — this said "UPDATE, NOT QUERY" under the update-for-read marker and cited a
|
|
1114
|
+
/// market ruling that a later market ruling had already closed.⟩ QUERY, per the ruled quote
|
|
1115
|
+
/// convention: FAST READS. Both `quotePayment` and `previewOpenSession` become queries, and the
|
|
1116
|
+
/// update-for-read rule's open-ruling exception retires with them — so the argument written here
|
|
1117
|
+
/// for keeping it an update was arguing the losing side of a decision already made, and was added
|
|
1118
|
+
/// the same day by not reading forward to the ruling. `gate.offerSession` is pure — it validates
|
|
1119
|
+
/// the intent and returns it — so nothing forced the update in the first place.
|
|
1115
1120
|
///
|
|
1116
1121
|
/// ONE-REPLICA CAVEAT, stated here because the ruling requires it at both sites: a query is one
|
|
1117
1122
|
/// replica's word and is NOT a settleable challenge. Nothing quoted here can be redeemed. The
|
|
@@ -1137,9 +1142,9 @@ service : {
|
|
|
1137
1142
|
/// ⟨CORRECTED 2026-10-02 — the nonce is GONE from the quote; the two paragraphs below are kept as
|
|
1138
1143
|
/// the record of why.⟩ Each requirement is now a `QuotedRequirement`: ic402's requirement without
|
|
1139
1144
|
/// its `nonce` (and with `expiry` spelled `expiryNs`). The paragraphs below describe the throwaway
|
|
1140
|
-
/// that was published until this date; the
|
|
1141
|
-
/// it, and it was dropped. "Do not pay against it" is now enforced by there being
|
|
1142
|
-
/// against.
|
|
1145
|
+
/// that was published until this date; the review before the 0.16.0 cut recommended dropping it
|
|
1146
|
+
/// over ratifying it, and it was dropped. "Do not pay against it" is now enforced by there being
|
|
1147
|
+
/// nothing to pay against.
|
|
1143
1148
|
///
|
|
1144
1149
|
/// ⚠ THE NONCE IN EACH REQUIREMENT IS A THROWAWAY — DO NOT PAY AGAINST IT. `requireAll` mints a
|
|
1145
1150
|
/// server nonce with a HashMap put, and this is a QUERY, so the write is discarded on return.
|
|
@@ -1254,7 +1259,7 @@ service : {
|
|
|
1254
1259
|
/// the timestamp. The byte count SURVIVES re-registration — otherwise the quota would reset every
|
|
1255
1260
|
/// thirty days, which is a quota in name only.
|
|
1256
1261
|
///
|
|
1257
|
-
/// ⟨2026-11-04, the owner's ruling
|
|
1262
|
+
/// ⟨2026-11-04, the owner's ruling: a sale is paid into the selling engram's own wallet⟩
|
|
1258
1263
|
/// ON THIS MARKET'S BOOKS THE SELLER IS THE ENGRAM; the caller is the hand that lists for it. Every
|
|
1259
1264
|
/// identity this market hands the payment library — a service's operator, the claimant, the
|
|
1260
1265
|
/// submitter, the EVM payout key — is `engramId`, so the library pays the engram's own account on
|
|
@@ -1342,13 +1347,13 @@ service : {
|
|
|
1342
1347
|
/// contract as ratified on 2026-10-02; giving the library one arm per kind of refusal is post-cut
|
|
1343
1348
|
/// dependency work.
|
|
1344
1349
|
resolveJob: (jobId: text, terminal: JobStatus) -> (Result);
|
|
1345
|
-
/// ⟨2026-11-04, the owner's ruling
|
|
1350
|
+
/// ⟨2026-11-04, the owner's sale-payout ruling⟩ Deliver one engram's parked sale notices to its record —
|
|
1346
1351
|
/// at most 16 a call, oldest first — and answer how many landed. CALLABLE BY ANYONE, anonymous
|
|
1347
1352
|
/// included: the engram dedups on the receipt id and accepts only this market, so nothing can be
|
|
1348
1353
|
/// misdirected or written twice; the same accepted residual as `retrySalePayout`. `#NotFound` when
|
|
1349
1354
|
/// nothing is parked for that engram (every sale it made here reached its record, or none was made).
|
|
1350
1355
|
retrySaleNotices: (engramId: principal) -> (Result_1);
|
|
1351
|
-
/// ⟨2026-11-04, the owner's ruling
|
|
1356
|
+
/// ⟨2026-11-04, the owner's sale-payout ruling⟩ Settle a parked sale payout by asking the ledger what
|
|
1352
1357
|
/// happened, rather than assuming — the retired withdrawal recovery's saga, kept whole for the payout
|
|
1353
1358
|
/// that replaced the withdrawal.
|
|
1354
1359
|
///
|
|
@@ -1359,7 +1364,7 @@ service : {
|
|
|
1359
1364
|
/// `#BadFee` leaves it parked (the fee is part of the tuple — see `Types.PendingPayout.feeE6`); any
|
|
1360
1365
|
/// other answer leaves it parked and retryable. Never guessed at.
|
|
1361
1366
|
///
|
|
1362
|
-
///
|
|
1367
|
+
/// PUBLIC: callable by anyone, anonymous included: the destination, amount, fee, memo and time are all
|
|
1363
1368
|
/// recorded, so nothing about the call can be misdirected, and the chained row names whoever asked.
|
|
1364
1369
|
/// The residual — a stranger can make the market spend one ledger call per press on its own debt —
|
|
1365
1370
|
/// is accepted (a caller gate would buy nothing but a name). The sale's record line does not wait
|
|
@@ -1398,11 +1403,12 @@ service : {
|
|
|
1398
1403
|
setAdmin: (newAdmin: principal) -> (Result);
|
|
1399
1404
|
/// Override the policy for ONE payer — the market's per-buyer risk control.
|
|
1400
1405
|
setCallerPolicy: (caller: principal, policy: SpendingPolicy) -> (Result);
|
|
1401
|
-
/// ⟨0.16.0,
|
|
1406
|
+
/// ⟨0.16.0, one boolean idiom⟩ `enableEndpoint` and `disableEndpoint` FOLD into one setter.
|
|
1402
1407
|
///
|
|
1403
1408
|
/// They were byte-identical apart from the status they wrote and the word in their name, which is
|
|
1404
|
-
/// the definition of a boolean expressed as two methods.
|
|
1405
|
-
/// feature, and the fold also removes a real
|
|
1409
|
+
/// the definition of a boolean expressed as two methods. The 0.16.0 naming rules allow one idiom for
|
|
1410
|
+
/// a boolean feature (a set…Enabled setter plus a readable flag), and the fold also removes a real
|
|
1411
|
+
/// hazard: two methods meant two authorization checks
|
|
1406
1412
|
/// to keep in step, and a divergence between them would have been invisible to a reader looking at
|
|
1407
1413
|
/// either one alone.
|
|
1408
1414
|
///
|
|
@@ -1426,14 +1432,14 @@ service : {
|
|
|
1426
1432
|
/// configuration, not a product surface.
|
|
1427
1433
|
///
|
|
1428
1434
|
/// ⟨RENAMED 2026-10-02 from `sysSetRegistryId` — the sys-tier retier ruled 2026-08-24, executed
|
|
1429
|
-
/// under the owner's 2026-10-02 ruling to carry out the
|
|
1430
|
-
/// recommended.⟩ The sentence above is why it was sys-named, and the retier is why it
|
|
1431
|
-
/// is: the `sys` prefix names the canister-to-canister tier, whose callers are other
|
|
1432
|
-
/// and this method's only caller is a PERSON — the market's admin, at deploy. Keeping it
|
|
1433
|
-
/// made "a `sys` method has no human caller" false, and so uncheckable. A plain admin setter
|
|
1435
|
+
/// under the owner's 2026-10-02 ruling to carry out the interface decisions reviewed before the
|
|
1436
|
+
/// 0.16.0 cut as recommended.⟩ The sentence above is why it was sys-named, and the retier is why it
|
|
1437
|
+
/// no longer is: the `sys` prefix names the canister-to-canister tier, whose callers are other
|
|
1438
|
+
/// canisters, and this method's only caller is a PERSON — the market's admin, at deploy. Keeping it
|
|
1439
|
+
/// there made "a `sys` method has no human caller" false, and so uncheckable. A plain admin setter
|
|
1434
1440
|
/// (`setAdmin`'s sibling) is what it always was.
|
|
1435
1441
|
setRegistryId: (id: principal) -> (Result);
|
|
1436
|
-
/// ⟨0.16.0,
|
|
1442
|
+
/// ⟨0.16.0, one boolean idiom⟩ enableService + disableService FOLD, same as the endpoint pair.
|
|
1437
1443
|
///
|
|
1438
1444
|
/// Deliberately NOT admin-overridable, unlike endpoints. Disabling a seller's service is a
|
|
1439
1445
|
/// commercial act against that seller, and an admin who needs to remove a listing should do it
|
|
@@ -1445,7 +1451,7 @@ service : {
|
|
|
1445
1451
|
/// `confirmJob` and `disputeJob`. `enableService`/`disableService` return `Service not found`
|
|
1446
1452
|
/// (properly `#NotFound`) and **`Not the seller`** (properly `#Refused`) as plain strings, so
|
|
1447
1453
|
/// the arm is gone before this method sees it. Read the MESSAGE, not the arm.
|
|
1448
|
-
/// ⟨2026-08-21;
|
|
1454
|
+
/// ⟨2026-08-21; three costed fixes were recorded, with why none is a
|
|
1449
1455
|
/// one-liner.⟩
|
|
1450
1456
|
/// ⟨CORRECTED 2026-10-02, audited at this site — the paragraph above no longer holds here.⟩
|
|
1451
1457
|
/// `requireServiceSeller` now runs BEFORE the library: a missing service is refused `#NotFound`
|