@replit/protocol 0.2.94 → 0.2.96

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/main/index.js CHANGED
@@ -50713,6 +50713,7 @@
50713
50713
  * @property {Array.<string>|null} [flags] ReplToken flags
50714
50714
  * @property {replit.goval.api.repl.Permissions|replit.goval.api.repl.IPermissions|null} [permissions] ReplToken permissions
50715
50715
  * @property {Array.<replit.goval.api.features.Feature|replit.goval.api.features.IFeature>|null} [features] ReplToken features
50716
+ * @property {replit.goval.api.repl.BuildInfo|replit.goval.api.repl.IBuildInfo|null} [buildInfo] ReplToken buildInfo
50716
50717
  */
50717
50718
 
50718
50719
  /**
@@ -50851,6 +50852,14 @@
50851
50852
  */
50852
50853
  ReplToken.prototype.features = $util.emptyArray;
50853
50854
 
50855
+ /**
50856
+ * ReplToken buildInfo.
50857
+ * @member {replit.goval.api.repl.BuildInfo|null|undefined} buildInfo
50858
+ * @memberof replit.goval.api.ReplToken
50859
+ * @instance
50860
+ */
50861
+ ReplToken.prototype.buildInfo = null;
50862
+
50854
50863
  // OneOf field names bound to virtual getters and setters
50855
50864
  var $oneOfFields;
50856
50865
 
@@ -50921,6 +50930,8 @@
50921
50930
  $root.replit.goval.api.features.Feature.encode(message.features[i], writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim();
50922
50931
  if (message.interactiveResourceLimits != null && Object.hasOwnProperty.call(message, "interactiveResourceLimits"))
50923
50932
  $root.replit.goval.api.repl.ResourceLimits.encode(message.interactiveResourceLimits, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim();
50933
+ if (message.buildInfo != null && Object.hasOwnProperty.call(message, "buildInfo"))
50934
+ $root.replit.goval.api.repl.BuildInfo.encode(message.buildInfo, writer.uint32(/* id 18, wireType 2 =*/146).fork()).ldelim();
50924
50935
  return writer;
50925
50936
  };
50926
50937
 
@@ -51004,6 +51015,9 @@
51004
51015
  message.features = [];
51005
51016
  message.features.push($root.replit.goval.api.features.Feature.decode(reader, reader.uint32()));
51006
51017
  break;
51018
+ case 18:
51019
+ message.buildInfo = $root.replit.goval.api.repl.BuildInfo.decode(reader, reader.uint32());
51020
+ break;
51007
51021
  default:
51008
51022
  reader.skipType(tag & 7);
51009
51023
  break;
@@ -51138,6 +51152,11 @@
51138
51152
  return "features." + error;
51139
51153
  }
51140
51154
  }
51155
+ if (message.buildInfo != null && message.hasOwnProperty("buildInfo")) {
51156
+ var error = $root.replit.goval.api.repl.BuildInfo.verify(message.buildInfo);
51157
+ if (error)
51158
+ return "buildInfo." + error;
51159
+ }
51141
51160
  return null;
51142
51161
  };
51143
51162
 
@@ -51247,6 +51266,11 @@
51247
51266
  message.features[i] = $root.replit.goval.api.features.Feature.fromObject(object.features[i]);
51248
51267
  }
51249
51268
  }
51269
+ if (object.buildInfo != null) {
51270
+ if (typeof object.buildInfo !== "object")
51271
+ throw TypeError(".replit.goval.api.ReplToken.buildInfo: object expected");
51272
+ message.buildInfo = $root.replit.goval.api.repl.BuildInfo.fromObject(object.buildInfo);
51273
+ }
51250
51274
  return message;
51251
51275
  };
51252
51276
 
@@ -51278,6 +51302,7 @@
51278
51302
  object.presenced = null;
51279
51303
  object.permissions = null;
51280
51304
  object.interactiveResourceLimits = null;
51305
+ object.buildInfo = null;
51281
51306
  }
51282
51307
  if (message.iat != null && message.hasOwnProperty("iat"))
51283
51308
  object.iat = $root.google.protobuf.Timestamp.toObject(message.iat, options);
@@ -51324,6 +51349,8 @@
51324
51349
  }
51325
51350
  if (message.interactiveResourceLimits != null && message.hasOwnProperty("interactiveResourceLimits"))
51326
51351
  object.interactiveResourceLimits = $root.replit.goval.api.repl.ResourceLimits.toObject(message.interactiveResourceLimits, options);
51352
+ if (message.buildInfo != null && message.hasOwnProperty("buildInfo"))
51353
+ object.buildInfo = $root.replit.goval.api.repl.BuildInfo.toObject(message.buildInfo, options);
51327
51354
  return object;
51328
51355
  };
51329
51356
 
@@ -58349,6 +58376,7 @@
58349
58376
  * @property {string|null} [sourceRepl] Repl sourceRepl
58350
58377
  * @property {string|null} [database] Repl database
58351
58378
  * @property {replit.goval.api.repl.Buckets|replit.goval.api.repl.IBuckets|null} [buckets] Repl buckets
58379
+ * @property {replit.goval.api.repl.UserId|replit.goval.api.repl.IUserId|null} [userId] Repl userId
58352
58380
  */
58353
58381
 
58354
58382
  /**
@@ -58429,6 +58457,14 @@
58429
58457
  */
58430
58458
  Repl.prototype.buckets = null;
58431
58459
 
58460
+ /**
58461
+ * Repl userId.
58462
+ * @member {replit.goval.api.repl.UserId|null|undefined} userId
58463
+ * @memberof replit.goval.api.repl.Repl
58464
+ * @instance
58465
+ */
58466
+ Repl.prototype.userId = null;
58467
+
58432
58468
  /**
58433
58469
  * Creates a new Repl instance using the specified properties.
58434
58470
  * @function create
@@ -58469,6 +58505,8 @@
58469
58505
  writer.uint32(/* id 7, wireType 2 =*/58).string(message.database);
58470
58506
  if (message.buckets != null && Object.hasOwnProperty.call(message, "buckets"))
58471
58507
  $root.replit.goval.api.repl.Buckets.encode(message.buckets, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
58508
+ if (message.userId != null && Object.hasOwnProperty.call(message, "userId"))
58509
+ $root.replit.goval.api.repl.UserId.encode(message.userId, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim();
58472
58510
  return writer;
58473
58511
  };
58474
58512
 
@@ -58527,6 +58565,9 @@
58527
58565
  case 8:
58528
58566
  message.buckets = $root.replit.goval.api.repl.Buckets.decode(reader, reader.uint32());
58529
58567
  break;
58568
+ case 9:
58569
+ message.userId = $root.replit.goval.api.repl.UserId.decode(reader, reader.uint32());
58570
+ break;
58530
58571
  default:
58531
58572
  reader.skipType(tag & 7);
58532
58573
  break;
@@ -58588,6 +58629,11 @@
58588
58629
  if (error)
58589
58630
  return "buckets." + error;
58590
58631
  }
58632
+ if (message.userId != null && message.hasOwnProperty("userId")) {
58633
+ var error = $root.replit.goval.api.repl.UserId.verify(message.userId);
58634
+ if (error)
58635
+ return "userId." + error;
58636
+ }
58591
58637
  return null;
58592
58638
  };
58593
58639
 
@@ -58622,6 +58668,11 @@
58622
58668
  throw TypeError(".replit.goval.api.repl.Repl.buckets: object expected");
58623
58669
  message.buckets = $root.replit.goval.api.repl.Buckets.fromObject(object.buckets);
58624
58670
  }
58671
+ if (object.userId != null) {
58672
+ if (typeof object.userId !== "object")
58673
+ throw TypeError(".replit.goval.api.repl.Repl.userId: object expected");
58674
+ message.userId = $root.replit.goval.api.repl.UserId.fromObject(object.userId);
58675
+ }
58625
58676
  return message;
58626
58677
  };
58627
58678
 
@@ -58647,6 +58698,7 @@
58647
58698
  object.sourceRepl = "";
58648
58699
  object.database = "";
58649
58700
  object.buckets = null;
58701
+ object.userId = null;
58650
58702
  }
58651
58703
  if (message.id != null && message.hasOwnProperty("id"))
58652
58704
  object.id = message.id;
@@ -58664,6 +58716,8 @@
58664
58716
  object.database = message.database;
58665
58717
  if (message.buckets != null && message.hasOwnProperty("buckets"))
58666
58718
  object.buckets = $root.replit.goval.api.repl.Buckets.toObject(message.buckets, options);
58719
+ if (message.userId != null && message.hasOwnProperty("userId"))
58720
+ object.userId = $root.replit.goval.api.repl.UserId.toObject(message.userId, options);
58667
58721
  return object;
58668
58722
  };
58669
58723
 
@@ -58681,6 +58735,256 @@
58681
58735
  return Repl;
58682
58736
  })();
58683
58737
 
58738
+ /**
58739
+ * Environment enum.
58740
+ * @name replit.goval.api.repl.Environment
58741
+ * @enum {number}
58742
+ * @property {number} DEVELOPMENT=0 DEVELOPMENT value
58743
+ * @property {number} PRODUCTION=1 PRODUCTION value
58744
+ */
58745
+ repl.Environment = (function() {
58746
+ var valuesById = {}, values = Object.create(valuesById);
58747
+ values[valuesById[0] = "DEVELOPMENT"] = 0;
58748
+ values[valuesById[1] = "PRODUCTION"] = 1;
58749
+ return values;
58750
+ })();
58751
+
58752
+ repl.UserId = (function() {
58753
+
58754
+ /**
58755
+ * Properties of a UserId.
58756
+ * @memberof replit.goval.api.repl
58757
+ * @interface IUserId
58758
+ * @property {number|null} [id] UserId id
58759
+ * @property {replit.goval.api.repl.Environment|null} [environment] UserId environment
58760
+ */
58761
+
58762
+ /**
58763
+ * Constructs a new UserId.
58764
+ * @memberof replit.goval.api.repl
58765
+ * @classdesc Represents a UserId.
58766
+ * @constructor
58767
+ * @param {replit.goval.api.repl.IUserId=} [properties] Properties to set
58768
+ */
58769
+ function UserId(properties) {
58770
+ if (properties)
58771
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
58772
+ if (properties[keys[i]] != null)
58773
+ this[keys[i]] = properties[keys[i]];
58774
+ }
58775
+
58776
+ /**
58777
+ * UserId id.
58778
+ * @member {number} id
58779
+ * @memberof replit.goval.api.repl.UserId
58780
+ * @instance
58781
+ */
58782
+ UserId.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
58783
+
58784
+ /**
58785
+ * UserId environment.
58786
+ * @member {replit.goval.api.repl.Environment} environment
58787
+ * @memberof replit.goval.api.repl.UserId
58788
+ * @instance
58789
+ */
58790
+ UserId.prototype.environment = 0;
58791
+
58792
+ /**
58793
+ * Creates a new UserId instance using the specified properties.
58794
+ * @function create
58795
+ * @memberof replit.goval.api.repl.UserId
58796
+ * @static
58797
+ * @param {replit.goval.api.repl.IUserId=} [properties] Properties to set
58798
+ * @returns {replit.goval.api.repl.UserId} UserId instance
58799
+ */
58800
+ UserId.create = function create(properties) {
58801
+ return UserId.fromObject(properties);
58802
+ };
58803
+
58804
+ /**
58805
+ * Encodes the specified UserId message. Does not implicitly {@link replit.goval.api.repl.UserId.verify|verify} messages.
58806
+ * @function encode
58807
+ * @memberof replit.goval.api.repl.UserId
58808
+ * @static
58809
+ * @param {replit.goval.api.repl.UserId} message UserId message or plain object to encode
58810
+ * @param {$protobuf.Writer} [writer] Writer to encode to
58811
+ * @returns {$protobuf.Writer} Writer
58812
+ */
58813
+ UserId.encode = function encode(message, writer) {
58814
+ if (!writer)
58815
+ writer = $Writer.create();
58816
+ if (message.id != null && Object.hasOwnProperty.call(message, "id"))
58817
+ writer.uint32(/* id 1, wireType 0 =*/8).int64(message.id);
58818
+ if (message.environment != null && Object.hasOwnProperty.call(message, "environment"))
58819
+ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.environment);
58820
+ return writer;
58821
+ };
58822
+
58823
+ /**
58824
+ * Encodes the specified UserId message, length delimited. Does not implicitly {@link replit.goval.api.repl.UserId.verify|verify} messages.
58825
+ * @function encodeDelimited
58826
+ * @memberof replit.goval.api.repl.UserId
58827
+ * @static
58828
+ * @param {replit.goval.api.repl.UserId} message UserId message or plain object to encode
58829
+ * @param {$protobuf.Writer} [writer] Writer to encode to
58830
+ * @returns {$protobuf.Writer} Writer
58831
+ */
58832
+ UserId.encodeDelimited = function encodeDelimited(message, writer) {
58833
+ return this.encode(message, writer).ldelim();
58834
+ };
58835
+
58836
+ /**
58837
+ * Decodes a UserId message from the specified reader or buffer.
58838
+ * @function decode
58839
+ * @memberof replit.goval.api.repl.UserId
58840
+ * @static
58841
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
58842
+ * @param {number} [length] Message length if known beforehand
58843
+ * @returns {replit.goval.api.repl.UserId} UserId
58844
+ * @throws {Error} If the payload is not a reader or valid buffer
58845
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
58846
+ */
58847
+ UserId.decode = function decode(reader, length) {
58848
+ if (!(reader instanceof $Reader))
58849
+ reader = $Reader.create(reader);
58850
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.repl.UserId();
58851
+ while (reader.pos < end) {
58852
+ var tag = reader.uint32();
58853
+ switch (tag >>> 3) {
58854
+ case 1:
58855
+ message.id = reader.int64();
58856
+ break;
58857
+ case 2:
58858
+ message.environment = reader.int32();
58859
+ break;
58860
+ default:
58861
+ reader.skipType(tag & 7);
58862
+ break;
58863
+ }
58864
+ }
58865
+ return message;
58866
+ };
58867
+
58868
+ /**
58869
+ * Decodes a UserId message from the specified reader or buffer, length delimited.
58870
+ * @function decodeDelimited
58871
+ * @memberof replit.goval.api.repl.UserId
58872
+ * @static
58873
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
58874
+ * @returns {replit.goval.api.repl.UserId} UserId
58875
+ * @throws {Error} If the payload is not a reader or valid buffer
58876
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
58877
+ */
58878
+ UserId.decodeDelimited = function decodeDelimited(reader) {
58879
+ if (!(reader instanceof $Reader))
58880
+ reader = new $Reader(reader);
58881
+ return this.decode(reader, reader.uint32());
58882
+ };
58883
+
58884
+ /**
58885
+ * Verifies a UserId message.
58886
+ * @function verify
58887
+ * @memberof replit.goval.api.repl.UserId
58888
+ * @static
58889
+ * @param {Object.<string,*>} message Plain object to verify
58890
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
58891
+ */
58892
+ UserId.verify = function verify(message) {
58893
+ if (typeof message !== "object" || message === null)
58894
+ return "object expected";
58895
+ if (message.id != null && message.hasOwnProperty("id"))
58896
+ if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high)))
58897
+ return "id: integer|Long expected";
58898
+ if (message.environment != null && message.hasOwnProperty("environment"))
58899
+ switch (message.environment) {
58900
+ default:
58901
+ return "environment: enum value expected";
58902
+ case 0:
58903
+ case 1:
58904
+ break;
58905
+ }
58906
+ return null;
58907
+ };
58908
+
58909
+ /**
58910
+ * Creates a UserId message from a plain object. Also converts values to their respective internal types.
58911
+ * @function fromObject
58912
+ * @memberof replit.goval.api.repl.UserId
58913
+ * @static
58914
+ * @param {Object.<string,*>} object Plain object
58915
+ * @returns {replit.goval.api.repl.UserId} UserId
58916
+ */
58917
+ UserId.fromObject = function fromObject(object) {
58918
+ if (object instanceof $root.replit.goval.api.repl.UserId)
58919
+ return object;
58920
+ var message = new $root.replit.goval.api.repl.UserId();
58921
+ if (object.id != null)
58922
+ if ($util.Long)
58923
+ (message.id = $util.Long.fromValue(object.id)).unsigned = false;
58924
+ else if (typeof object.id === "string")
58925
+ message.id = parseInt(object.id, 10);
58926
+ else if (typeof object.id === "number")
58927
+ message.id = object.id;
58928
+ else if (typeof object.id === "object")
58929
+ message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber();
58930
+ switch (object.environment) {
58931
+ case "DEVELOPMENT":
58932
+ case 0:
58933
+ message.environment = 0;
58934
+ break;
58935
+ case "PRODUCTION":
58936
+ case 1:
58937
+ message.environment = 1;
58938
+ break;
58939
+ }
58940
+ return message;
58941
+ };
58942
+
58943
+ /**
58944
+ * Creates a plain object from a UserId message. Also converts values to other types if specified.
58945
+ * @function toObject
58946
+ * @memberof replit.goval.api.repl.UserId
58947
+ * @static
58948
+ * @param {replit.goval.api.repl.UserId} message UserId
58949
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
58950
+ * @returns {Object.<string,*>} Plain object
58951
+ */
58952
+ UserId.toObject = function toObject(message, options) {
58953
+ if (!options)
58954
+ options = {};
58955
+ var object = {};
58956
+ if (options.defaults) {
58957
+ if ($util.Long) {
58958
+ var long = new $util.Long(0, 0, false);
58959
+ object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
58960
+ } else
58961
+ object.id = options.longs === String ? "0" : 0;
58962
+ object.environment = options.enums === String ? "DEVELOPMENT" : 0;
58963
+ }
58964
+ if (message.id != null && message.hasOwnProperty("id"))
58965
+ if (typeof message.id === "number")
58966
+ object.id = options.longs === String ? String(message.id) : message.id;
58967
+ else
58968
+ object.id = options.longs === String ? $util.Long.prototype.toString.call(message.id) : options.longs === Number ? new $util.LongBits(message.id.low >>> 0, message.id.high >>> 0).toNumber() : message.id;
58969
+ if (message.environment != null && message.hasOwnProperty("environment"))
58970
+ object.environment = options.enums === String ? $root.replit.goval.api.repl.Environment[message.environment] : message.environment;
58971
+ return object;
58972
+ };
58973
+
58974
+ /**
58975
+ * Converts this UserId to JSON.
58976
+ * @function toJSON
58977
+ * @memberof replit.goval.api.repl.UserId
58978
+ * @instance
58979
+ * @returns {Object.<string,*>} JSON object
58980
+ */
58981
+ UserId.prototype.toJSON = function toJSON() {
58982
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
58983
+ };
58984
+
58985
+ return UserId;
58986
+ })();
58987
+
58684
58988
  repl.ResourceLimits = (function() {
58685
58989
 
58686
58990
  /**
@@ -59301,6 +59605,7 @@
59301
59605
  * @property {Array.<string>|null} [flags] Metadata flags
59302
59606
  * @property {replit.goval.api.repl.Permissions|replit.goval.api.repl.IPermissions|null} [permissions] Metadata permissions
59303
59607
  * @property {Array.<replit.goval.api.features.Feature|replit.goval.api.features.IFeature>|null} [features] Metadata features
59608
+ * @property {replit.goval.api.repl.BuildInfo|replit.goval.api.repl.IBuildInfo|null} [buildInfo] Metadata buildInfo
59304
59609
  */
59305
59610
 
59306
59611
  /**
@@ -59375,6 +59680,14 @@
59375
59680
  */
59376
59681
  Metadata.prototype.features = $util.emptyArray;
59377
59682
 
59683
+ /**
59684
+ * Metadata buildInfo.
59685
+ * @member {replit.goval.api.repl.BuildInfo|null|undefined} buildInfo
59686
+ * @memberof replit.goval.api.repl.Metadata
59687
+ * @instance
59688
+ */
59689
+ Metadata.prototype.buildInfo = null;
59690
+
59378
59691
  /**
59379
59692
  * Creates a new Metadata instance using the specified properties.
59380
59693
  * @function create
@@ -59415,6 +59728,8 @@
59415
59728
  $root.replit.goval.api.features.Feature.encode(message.features[i], writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim();
59416
59729
  if (message.interactiveResourceLimits != null && Object.hasOwnProperty.call(message, "interactiveResourceLimits"))
59417
59730
  $root.replit.goval.api.repl.ResourceLimits.encode(message.interactiveResourceLimits, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim();
59731
+ if (message.buildInfo != null && Object.hasOwnProperty.call(message, "buildInfo"))
59732
+ $root.replit.goval.api.repl.BuildInfo.encode(message.buildInfo, writer.uint32(/* id 18, wireType 2 =*/146).fork()).ldelim();
59418
59733
  return writer;
59419
59734
  };
59420
59735
 
@@ -59474,6 +59789,9 @@
59474
59789
  message.features = [];
59475
59790
  message.features.push($root.replit.goval.api.features.Feature.decode(reader, reader.uint32()));
59476
59791
  break;
59792
+ case 18:
59793
+ message.buildInfo = $root.replit.goval.api.repl.BuildInfo.decode(reader, reader.uint32());
59794
+ break;
59477
59795
  default:
59478
59796
  reader.skipType(tag & 7);
59479
59797
  break;
@@ -59555,6 +59873,11 @@
59555
59873
  return "features." + error;
59556
59874
  }
59557
59875
  }
59876
+ if (message.buildInfo != null && message.hasOwnProperty("buildInfo")) {
59877
+ var error = $root.replit.goval.api.repl.BuildInfo.verify(message.buildInfo);
59878
+ if (error)
59879
+ return "buildInfo." + error;
59880
+ }
59558
59881
  return null;
59559
59882
  };
59560
59883
 
@@ -59625,6 +59948,11 @@
59625
59948
  message.features[i] = $root.replit.goval.api.features.Feature.fromObject(object.features[i]);
59626
59949
  }
59627
59950
  }
59951
+ if (object.buildInfo != null) {
59952
+ if (typeof object.buildInfo !== "object")
59953
+ throw TypeError(".replit.goval.api.repl.Metadata.buildInfo: object expected");
59954
+ message.buildInfo = $root.replit.goval.api.repl.BuildInfo.fromObject(object.buildInfo);
59955
+ }
59628
59956
  return message;
59629
59957
  };
59630
59958
 
@@ -59651,6 +59979,7 @@
59651
59979
  object.resourceLimits = null;
59652
59980
  object.permissions = null;
59653
59981
  object.interactiveResourceLimits = null;
59982
+ object.buildInfo = null;
59654
59983
  }
59655
59984
  if (message.persistence != null && message.hasOwnProperty("persistence"))
59656
59985
  object.persistence = options.enums === String ? $root.replit.goval.api.repl.Persistence[message.persistence] : message.persistence;
@@ -59672,6 +60001,8 @@
59672
60001
  }
59673
60002
  if (message.interactiveResourceLimits != null && message.hasOwnProperty("interactiveResourceLimits"))
59674
60003
  object.interactiveResourceLimits = $root.replit.goval.api.repl.ResourceLimits.toObject(message.interactiveResourceLimits, options);
60004
+ if (message.buildInfo != null && message.hasOwnProperty("buildInfo"))
60005
+ object.buildInfo = $root.replit.goval.api.repl.BuildInfo.toObject(message.buildInfo, options);
59675
60006
  return object;
59676
60007
  };
59677
60008
 
@@ -59689,6 +60020,215 @@
59689
60020
  return Metadata;
59690
60021
  })();
59691
60022
 
60023
+ repl.BuildInfo = (function() {
60024
+
60025
+ /**
60026
+ * Properties of a BuildInfo.
60027
+ * @memberof replit.goval.api.repl
60028
+ * @interface IBuildInfo
60029
+ * @property {string|null} [id] BuildInfo id
60030
+ * @property {string|null} [url] BuildInfo url
60031
+ */
60032
+
60033
+ /**
60034
+ * Constructs a new BuildInfo.
60035
+ * @memberof replit.goval.api.repl
60036
+ * @classdesc Represents a BuildInfo.
60037
+ * @constructor
60038
+ * @param {replit.goval.api.repl.IBuildInfo=} [properties] Properties to set
60039
+ */
60040
+ function BuildInfo(properties) {
60041
+ if (properties)
60042
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
60043
+ if (properties[keys[i]] != null)
60044
+ this[keys[i]] = properties[keys[i]];
60045
+ }
60046
+
60047
+ /**
60048
+ * BuildInfo id.
60049
+ * @member {string} id
60050
+ * @memberof replit.goval.api.repl.BuildInfo
60051
+ * @instance
60052
+ */
60053
+ BuildInfo.prototype.id = "";
60054
+
60055
+ /**
60056
+ * BuildInfo url.
60057
+ * @member {string} url
60058
+ * @memberof replit.goval.api.repl.BuildInfo
60059
+ * @instance
60060
+ */
60061
+ BuildInfo.prototype.url = "";
60062
+
60063
+ /**
60064
+ * Creates a new BuildInfo instance using the specified properties.
60065
+ * @function create
60066
+ * @memberof replit.goval.api.repl.BuildInfo
60067
+ * @static
60068
+ * @param {replit.goval.api.repl.IBuildInfo=} [properties] Properties to set
60069
+ * @returns {replit.goval.api.repl.BuildInfo} BuildInfo instance
60070
+ */
60071
+ BuildInfo.create = function create(properties) {
60072
+ return BuildInfo.fromObject(properties);
60073
+ };
60074
+
60075
+ /**
60076
+ * Encodes the specified BuildInfo message. Does not implicitly {@link replit.goval.api.repl.BuildInfo.verify|verify} messages.
60077
+ * @function encode
60078
+ * @memberof replit.goval.api.repl.BuildInfo
60079
+ * @static
60080
+ * @param {replit.goval.api.repl.BuildInfo} message BuildInfo message or plain object to encode
60081
+ * @param {$protobuf.Writer} [writer] Writer to encode to
60082
+ * @returns {$protobuf.Writer} Writer
60083
+ */
60084
+ BuildInfo.encode = function encode(message, writer) {
60085
+ if (!writer)
60086
+ writer = $Writer.create();
60087
+ if (message.id != null && Object.hasOwnProperty.call(message, "id"))
60088
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.id);
60089
+ if (message.url != null && Object.hasOwnProperty.call(message, "url"))
60090
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.url);
60091
+ return writer;
60092
+ };
60093
+
60094
+ /**
60095
+ * Encodes the specified BuildInfo message, length delimited. Does not implicitly {@link replit.goval.api.repl.BuildInfo.verify|verify} messages.
60096
+ * @function encodeDelimited
60097
+ * @memberof replit.goval.api.repl.BuildInfo
60098
+ * @static
60099
+ * @param {replit.goval.api.repl.BuildInfo} message BuildInfo message or plain object to encode
60100
+ * @param {$protobuf.Writer} [writer] Writer to encode to
60101
+ * @returns {$protobuf.Writer} Writer
60102
+ */
60103
+ BuildInfo.encodeDelimited = function encodeDelimited(message, writer) {
60104
+ return this.encode(message, writer).ldelim();
60105
+ };
60106
+
60107
+ /**
60108
+ * Decodes a BuildInfo message from the specified reader or buffer.
60109
+ * @function decode
60110
+ * @memberof replit.goval.api.repl.BuildInfo
60111
+ * @static
60112
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
60113
+ * @param {number} [length] Message length if known beforehand
60114
+ * @returns {replit.goval.api.repl.BuildInfo} BuildInfo
60115
+ * @throws {Error} If the payload is not a reader or valid buffer
60116
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
60117
+ */
60118
+ BuildInfo.decode = function decode(reader, length) {
60119
+ if (!(reader instanceof $Reader))
60120
+ reader = $Reader.create(reader);
60121
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.repl.BuildInfo();
60122
+ while (reader.pos < end) {
60123
+ var tag = reader.uint32();
60124
+ switch (tag >>> 3) {
60125
+ case 1:
60126
+ message.id = reader.string();
60127
+ break;
60128
+ case 2:
60129
+ message.url = reader.string();
60130
+ break;
60131
+ default:
60132
+ reader.skipType(tag & 7);
60133
+ break;
60134
+ }
60135
+ }
60136
+ return message;
60137
+ };
60138
+
60139
+ /**
60140
+ * Decodes a BuildInfo message from the specified reader or buffer, length delimited.
60141
+ * @function decodeDelimited
60142
+ * @memberof replit.goval.api.repl.BuildInfo
60143
+ * @static
60144
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
60145
+ * @returns {replit.goval.api.repl.BuildInfo} BuildInfo
60146
+ * @throws {Error} If the payload is not a reader or valid buffer
60147
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
60148
+ */
60149
+ BuildInfo.decodeDelimited = function decodeDelimited(reader) {
60150
+ if (!(reader instanceof $Reader))
60151
+ reader = new $Reader(reader);
60152
+ return this.decode(reader, reader.uint32());
60153
+ };
60154
+
60155
+ /**
60156
+ * Verifies a BuildInfo message.
60157
+ * @function verify
60158
+ * @memberof replit.goval.api.repl.BuildInfo
60159
+ * @static
60160
+ * @param {Object.<string,*>} message Plain object to verify
60161
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
60162
+ */
60163
+ BuildInfo.verify = function verify(message) {
60164
+ if (typeof message !== "object" || message === null)
60165
+ return "object expected";
60166
+ if (message.id != null && message.hasOwnProperty("id"))
60167
+ if (!$util.isString(message.id))
60168
+ return "id: string expected";
60169
+ if (message.url != null && message.hasOwnProperty("url"))
60170
+ if (!$util.isString(message.url))
60171
+ return "url: string expected";
60172
+ return null;
60173
+ };
60174
+
60175
+ /**
60176
+ * Creates a BuildInfo message from a plain object. Also converts values to their respective internal types.
60177
+ * @function fromObject
60178
+ * @memberof replit.goval.api.repl.BuildInfo
60179
+ * @static
60180
+ * @param {Object.<string,*>} object Plain object
60181
+ * @returns {replit.goval.api.repl.BuildInfo} BuildInfo
60182
+ */
60183
+ BuildInfo.fromObject = function fromObject(object) {
60184
+ if (object instanceof $root.replit.goval.api.repl.BuildInfo)
60185
+ return object;
60186
+ var message = new $root.replit.goval.api.repl.BuildInfo();
60187
+ if (object.id != null)
60188
+ message.id = String(object.id);
60189
+ if (object.url != null)
60190
+ message.url = String(object.url);
60191
+ return message;
60192
+ };
60193
+
60194
+ /**
60195
+ * Creates a plain object from a BuildInfo message. Also converts values to other types if specified.
60196
+ * @function toObject
60197
+ * @memberof replit.goval.api.repl.BuildInfo
60198
+ * @static
60199
+ * @param {replit.goval.api.repl.BuildInfo} message BuildInfo
60200
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
60201
+ * @returns {Object.<string,*>} Plain object
60202
+ */
60203
+ BuildInfo.toObject = function toObject(message, options) {
60204
+ if (!options)
60205
+ options = {};
60206
+ var object = {};
60207
+ if (options.defaults) {
60208
+ object.id = "";
60209
+ object.url = "";
60210
+ }
60211
+ if (message.id != null && message.hasOwnProperty("id"))
60212
+ object.id = message.id;
60213
+ if (message.url != null && message.hasOwnProperty("url"))
60214
+ object.url = message.url;
60215
+ return object;
60216
+ };
60217
+
60218
+ /**
60219
+ * Converts this BuildInfo to JSON.
60220
+ * @function toJSON
60221
+ * @memberof replit.goval.api.repl.BuildInfo
60222
+ * @instance
60223
+ * @returns {Object.<string,*>} JSON object
60224
+ */
60225
+ BuildInfo.prototype.toJSON = function toJSON() {
60226
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
60227
+ };
60228
+
60229
+ return BuildInfo;
60230
+ })();
60231
+
59692
60232
  return repl;
59693
60233
  })();
59694
60234