@replit/protocol 0.3.21 → 0.3.23

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.
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Flowtype definitions for index
3
3
  * Generated by Flowgen from a Typescript Definition
4
- * Flowgen v1.14.0
4
+ * Flowgen v1.14.1
5
5
  * @flow
6
6
  */
7
7
 
package/main/index.d.ts CHANGED
@@ -9517,6 +9517,9 @@ export namespace replit {
9517
9517
 
9518
9518
  /** RunMain runnerId */
9519
9519
  runnerId?: (string|null);
9520
+
9521
+ /** RunMain fromHosting */
9522
+ fromHosting?: (boolean|null);
9520
9523
  }
9521
9524
 
9522
9525
  /** Represents a RunMain. */
@@ -9540,6 +9543,9 @@ export namespace replit {
9540
9543
  /** RunMain runnerId. */
9541
9544
  public runnerId: string;
9542
9545
 
9546
+ /** RunMain fromHosting. */
9547
+ public fromHosting: boolean;
9548
+
9543
9549
  /**
9544
9550
  * Creates a new RunMain instance using the specified properties.
9545
9551
  * @param [properties] Properties to set
@@ -14071,6 +14077,9 @@ export namespace replit {
14071
14077
  /** PackageInstall fromHosting */
14072
14078
  fromHosting?: (boolean|null);
14073
14079
 
14080
+ /** PackageInstall disableGuess */
14081
+ disableGuess?: (boolean|null);
14082
+
14074
14083
  /** PackageInstall useNewResponse */
14075
14084
  useNewResponse?: (boolean|null);
14076
14085
  }
@@ -14087,6 +14096,9 @@ export namespace replit {
14087
14096
  /** PackageInstall fromHosting. */
14088
14097
  public fromHosting: boolean;
14089
14098
 
14099
+ /** PackageInstall disableGuess. */
14100
+ public disableGuess: boolean;
14101
+
14090
14102
  /** PackageInstall useNewResponse. */
14091
14103
  public useNewResponse: boolean;
14092
14104
 
@@ -14173,6 +14185,18 @@ export namespace replit {
14173
14185
 
14174
14186
  /** PackageInstallResponse guessedPkgs */
14175
14187
  guessedPkgs?: (string[]|null);
14188
+
14189
+ /** PackageInstallResponse upmGuessDurationMs */
14190
+ upmGuessDurationMs?: (number|null);
14191
+
14192
+ /** PackageInstallResponse upmAddDurationMs */
14193
+ upmAddDurationMs?: (number|null);
14194
+
14195
+ /** PackageInstallResponse upmLockDurationMs */
14196
+ upmLockDurationMs?: (number|null);
14197
+
14198
+ /** PackageInstallResponse totalDurationMs */
14199
+ totalDurationMs?: (number|null);
14176
14200
  }
14177
14201
 
14178
14202
  /** Represents a PackageInstallResponse. */
@@ -14187,6 +14211,18 @@ export namespace replit {
14187
14211
  /** PackageInstallResponse guessedPkgs. */
14188
14212
  public guessedPkgs: string[];
14189
14213
 
14214
+ /** PackageInstallResponse upmGuessDurationMs. */
14215
+ public upmGuessDurationMs: number;
14216
+
14217
+ /** PackageInstallResponse upmAddDurationMs. */
14218
+ public upmAddDurationMs: number;
14219
+
14220
+ /** PackageInstallResponse upmLockDurationMs. */
14221
+ public upmLockDurationMs: number;
14222
+
14223
+ /** PackageInstallResponse totalDurationMs. */
14224
+ public totalDurationMs: number;
14225
+
14190
14226
  /**
14191
14227
  * Creates a new PackageInstallResponse instance using the specified properties.
14192
14228
  * @param [properties] Properties to set
package/main/index.js CHANGED
@@ -25548,6 +25548,7 @@
25548
25548
  * @property {boolean|null} [idempotent] RunMain idempotent
25549
25549
  * @property {string|null} [filePath] RunMain filePath
25550
25550
  * @property {string|null} [runnerId] RunMain runnerId
25551
+ * @property {boolean|null} [fromHosting] RunMain fromHosting
25551
25552
  */
25552
25553
 
25553
25554
  /**
@@ -25596,6 +25597,14 @@
25596
25597
  */
25597
25598
  RunMain.prototype.runnerId = "";
25598
25599
 
25600
+ /**
25601
+ * RunMain fromHosting.
25602
+ * @member {boolean} fromHosting
25603
+ * @memberof replit.goval.api.RunMain
25604
+ * @instance
25605
+ */
25606
+ RunMain.prototype.fromHosting = false;
25607
+
25599
25608
  /**
25600
25609
  * Creates a new RunMain instance using the specified properties.
25601
25610
  * @function create
@@ -25628,6 +25637,8 @@
25628
25637
  writer.uint32(/* id 3, wireType 2 =*/26).string(message.filePath);
25629
25638
  if (message.runnerId != null && Object.hasOwnProperty.call(message, "runnerId"))
25630
25639
  writer.uint32(/* id 4, wireType 2 =*/34).string(message.runnerId);
25640
+ if (message.fromHosting != null && Object.hasOwnProperty.call(message, "fromHosting"))
25641
+ writer.uint32(/* id 5, wireType 0 =*/40).bool(message.fromHosting);
25631
25642
  return writer;
25632
25643
  };
25633
25644
 
@@ -25678,6 +25689,10 @@
25678
25689
  message.runnerId = reader.string();
25679
25690
  break;
25680
25691
  }
25692
+ case 5: {
25693
+ message.fromHosting = reader.bool();
25694
+ break;
25695
+ }
25681
25696
  default:
25682
25697
  reader.skipType(tag & 7);
25683
25698
  break;
@@ -25730,6 +25745,9 @@
25730
25745
  if (message.runnerId != null && message.hasOwnProperty("runnerId"))
25731
25746
  if (!$util.isString(message.runnerId))
25732
25747
  return "runnerId: string expected";
25748
+ if (message.fromHosting != null && message.hasOwnProperty("fromHosting"))
25749
+ if (typeof message.fromHosting !== "boolean")
25750
+ return "fromHosting: boolean expected";
25733
25751
  return null;
25734
25752
  };
25735
25753
 
@@ -25767,6 +25785,8 @@
25767
25785
  message.filePath = String(object.filePath);
25768
25786
  if (object.runnerId != null)
25769
25787
  message.runnerId = String(object.runnerId);
25788
+ if (object.fromHosting != null)
25789
+ message.fromHosting = Boolean(object.fromHosting);
25770
25790
  return message;
25771
25791
  };
25772
25792
 
@@ -25788,6 +25808,7 @@
25788
25808
  object.idempotent = false;
25789
25809
  object.filePath = "";
25790
25810
  object.runnerId = "";
25811
+ object.fromHosting = false;
25791
25812
  }
25792
25813
  if (message.runMode != null && message.hasOwnProperty("runMode"))
25793
25814
  object.runMode = options.enums === String ? $root.replit.goval.api.RunMain.RunMode[message.runMode] === undefined ? message.runMode : $root.replit.goval.api.RunMain.RunMode[message.runMode] : message.runMode;
@@ -25797,6 +25818,8 @@
25797
25818
  object.filePath = message.filePath;
25798
25819
  if (message.runnerId != null && message.hasOwnProperty("runnerId"))
25799
25820
  object.runnerId = message.runnerId;
25821
+ if (message.fromHosting != null && message.hasOwnProperty("fromHosting"))
25822
+ object.fromHosting = message.fromHosting;
25800
25823
  return object;
25801
25824
  };
25802
25825
 
@@ -36266,6 +36289,7 @@
36266
36289
  * @memberof replit.goval.api
36267
36290
  * @interface IPackageInstall
36268
36291
  * @property {boolean|null} [fromHosting] PackageInstall fromHosting
36292
+ * @property {boolean|null} [disableGuess] PackageInstall disableGuess
36269
36293
  * @property {boolean|null} [useNewResponse] PackageInstall useNewResponse
36270
36294
  */
36271
36295
 
@@ -36291,6 +36315,14 @@
36291
36315
  */
36292
36316
  PackageInstall.prototype.fromHosting = false;
36293
36317
 
36318
+ /**
36319
+ * PackageInstall disableGuess.
36320
+ * @member {boolean} disableGuess
36321
+ * @memberof replit.goval.api.PackageInstall
36322
+ * @instance
36323
+ */
36324
+ PackageInstall.prototype.disableGuess = false;
36325
+
36294
36326
  /**
36295
36327
  * PackageInstall useNewResponse.
36296
36328
  * @member {boolean} useNewResponse
@@ -36325,6 +36357,8 @@
36325
36357
  writer = $Writer.create();
36326
36358
  if (message.fromHosting != null && Object.hasOwnProperty.call(message, "fromHosting"))
36327
36359
  writer.uint32(/* id 1, wireType 0 =*/8).bool(message.fromHosting);
36360
+ if (message.disableGuess != null && Object.hasOwnProperty.call(message, "disableGuess"))
36361
+ writer.uint32(/* id 2, wireType 0 =*/16).bool(message.disableGuess);
36328
36362
  if (message.useNewResponse != null && Object.hasOwnProperty.call(message, "useNewResponse"))
36329
36363
  writer.uint32(/* id 99, wireType 0 =*/792).bool(message.useNewResponse);
36330
36364
  return writer;
@@ -36365,6 +36399,10 @@
36365
36399
  message.fromHosting = reader.bool();
36366
36400
  break;
36367
36401
  }
36402
+ case 2: {
36403
+ message.disableGuess = reader.bool();
36404
+ break;
36405
+ }
36368
36406
  case 99: {
36369
36407
  message.useNewResponse = reader.bool();
36370
36408
  break;
@@ -36407,6 +36445,9 @@
36407
36445
  if (message.fromHosting != null && message.hasOwnProperty("fromHosting"))
36408
36446
  if (typeof message.fromHosting !== "boolean")
36409
36447
  return "fromHosting: boolean expected";
36448
+ if (message.disableGuess != null && message.hasOwnProperty("disableGuess"))
36449
+ if (typeof message.disableGuess !== "boolean")
36450
+ return "disableGuess: boolean expected";
36410
36451
  if (message.useNewResponse != null && message.hasOwnProperty("useNewResponse"))
36411
36452
  if (typeof message.useNewResponse !== "boolean")
36412
36453
  return "useNewResponse: boolean expected";
@@ -36427,6 +36468,8 @@
36427
36468
  var message = new $root.replit.goval.api.PackageInstall();
36428
36469
  if (object.fromHosting != null)
36429
36470
  message.fromHosting = Boolean(object.fromHosting);
36471
+ if (object.disableGuess != null)
36472
+ message.disableGuess = Boolean(object.disableGuess);
36430
36473
  if (object.useNewResponse != null)
36431
36474
  message.useNewResponse = Boolean(object.useNewResponse);
36432
36475
  return message;
@@ -36447,10 +36490,13 @@
36447
36490
  var object = {};
36448
36491
  if (options.defaults) {
36449
36492
  object.fromHosting = false;
36493
+ object.disableGuess = false;
36450
36494
  object.useNewResponse = false;
36451
36495
  }
36452
36496
  if (message.fromHosting != null && message.hasOwnProperty("fromHosting"))
36453
36497
  object.fromHosting = message.fromHosting;
36498
+ if (message.disableGuess != null && message.hasOwnProperty("disableGuess"))
36499
+ object.disableGuess = message.disableGuess;
36454
36500
  if (message.useNewResponse != null && message.hasOwnProperty("useNewResponse"))
36455
36501
  object.useNewResponse = message.useNewResponse;
36456
36502
  return object;
@@ -36492,6 +36538,10 @@
36492
36538
  * @memberof replit.goval.api
36493
36539
  * @interface IPackageInstallResponse
36494
36540
  * @property {Array.<string>|null} [guessedPkgs] PackageInstallResponse guessedPkgs
36541
+ * @property {number|null} [upmGuessDurationMs] PackageInstallResponse upmGuessDurationMs
36542
+ * @property {number|null} [upmAddDurationMs] PackageInstallResponse upmAddDurationMs
36543
+ * @property {number|null} [upmLockDurationMs] PackageInstallResponse upmLockDurationMs
36544
+ * @property {number|null} [totalDurationMs] PackageInstallResponse totalDurationMs
36495
36545
  */
36496
36546
 
36497
36547
  /**
@@ -36517,6 +36567,38 @@
36517
36567
  */
36518
36568
  PackageInstallResponse.prototype.guessedPkgs = $util.emptyArray;
36519
36569
 
36570
+ /**
36571
+ * PackageInstallResponse upmGuessDurationMs.
36572
+ * @member {number} upmGuessDurationMs
36573
+ * @memberof replit.goval.api.PackageInstallResponse
36574
+ * @instance
36575
+ */
36576
+ PackageInstallResponse.prototype.upmGuessDurationMs = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
36577
+
36578
+ /**
36579
+ * PackageInstallResponse upmAddDurationMs.
36580
+ * @member {number} upmAddDurationMs
36581
+ * @memberof replit.goval.api.PackageInstallResponse
36582
+ * @instance
36583
+ */
36584
+ PackageInstallResponse.prototype.upmAddDurationMs = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
36585
+
36586
+ /**
36587
+ * PackageInstallResponse upmLockDurationMs.
36588
+ * @member {number} upmLockDurationMs
36589
+ * @memberof replit.goval.api.PackageInstallResponse
36590
+ * @instance
36591
+ */
36592
+ PackageInstallResponse.prototype.upmLockDurationMs = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
36593
+
36594
+ /**
36595
+ * PackageInstallResponse totalDurationMs.
36596
+ * @member {number} totalDurationMs
36597
+ * @memberof replit.goval.api.PackageInstallResponse
36598
+ * @instance
36599
+ */
36600
+ PackageInstallResponse.prototype.totalDurationMs = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
36601
+
36520
36602
  /**
36521
36603
  * Creates a new PackageInstallResponse instance using the specified properties.
36522
36604
  * @function create
@@ -36544,6 +36626,14 @@
36544
36626
  if (message.guessedPkgs != null && message.guessedPkgs.length)
36545
36627
  for (var i = 0; i < message.guessedPkgs.length; ++i)
36546
36628
  writer.uint32(/* id 1, wireType 2 =*/10).string(message.guessedPkgs[i]);
36629
+ if (message.upmGuessDurationMs != null && Object.hasOwnProperty.call(message, "upmGuessDurationMs"))
36630
+ writer.uint32(/* id 2, wireType 0 =*/16).int64(message.upmGuessDurationMs);
36631
+ if (message.upmAddDurationMs != null && Object.hasOwnProperty.call(message, "upmAddDurationMs"))
36632
+ writer.uint32(/* id 3, wireType 0 =*/24).int64(message.upmAddDurationMs);
36633
+ if (message.upmLockDurationMs != null && Object.hasOwnProperty.call(message, "upmLockDurationMs"))
36634
+ writer.uint32(/* id 4, wireType 0 =*/32).int64(message.upmLockDurationMs);
36635
+ if (message.totalDurationMs != null && Object.hasOwnProperty.call(message, "totalDurationMs"))
36636
+ writer.uint32(/* id 5, wireType 0 =*/40).int64(message.totalDurationMs);
36547
36637
  return writer;
36548
36638
  };
36549
36639
 
@@ -36584,6 +36674,22 @@
36584
36674
  message.guessedPkgs.push(reader.string());
36585
36675
  break;
36586
36676
  }
36677
+ case 2: {
36678
+ message.upmGuessDurationMs = reader.int64();
36679
+ break;
36680
+ }
36681
+ case 3: {
36682
+ message.upmAddDurationMs = reader.int64();
36683
+ break;
36684
+ }
36685
+ case 4: {
36686
+ message.upmLockDurationMs = reader.int64();
36687
+ break;
36688
+ }
36689
+ case 5: {
36690
+ message.totalDurationMs = reader.int64();
36691
+ break;
36692
+ }
36587
36693
  default:
36588
36694
  reader.skipType(tag & 7);
36589
36695
  break;
@@ -36626,6 +36732,18 @@
36626
36732
  if (!$util.isString(message.guessedPkgs[i]))
36627
36733
  return "guessedPkgs: string[] expected";
36628
36734
  }
36735
+ if (message.upmGuessDurationMs != null && message.hasOwnProperty("upmGuessDurationMs"))
36736
+ if (!$util.isInteger(message.upmGuessDurationMs) && !(message.upmGuessDurationMs && $util.isInteger(message.upmGuessDurationMs.low) && $util.isInteger(message.upmGuessDurationMs.high)))
36737
+ return "upmGuessDurationMs: integer|Long expected";
36738
+ if (message.upmAddDurationMs != null && message.hasOwnProperty("upmAddDurationMs"))
36739
+ if (!$util.isInteger(message.upmAddDurationMs) && !(message.upmAddDurationMs && $util.isInteger(message.upmAddDurationMs.low) && $util.isInteger(message.upmAddDurationMs.high)))
36740
+ return "upmAddDurationMs: integer|Long expected";
36741
+ if (message.upmLockDurationMs != null && message.hasOwnProperty("upmLockDurationMs"))
36742
+ if (!$util.isInteger(message.upmLockDurationMs) && !(message.upmLockDurationMs && $util.isInteger(message.upmLockDurationMs.low) && $util.isInteger(message.upmLockDurationMs.high)))
36743
+ return "upmLockDurationMs: integer|Long expected";
36744
+ if (message.totalDurationMs != null && message.hasOwnProperty("totalDurationMs"))
36745
+ if (!$util.isInteger(message.totalDurationMs) && !(message.totalDurationMs && $util.isInteger(message.totalDurationMs.low) && $util.isInteger(message.totalDurationMs.high)))
36746
+ return "totalDurationMs: integer|Long expected";
36629
36747
  return null;
36630
36748
  };
36631
36749
 
@@ -36648,6 +36766,42 @@
36648
36766
  for (var i = 0; i < object.guessedPkgs.length; ++i)
36649
36767
  message.guessedPkgs[i] = String(object.guessedPkgs[i]);
36650
36768
  }
36769
+ if (object.upmGuessDurationMs != null)
36770
+ if ($util.Long)
36771
+ (message.upmGuessDurationMs = $util.Long.fromValue(object.upmGuessDurationMs)).unsigned = false;
36772
+ else if (typeof object.upmGuessDurationMs === "string")
36773
+ message.upmGuessDurationMs = parseInt(object.upmGuessDurationMs, 10);
36774
+ else if (typeof object.upmGuessDurationMs === "number")
36775
+ message.upmGuessDurationMs = object.upmGuessDurationMs;
36776
+ else if (typeof object.upmGuessDurationMs === "object")
36777
+ message.upmGuessDurationMs = new $util.LongBits(object.upmGuessDurationMs.low >>> 0, object.upmGuessDurationMs.high >>> 0).toNumber();
36778
+ if (object.upmAddDurationMs != null)
36779
+ if ($util.Long)
36780
+ (message.upmAddDurationMs = $util.Long.fromValue(object.upmAddDurationMs)).unsigned = false;
36781
+ else if (typeof object.upmAddDurationMs === "string")
36782
+ message.upmAddDurationMs = parseInt(object.upmAddDurationMs, 10);
36783
+ else if (typeof object.upmAddDurationMs === "number")
36784
+ message.upmAddDurationMs = object.upmAddDurationMs;
36785
+ else if (typeof object.upmAddDurationMs === "object")
36786
+ message.upmAddDurationMs = new $util.LongBits(object.upmAddDurationMs.low >>> 0, object.upmAddDurationMs.high >>> 0).toNumber();
36787
+ if (object.upmLockDurationMs != null)
36788
+ if ($util.Long)
36789
+ (message.upmLockDurationMs = $util.Long.fromValue(object.upmLockDurationMs)).unsigned = false;
36790
+ else if (typeof object.upmLockDurationMs === "string")
36791
+ message.upmLockDurationMs = parseInt(object.upmLockDurationMs, 10);
36792
+ else if (typeof object.upmLockDurationMs === "number")
36793
+ message.upmLockDurationMs = object.upmLockDurationMs;
36794
+ else if (typeof object.upmLockDurationMs === "object")
36795
+ message.upmLockDurationMs = new $util.LongBits(object.upmLockDurationMs.low >>> 0, object.upmLockDurationMs.high >>> 0).toNumber();
36796
+ if (object.totalDurationMs != null)
36797
+ if ($util.Long)
36798
+ (message.totalDurationMs = $util.Long.fromValue(object.totalDurationMs)).unsigned = false;
36799
+ else if (typeof object.totalDurationMs === "string")
36800
+ message.totalDurationMs = parseInt(object.totalDurationMs, 10);
36801
+ else if (typeof object.totalDurationMs === "number")
36802
+ message.totalDurationMs = object.totalDurationMs;
36803
+ else if (typeof object.totalDurationMs === "object")
36804
+ message.totalDurationMs = new $util.LongBits(object.totalDurationMs.low >>> 0, object.totalDurationMs.high >>> 0).toNumber();
36651
36805
  return message;
36652
36806
  };
36653
36807
 
@@ -36666,11 +36820,53 @@
36666
36820
  var object = {};
36667
36821
  if (options.arrays || options.defaults)
36668
36822
  object.guessedPkgs = [];
36823
+ if (options.defaults) {
36824
+ if ($util.Long) {
36825
+ var long = new $util.Long(0, 0, false);
36826
+ object.upmGuessDurationMs = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
36827
+ } else
36828
+ object.upmGuessDurationMs = options.longs === String ? "0" : 0;
36829
+ if ($util.Long) {
36830
+ var long = new $util.Long(0, 0, false);
36831
+ object.upmAddDurationMs = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
36832
+ } else
36833
+ object.upmAddDurationMs = options.longs === String ? "0" : 0;
36834
+ if ($util.Long) {
36835
+ var long = new $util.Long(0, 0, false);
36836
+ object.upmLockDurationMs = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
36837
+ } else
36838
+ object.upmLockDurationMs = options.longs === String ? "0" : 0;
36839
+ if ($util.Long) {
36840
+ var long = new $util.Long(0, 0, false);
36841
+ object.totalDurationMs = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
36842
+ } else
36843
+ object.totalDurationMs = options.longs === String ? "0" : 0;
36844
+ }
36669
36845
  if (message.guessedPkgs && message.guessedPkgs.length) {
36670
36846
  object.guessedPkgs = [];
36671
36847
  for (var j = 0; j < message.guessedPkgs.length; ++j)
36672
36848
  object.guessedPkgs[j] = message.guessedPkgs[j];
36673
36849
  }
36850
+ if (message.upmGuessDurationMs != null && message.hasOwnProperty("upmGuessDurationMs"))
36851
+ if (typeof message.upmGuessDurationMs === "number")
36852
+ object.upmGuessDurationMs = options.longs === String ? String(message.upmGuessDurationMs) : message.upmGuessDurationMs;
36853
+ else
36854
+ object.upmGuessDurationMs = options.longs === String ? $util.Long.prototype.toString.call(message.upmGuessDurationMs) : options.longs === Number ? new $util.LongBits(message.upmGuessDurationMs.low >>> 0, message.upmGuessDurationMs.high >>> 0).toNumber() : message.upmGuessDurationMs;
36855
+ if (message.upmAddDurationMs != null && message.hasOwnProperty("upmAddDurationMs"))
36856
+ if (typeof message.upmAddDurationMs === "number")
36857
+ object.upmAddDurationMs = options.longs === String ? String(message.upmAddDurationMs) : message.upmAddDurationMs;
36858
+ else
36859
+ object.upmAddDurationMs = options.longs === String ? $util.Long.prototype.toString.call(message.upmAddDurationMs) : options.longs === Number ? new $util.LongBits(message.upmAddDurationMs.low >>> 0, message.upmAddDurationMs.high >>> 0).toNumber() : message.upmAddDurationMs;
36860
+ if (message.upmLockDurationMs != null && message.hasOwnProperty("upmLockDurationMs"))
36861
+ if (typeof message.upmLockDurationMs === "number")
36862
+ object.upmLockDurationMs = options.longs === String ? String(message.upmLockDurationMs) : message.upmLockDurationMs;
36863
+ else
36864
+ object.upmLockDurationMs = options.longs === String ? $util.Long.prototype.toString.call(message.upmLockDurationMs) : options.longs === Number ? new $util.LongBits(message.upmLockDurationMs.low >>> 0, message.upmLockDurationMs.high >>> 0).toNumber() : message.upmLockDurationMs;
36865
+ if (message.totalDurationMs != null && message.hasOwnProperty("totalDurationMs"))
36866
+ if (typeof message.totalDurationMs === "number")
36867
+ object.totalDurationMs = options.longs === String ? String(message.totalDurationMs) : message.totalDurationMs;
36868
+ else
36869
+ object.totalDurationMs = options.longs === String ? $util.Long.prototype.toString.call(message.totalDurationMs) : options.longs === Number ? new $util.LongBits(message.totalDurationMs.low >>> 0, message.totalDurationMs.high >>> 0).toNumber() : message.totalDurationMs;
36674
36870
  return object;
36675
36871
  };
36676
36872
 
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Flowtype definitions for index
3
3
  * Generated by Flowgen from a Typescript Definition
4
- * Flowgen v1.14.0
4
+ * Flowgen v1.14.1
5
5
  * @flow
6
6
  */
7
7
 
@@ -13961,6 +13961,11 @@ declare type replit$goval$api$IRunMain = {|
13961
13961
  * RunMain runnerId
13962
13962
  */
13963
13963
  runnerId?: string | null,
13964
+
13965
+ /**
13966
+ * RunMain fromHosting
13967
+ */
13968
+ fromHosting?: boolean | null,
13964
13969
  |};
13965
13970
 
13966
13971
  /**
@@ -13993,6 +13998,11 @@ declare class replit$goval$api$RunMain {
13993
13998
  */
13994
13999
  runnerId: string;
13995
14000
 
14001
+ /**
14002
+ * RunMain fromHosting.
14003
+ */
14004
+ fromHosting: boolean;
14005
+
13996
14006
  /**
13997
14007
  * Creates a new RunMain instance using the specified properties.
13998
14008
  * @param [properties] Properties to set
@@ -20057,6 +20067,11 @@ declare type replit$goval$api$IPackageInstall = {|
20057
20067
  */
20058
20068
  fromHosting?: boolean | null,
20059
20069
 
20070
+ /**
20071
+ * PackageInstall disableGuess
20072
+ */
20073
+ disableGuess?: boolean | null,
20074
+
20060
20075
  /**
20061
20076
  * PackageInstall useNewResponse
20062
20077
  */
@@ -20078,6 +20093,11 @@ declare class replit$goval$api$PackageInstall {
20078
20093
  */
20079
20094
  fromHosting: boolean;
20080
20095
 
20096
+ /**
20097
+ * PackageInstall disableGuess.
20098
+ */
20099
+ disableGuess: boolean;
20100
+
20081
20101
  /**
20082
20102
  * PackageInstall useNewResponse.
20083
20103
  */
@@ -20193,6 +20213,26 @@ declare type replit$goval$api$IPackageInstallResponse = {|
20193
20213
  * PackageInstallResponse guessedPkgs
20194
20214
  */
20195
20215
  guessedPkgs?: string[] | null,
20216
+
20217
+ /**
20218
+ * PackageInstallResponse upmGuessDurationMs
20219
+ */
20220
+ upmGuessDurationMs?: number | null,
20221
+
20222
+ /**
20223
+ * PackageInstallResponse upmAddDurationMs
20224
+ */
20225
+ upmAddDurationMs?: number | null,
20226
+
20227
+ /**
20228
+ * PackageInstallResponse upmLockDurationMs
20229
+ */
20230
+ upmLockDurationMs?: number | null,
20231
+
20232
+ /**
20233
+ * PackageInstallResponse totalDurationMs
20234
+ */
20235
+ totalDurationMs?: number | null,
20196
20236
  |};
20197
20237
 
20198
20238
  /**
@@ -20210,6 +20250,26 @@ declare class replit$goval$api$PackageInstallResponse {
20210
20250
  */
20211
20251
  guessedPkgs: string[];
20212
20252
 
20253
+ /**
20254
+ * PackageInstallResponse upmGuessDurationMs.
20255
+ */
20256
+ upmGuessDurationMs: number;
20257
+
20258
+ /**
20259
+ * PackageInstallResponse upmAddDurationMs.
20260
+ */
20261
+ upmAddDurationMs: number;
20262
+
20263
+ /**
20264
+ * PackageInstallResponse upmLockDurationMs.
20265
+ */
20266
+ upmLockDurationMs: number;
20267
+
20268
+ /**
20269
+ * PackageInstallResponse totalDurationMs.
20270
+ */
20271
+ totalDurationMs: number;
20272
+
20213
20273
  /**
20214
20274
  * Creates a new PackageInstallResponse instance using the specified properties.
20215
20275
  * @param [properties] Properties to set
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@replit/protocol",
3
- "version": "0.3.21",
3
+ "version": "0.3.23",
4
4
  "description": "JavaScript bindings for the Replit protocol",
5
5
  "main": "main/index.js",
6
6
  "repository": "https://github.com/replit/protocol",