@jsm-mit/tigi-sharded-package 0.11.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.
@@ -61,7 +61,7 @@ export const idlFactory = ({ IDL }) => {
61
61
  'addedCycles' : IDL.Nat,
62
62
  'unknown' : IDL.Nat,
63
63
  });
64
- const Result_34 = IDL.Variant({ 'ok' : ChatSharesAck, 'err' : Error });
64
+ const Result_36 = 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,
@@ -77,7 +77,7 @@ export const idlFactory = ({ IDL }) => {
77
77
  'installedAtNs' : IDL.Opt(IDL.Int),
78
78
  'leaseUntilNs' : IDL.Opt(IDL.Int),
79
79
  });
80
- const Result_6 = IDL.Variant({ 'ok' : DriverCanister, 'err' : Error });
80
+ const Result_7 = IDL.Variant({ 'ok' : DriverCanister, 'err' : Error });
81
81
  const BlockDriverArgs = IDL.Record({
82
82
  'driverKey' : IDL.Opt(IDL.Text),
83
83
  'canister' : IDL.Principal,
@@ -105,7 +105,7 @@ export const idlFactory = ({ IDL }) => {
105
105
  'versionCode' : IDL.Nat32,
106
106
  'versionName' : IDL.Text,
107
107
  });
108
- const Result_33 = IDL.Variant({ 'ok' : ApkInfo, 'err' : Error });
108
+ const Result_35 = 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 Result_32 = IDL.Variant({ 'ok' : WasmInfo, 'err' : Error });
122
- const Result_31 = IDL.Variant({ 'ok' : IDL.Principal, 'err' : Error });
123
- const Result_30 = IDL.Variant({
121
+ const Result_34 = IDL.Variant({ 'ok' : WasmInfo, 'err' : Error });
122
+ const Result_33 = IDL.Variant({ 'ok' : IDL.Principal, 'err' : Error });
123
+ const Result_32 = 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 Result_29 = IDL.Variant({ 'ok' : ChatRoomsStatus, 'err' : Error });
139
+ const Result_31 = 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 Result_28 = IDL.Variant({ 'ok' : DriverFeeAccountView, 'err' : Error });
183
+ const Result_30 = 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 Result_27 = IDL.Variant({ 'ok' : FeeBillAnswer, 'err' : Error });
193
+ const Result_29 = 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 Result_23 = IDL.Variant({ 'ok' : IDL.Opt(Rating), 'err' : Error });
200
- const Result_26 = IDL.Variant({ 'ok' : IDL.Opt(RolloutView), 'err' : Error });
199
+ const Result_25 = IDL.Variant({ 'ok' : IDL.Opt(Rating), 'err' : Error });
200
+ const Result_28 = 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 Result_25 = IDL.Variant({ 'ok' : FactoryStatus, 'err' : Error });
212
+ const Result_27 = 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,7 +229,8 @@ export const idlFactory = ({ IDL }) => {
229
229
  'paidTotal' : IDL.Nat,
230
230
  'rates' : FeeRates,
231
231
  });
232
- const Result_24 = IDL.Variant({ 'ok' : FeeStatus, 'err' : Error });
232
+ const Result_26 = IDL.Variant({ 'ok' : FeeStatus, 'err' : Error });
233
+ const MapRoutesConfig = IDL.Record({ 'coordinatorId' : IDL.Principal });
233
234
  const Profile = IDL.Record({
234
235
  'updatedAtNs' : IDL.Int,
235
236
  'name' : IDL.Text,
@@ -257,7 +258,7 @@ export const idlFactory = ({ IDL }) => {
257
258
  'rider' : IDL.Principal,
258
259
  'myRating' : IDL.Opt(IDL.Nat8),
259
260
  });
260
- const Result_22 = IDL.Variant({ 'ok' : RideView, 'err' : Error });
261
+ const Result_24 = IDL.Variant({ 'ok' : RideView, 'err' : Error });
261
262
  const RidesPageArgs = IDL.Record({
262
263
  'beforeIndex' : IDL.Opt(IDL.Nat),
263
264
  'limit' : IDL.Nat,
@@ -266,13 +267,13 @@ export const idlFactory = ({ IDL }) => {
266
267
  'nextBeforeIndex' : IDL.Opt(IDL.Nat),
267
268
  'rides' : IDL.Vec(RideView),
268
269
  });
269
- const Result_21 = IDL.Variant({ 'ok' : RidesPage, 'err' : Error });
270
+ const Result_23 = IDL.Variant({ 'ok' : RidesPage, 'err' : Error });
270
271
  const ProfilesArgs = IDL.Record({ 'principals' : IDL.Vec(IDL.Principal) });
271
272
  const ProfileEntry = IDL.Record({
272
273
  'principal' : IDL.Principal,
273
274
  'name' : IDL.Text,
274
275
  });
275
- const Result_20 = IDL.Variant({
276
+ const Result_22 = IDL.Variant({
276
277
  'ok' : IDL.Vec(ProfileEntry),
277
278
  'err' : Error,
278
279
  });
@@ -286,8 +287,8 @@ export const idlFactory = ({ IDL }) => {
286
287
  'knownWorkers' : IDL.Vec(IDL.Principal),
287
288
  'coordinator' : IDL.Opt(IDL.Principal),
288
289
  });
289
- const Result_19 = IDL.Variant({ 'ok' : Wiring, 'err' : Error });
290
- const Result_18 = IDL.Variant({
290
+ const Result_21 = IDL.Variant({ 'ok' : Wiring, 'err' : Error });
291
+ const Result_20 = IDL.Variant({
291
292
  'ok' : IDL.Record({
292
293
  'subjects' : IDL.Nat,
293
294
  'headSeq' : IDL.Nat64,
@@ -340,7 +341,7 @@ export const idlFactory = ({ IDL }) => {
340
341
  'rejected' : IDL.Nat,
341
342
  'ratingsCounted' : IDL.Nat,
342
343
  });
343
- const Result_17 = IDL.Variant({ 'ok' : RideBatchResult, 'err' : Error });
344
+ const Result_19 = IDL.Variant({ 'ok' : RideBatchResult, 'err' : Error });
344
345
  const ClaimCode = IDL.Record({
345
346
  'expiresAtNs' : IDL.Int,
346
347
  'code' : IDL.Text,
@@ -361,7 +362,7 @@ export const idlFactory = ({ IDL }) => {
361
362
  'busy' : IDL.Record({ 'untilNs' : IDL.Int }),
362
363
  'leased' : LeasedCanister,
363
364
  });
364
- const Result_16 = IDL.Variant({ 'ok' : LeaseAnswer, 'err' : Error });
365
+ const Result_18 = IDL.Variant({ 'ok' : LeaseAnswer, 'err' : Error });
365
366
  const PageArgs = IDL.Record({ 'offset' : IDL.Nat, 'limit' : IDL.Nat });
366
367
  const BlockTarget = IDL.Variant({
367
368
  'driverCanister' : IDL.Principal,
@@ -377,13 +378,13 @@ export const idlFactory = ({ IDL }) => {
377
378
  'target' : BlockTarget,
378
379
  'reason' : IDL.Text,
379
380
  });
380
- const Result_15 = IDL.Variant({ 'ok' : IDL.Vec(Block), 'err' : Error });
381
+ const Result_17 = IDL.Variant({ 'ok' : IDL.Vec(Block), 'err' : Error });
381
382
  const DriverCanistersPage = IDL.Record({
382
383
  'total' : IDL.Nat,
383
384
  'canisters' : IDL.Vec(DriverCanister),
384
385
  });
385
- const Result_14 = IDL.Variant({ 'ok' : DriverCanistersPage, 'err' : Error });
386
- const Result_13 = IDL.Variant({
386
+ const Result_16 = IDL.Variant({ 'ok' : DriverCanistersPage, 'err' : Error });
387
+ const Result_15 = IDL.Variant({
387
388
  'ok' : IDL.Vec(DriverFeeAccountView),
388
389
  'err' : Error,
389
390
  });
@@ -395,18 +396,33 @@ export const idlFactory = ({ IDL }) => {
395
396
  'roomId' : IDL.Text,
396
397
  'synced' : IDL.Bool,
397
398
  });
398
- const Result_12 = IDL.Variant({
399
+ const Result_14 = IDL.Variant({
399
400
  'ok' : IDL.Vec(DriverRoomView),
400
401
  'err' : Error,
401
402
  });
402
- const Result_11 = IDL.Variant({ 'ok' : ClaimCode, 'err' : Error });
403
+ const MapBbox = IDL.Record({
404
+ 'minLat' : IDL.Float64,
405
+ 'minLon' : IDL.Float64,
406
+ 'maxLat' : IDL.Float64,
407
+ 'maxLon' : IDL.Float64,
408
+ });
409
+ const MapPassArgs = IDL.Record({ 'area' : IDL.Text, 'bbox' : MapBbox });
410
+ const MapPass = IDL.Record({
411
+ 'area' : IDL.Text,
412
+ 'bbox' : MapBbox,
413
+ 'copy' : IDL.Principal,
414
+ 'pass' : IDL.Vec(IDL.Nat8),
415
+ 'validUntilNs' : IDL.Nat64,
416
+ });
417
+ const Result_13 = IDL.Variant({ 'ok' : MapPass, 'err' : Error });
418
+ const Result_12 = IDL.Variant({ 'ok' : ClaimCode, 'err' : Error });
403
419
  const FeePayArgs = IDL.Record({ 'day' : IDL.Nat });
404
420
  const FeePaid = IDL.Record({
405
421
  'day' : IDL.Nat,
406
422
  'accepted' : IDL.Nat,
407
423
  'amount' : IDL.Nat,
408
424
  });
409
- const Result_10 = IDL.Variant({ 'ok' : FeePaid, 'err' : Error });
425
+ const Result_11 = IDL.Variant({ 'ok' : FeePaid, 'err' : Error });
410
426
  const DriverCanisterQuote = IDL.Record({
411
427
  'accountId' : IDL.Vec(IDL.Nat8),
412
428
  'minimumE8s' : IDL.Nat,
@@ -415,7 +431,7 @@ export const idlFactory = ({ IDL }) => {
415
431
  'suggestedE8s' : IDL.Nat,
416
432
  'priceCycles' : IDL.Nat,
417
433
  });
418
- const Result_9 = IDL.Variant({ 'ok' : DriverCanisterQuote, 'err' : Error });
434
+ const Result_10 = IDL.Variant({ 'ok' : DriverCanisterQuote, 'err' : Error });
419
435
  const RateRideArgs = IDL.Record({
420
436
  'requestId' : IDL.Text,
421
437
  'stars' : IDL.Nat8,
@@ -425,15 +441,16 @@ export const idlFactory = ({ IDL }) => {
425
441
  'rated' : IDL.Null,
426
442
  'alreadyRated' : IDL.Null,
427
443
  });
428
- const Result_8 = IDL.Variant({ 'ok' : RateRideOutcome, 'err' : Error });
429
- const Result_7 = IDL.Variant({ 'ok' : ChatConfig, 'err' : Error });
444
+ const Result_9 = IDL.Variant({ 'ok' : RateRideOutcome, 'err' : Error });
445
+ const Result_8 = IDL.Variant({ 'ok' : ChatConfig, 'err' : Error });
430
446
  const ClaimTtlArgs = IDL.Record({ 'seconds' : IDL.Nat });
431
447
  const Result = IDL.Variant({ 'ok' : IDL.Nat, 'err' : Error });
432
448
  const DemoAutomatArgs = IDL.Record({
433
449
  'canister' : IDL.Principal,
434
450
  'automat' : IDL.Principal,
435
451
  });
436
- const Result_5 = IDL.Variant({ 'ok' : FeeRates, 'err' : Error });
452
+ const Result_6 = IDL.Variant({ 'ok' : FeeRates, 'err' : Error });
453
+ const Result_5 = IDL.Variant({ 'ok' : MapRoutesConfig, 'err' : Error });
437
454
  const SetProfileArgs = IDL.Record({ 'name' : IDL.Text });
438
455
  const SimulatorRouterArgs = IDL.Record({ 'router' : IDL.Opt(IDL.Principal) });
439
456
  const TestDayArgs = IDL.Record({ 'days' : IDL.Nat });
@@ -455,21 +472,21 @@ export const idlFactory = ({ IDL }) => {
455
472
  const TigiCore = IDL.Service({
456
473
  'abortDriverRollout' : IDL.Func([], [Result_3], []),
457
474
  'addAdmin' : IDL.Func([PrincipalArgs], [Result_2], []),
458
- 'addChatShares' : IDL.Func([ChatSharesArgs], [Result_34], []),
459
- 'addPoolCanister' : IDL.Func([CanisterArgs], [Result_6], []),
475
+ 'addChatShares' : IDL.Func([ChatSharesArgs], [Result_36], []),
476
+ 'addPoolCanister' : IDL.Func([CanisterArgs], [Result_7], []),
460
477
  'blockDriver' : IDL.Func([BlockDriverArgs], [Result_2], []),
461
478
  'blockRider' : IDL.Func([BlockRiderArgs], [Result_2], []),
462
- 'claimDriverCanister' : IDL.Func([ClaimArgs], [Result_6], []),
479
+ 'claimDriverCanister' : IDL.Func([ClaimArgs], [Result_7], []),
463
480
  'clearLogs' : IDL.Func([], [], []),
464
- 'commitDriverApk' : IDL.Func([ApkCommitArgs], [Result_33], []),
465
- 'commitDriverWasm' : IDL.Func([WasmCommitArgs], [Result_32], []),
466
- 'createLocalPoolCanister' : IDL.Func([], [Result_6], []),
467
- 'createMyDriverCanister' : IDL.Func([], [Result_6], []),
468
- 'ensureSimulator' : IDL.Func([], [Result_31], []),
469
- 'extendDemoLease' : IDL.Func([], [Result_6], []),
470
- 'getAdmins' : IDL.Func([], [Result_30], ['query']),
481
+ 'commitDriverApk' : IDL.Func([ApkCommitArgs], [Result_35], []),
482
+ 'commitDriverWasm' : IDL.Func([WasmCommitArgs], [Result_34], []),
483
+ 'createLocalPoolCanister' : IDL.Func([], [Result_7], []),
484
+ 'createMyDriverCanister' : IDL.Func([], [Result_7], []),
485
+ 'ensureSimulator' : IDL.Func([], [Result_33], []),
486
+ 'extendDemoLease' : IDL.Func([], [Result_7], []),
487
+ 'getAdmins' : IDL.Func([], [Result_32], ['query']),
471
488
  'getChatConfig' : IDL.Func([], [IDL.Opt(ChatConfig)], ['query']),
472
- 'getChatRoomsStatus' : IDL.Func([], [Result_29], ['query']),
489
+ 'getChatRoomsStatus' : IDL.Func([], [Result_31], ['query']),
473
490
  'getDriverApk' : IDL.Func([], [IDL.Opt(ApkInfo)], ['query']),
474
491
  'getDriverApkChunk' : IDL.Func(
475
492
  [IDL.Nat32],
@@ -481,43 +498,46 @@ export const idlFactory = ({ IDL }) => {
481
498
  [DriverCanisterStatus],
482
499
  ['query'],
483
500
  ),
484
- 'getDriverFeeAccount' : IDL.Func([CanisterArgs], [Result_28], ['query']),
485
- 'getDriverFeeBill' : IDL.Func([], [Result_27], []),
486
- 'getDriverRating' : IDL.Func([DriverRatingArgs], [Result_23], ['query']),
487
- 'getDriverRollout' : IDL.Func([], [Result_26], ['query']),
488
- 'getFactoryStatus' : IDL.Func([], [Result_25], ['query']),
489
- 'getFeeStatus' : IDL.Func([], [Result_24], ['query']),
501
+ 'getDriverFeeAccount' : IDL.Func([CanisterArgs], [Result_30], ['query']),
502
+ 'getDriverFeeBill' : IDL.Func([], [Result_29], []),
503
+ 'getDriverRating' : IDL.Func([DriverRatingArgs], [Result_25], ['query']),
504
+ 'getDriverRollout' : IDL.Func([], [Result_28], ['query']),
505
+ 'getFactoryStatus' : IDL.Func([], [Result_27], ['query']),
506
+ 'getFeeStatus' : IDL.Func([], [Result_26], ['query']),
490
507
  'getLogs' : IDL.Func([], [IDL.Text], ['query']),
491
- 'getMyDriverCanister' : IDL.Func([], [Result_6], ['query']),
508
+ 'getMapRoutesConfig' : IDL.Func([], [IDL.Opt(MapRoutesConfig)], ['query']),
509
+ 'getMyDriverCanister' : IDL.Func([], [Result_7], ['query']),
492
510
  'getMyProfile' : IDL.Func([], [Result_4], ['query']),
493
- 'getMyRating' : IDL.Func([], [Result_23], ['query']),
494
- 'getMyRide' : IDL.Func([RequestIdArgs], [Result_22], ['query']),
495
- 'getMyRides' : IDL.Func([RidesPageArgs], [Result_21], ['query']),
496
- 'getProfiles' : IDL.Func([ProfilesArgs], [Result_20], ['query']),
511
+ 'getMyRating' : IDL.Func([], [Result_25], ['query']),
512
+ 'getMyRide' : IDL.Func([RequestIdArgs], [Result_24], ['query']),
513
+ 'getMyRides' : IDL.Func([RidesPageArgs], [Result_23], ['query']),
514
+ 'getProfiles' : IDL.Func([ProfilesArgs], [Result_22], ['query']),
497
515
  'getReleasedDriverWasms' : IDL.Func([], [IDL.Vec(ReleasedWasm)], ['query']),
498
516
  'getSimulator' : IDL.Func([], [IDL.Opt(IDL.Principal)], ['query']),
499
- 'getWiring' : IDL.Func([], [Result_19], ['query']),
500
- 'getWorkerOutbox' : IDL.Func([], [Result_18], ['query']),
517
+ 'getWiring' : IDL.Func([], [Result_21], ['query']),
518
+ 'getWorkerOutbox' : IDL.Func([], [Result_20], ['query']),
501
519
  'helloFromWorker' : IDL.Func([], [Result_2], []),
502
- 'ingestRideBatch' : IDL.Func([RideBatch], [Result_17], []),
520
+ 'ingestRideBatch' : IDL.Func([RideBatch], [Result_19], []),
503
521
  'isUser' : IDL.Func([IDL.Principal], [IDL.Bool], ['query']),
504
- 'leaseDemoDriverCanister' : IDL.Func([], [Result_16], []),
505
- 'listBlocks' : IDL.Func([PageArgs], [Result_15], ['query']),
506
- 'listDriverCanisters' : IDL.Func([PageArgs], [Result_14], ['query']),
507
- 'listDriverFeeAccounts' : IDL.Func([PageArgs], [Result_13], ['query']),
508
- 'listDriverRooms' : IDL.Func([PageArgs], [Result_12], ['query']),
509
- 'newClaimCode' : IDL.Func([], [Result_11], []),
510
- 'payDriverFee' : IDL.Func([FeePayArgs], [Result_10], []),
511
- 'quoteMyDriverCanister' : IDL.Func([], [Result_9], []),
512
- 'rateMyRide' : IDL.Func([RateRideArgs], [Result_8], []),
522
+ 'leaseDemoDriverCanister' : IDL.Func([], [Result_18], []),
523
+ 'listBlocks' : IDL.Func([PageArgs], [Result_17], ['query']),
524
+ 'listDriverCanisters' : IDL.Func([PageArgs], [Result_16], ['query']),
525
+ 'listDriverFeeAccounts' : IDL.Func([PageArgs], [Result_15], ['query']),
526
+ 'listDriverRooms' : IDL.Func([PageArgs], [Result_14], ['query']),
527
+ 'mapPass' : IDL.Func([MapPassArgs], [Result_13], []),
528
+ 'newClaimCode' : IDL.Func([], [Result_12], []),
529
+ 'payDriverFee' : IDL.Func([FeePayArgs], [Result_11], []),
530
+ 'quoteMyDriverCanister' : IDL.Func([], [Result_10], []),
531
+ 'rateMyRide' : IDL.Func([RateRideArgs], [Result_9], []),
513
532
  'removeAdmin' : IDL.Func([PrincipalArgs], [Result_2], []),
514
533
  'resumeDriverRollout' : IDL.Func([], [Result_3], []),
515
- 'setChatConfig' : IDL.Func([ChatConfig], [Result_7], []),
534
+ 'setChatConfig' : IDL.Func([ChatConfig], [Result_8], []),
516
535
  'setClaimCodeTtl' : IDL.Func([ClaimTtlArgs], [Result], []),
517
- 'setDemoDriverAutomat' : IDL.Func([DemoAutomatArgs], [Result_6], []),
518
- 'setFeeRates' : IDL.Func([FeeRates], [Result_5], []),
536
+ 'setDemoDriverAutomat' : IDL.Func([DemoAutomatArgs], [Result_7], []),
537
+ 'setFeeRates' : IDL.Func([FeeRates], [Result_6], []),
519
538
  'setLoggingEnabled' : IDL.Func([IDL.Bool], [Result_2], []),
520
539
  'setLowCyclesBelow' : IDL.Func([IDL.Nat], [Result_2], []),
540
+ 'setMapRoutesConfig' : IDL.Func([MapRoutesConfig], [Result_5], []),
521
541
  'setMyProfile' : IDL.Func([SetProfileArgs], [Result_4], []),
522
542
  'setSimulatorRouter' : IDL.Func([SimulatorRouterArgs], [Result_2], []),
523
543
  'setTestDayOffset' : IDL.Func([TestDayArgs], [Result], []),
@@ -116,6 +116,8 @@ type RegisterDriver = record {
116
116
  card : DriverCard;
117
117
  cardVersion : nat32; // the worker keeps the newest card
118
118
  validUntilNs : opt nat64; // simulator only: no pulse needed until then (U-25)
119
+ freeAtNs : opt nat64; // P-23: on a ride that ends by then (≤ 5 min + 2 min of margin)
120
+ // — asked for rides "as soon as possible" as a queued next ride
119
121
  };
120
122
 
121
123
  // The route the driver's front got from its provider, in the same query that priced the
@@ -139,6 +141,9 @@ type Quote = record {
139
141
  validUntilNs : nat64; // 60 s (U-39)
140
142
  routeLine : opt RouteLine; // P-17: the line of the offer; none from an old canister
141
143
  driverPosition : opt Geo; // P-18: exact, the start of the route — the pin of the offer
144
+ freeAtNs : opt nat64; // P-23: the driver ends a ride by then; `etaToPickupSec` counts
145
+ // from now and holds the rest of that ride; no pin, no
146
+ // `routeLine.toPickup` ("") — they would show the other rider's B
142
147
  };
143
148
 
144
149
  type QuoteDecline = record { requestId : RequestId; driverKey : DriverKey };
@@ -183,6 +188,8 @@ type RideView = record {
183
188
  price : Money;
184
189
  cardAccepted : opt bool; // P-20: the driver takes cards; absent = no
185
190
  cardPayment : opt CardPaymentView; // P-20: once the rider started one
191
+ freeAtNs : opt nat64; // P-23: a queued ride — the driver ends the previous one by then;
192
+ // meanwhile no `driverPosition`
186
193
  };
187
194
 
188
195
  // P-20: the rider's card payment of a ride — Stripe Checkout on the driver's own account.
@@ -68,6 +68,7 @@ export type ProtocolError = { 'expired' : null } |
68
68
  { 'unsupportedVersion' : number } |
69
69
  { 'notMyArea' : null };
70
70
  export interface Quote {
71
+ 'freeAtNs' : [] | [bigint],
71
72
  'requestId' : RequestId,
72
73
  'rideMeters' : number,
73
74
  'rideSec' : number,
@@ -104,6 +105,7 @@ export interface RegisterBase {
104
105
  'driverKey' : DriverKey,
105
106
  }
106
107
  export interface RegisterDriver {
108
+ 'freeAtNs' : [] | [bigint],
107
109
  'card' : DriverCard,
108
110
  'cardVersion' : number,
109
111
  'geohash' : Geohash,
@@ -146,6 +148,7 @@ export interface RideStatusChange {
146
148
  'driverKey' : DriverKey,
147
149
  }
148
150
  export interface RideView {
151
+ 'freeAtNs' : [] | [bigint],
149
152
  'status' : RideStatus,
150
153
  'requestId' : RequestId,
151
154
  'positionAtNs' : [] | [bigint],
@@ -58,6 +58,7 @@ export const idlFactory = ({ IDL }) => {
58
58
  });
59
59
  const Geo = IDL.Record({ 'lat' : IDL.Float64, 'lng' : IDL.Float64 });
60
60
  const RideView = IDL.Record({
61
+ 'freeAtNs' : IDL.Opt(IDL.Nat64),
61
62
  'status' : RideStatus,
62
63
  'requestId' : RequestId,
63
64
  'positionAtNs' : IDL.Opt(IDL.Nat64),
@@ -269,6 +269,8 @@ type RideStatus = variant {
269
269
  inProgress;
270
270
  };
271
271
  type RideView = record {
272
+ // P-23: a queued ride — the driver ends the previous one by then; no position meanwhile.
273
+ freeAtNs : opt nat64;
272
274
  status : RideStatus;
273
275
  requestId : text;
274
276
  positionAtNs : opt nat64;
@@ -389,6 +389,10 @@ export type RideStatus = { 'completed' : CompletedStatus } |
389
389
  { 'cancelledByDriver' : CancelledByDriverStatus } |
390
390
  { 'inProgress' : null };
391
391
  export interface RideView {
392
+ /**
393
+ * P-23: a queued ride — the driver ends the previous one by then; no position meanwhile.
394
+ */
395
+ 'freeAtNs' : [] | [bigint],
392
396
  'status' : RideStatus,
393
397
  'requestId' : string,
394
398
  'positionAtNs' : [] | [bigint],
@@ -89,6 +89,7 @@ export const idlFactory = ({ IDL }) => {
89
89
  'hasLicencePhoto' : IDL.Bool,
90
90
  });
91
91
  const RideView = IDL.Record({
92
+ 'freeAtNs' : IDL.Opt(IDL.Nat64),
92
93
  'status' : RideStatus,
93
94
  'requestId' : IDL.Text,
94
95
  'positionAtNs' : IDL.Opt(IDL.Nat64),
@@ -295,6 +295,7 @@ type RegisterDriver =
295
295
  card: DriverCard;
296
296
  cardVersion: nat32;
297
297
  driverKey: DriverKey;
298
+ freeAtNs: opt nat64;
298
299
  geohash: Geohash;
299
300
  validUntilNs: opt nat64;
300
301
  };
@@ -320,6 +321,7 @@ type Quote =
320
321
  driverKey: DriverKey;
321
322
  driverPosition: opt Geo;
322
323
  etaToPickupSec: nat32;
324
+ freeAtNs: opt nat64;
323
325
  price: Money;
324
326
  requestId: RequestId;
325
327
  rideMeters: nat32;
@@ -368,6 +370,7 @@ type OfferView =
368
370
  driverPosition: opt Geo;
369
371
  driverRating: opt nat16;
370
372
  etaToPickupSec: nat32;
373
+ freeAtNs: opt nat64;
371
374
  pinGeohash: text;
372
375
  price: Money;
373
376
  receivedNs: nat64;
@@ -132,6 +132,7 @@ export interface OfferRef {
132
132
  'driverCanister' : Principal,
133
133
  }
134
134
  export interface OfferView {
135
+ 'freeAtNs' : [] | [bigint],
135
136
  'rideMeters' : number,
136
137
  'driverRating' : [] | [number],
137
138
  'card' : DriverCard,
@@ -165,6 +166,7 @@ export type ProtocolError = { 'expired' : null } |
165
166
  export type ProtocolResult = { 'ok' : null } |
166
167
  { 'err' : ProtocolError };
167
168
  export interface Quote {
169
+ 'freeAtNs' : [] | [bigint],
168
170
  'requestId' : RequestId,
169
171
  'rideMeters' : number,
170
172
  'rideSec' : number,
@@ -188,6 +190,7 @@ export interface RegisterBase {
188
190
  'driverKey' : DriverKey,
189
191
  }
190
192
  export interface RegisterDriver {
193
+ 'freeAtNs' : [] | [bigint],
191
194
  'card' : DriverCard,
192
195
  'cardVersion' : number,
193
196
  'geohash' : Geohash,
@@ -177,6 +177,7 @@ export const idlFactory = ({ IDL }) => {
177
177
  const Money = IDL.Record({ 'currency' : IDL.Text, 'amount' : IDL.Nat64 });
178
178
  const Geo = IDL.Record({ 'lat' : IDL.Float64, 'lng' : IDL.Float64 });
179
179
  const OfferView = IDL.Record({
180
+ 'freeAtNs' : IDL.Opt(IDL.Nat64),
180
181
  'rideMeters' : IDL.Nat32,
181
182
  'driverRating' : IDL.Opt(IDL.Nat16),
182
183
  'card' : DriverCard,
@@ -313,6 +314,7 @@ export const idlFactory = ({ IDL }) => {
313
314
  'driverKey' : DriverKey,
314
315
  });
315
316
  const RegisterDriver = IDL.Record({
317
+ 'freeAtNs' : IDL.Opt(IDL.Nat64),
316
318
  'card' : DriverCard,
317
319
  'cardVersion' : IDL.Nat32,
318
320
  'geohash' : Geohash,
@@ -351,6 +353,7 @@ export const idlFactory = ({ IDL }) => {
351
353
  'version' : IDL.Nat64,
352
354
  });
353
355
  const Quote = IDL.Record({
356
+ 'freeAtNs' : IDL.Opt(IDL.Nat64),
354
357
  'requestId' : RequestId,
355
358
  'rideMeters' : IDL.Nat32,
356
359
  'rideSec' : IDL.Nat32,
@@ -1,7 +1,7 @@
1
1
  import type { Identity } from "@icp-sdk/core/agent";
2
2
  import type { ClaimCode as CandidClaimCode, DriverCanister as CandidDriverCanister } from "../../declarations/core/core.did.js";
3
3
  import { type GroupOptions } from "../group/canister-actor.js";
4
- import type { ClaimCodeView, DemoLeaseView, DriverCanisterQuoteView, DriverCanisterView } from "../interfaces.js";
4
+ import type { ClaimCodeView, DemoLeaseView, DriverCanisterQuoteView, DriverCanisterView, MapPassRequest, MapPassView } 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. */
@@ -92,5 +92,20 @@ export declare class DriverCanistersActor {
92
92
  * @throws Error with message `CriticalCanisterError` — the core could not be reached
93
93
  */
94
94
  claimAsyncUnsafe(canisterId: string, code: string): Promise<DriverCanisterView>;
95
+ /**
96
+ * C-29, C-30: the map-routes pass of the calling driver (own or demo driver canister, not
97
+ * blocked) for an area and a bbox. The core asks the map group's coordinator which pass
98
+ * core serves the driver and gets the pass there. The answer has the shape of
99
+ * `IssuedPass` of `@jsm-mit/map-routes-package`, so it is the `passProvider` of its
100
+ * `MapRoutesClient` as it is: `new MapRoutesClient({ ..., passProvider: (r) => driverCanisters.mapPassAsyncUnsafe(r) })`.
101
+ * The driver queries the map with the identity that asked for the pass.
102
+ * @throws Error with message `CanisterError` — `NotAuthorized` (no driver canister, or it is
103
+ * blocked), `InvalidData` (a bad area or bbox, or no map group in this environment),
104
+ * `RemoteCanisterError` ("<Variant>: <reason>" of the map group, e.g. "Blocked: …",
105
+ * "RateLimited: …", or the map group could not be reached)
106
+ * @throws Error with message `CallRefusedAtInspectionStage` — anonymous, or not a driver
107
+ * @throws Error with message `CriticalCanisterError` — the core could not be reached
108
+ */
109
+ mapPassAsyncUnsafe(request: MapPassRequest): Promise<MapPassView>;
95
110
  }
96
111
  //# sourceMappingURL=driver-canisters-actor.d.ts.map
@@ -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;AAChI,OAAO,EAAkC,KAAK,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAE/F,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAGlH,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,MAAM,EAAE,WAAW,GAAE,MAAwC,GAAG,MAAM,CAE3H;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAgBhE;AAED,gBAAgB;AAChB,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,IAAI,CAAC,oBAAoB,EAAE,UAAU,GAAG,OAAO,GAAG,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W5F;;;;;;;;;;;;;OAaG;IACU,kBAAkB,CAAC,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,WAAW,CAAC;CAGjF"}
@@ -169,4 +169,21 @@ export class DriverCanistersActor {
169
169
  }
170
170
  return driverCanisterOf(await executeAsyncUnsafe(async () => (await this.group.coreAsync()).claimDriverCanister({ canister, code })));
171
171
  }
172
+ /**
173
+ * C-29, C-30: the map-routes pass of the calling driver (own or demo driver canister, not
174
+ * blocked) for an area and a bbox. The core asks the map group's coordinator which pass
175
+ * core serves the driver and gets the pass there. The answer has the shape of
176
+ * `IssuedPass` of `@jsm-mit/map-routes-package`, so it is the `passProvider` of its
177
+ * `MapRoutesClient` as it is: `new MapRoutesClient({ ..., passProvider: (r) => driverCanisters.mapPassAsyncUnsafe(r) })`.
178
+ * The driver queries the map with the identity that asked for the pass.
179
+ * @throws Error with message `CanisterError` — `NotAuthorized` (no driver canister, or it is
180
+ * blocked), `InvalidData` (a bad area or bbox, or no map group in this environment),
181
+ * `RemoteCanisterError` ("<Variant>: <reason>" of the map group, e.g. "Blocked: …",
182
+ * "RateLimited: …", or the map group could not be reached)
183
+ * @throws Error with message `CallRefusedAtInspectionStage` — anonymous, or not a driver
184
+ * @throws Error with message `CriticalCanisterError` — the core could not be reached
185
+ */
186
+ async mapPassAsyncUnsafe(request) {
187
+ return executeAsyncUnsafe(async () => (await this.group.coreAsync()).mapPass({ area: request.area, bbox: request.bbox }));
188
+ }
172
189
  }
@@ -703,6 +703,8 @@ async function getRideOfAsyncUnsafe(identity, options, driver, requestId) {
703
703
  driverPosition: ride.driverPosition[0],
704
704
  positionAtMs: ride.positionAtNs[0] === undefined ? undefined : msOf(ride.positionAtNs[0]),
705
705
  etaToPickupSec: ride.etaToPickupSec[0],
706
+ // K-N10 (P-23): a queued ride.
707
+ ...(ride.freeAtNs?.[0] === undefined ? {} : { freeAtMs: msOf(ride.freeAtNs[0]) }),
706
708
  price: moneyOf(ride.price),
707
709
  cardAccepted: ride.cardAccepted?.[0] === true,
708
710
  cardPayment: ride.cardPayment?.[0] === undefined ? undefined : cardPaymentOf(ride.cardPayment[0]),
package/dist/index.d.ts CHANGED
@@ -6,5 +6,6 @@ export { TestManagerActor, SIMULATED_DRIVERS } from "./actors/test-manager-actor
6
6
  export { DriverCanistersActor, CLAIM_FRAGMENT_KEY, MAX_CLAIM_CODE_CHARS, claimCodeOfHash, claimLinkOf } from "./actors/driver-canisters-actor.js";
7
7
  export { ChatPlacesActor, CHAT_CONFIG_TTL_MS, DRIVER_ROOM_PREFIX, MAX_ROOM_ID_CHARS, driverRoomId } from "./chat.js";
8
8
  export { cellsWithin, decodeGeohashCenter, decodePolyline, distanceMeters, encodeGeohash } from "./geo.js";
9
+ export { etaToPickupNowSec } from "./mappers.js";
9
10
  export type * from "./interfaces.js";
10
11
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAYA,OAAO,EACH,YAAY,EACZ,sBAAsB,EACtB,aAAa,EACb,UAAU,EACV,sBAAsB,EACtB,oBAAoB,EACpB,aAAa,EACb,KAAK,YAAY,EACjB,KAAK,QAAQ,GAChB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACH,UAAU,EACV,WAAW,EACX,YAAY,EACZ,eAAe,EACf,eAAe,EACf,YAAY,EACZ,iBAAiB,EACjB,oBAAoB,EACpB,kBAAkB,EAClB,cAAc,EACd,KAAK,eAAe,GACvB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACH,aAAa,EACb,gBAAgB,EAChB,sBAAsB,EACtB,sBAAsB,EACtB,iBAAiB,EACjB,uBAAuB,EACvB,KAAK,kBAAkB,EACvB,KAAK,cAAc,EACnB,KAAK,iBAAiB,GACzB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AACvE,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EA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BAAkB,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACrH,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,cAAc,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAC3G,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AACjD,mBAAmB,iBAAiB,CAAC"}
package/dist/index.js CHANGED
@@ -17,3 +17,4 @@ export { TestManagerActor, SIMULATED_DRIVERS } from "./actors/test-manager-actor
17
17
  export { DriverCanistersActor, CLAIM_FRAGMENT_KEY, MAX_CLAIM_CODE_CHARS, claimCodeOfHash, claimLinkOf } from "./actors/driver-canisters-actor.js";
18
18
  export { ChatPlacesActor, CHAT_CONFIG_TTL_MS, DRIVER_ROOM_PREFIX, MAX_ROOM_ID_CHARS, driverRoomId } from "./chat.js";
19
19
  export { cellsWithin, decodeGeohashCenter, decodePolyline, distanceMeters, encodeGeohash } from "./geo.js";
20
+ export { etaToPickupNowSec } from "./mappers.js";