@jsm-mit/tigi-sharded-package 0.4.0 → 0.5.1

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.
@@ -54,6 +54,15 @@ export const idlFactory = ({ IDL }) => {
54
54
  'Ok' : IDL.Vec(PrefixEntry),
55
55
  'Err' : CoordinatorError,
56
56
  });
57
+ const ChatBillDue = IDL.Record({
58
+ 'day' : IDL.Nat64,
59
+ 'dueSinceNs' : IDL.Nat64,
60
+ 'bill' : IDL.Nat,
61
+ 'blockAtNs' : IDL.Nat64,
62
+ 'projectId' : IDL.Text,
63
+ 'payTo' : IDL.Principal,
64
+ 'multiplierPermille' : IDL.Nat32,
65
+ });
57
66
  const CommitWasmArgs = IDL.Record({
58
67
  'sha256' : IDL.Vec(IDL.Nat8),
59
68
  'chunks' : IDL.Nat32,
@@ -208,6 +217,44 @@ export const idlFactory = ({ IDL }) => {
208
217
  'computedAtNs' : IDL.Opt(IDL.Nat64),
209
218
  'canisters' : IDL.Opt(IDL.Nat32),
210
219
  });
220
+ const ChatBillPaid = IDL.Record({
221
+ 'day' : IDL.Nat64,
222
+ 'paidAtNs' : IDL.Nat64,
223
+ 'paidTotal' : IDL.Nat,
224
+ 'amount' : IDL.Nat,
225
+ });
226
+ const ChatBillStep = IDL.Variant({
227
+ 'reading' : IDL.Null,
228
+ 'done' : IDL.Null,
229
+ 'unpaid' : IDL.Null,
230
+ 'sharing' : IDL.Null,
231
+ 'nothingDue' : IDL.Null,
232
+ 'received' : IDL.Null,
233
+ 'paying' : IDL.Null,
234
+ });
235
+ const ChatBillRun = IDL.Record({
236
+ 'day' : IDL.Nat64,
237
+ 'updatedAtNs' : IDL.Nat64,
238
+ 'dueSinceNs' : IDL.Nat64,
239
+ 'reminded' : IDL.Nat,
240
+ 'blockAtNs' : IDL.Nat64,
241
+ 'step' : ChatBillStep,
242
+ 'driverRooms' : IDL.Opt(IDL.Nat32),
243
+ 'receivedAtNs' : IDL.Nat64,
244
+ 'projectId' : IDL.Text,
245
+ 'batchesSent' : IDL.Opt(IDL.Nat32),
246
+ 'payTo' : IDL.Principal,
247
+ 'absorbed' : IDL.Opt(IDL.Nat),
248
+ 'accepted' : IDL.Opt(IDL.Nat),
249
+ 'amount' : IDL.Opt(IDL.Nat),
250
+ 'passed' : IDL.Opt(IDL.Nat),
251
+ 'problem' : IDL.Opt(IDL.Text),
252
+ });
253
+ const ChatLink = IDL.Record({
254
+ 'chatCoordinatorId' : IDL.Principal,
255
+ 'readAtNs' : IDL.Nat64,
256
+ 'projectId' : IDL.Text,
257
+ });
211
258
  const Config = IDL.Record({
212
259
  'maxWorkers' : IDL.Opt(IDL.Nat64),
213
260
  'coreWasm' : IDL.Opt(WasmInfo),
@@ -225,7 +272,10 @@ export const idlFactory = ({ IDL }) => {
225
272
  'lastRequestDay' : IDL.Nat64,
226
273
  'feeMultiplier' : IDL.Opt(FeeMultiplierState),
227
274
  'cyclesPerWorker' : IDL.Nat,
275
+ 'chatBillPaid' : IDL.Opt(ChatBillPaid),
276
+ 'chatBill' : IDL.Opt(ChatBillRun),
228
277
  'spread' : IDL.Bool,
278
+ 'chatLink' : IDL.Opt(ChatLink),
229
279
  'nextEventId' : IDL.Nat64,
230
280
  'superadmin' : IDL.Opt(IDL.Principal),
231
281
  'deployAdmins' : IDL.Vec(IDL.Principal),
@@ -304,10 +354,14 @@ export const idlFactory = ({ IDL }) => {
304
354
  'Err' : CoordinatorError,
305
355
  });
306
356
  const Result_13 = IDL.Variant({
307
- 'Ok' : CoreRecord,
357
+ 'Ok' : IDL.Opt(ChatLink),
308
358
  'Err' : CoordinatorError,
309
359
  });
310
360
  const Result_14 = IDL.Variant({
361
+ 'Ok' : CoreRecord,
362
+ 'Err' : CoordinatorError,
363
+ });
364
+ const Result_15 = IDL.Variant({
311
365
  'Ok' : WorkerStatus,
312
366
  'Err' : CoordinatorError,
313
367
  });
@@ -321,7 +375,7 @@ export const idlFactory = ({ IDL }) => {
321
375
  'sinceNs' : IDL.Nat64,
322
376
  'lastError' : IDL.Opt(IDL.Text),
323
377
  });
324
- const Result_15 = IDL.Variant({
378
+ const Result_16 = IDL.Variant({
325
379
  'Ok' : Dependents,
326
380
  'Err' : CoordinatorError,
327
381
  });
@@ -332,7 +386,7 @@ export const idlFactory = ({ IDL }) => {
332
386
  'cyclesPerWorker' : IDL.Opt(IDL.Nat),
333
387
  'spread' : IDL.Opt(IDL.Bool),
334
388
  });
335
- const Result_16 = IDL.Variant({ 'Ok' : Config, 'Err' : CoordinatorError });
389
+ const Result_17 = IDL.Variant({ 'Ok' : Config, 'Err' : CoordinatorError });
336
390
  const CoreLoggingArgs = IDL.Record({ 'enabled' : IDL.Bool });
337
391
  const WorkerConfigOutcome = IDL.Record({
338
392
  'error' : IDL.Opt(IDL.Text),
@@ -342,7 +396,7 @@ export const idlFactory = ({ IDL }) => {
342
396
  'stored' : WorkerConfigArgs,
343
397
  'workers' : IDL.Vec(WorkerConfigOutcome),
344
398
  });
345
- const Result_17 = IDL.Variant({
399
+ const Result_18 = IDL.Variant({
346
400
  'Ok' : SetWorkerConfigResult,
347
401
  'Err' : CoordinatorError,
348
402
  });
@@ -350,7 +404,7 @@ export const idlFactory = ({ IDL }) => {
350
404
  'open' : IDL.Bool,
351
405
  'canister' : IDL.Principal,
352
406
  });
353
- const Result_18 = IDL.Variant({
407
+ const Result_19 = IDL.Variant({
354
408
  'Ok' : WorkerView,
355
409
  'Err' : CoordinatorError,
356
410
  });
@@ -358,16 +412,16 @@ export const idlFactory = ({ IDL }) => {
358
412
  'worker' : IDL.Principal,
359
413
  'prefixes' : IDL.Vec(IDL.Text),
360
414
  });
361
- const Result_19 = IDL.Variant({
415
+ const Result_20 = IDL.Variant({
362
416
  'Ok' : SplitResult,
363
417
  'Err' : CoordinatorError,
364
418
  });
365
- const Result_20 = IDL.Variant({ 'Ok' : IDL.Nat, 'Err' : CoordinatorError });
419
+ const Result_21 = IDL.Variant({ 'Ok' : IDL.Nat, 'Err' : CoordinatorError });
366
420
  const WasmChunkArgs = IDL.Record({
367
421
  'bytes' : IDL.Vec(IDL.Nat8),
368
422
  'index' : IDL.Nat32,
369
423
  });
370
- const Result_21 = IDL.Variant({ 'Ok' : IDL.Nat64, 'Err' : CoordinatorError });
424
+ const Result_22 = IDL.Variant({ 'Ok' : IDL.Nat64, 'Err' : CoordinatorError });
371
425
  return IDL.Service({
372
426
  'accountsCanisterFor' : IDL.Func(
373
427
  [IDL.Principal],
@@ -377,6 +431,7 @@ export const idlFactory = ({ IDL }) => {
377
431
  'addCoreAdmin' : IDL.Func([PrincipalArgs], [Result], []),
378
432
  'addDeployAdmin' : IDL.Func([PrincipalArgs], [Result_1], []),
379
433
  'assignPrefix' : IDL.Func([AssignPrefixArgs], [Result_2], []),
434
+ 'chatBillDue' : IDL.Func([ChatBillDue], [], []),
380
435
  'claimSuperadmin' : IDL.Func([], [Result_1], []),
381
436
  'commitCoreWasm' : IDL.Func([CommitWasmArgs], [Result_3], []),
382
437
  'commitWorkerWasm' : IDL.Func([CommitWasmArgs], [Result_3], []),
@@ -408,8 +463,9 @@ export const idlFactory = ({ IDL }) => {
408
463
  ['query'],
409
464
  ),
410
465
  'readQueryLoads' : IDL.Func([], [Result_12], []),
411
- 'refreshCore' : IDL.Func([], [Result_13], []),
412
- 'refreshWorker' : IDL.Func([CanisterArgs], [Result_14], []),
466
+ 'refreshChatLink' : IDL.Func([], [Result_13], []),
467
+ 'refreshCore' : IDL.Func([], [Result_14], []),
468
+ 'refreshWorker' : IDL.Func([CanisterArgs], [Result_15], []),
413
469
  'removeCoreAdmin' : IDL.Func([PrincipalArgs], [Result], []),
414
470
  'removeDeployAdmin' : IDL.Func([PrincipalArgs], [Result_1], []),
415
471
  'reportCoreLowCycles' : IDL.Func([ReportLowCyclesArgs], [], []),
@@ -418,21 +474,21 @@ export const idlFactory = ({ IDL }) => {
418
474
  'reportLowCycles' : IDL.Func([ReportLowCyclesArgs], [], []),
419
475
  'reportOutboxStuck' : IDL.Func([ReportOutboxStuckArgs], [], []),
420
476
  'requestSuperadmin' : IDL.Func([], [Result_1], []),
421
- 'resetGroup' : IDL.Func([], [Result_15], []),
422
- 'setConfig' : IDL.Func([SetConfigArgs], [Result_16], []),
477
+ 'resetGroup' : IDL.Func([], [Result_16], []),
478
+ 'setConfig' : IDL.Func([SetConfigArgs], [Result_17], []),
423
479
  'setCoreLoggingEnabled' : IDL.Func([CoreLoggingArgs], [Result_11], []),
424
- 'setFeeThresholds' : IDL.Func([FeeThresholds], [Result_16], []),
425
- 'setWorkerConfig' : IDL.Func([WorkerConfigArgs], [Result_17], []),
426
- 'setWorkerOpen' : IDL.Func([SetWorkerOpenArgs], [Result_18], []),
427
- 'splitWorker' : IDL.Func([CanisterArgs], [Result_19], []),
480
+ 'setFeeThresholds' : IDL.Func([FeeThresholds], [Result_17], []),
481
+ 'setWorkerConfig' : IDL.Func([WorkerConfigArgs], [Result_18], []),
482
+ 'setWorkerOpen' : IDL.Func([SetWorkerOpenArgs], [Result_19], []),
483
+ 'splitWorker' : IDL.Func([CanisterArgs], [Result_20], []),
428
484
  'takeCycles' : IDL.Func([], [IDL.Nat], []),
429
485
  'takeFeeCycles' : IDL.Func([], [IDL.Nat], []),
430
- 'topUpCore' : IDL.Func([], [Result_20], []),
431
- 'topUpWorker' : IDL.Func([CanisterArgs], [Result_20], []),
486
+ 'topUpCore' : IDL.Func([], [Result_21], []),
487
+ 'topUpWorker' : IDL.Func([CanisterArgs], [Result_21], []),
432
488
  'upgradeCore' : IDL.Func([], [Result_3], []),
433
489
  'upgradeWorker' : IDL.Func([CanisterArgs], [Result_3], []),
434
- 'uploadCoreWasmChunk' : IDL.Func([WasmChunkArgs], [Result_21], []),
435
- 'uploadWorkerWasmChunk' : IDL.Func([WasmChunkArgs], [Result_21], []),
490
+ 'uploadCoreWasmChunk' : IDL.Func([WasmChunkArgs], [Result_22], []),
491
+ 'uploadWorkerWasmChunk' : IDL.Func([WasmChunkArgs], [Result_22], []),
436
492
  'workerFor' : IDL.Func([IDL.Text], [IDL.Opt(IDL.Principal)], ['query']),
437
493
  });
438
494
  };