@jsm-mit/tigi-sharded-package 0.15.0 → 0.17.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.
package/README.md CHANGED
@@ -15,8 +15,9 @@ ride (Skąd, Dokąd) and the rating of a past ride from the history; 0.13.0 (202
15
15
  the map-routes ticket of a driver (`mapTicketAsyncUnsafe`); 0.14.0 (2026-11-07) adds the map
16
16
  group of the environment (`mapRoutesCoordinatorAsyncUnsafe`); 0.15.0 (2026-11-08) renames the map
17
17
  "pass" to "ticket" (`mapPassAsyncUnsafe` → `mapTicketAsyncUnsafe`, `MapTicketRequest`, `MapTicketView`,
18
- the field `ticket`), together with the map package 0.4. Version 0.1.0 was the first to
19
- publish.
18
+ the field `ticket`), together with the map package 0.4; 0.16.0 (2026-11-09) adds the
19
+ map-places ticket of a signed-in rider (`ProfilesActor.placesTicketAsyncUnsafe`,
20
+ `mapPlacesCoordinatorAsyncUnsafe`). Version 0.1.0 was the first to publish.
20
21
 
21
22
  ## The rider
22
23
 
@@ -180,6 +181,22 @@ const map = new MapRoutesClient({ coordinatorId: mapCoordinatorId!, identity, ti
180
181
  variant first (`"Blocked: …"`, `"RateLimited: …"`); no map group in this environment is
181
182
  `InvalidData`; somebody without a driver canister is refused at inspection.
182
183
 
184
+ The address search of a rider (map-places, core C-31 … C-33): the copy for signed-out users
185
+ answers without a ticket; while it does not serve (paused under load, or none), a signed-in
186
+ rider asks the Tigi core for a map-places ticket — any signed-in rider who is not blocked:
187
+
188
+ ```ts
189
+ import { MapPlacesClient } from "@jsm-mit/map-places-replicated-shards-package";
190
+
191
+ const profiles = new ProfilesActor(coordinatorId, identity, { host });
192
+ const placesCoordinatorId = await profiles.mapPlacesCoordinatorAsyncUnsafe(); // undefined: none here
193
+ const places = new MapPlacesClient({ coordinatorId: placesCoordinatorId!, identity, ticketProvider: (r) => profiles.placesTicketAsyncUnsafe(r) });
194
+ ```
195
+
196
+ - The same identity for the ticket and the queries; the same refusals as the map ticket
197
+ (`RemoteCanisterError`, `InvalidData`); an anonymous or blocked rider is refused at
198
+ inspection.
199
+
183
200
  The Test Manager (stage and the test modes): `TestManagerActor.hasSimulatedDriversAsyncUnsafe`,
184
201
  `spawnDriversAsyncUnsafe` (12 drivers), `setSpeedUpAsyncUnsafe(request, 10)` before choosing.
185
202
  Offers of the simulator have `simulated: true`.
@@ -202,7 +219,7 @@ npm run sync-declarations # after a change of a .did (`… protocol` for the pr
202
219
  ```
203
220
 
204
221
  The end-to-end suites run on the LOCAL replica only (`scripts/run-tests-local.sh`): a fresh
205
- group, local cycles, the driver and simulator wasms of `../../tigi-driver-rust` (built
222
+ group, local cycles, the driver and simulator wasms of `../../../tigi-driver/tigi-driver-rust` (built
206
223
  there, never changed). Logs and measurements go to `/tmp/claude-1000/tigi/`
207
224
  (`TEST_LOG_DIR`). The load test builds its group with its own coordinator
208
225
  (`tigi-sharded-coordinator-load`), so the shared local group stays; its settings are
@@ -212,7 +229,7 @@ environment variables (`scripts/load-local.ts`, `scripts/run-load-local.sh`).
212
229
 
213
230
  Human-run only: bump `version` in `package.json` by hand (do not commit it), then
214
231
  `npm run publish-public` on `master`. The script refuses unless this repo and
215
- `../../tigi-driver-rust` are both on a clean `master` equal to `origin/master`, the version is
232
+ `../../../tigi-driver/tigi-driver-rust` are both on a clean `master` equal to `origin/master`, the version is
216
233
  new on npm, the declarations match the current builds (core, worker, coordinator, protocol,
217
234
  simulator) and the smoke test passes on the LOCAL replica (`dfx start` first). It stamps
218
235
  `tigiSharded.commit` and `tigiDriverRust.commit` into `package.json`, publishes, then commits
@@ -48,9 +48,9 @@ type TigiCore =
48
48
  /// joins the next daily bill of the room's OWN driver canister as it is (the chat priced
49
49
  /// it; no multiplier). A pool canister's share and a room of no canister of the registry
50
50
  /// are absorbed (the coordinator keeps paying them). Once per `batchId`.
51
- addChatShares: (args: ChatSharesArgs) -> (Result_36);
51
+ addChatShares: (args: ChatSharesArgs) -> (Result_39);
52
52
  /// Admins: a canister the core controls joins the demo pool (U-35).
53
- addPoolCanister: (args: CanisterArgs) -> (Result_7);
53
+ addPoolCanister: (args: CanisterArgs) -> (Result_8);
54
54
  /// Admins: a driver canister, or one driver in it (`driverKey`), is blocked; the workers
55
55
  /// drop it at once (WO-2).
56
56
  blockDriver: (args: BlockDriverArgs) -> (Result_2);
@@ -59,26 +59,26 @@ type TigiCore =
59
59
  /// F-20 (U-45): the caller — the driver signed in on the canister's own front — takes
60
60
  /// over the demo canister with the code of the link. Single use, 15 min; every refusal
61
61
  /// answers the same NotAuthorized. The room of the canister gets the caller (C-15).
62
- claimDriverCanister: (args: ClaimArgs) -> (Result_7);
62
+ claimDriverCanister: (args: ClaimArgs) -> (Result_8);
63
63
  clearLogs: () -> ();
64
64
  /// Admins (F-24): the chunks become THE app; drivers' canisters take it at their "Aktualizuj".
65
- commitDriverApk: (args: ApkCommitArgs) -> (Result_35);
65
+ commitDriverApk: (args: ApkCommitArgs) -> (Result_38);
66
66
  /// Admins: the chunks become THE module of their kind. A new driver wasm is released
67
67
  /// (F-11) and its hash goes to the workers.
68
- commitDriverWasm: (args: WasmCommitArgs) -> (Result_34);
68
+ commitDriverWasm: (args: WasmCommitArgs) -> (Result_37);
69
69
  /// Admins, localTest: an empty canister from the core's cycles joins the demo pool.
70
- createLocalPoolCanister: () -> (Result_7);
71
- createMyDriverCanister: () -> (Result_7);
70
+ createLocalPoolCanister: () -> (Result_8);
71
+ createMyDriverCanister: () -> (Result_8);
72
72
  /// Admins: the simulator, created once (F-18).
73
- ensureSimulator: () -> (Result_33);
73
+ ensureSimulator: () -> (Result_36);
74
74
  /// F-8: 15 min more for the holder of a demo canister.
75
- extendDemoLease: () -> (Result_7);
76
- getAdmins: () -> (Result_32) query;
75
+ extendDemoLease: () -> (Result_8);
76
+ getAdmins: () -> (Result_35) query;
77
77
  /// For the fronts (through the package): where the chat of this environment is. Null =
78
78
  /// no chat here yet. The room of a driver is `ChatRoomFunctions.driverRoomId`.
79
79
  getChatConfig: () -> (opt ChatConfig) query;
80
80
  /// Admins: how far the driver rooms are (C-15).
81
- getChatRoomsStatus: () -> (Result_31) query;
81
+ getChatRoomsStatus: () -> (Result_34) query;
82
82
  /// F-24 (public): the current app — what a driver canister compares its own with.
83
83
  getDriverApk: () -> (opt ApkInfo) query;
84
84
  /// F-24 (public): one chunk of the current app; a driver canister reads them in order.
@@ -87,43 +87,45 @@ type TigiCore =
87
87
  getDriverCanisterStatus: (args: CanisterArgs) ->
88
88
  (DriverCanisterStatus) query;
89
89
  /// Admins: the account of one driver canister (C-17 … C-20).
90
- getDriverFeeAccount: (args: CanisterArgs) -> (Result_30) query;
90
+ getDriverFeeAccount: (args: CanisterArgs) -> (Result_33) query;
91
91
  /// C-19: a driver canister of the registry asks for its bill — the events since its
92
92
  /// last settlement, priced on the fee's day. Called by the canister at its first
93
93
  /// "Przyjmuję zlecenia" of a day. A pool canister owes nothing (C-18).
94
- getDriverFeeBill: () -> (Result_29);
94
+ getDriverFeeBill: () -> (Result_32);
95
95
  /// Admins (stage 7): the aggregated rating of one driver (sum and count of stars; null =
96
96
  /// no rating yet) — the value the workers get through the outbox (C-6).
97
- getDriverRating: (args: DriverRatingArgs) -> (Result_25) query;
98
- getDriverRollout: () -> (Result_28) query;
99
- getFactoryStatus: () -> (Result_27) query;
97
+ getDriverRating: (args: DriverRatingArgs) -> (Result_27) query;
98
+ getDriverRollout: () -> (Result_31) query;
99
+ getFactoryStatus: () -> (Result_30) query;
100
100
  /// C-22: the rates, the day, the multiplier cached, the totals.
101
- getFeeStatus: () -> (Result_26) query;
101
+ getFeeStatus: () -> (Result_29) query;
102
102
  getLogs: () -> (text) query;
103
+ getMapPlacesConfig: () -> (opt MapPlacesConfig) query;
103
104
  getMapRoutesConfig: () -> (opt MapRoutesConfig) query;
104
- /// The caller's own canister, or the demo canister the caller holds now.
105
- getMyDriverCanister: () -> (Result_7) query;
105
+ /// The caller's own canister, or the demo canister the caller holds now, or the canister
106
+ /// of the fleet the caller drives for (C-N12) — with the caller's place in the fleet.
107
+ getMyDriverCanister: () -> (Result_28) query;
106
108
  getMyProfile: () -> (Result_4) query;
107
109
  /// C-16, PF-4: the caller's own rating as a rider (sum and count of stars; null = no
108
110
  /// rating yet). Ratings reach the core in the workers' batches, up to a minute late.
109
- getMyRating: () -> (Result_25) query;
111
+ getMyRating: () -> (Result_27) query;
110
112
  /// C-8 (KU-4, stage 7): one line of the caller's history by its requestId — for the
111
113
  /// details screen after a reload and to show the rating after `rateMyRide`. Another
112
114
  /// rider's ride → `NotAuthorized`; not in the core (yet, K-9) → `NotFound`.
113
- getMyRide: (args: RequestIdArgs) -> (Result_24) query;
115
+ getMyRide: (args: RequestIdArgs) -> (Result_26) query;
114
116
  /// C-8: the caller's rides, newest first, with the places (KU-4) and whether the driver
115
117
  /// can still be rated (KU-5, C-23).
116
- getMyRides: (args: RidesPageArgs) -> (Result_23) query;
118
+ getMyRides: (args: RidesPageArgs) -> (Result_25) query;
117
119
  /// C-3: the names of up to MAX_PROFILES_PER_CALL principals; unknown ones are left out.
118
- getProfiles: (args: ProfilesArgs) -> (Result_22) query;
120
+ getProfiles: (args: ProfilesArgs) -> (Result_24) query;
119
121
  /// F-11: the driver wasms released so far, oldest first.
120
122
  getReleasedDriverWasms: () -> (vec ReleasedWasm) query;
121
123
  /// F-18: the simulator of this group; none in prod or before ensureSimulator.
122
124
  getSimulator: () -> (opt principal) query;
123
125
  /// Admins: the coordinator, the workers confirmed so far, the mode.
124
- getWiring: () -> (Result_21) query;
126
+ getWiring: () -> (Result_23) query;
125
127
  /// Admins: how far the outbox to the workers is (C-6, C-7).
126
- getWorkerOutbox: () -> (Result_20) query;
128
+ getWorkerOutbox: () -> (Result_22) query;
127
129
  /// Workers of the group: the core asks the coordinator once and remembers the worker,
128
130
  /// which then gets the network state through the outbox. A worker calls it once after
129
131
  /// its install. Answers true.
@@ -131,20 +133,20 @@ type TigiCore =
131
133
  /// Workers of the group: finished rides and ratings, at most MAX_RIDE_BATCH (C-4, C-5).
132
134
  /// Idempotent: a known requestId and a counted rating count once. Invalid entries are
133
135
  /// rejected and logged; the worker drops the whole batch after an ok.
134
- ingestRideBatch: (batch: RideBatch) -> (Result_19);
136
+ ingestRideBatch: (batch: RideBatch) -> (Result_21);
135
137
  /// C-14: the accounts gate of the chat (U-43). The chat core asks this group's
136
138
  /// coordinator WHERE (`accountsCanisterFor` → this core) and asks here: true = an
137
139
  /// account with a name exists for the principal and the rider is not blocked.
138
140
  isUser: ("principal": principal) -> (bool) query;
139
141
  /// F-5 … F-7: a demo canister for 15 min (outside prod). A fresh lease comes with a
140
142
  /// one-time claim code (F-20, U-45).
141
- leaseDemoDriverCanister: () -> (Result_18);
142
- listBlocks: (args: PageArgs) -> (Result_17) query;
143
- listDriverCanisters: (args: PageArgs) -> (Result_16) query;
143
+ leaseDemoDriverCanister: () -> (Result_20);
144
+ listBlocks: (args: PageArgs) -> (Result_19) query;
145
+ listDriverCanisters: (args: PageArgs) -> (Result_18) query;
144
146
  /// Admins: the accounts, 100 a page at most.
145
- listDriverFeeAccounts: (args: PageArgs) -> (Result_15) query;
147
+ listDriverFeeAccounts: (args: PageArgs) -> (Result_17) query;
146
148
  /// Admins: the driver rooms as the core wants them, 100 a page at most.
147
- listDriverRooms: (args: PageArgs) -> (Result_14) query;
149
+ listDriverRooms: (args: PageArgs) -> (Result_16) query;
148
150
  /// C-29, C-30: the map ticket of the calling driver (own or demo driver canister, not
149
151
  /// blocked), for an area and a bbox. The core asks the map coordinator WHERE (once, kept)
150
152
  /// and that ticket core for the ticket of the caller; a failed call forgets the place and is
@@ -153,37 +155,48 @@ type TigiCore =
153
155
  mapTicket: (args: MapTicketArgs) -> (Result_13);
154
156
  /// F-20: a fresh claim code for the caller's running demo lease; the old one stops
155
157
  /// working.
156
- newClaimCode: () -> (Result_12);
158
+ newClaimCode: () -> (Result_15);
157
159
  /// C-20: the driver canister pays the bill of `day` with the cycles attached to this
158
160
  /// call. The core takes exactly the bill (the rest goes back), or nothing when less is
159
161
  /// attached (`FEE_SHORT`); a day paid already answers `accepted = 0`.
160
- payDriverFee: (args: FeePayArgs) -> (Result_11);
162
+ payDriverFee: (args: FeePayArgs) -> (Result_14);
163
+ /// C-32, C-33: the map-places ticket of the calling rider (signed in, not blocked) for an
164
+ /// area and a bbox — the search of Skąd / Dokąd while the copy of signed-out users does not
165
+ /// serve. As `mapTicket` (C-29): WHERE from the coordinator (kept), then the ticket core.
166
+ placesTicket: (args: MapTicketArgs) -> (Result_13);
167
+ /// C-N11 (D-32): a driver canister reports a driver of its fleet — joined or active again,
168
+ /// suspended, removed. Idempotent; the canister repeats it until it gets an answer. The
169
+ /// driver's room follows (C-N13).
170
+ putFleetDriver: (args: PutFleetDriverArgs) -> (Result_12);
161
171
  /// F-2 … F-4, F-10: the caller's own driver canister (localTest: from the core's cycles).
162
172
  /// F-1 (user 2026-10-31): what a driver canister costs now and the caller's account to pay to.
163
- quoteMyDriverCanister: () -> (Result_10);
173
+ quoteMyDriverCanister: () -> (Result_11);
164
174
  /// C-23 (KU-5, stage 7): the rider rates the driver of a finished ride from the history.
165
175
  /// Only the ride's rider; a completed ride within 24 h of its end (K-8); once per ride
166
176
  /// over both paths — a live rating through the worker and this one count once together
167
177
  /// (the first to reach the core). The driver's aggregate goes to the workers as a
168
178
  /// batch's does (C-6). Counted in the caller's `#account` pool.
169
- rateMyRide: (args: RateRideArgs) -> (Result_9);
179
+ rateMyRide: (args: RateRideArgs) -> (Result_10);
170
180
  removeAdmin: (args: PrincipalArgs) -> (Result_2);
171
181
  resumeDriverRollout: () -> (Result_3);
172
182
  /// Admins: the chat of this environment — the chat group's coordinator and the project
173
183
  /// (whose admin and accounts field are this group's coordinator). Every call sends every
174
184
  /// driver room again (a new project, a chat group set up again).
175
- setChatConfig: (args: ChatConfig) -> (Result_8);
185
+ setChatConfig: (args: ChatConfig) -> (Result_9);
176
186
  /// Admins, localTest only: new claim codes live this long (the local check of an
177
187
  /// expired code). Heap only: an upgrade brings back 15 min.
178
188
  setClaimCodeTtl: (args: ClaimTtlArgs) -> (Result);
179
189
  /// Admins (F-22, TIGI-DRIVER-MODES): the pool canister is installed again in the
180
190
  /// automat mode, driven by `automat` — the simulator's router on the droplet.
181
- setDemoDriverAutomat: (args: DemoAutomatArgs) -> (Result_7);
191
+ setDemoDriverAutomat: (args: DemoAutomatArgs) -> (Result_8);
182
192
  /// Admins: the cycles per event (C-18).
183
- setFeeRates: (rates: FeeRates) -> (Result_6);
193
+ setFeeRates: (rates: FeeRates) -> (Result_7);
184
194
  setLoggingEnabled: (enabled: bool) -> (Result_2);
185
195
  /// The coordinator only: the balance below which the core asks for cycles.
186
196
  setLowCyclesBelow: (value: nat) -> (Result_2);
197
+ /// C-31, admins: the map-places group of this environment (its coordinator). The Tigi
198
+ /// coordinator is the system there, as in map-routes (C-28).
199
+ setMapPlacesConfig: (args: MapPlacesConfig) -> (Result_6);
187
200
  /// C-28, admins: the map-routes group of this environment (its coordinator). The Tigi
188
201
  /// coordinator is the system there (`setSystem` in the map coordinator's front); the core
189
202
  /// names it in every `issueTicket` (C-29).
@@ -295,22 +308,22 @@ type RideBatch =
295
308
  type Result_9 =
296
309
  variant {
297
310
  err: Error;
298
- ok: RateRideOutcome;
311
+ ok: ChatConfig;
299
312
  };
300
313
  type Result_8 =
301
314
  variant {
302
315
  err: Error;
303
- ok: ChatConfig;
316
+ ok: DriverCanister;
304
317
  };
305
318
  type Result_7 =
306
319
  variant {
307
320
  err: Error;
308
- ok: DriverCanister;
321
+ ok: FeeRates;
309
322
  };
310
323
  type Result_6 =
311
324
  variant {
312
325
  err: Error;
313
- ok: FeeRates;
326
+ ok: MapPlacesConfig;
314
327
  };
315
328
  type Result_5 =
316
329
  variant {
@@ -322,92 +335,97 @@ type Result_4 =
322
335
  err: Error;
323
336
  ok: Profile;
324
337
  };
325
- type Result_36 =
338
+ type Result_39 =
326
339
  variant {
327
340
  err: Error;
328
341
  ok: ChatSharesAck;
329
342
  };
330
- type Result_35 =
343
+ type Result_38 =
331
344
  variant {
332
345
  err: Error;
333
346
  ok: ApkInfo;
334
347
  };
335
- type Result_34 =
348
+ type Result_37 =
336
349
  variant {
337
350
  err: Error;
338
351
  ok: WasmInfo;
339
352
  };
340
- type Result_33 =
353
+ type Result_36 =
341
354
  variant {
342
355
  err: Error;
343
356
  ok: principal;
344
357
  };
345
- type Result_32 =
358
+ type Result_35 =
346
359
  variant {
347
360
  err: Error;
348
361
  ok: vec principal;
349
362
  };
350
- type Result_31 =
363
+ type Result_34 =
351
364
  variant {
352
365
  err: Error;
353
366
  ok: ChatRoomsStatus;
354
367
  };
355
- type Result_30 =
368
+ type Result_33 =
356
369
  variant {
357
370
  err: Error;
358
371
  ok: DriverFeeAccountView;
359
372
  };
360
- type Result_3 =
361
- variant {
362
- err: Error;
363
- ok: RolloutView;
364
- };
365
- type Result_29 =
373
+ type Result_32 =
366
374
  variant {
367
375
  err: Error;
368
376
  ok: FeeBillAnswer;
369
377
  };
370
- type Result_28 =
378
+ type Result_31 =
371
379
  variant {
372
380
  err: Error;
373
381
  ok: opt RolloutView;
374
382
  };
375
- type Result_27 =
383
+ type Result_30 =
376
384
  variant {
377
385
  err: Error;
378
386
  ok: FactoryStatus;
379
387
  };
380
- type Result_26 =
388
+ type Result_3 =
389
+ variant {
390
+ err: Error;
391
+ ok: RolloutView;
392
+ };
393
+ type Result_29 =
381
394
  variant {
382
395
  err: Error;
383
396
  ok: FeeStatus;
384
397
  };
385
- type Result_25 =
398
+ type Result_28 =
399
+ variant {
400
+ err: Error;
401
+ ok: MyDriverCanister;
402
+ };
403
+ type Result_27 =
386
404
  variant {
387
405
  err: Error;
388
406
  ok: opt Rating;
389
407
  };
390
- type Result_24 =
408
+ type Result_26 =
391
409
  variant {
392
410
  err: Error;
393
411
  ok: RideView;
394
412
  };
395
- type Result_23 =
413
+ type Result_25 =
396
414
  variant {
397
415
  err: Error;
398
416
  ok: RidesPage;
399
417
  };
400
- type Result_22 =
418
+ type Result_24 =
401
419
  variant {
402
420
  err: Error;
403
421
  ok: vec ProfileEntry;
404
422
  };
405
- type Result_21 =
423
+ type Result_23 =
406
424
  variant {
407
425
  err: Error;
408
426
  ok: Wiring;
409
427
  };
410
- type Result_20 =
428
+ type Result_22 =
411
429
  variant {
412
430
  err: Error;
413
431
  ok:
@@ -418,6 +436,16 @@ type Result_20 =
418
436
  subjects: nat;
419
437
  };
420
438
  };
439
+ type Result_21 =
440
+ variant {
441
+ err: Error;
442
+ ok: RideBatchResult;
443
+ };
444
+ type Result_20 =
445
+ variant {
446
+ err: Error;
447
+ ok: LeaseAnswer;
448
+ };
421
449
  type Result_2 =
422
450
  variant {
423
451
  err: Error;
@@ -426,32 +454,32 @@ type Result_2 =
426
454
  type Result_19 =
427
455
  variant {
428
456
  err: Error;
429
- ok: RideBatchResult;
457
+ ok: vec Block;
430
458
  };
431
459
  type Result_18 =
432
460
  variant {
433
461
  err: Error;
434
- ok: LeaseAnswer;
462
+ ok: DriverCanistersPage;
435
463
  };
436
464
  type Result_17 =
437
465
  variant {
438
466
  err: Error;
439
- ok: vec Block;
467
+ ok: vec DriverFeeAccountView;
440
468
  };
441
469
  type Result_16 =
442
470
  variant {
443
471
  err: Error;
444
- ok: DriverCanistersPage;
472
+ ok: vec DriverRoomView;
445
473
  };
446
474
  type Result_15 =
447
475
  variant {
448
476
  err: Error;
449
- ok: vec DriverFeeAccountView;
477
+ ok: ClaimCode;
450
478
  };
451
479
  type Result_14 =
452
480
  variant {
453
481
  err: Error;
454
- ok: vec DriverRoomView;
482
+ ok: FeePaid;
455
483
  };
456
484
  type Result_13 =
457
485
  variant {
@@ -461,17 +489,17 @@ type Result_13 =
461
489
  type Result_12 =
462
490
  variant {
463
491
  err: Error;
464
- ok: ClaimCode;
492
+ ok: PutFleetDriverAck;
465
493
  };
466
494
  type Result_11 =
467
495
  variant {
468
496
  err: Error;
469
- ok: FeePaid;
497
+ ok: DriverCanisterQuote;
470
498
  };
471
499
  type Result_10 =
472
500
  variant {
473
501
  err: Error;
474
- ok: DriverCanisterQuote;
502
+ ok: RateRideOutcome;
475
503
  };
476
504
  type Result_1 =
477
505
  variant {
@@ -520,6 +548,13 @@ type RateRideArgs =
520
548
  requestId: text;
521
549
  stars: nat8;
522
550
  };
551
+ type PutFleetDriverArgs =
552
+ record {
553
+ change: FleetDriverChange;
554
+ driver: principal;
555
+ driverKey: text;
556
+ };
557
+ type PutFleetDriverAck = record {drivers: nat;};
523
558
  type ProfilesArgs = record {principals: vec principal;};
524
559
  type ProfileEntry =
525
560
  record {
@@ -538,6 +573,18 @@ type PageArgs =
538
573
  limit: nat;
539
574
  offset: nat;
540
575
  };
576
+ type MyDriverCanister =
577
+ record {
578
+ blocked: bool;
579
+ canister: principal;
580
+ createdAtNs: int;
581
+ fleet: opt FleetMembership;
582
+ installedAtNs: opt int;
583
+ kind: DriverCanisterKind;
584
+ leaseUntilNs: opt int;
585
+ moduleHash: opt blob;
586
+ owner: principal;
587
+ };
541
588
  type Money =
542
589
  record {
543
590
  amount: nat64;
@@ -564,6 +611,7 @@ type MapTicket =
564
611
  validUntilNs: nat64;
565
612
  };
566
613
  type MapRoutesConfig = record {coordinatorId: principal;};
614
+ type MapPlacesConfig = record {coordinatorId: principal;};
567
615
  type MapBbox =
568
616
  record {
569
617
  maxLat: float64;
@@ -599,6 +647,29 @@ type Geo =
599
647
  lat: float64;
600
648
  lng: float64;
601
649
  };
650
+ type FleetRole =
651
+ variant {
652
+ boss;
653
+ driver;
654
+ };
655
+ type FleetMembership =
656
+ record {
657
+ driverKey: text;
658
+ drives: bool;
659
+ role: FleetRole;
660
+ state: FleetDriverState;
661
+ };
662
+ type FleetDriverState =
663
+ variant {
664
+ active;
665
+ suspended;
666
+ };
667
+ type FleetDriverChange =
668
+ variant {
669
+ active;
670
+ removed;
671
+ suspended;
672
+ };
602
673
  type FeeUsage =
603
674
  record {
604
675
  quoteRequests: nat;