@jsm-mit/tigi-sharded-package 0.3.0 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/README.md +16 -2
  2. package/declarations/coordinator/coordinator.did +39 -0
  3. package/declarations/coordinator/coordinator.did.d.ts +68 -0
  4. package/declarations/coordinator/coordinator.did.js +23 -0
  5. package/declarations/core/core.did +240 -53
  6. package/declarations/core/core.did.d.ts +208 -48
  7. package/declarations/core/core.did.js +165 -51
  8. package/declarations/tigi-driver/tigi-driver.did +15 -0
  9. package/declarations/tigi-driver/tigi-driver.did.d.ts +19 -0
  10. package/declarations/tigi-driver/tigi-driver.did.js +6 -0
  11. package/declarations/tigi-simulator/tigi-simulator.did +46 -4
  12. package/declarations/tigi-simulator/tigi-simulator.did.d.ts +70 -4
  13. package/declarations/tigi-simulator/tigi-simulator.did.js +39 -10
  14. package/declarations/worker/worker.did +23 -6
  15. package/declarations/worker/worker.did.d.ts +18 -6
  16. package/declarations/worker/worker.did.js +14 -7
  17. package/dist/actors/profiles-actor.d.ts +20 -1
  18. package/dist/actors/profiles-actor.d.ts.map +1 -1
  19. package/dist/actors/profiles-actor.js +46 -12
  20. package/dist/actors/rides-actor.d.ts +21 -1
  21. package/dist/actors/rides-actor.d.ts.map +1 -1
  22. package/dist/actors/rides-actor.js +46 -6
  23. package/dist/geo.d.ts +5 -0
  24. package/dist/geo.d.ts.map +1 -1
  25. package/dist/geo.js +41 -0
  26. package/dist/group/canister-actor.d.ts +7 -0
  27. package/dist/group/canister-actor.d.ts.map +1 -1
  28. package/dist/group/canister-actor.js +18 -0
  29. package/dist/index.d.ts +2 -2
  30. package/dist/index.d.ts.map +1 -1
  31. package/dist/index.js +2 -2
  32. package/dist/interfaces.d.ts +35 -1
  33. package/dist/interfaces.d.ts.map +1 -1
  34. package/dist/mappers.d.ts +20 -2
  35. package/dist/mappers.d.ts.map +1 -1
  36. package/dist/mappers.js +62 -2
  37. package/package.json +7 -4
@@ -58,6 +58,18 @@ export interface DriverCanistersPage {
58
58
  'total' : bigint,
59
59
  'canisters' : Array<DriverCanister>,
60
60
  }
61
+ export interface DriverFeeAccountView {
62
+ 'pending' : FeeUsage,
63
+ 'bill' : [] | [FeeBill],
64
+ 'lastSettledDay' : [] | [bigint],
65
+ 'canister' : Principal,
66
+ 'paidTotal' : bigint,
67
+ 'lastFee' : [] | [FeeRecord],
68
+ }
69
+ export interface DriverRatingArgs {
70
+ 'driverKey' : string,
71
+ 'canister' : Principal,
72
+ }
61
73
  export interface DriverRoomView {
62
74
  'recipient' : Principal,
63
75
  'driverKey' : string,
@@ -66,6 +78,12 @@ export interface DriverRoomView {
66
78
  'roomId' : string,
67
79
  'synced' : boolean,
68
80
  }
81
+ export interface DriverUsage {
82
+ 'quoteRequests' : bigint,
83
+ 'canister' : Principal,
84
+ 'registrations' : bigint,
85
+ 'rides' : bigint,
86
+ }
69
87
  export interface Error { 'details' : ErrorDetails, 'logsJson' : string }
70
88
  export type ErrorDetails = { 'InterCanisterConnectionError' : null } |
71
89
  { 'RemoteCanisterError' : string } |
@@ -85,6 +103,46 @@ export interface FactoryStatus {
85
103
  'driverWasm' : [] | [WasmInfo],
86
104
  'registered' : bigint,
87
105
  }
106
+ export interface FeeBill {
107
+ 'day' : bigint,
108
+ 'settled' : boolean,
109
+ 'usage' : FeeUsage,
110
+ 'amount' : bigint,
111
+ 'multiplierPermille' : bigint,
112
+ 'rates' : FeeRates,
113
+ }
114
+ export interface FeePaid {
115
+ 'day' : bigint,
116
+ 'accepted' : bigint,
117
+ 'amount' : bigint,
118
+ }
119
+ export interface FeePayArgs { 'day' : bigint }
120
+ export interface FeeRates {
121
+ 'perRegistration' : bigint,
122
+ 'perQuoteRequest' : bigint,
123
+ 'perRide' : bigint,
124
+ }
125
+ export interface FeeRecord {
126
+ 'day' : bigint,
127
+ 'paidAtNs' : bigint,
128
+ 'amount' : bigint,
129
+ }
130
+ export interface FeeStatus {
131
+ 'multiplier' : [] | [{ 'day' : bigint, 'permille' : bigint }],
132
+ 'today' : bigint,
133
+ 'toForward' : bigint,
134
+ 'forwardedTotal' : bigint,
135
+ 'lastForwardError' : [] | [string],
136
+ 'accounts' : bigint,
137
+ 'paidTotal' : bigint,
138
+ 'rates' : FeeRates,
139
+ }
140
+ export interface FeeUsage {
141
+ 'quoteRequests' : bigint,
142
+ 'registrations' : bigint,
143
+ 'rides' : bigint,
144
+ }
145
+ export interface Geo { 'lat' : number, 'lng' : number }
88
146
  export interface InitArgs {
89
147
  'mode' : Mode,
90
148
  'admins' : Array<Principal>,
@@ -117,6 +175,10 @@ export interface Profile {
117
175
  }
118
176
  export interface ProfileEntry { 'principal' : Principal, 'name' : string }
119
177
  export interface ProfilesArgs { 'principals' : Array<Principal> }
178
+ export interface RateRideArgs { 'requestId' : string, 'stars' : number }
179
+ export type RateRideOutcome = { 'notRatable' : string } |
180
+ { 'rated' : null } |
181
+ { 'alreadyRated' : null };
120
182
  export interface Rating { 'sum' : bigint, 'count' : bigint }
121
183
  export interface RatingEntry {
122
184
  'requestId' : string,
@@ -133,15 +195,24 @@ export interface ReleasedWasm {
133
195
  'size' : bigint,
134
196
  'releasedAtNs' : bigint,
135
197
  }
198
+ export interface RequestIdArgs { 'requestId' : string }
136
199
  export type Result = { 'ok' : bigint } |
137
200
  { 'err' : Error };
138
201
  export type Result_1 = { 'ok' : Uint8Array | number[] } |
139
202
  { 'err' : Error };
140
- export type Result_10 = { 'ok' : LeaseAnswer } |
203
+ export type Result_10 = { 'ok' : Array<DriverRoomView> } |
204
+ { 'err' : Error };
205
+ export type Result_11 = { 'ok' : Array<DriverFeeAccountView> } |
141
206
  { 'err' : Error };
142
- export type Result_11 = { 'ok' : RideBatchResult } |
207
+ export type Result_12 = { 'ok' : DriverCanistersPage } |
143
208
  { 'err' : Error };
144
- export type Result_12 = {
209
+ export type Result_13 = { 'ok' : Array<Block> } |
210
+ { 'err' : Error };
211
+ export type Result_14 = { 'ok' : LeaseAnswer } |
212
+ { 'err' : Error };
213
+ export type Result_15 = { 'ok' : RideBatchResult } |
214
+ { 'err' : Error };
215
+ export type Result_16 = {
145
216
  'ok' : {
146
217
  'subjects' : bigint,
147
218
  'headSeq' : bigint,
@@ -150,47 +221,56 @@ export type Result_12 = {
150
221
  }
151
222
  } |
152
223
  { 'err' : Error };
153
- export type Result_13 = { 'ok' : Wiring } |
224
+ export type Result_17 = { 'ok' : Wiring } |
154
225
  { 'err' : Error };
155
- export type Result_14 = { 'ok' : Array<ProfileEntry> } |
226
+ export type Result_18 = { 'ok' : Array<ProfileEntry> } |
156
227
  { 'err' : Error };
157
- export type Result_15 = { 'ok' : RidesPage } |
228
+ export type Result_19 = { 'ok' : RidesPage } |
158
229
  { 'err' : Error };
159
- export type Result_16 = { 'ok' : [] | [Rating] } |
230
+ export type Result_2 = { 'ok' : boolean } |
160
231
  { 'err' : Error };
161
- export type Result_17 = { 'ok' : DriverCanister } |
232
+ export type Result_20 = { 'ok' : RideView } |
162
233
  { 'err' : Error };
163
- export type Result_18 = { 'ok' : FactoryStatus } |
234
+ export type Result_21 = { 'ok' : [] | [Rating] } |
164
235
  { 'err' : Error };
165
- export type Result_19 = { 'ok' : [] | [RolloutView] } |
236
+ export type Result_22 = { 'ok' : DriverCanister } |
166
237
  { 'err' : Error };
167
- export type Result_2 = { 'ok' : boolean } |
238
+ export type Result_23 = { 'ok' : FeeStatus } |
239
+ { 'err' : Error };
240
+ export type Result_24 = { 'ok' : FactoryStatus } |
241
+ { 'err' : Error };
242
+ export type Result_25 = { 'ok' : [] | [RolloutView] } |
168
243
  { 'err' : Error };
169
- export type Result_20 = { 'ok' : ChatRoomsStatus } |
244
+ export type Result_26 = { 'ok' : FeeBill } |
170
245
  { 'err' : Error };
171
- export type Result_21 = { 'ok' : Array<Principal> } |
246
+ export type Result_27 = { 'ok' : DriverFeeAccountView } |
172
247
  { 'err' : Error };
173
- export type Result_22 = { 'ok' : Principal } |
248
+ export type Result_28 = { 'ok' : ChatRoomsStatus } |
174
249
  { 'err' : Error };
175
- export type Result_23 = { 'ok' : WasmInfo } |
250
+ export type Result_29 = { 'ok' : Array<Principal> } |
176
251
  { 'err' : Error };
177
252
  export type Result_3 = { 'ok' : RolloutView } |
178
253
  { 'err' : Error };
254
+ export type Result_30 = { 'ok' : Principal } |
255
+ { 'err' : Error };
256
+ export type Result_31 = { 'ok' : WasmInfo } |
257
+ { 'err' : Error };
179
258
  export type Result_4 = { 'ok' : Profile } |
180
259
  { 'err' : Error };
181
- export type Result_5 = { 'ok' : ChatConfig } |
260
+ export type Result_5 = { 'ok' : FeeRates } |
182
261
  { 'err' : Error };
183
- export type Result_6 = { 'ok' : ClaimCode } |
262
+ export type Result_6 = { 'ok' : ChatConfig } |
184
263
  { 'err' : Error };
185
- export type Result_7 = { 'ok' : Array<DriverRoomView> } |
264
+ export type Result_7 = { 'ok' : RateRideOutcome } |
186
265
  { 'err' : Error };
187
- export type Result_8 = { 'ok' : DriverCanistersPage } |
266
+ export type Result_8 = { 'ok' : FeePaid } |
188
267
  { 'err' : Error };
189
- export type Result_9 = { 'ok' : Array<Block> } |
268
+ export type Result_9 = { 'ok' : ClaimCode } |
190
269
  { 'err' : Error };
191
270
  export interface RideBatch {
192
271
  'ratings' : Array<RatingEntry>,
193
- 'rides' : Array<RideEntry>,
272
+ 'usage' : [] | [UsageBatch],
273
+ 'rides' : Array<RideEntryIn>,
194
274
  }
195
275
  export interface RideBatchResult {
196
276
  'duplicates' : bigint,
@@ -201,18 +281,33 @@ export interface RideBatchResult {
201
281
  export type RideEnd = { 'completed' : null } |
202
282
  { 'cancelledByRider' : null } |
203
283
  { 'cancelledByDriver' : null };
204
- export interface RideEntry {
284
+ export interface RideEntryIn {
285
+ 'end' : RideEnd,
286
+ 'destination' : [] | [Geo],
287
+ 'requestId' : string,
288
+ 'endedAtNs' : bigint,
289
+ 'pickup' : [] | [Geo],
290
+ 'driverKey' : string,
291
+ 'driverCanister' : Principal,
292
+ 'price' : [] | [Money],
293
+ 'rider' : Principal,
294
+ }
295
+ export interface RideView {
205
296
  'end' : RideEnd,
297
+ 'destination' : [] | [Geo],
206
298
  'requestId' : string,
207
299
  'endedAtNs' : bigint,
300
+ 'ratable' : [] | [boolean],
301
+ 'pickup' : [] | [Geo],
208
302
  'driverKey' : string,
209
303
  'driverCanister' : Principal,
210
304
  'price' : [] | [Money],
211
305
  'rider' : Principal,
306
+ 'myRating' : [] | [number],
212
307
  }
213
308
  export interface RidesPage {
214
309
  'nextBeforeIndex' : [] | [bigint],
215
- 'rides' : Array<RideEntry>,
310
+ 'rides' : Array<RideView>,
216
311
  }
217
312
  export interface RidesPageArgs {
218
313
  'beforeIndex' : [] | [bigint],
@@ -240,6 +335,8 @@ export interface RolloutView {
240
335
  'finishedAtNs' : [] | [bigint],
241
336
  }
242
337
  export interface SetProfileArgs { 'name' : string }
338
+ export interface SimulatorRouterArgs { 'router' : [] | [Principal] }
339
+ export interface TestDayArgs { 'days' : bigint }
243
340
  export interface TigiCore {
244
341
  'abortDriverRollout' : ActorMethod<[], Result_3>,
245
342
  /**
@@ -249,7 +346,7 @@ export interface TigiCore {
249
346
  /**
250
347
  * / Admins: a canister the core controls joins the demo pool (U-35).
251
348
  */
252
- 'addPoolCanister' : ActorMethod<[CanisterArgs], Result_17>,
349
+ 'addPoolCanister' : ActorMethod<[CanisterArgs], Result_22>,
253
350
  /**
254
351
  * / Admins: a driver canister, or one driver in it (`driverKey`), is blocked; the workers
255
352
  * / drop it at once (WO-2).
@@ -264,30 +361,30 @@ export interface TigiCore {
264
361
  * / over the demo canister with the code of the link. Single use, 15 min; every refusal
265
362
  * / answers the same NotAuthorized. The room of the canister gets the caller (C-15).
266
363
  */
267
- 'claimDriverCanister' : ActorMethod<[ClaimArgs], Result_17>,
364
+ 'claimDriverCanister' : ActorMethod<[ClaimArgs], Result_22>,
268
365
  'clearLogs' : ActorMethod<[], undefined>,
269
366
  /**
270
367
  * / Admins: the chunks become THE module of their kind. A new driver wasm is released
271
368
  * / (F-11) and its hash goes to the workers.
272
369
  */
273
- 'commitDriverWasm' : ActorMethod<[WasmCommitArgs], Result_23>,
370
+ 'commitDriverWasm' : ActorMethod<[WasmCommitArgs], Result_31>,
274
371
  /**
275
372
  * / Admins, localTest: an empty canister from the core's cycles joins the demo pool.
276
373
  */
277
- 'createLocalPoolCanister' : ActorMethod<[], Result_17>,
374
+ 'createLocalPoolCanister' : ActorMethod<[], Result_22>,
278
375
  /**
279
376
  * / F-2 … F-4, F-10: the caller's own driver canister (localTest: from the core's cycles).
280
377
  */
281
- 'createMyDriverCanister' : ActorMethod<[], Result_17>,
378
+ 'createMyDriverCanister' : ActorMethod<[], Result_22>,
282
379
  /**
283
380
  * / Admins: the simulator, created once (F-18).
284
381
  */
285
- 'ensureSimulator' : ActorMethod<[], Result_22>,
382
+ 'ensureSimulator' : ActorMethod<[], Result_30>,
286
383
  /**
287
384
  * / F-8: 15 min more for the holder of a demo canister.
288
385
  */
289
- 'extendDemoLease' : ActorMethod<[], Result_17>,
290
- 'getAdmins' : ActorMethod<[], Result_21>,
386
+ 'extendDemoLease' : ActorMethod<[], Result_22>,
387
+ 'getAdmins' : ActorMethod<[], Result_29>,
291
388
  /**
292
389
  * / For the fronts (through the package): where the chat of this environment is. Null =
293
390
  * / no chat here yet. The room of a driver is `ChatRoomFunctions.driverRoomId`.
@@ -296,32 +393,58 @@ export interface TigiCore {
296
393
  /**
297
394
  * / Admins: how far the driver rooms are (C-15).
298
395
  */
299
- 'getChatRoomsStatus' : ActorMethod<[], Result_20>,
396
+ 'getChatRoomsStatus' : ActorMethod<[], Result_28>,
300
397
  /**
301
398
  * / WO-1, WO-2: what the core knows of a canister — for the workers and anybody.
302
399
  */
303
400
  'getDriverCanisterStatus' : ActorMethod<[CanisterArgs], DriverCanisterStatus>,
304
- 'getDriverRollout' : ActorMethod<[], Result_19>,
305
- 'getFactoryStatus' : ActorMethod<[], Result_18>,
401
+ /**
402
+ * / Admins: the account of one driver canister (C-17 … C-20).
403
+ */
404
+ 'getDriverFeeAccount' : ActorMethod<[CanisterArgs], Result_27>,
405
+ /**
406
+ * / C-19: a driver canister of the registry asks for its bill — the events since its
407
+ * / last settlement, priced on the fee's day. Called by the canister at its first
408
+ * / "Przyjmuję zlecenia" of a day. A pool canister owes nothing (C-18).
409
+ */
410
+ 'getDriverFeeBill' : ActorMethod<[], Result_26>,
411
+ /**
412
+ * / Admins (stage 7): the aggregated rating of one driver (sum and count of stars; null =
413
+ * / no rating yet) — the value the workers get through the outbox (C-6).
414
+ */
415
+ 'getDriverRating' : ActorMethod<[DriverRatingArgs], Result_21>,
416
+ 'getDriverRollout' : ActorMethod<[], Result_25>,
417
+ 'getFactoryStatus' : ActorMethod<[], Result_24>,
418
+ /**
419
+ * / C-22: the rates, the day, the multiplier cached, the totals.
420
+ */
421
+ 'getFeeStatus' : ActorMethod<[], Result_23>,
306
422
  'getLogs' : ActorMethod<[], string>,
307
423
  /**
308
424
  * / The caller's own canister, or the demo canister the caller holds now.
309
425
  */
310
- 'getMyDriverCanister' : ActorMethod<[], Result_17>,
426
+ 'getMyDriverCanister' : ActorMethod<[], Result_22>,
311
427
  'getMyProfile' : ActorMethod<[], Result_4>,
312
428
  /**
313
429
  * / C-16, PF-4: the caller's own rating as a rider (sum and count of stars; null = no
314
430
  * / rating yet). Ratings reach the core in the workers' batches, up to a minute late.
315
431
  */
316
- 'getMyRating' : ActorMethod<[], Result_16>,
432
+ 'getMyRating' : ActorMethod<[], Result_21>,
433
+ /**
434
+ * / C-8 (KU-4, stage 7): one line of the caller's history by its requestId — for the
435
+ * / details screen after a reload and to show the rating after `rateMyRide`. Another
436
+ * / rider's ride → `NotAuthorized`; not in the core (yet, K-9) → `NotFound`.
437
+ */
438
+ 'getMyRide' : ActorMethod<[RequestIdArgs], Result_20>,
317
439
  /**
318
- * / C-8: the caller's rides, newest first.
440
+ * / C-8: the caller's rides, newest first, with the places (KU-4) and whether the driver
441
+ * / can still be rated (KU-5, C-23).
319
442
  */
320
- 'getMyRides' : ActorMethod<[RidesPageArgs], Result_15>,
443
+ 'getMyRides' : ActorMethod<[RidesPageArgs], Result_19>,
321
444
  /**
322
445
  * / C-3: the names of up to MAX_PROFILES_PER_CALL principals; unknown ones are left out.
323
446
  */
324
- 'getProfiles' : ActorMethod<[ProfilesArgs], Result_14>,
447
+ 'getProfiles' : ActorMethod<[ProfilesArgs], Result_18>,
325
448
  /**
326
449
  * / F-11: the driver wasms released so far, oldest first.
327
450
  */
@@ -333,11 +456,11 @@ export interface TigiCore {
333
456
  /**
334
457
  * / Admins: the coordinator, the workers confirmed so far, the mode.
335
458
  */
336
- 'getWiring' : ActorMethod<[], Result_13>,
459
+ 'getWiring' : ActorMethod<[], Result_17>,
337
460
  /**
338
461
  * / Admins: how far the outbox to the workers is (C-6, C-7).
339
462
  */
340
- 'getWorkerOutbox' : ActorMethod<[], Result_12>,
463
+ 'getWorkerOutbox' : ActorMethod<[], Result_16>,
341
464
  /**
342
465
  * / Workers of the group: the core asks the coordinator once and remembers the worker,
343
466
  * / which then gets the network state through the outbox. A worker calls it once after
@@ -349,7 +472,7 @@ export interface TigiCore {
349
472
  * / Idempotent: a known requestId and a counted rating count once. Invalid entries are
350
473
  * / rejected and logged; the worker drops the whole batch after an ok.
351
474
  */
352
- 'ingestRideBatch' : ActorMethod<[RideBatch], Result_11>,
475
+ 'ingestRideBatch' : ActorMethod<[RideBatch], Result_15>,
353
476
  /**
354
477
  * / C-14: the accounts gate of the chat (U-43). The chat core asks this group's
355
478
  * / coordinator WHERE (`accountsCanisterFor` → this core) and asks here: true = an
@@ -360,18 +483,36 @@ export interface TigiCore {
360
483
  * / F-5 … F-7: a demo canister for 15 min (outside prod). A fresh lease comes with a
361
484
  * / one-time claim code (F-20, U-45).
362
485
  */
363
- 'leaseDemoDriverCanister' : ActorMethod<[], Result_10>,
364
- 'listBlocks' : ActorMethod<[PageArgs], Result_9>,
365
- 'listDriverCanisters' : ActorMethod<[PageArgs], Result_8>,
486
+ 'leaseDemoDriverCanister' : ActorMethod<[], Result_14>,
487
+ 'listBlocks' : ActorMethod<[PageArgs], Result_13>,
488
+ 'listDriverCanisters' : ActorMethod<[PageArgs], Result_12>,
489
+ /**
490
+ * / Admins: the accounts, 100 a page at most.
491
+ */
492
+ 'listDriverFeeAccounts' : ActorMethod<[PageArgs], Result_11>,
366
493
  /**
367
494
  * / Admins: the driver rooms as the core wants them, 100 a page at most.
368
495
  */
369
- 'listDriverRooms' : ActorMethod<[PageArgs], Result_7>,
496
+ 'listDriverRooms' : ActorMethod<[PageArgs], Result_10>,
370
497
  /**
371
498
  * / F-20: a fresh claim code for the caller's running demo lease; the old one stops
372
499
  * / working.
373
500
  */
374
- 'newClaimCode' : ActorMethod<[], Result_6>,
501
+ 'newClaimCode' : ActorMethod<[], Result_9>,
502
+ /**
503
+ * / C-20: the driver canister pays the bill of `day` with the cycles attached to this
504
+ * / call. The core takes exactly the bill (the rest goes back), or nothing when less is
505
+ * / attached (`FEE_SHORT`); a day paid already answers `accepted = 0`.
506
+ */
507
+ 'payDriverFee' : ActorMethod<[FeePayArgs], Result_8>,
508
+ /**
509
+ * / C-23 (KU-5, stage 7): the rider rates the driver of a finished ride from the history.
510
+ * / Only the ride's rider; a completed ride within 24 h of its end (K-8); once per ride
511
+ * / over both paths — a live rating through the worker and this one count once together
512
+ * / (the first to reach the core). The driver's aggregate goes to the workers as a
513
+ * / batch's does (C-6). Counted in the caller's `#account` pool.
514
+ */
515
+ 'rateMyRide' : ActorMethod<[RateRideArgs], Result_7>,
375
516
  'removeAdmin' : ActorMethod<[PrincipalArgs], Result_2>,
376
517
  'resumeDriverRollout' : ActorMethod<[], Result_3>,
377
518
  /**
@@ -379,18 +520,33 @@ export interface TigiCore {
379
520
  * / (whose admin and accounts field are this group's coordinator). Every call sends every
380
521
  * / driver room again (a new project, a chat group set up again).
381
522
  */
382
- 'setChatConfig' : ActorMethod<[ChatConfig], Result_5>,
523
+ 'setChatConfig' : ActorMethod<[ChatConfig], Result_6>,
383
524
  /**
384
525
  * / Admins, localTest only: new claim codes live this long (the local check of an
385
526
  * / expired code). Heap only: an upgrade brings back 15 min.
386
527
  */
387
528
  'setClaimCodeTtl' : ActorMethod<[ClaimTtlArgs], Result>,
529
+ /**
530
+ * / Admins: the cycles per event (C-18).
531
+ */
532
+ 'setFeeRates' : ActorMethod<[FeeRates], Result_5>,
388
533
  'setLoggingEnabled' : ActorMethod<[boolean], Result_2>,
389
534
  /**
390
535
  * / The coordinator only: the balance below which the core asks for cycles.
391
536
  */
392
537
  'setLowCyclesBelow' : ActorMethod<[bigint], Result_2>,
393
538
  'setMyProfile' : ActorMethod<[SetProfileArgs], Result_4>,
539
+ /**
540
+ * / F-21 (2026-10-24, route line): admins — the one principal that routes the simulator's
541
+ * / quotes (S-N13, a Node process like a driver's front); null removes it. The simulator
542
+ * / takes it from the core only.
543
+ */
544
+ 'setSimulatorRouter' : ActorMethod<[SimulatorRouterArgs], Result_2>,
545
+ /**
546
+ * / Admins, localTest only: the fee's day moves this many days on (the local check of
547
+ * / "the next day"). Heap only: an upgrade brings back the real day.
548
+ */
549
+ 'setTestDayOffset' : ActorMethod<[TestDayArgs], Result>,
394
550
  /**
395
551
  * / Admins: a rollout of the current driver wasm (F-12): the canary, then the rest, one
396
552
  * / canister a step, never during a ride (F-13).
@@ -412,6 +568,10 @@ export interface UnblockDriverArgs {
412
568
  'canister' : Principal,
413
569
  }
414
570
  export interface UnblockRiderArgs { 'rider' : Principal }
571
+ export interface UsageBatch {
572
+ 'entries' : Array<DriverUsage>,
573
+ 'batchId' : bigint,
574
+ }
415
575
  export interface WasmChunkArgs {
416
576
  'kind' : WasmKind,
417
577
  'bytes' : Uint8Array | number[],