@jsm-mit/tigi-sharded-package 0.16.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 +2 -2
- package/declarations/core/core.did +116 -59
- package/declarations/core/core.did.d.ts +98 -57
- package/declarations/core/core.did.js +91 -55
- package/dist/actors/driver-canisters-actor.d.ts +9 -4
- package/dist/actors/driver-canisters-actor.d.ts.map +1 -1
- package/dist/actors/driver-canisters-actor.js +13 -1
- package/dist/interfaces.d.ts +14 -0
- package/dist/interfaces.d.ts.map +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -219,7 +219,7 @@ npm run sync-declarations # after a change of a .did (`… protocol` for the pr
|
|
|
219
219
|
```
|
|
220
220
|
|
|
221
221
|
The end-to-end suites run on the LOCAL replica only (`scripts/run-tests-local.sh`): a fresh
|
|
222
|
-
group, local cycles, the driver and simulator wasms of
|
|
222
|
+
group, local cycles, the driver and simulator wasms of `../../../tigi-driver/tigi-driver-rust` (built
|
|
223
223
|
there, never changed). Logs and measurements go to `/tmp/claude-1000/tigi/`
|
|
224
224
|
(`TEST_LOG_DIR`). The load test builds its group with its own coordinator
|
|
225
225
|
(`tigi-sharded-coordinator-load`), so the shared local group stays; its settings are
|
|
@@ -229,7 +229,7 @@ environment variables (`scripts/load-local.ts`, `scripts/run-load-local.sh`).
|
|
|
229
229
|
|
|
230
230
|
Human-run only: bump `version` in `package.json` by hand (do not commit it), then
|
|
231
231
|
`npm run publish-public` on `master`. The script refuses unless this repo and
|
|
232
|
-
|
|
232
|
+
`../../../tigi-driver/tigi-driver-rust` are both on a clean `master` equal to `origin/master`, the version is
|
|
233
233
|
new on npm, the declarations match the current builds (core, worker, coordinator, protocol,
|
|
234
234
|
simulator) and the smoke test passes on the LOCAL replica (`dfx start` first). It stamps
|
|
235
235
|
`tigiSharded.commit` and `tigiDriverRust.commit` into `package.json`, publishes, then commits
|
|
@@ -48,7 +48,7 @@ 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) -> (
|
|
51
|
+
addChatShares: (args: ChatSharesArgs) -> (Result_39);
|
|
52
52
|
/// Admins: a canister the core controls joins the demo pool (U-35).
|
|
53
53
|
addPoolCanister: (args: CanisterArgs) -> (Result_8);
|
|
54
54
|
/// Admins: a driver canister, or one driver in it (`driverKey`), is blocked; the workers
|
|
@@ -62,23 +62,23 @@ type TigiCore =
|
|
|
62
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) -> (
|
|
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) -> (
|
|
68
|
+
commitDriverWasm: (args: WasmCommitArgs) -> (Result_37);
|
|
69
69
|
/// Admins, localTest: an empty canister from the core's cycles joins the demo pool.
|
|
70
70
|
createLocalPoolCanister: () -> (Result_8);
|
|
71
71
|
createMyDriverCanister: () -> (Result_8);
|
|
72
72
|
/// Admins: the simulator, created once (F-18).
|
|
73
|
-
ensureSimulator: () -> (
|
|
73
|
+
ensureSimulator: () -> (Result_36);
|
|
74
74
|
/// F-8: 15 min more for the holder of a demo canister.
|
|
75
75
|
extendDemoLease: () -> (Result_8);
|
|
76
|
-
getAdmins: () -> (
|
|
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: () -> (
|
|
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,44 +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) -> (
|
|
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: () -> (
|
|
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) -> (
|
|
98
|
-
getDriverRollout: () -> (
|
|
99
|
-
getFactoryStatus: () -> (
|
|
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: () -> (
|
|
101
|
+
getFeeStatus: () -> (Result_29) query;
|
|
102
102
|
getLogs: () -> (text) query;
|
|
103
103
|
getMapPlacesConfig: () -> (opt MapPlacesConfig) query;
|
|
104
104
|
getMapRoutesConfig: () -> (opt MapRoutesConfig) query;
|
|
105
|
-
/// The caller's own canister, or the demo canister the caller holds now
|
|
106
|
-
|
|
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;
|
|
107
108
|
getMyProfile: () -> (Result_4) query;
|
|
108
109
|
/// C-16, PF-4: the caller's own rating as a rider (sum and count of stars; null = no
|
|
109
110
|
/// rating yet). Ratings reach the core in the workers' batches, up to a minute late.
|
|
110
|
-
getMyRating: () -> (
|
|
111
|
+
getMyRating: () -> (Result_27) query;
|
|
111
112
|
/// C-8 (KU-4, stage 7): one line of the caller's history by its requestId — for the
|
|
112
113
|
/// details screen after a reload and to show the rating after `rateMyRide`. Another
|
|
113
114
|
/// rider's ride → `NotAuthorized`; not in the core (yet, K-9) → `NotFound`.
|
|
114
|
-
getMyRide: (args: RequestIdArgs) -> (
|
|
115
|
+
getMyRide: (args: RequestIdArgs) -> (Result_26) query;
|
|
115
116
|
/// C-8: the caller's rides, newest first, with the places (KU-4) and whether the driver
|
|
116
117
|
/// can still be rated (KU-5, C-23).
|
|
117
|
-
getMyRides: (args: RidesPageArgs) -> (
|
|
118
|
+
getMyRides: (args: RidesPageArgs) -> (Result_25) query;
|
|
118
119
|
/// C-3: the names of up to MAX_PROFILES_PER_CALL principals; unknown ones are left out.
|
|
119
|
-
getProfiles: (args: ProfilesArgs) -> (
|
|
120
|
+
getProfiles: (args: ProfilesArgs) -> (Result_24) query;
|
|
120
121
|
/// F-11: the driver wasms released so far, oldest first.
|
|
121
122
|
getReleasedDriverWasms: () -> (vec ReleasedWasm) query;
|
|
122
123
|
/// F-18: the simulator of this group; none in prod or before ensureSimulator.
|
|
123
124
|
getSimulator: () -> (opt principal) query;
|
|
124
125
|
/// Admins: the coordinator, the workers confirmed so far, the mode.
|
|
125
|
-
getWiring: () -> (
|
|
126
|
+
getWiring: () -> (Result_23) query;
|
|
126
127
|
/// Admins: how far the outbox to the workers is (C-6, C-7).
|
|
127
|
-
getWorkerOutbox: () -> (
|
|
128
|
+
getWorkerOutbox: () -> (Result_22) query;
|
|
128
129
|
/// Workers of the group: the core asks the coordinator once and remembers the worker,
|
|
129
130
|
/// which then gets the network state through the outbox. A worker calls it once after
|
|
130
131
|
/// its install. Answers true.
|
|
@@ -132,37 +133,41 @@ type TigiCore =
|
|
|
132
133
|
/// Workers of the group: finished rides and ratings, at most MAX_RIDE_BATCH (C-4, C-5).
|
|
133
134
|
/// Idempotent: a known requestId and a counted rating count once. Invalid entries are
|
|
134
135
|
/// rejected and logged; the worker drops the whole batch after an ok.
|
|
135
|
-
ingestRideBatch: (batch: RideBatch) -> (
|
|
136
|
+
ingestRideBatch: (batch: RideBatch) -> (Result_21);
|
|
136
137
|
/// C-14: the accounts gate of the chat (U-43). The chat core asks this group's
|
|
137
138
|
/// coordinator WHERE (`accountsCanisterFor` → this core) and asks here: true = an
|
|
138
139
|
/// account with a name exists for the principal and the rider is not blocked.
|
|
139
140
|
isUser: ("principal": principal) -> (bool) query;
|
|
140
141
|
/// F-5 … F-7: a demo canister for 15 min (outside prod). A fresh lease comes with a
|
|
141
142
|
/// one-time claim code (F-20, U-45).
|
|
142
|
-
leaseDemoDriverCanister: () -> (
|
|
143
|
-
listBlocks: (args: PageArgs) -> (
|
|
144
|
-
listDriverCanisters: (args: PageArgs) -> (
|
|
143
|
+
leaseDemoDriverCanister: () -> (Result_20);
|
|
144
|
+
listBlocks: (args: PageArgs) -> (Result_19) query;
|
|
145
|
+
listDriverCanisters: (args: PageArgs) -> (Result_18) query;
|
|
145
146
|
/// Admins: the accounts, 100 a page at most.
|
|
146
|
-
listDriverFeeAccounts: (args: PageArgs) -> (
|
|
147
|
+
listDriverFeeAccounts: (args: PageArgs) -> (Result_17) query;
|
|
147
148
|
/// Admins: the driver rooms as the core wants them, 100 a page at most.
|
|
148
|
-
listDriverRooms: (args: PageArgs) -> (
|
|
149
|
+
listDriverRooms: (args: PageArgs) -> (Result_16) query;
|
|
149
150
|
/// C-29, C-30: the map ticket of the calling driver (own or demo driver canister, not
|
|
150
151
|
/// blocked), for an area and a bbox. The core asks the map coordinator WHERE (once, kept)
|
|
151
152
|
/// and that ticket core for the ticket of the caller; a failed call forgets the place and is
|
|
152
153
|
/// tried once more. A refusal of the map group comes back as `RemoteCanisterError` with
|
|
153
154
|
/// its variant first ("Blocked: …").
|
|
154
|
-
mapTicket: (args: MapTicketArgs) -> (
|
|
155
|
+
mapTicket: (args: MapTicketArgs) -> (Result_13);
|
|
155
156
|
/// F-20: a fresh claim code for the caller's running demo lease; the old one stops
|
|
156
157
|
/// working.
|
|
157
|
-
newClaimCode: () -> (
|
|
158
|
+
newClaimCode: () -> (Result_15);
|
|
158
159
|
/// C-20: the driver canister pays the bill of `day` with the cycles attached to this
|
|
159
160
|
/// call. The core takes exactly the bill (the rest goes back), or nothing when less is
|
|
160
161
|
/// attached (`FEE_SHORT`); a day paid already answers `accepted = 0`.
|
|
161
|
-
payDriverFee: (args: FeePayArgs) -> (
|
|
162
|
+
payDriverFee: (args: FeePayArgs) -> (Result_14);
|
|
162
163
|
/// C-32, C-33: the map-places ticket of the calling rider (signed in, not blocked) for an
|
|
163
164
|
/// area and a bbox — the search of Skąd / Dokąd while the copy of signed-out users does not
|
|
164
165
|
/// serve. As `mapTicket` (C-29): WHERE from the coordinator (kept), then the ticket core.
|
|
165
|
-
placesTicket: (args: MapTicketArgs) -> (
|
|
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);
|
|
166
171
|
/// F-2 … F-4, F-10: the caller's own driver canister (localTest: from the core's cycles).
|
|
167
172
|
/// F-1 (user 2026-10-31): what a driver canister costs now and the caller's account to pay to.
|
|
168
173
|
quoteMyDriverCanister: () -> (Result_11);
|
|
@@ -330,46 +335,56 @@ type Result_4 =
|
|
|
330
335
|
err: Error;
|
|
331
336
|
ok: Profile;
|
|
332
337
|
};
|
|
333
|
-
type
|
|
338
|
+
type Result_39 =
|
|
334
339
|
variant {
|
|
335
340
|
err: Error;
|
|
336
341
|
ok: ChatSharesAck;
|
|
337
342
|
};
|
|
338
|
-
type
|
|
343
|
+
type Result_38 =
|
|
339
344
|
variant {
|
|
340
345
|
err: Error;
|
|
341
346
|
ok: ApkInfo;
|
|
342
347
|
};
|
|
343
|
-
type
|
|
348
|
+
type Result_37 =
|
|
344
349
|
variant {
|
|
345
350
|
err: Error;
|
|
346
351
|
ok: WasmInfo;
|
|
347
352
|
};
|
|
348
|
-
type
|
|
353
|
+
type Result_36 =
|
|
349
354
|
variant {
|
|
350
355
|
err: Error;
|
|
351
356
|
ok: principal;
|
|
352
357
|
};
|
|
353
|
-
type
|
|
358
|
+
type Result_35 =
|
|
354
359
|
variant {
|
|
355
360
|
err: Error;
|
|
356
361
|
ok: vec principal;
|
|
357
362
|
};
|
|
358
|
-
type
|
|
363
|
+
type Result_34 =
|
|
359
364
|
variant {
|
|
360
365
|
err: Error;
|
|
361
366
|
ok: ChatRoomsStatus;
|
|
362
367
|
};
|
|
363
|
-
type
|
|
368
|
+
type Result_33 =
|
|
364
369
|
variant {
|
|
365
370
|
err: Error;
|
|
366
371
|
ok: DriverFeeAccountView;
|
|
367
372
|
};
|
|
368
|
-
type
|
|
373
|
+
type Result_32 =
|
|
369
374
|
variant {
|
|
370
375
|
err: Error;
|
|
371
376
|
ok: FeeBillAnswer;
|
|
372
377
|
};
|
|
378
|
+
type Result_31 =
|
|
379
|
+
variant {
|
|
380
|
+
err: Error;
|
|
381
|
+
ok: opt RolloutView;
|
|
382
|
+
};
|
|
383
|
+
type Result_30 =
|
|
384
|
+
variant {
|
|
385
|
+
err: Error;
|
|
386
|
+
ok: FactoryStatus;
|
|
387
|
+
};
|
|
373
388
|
type Result_3 =
|
|
374
389
|
variant {
|
|
375
390
|
err: Error;
|
|
@@ -378,44 +393,39 @@ type Result_3 =
|
|
|
378
393
|
type Result_29 =
|
|
379
394
|
variant {
|
|
380
395
|
err: Error;
|
|
381
|
-
ok:
|
|
396
|
+
ok: FeeStatus;
|
|
382
397
|
};
|
|
383
398
|
type Result_28 =
|
|
384
399
|
variant {
|
|
385
400
|
err: Error;
|
|
386
|
-
ok:
|
|
401
|
+
ok: MyDriverCanister;
|
|
387
402
|
};
|
|
388
403
|
type Result_27 =
|
|
389
|
-
variant {
|
|
390
|
-
err: Error;
|
|
391
|
-
ok: FeeStatus;
|
|
392
|
-
};
|
|
393
|
-
type Result_26 =
|
|
394
404
|
variant {
|
|
395
405
|
err: Error;
|
|
396
406
|
ok: opt Rating;
|
|
397
407
|
};
|
|
398
|
-
type
|
|
408
|
+
type Result_26 =
|
|
399
409
|
variant {
|
|
400
410
|
err: Error;
|
|
401
411
|
ok: RideView;
|
|
402
412
|
};
|
|
403
|
-
type
|
|
413
|
+
type Result_25 =
|
|
404
414
|
variant {
|
|
405
415
|
err: Error;
|
|
406
416
|
ok: RidesPage;
|
|
407
417
|
};
|
|
408
|
-
type
|
|
418
|
+
type Result_24 =
|
|
409
419
|
variant {
|
|
410
420
|
err: Error;
|
|
411
421
|
ok: vec ProfileEntry;
|
|
412
422
|
};
|
|
413
|
-
type
|
|
423
|
+
type Result_23 =
|
|
414
424
|
variant {
|
|
415
425
|
err: Error;
|
|
416
426
|
ok: Wiring;
|
|
417
427
|
};
|
|
418
|
-
type
|
|
428
|
+
type Result_22 =
|
|
419
429
|
variant {
|
|
420
430
|
err: Error;
|
|
421
431
|
ok:
|
|
@@ -426,11 +436,16 @@ type Result_21 =
|
|
|
426
436
|
subjects: nat;
|
|
427
437
|
};
|
|
428
438
|
};
|
|
429
|
-
type
|
|
439
|
+
type Result_21 =
|
|
430
440
|
variant {
|
|
431
441
|
err: Error;
|
|
432
442
|
ok: RideBatchResult;
|
|
433
443
|
};
|
|
444
|
+
type Result_20 =
|
|
445
|
+
variant {
|
|
446
|
+
err: Error;
|
|
447
|
+
ok: LeaseAnswer;
|
|
448
|
+
};
|
|
434
449
|
type Result_2 =
|
|
435
450
|
variant {
|
|
436
451
|
err: Error;
|
|
@@ -439,42 +454,42 @@ type Result_2 =
|
|
|
439
454
|
type Result_19 =
|
|
440
455
|
variant {
|
|
441
456
|
err: Error;
|
|
442
|
-
ok:
|
|
457
|
+
ok: vec Block;
|
|
443
458
|
};
|
|
444
459
|
type Result_18 =
|
|
445
460
|
variant {
|
|
446
461
|
err: Error;
|
|
447
|
-
ok:
|
|
462
|
+
ok: DriverCanistersPage;
|
|
448
463
|
};
|
|
449
464
|
type Result_17 =
|
|
450
465
|
variant {
|
|
451
466
|
err: Error;
|
|
452
|
-
ok:
|
|
467
|
+
ok: vec DriverFeeAccountView;
|
|
453
468
|
};
|
|
454
469
|
type Result_16 =
|
|
455
470
|
variant {
|
|
456
471
|
err: Error;
|
|
457
|
-
ok: vec
|
|
472
|
+
ok: vec DriverRoomView;
|
|
458
473
|
};
|
|
459
474
|
type Result_15 =
|
|
460
475
|
variant {
|
|
461
476
|
err: Error;
|
|
462
|
-
ok:
|
|
477
|
+
ok: ClaimCode;
|
|
463
478
|
};
|
|
464
479
|
type Result_14 =
|
|
465
480
|
variant {
|
|
466
481
|
err: Error;
|
|
467
|
-
ok:
|
|
482
|
+
ok: FeePaid;
|
|
468
483
|
};
|
|
469
484
|
type Result_13 =
|
|
470
485
|
variant {
|
|
471
486
|
err: Error;
|
|
472
|
-
ok:
|
|
487
|
+
ok: MapTicket;
|
|
473
488
|
};
|
|
474
489
|
type Result_12 =
|
|
475
490
|
variant {
|
|
476
491
|
err: Error;
|
|
477
|
-
ok:
|
|
492
|
+
ok: PutFleetDriverAck;
|
|
478
493
|
};
|
|
479
494
|
type Result_11 =
|
|
480
495
|
variant {
|
|
@@ -533,6 +548,13 @@ type RateRideArgs =
|
|
|
533
548
|
requestId: text;
|
|
534
549
|
stars: nat8;
|
|
535
550
|
};
|
|
551
|
+
type PutFleetDriverArgs =
|
|
552
|
+
record {
|
|
553
|
+
change: FleetDriverChange;
|
|
554
|
+
driver: principal;
|
|
555
|
+
driverKey: text;
|
|
556
|
+
};
|
|
557
|
+
type PutFleetDriverAck = record {drivers: nat;};
|
|
536
558
|
type ProfilesArgs = record {principals: vec principal;};
|
|
537
559
|
type ProfileEntry =
|
|
538
560
|
record {
|
|
@@ -551,6 +573,18 @@ type PageArgs =
|
|
|
551
573
|
limit: nat;
|
|
552
574
|
offset: nat;
|
|
553
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
|
+
};
|
|
554
588
|
type Money =
|
|
555
589
|
record {
|
|
556
590
|
amount: nat64;
|
|
@@ -613,6 +647,29 @@ type Geo =
|
|
|
613
647
|
lat: float64;
|
|
614
648
|
lng: float64;
|
|
615
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
|
+
};
|
|
616
673
|
type FeeUsage =
|
|
617
674
|
record {
|
|
618
675
|
quoteRequests: nat;
|
|
@@ -210,6 +210,19 @@ export interface FeeUsage {
|
|
|
210
210
|
'registrations' : bigint,
|
|
211
211
|
'rides' : bigint,
|
|
212
212
|
}
|
|
213
|
+
export type FleetDriverChange = { 'active' : null } |
|
|
214
|
+
{ 'suspended' : null } |
|
|
215
|
+
{ 'removed' : null };
|
|
216
|
+
export type FleetDriverState = { 'active' : null } |
|
|
217
|
+
{ 'suspended' : null };
|
|
218
|
+
export interface FleetMembership {
|
|
219
|
+
'role' : FleetRole,
|
|
220
|
+
'state' : FleetDriverState,
|
|
221
|
+
'driverKey' : string,
|
|
222
|
+
'drives' : boolean,
|
|
223
|
+
}
|
|
224
|
+
export type FleetRole = { 'boss' : null } |
|
|
225
|
+
{ 'driver' : null };
|
|
213
226
|
export interface Geo { 'lat' : number, 'lng' : number }
|
|
214
227
|
export interface InitArgs {
|
|
215
228
|
'mode' : Mode,
|
|
@@ -250,6 +263,17 @@ export type Mode = { 'localTest' : null } |
|
|
|
250
263
|
{ 'test' : null } |
|
|
251
264
|
{ 'stage' : null };
|
|
252
265
|
export interface Money { 'currency' : string, 'amount' : bigint }
|
|
266
|
+
export interface MyDriverCanister {
|
|
267
|
+
'fleet' : [] | [FleetMembership],
|
|
268
|
+
'moduleHash' : [] | [Uint8Array | number[]],
|
|
269
|
+
'owner' : Principal,
|
|
270
|
+
'blocked' : boolean,
|
|
271
|
+
'kind' : DriverCanisterKind,
|
|
272
|
+
'createdAtNs' : bigint,
|
|
273
|
+
'canister' : Principal,
|
|
274
|
+
'installedAtNs' : [] | [bigint],
|
|
275
|
+
'leaseUntilNs' : [] | [bigint],
|
|
276
|
+
}
|
|
253
277
|
export interface PageArgs { 'offset' : bigint, 'limit' : bigint }
|
|
254
278
|
export interface PrincipalArgs { 'principal' : Principal }
|
|
255
279
|
export interface Profile {
|
|
@@ -259,6 +283,12 @@ export interface Profile {
|
|
|
259
283
|
}
|
|
260
284
|
export interface ProfileEntry { 'principal' : Principal, 'name' : string }
|
|
261
285
|
export interface ProfilesArgs { 'principals' : Array<Principal> }
|
|
286
|
+
export interface PutFleetDriverAck { 'drivers' : bigint }
|
|
287
|
+
export interface PutFleetDriverArgs {
|
|
288
|
+
'driverKey' : string,
|
|
289
|
+
'change' : FleetDriverChange,
|
|
290
|
+
'driver' : Principal,
|
|
291
|
+
}
|
|
262
292
|
export interface RateRideArgs { 'requestId' : string, 'stars' : number }
|
|
263
293
|
export type RateRideOutcome = { 'notRatable' : string } |
|
|
264
294
|
{ 'rated' : null } |
|
|
@@ -288,27 +318,29 @@ export type Result_10 = { 'ok' : RateRideOutcome } |
|
|
|
288
318
|
{ 'err' : Error };
|
|
289
319
|
export type Result_11 = { 'ok' : DriverCanisterQuote } |
|
|
290
320
|
{ 'err' : Error };
|
|
291
|
-
export type Result_12 = { 'ok' :
|
|
321
|
+
export type Result_12 = { 'ok' : PutFleetDriverAck } |
|
|
292
322
|
{ 'err' : Error };
|
|
293
|
-
export type Result_13 = { 'ok' :
|
|
323
|
+
export type Result_13 = { 'ok' : MapTicket } |
|
|
294
324
|
{ 'err' : Error };
|
|
295
|
-
export type Result_14 = { 'ok' :
|
|
325
|
+
export type Result_14 = { 'ok' : FeePaid } |
|
|
296
326
|
{ 'err' : Error };
|
|
297
|
-
export type Result_15 = { 'ok' :
|
|
327
|
+
export type Result_15 = { 'ok' : ClaimCode } |
|
|
298
328
|
{ 'err' : Error };
|
|
299
|
-
export type Result_16 = { 'ok' : Array<
|
|
329
|
+
export type Result_16 = { 'ok' : Array<DriverRoomView> } |
|
|
300
330
|
{ 'err' : Error };
|
|
301
|
-
export type Result_17 = { 'ok' :
|
|
331
|
+
export type Result_17 = { 'ok' : Array<DriverFeeAccountView> } |
|
|
302
332
|
{ 'err' : Error };
|
|
303
|
-
export type Result_18 = { 'ok' :
|
|
333
|
+
export type Result_18 = { 'ok' : DriverCanistersPage } |
|
|
304
334
|
{ 'err' : Error };
|
|
305
|
-
export type Result_19 = { 'ok' :
|
|
335
|
+
export type Result_19 = { 'ok' : Array<Block> } |
|
|
306
336
|
{ 'err' : Error };
|
|
307
337
|
export type Result_2 = { 'ok' : boolean } |
|
|
308
338
|
{ 'err' : Error };
|
|
309
|
-
export type Result_20 = { 'ok' :
|
|
339
|
+
export type Result_20 = { 'ok' : LeaseAnswer } |
|
|
340
|
+
{ 'err' : Error };
|
|
341
|
+
export type Result_21 = { 'ok' : RideBatchResult } |
|
|
310
342
|
{ 'err' : Error };
|
|
311
|
-
export type
|
|
343
|
+
export type Result_22 = {
|
|
312
344
|
'ok' : {
|
|
313
345
|
'subjects' : bigint,
|
|
314
346
|
'headSeq' : bigint,
|
|
@@ -317,39 +349,41 @@ export type Result_21 = {
|
|
|
317
349
|
}
|
|
318
350
|
} |
|
|
319
351
|
{ 'err' : Error };
|
|
320
|
-
export type
|
|
352
|
+
export type Result_23 = { 'ok' : Wiring } |
|
|
321
353
|
{ 'err' : Error };
|
|
322
|
-
export type
|
|
354
|
+
export type Result_24 = { 'ok' : Array<ProfileEntry> } |
|
|
323
355
|
{ 'err' : Error };
|
|
324
|
-
export type
|
|
356
|
+
export type Result_25 = { 'ok' : RidesPage } |
|
|
325
357
|
{ 'err' : Error };
|
|
326
|
-
export type
|
|
358
|
+
export type Result_26 = { 'ok' : RideView } |
|
|
327
359
|
{ 'err' : Error };
|
|
328
|
-
export type
|
|
360
|
+
export type Result_27 = { 'ok' : [] | [Rating] } |
|
|
329
361
|
{ 'err' : Error };
|
|
330
|
-
export type
|
|
362
|
+
export type Result_28 = { 'ok' : MyDriverCanister } |
|
|
331
363
|
{ 'err' : Error };
|
|
332
|
-
export type
|
|
333
|
-
{ 'err' : Error };
|
|
334
|
-
export type Result_29 = { 'ok' : [] | [RolloutView] } |
|
|
364
|
+
export type Result_29 = { 'ok' : FeeStatus } |
|
|
335
365
|
{ 'err' : Error };
|
|
336
366
|
export type Result_3 = { 'ok' : RolloutView } |
|
|
337
367
|
{ 'err' : Error };
|
|
338
|
-
export type Result_30 = { 'ok' :
|
|
368
|
+
export type Result_30 = { 'ok' : FactoryStatus } |
|
|
369
|
+
{ 'err' : Error };
|
|
370
|
+
export type Result_31 = { 'ok' : [] | [RolloutView] } |
|
|
371
|
+
{ 'err' : Error };
|
|
372
|
+
export type Result_32 = { 'ok' : FeeBillAnswer } |
|
|
339
373
|
{ 'err' : Error };
|
|
340
|
-
export type
|
|
374
|
+
export type Result_33 = { 'ok' : DriverFeeAccountView } |
|
|
341
375
|
{ 'err' : Error };
|
|
342
|
-
export type
|
|
376
|
+
export type Result_34 = { 'ok' : ChatRoomsStatus } |
|
|
343
377
|
{ 'err' : Error };
|
|
344
|
-
export type
|
|
378
|
+
export type Result_35 = { 'ok' : Array<Principal> } |
|
|
345
379
|
{ 'err' : Error };
|
|
346
|
-
export type
|
|
380
|
+
export type Result_36 = { 'ok' : Principal } |
|
|
347
381
|
{ 'err' : Error };
|
|
348
|
-
export type
|
|
382
|
+
export type Result_37 = { 'ok' : WasmInfo } |
|
|
349
383
|
{ 'err' : Error };
|
|
350
|
-
export type
|
|
384
|
+
export type Result_38 = { 'ok' : ApkInfo } |
|
|
351
385
|
{ 'err' : Error };
|
|
352
|
-
export type
|
|
386
|
+
export type Result_39 = { 'ok' : ChatSharesAck } |
|
|
353
387
|
{ 'err' : Error };
|
|
354
388
|
export type Result_4 = { 'ok' : Profile } |
|
|
355
389
|
{ 'err' : Error };
|
|
@@ -445,7 +479,7 @@ export interface TigiCore {
|
|
|
445
479
|
* / it; no multiplier). A pool canister's share and a room of no canister of the registry
|
|
446
480
|
* / are absorbed (the coordinator keeps paying them). Once per `batchId`.
|
|
447
481
|
*/
|
|
448
|
-
'addChatShares' : ActorMethod<[ChatSharesArgs],
|
|
482
|
+
'addChatShares' : ActorMethod<[ChatSharesArgs], Result_39>,
|
|
449
483
|
/**
|
|
450
484
|
* / Admins: a canister the core controls joins the demo pool (U-35).
|
|
451
485
|
*/
|
|
@@ -469,12 +503,12 @@ export interface TigiCore {
|
|
|
469
503
|
/**
|
|
470
504
|
* / Admins (F-24): the chunks become THE app; drivers' canisters take it at their "Aktualizuj".
|
|
471
505
|
*/
|
|
472
|
-
'commitDriverApk' : ActorMethod<[ApkCommitArgs],
|
|
506
|
+
'commitDriverApk' : ActorMethod<[ApkCommitArgs], Result_38>,
|
|
473
507
|
/**
|
|
474
508
|
* / Admins: the chunks become THE module of their kind. A new driver wasm is released
|
|
475
509
|
* / (F-11) and its hash goes to the workers.
|
|
476
510
|
*/
|
|
477
|
-
'commitDriverWasm' : ActorMethod<[WasmCommitArgs],
|
|
511
|
+
'commitDriverWasm' : ActorMethod<[WasmCommitArgs], Result_37>,
|
|
478
512
|
/**
|
|
479
513
|
* / Admins, localTest: an empty canister from the core's cycles joins the demo pool.
|
|
480
514
|
*/
|
|
@@ -483,12 +517,12 @@ export interface TigiCore {
|
|
|
483
517
|
/**
|
|
484
518
|
* / Admins: the simulator, created once (F-18).
|
|
485
519
|
*/
|
|
486
|
-
'ensureSimulator' : ActorMethod<[],
|
|
520
|
+
'ensureSimulator' : ActorMethod<[], Result_36>,
|
|
487
521
|
/**
|
|
488
522
|
* / F-8: 15 min more for the holder of a demo canister.
|
|
489
523
|
*/
|
|
490
524
|
'extendDemoLease' : ActorMethod<[], Result_8>,
|
|
491
|
-
'getAdmins' : ActorMethod<[],
|
|
525
|
+
'getAdmins' : ActorMethod<[], Result_35>,
|
|
492
526
|
/**
|
|
493
527
|
* / For the fronts (through the package): where the chat of this environment is. Null =
|
|
494
528
|
* / no chat here yet. The room of a driver is `ChatRoomFunctions.driverRoomId`.
|
|
@@ -497,7 +531,7 @@ export interface TigiCore {
|
|
|
497
531
|
/**
|
|
498
532
|
* / Admins: how far the driver rooms are (C-15).
|
|
499
533
|
*/
|
|
500
|
-
'getChatRoomsStatus' : ActorMethod<[],
|
|
534
|
+
'getChatRoomsStatus' : ActorMethod<[], Result_34>,
|
|
501
535
|
/**
|
|
502
536
|
* / F-24 (public): the current app — what a driver canister compares its own with.
|
|
503
537
|
*/
|
|
@@ -513,52 +547,53 @@ export interface TigiCore {
|
|
|
513
547
|
/**
|
|
514
548
|
* / Admins: the account of one driver canister (C-17 … C-20).
|
|
515
549
|
*/
|
|
516
|
-
'getDriverFeeAccount' : ActorMethod<[CanisterArgs],
|
|
550
|
+
'getDriverFeeAccount' : ActorMethod<[CanisterArgs], Result_33>,
|
|
517
551
|
/**
|
|
518
552
|
* / C-19: a driver canister of the registry asks for its bill — the events since its
|
|
519
553
|
* / last settlement, priced on the fee's day. Called by the canister at its first
|
|
520
554
|
* / "Przyjmuję zlecenia" of a day. A pool canister owes nothing (C-18).
|
|
521
555
|
*/
|
|
522
|
-
'getDriverFeeBill' : ActorMethod<[],
|
|
556
|
+
'getDriverFeeBill' : ActorMethod<[], Result_32>,
|
|
523
557
|
/**
|
|
524
558
|
* / Admins (stage 7): the aggregated rating of one driver (sum and count of stars; null =
|
|
525
559
|
* / no rating yet) — the value the workers get through the outbox (C-6).
|
|
526
560
|
*/
|
|
527
|
-
'getDriverRating' : ActorMethod<[DriverRatingArgs],
|
|
528
|
-
'getDriverRollout' : ActorMethod<[],
|
|
529
|
-
'getFactoryStatus' : ActorMethod<[],
|
|
561
|
+
'getDriverRating' : ActorMethod<[DriverRatingArgs], Result_27>,
|
|
562
|
+
'getDriverRollout' : ActorMethod<[], Result_31>,
|
|
563
|
+
'getFactoryStatus' : ActorMethod<[], Result_30>,
|
|
530
564
|
/**
|
|
531
565
|
* / C-22: the rates, the day, the multiplier cached, the totals.
|
|
532
566
|
*/
|
|
533
|
-
'getFeeStatus' : ActorMethod<[],
|
|
567
|
+
'getFeeStatus' : ActorMethod<[], Result_29>,
|
|
534
568
|
'getLogs' : ActorMethod<[], string>,
|
|
535
569
|
'getMapPlacesConfig' : ActorMethod<[], [] | [MapPlacesConfig]>,
|
|
536
570
|
'getMapRoutesConfig' : ActorMethod<[], [] | [MapRoutesConfig]>,
|
|
537
571
|
/**
|
|
538
|
-
* / The caller's own canister, or the demo canister the caller holds now
|
|
572
|
+
* / The caller's own canister, or the demo canister the caller holds now, or the canister
|
|
573
|
+
* / of the fleet the caller drives for (C-N12) — with the caller's place in the fleet.
|
|
539
574
|
*/
|
|
540
|
-
'getMyDriverCanister' : ActorMethod<[],
|
|
575
|
+
'getMyDriverCanister' : ActorMethod<[], Result_28>,
|
|
541
576
|
'getMyProfile' : ActorMethod<[], Result_4>,
|
|
542
577
|
/**
|
|
543
578
|
* / C-16, PF-4: the caller's own rating as a rider (sum and count of stars; null = no
|
|
544
579
|
* / rating yet). Ratings reach the core in the workers' batches, up to a minute late.
|
|
545
580
|
*/
|
|
546
|
-
'getMyRating' : ActorMethod<[],
|
|
581
|
+
'getMyRating' : ActorMethod<[], Result_27>,
|
|
547
582
|
/**
|
|
548
583
|
* / C-8 (KU-4, stage 7): one line of the caller's history by its requestId — for the
|
|
549
584
|
* / details screen after a reload and to show the rating after `rateMyRide`. Another
|
|
550
585
|
* / rider's ride → `NotAuthorized`; not in the core (yet, K-9) → `NotFound`.
|
|
551
586
|
*/
|
|
552
|
-
'getMyRide' : ActorMethod<[RequestIdArgs],
|
|
587
|
+
'getMyRide' : ActorMethod<[RequestIdArgs], Result_26>,
|
|
553
588
|
/**
|
|
554
589
|
* / C-8: the caller's rides, newest first, with the places (KU-4) and whether the driver
|
|
555
590
|
* / can still be rated (KU-5, C-23).
|
|
556
591
|
*/
|
|
557
|
-
'getMyRides' : ActorMethod<[RidesPageArgs],
|
|
592
|
+
'getMyRides' : ActorMethod<[RidesPageArgs], Result_25>,
|
|
558
593
|
/**
|
|
559
594
|
* / C-3: the names of up to MAX_PROFILES_PER_CALL principals; unknown ones are left out.
|
|
560
595
|
*/
|
|
561
|
-
'getProfiles' : ActorMethod<[ProfilesArgs],
|
|
596
|
+
'getProfiles' : ActorMethod<[ProfilesArgs], Result_24>,
|
|
562
597
|
/**
|
|
563
598
|
* / F-11: the driver wasms released so far, oldest first.
|
|
564
599
|
*/
|
|
@@ -570,11 +605,11 @@ export interface TigiCore {
|
|
|
570
605
|
/**
|
|
571
606
|
* / Admins: the coordinator, the workers confirmed so far, the mode.
|
|
572
607
|
*/
|
|
573
|
-
'getWiring' : ActorMethod<[],
|
|
608
|
+
'getWiring' : ActorMethod<[], Result_23>,
|
|
574
609
|
/**
|
|
575
610
|
* / Admins: how far the outbox to the workers is (C-6, C-7).
|
|
576
611
|
*/
|
|
577
|
-
'getWorkerOutbox' : ActorMethod<[],
|
|
612
|
+
'getWorkerOutbox' : ActorMethod<[], Result_22>,
|
|
578
613
|
/**
|
|
579
614
|
* / Workers of the group: the core asks the coordinator once and remembers the worker,
|
|
580
615
|
* / which then gets the network state through the outbox. A worker calls it once after
|
|
@@ -586,7 +621,7 @@ export interface TigiCore {
|
|
|
586
621
|
* / Idempotent: a known requestId and a counted rating count once. Invalid entries are
|
|
587
622
|
* / rejected and logged; the worker drops the whole batch after an ok.
|
|
588
623
|
*/
|
|
589
|
-
'ingestRideBatch' : ActorMethod<[RideBatch],
|
|
624
|
+
'ingestRideBatch' : ActorMethod<[RideBatch], Result_21>,
|
|
590
625
|
/**
|
|
591
626
|
* / C-14: the accounts gate of the chat (U-43). The chat core asks this group's
|
|
592
627
|
* / coordinator WHERE (`accountsCanisterFor` → this core) and asks here: true = an
|
|
@@ -597,17 +632,17 @@ export interface TigiCore {
|
|
|
597
632
|
* / F-5 … F-7: a demo canister for 15 min (outside prod). A fresh lease comes with a
|
|
598
633
|
* / one-time claim code (F-20, U-45).
|
|
599
634
|
*/
|
|
600
|
-
'leaseDemoDriverCanister' : ActorMethod<[],
|
|
601
|
-
'listBlocks' : ActorMethod<[PageArgs],
|
|
602
|
-
'listDriverCanisters' : ActorMethod<[PageArgs],
|
|
635
|
+
'leaseDemoDriverCanister' : ActorMethod<[], Result_20>,
|
|
636
|
+
'listBlocks' : ActorMethod<[PageArgs], Result_19>,
|
|
637
|
+
'listDriverCanisters' : ActorMethod<[PageArgs], Result_18>,
|
|
603
638
|
/**
|
|
604
639
|
* / Admins: the accounts, 100 a page at most.
|
|
605
640
|
*/
|
|
606
|
-
'listDriverFeeAccounts' : ActorMethod<[PageArgs],
|
|
641
|
+
'listDriverFeeAccounts' : ActorMethod<[PageArgs], Result_17>,
|
|
607
642
|
/**
|
|
608
643
|
* / Admins: the driver rooms as the core wants them, 100 a page at most.
|
|
609
644
|
*/
|
|
610
|
-
'listDriverRooms' : ActorMethod<[PageArgs],
|
|
645
|
+
'listDriverRooms' : ActorMethod<[PageArgs], Result_16>,
|
|
611
646
|
/**
|
|
612
647
|
* / C-29, C-30: the map ticket of the calling driver (own or demo driver canister, not
|
|
613
648
|
* / blocked), for an area and a bbox. The core asks the map coordinator WHERE (once, kept)
|
|
@@ -615,24 +650,30 @@ export interface TigiCore {
|
|
|
615
650
|
* / tried once more. A refusal of the map group comes back as `RemoteCanisterError` with
|
|
616
651
|
* / its variant first ("Blocked: …").
|
|
617
652
|
*/
|
|
618
|
-
'mapTicket' : ActorMethod<[MapTicketArgs],
|
|
653
|
+
'mapTicket' : ActorMethod<[MapTicketArgs], Result_13>,
|
|
619
654
|
/**
|
|
620
655
|
* / F-20: a fresh claim code for the caller's running demo lease; the old one stops
|
|
621
656
|
* / working.
|
|
622
657
|
*/
|
|
623
|
-
'newClaimCode' : ActorMethod<[],
|
|
658
|
+
'newClaimCode' : ActorMethod<[], Result_15>,
|
|
624
659
|
/**
|
|
625
660
|
* / C-20: the driver canister pays the bill of `day` with the cycles attached to this
|
|
626
661
|
* / call. The core takes exactly the bill (the rest goes back), or nothing when less is
|
|
627
662
|
* / attached (`FEE_SHORT`); a day paid already answers `accepted = 0`.
|
|
628
663
|
*/
|
|
629
|
-
'payDriverFee' : ActorMethod<[FeePayArgs],
|
|
664
|
+
'payDriverFee' : ActorMethod<[FeePayArgs], Result_14>,
|
|
630
665
|
/**
|
|
631
666
|
* / C-32, C-33: the map-places ticket of the calling rider (signed in, not blocked) for an
|
|
632
667
|
* / area and a bbox — the search of Skąd / Dokąd while the copy of signed-out users does not
|
|
633
668
|
* / serve. As `mapTicket` (C-29): WHERE from the coordinator (kept), then the ticket core.
|
|
634
669
|
*/
|
|
635
|
-
'placesTicket' : ActorMethod<[MapTicketArgs],
|
|
670
|
+
'placesTicket' : ActorMethod<[MapTicketArgs], Result_13>,
|
|
671
|
+
/**
|
|
672
|
+
* / C-N11 (D-32): a driver canister reports a driver of its fleet — joined or active again,
|
|
673
|
+
* / suspended, removed. Idempotent; the canister repeats it until it gets an answer. The
|
|
674
|
+
* / driver's room follows (C-N13).
|
|
675
|
+
*/
|
|
676
|
+
'putFleetDriver' : ActorMethod<[PutFleetDriverArgs], Result_12>,
|
|
636
677
|
/**
|
|
637
678
|
* / F-2 … F-4, F-10: the caller's own driver canister (localTest: from the core's cycles).
|
|
638
679
|
* / F-1 (user 2026-10-31): what a driver canister costs now and the caller's account to pay to.
|
|
@@ -61,7 +61,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
61
61
|
'addedCycles' : IDL.Nat,
|
|
62
62
|
'unknown' : IDL.Nat,
|
|
63
63
|
});
|
|
64
|
-
const
|
|
64
|
+
const Result_39 = IDL.Variant({ 'ok' : ChatSharesAck, 'err' : Error });
|
|
65
65
|
const CanisterArgs = IDL.Record({ 'canister' : IDL.Principal });
|
|
66
66
|
const DriverCanisterKind = IDL.Variant({
|
|
67
67
|
'own' : IDL.Null,
|
|
@@ -105,7 +105,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
105
105
|
'versionCode' : IDL.Nat32,
|
|
106
106
|
'versionName' : IDL.Text,
|
|
107
107
|
});
|
|
108
|
-
const
|
|
108
|
+
const Result_38 = IDL.Variant({ 'ok' : ApkInfo, 'err' : Error });
|
|
109
109
|
const WasmKind = IDL.Variant({ 'simulator' : IDL.Null, 'driver' : IDL.Null });
|
|
110
110
|
const WasmCommitArgs = IDL.Record({
|
|
111
111
|
'sha256' : IDL.Vec(IDL.Nat8),
|
|
@@ -118,9 +118,9 @@ export const idlFactory = ({ IDL }) => {
|
|
|
118
118
|
'size' : IDL.Nat,
|
|
119
119
|
'committedAtNs' : IDL.Int,
|
|
120
120
|
});
|
|
121
|
-
const
|
|
122
|
-
const
|
|
123
|
-
const
|
|
121
|
+
const Result_37 = IDL.Variant({ 'ok' : WasmInfo, 'err' : Error });
|
|
122
|
+
const Result_36 = IDL.Variant({ 'ok' : IDL.Principal, 'err' : Error });
|
|
123
|
+
const Result_35 = IDL.Variant({
|
|
124
124
|
'ok' : IDL.Vec(IDL.Principal),
|
|
125
125
|
'err' : Error,
|
|
126
126
|
});
|
|
@@ -136,7 +136,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
136
136
|
'pendingSinceNs' : IDL.Opt(IDL.Int),
|
|
137
137
|
'rooms' : IDL.Nat,
|
|
138
138
|
});
|
|
139
|
-
const
|
|
139
|
+
const Result_34 = IDL.Variant({ 'ok' : ChatRoomsStatus, 'err' : Error });
|
|
140
140
|
const DriverCanisterStatus = IDL.Record({
|
|
141
141
|
'moduleHash' : IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
142
142
|
'blocked' : IDL.Bool,
|
|
@@ -180,7 +180,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
180
180
|
'paidTotal' : IDL.Nat,
|
|
181
181
|
'lastFee' : IDL.Opt(FeeRecord),
|
|
182
182
|
});
|
|
183
|
-
const
|
|
183
|
+
const Result_33 = IDL.Variant({ 'ok' : DriverFeeAccountView, 'err' : Error });
|
|
184
184
|
const FeeBillAnswer = IDL.Record({
|
|
185
185
|
'day' : IDL.Nat,
|
|
186
186
|
'settled' : IDL.Bool,
|
|
@@ -190,14 +190,14 @@ export const idlFactory = ({ IDL }) => {
|
|
|
190
190
|
'multiplierPermille' : IDL.Nat,
|
|
191
191
|
'rates' : FeeRates,
|
|
192
192
|
});
|
|
193
|
-
const
|
|
193
|
+
const Result_32 = IDL.Variant({ 'ok' : FeeBillAnswer, 'err' : Error });
|
|
194
194
|
const DriverRatingArgs = IDL.Record({
|
|
195
195
|
'driverKey' : IDL.Text,
|
|
196
196
|
'canister' : IDL.Principal,
|
|
197
197
|
});
|
|
198
198
|
const Rating = IDL.Record({ 'sum' : IDL.Nat, 'count' : IDL.Nat });
|
|
199
|
-
const
|
|
200
|
-
const
|
|
199
|
+
const Result_27 = IDL.Variant({ 'ok' : IDL.Opt(Rating), 'err' : Error });
|
|
200
|
+
const Result_31 = IDL.Variant({ 'ok' : IDL.Opt(RolloutView), 'err' : Error });
|
|
201
201
|
const FactoryStatus = IDL.Record({
|
|
202
202
|
'simulator' : IDL.Opt(IDL.Principal),
|
|
203
203
|
'mode' : Mode,
|
|
@@ -209,7 +209,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
209
209
|
'driverWasm' : IDL.Opt(WasmInfo),
|
|
210
210
|
'registered' : IDL.Nat,
|
|
211
211
|
});
|
|
212
|
-
const
|
|
212
|
+
const Result_30 = IDL.Variant({ 'ok' : FactoryStatus, 'err' : Error });
|
|
213
213
|
const FeeStatus = IDL.Record({
|
|
214
214
|
'multiplier' : IDL.Opt(
|
|
215
215
|
IDL.Record({ 'day' : IDL.Nat, 'permille' : IDL.Nat })
|
|
@@ -229,9 +229,32 @@ export const idlFactory = ({ IDL }) => {
|
|
|
229
229
|
'paidTotal' : IDL.Nat,
|
|
230
230
|
'rates' : FeeRates,
|
|
231
231
|
});
|
|
232
|
-
const
|
|
232
|
+
const Result_29 = IDL.Variant({ 'ok' : FeeStatus, 'err' : Error });
|
|
233
233
|
const MapPlacesConfig = IDL.Record({ 'coordinatorId' : IDL.Principal });
|
|
234
234
|
const MapRoutesConfig = IDL.Record({ 'coordinatorId' : IDL.Principal });
|
|
235
|
+
const FleetRole = IDL.Variant({ 'boss' : IDL.Null, 'driver' : IDL.Null });
|
|
236
|
+
const FleetDriverState = IDL.Variant({
|
|
237
|
+
'active' : IDL.Null,
|
|
238
|
+
'suspended' : IDL.Null,
|
|
239
|
+
});
|
|
240
|
+
const FleetMembership = IDL.Record({
|
|
241
|
+
'role' : FleetRole,
|
|
242
|
+
'state' : FleetDriverState,
|
|
243
|
+
'driverKey' : IDL.Text,
|
|
244
|
+
'drives' : IDL.Bool,
|
|
245
|
+
});
|
|
246
|
+
const MyDriverCanister = IDL.Record({
|
|
247
|
+
'fleet' : IDL.Opt(FleetMembership),
|
|
248
|
+
'moduleHash' : IDL.Opt(IDL.Vec(IDL.Nat8)),
|
|
249
|
+
'owner' : IDL.Principal,
|
|
250
|
+
'blocked' : IDL.Bool,
|
|
251
|
+
'kind' : DriverCanisterKind,
|
|
252
|
+
'createdAtNs' : IDL.Int,
|
|
253
|
+
'canister' : IDL.Principal,
|
|
254
|
+
'installedAtNs' : IDL.Opt(IDL.Int),
|
|
255
|
+
'leaseUntilNs' : IDL.Opt(IDL.Int),
|
|
256
|
+
});
|
|
257
|
+
const Result_28 = IDL.Variant({ 'ok' : MyDriverCanister, 'err' : Error });
|
|
235
258
|
const Profile = IDL.Record({
|
|
236
259
|
'updatedAtNs' : IDL.Int,
|
|
237
260
|
'name' : IDL.Text,
|
|
@@ -259,7 +282,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
259
282
|
'rider' : IDL.Principal,
|
|
260
283
|
'myRating' : IDL.Opt(IDL.Nat8),
|
|
261
284
|
});
|
|
262
|
-
const
|
|
285
|
+
const Result_26 = IDL.Variant({ 'ok' : RideView, 'err' : Error });
|
|
263
286
|
const RidesPageArgs = IDL.Record({
|
|
264
287
|
'beforeIndex' : IDL.Opt(IDL.Nat),
|
|
265
288
|
'limit' : IDL.Nat,
|
|
@@ -268,13 +291,13 @@ export const idlFactory = ({ IDL }) => {
|
|
|
268
291
|
'nextBeforeIndex' : IDL.Opt(IDL.Nat),
|
|
269
292
|
'rides' : IDL.Vec(RideView),
|
|
270
293
|
});
|
|
271
|
-
const
|
|
294
|
+
const Result_25 = IDL.Variant({ 'ok' : RidesPage, 'err' : Error });
|
|
272
295
|
const ProfilesArgs = IDL.Record({ 'principals' : IDL.Vec(IDL.Principal) });
|
|
273
296
|
const ProfileEntry = IDL.Record({
|
|
274
297
|
'principal' : IDL.Principal,
|
|
275
298
|
'name' : IDL.Text,
|
|
276
299
|
});
|
|
277
|
-
const
|
|
300
|
+
const Result_24 = IDL.Variant({
|
|
278
301
|
'ok' : IDL.Vec(ProfileEntry),
|
|
279
302
|
'err' : Error,
|
|
280
303
|
});
|
|
@@ -288,8 +311,8 @@ export const idlFactory = ({ IDL }) => {
|
|
|
288
311
|
'knownWorkers' : IDL.Vec(IDL.Principal),
|
|
289
312
|
'coordinator' : IDL.Opt(IDL.Principal),
|
|
290
313
|
});
|
|
291
|
-
const
|
|
292
|
-
const
|
|
314
|
+
const Result_23 = IDL.Variant({ 'ok' : Wiring, 'err' : Error });
|
|
315
|
+
const Result_22 = IDL.Variant({
|
|
293
316
|
'ok' : IDL.Record({
|
|
294
317
|
'subjects' : IDL.Nat,
|
|
295
318
|
'headSeq' : IDL.Nat64,
|
|
@@ -342,7 +365,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
342
365
|
'rejected' : IDL.Nat,
|
|
343
366
|
'ratingsCounted' : IDL.Nat,
|
|
344
367
|
});
|
|
345
|
-
const
|
|
368
|
+
const Result_21 = IDL.Variant({ 'ok' : RideBatchResult, 'err' : Error });
|
|
346
369
|
const ClaimCode = IDL.Record({
|
|
347
370
|
'expiresAtNs' : IDL.Int,
|
|
348
371
|
'code' : IDL.Text,
|
|
@@ -363,7 +386,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
363
386
|
'busy' : IDL.Record({ 'untilNs' : IDL.Int }),
|
|
364
387
|
'leased' : LeasedCanister,
|
|
365
388
|
});
|
|
366
|
-
const
|
|
389
|
+
const Result_20 = IDL.Variant({ 'ok' : LeaseAnswer, 'err' : Error });
|
|
367
390
|
const PageArgs = IDL.Record({ 'offset' : IDL.Nat, 'limit' : IDL.Nat });
|
|
368
391
|
const BlockTarget = IDL.Variant({
|
|
369
392
|
'driverCanister' : IDL.Principal,
|
|
@@ -379,13 +402,13 @@ export const idlFactory = ({ IDL }) => {
|
|
|
379
402
|
'target' : BlockTarget,
|
|
380
403
|
'reason' : IDL.Text,
|
|
381
404
|
});
|
|
382
|
-
const
|
|
405
|
+
const Result_19 = IDL.Variant({ 'ok' : IDL.Vec(Block), 'err' : Error });
|
|
383
406
|
const DriverCanistersPage = IDL.Record({
|
|
384
407
|
'total' : IDL.Nat,
|
|
385
408
|
'canisters' : IDL.Vec(DriverCanister),
|
|
386
409
|
});
|
|
387
|
-
const
|
|
388
|
-
const
|
|
410
|
+
const Result_18 = IDL.Variant({ 'ok' : DriverCanistersPage, 'err' : Error });
|
|
411
|
+
const Result_17 = IDL.Variant({
|
|
389
412
|
'ok' : IDL.Vec(DriverFeeAccountView),
|
|
390
413
|
'err' : Error,
|
|
391
414
|
});
|
|
@@ -397,7 +420,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
397
420
|
'roomId' : IDL.Text,
|
|
398
421
|
'synced' : IDL.Bool,
|
|
399
422
|
});
|
|
400
|
-
const
|
|
423
|
+
const Result_16 = IDL.Variant({
|
|
401
424
|
'ok' : IDL.Vec(DriverRoomView),
|
|
402
425
|
'err' : Error,
|
|
403
426
|
});
|
|
@@ -415,15 +438,27 @@ export const idlFactory = ({ IDL }) => {
|
|
|
415
438
|
'copy' : IDL.Principal,
|
|
416
439
|
'validUntilNs' : IDL.Nat64,
|
|
417
440
|
});
|
|
418
|
-
const
|
|
419
|
-
const
|
|
441
|
+
const Result_13 = IDL.Variant({ 'ok' : MapTicket, 'err' : Error });
|
|
442
|
+
const Result_15 = IDL.Variant({ 'ok' : ClaimCode, 'err' : Error });
|
|
420
443
|
const FeePayArgs = IDL.Record({ 'day' : IDL.Nat });
|
|
421
444
|
const FeePaid = IDL.Record({
|
|
422
445
|
'day' : IDL.Nat,
|
|
423
446
|
'accepted' : IDL.Nat,
|
|
424
447
|
'amount' : IDL.Nat,
|
|
425
448
|
});
|
|
426
|
-
const
|
|
449
|
+
const Result_14 = IDL.Variant({ 'ok' : FeePaid, 'err' : Error });
|
|
450
|
+
const FleetDriverChange = IDL.Variant({
|
|
451
|
+
'active' : IDL.Null,
|
|
452
|
+
'suspended' : IDL.Null,
|
|
453
|
+
'removed' : IDL.Null,
|
|
454
|
+
});
|
|
455
|
+
const PutFleetDriverArgs = IDL.Record({
|
|
456
|
+
'driverKey' : IDL.Text,
|
|
457
|
+
'change' : FleetDriverChange,
|
|
458
|
+
'driver' : IDL.Principal,
|
|
459
|
+
});
|
|
460
|
+
const PutFleetDriverAck = IDL.Record({ 'drivers' : IDL.Nat });
|
|
461
|
+
const Result_12 = IDL.Variant({ 'ok' : PutFleetDriverAck, 'err' : Error });
|
|
427
462
|
const DriverCanisterQuote = IDL.Record({
|
|
428
463
|
'accountId' : IDL.Vec(IDL.Nat8),
|
|
429
464
|
'minimumE8s' : IDL.Nat,
|
|
@@ -474,21 +509,21 @@ export const idlFactory = ({ IDL }) => {
|
|
|
474
509
|
const TigiCore = IDL.Service({
|
|
475
510
|
'abortDriverRollout' : IDL.Func([], [Result_3], []),
|
|
476
511
|
'addAdmin' : IDL.Func([PrincipalArgs], [Result_2], []),
|
|
477
|
-
'addChatShares' : IDL.Func([ChatSharesArgs], [
|
|
512
|
+
'addChatShares' : IDL.Func([ChatSharesArgs], [Result_39], []),
|
|
478
513
|
'addPoolCanister' : IDL.Func([CanisterArgs], [Result_8], []),
|
|
479
514
|
'blockDriver' : IDL.Func([BlockDriverArgs], [Result_2], []),
|
|
480
515
|
'blockRider' : IDL.Func([BlockRiderArgs], [Result_2], []),
|
|
481
516
|
'claimDriverCanister' : IDL.Func([ClaimArgs], [Result_8], []),
|
|
482
517
|
'clearLogs' : IDL.Func([], [], []),
|
|
483
|
-
'commitDriverApk' : IDL.Func([ApkCommitArgs], [
|
|
484
|
-
'commitDriverWasm' : IDL.Func([WasmCommitArgs], [
|
|
518
|
+
'commitDriverApk' : IDL.Func([ApkCommitArgs], [Result_38], []),
|
|
519
|
+
'commitDriverWasm' : IDL.Func([WasmCommitArgs], [Result_37], []),
|
|
485
520
|
'createLocalPoolCanister' : IDL.Func([], [Result_8], []),
|
|
486
521
|
'createMyDriverCanister' : IDL.Func([], [Result_8], []),
|
|
487
|
-
'ensureSimulator' : IDL.Func([], [
|
|
522
|
+
'ensureSimulator' : IDL.Func([], [Result_36], []),
|
|
488
523
|
'extendDemoLease' : IDL.Func([], [Result_8], []),
|
|
489
|
-
'getAdmins' : IDL.Func([], [
|
|
524
|
+
'getAdmins' : IDL.Func([], [Result_35], ['query']),
|
|
490
525
|
'getChatConfig' : IDL.Func([], [IDL.Opt(ChatConfig)], ['query']),
|
|
491
|
-
'getChatRoomsStatus' : IDL.Func([], [
|
|
526
|
+
'getChatRoomsStatus' : IDL.Func([], [Result_34], ['query']),
|
|
492
527
|
'getDriverApk' : IDL.Func([], [IDL.Opt(ApkInfo)], ['query']),
|
|
493
528
|
'getDriverApkChunk' : IDL.Func(
|
|
494
529
|
[IDL.Nat32],
|
|
@@ -500,37 +535,38 @@ export const idlFactory = ({ IDL }) => {
|
|
|
500
535
|
[DriverCanisterStatus],
|
|
501
536
|
['query'],
|
|
502
537
|
),
|
|
503
|
-
'getDriverFeeAccount' : IDL.Func([CanisterArgs], [
|
|
504
|
-
'getDriverFeeBill' : IDL.Func([], [
|
|
505
|
-
'getDriverRating' : IDL.Func([DriverRatingArgs], [
|
|
506
|
-
'getDriverRollout' : IDL.Func([], [
|
|
507
|
-
'getFactoryStatus' : IDL.Func([], [
|
|
508
|
-
'getFeeStatus' : IDL.Func([], [
|
|
538
|
+
'getDriverFeeAccount' : IDL.Func([CanisterArgs], [Result_33], ['query']),
|
|
539
|
+
'getDriverFeeBill' : IDL.Func([], [Result_32], []),
|
|
540
|
+
'getDriverRating' : IDL.Func([DriverRatingArgs], [Result_27], ['query']),
|
|
541
|
+
'getDriverRollout' : IDL.Func([], [Result_31], ['query']),
|
|
542
|
+
'getFactoryStatus' : IDL.Func([], [Result_30], ['query']),
|
|
543
|
+
'getFeeStatus' : IDL.Func([], [Result_29], ['query']),
|
|
509
544
|
'getLogs' : IDL.Func([], [IDL.Text], ['query']),
|
|
510
545
|
'getMapPlacesConfig' : IDL.Func([], [IDL.Opt(MapPlacesConfig)], ['query']),
|
|
511
546
|
'getMapRoutesConfig' : IDL.Func([], [IDL.Opt(MapRoutesConfig)], ['query']),
|
|
512
|
-
'getMyDriverCanister' : IDL.Func([], [
|
|
547
|
+
'getMyDriverCanister' : IDL.Func([], [Result_28], ['query']),
|
|
513
548
|
'getMyProfile' : IDL.Func([], [Result_4], ['query']),
|
|
514
|
-
'getMyRating' : IDL.Func([], [
|
|
515
|
-
'getMyRide' : IDL.Func([RequestIdArgs], [
|
|
516
|
-
'getMyRides' : IDL.Func([RidesPageArgs], [
|
|
517
|
-
'getProfiles' : IDL.Func([ProfilesArgs], [
|
|
549
|
+
'getMyRating' : IDL.Func([], [Result_27], ['query']),
|
|
550
|
+
'getMyRide' : IDL.Func([RequestIdArgs], [Result_26], ['query']),
|
|
551
|
+
'getMyRides' : IDL.Func([RidesPageArgs], [Result_25], ['query']),
|
|
552
|
+
'getProfiles' : IDL.Func([ProfilesArgs], [Result_24], ['query']),
|
|
518
553
|
'getReleasedDriverWasms' : IDL.Func([], [IDL.Vec(ReleasedWasm)], ['query']),
|
|
519
554
|
'getSimulator' : IDL.Func([], [IDL.Opt(IDL.Principal)], ['query']),
|
|
520
|
-
'getWiring' : IDL.Func([], [
|
|
521
|
-
'getWorkerOutbox' : IDL.Func([], [
|
|
555
|
+
'getWiring' : IDL.Func([], [Result_23], ['query']),
|
|
556
|
+
'getWorkerOutbox' : IDL.Func([], [Result_22], ['query']),
|
|
522
557
|
'helloFromWorker' : IDL.Func([], [Result_2], []),
|
|
523
|
-
'ingestRideBatch' : IDL.Func([RideBatch], [
|
|
558
|
+
'ingestRideBatch' : IDL.Func([RideBatch], [Result_21], []),
|
|
524
559
|
'isUser' : IDL.Func([IDL.Principal], [IDL.Bool], ['query']),
|
|
525
|
-
'leaseDemoDriverCanister' : IDL.Func([], [
|
|
526
|
-
'listBlocks' : IDL.Func([PageArgs], [
|
|
527
|
-
'listDriverCanisters' : IDL.Func([PageArgs], [
|
|
528
|
-
'listDriverFeeAccounts' : IDL.Func([PageArgs], [
|
|
529
|
-
'listDriverRooms' : IDL.Func([PageArgs], [
|
|
530
|
-
'mapTicket' : IDL.Func([MapTicketArgs], [
|
|
531
|
-
'newClaimCode' : IDL.Func([], [
|
|
532
|
-
'payDriverFee' : IDL.Func([FeePayArgs], [
|
|
533
|
-
'placesTicket' : IDL.Func([MapTicketArgs], [
|
|
560
|
+
'leaseDemoDriverCanister' : IDL.Func([], [Result_20], []),
|
|
561
|
+
'listBlocks' : IDL.Func([PageArgs], [Result_19], ['query']),
|
|
562
|
+
'listDriverCanisters' : IDL.Func([PageArgs], [Result_18], ['query']),
|
|
563
|
+
'listDriverFeeAccounts' : IDL.Func([PageArgs], [Result_17], ['query']),
|
|
564
|
+
'listDriverRooms' : IDL.Func([PageArgs], [Result_16], ['query']),
|
|
565
|
+
'mapTicket' : IDL.Func([MapTicketArgs], [Result_13], []),
|
|
566
|
+
'newClaimCode' : IDL.Func([], [Result_15], []),
|
|
567
|
+
'payDriverFee' : IDL.Func([FeePayArgs], [Result_14], []),
|
|
568
|
+
'placesTicket' : IDL.Func([MapTicketArgs], [Result_13], []),
|
|
569
|
+
'putFleetDriver' : IDL.Func([PutFleetDriverArgs], [Result_12], []),
|
|
534
570
|
'quoteMyDriverCanister' : IDL.Func([], [Result_11], []),
|
|
535
571
|
'rateMyRide' : IDL.Func([RateRideArgs], [Result_10], []),
|
|
536
572
|
'removeAdmin' : IDL.Func([PrincipalArgs], [Result_2], []),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Identity } from "@icp-sdk/core/agent";
|
|
2
|
-
import type { ClaimCode as CandidClaimCode, DriverCanister as CandidDriverCanister } from "../../declarations/core/core.did.js";
|
|
2
|
+
import type { ClaimCode as CandidClaimCode, DriverCanister as CandidDriverCanister, FleetMembership as CandidFleetMembership } from "../../declarations/core/core.did.js";
|
|
3
3
|
import { type GroupOptions } from "../group/canister-actor.js";
|
|
4
|
-
import type { ClaimCodeView, DemoLeaseView, DriverCanisterQuoteView, DriverCanisterView, MapTicketRequest, MapTicketView } from "../interfaces.js";
|
|
4
|
+
import type { ClaimCodeView, DemoLeaseView, DriverCanisterQuoteView, DriverCanisterView, FleetMembershipView, MapTicketRequest, MapTicketView } from "../interfaces.js";
|
|
5
5
|
/** The fragment key of a claim link: `https://<canister>.icp0.io/#claim=<code>`. */
|
|
6
6
|
export declare const CLAIM_FRAGMENT_KEY = "claim";
|
|
7
7
|
/** F-20a: a code is 32 characters of base64url; the core refuses more than this. */
|
|
@@ -18,7 +18,11 @@ export declare function claimLinkOf(canisterId: string, code: string, frontOrigi
|
|
|
18
18
|
*/
|
|
19
19
|
export declare function claimCodeOfHash(hash: string): string | undefined;
|
|
20
20
|
/** @internal */
|
|
21
|
-
export declare function driverCanisterOf(record: Pick<CandidDriverCanister, "canister" | "owner" | "kind" | "leaseUntilNs" | "blocked">
|
|
21
|
+
export declare function driverCanisterOf(record: Pick<CandidDriverCanister, "canister" | "owner" | "kind" | "leaseUntilNs" | "blocked"> & {
|
|
22
|
+
fleet?: [] | [CandidFleetMembership];
|
|
23
|
+
}): DriverCanisterView;
|
|
24
|
+
/** @internal C-N12 */
|
|
25
|
+
export declare function fleetMembershipOf(fleet: CandidFleetMembership): FleetMembershipView;
|
|
22
26
|
/** @internal */
|
|
23
27
|
export declare function claimCodeOf(claim: CandidClaimCode): ClaimCodeView;
|
|
24
28
|
export declare class DriverCanistersActor {
|
|
@@ -45,7 +49,8 @@ export declare class DriverCanistersActor {
|
|
|
45
49
|
extendDemoAsyncUnsafe(): Promise<DriverCanisterView>;
|
|
46
50
|
/**
|
|
47
51
|
* The caller's own driver canister, or the demo canister the caller holds now (as the
|
|
48
|
-
* lease holder — after a claim the canister's owner is the driver, `ownerPrincipal`)
|
|
52
|
+
* lease holder — after a claim the canister's owner is the driver, `ownerPrincipal`), or
|
|
53
|
+
* the canister of the fleet the caller drives for (C-N12; `fleet` says the role).
|
|
49
54
|
* @returns undefined when the caller has none
|
|
50
55
|
* @throws Error with message `CanisterError` — `NotAuthorized` (anonymous)
|
|
51
56
|
* @throws Error with message `CriticalCanisterError` — the core could not be reached
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"driver-canisters-actor.d.ts","sourceRoot":"","sources":["../../src/actors/driver-canisters-actor.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAEpD,OAAO,KAAK,EAAE,SAAS,IAAI,eAAe,EAAE,cAAc,IAAI,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;
|
|
1
|
+
{"version":3,"file":"driver-canisters-actor.d.ts","sourceRoot":"","sources":["../../src/actors/driver-canisters-actor.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAEpD,OAAO,KAAK,EAAE,SAAS,IAAI,eAAe,EAAE,cAAc,IAAI,oBAAoB,EAAE,eAAe,IAAI,qBAAqB,EAAE,MAAM,qCAAqC,CAAC;AAC1K,OAAO,EAAkD,KAAK,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAE/G,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAGxK,oFAAoF;AACpF,eAAO,MAAM,kBAAkB,UAAU,CAAC;AAE1C,oFAAoF;AACpF,eAAO,MAAM,oBAAoB,KAAK,CAAC;AAEvC;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,UAAU,EAAE,MAAM,EAAE,IAAI,EAAE,M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IAAI,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC;IAM3E;;;;;;;;;;;;;OAaG;IACU,oBAAoB,CAAC,OAAO,EAAE,gBAAgB,GAAG,OAAO,CAAC,aAAa,CAAC;CAGvF"}
|
|
@@ -49,12 +49,23 @@ export function claimCodeOfHash(hash) {
|
|
|
49
49
|
/** @internal */
|
|
50
50
|
export function driverCanisterOf(record) {
|
|
51
51
|
const until = record.leaseUntilNs[0];
|
|
52
|
+
const fleet = record.fleet?.[0];
|
|
52
53
|
return {
|
|
53
54
|
canisterId: record.canister.toText(),
|
|
54
55
|
kind: "pool" in record.kind ? "pool" : "own",
|
|
55
56
|
ownerPrincipal: record.owner.toText(),
|
|
56
57
|
leaseUntilMs: until === undefined ? undefined : msOf(BigInt(until)),
|
|
57
58
|
blocked: record.blocked,
|
|
59
|
+
...(fleet === undefined ? {} : { fleet: fleetMembershipOf(fleet) }),
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
/** @internal C-N12 */
|
|
63
|
+
export function fleetMembershipOf(fleet) {
|
|
64
|
+
return {
|
|
65
|
+
driverKey: fleet.driverKey,
|
|
66
|
+
role: "boss" in fleet.role ? "boss" : "driver",
|
|
67
|
+
state: "suspended" in fleet.state ? "suspended" : "active",
|
|
68
|
+
drives: fleet.drives,
|
|
58
69
|
};
|
|
59
70
|
}
|
|
60
71
|
/** @internal */
|
|
@@ -96,7 +107,8 @@ export class DriverCanistersActor {
|
|
|
96
107
|
}
|
|
97
108
|
/**
|
|
98
109
|
* The caller's own driver canister, or the demo canister the caller holds now (as the
|
|
99
|
-
* lease holder — after a claim the canister's owner is the driver, `ownerPrincipal`)
|
|
110
|
+
* lease holder — after a claim the canister's owner is the driver, `ownerPrincipal`), or
|
|
111
|
+
* the canister of the fleet the caller drives for (C-N12; `fleet` says the role).
|
|
100
112
|
* @returns undefined when the caller has none
|
|
101
113
|
* @throws Error with message `CanisterError` — `NotAuthorized` (anonymous)
|
|
102
114
|
* @throws Error with message `CriticalCanisterError` — the core could not be reached
|
package/dist/interfaces.d.ts
CHANGED
|
@@ -260,6 +260,20 @@ export interface DriverCanisterView {
|
|
|
260
260
|
/** A demo lease ends then (pool canisters). */
|
|
261
261
|
leaseUntilMs?: number;
|
|
262
262
|
blocked: boolean;
|
|
263
|
+
/**
|
|
264
|
+
* C-N12 (`getMineAsyncUnsafe` only): the caller's place in the fleet of this canister —
|
|
265
|
+
* the owner of an own canister is the `boss` (key ""); undefined for a demo or a bought
|
|
266
|
+
* canister seen from the rider's site.
|
|
267
|
+
*/
|
|
268
|
+
fleet?: FleetMembershipView;
|
|
269
|
+
}
|
|
270
|
+
/** C-N12: a fleet driver — the boss (the owner, key "") or one of its drivers. */
|
|
271
|
+
export interface FleetMembershipView {
|
|
272
|
+
driverKey: string;
|
|
273
|
+
role: "boss" | "driver";
|
|
274
|
+
state: "active" | "suspended";
|
|
275
|
+
/** In the fleet's registry: the boss only while it said "I drive" (D-35); a driver always. */
|
|
276
|
+
drives: boolean;
|
|
263
277
|
}
|
|
264
278
|
/** F-20: a one-time code that hands the demo canister to whoever claims it, until `expiresAtMs`. */
|
|
265
279
|
export interface ClaimCodeView {
|
package/dist/interfaces.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../src/interfaces.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACzD,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAEpC,YAAY,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAEpC,wEAAwE;AACxE,MAAM,WAAW,KAAK;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,MAAM,WAAW,GAAG,eAAe,GAAG,MAAM,GAAG,aAAa,GAAG,OAAO,CAAC;AAE7E,iFAAiF;AACjF,MAAM,WAAW,cAAc;I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CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;CACvB;AAED,qFAAqF;AACrF,MAAM,MAAM,aAAa,GAAG;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,QAAQ,EAAE,kBAAkB,CAAC;IAAC,KAAK,CAAC,EAAE,aAAa,CAAA;CAAE,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAAC;AAExI,sEAAsE;AACtE,MAAM,WAAW,WAAW;IACxB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;CAClB;AAED,wIAAwI;AACxI,MAAM,WAAW,gBAAgB;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,WAAW,CAAC;CACrB;AAED;;;;;GAKG;AACH,MAAM,WAAW,aAAa;IAC1B,MAAM,EAAE,UAAU,GAAG,MAAM,EAAE,CAAC;IAC9B,IAAI,EAAE,SAAS,CAAC;IAChB,YAAY,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,WAAW,CAAC;CACrB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jsm-mit/tigi-sharded-package",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.17.0",
|
|
4
4
|
"description": "The one package of the Tigi network group: takes the coordinator's id and hides the coordinator, the core and the workers — for a consumer the group is one canister; plus the rider's few driver-canister endpoints (U-14).",
|
|
5
5
|
"homepage": "https://github.com/JSM-Tigi/tigi-sharded/tree/master/package#readme",
|
|
6
6
|
"repository": {
|
|
@@ -61,11 +61,11 @@
|
|
|
61
61
|
"tigiSharded": {
|
|
62
62
|
"repo": "tigi-sharded",
|
|
63
63
|
"repoUrl": "https://github.com/JSM-Tigi/tigi-sharded",
|
|
64
|
-
"commit": "
|
|
64
|
+
"commit": "ab8222c13b3e1ce46678c4e68597c3d52ba57170"
|
|
65
65
|
},
|
|
66
66
|
"tigiDriverRust": {
|
|
67
67
|
"repo": "tigi-driver-rust",
|
|
68
68
|
"repoUrl": "https://github.com/JSM-Tigi/tigi-driver-rust",
|
|
69
|
-
"commit": "
|
|
69
|
+
"commit": "6359c22dbf23d217ca47a0660fa6b1a43dab73de"
|
|
70
70
|
}
|
|
71
71
|
}
|