@jsm-mit/tigi-sharded-package 0.12.0 → 0.13.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 +23 -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 +114 -73
- package/declarations/core/core.did.d.ts +103 -70
- package/declarations/core/core.did.js +87 -67
- package/dist/actors/driver-canisters-actor.d.ts +16 -1
- package/dist/actors/driver-canisters-actor.d.ts.map +1 -1
- package/dist/actors/driver-canisters-actor.js +17 -0
- 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,9 @@ 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
|
-
first to
|
|
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`). Version 0.1.0 was the first to
|
|
16
|
+
publish.
|
|
16
17
|
|
|
17
18
|
## The rider
|
|
18
19
|
|
|
@@ -155,6 +156,26 @@ if (code) {
|
|
|
155
156
|
- The same holder leasing again (no reinstall) gets no code: `newClaimCodeAsyncUnsafe`.
|
|
156
157
|
- These views carry the driver canister's id: it is the driver's own address.
|
|
157
158
|
|
|
159
|
+
### The map-routes pass of a driver (0.13.0, C-29, C-30)
|
|
160
|
+
|
|
161
|
+
The routes come from the map-routes group (`@jsm-mit/map-routes-package` 0.2,
|
|
162
|
+
`MapRoutesClient`). Its replicated instances answer only with a pass, and the Tigi core
|
|
163
|
+
gives the pass to a driver: own, bought or leased driver canister, or a demo canister the
|
|
164
|
+
driver took over with a claim code (its owner on its own front). The answer has the shape of
|
|
165
|
+
`IssuedPass` of the map package, so it is its `passProvider` as it is:
|
|
166
|
+
|
|
167
|
+
```ts
|
|
168
|
+
import { MapRoutesClient } from "@jsm-mit/map-routes-package";
|
|
169
|
+
|
|
170
|
+
const canisters = new DriverCanistersActor(coordinatorId, identity, { host });
|
|
171
|
+
const map = new MapRoutesClient({ coordinatorId: mapCoordinatorId, identity, passProvider: (r) => canisters.mapPassAsyncUnsafe(r) });
|
|
172
|
+
```
|
|
173
|
+
|
|
174
|
+
- The driver queries the map with the SAME identity that asked for the pass.
|
|
175
|
+
- Refusals of the map group come back as `CanisterError` `RemoteCanisterError` with the
|
|
176
|
+
variant first (`"Blocked: …"`, `"RateLimited: …"`); no map group in this environment is
|
|
177
|
+
`InvalidData`; somebody without a driver canister is refused at inspection.
|
|
178
|
+
|
|
158
179
|
The Test Manager (stage and the test modes): `TestManagerActor.hasSimulatedDriversAsyncUnsafe`,
|
|
159
180
|
`spawnDriversAsyncUnsafe` (12 drivers), `setSpeedUpAsyncUnsafe(request, 10)` before choosing.
|
|
160
181
|
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,62 @@ 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 core must
|
|
188
|
+
/// be registered there as a system (`setSystem` in the map coordinator's front).
|
|
189
|
+
setMapRoutesConfig: (args: MapRoutesConfig) -> (Result_5);
|
|
180
190
|
setMyProfile: (args: SetProfileArgs) -> (Result_4);
|
|
181
191
|
/// F-21 (2026-10-24, route line): admins — the one principal that routes the simulator's
|
|
182
192
|
/// quotes (S-N13, a Node process like a driver's front); null removes it. The simulator
|
|
@@ -284,58 +294,68 @@ type RideBatch =
|
|
|
284
294
|
type Result_9 =
|
|
285
295
|
variant {
|
|
286
296
|
err: Error;
|
|
287
|
-
ok:
|
|
297
|
+
ok: RateRideOutcome;
|
|
288
298
|
};
|
|
289
299
|
type Result_8 =
|
|
290
300
|
variant {
|
|
291
301
|
err: Error;
|
|
292
|
-
ok:
|
|
302
|
+
ok: ChatConfig;
|
|
293
303
|
};
|
|
294
304
|
type Result_7 =
|
|
295
305
|
variant {
|
|
296
306
|
err: Error;
|
|
297
|
-
ok:
|
|
307
|
+
ok: DriverCanister;
|
|
298
308
|
};
|
|
299
309
|
type Result_6 =
|
|
300
310
|
variant {
|
|
301
311
|
err: Error;
|
|
302
|
-
ok:
|
|
312
|
+
ok: FeeRates;
|
|
303
313
|
};
|
|
304
314
|
type Result_5 =
|
|
305
315
|
variant {
|
|
306
316
|
err: Error;
|
|
307
|
-
ok:
|
|
317
|
+
ok: MapRoutesConfig;
|
|
308
318
|
};
|
|
309
319
|
type Result_4 =
|
|
310
320
|
variant {
|
|
311
321
|
err: Error;
|
|
312
322
|
ok: Profile;
|
|
313
323
|
};
|
|
314
|
-
type
|
|
324
|
+
type Result_36 =
|
|
315
325
|
variant {
|
|
316
326
|
err: Error;
|
|
317
327
|
ok: ChatSharesAck;
|
|
318
328
|
};
|
|
319
|
-
type
|
|
329
|
+
type Result_35 =
|
|
320
330
|
variant {
|
|
321
331
|
err: Error;
|
|
322
332
|
ok: ApkInfo;
|
|
323
333
|
};
|
|
324
|
-
type
|
|
334
|
+
type Result_34 =
|
|
325
335
|
variant {
|
|
326
336
|
err: Error;
|
|
327
337
|
ok: WasmInfo;
|
|
328
338
|
};
|
|
329
|
-
type
|
|
339
|
+
type Result_33 =
|
|
330
340
|
variant {
|
|
331
341
|
err: Error;
|
|
332
342
|
ok: principal;
|
|
333
343
|
};
|
|
334
|
-
type
|
|
344
|
+
type Result_32 =
|
|
335
345
|
variant {
|
|
336
346
|
err: Error;
|
|
337
347
|
ok: vec principal;
|
|
338
348
|
};
|
|
349
|
+
type Result_31 =
|
|
350
|
+
variant {
|
|
351
|
+
err: Error;
|
|
352
|
+
ok: ChatRoomsStatus;
|
|
353
|
+
};
|
|
354
|
+
type Result_30 =
|
|
355
|
+
variant {
|
|
356
|
+
err: Error;
|
|
357
|
+
ok: DriverFeeAccountView;
|
|
358
|
+
};
|
|
339
359
|
type Result_3 =
|
|
340
360
|
variant {
|
|
341
361
|
err: Error;
|
|
@@ -344,52 +364,58 @@ type Result_3 =
|
|
|
344
364
|
type Result_29 =
|
|
345
365
|
variant {
|
|
346
366
|
err: Error;
|
|
347
|
-
ok:
|
|
367
|
+
ok: FeeBillAnswer;
|
|
348
368
|
};
|
|
349
369
|
type Result_28 =
|
|
350
370
|
variant {
|
|
351
371
|
err: Error;
|
|
352
|
-
ok:
|
|
372
|
+
ok: opt RolloutView;
|
|
353
373
|
};
|
|
354
374
|
type Result_27 =
|
|
355
375
|
variant {
|
|
356
376
|
err: Error;
|
|
357
|
-
ok:
|
|
377
|
+
ok: FactoryStatus;
|
|
358
378
|
};
|
|
359
379
|
type Result_26 =
|
|
360
380
|
variant {
|
|
361
381
|
err: Error;
|
|
362
|
-
ok:
|
|
382
|
+
ok: FeeStatus;
|
|
363
383
|
};
|
|
364
384
|
type Result_25 =
|
|
365
385
|
variant {
|
|
366
386
|
err: Error;
|
|
367
|
-
ok:
|
|
387
|
+
ok: opt Rating;
|
|
368
388
|
};
|
|
369
389
|
type Result_24 =
|
|
370
390
|
variant {
|
|
371
391
|
err: Error;
|
|
372
|
-
ok:
|
|
392
|
+
ok: RideView;
|
|
373
393
|
};
|
|
374
394
|
type Result_23 =
|
|
375
395
|
variant {
|
|
376
396
|
err: Error;
|
|
377
|
-
ok:
|
|
397
|
+
ok: RidesPage;
|
|
378
398
|
};
|
|
379
399
|
type Result_22 =
|
|
380
400
|
variant {
|
|
381
401
|
err: Error;
|
|
382
|
-
ok:
|
|
402
|
+
ok: vec ProfileEntry;
|
|
383
403
|
};
|
|
384
404
|
type Result_21 =
|
|
385
405
|
variant {
|
|
386
406
|
err: Error;
|
|
387
|
-
ok:
|
|
407
|
+
ok: Wiring;
|
|
388
408
|
};
|
|
389
409
|
type Result_20 =
|
|
390
410
|
variant {
|
|
391
411
|
err: Error;
|
|
392
|
-
ok:
|
|
412
|
+
ok:
|
|
413
|
+
record {
|
|
414
|
+
headSeq: nat64;
|
|
415
|
+
laggingWorkers: nat;
|
|
416
|
+
lastError: opt text;
|
|
417
|
+
subjects: nat;
|
|
418
|
+
};
|
|
393
419
|
};
|
|
394
420
|
type Result_2 =
|
|
395
421
|
variant {
|
|
@@ -399,58 +425,52 @@ type Result_2 =
|
|
|
399
425
|
type Result_19 =
|
|
400
426
|
variant {
|
|
401
427
|
err: Error;
|
|
402
|
-
ok:
|
|
428
|
+
ok: RideBatchResult;
|
|
403
429
|
};
|
|
404
430
|
type Result_18 =
|
|
405
431
|
variant {
|
|
406
432
|
err: Error;
|
|
407
|
-
ok:
|
|
408
|
-
record {
|
|
409
|
-
headSeq: nat64;
|
|
410
|
-
laggingWorkers: nat;
|
|
411
|
-
lastError: opt text;
|
|
412
|
-
subjects: nat;
|
|
413
|
-
};
|
|
433
|
+
ok: LeaseAnswer;
|
|
414
434
|
};
|
|
415
435
|
type Result_17 =
|
|
416
436
|
variant {
|
|
417
437
|
err: Error;
|
|
418
|
-
ok:
|
|
438
|
+
ok: vec Block;
|
|
419
439
|
};
|
|
420
440
|
type Result_16 =
|
|
421
441
|
variant {
|
|
422
442
|
err: Error;
|
|
423
|
-
ok:
|
|
443
|
+
ok: DriverCanistersPage;
|
|
424
444
|
};
|
|
425
445
|
type Result_15 =
|
|
426
446
|
variant {
|
|
427
447
|
err: Error;
|
|
428
|
-
ok: vec
|
|
448
|
+
ok: vec DriverFeeAccountView;
|
|
429
449
|
};
|
|
430
450
|
type Result_14 =
|
|
431
451
|
variant {
|
|
432
452
|
err: Error;
|
|
433
|
-
ok:
|
|
453
|
+
ok: vec DriverRoomView;
|
|
434
454
|
};
|
|
435
455
|
type Result_13 =
|
|
436
456
|
variant {
|
|
437
457
|
err: Error;
|
|
438
|
-
ok:
|
|
458
|
+
ok: MapPass;
|
|
439
459
|
};
|
|
440
460
|
type Result_12 =
|
|
441
461
|
variant {
|
|
442
462
|
err: Error;
|
|
443
|
-
ok:
|
|
463
|
+
ok: ClaimCode;
|
|
444
464
|
};
|
|
445
465
|
type Result_11 =
|
|
446
466
|
variant {
|
|
447
467
|
err: Error;
|
|
448
|
-
ok:
|
|
468
|
+
ok: FeePaid;
|
|
449
469
|
};
|
|
450
470
|
type Result_10 =
|
|
451
471
|
variant {
|
|
452
472
|
err: Error;
|
|
453
|
-
ok:
|
|
473
|
+
ok: DriverCanisterQuote;
|
|
454
474
|
};
|
|
455
475
|
type Result_1 =
|
|
456
476
|
variant {
|
|
@@ -529,6 +549,27 @@ type Mode =
|
|
|
529
549
|
stage;
|
|
530
550
|
test;
|
|
531
551
|
};
|
|
552
|
+
type MapRoutesConfig = record {coordinatorId: principal;};
|
|
553
|
+
type MapPassArgs =
|
|
554
|
+
record {
|
|
555
|
+
area: text;
|
|
556
|
+
bbox: MapBbox;
|
|
557
|
+
};
|
|
558
|
+
type MapPass =
|
|
559
|
+
record {
|
|
560
|
+
area: text;
|
|
561
|
+
bbox: MapBbox;
|
|
562
|
+
copy: principal;
|
|
563
|
+
pass: blob;
|
|
564
|
+
validUntilNs: nat64;
|
|
565
|
+
};
|
|
566
|
+
type MapBbox =
|
|
567
|
+
record {
|
|
568
|
+
maxLat: float64;
|
|
569
|
+
maxLon: float64;
|
|
570
|
+
minLat: float64;
|
|
571
|
+
minLon: float64;
|
|
572
|
+
};
|
|
532
573
|
type LeasedCanister =
|
|
533
574
|
record {
|
|
534
575
|
blocked: bool;
|