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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -30,6 +30,27 @@ export interface ChatRoomsStatus {
30
30
  'pendingSinceNs' : [] | [bigint],
31
31
  'rooms' : bigint,
32
32
  }
33
+ export interface ChatShare { 'cycles' : bigint, 'roomId' : string }
34
+ export interface ChatShareView {
35
+ 'pending' : bigint,
36
+ 'inBill' : bigint,
37
+ 'paidTotal' : bigint,
38
+ 'lastDay' : [] | [bigint],
39
+ }
40
+ export interface ChatSharesAck {
41
+ 'added' : bigint,
42
+ 'unknownCycles' : bigint,
43
+ 'applied' : boolean,
44
+ 'exemptCycles' : bigint,
45
+ 'exempt' : bigint,
46
+ 'addedCycles' : bigint,
47
+ 'unknown' : bigint,
48
+ }
49
+ export interface ChatSharesArgs {
50
+ 'day' : bigint,
51
+ 'shares' : Array<ChatShare>,
52
+ 'batchId' : bigint,
53
+ }
33
54
  export interface ClaimArgs { 'code' : string, 'canister' : Principal }
34
55
  export interface ClaimCode {
35
56
  'expiresAtNs' : bigint,
@@ -37,6 +58,10 @@ export interface ClaimCode {
37
58
  'canister' : Principal,
38
59
  }
39
60
  export interface ClaimTtlArgs { 'seconds' : bigint }
61
+ export interface DemoAutomatArgs {
62
+ 'canister' : Principal,
63
+ 'automat' : Principal,
64
+ }
40
65
  export interface DriverCanister {
41
66
  'moduleHash' : [] | [Uint8Array | number[]],
42
67
  'owner' : Principal,
@@ -61,6 +86,7 @@ export interface DriverCanistersPage {
61
86
  export interface DriverFeeAccountView {
62
87
  'pending' : FeeUsage,
63
88
  'bill' : [] | [FeeBill],
89
+ 'chat' : [] | [ChatShareView],
64
90
  'lastSettledDay' : [] | [bigint],
65
91
  'canister' : Principal,
66
92
  'paidTotal' : bigint,
@@ -111,6 +137,15 @@ export interface FeeBill {
111
137
  'multiplierPermille' : bigint,
112
138
  'rates' : FeeRates,
113
139
  }
140
+ export interface FeeBillAnswer {
141
+ 'day' : bigint,
142
+ 'settled' : boolean,
143
+ 'chat' : [] | [bigint],
144
+ 'usage' : FeeUsage,
145
+ 'amount' : bigint,
146
+ 'multiplierPermille' : bigint,
147
+ 'rates' : FeeRates,
148
+ }
114
149
  export interface FeePaid {
115
150
  'day' : bigint,
116
151
  'accepted' : bigint,
@@ -132,6 +167,13 @@ export interface FeeStatus {
132
167
  'today' : bigint,
133
168
  'toForward' : bigint,
134
169
  'forwardedTotal' : bigint,
170
+ 'chat' : [] | [
171
+ {
172
+ 'lastBatchId' : [] | [bigint],
173
+ 'addedTotal' : bigint,
174
+ 'absorbedTotal' : bigint,
175
+ }
176
+ ],
135
177
  'lastForwardError' : [] | [string],
136
178
  'accounts' : bigint,
137
179
  'paidTotal' : bigint,
@@ -200,19 +242,21 @@ export type Result = { 'ok' : bigint } |
200
242
  { 'err' : Error };
201
243
  export type Result_1 = { 'ok' : Uint8Array | number[] } |
202
244
  { 'err' : Error };
203
- export type Result_10 = { 'ok' : Array<DriverRoomView> } |
245
+ export type Result_10 = { 'ok' : ClaimCode } |
246
+ { 'err' : Error };
247
+ export type Result_11 = { 'ok' : Array<DriverRoomView> } |
204
248
  { 'err' : Error };
205
- export type Result_11 = { 'ok' : Array<DriverFeeAccountView> } |
249
+ export type Result_12 = { 'ok' : Array<DriverFeeAccountView> } |
206
250
  { 'err' : Error };
207
- export type Result_12 = { 'ok' : DriverCanistersPage } |
251
+ export type Result_13 = { 'ok' : DriverCanistersPage } |
208
252
  { 'err' : Error };
209
- export type Result_13 = { 'ok' : Array<Block> } |
253
+ export type Result_14 = { 'ok' : Array<Block> } |
210
254
  { 'err' : Error };
211
- export type Result_14 = { 'ok' : LeaseAnswer } |
255
+ export type Result_15 = { 'ok' : LeaseAnswer } |
212
256
  { 'err' : Error };
213
- export type Result_15 = { 'ok' : RideBatchResult } |
257
+ export type Result_16 = { 'ok' : RideBatchResult } |
214
258
  { 'err' : Error };
215
- export type Result_16 = {
259
+ export type Result_17 = {
216
260
  'ok' : {
217
261
  'subjects' : bigint,
218
262
  'headSeq' : bigint,
@@ -221,19 +265,17 @@ export type Result_16 = {
221
265
  }
222
266
  } |
223
267
  { 'err' : Error };
224
- export type Result_17 = { 'ok' : Wiring } |
225
- { 'err' : Error };
226
- export type Result_18 = { 'ok' : Array<ProfileEntry> } |
268
+ export type Result_18 = { 'ok' : Wiring } |
227
269
  { 'err' : Error };
228
- export type Result_19 = { 'ok' : RidesPage } |
270
+ export type Result_19 = { 'ok' : Array<ProfileEntry> } |
229
271
  { 'err' : Error };
230
272
  export type Result_2 = { 'ok' : boolean } |
231
273
  { 'err' : Error };
232
- export type Result_20 = { 'ok' : RideView } |
274
+ export type Result_20 = { 'ok' : RidesPage } |
233
275
  { 'err' : Error };
234
- export type Result_21 = { 'ok' : [] | [Rating] } |
276
+ export type Result_21 = { 'ok' : RideView } |
235
277
  { 'err' : Error };
236
- export type Result_22 = { 'ok' : DriverCanister } |
278
+ export type Result_22 = { 'ok' : [] | [Rating] } |
237
279
  { 'err' : Error };
238
280
  export type Result_23 = { 'ok' : FeeStatus } |
239
281
  { 'err' : Error };
@@ -241,7 +283,7 @@ export type Result_24 = { 'ok' : FactoryStatus } |
241
283
  { 'err' : Error };
242
284
  export type Result_25 = { 'ok' : [] | [RolloutView] } |
243
285
  { 'err' : Error };
244
- export type Result_26 = { 'ok' : FeeBill } |
286
+ export type Result_26 = { 'ok' : FeeBillAnswer } |
245
287
  { 'err' : Error };
246
288
  export type Result_27 = { 'ok' : DriverFeeAccountView } |
247
289
  { 'err' : Error };
@@ -255,17 +297,19 @@ export type Result_30 = { 'ok' : Principal } |
255
297
  { 'err' : Error };
256
298
  export type Result_31 = { 'ok' : WasmInfo } |
257
299
  { 'err' : Error };
300
+ export type Result_32 = { 'ok' : ChatSharesAck } |
301
+ { 'err' : Error };
258
302
  export type Result_4 = { 'ok' : Profile } |
259
303
  { 'err' : Error };
260
304
  export type Result_5 = { 'ok' : FeeRates } |
261
305
  { 'err' : Error };
262
- export type Result_6 = { 'ok' : ChatConfig } |
306
+ export type Result_6 = { 'ok' : DriverCanister } |
263
307
  { 'err' : Error };
264
- export type Result_7 = { 'ok' : RateRideOutcome } |
308
+ export type Result_7 = { 'ok' : ChatConfig } |
265
309
  { 'err' : Error };
266
- export type Result_8 = { 'ok' : FeePaid } |
310
+ export type Result_8 = { 'ok' : RateRideOutcome } |
267
311
  { 'err' : Error };
268
- export type Result_9 = { 'ok' : ClaimCode } |
312
+ export type Result_9 = { 'ok' : FeePaid } |
269
313
  { 'err' : Error };
270
314
  export interface RideBatch {
271
315
  'ratings' : Array<RatingEntry>,
@@ -343,10 +387,17 @@ export interface TigiCore {
343
387
  * / Admins: an admin more (the coordinator adds the people who rule the group).
344
388
  */
345
389
  'addAdmin' : ActorMethod<[PrincipalArgs], Result_2>,
390
+ /**
391
+ * / C-27 (D8): the coordinator only — the driver rooms of a chat bill it paid. Each share
392
+ * / joins the next daily bill of the room's OWN driver canister as it is (the chat priced
393
+ * / it; no multiplier). A pool canister's share and a room of no canister of the registry
394
+ * / are absorbed (the coordinator keeps paying them). Once per `batchId`.
395
+ */
396
+ 'addChatShares' : ActorMethod<[ChatSharesArgs], Result_32>,
346
397
  /**
347
398
  * / Admins: a canister the core controls joins the demo pool (U-35).
348
399
  */
349
- 'addPoolCanister' : ActorMethod<[CanisterArgs], Result_22>,
400
+ 'addPoolCanister' : ActorMethod<[CanisterArgs], Result_6>,
350
401
  /**
351
402
  * / Admins: a driver canister, or one driver in it (`driverKey`), is blocked; the workers
352
403
  * / drop it at once (WO-2).
@@ -361,7 +412,7 @@ export interface TigiCore {
361
412
  * / over the demo canister with the code of the link. Single use, 15 min; every refusal
362
413
  * / answers the same NotAuthorized. The room of the canister gets the caller (C-15).
363
414
  */
364
- 'claimDriverCanister' : ActorMethod<[ClaimArgs], Result_22>,
415
+ 'claimDriverCanister' : ActorMethod<[ClaimArgs], Result_6>,
365
416
  'clearLogs' : ActorMethod<[], undefined>,
366
417
  /**
367
418
  * / Admins: the chunks become THE module of their kind. A new driver wasm is released
@@ -371,11 +422,11 @@ export interface TigiCore {
371
422
  /**
372
423
  * / Admins, localTest: an empty canister from the core's cycles joins the demo pool.
373
424
  */
374
- 'createLocalPoolCanister' : ActorMethod<[], Result_22>,
425
+ 'createLocalPoolCanister' : ActorMethod<[], Result_6>,
375
426
  /**
376
427
  * / F-2 … F-4, F-10: the caller's own driver canister (localTest: from the core's cycles).
377
428
  */
378
- 'createMyDriverCanister' : ActorMethod<[], Result_22>,
429
+ 'createMyDriverCanister' : ActorMethod<[], Result_6>,
379
430
  /**
380
431
  * / Admins: the simulator, created once (F-18).
381
432
  */
@@ -383,7 +434,7 @@ export interface TigiCore {
383
434
  /**
384
435
  * / F-8: 15 min more for the holder of a demo canister.
385
436
  */
386
- 'extendDemoLease' : ActorMethod<[], Result_22>,
437
+ 'extendDemoLease' : ActorMethod<[], Result_6>,
387
438
  'getAdmins' : ActorMethod<[], Result_29>,
388
439
  /**
389
440
  * / For the fronts (through the package): where the chat of this environment is. Null =
@@ -412,7 +463,7 @@ export interface TigiCore {
412
463
  * / Admins (stage 7): the aggregated rating of one driver (sum and count of stars; null =
413
464
  * / no rating yet) — the value the workers get through the outbox (C-6).
414
465
  */
415
- 'getDriverRating' : ActorMethod<[DriverRatingArgs], Result_21>,
466
+ 'getDriverRating' : ActorMethod<[DriverRatingArgs], Result_22>,
416
467
  'getDriverRollout' : ActorMethod<[], Result_25>,
417
468
  'getFactoryStatus' : ActorMethod<[], Result_24>,
418
469
  /**
@@ -423,28 +474,28 @@ export interface TigiCore {
423
474
  /**
424
475
  * / The caller's own canister, or the demo canister the caller holds now.
425
476
  */
426
- 'getMyDriverCanister' : ActorMethod<[], Result_22>,
477
+ 'getMyDriverCanister' : ActorMethod<[], Result_6>,
427
478
  'getMyProfile' : ActorMethod<[], Result_4>,
428
479
  /**
429
480
  * / C-16, PF-4: the caller's own rating as a rider (sum and count of stars; null = no
430
481
  * / rating yet). Ratings reach the core in the workers' batches, up to a minute late.
431
482
  */
432
- 'getMyRating' : ActorMethod<[], Result_21>,
483
+ 'getMyRating' : ActorMethod<[], Result_22>,
433
484
  /**
434
485
  * / C-8 (KU-4, stage 7): one line of the caller's history by its requestId — for the
435
486
  * / details screen after a reload and to show the rating after `rateMyRide`. Another
436
487
  * / rider's ride → `NotAuthorized`; not in the core (yet, K-9) → `NotFound`.
437
488
  */
438
- 'getMyRide' : ActorMethod<[RequestIdArgs], Result_20>,
489
+ 'getMyRide' : ActorMethod<[RequestIdArgs], Result_21>,
439
490
  /**
440
491
  * / C-8: the caller's rides, newest first, with the places (KU-4) and whether the driver
441
492
  * / can still be rated (KU-5, C-23).
442
493
  */
443
- 'getMyRides' : ActorMethod<[RidesPageArgs], Result_19>,
494
+ 'getMyRides' : ActorMethod<[RidesPageArgs], Result_20>,
444
495
  /**
445
496
  * / C-3: the names of up to MAX_PROFILES_PER_CALL principals; unknown ones are left out.
446
497
  */
447
- 'getProfiles' : ActorMethod<[ProfilesArgs], Result_18>,
498
+ 'getProfiles' : ActorMethod<[ProfilesArgs], Result_19>,
448
499
  /**
449
500
  * / F-11: the driver wasms released so far, oldest first.
450
501
  */
@@ -456,11 +507,11 @@ export interface TigiCore {
456
507
  /**
457
508
  * / Admins: the coordinator, the workers confirmed so far, the mode.
458
509
  */
459
- 'getWiring' : ActorMethod<[], Result_17>,
510
+ 'getWiring' : ActorMethod<[], Result_18>,
460
511
  /**
461
512
  * / Admins: how far the outbox to the workers is (C-6, C-7).
462
513
  */
463
- 'getWorkerOutbox' : ActorMethod<[], Result_16>,
514
+ 'getWorkerOutbox' : ActorMethod<[], Result_17>,
464
515
  /**
465
516
  * / Workers of the group: the core asks the coordinator once and remembers the worker,
466
517
  * / which then gets the network state through the outbox. A worker calls it once after
@@ -472,7 +523,7 @@ export interface TigiCore {
472
523
  * / Idempotent: a known requestId and a counted rating count once. Invalid entries are
473
524
  * / rejected and logged; the worker drops the whole batch after an ok.
474
525
  */
475
- 'ingestRideBatch' : ActorMethod<[RideBatch], Result_15>,
526
+ 'ingestRideBatch' : ActorMethod<[RideBatch], Result_16>,
476
527
  /**
477
528
  * / C-14: the accounts gate of the chat (U-43). The chat core asks this group's
478
529
  * / coordinator WHERE (`accountsCanisterFor` → this core) and asks here: true = an
@@ -483,28 +534,28 @@ export interface TigiCore {
483
534
  * / F-5 … F-7: a demo canister for 15 min (outside prod). A fresh lease comes with a
484
535
  * / one-time claim code (F-20, U-45).
485
536
  */
486
- 'leaseDemoDriverCanister' : ActorMethod<[], Result_14>,
487
- 'listBlocks' : ActorMethod<[PageArgs], Result_13>,
488
- 'listDriverCanisters' : ActorMethod<[PageArgs], Result_12>,
537
+ 'leaseDemoDriverCanister' : ActorMethod<[], Result_15>,
538
+ 'listBlocks' : ActorMethod<[PageArgs], Result_14>,
539
+ 'listDriverCanisters' : ActorMethod<[PageArgs], Result_13>,
489
540
  /**
490
541
  * / Admins: the accounts, 100 a page at most.
491
542
  */
492
- 'listDriverFeeAccounts' : ActorMethod<[PageArgs], Result_11>,
543
+ 'listDriverFeeAccounts' : ActorMethod<[PageArgs], Result_12>,
493
544
  /**
494
545
  * / Admins: the driver rooms as the core wants them, 100 a page at most.
495
546
  */
496
- 'listDriverRooms' : ActorMethod<[PageArgs], Result_10>,
547
+ 'listDriverRooms' : ActorMethod<[PageArgs], Result_11>,
497
548
  /**
498
549
  * / F-20: a fresh claim code for the caller's running demo lease; the old one stops
499
550
  * / working.
500
551
  */
501
- 'newClaimCode' : ActorMethod<[], Result_9>,
552
+ 'newClaimCode' : ActorMethod<[], Result_10>,
502
553
  /**
503
554
  * / C-20: the driver canister pays the bill of `day` with the cycles attached to this
504
555
  * / call. The core takes exactly the bill (the rest goes back), or nothing when less is
505
556
  * / attached (`FEE_SHORT`); a day paid already answers `accepted = 0`.
506
557
  */
507
- 'payDriverFee' : ActorMethod<[FeePayArgs], Result_8>,
558
+ 'payDriverFee' : ActorMethod<[FeePayArgs], Result_9>,
508
559
  /**
509
560
  * / C-23 (KU-5, stage 7): the rider rates the driver of a finished ride from the history.
510
561
  * / Only the ride's rider; a completed ride within 24 h of its end (K-8); once per ride
@@ -512,7 +563,7 @@ export interface TigiCore {
512
563
  * / (the first to reach the core). The driver's aggregate goes to the workers as a
513
564
  * / batch's does (C-6). Counted in the caller's `#account` pool.
514
565
  */
515
- 'rateMyRide' : ActorMethod<[RateRideArgs], Result_7>,
566
+ 'rateMyRide' : ActorMethod<[RateRideArgs], Result_8>,
516
567
  'removeAdmin' : ActorMethod<[PrincipalArgs], Result_2>,
517
568
  'resumeDriverRollout' : ActorMethod<[], Result_3>,
518
569
  /**
@@ -520,12 +571,17 @@ export interface TigiCore {
520
571
  * / (whose admin and accounts field are this group's coordinator). Every call sends every
521
572
  * / driver room again (a new project, a chat group set up again).
522
573
  */
523
- 'setChatConfig' : ActorMethod<[ChatConfig], Result_6>,
574
+ 'setChatConfig' : ActorMethod<[ChatConfig], Result_7>,
524
575
  /**
525
576
  * / Admins, localTest only: new claim codes live this long (the local check of an
526
577
  * / expired code). Heap only: an upgrade brings back 15 min.
527
578
  */
528
579
  'setClaimCodeTtl' : ActorMethod<[ClaimTtlArgs], Result>,
580
+ /**
581
+ * / Admins (F-22, TIGI-DRIVER-MODES): the pool canister is installed again in the
582
+ * / automat mode, driven by `automat` — the simulator's router on the droplet.
583
+ */
584
+ 'setDemoDriverAutomat' : ActorMethod<[DemoAutomatArgs], Result_6>,
529
585
  /**
530
586
  * / Admins: the cycles per event (C-18).
531
587
  */
@@ -46,6 +46,22 @@ export const idlFactory = ({ IDL }) => {
46
46
  const Result_3 = IDL.Variant({ 'ok' : RolloutView, 'err' : Error });
47
47
  const PrincipalArgs = IDL.Record({ 'principal' : IDL.Principal });
48
48
  const Result_2 = IDL.Variant({ 'ok' : IDL.Bool, 'err' : Error });
49
+ const ChatShare = IDL.Record({ 'cycles' : IDL.Nat, 'roomId' : IDL.Text });
50
+ const ChatSharesArgs = IDL.Record({
51
+ 'day' : IDL.Nat64,
52
+ 'shares' : IDL.Vec(ChatShare),
53
+ 'batchId' : IDL.Nat64,
54
+ });
55
+ const ChatSharesAck = IDL.Record({
56
+ 'added' : IDL.Nat,
57
+ 'unknownCycles' : IDL.Nat,
58
+ 'applied' : IDL.Bool,
59
+ 'exemptCycles' : IDL.Nat,
60
+ 'exempt' : IDL.Nat,
61
+ 'addedCycles' : IDL.Nat,
62
+ 'unknown' : IDL.Nat,
63
+ });
64
+ const Result_32 = IDL.Variant({ 'ok' : ChatSharesAck, 'err' : Error });
49
65
  const CanisterArgs = IDL.Record({ 'canister' : IDL.Principal });
50
66
  const DriverCanisterKind = IDL.Variant({
51
67
  'own' : IDL.Null,
@@ -61,7 +77,7 @@ export const idlFactory = ({ IDL }) => {
61
77
  'installedAtNs' : IDL.Opt(IDL.Int),
62
78
  'leaseUntilNs' : IDL.Opt(IDL.Int),
63
79
  });
64
- const Result_22 = IDL.Variant({ 'ok' : DriverCanister, 'err' : Error });
80
+ const Result_6 = IDL.Variant({ 'ok' : DriverCanister, 'err' : Error });
65
81
  const BlockDriverArgs = IDL.Record({
66
82
  'driverKey' : IDL.Opt(IDL.Text),
67
83
  'canister' : IDL.Principal,
@@ -129,6 +145,12 @@ export const idlFactory = ({ IDL }) => {
129
145
  'multiplierPermille' : IDL.Nat,
130
146
  'rates' : FeeRates,
131
147
  });
148
+ const ChatShareView = IDL.Record({
149
+ 'pending' : IDL.Nat,
150
+ 'inBill' : IDL.Nat,
151
+ 'paidTotal' : IDL.Nat,
152
+ 'lastDay' : IDL.Opt(IDL.Nat),
153
+ });
132
154
  const FeeRecord = IDL.Record({
133
155
  'day' : IDL.Nat,
134
156
  'paidAtNs' : IDL.Int,
@@ -137,19 +159,29 @@ export const idlFactory = ({ IDL }) => {
137
159
  const DriverFeeAccountView = IDL.Record({
138
160
  'pending' : FeeUsage,
139
161
  'bill' : IDL.Opt(FeeBill),
162
+ 'chat' : IDL.Opt(ChatShareView),
140
163
  'lastSettledDay' : IDL.Opt(IDL.Nat),
141
164
  'canister' : IDL.Principal,
142
165
  'paidTotal' : IDL.Nat,
143
166
  'lastFee' : IDL.Opt(FeeRecord),
144
167
  });
145
168
  const Result_27 = IDL.Variant({ 'ok' : DriverFeeAccountView, 'err' : Error });
146
- const Result_26 = IDL.Variant({ 'ok' : FeeBill, 'err' : Error });
169
+ const FeeBillAnswer = IDL.Record({
170
+ 'day' : IDL.Nat,
171
+ 'settled' : IDL.Bool,
172
+ 'chat' : IDL.Opt(IDL.Nat),
173
+ 'usage' : FeeUsage,
174
+ 'amount' : IDL.Nat,
175
+ 'multiplierPermille' : IDL.Nat,
176
+ 'rates' : FeeRates,
177
+ });
178
+ const Result_26 = IDL.Variant({ 'ok' : FeeBillAnswer, 'err' : Error });
147
179
  const DriverRatingArgs = IDL.Record({
148
180
  'driverKey' : IDL.Text,
149
181
  'canister' : IDL.Principal,
150
182
  });
151
183
  const Rating = IDL.Record({ 'sum' : IDL.Nat, 'count' : IDL.Nat });
152
- const Result_21 = IDL.Variant({ 'ok' : IDL.Opt(Rating), 'err' : Error });
184
+ const Result_22 = IDL.Variant({ 'ok' : IDL.Opt(Rating), 'err' : Error });
153
185
  const Result_25 = IDL.Variant({ 'ok' : IDL.Opt(RolloutView), 'err' : Error });
154
186
  const FactoryStatus = IDL.Record({
155
187
  'simulator' : IDL.Opt(IDL.Principal),
@@ -170,6 +202,13 @@ export const idlFactory = ({ IDL }) => {
170
202
  'today' : IDL.Nat,
171
203
  'toForward' : IDL.Nat,
172
204
  'forwardedTotal' : IDL.Nat,
205
+ 'chat' : IDL.Opt(
206
+ IDL.Record({
207
+ 'lastBatchId' : IDL.Opt(IDL.Nat64),
208
+ 'addedTotal' : IDL.Nat,
209
+ 'absorbedTotal' : IDL.Nat,
210
+ })
211
+ ),
173
212
  'lastForwardError' : IDL.Opt(IDL.Text),
174
213
  'accounts' : IDL.Nat,
175
214
  'paidTotal' : IDL.Nat,
@@ -203,7 +242,7 @@ export const idlFactory = ({ IDL }) => {
203
242
  'rider' : IDL.Principal,
204
243
  'myRating' : IDL.Opt(IDL.Nat8),
205
244
  });
206
- const Result_20 = IDL.Variant({ 'ok' : RideView, 'err' : Error });
245
+ const Result_21 = IDL.Variant({ 'ok' : RideView, 'err' : Error });
207
246
  const RidesPageArgs = IDL.Record({
208
247
  'beforeIndex' : IDL.Opt(IDL.Nat),
209
248
  'limit' : IDL.Nat,
@@ -212,13 +251,13 @@ export const idlFactory = ({ IDL }) => {
212
251
  'nextBeforeIndex' : IDL.Opt(IDL.Nat),
213
252
  'rides' : IDL.Vec(RideView),
214
253
  });
215
- const Result_19 = IDL.Variant({ 'ok' : RidesPage, 'err' : Error });
254
+ const Result_20 = IDL.Variant({ 'ok' : RidesPage, 'err' : Error });
216
255
  const ProfilesArgs = IDL.Record({ 'principals' : IDL.Vec(IDL.Principal) });
217
256
  const ProfileEntry = IDL.Record({
218
257
  'principal' : IDL.Principal,
219
258
  'name' : IDL.Text,
220
259
  });
221
- const Result_18 = IDL.Variant({
260
+ const Result_19 = IDL.Variant({
222
261
  'ok' : IDL.Vec(ProfileEntry),
223
262
  'err' : Error,
224
263
  });
@@ -232,8 +271,8 @@ export const idlFactory = ({ IDL }) => {
232
271
  'knownWorkers' : IDL.Vec(IDL.Principal),
233
272
  'coordinator' : IDL.Opt(IDL.Principal),
234
273
  });
235
- const Result_17 = IDL.Variant({ 'ok' : Wiring, 'err' : Error });
236
- const Result_16 = IDL.Variant({
274
+ const Result_18 = IDL.Variant({ 'ok' : Wiring, 'err' : Error });
275
+ const Result_17 = IDL.Variant({
237
276
  'ok' : IDL.Record({
238
277
  'subjects' : IDL.Nat,
239
278
  'headSeq' : IDL.Nat64,
@@ -286,7 +325,7 @@ export const idlFactory = ({ IDL }) => {
286
325
  'rejected' : IDL.Nat,
287
326
  'ratingsCounted' : IDL.Nat,
288
327
  });
289
- const Result_15 = IDL.Variant({ 'ok' : RideBatchResult, 'err' : Error });
328
+ const Result_16 = IDL.Variant({ 'ok' : RideBatchResult, 'err' : Error });
290
329
  const ClaimCode = IDL.Record({
291
330
  'expiresAtNs' : IDL.Int,
292
331
  'code' : IDL.Text,
@@ -307,7 +346,7 @@ export const idlFactory = ({ IDL }) => {
307
346
  'busy' : IDL.Record({ 'untilNs' : IDL.Int }),
308
347
  'leased' : LeasedCanister,
309
348
  });
310
- const Result_14 = IDL.Variant({ 'ok' : LeaseAnswer, 'err' : Error });
349
+ const Result_15 = IDL.Variant({ 'ok' : LeaseAnswer, 'err' : Error });
311
350
  const PageArgs = IDL.Record({ 'offset' : IDL.Nat, 'limit' : IDL.Nat });
312
351
  const BlockTarget = IDL.Variant({
313
352
  'driverCanister' : IDL.Principal,
@@ -323,13 +362,13 @@ export const idlFactory = ({ IDL }) => {
323
362
  'target' : BlockTarget,
324
363
  'reason' : IDL.Text,
325
364
  });
326
- const Result_13 = IDL.Variant({ 'ok' : IDL.Vec(Block), 'err' : Error });
365
+ const Result_14 = IDL.Variant({ 'ok' : IDL.Vec(Block), 'err' : Error });
327
366
  const DriverCanistersPage = IDL.Record({
328
367
  'total' : IDL.Nat,
329
368
  'canisters' : IDL.Vec(DriverCanister),
330
369
  });
331
- const Result_12 = IDL.Variant({ 'ok' : DriverCanistersPage, 'err' : Error });
332
- const Result_11 = IDL.Variant({
370
+ const Result_13 = IDL.Variant({ 'ok' : DriverCanistersPage, 'err' : Error });
371
+ const Result_12 = IDL.Variant({
333
372
  'ok' : IDL.Vec(DriverFeeAccountView),
334
373
  'err' : Error,
335
374
  });
@@ -341,18 +380,18 @@ export const idlFactory = ({ IDL }) => {
341
380
  'roomId' : IDL.Text,
342
381
  'synced' : IDL.Bool,
343
382
  });
344
- const Result_10 = IDL.Variant({
383
+ const Result_11 = IDL.Variant({
345
384
  'ok' : IDL.Vec(DriverRoomView),
346
385
  'err' : Error,
347
386
  });
348
- const Result_9 = IDL.Variant({ 'ok' : ClaimCode, 'err' : Error });
387
+ const Result_10 = IDL.Variant({ 'ok' : ClaimCode, 'err' : Error });
349
388
  const FeePayArgs = IDL.Record({ 'day' : IDL.Nat });
350
389
  const FeePaid = IDL.Record({
351
390
  'day' : IDL.Nat,
352
391
  'accepted' : IDL.Nat,
353
392
  'amount' : IDL.Nat,
354
393
  });
355
- const Result_8 = IDL.Variant({ 'ok' : FeePaid, 'err' : Error });
394
+ const Result_9 = IDL.Variant({ 'ok' : FeePaid, 'err' : Error });
356
395
  const RateRideArgs = IDL.Record({
357
396
  'requestId' : IDL.Text,
358
397
  'stars' : IDL.Nat8,
@@ -362,10 +401,14 @@ export const idlFactory = ({ IDL }) => {
362
401
  'rated' : IDL.Null,
363
402
  'alreadyRated' : IDL.Null,
364
403
  });
365
- const Result_7 = IDL.Variant({ 'ok' : RateRideOutcome, 'err' : Error });
366
- const Result_6 = IDL.Variant({ 'ok' : ChatConfig, 'err' : Error });
404
+ const Result_8 = IDL.Variant({ 'ok' : RateRideOutcome, 'err' : Error });
405
+ const Result_7 = IDL.Variant({ 'ok' : ChatConfig, 'err' : Error });
367
406
  const ClaimTtlArgs = IDL.Record({ 'seconds' : IDL.Nat });
368
407
  const Result = IDL.Variant({ 'ok' : IDL.Nat, 'err' : Error });
408
+ const DemoAutomatArgs = IDL.Record({
409
+ 'canister' : IDL.Principal,
410
+ 'automat' : IDL.Principal,
411
+ });
369
412
  const Result_5 = IDL.Variant({ 'ok' : FeeRates, 'err' : Error });
370
413
  const SetProfileArgs = IDL.Record({ 'name' : IDL.Text });
371
414
  const SimulatorRouterArgs = IDL.Record({ 'router' : IDL.Opt(IDL.Principal) });
@@ -384,16 +427,17 @@ export const idlFactory = ({ IDL }) => {
384
427
  const TigiCore = IDL.Service({
385
428
  'abortDriverRollout' : IDL.Func([], [Result_3], []),
386
429
  'addAdmin' : IDL.Func([PrincipalArgs], [Result_2], []),
387
- 'addPoolCanister' : IDL.Func([CanisterArgs], [Result_22], []),
430
+ 'addChatShares' : IDL.Func([ChatSharesArgs], [Result_32], []),
431
+ 'addPoolCanister' : IDL.Func([CanisterArgs], [Result_6], []),
388
432
  'blockDriver' : IDL.Func([BlockDriverArgs], [Result_2], []),
389
433
  'blockRider' : IDL.Func([BlockRiderArgs], [Result_2], []),
390
- 'claimDriverCanister' : IDL.Func([ClaimArgs], [Result_22], []),
434
+ 'claimDriverCanister' : IDL.Func([ClaimArgs], [Result_6], []),
391
435
  'clearLogs' : IDL.Func([], [], []),
392
436
  'commitDriverWasm' : IDL.Func([WasmCommitArgs], [Result_31], []),
393
- 'createLocalPoolCanister' : IDL.Func([], [Result_22], []),
394
- 'createMyDriverCanister' : IDL.Func([], [Result_22], []),
437
+ 'createLocalPoolCanister' : IDL.Func([], [Result_6], []),
438
+ 'createMyDriverCanister' : IDL.Func([], [Result_6], []),
395
439
  'ensureSimulator' : IDL.Func([], [Result_30], []),
396
- 'extendDemoLease' : IDL.Func([], [Result_22], []),
440
+ 'extendDemoLease' : IDL.Func([], [Result_6], []),
397
441
  'getAdmins' : IDL.Func([], [Result_29], ['query']),
398
442
  'getChatConfig' : IDL.Func([], [IDL.Opt(ChatConfig)], ['query']),
399
443
  'getChatRoomsStatus' : IDL.Func([], [Result_28], ['query']),
@@ -404,36 +448,37 @@ export const idlFactory = ({ IDL }) => {
404
448
  ),
405
449
  'getDriverFeeAccount' : IDL.Func([CanisterArgs], [Result_27], ['query']),
406
450
  'getDriverFeeBill' : IDL.Func([], [Result_26], []),
407
- 'getDriverRating' : IDL.Func([DriverRatingArgs], [Result_21], ['query']),
451
+ 'getDriverRating' : IDL.Func([DriverRatingArgs], [Result_22], ['query']),
408
452
  'getDriverRollout' : IDL.Func([], [Result_25], ['query']),
409
453
  'getFactoryStatus' : IDL.Func([], [Result_24], ['query']),
410
454
  'getFeeStatus' : IDL.Func([], [Result_23], ['query']),
411
455
  'getLogs' : IDL.Func([], [IDL.Text], ['query']),
412
- 'getMyDriverCanister' : IDL.Func([], [Result_22], ['query']),
456
+ 'getMyDriverCanister' : IDL.Func([], [Result_6], ['query']),
413
457
  'getMyProfile' : IDL.Func([], [Result_4], ['query']),
414
- 'getMyRating' : IDL.Func([], [Result_21], ['query']),
415
- 'getMyRide' : IDL.Func([RequestIdArgs], [Result_20], ['query']),
416
- 'getMyRides' : IDL.Func([RidesPageArgs], [Result_19], ['query']),
417
- 'getProfiles' : IDL.Func([ProfilesArgs], [Result_18], ['query']),
458
+ 'getMyRating' : IDL.Func([], [Result_22], ['query']),
459
+ 'getMyRide' : IDL.Func([RequestIdArgs], [Result_21], ['query']),
460
+ 'getMyRides' : IDL.Func([RidesPageArgs], [Result_20], ['query']),
461
+ 'getProfiles' : IDL.Func([ProfilesArgs], [Result_19], ['query']),
418
462
  'getReleasedDriverWasms' : IDL.Func([], [IDL.Vec(ReleasedWasm)], ['query']),
419
463
  'getSimulator' : IDL.Func([], [IDL.Opt(IDL.Principal)], ['query']),
420
- 'getWiring' : IDL.Func([], [Result_17], ['query']),
421
- 'getWorkerOutbox' : IDL.Func([], [Result_16], ['query']),
464
+ 'getWiring' : IDL.Func([], [Result_18], ['query']),
465
+ 'getWorkerOutbox' : IDL.Func([], [Result_17], ['query']),
422
466
  'helloFromWorker' : IDL.Func([], [Result_2], []),
423
- 'ingestRideBatch' : IDL.Func([RideBatch], [Result_15], []),
467
+ 'ingestRideBatch' : IDL.Func([RideBatch], [Result_16], []),
424
468
  'isUser' : IDL.Func([IDL.Principal], [IDL.Bool], ['query']),
425
- 'leaseDemoDriverCanister' : IDL.Func([], [Result_14], []),
426
- 'listBlocks' : IDL.Func([PageArgs], [Result_13], ['query']),
427
- 'listDriverCanisters' : IDL.Func([PageArgs], [Result_12], ['query']),
428
- 'listDriverFeeAccounts' : IDL.Func([PageArgs], [Result_11], ['query']),
429
- 'listDriverRooms' : IDL.Func([PageArgs], [Result_10], ['query']),
430
- 'newClaimCode' : IDL.Func([], [Result_9], []),
431
- 'payDriverFee' : IDL.Func([FeePayArgs], [Result_8], []),
432
- 'rateMyRide' : IDL.Func([RateRideArgs], [Result_7], []),
469
+ 'leaseDemoDriverCanister' : IDL.Func([], [Result_15], []),
470
+ 'listBlocks' : IDL.Func([PageArgs], [Result_14], ['query']),
471
+ 'listDriverCanisters' : IDL.Func([PageArgs], [Result_13], ['query']),
472
+ 'listDriverFeeAccounts' : IDL.Func([PageArgs], [Result_12], ['query']),
473
+ 'listDriverRooms' : IDL.Func([PageArgs], [Result_11], ['query']),
474
+ 'newClaimCode' : IDL.Func([], [Result_10], []),
475
+ 'payDriverFee' : IDL.Func([FeePayArgs], [Result_9], []),
476
+ 'rateMyRide' : IDL.Func([RateRideArgs], [Result_8], []),
433
477
  'removeAdmin' : IDL.Func([PrincipalArgs], [Result_2], []),
434
478
  'resumeDriverRollout' : IDL.Func([], [Result_3], []),
435
- 'setChatConfig' : IDL.Func([ChatConfig], [Result_6], []),
479
+ 'setChatConfig' : IDL.Func([ChatConfig], [Result_7], []),
436
480
  'setClaimCodeTtl' : IDL.Func([ClaimTtlArgs], [Result], []),
481
+ 'setDemoDriverAutomat' : IDL.Func([DemoAutomatArgs], [Result_6], []),
437
482
  'setFeeRates' : IDL.Func([FeeRates], [Result_5], []),
438
483
  'setLoggingEnabled' : IDL.Func([IDL.Bool], [Result_2], []),
439
484
  'setLowCyclesBelow' : IDL.Func([IDL.Nat], [Result_2], []),