@jsm-mit/tigi-sharded-package 0.12.0 → 0.14.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 +25 -2
- package/declarations/coordinator/coordinator.did +5 -0
- package/declarations/coordinator/coordinator.did.d.ts +7 -0
- package/declarations/coordinator/coordinator.did.js +1 -0
- package/declarations/core/core.did +115 -73
- package/declarations/core/core.did.d.ts +104 -70
- package/declarations/core/core.did.js +87 -67
- package/dist/actors/driver-canisters-actor.d.ts +23 -1
- package/dist/actors/driver-canisters-actor.d.ts.map +1 -1
- package/dist/actors/driver-canisters-actor.js +28 -1
- package/dist/interfaces.d.ts +25 -0
- package/dist/interfaces.d.ts.map +1 -1
- package/package.json +4 -3
package/README.md
CHANGED
|
@@ -11,8 +11,10 @@ rating and WHERE the chat with a driver is; 0.3.0 (U-45) adds `DriverCanistersAc
|
|
|
11
11
|
demo lease and the one-time claim code; 0.4.0 (route line, 2026-10-24) adds the driver's
|
|
12
12
|
route on the map — the line of a tapped offer, the line of the ride — and the exact pin of
|
|
13
13
|
an offer (`pinExact`); 0.5.0 (stage 7, ride history, 2026-10-24) adds the places of a past
|
|
14
|
-
ride (Skąd, Dokąd) and the rating of a past ride from the history
|
|
15
|
-
|
|
14
|
+
ride (Skąd, Dokąd) and the rating of a past ride from the history; 0.13.0 (2026-11-06) adds
|
|
15
|
+
the map-routes pass of a driver (`mapPassAsyncUnsafe`); 0.14.0 (2026-11-07) adds the map
|
|
16
|
+
group of the environment (`mapRoutesCoordinatorAsyncUnsafe`). Version 0.1.0 was the first to
|
|
17
|
+
publish.
|
|
16
18
|
|
|
17
19
|
## The rider
|
|
18
20
|
|
|
@@ -155,6 +157,27 @@ if (code) {
|
|
|
155
157
|
- The same holder leasing again (no reinstall) gets no code: `newClaimCodeAsyncUnsafe`.
|
|
156
158
|
- These views carry the driver canister's id: it is the driver's own address.
|
|
157
159
|
|
|
160
|
+
### The map-routes pass of a driver (0.13.0, C-29, C-30)
|
|
161
|
+
|
|
162
|
+
The routes come from the map-routes group (`@jsm-mit/map-routes-package` 0.2,
|
|
163
|
+
`MapRoutesClient`). Its replicated instances answer only with a pass, and the Tigi core
|
|
164
|
+
gives the pass to a driver: own, bought or leased driver canister, or a demo canister the
|
|
165
|
+
driver took over with a claim code (its owner on its own front). The answer has the shape of
|
|
166
|
+
`IssuedPass` of the map package, so it is its `passProvider` as it is:
|
|
167
|
+
|
|
168
|
+
```ts
|
|
169
|
+
import { MapRoutesClient } from "@jsm-mit/map-routes-package";
|
|
170
|
+
|
|
171
|
+
const canisters = new DriverCanistersActor(coordinatorId, identity, { host });
|
|
172
|
+
const mapCoordinatorId = await canisters.mapRoutesCoordinatorAsyncUnsafe(); // undefined: no map group here
|
|
173
|
+
const map = new MapRoutesClient({ coordinatorId: mapCoordinatorId!, identity, passProvider: (r) => canisters.mapPassAsyncUnsafe(r) });
|
|
174
|
+
```
|
|
175
|
+
|
|
176
|
+
- The driver queries the map with the SAME identity that asked for the pass.
|
|
177
|
+
- Refusals of the map group come back as `CanisterError` `RemoteCanisterError` with the
|
|
178
|
+
variant first (`"Blocked: …"`, `"RateLimited: …"`); no map group in this environment is
|
|
179
|
+
`InvalidData`; somebody without a driver canister is refused at inspection.
|
|
180
|
+
|
|
158
181
|
The Test Manager (stage and the test modes): `TestManagerActor.hasSimulatedDriversAsyncUnsafe`,
|
|
159
182
|
`spawnDriversAsyncUnsafe` (12 drivers), `setSpeedUpAsyncUnsafe(request, 10)` before choosing.
|
|
160
183
|
Offers of the simulator have `simulated: true`.
|
|
@@ -699,6 +699,11 @@ service : (InitArgs) -> {
|
|
|
699
699
|
// failed after the canister was made. Outside prod a reinstall: the same canister, fresh
|
|
700
700
|
// state, no create fee.
|
|
701
701
|
installWorker : (CanisterArgs) -> (Result_4);
|
|
702
|
+
// "Is this canister a core of your group?" — the pass core of the map-routes group asks once
|
|
703
|
+
// per unknown caller and remembers the answer: there the SYSTEM is this coordinator, and a
|
|
704
|
+
// core of Tigi names it when it asks for a driver's map pass (replicated-shards.md). One core
|
|
705
|
+
// today; the cores of a budded group later.
|
|
706
|
+
isGroupCore : (principal) -> (bool) query;
|
|
702
707
|
// "Is this canister one of your workers?" — the core asks once per unknown caller.
|
|
703
708
|
isWorker : (CanisterArgs) -> (bool) query;
|
|
704
709
|
// The dependents by name — for the handover.
|
|
@@ -1094,6 +1094,13 @@ export interface _SERVICE {
|
|
|
1094
1094
|
* state, no create fee.
|
|
1095
1095
|
*/
|
|
1096
1096
|
'installWorker' : ActorMethod<[CanisterArgs], Result_4>,
|
|
1097
|
+
/**
|
|
1098
|
+
* "Is this canister a core of your group?" — the pass core of the map-routes group asks once
|
|
1099
|
+
* per unknown caller and remembers the answer: there the SYSTEM is this coordinator, and a
|
|
1100
|
+
* core of Tigi names it when it asks for a driver's map pass (replicated-shards.md). One core
|
|
1101
|
+
* today; the cores of a budded group later.
|
|
1102
|
+
*/
|
|
1103
|
+
'isGroupCore' : ActorMethod<[Principal], boolean>,
|
|
1097
1104
|
/**
|
|
1098
1105
|
* "Is this canister one of your workers?" — the core asks once per unknown caller.
|
|
1099
1106
|
*/
|
|
@@ -454,6 +454,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
454
454
|
'injectWorkerTestLoad' : IDL.Func([InjectTestLoadArgs], [Result_11], []),
|
|
455
455
|
'installCore' : IDL.Func([], [Result_3], []),
|
|
456
456
|
'installWorker' : IDL.Func([CanisterArgs], [Result_4], []),
|
|
457
|
+
'isGroupCore' : IDL.Func([IDL.Principal], [IDL.Bool], ['query']),
|
|
457
458
|
'isWorker' : IDL.Func([CanisterArgs], [IDL.Bool], ['query']),
|
|
458
459
|
'listDependents' : IDL.Func([], [Dependents], ['query']),
|
|
459
460
|
'listWorkers' : IDL.Func([], [IDL.Vec(IDL.Principal)], ['query']),
|
|
@@ -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) -> (
|
|
51
|
+
addChatShares: (args: ChatSharesArgs) -> (Result_36);
|
|
52
52
|
/// Admins: a canister the core controls joins the demo pool (U-35).
|
|
53
|
-
addPoolCanister: (args: CanisterArgs) -> (
|
|
53
|
+
addPoolCanister: (args: CanisterArgs) -> (Result_7);
|
|
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) -> (
|
|
62
|
+
claimDriverCanister: (args: ClaimArgs) -> (Result_7);
|
|
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_35);
|
|
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_34);
|
|
69
69
|
/// Admins, localTest: an empty canister from the core's cycles joins the demo pool.
|
|
70
|
-
createLocalPoolCanister: () -> (
|
|
71
|
-
createMyDriverCanister: () -> (
|
|
70
|
+
createLocalPoolCanister: () -> (Result_7);
|
|
71
|
+
createMyDriverCanister: () -> (Result_7);
|
|
72
72
|
/// Admins: the simulator, created once (F-18).
|
|
73
|
-
ensureSimulator: () -> (
|
|
73
|
+
ensureSimulator: () -> (Result_33);
|
|
74
74
|
/// F-8: 15 min more for the holder of a demo canister.
|
|
75
|
-
extendDemoLease: () -> (
|
|
76
|
-
getAdmins: () -> (
|
|
75
|
+
extendDemoLease: () -> (Result_7);
|
|
76
|
+
getAdmins: () -> (Result_32) 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_31) 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,42 +87,43 @@ 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_30) 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_29);
|
|
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_25) query;
|
|
98
|
+
getDriverRollout: () -> (Result_28) query;
|
|
99
|
+
getFactoryStatus: () -> (Result_27) query;
|
|
100
100
|
/// C-22: the rates, the day, the multiplier cached, the totals.
|
|
101
|
-
getFeeStatus: () -> (
|
|
101
|
+
getFeeStatus: () -> (Result_26) query;
|
|
102
102
|
getLogs: () -> (text) query;
|
|
103
|
+
getMapRoutesConfig: () -> (opt MapRoutesConfig) query;
|
|
103
104
|
/// The caller's own canister, or the demo canister the caller holds now.
|
|
104
|
-
getMyDriverCanister: () -> (
|
|
105
|
+
getMyDriverCanister: () -> (Result_7) query;
|
|
105
106
|
getMyProfile: () -> (Result_4) query;
|
|
106
107
|
/// C-16, PF-4: the caller's own rating as a rider (sum and count of stars; null = no
|
|
107
108
|
/// rating yet). Ratings reach the core in the workers' batches, up to a minute late.
|
|
108
|
-
getMyRating: () -> (
|
|
109
|
+
getMyRating: () -> (Result_25) query;
|
|
109
110
|
/// C-8 (KU-4, stage 7): one line of the caller's history by its requestId — for the
|
|
110
111
|
/// details screen after a reload and to show the rating after `rateMyRide`. Another
|
|
111
112
|
/// rider's ride → `NotAuthorized`; not in the core (yet, K-9) → `NotFound`.
|
|
112
|
-
getMyRide: (args: RequestIdArgs) -> (
|
|
113
|
+
getMyRide: (args: RequestIdArgs) -> (Result_24) query;
|
|
113
114
|
/// C-8: the caller's rides, newest first, with the places (KU-4) and whether the driver
|
|
114
115
|
/// can still be rated (KU-5, C-23).
|
|
115
|
-
getMyRides: (args: RidesPageArgs) -> (
|
|
116
|
+
getMyRides: (args: RidesPageArgs) -> (Result_23) query;
|
|
116
117
|
/// C-3: the names of up to MAX_PROFILES_PER_CALL principals; unknown ones are left out.
|
|
117
|
-
getProfiles: (args: ProfilesArgs) -> (
|
|
118
|
+
getProfiles: (args: ProfilesArgs) -> (Result_22) query;
|
|
118
119
|
/// F-11: the driver wasms released so far, oldest first.
|
|
119
120
|
getReleasedDriverWasms: () -> (vec ReleasedWasm) query;
|
|
120
121
|
/// F-18: the simulator of this group; none in prod or before ensureSimulator.
|
|
121
122
|
getSimulator: () -> (opt principal) query;
|
|
122
123
|
/// Admins: the coordinator, the workers confirmed so far, the mode.
|
|
123
|
-
getWiring: () -> (
|
|
124
|
+
getWiring: () -> (Result_21) query;
|
|
124
125
|
/// Admins: how far the outbox to the workers is (C-6, C-7).
|
|
125
|
-
getWorkerOutbox: () -> (
|
|
126
|
+
getWorkerOutbox: () -> (Result_20) query;
|
|
126
127
|
/// Workers of the group: the core asks the coordinator once and remembers the worker,
|
|
127
128
|
/// which then gets the network state through the outbox. A worker calls it once after
|
|
128
129
|
/// its install. Answers true.
|
|
@@ -130,53 +131,63 @@ type TigiCore =
|
|
|
130
131
|
/// Workers of the group: finished rides and ratings, at most MAX_RIDE_BATCH (C-4, C-5).
|
|
131
132
|
/// Idempotent: a known requestId and a counted rating count once. Invalid entries are
|
|
132
133
|
/// rejected and logged; the worker drops the whole batch after an ok.
|
|
133
|
-
ingestRideBatch: (batch: RideBatch) -> (
|
|
134
|
+
ingestRideBatch: (batch: RideBatch) -> (Result_19);
|
|
134
135
|
/// C-14: the accounts gate of the chat (U-43). The chat core asks this group's
|
|
135
136
|
/// coordinator WHERE (`accountsCanisterFor` → this core) and asks here: true = an
|
|
136
137
|
/// account with a name exists for the principal and the rider is not blocked.
|
|
137
138
|
isUser: ("principal": principal) -> (bool) query;
|
|
138
139
|
/// F-5 … F-7: a demo canister for 15 min (outside prod). A fresh lease comes with a
|
|
139
140
|
/// one-time claim code (F-20, U-45).
|
|
140
|
-
leaseDemoDriverCanister: () -> (
|
|
141
|
-
listBlocks: (args: PageArgs) -> (
|
|
142
|
-
listDriverCanisters: (args: PageArgs) -> (
|
|
141
|
+
leaseDemoDriverCanister: () -> (Result_18);
|
|
142
|
+
listBlocks: (args: PageArgs) -> (Result_17) query;
|
|
143
|
+
listDriverCanisters: (args: PageArgs) -> (Result_16) query;
|
|
143
144
|
/// Admins: the accounts, 100 a page at most.
|
|
144
|
-
listDriverFeeAccounts: (args: PageArgs) -> (
|
|
145
|
+
listDriverFeeAccounts: (args: PageArgs) -> (Result_15) query;
|
|
145
146
|
/// Admins: the driver rooms as the core wants them, 100 a page at most.
|
|
146
|
-
listDriverRooms: (args: PageArgs) -> (
|
|
147
|
+
listDriverRooms: (args: PageArgs) -> (Result_14) query;
|
|
148
|
+
/// C-29, C-30: the map pass of the calling driver (own or demo driver canister, not
|
|
149
|
+
/// blocked), for an area and a bbox. The core asks the map coordinator WHERE (once, kept)
|
|
150
|
+
/// and that pass core for the pass of the caller; a failed call forgets the place and is
|
|
151
|
+
/// tried once more. A refusal of the map group comes back as `RemoteCanisterError` with
|
|
152
|
+
/// its variant first ("Blocked: …").
|
|
153
|
+
mapPass: (args: MapPassArgs) -> (Result_13);
|
|
147
154
|
/// F-20: a fresh claim code for the caller's running demo lease; the old one stops
|
|
148
155
|
/// working.
|
|
149
|
-
newClaimCode: () -> (
|
|
156
|
+
newClaimCode: () -> (Result_12);
|
|
150
157
|
/// C-20: the driver canister pays the bill of `day` with the cycles attached to this
|
|
151
158
|
/// call. The core takes exactly the bill (the rest goes back), or nothing when less is
|
|
152
159
|
/// attached (`FEE_SHORT`); a day paid already answers `accepted = 0`.
|
|
153
|
-
payDriverFee: (args: FeePayArgs) -> (
|
|
160
|
+
payDriverFee: (args: FeePayArgs) -> (Result_11);
|
|
154
161
|
/// F-2 … F-4, F-10: the caller's own driver canister (localTest: from the core's cycles).
|
|
155
162
|
/// F-1 (user 2026-10-31): what a driver canister costs now and the caller's account to pay to.
|
|
156
|
-
quoteMyDriverCanister: () -> (
|
|
163
|
+
quoteMyDriverCanister: () -> (Result_10);
|
|
157
164
|
/// C-23 (KU-5, stage 7): the rider rates the driver of a finished ride from the history.
|
|
158
165
|
/// Only the ride's rider; a completed ride within 24 h of its end (K-8); once per ride
|
|
159
166
|
/// over both paths — a live rating through the worker and this one count once together
|
|
160
167
|
/// (the first to reach the core). The driver's aggregate goes to the workers as a
|
|
161
168
|
/// batch's does (C-6). Counted in the caller's `#account` pool.
|
|
162
|
-
rateMyRide: (args: RateRideArgs) -> (
|
|
169
|
+
rateMyRide: (args: RateRideArgs) -> (Result_9);
|
|
163
170
|
removeAdmin: (args: PrincipalArgs) -> (Result_2);
|
|
164
171
|
resumeDriverRollout: () -> (Result_3);
|
|
165
172
|
/// Admins: the chat of this environment — the chat group's coordinator and the project
|
|
166
173
|
/// (whose admin and accounts field are this group's coordinator). Every call sends every
|
|
167
174
|
/// driver room again (a new project, a chat group set up again).
|
|
168
|
-
setChatConfig: (args: ChatConfig) -> (
|
|
175
|
+
setChatConfig: (args: ChatConfig) -> (Result_8);
|
|
169
176
|
/// Admins, localTest only: new claim codes live this long (the local check of an
|
|
170
177
|
/// expired code). Heap only: an upgrade brings back 15 min.
|
|
171
178
|
setClaimCodeTtl: (args: ClaimTtlArgs) -> (Result);
|
|
172
179
|
/// Admins (F-22, TIGI-DRIVER-MODES): the pool canister is installed again in the
|
|
173
180
|
/// automat mode, driven by `automat` — the simulator's router on the droplet.
|
|
174
|
-
setDemoDriverAutomat: (args: DemoAutomatArgs) -> (
|
|
181
|
+
setDemoDriverAutomat: (args: DemoAutomatArgs) -> (Result_7);
|
|
175
182
|
/// Admins: the cycles per event (C-18).
|
|
176
|
-
setFeeRates: (rates: FeeRates) -> (
|
|
183
|
+
setFeeRates: (rates: FeeRates) -> (Result_6);
|
|
177
184
|
setLoggingEnabled: (enabled: bool) -> (Result_2);
|
|
178
185
|
/// The coordinator only: the balance below which the core asks for cycles.
|
|
179
186
|
setLowCyclesBelow: (value: nat) -> (Result_2);
|
|
187
|
+
/// C-28, admins: the map-routes group of this environment (its coordinator). The Tigi
|
|
188
|
+
/// coordinator is the system there (`setSystem` in the map coordinator's front); the core
|
|
189
|
+
/// names it in every `issuePass` (C-29).
|
|
190
|
+
setMapRoutesConfig: (args: MapRoutesConfig) -> (Result_5);
|
|
180
191
|
setMyProfile: (args: SetProfileArgs) -> (Result_4);
|
|
181
192
|
/// F-21 (2026-10-24, route line): admins — the one principal that routes the simulator's
|
|
182
193
|
/// quotes (S-N13, a Node process like a driver's front); null removes it. The simulator
|
|
@@ -284,58 +295,68 @@ type RideBatch =
|
|
|
284
295
|
type Result_9 =
|
|
285
296
|
variant {
|
|
286
297
|
err: Error;
|
|
287
|
-
ok:
|
|
298
|
+
ok: RateRideOutcome;
|
|
288
299
|
};
|
|
289
300
|
type Result_8 =
|
|
290
301
|
variant {
|
|
291
302
|
err: Error;
|
|
292
|
-
ok:
|
|
303
|
+
ok: ChatConfig;
|
|
293
304
|
};
|
|
294
305
|
type Result_7 =
|
|
295
306
|
variant {
|
|
296
307
|
err: Error;
|
|
297
|
-
ok:
|
|
308
|
+
ok: DriverCanister;
|
|
298
309
|
};
|
|
299
310
|
type Result_6 =
|
|
300
311
|
variant {
|
|
301
312
|
err: Error;
|
|
302
|
-
ok:
|
|
313
|
+
ok: FeeRates;
|
|
303
314
|
};
|
|
304
315
|
type Result_5 =
|
|
305
316
|
variant {
|
|
306
317
|
err: Error;
|
|
307
|
-
ok:
|
|
318
|
+
ok: MapRoutesConfig;
|
|
308
319
|
};
|
|
309
320
|
type Result_4 =
|
|
310
321
|
variant {
|
|
311
322
|
err: Error;
|
|
312
323
|
ok: Profile;
|
|
313
324
|
};
|
|
314
|
-
type
|
|
325
|
+
type Result_36 =
|
|
315
326
|
variant {
|
|
316
327
|
err: Error;
|
|
317
328
|
ok: ChatSharesAck;
|
|
318
329
|
};
|
|
319
|
-
type
|
|
330
|
+
type Result_35 =
|
|
320
331
|
variant {
|
|
321
332
|
err: Error;
|
|
322
333
|
ok: ApkInfo;
|
|
323
334
|
};
|
|
324
|
-
type
|
|
335
|
+
type Result_34 =
|
|
325
336
|
variant {
|
|
326
337
|
err: Error;
|
|
327
338
|
ok: WasmInfo;
|
|
328
339
|
};
|
|
329
|
-
type
|
|
340
|
+
type Result_33 =
|
|
330
341
|
variant {
|
|
331
342
|
err: Error;
|
|
332
343
|
ok: principal;
|
|
333
344
|
};
|
|
334
|
-
type
|
|
345
|
+
type Result_32 =
|
|
335
346
|
variant {
|
|
336
347
|
err: Error;
|
|
337
348
|
ok: vec principal;
|
|
338
349
|
};
|
|
350
|
+
type Result_31 =
|
|
351
|
+
variant {
|
|
352
|
+
err: Error;
|
|
353
|
+
ok: ChatRoomsStatus;
|
|
354
|
+
};
|
|
355
|
+
type Result_30 =
|
|
356
|
+
variant {
|
|
357
|
+
err: Error;
|
|
358
|
+
ok: DriverFeeAccountView;
|
|
359
|
+
};
|
|
339
360
|
type Result_3 =
|
|
340
361
|
variant {
|
|
341
362
|
err: Error;
|
|
@@ -344,52 +365,58 @@ type Result_3 =
|
|
|
344
365
|
type Result_29 =
|
|
345
366
|
variant {
|
|
346
367
|
err: Error;
|
|
347
|
-
ok:
|
|
368
|
+
ok: FeeBillAnswer;
|
|
348
369
|
};
|
|
349
370
|
type Result_28 =
|
|
350
371
|
variant {
|
|
351
372
|
err: Error;
|
|
352
|
-
ok:
|
|
373
|
+
ok: opt RolloutView;
|
|
353
374
|
};
|
|
354
375
|
type Result_27 =
|
|
355
376
|
variant {
|
|
356
377
|
err: Error;
|
|
357
|
-
ok:
|
|
378
|
+
ok: FactoryStatus;
|
|
358
379
|
};
|
|
359
380
|
type Result_26 =
|
|
360
381
|
variant {
|
|
361
382
|
err: Error;
|
|
362
|
-
ok:
|
|
383
|
+
ok: FeeStatus;
|
|
363
384
|
};
|
|
364
385
|
type Result_25 =
|
|
365
386
|
variant {
|
|
366
387
|
err: Error;
|
|
367
|
-
ok:
|
|
388
|
+
ok: opt Rating;
|
|
368
389
|
};
|
|
369
390
|
type Result_24 =
|
|
370
391
|
variant {
|
|
371
392
|
err: Error;
|
|
372
|
-
ok:
|
|
393
|
+
ok: RideView;
|
|
373
394
|
};
|
|
374
395
|
type Result_23 =
|
|
375
396
|
variant {
|
|
376
397
|
err: Error;
|
|
377
|
-
ok:
|
|
398
|
+
ok: RidesPage;
|
|
378
399
|
};
|
|
379
400
|
type Result_22 =
|
|
380
401
|
variant {
|
|
381
402
|
err: Error;
|
|
382
|
-
ok:
|
|
403
|
+
ok: vec ProfileEntry;
|
|
383
404
|
};
|
|
384
405
|
type Result_21 =
|
|
385
406
|
variant {
|
|
386
407
|
err: Error;
|
|
387
|
-
ok:
|
|
408
|
+
ok: Wiring;
|
|
388
409
|
};
|
|
389
410
|
type Result_20 =
|
|
390
411
|
variant {
|
|
391
412
|
err: Error;
|
|
392
|
-
ok:
|
|
413
|
+
ok:
|
|
414
|
+
record {
|
|
415
|
+
headSeq: nat64;
|
|
416
|
+
laggingWorkers: nat;
|
|
417
|
+
lastError: opt text;
|
|
418
|
+
subjects: nat;
|
|
419
|
+
};
|
|
393
420
|
};
|
|
394
421
|
type Result_2 =
|
|
395
422
|
variant {
|
|
@@ -399,58 +426,52 @@ type Result_2 =
|
|
|
399
426
|
type Result_19 =
|
|
400
427
|
variant {
|
|
401
428
|
err: Error;
|
|
402
|
-
ok:
|
|
429
|
+
ok: RideBatchResult;
|
|
403
430
|
};
|
|
404
431
|
type Result_18 =
|
|
405
432
|
variant {
|
|
406
433
|
err: Error;
|
|
407
|
-
ok:
|
|
408
|
-
record {
|
|
409
|
-
headSeq: nat64;
|
|
410
|
-
laggingWorkers: nat;
|
|
411
|
-
lastError: opt text;
|
|
412
|
-
subjects: nat;
|
|
413
|
-
};
|
|
434
|
+
ok: LeaseAnswer;
|
|
414
435
|
};
|
|
415
436
|
type Result_17 =
|
|
416
437
|
variant {
|
|
417
438
|
err: Error;
|
|
418
|
-
ok:
|
|
439
|
+
ok: vec Block;
|
|
419
440
|
};
|
|
420
441
|
type Result_16 =
|
|
421
442
|
variant {
|
|
422
443
|
err: Error;
|
|
423
|
-
ok:
|
|
444
|
+
ok: DriverCanistersPage;
|
|
424
445
|
};
|
|
425
446
|
type Result_15 =
|
|
426
447
|
variant {
|
|
427
448
|
err: Error;
|
|
428
|
-
ok: vec
|
|
449
|
+
ok: vec DriverFeeAccountView;
|
|
429
450
|
};
|
|
430
451
|
type Result_14 =
|
|
431
452
|
variant {
|
|
432
453
|
err: Error;
|
|
433
|
-
ok:
|
|
454
|
+
ok: vec DriverRoomView;
|
|
434
455
|
};
|
|
435
456
|
type Result_13 =
|
|
436
457
|
variant {
|
|
437
458
|
err: Error;
|
|
438
|
-
ok:
|
|
459
|
+
ok: MapPass;
|
|
439
460
|
};
|
|
440
461
|
type Result_12 =
|
|
441
462
|
variant {
|
|
442
463
|
err: Error;
|
|
443
|
-
ok:
|
|
464
|
+
ok: ClaimCode;
|
|
444
465
|
};
|
|
445
466
|
type Result_11 =
|
|
446
467
|
variant {
|
|
447
468
|
err: Error;
|
|
448
|
-
ok:
|
|
469
|
+
ok: FeePaid;
|
|
449
470
|
};
|
|
450
471
|
type Result_10 =
|
|
451
472
|
variant {
|
|
452
473
|
err: Error;
|
|
453
|
-
ok:
|
|
474
|
+
ok: DriverCanisterQuote;
|
|
454
475
|
};
|
|
455
476
|
type Result_1 =
|
|
456
477
|
variant {
|
|
@@ -529,6 +550,27 @@ type Mode =
|
|
|
529
550
|
stage;
|
|
530
551
|
test;
|
|
531
552
|
};
|
|
553
|
+
type MapRoutesConfig = record {coordinatorId: principal;};
|
|
554
|
+
type MapPassArgs =
|
|
555
|
+
record {
|
|
556
|
+
area: text;
|
|
557
|
+
bbox: MapBbox;
|
|
558
|
+
};
|
|
559
|
+
type MapPass =
|
|
560
|
+
record {
|
|
561
|
+
area: text;
|
|
562
|
+
bbox: MapBbox;
|
|
563
|
+
copy: principal;
|
|
564
|
+
pass: blob;
|
|
565
|
+
validUntilNs: nat64;
|
|
566
|
+
};
|
|
567
|
+
type MapBbox =
|
|
568
|
+
record {
|
|
569
|
+
maxLat: float64;
|
|
570
|
+
maxLon: float64;
|
|
571
|
+
minLat: float64;
|
|
572
|
+
minLon: float64;
|
|
573
|
+
};
|
|
532
574
|
type LeasedCanister =
|
|
533
575
|
record {
|
|
534
576
|
blocked: bool;
|