@replit/protocol 0.3.1 → 0.3.4

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
@@ -11446,6 +11446,7 @@
11446
11446
  case 5:
11447
11447
  case 6:
11448
11448
  case 7:
11449
+ case 9:
11449
11450
  case 8:
11450
11451
  break;
11451
11452
  }
@@ -11495,6 +11496,10 @@
11495
11496
  case 7:
11496
11497
  message.stage = 7;
11497
11498
  break;
11499
+ case "BLOCK_MIGRATION":
11500
+ case 9:
11501
+ message.stage = 9;
11502
+ break;
11498
11503
  case "RETRY":
11499
11504
  case 8:
11500
11505
  message.stage = 8;
@@ -11555,6 +11560,7 @@
11555
11560
  * @property {number} PROXY=5 PROXY value
11556
11561
  * @property {number} PULL_FILES=6 PULL_FILES value
11557
11562
  * @property {number} LOAD_BLOCK=7 LOAD_BLOCK value
11563
+ * @property {number} BLOCK_MIGRATION=9 BLOCK_MIGRATION value
11558
11564
  * @property {number} RETRY=8 RETRY value
11559
11565
  */
11560
11566
  BootStatus.Stage = (function() {
@@ -11565,6 +11571,7 @@
11565
11571
  values[valuesById[5] = "PROXY"] = 5;
11566
11572
  values[valuesById[6] = "PULL_FILES"] = 6;
11567
11573
  values[valuesById[7] = "LOAD_BLOCK"] = 7;
11574
+ values[valuesById[9] = "BLOCK_MIGRATION"] = 9;
11568
11575
  values[valuesById[8] = "RETRY"] = 8;
11569
11576
  return values;
11570
11577
  })();
@@ -40847,6 +40854,7 @@
40847
40854
  * @property {Array.<string>|null} [refreshWebViewOnFileChange] DotReplit refreshWebViewOnFileChange
40848
40855
  * @property {replit.goval.api.DeploymentConfig|replit.goval.api.IDeploymentConfig|null} [deployment] DotReplit deployment
40849
40856
  * @property {Array.<string>|null} [modules] DotReplit modules
40857
+ * @property {replit.goval.api.ExtensionConfig|replit.goval.api.IExtensionConfig|null} [extension] DotReplit extension
40850
40858
  */
40851
40859
 
40852
40860
  /**
@@ -41055,6 +41063,14 @@
41055
41063
  */
41056
41064
  DotReplit.prototype.modules = $util.emptyArray;
41057
41065
 
41066
+ /**
41067
+ * DotReplit extension.
41068
+ * @member {replit.goval.api.ExtensionConfig|null|undefined} extension
41069
+ * @memberof replit.goval.api.DotReplit
41070
+ * @instance
41071
+ */
41072
+ DotReplit.prototype.extension = null;
41073
+
41058
41074
  /**
41059
41075
  * Creates a new DotReplit instance using the specified properties.
41060
41076
  * @function create
@@ -41135,6 +41151,8 @@
41135
41151
  if (message.modules != null && message.modules.length)
41136
41152
  for (var i = 0; i < message.modules.length; ++i)
41137
41153
  writer.uint32(/* id 23, wireType 2 =*/186).string(message.modules[i]);
41154
+ if (message.extension != null && Object.hasOwnProperty.call(message, "extension"))
41155
+ $root.replit.goval.api.ExtensionConfig.encode(message.extension, writer.uint32(/* id 24, wireType 2 =*/194).fork()).ldelim();
41138
41156
  return writer;
41139
41157
  };
41140
41158
 
@@ -41288,6 +41306,9 @@
41288
41306
  message.modules = [];
41289
41307
  message.modules.push(reader.string());
41290
41308
  break;
41309
+ case 24:
41310
+ message.extension = $root.replit.goval.api.ExtensionConfig.decode(reader, reader.uint32());
41311
+ break;
41291
41312
  default:
41292
41313
  reader.skipType(tag & 7);
41293
41314
  break;
@@ -41458,6 +41479,11 @@
41458
41479
  if (!$util.isString(message.modules[i]))
41459
41480
  return "modules: string[] expected";
41460
41481
  }
41482
+ if (message.extension != null && message.hasOwnProperty("extension")) {
41483
+ var error = $root.replit.goval.api.ExtensionConfig.verify(message.extension);
41484
+ if (error)
41485
+ return "extension." + error;
41486
+ }
41461
41487
  return null;
41462
41488
  };
41463
41489
 
@@ -41607,6 +41633,11 @@
41607
41633
  for (var i = 0; i < object.modules.length; ++i)
41608
41634
  message.modules[i] = String(object.modules[i]);
41609
41635
  }
41636
+ if (object.extension != null) {
41637
+ if (typeof object.extension !== "object")
41638
+ throw TypeError(".replit.goval.api.DotReplit.extension: object expected");
41639
+ message.extension = $root.replit.goval.api.ExtensionConfig.fromObject(object.extension);
41640
+ }
41610
41641
  return message;
41611
41642
  };
41612
41643
 
@@ -41651,6 +41682,7 @@
41651
41682
  object.gitHubImport = null;
41652
41683
  object.auth = null;
41653
41684
  object.deployment = null;
41685
+ object.extension = null;
41654
41686
  }
41655
41687
  if (message.run != null && message.hasOwnProperty("run"))
41656
41688
  object.run = $root.replit.goval.api.Exec.toObject(message.run, options);
@@ -41723,6 +41755,8 @@
41723
41755
  for (var j = 0; j < message.modules.length; ++j)
41724
41756
  object.modules[j] = message.modules[j];
41725
41757
  }
41758
+ if (message.extension != null && message.hasOwnProperty("extension"))
41759
+ object.extension = $root.replit.goval.api.ExtensionConfig.toObject(message.extension, options);
41726
41760
  return object;
41727
41761
  };
41728
41762
 
@@ -42577,6 +42611,7 @@
42577
42611
  * @interface IDeploymentConfig
42578
42612
  * @property {replit.goval.api.Exec|replit.goval.api.IExec|null} [run] DeploymentConfig run
42579
42613
  * @property {replit.goval.api.Exec|replit.goval.api.IExec|null} [build] DeploymentConfig build
42614
+ * @property {boolean|null} [ignorePorts] DeploymentConfig ignorePorts
42580
42615
  */
42581
42616
 
42582
42617
  /**
@@ -42609,6 +42644,14 @@
42609
42644
  */
42610
42645
  DeploymentConfig.prototype.build = null;
42611
42646
 
42647
+ /**
42648
+ * DeploymentConfig ignorePorts.
42649
+ * @member {boolean} ignorePorts
42650
+ * @memberof replit.goval.api.DeploymentConfig
42651
+ * @instance
42652
+ */
42653
+ DeploymentConfig.prototype.ignorePorts = false;
42654
+
42612
42655
  /**
42613
42656
  * Creates a new DeploymentConfig instance using the specified properties.
42614
42657
  * @function create
@@ -42637,6 +42680,8 @@
42637
42680
  $root.replit.goval.api.Exec.encode(message.run, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
42638
42681
  if (message.build != null && Object.hasOwnProperty.call(message, "build"))
42639
42682
  $root.replit.goval.api.Exec.encode(message.build, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
42683
+ if (message.ignorePorts != null && Object.hasOwnProperty.call(message, "ignorePorts"))
42684
+ writer.uint32(/* id 3, wireType 0 =*/24).bool(message.ignorePorts);
42640
42685
  return writer;
42641
42686
  };
42642
42687
 
@@ -42677,6 +42722,9 @@
42677
42722
  case 2:
42678
42723
  message.build = $root.replit.goval.api.Exec.decode(reader, reader.uint32());
42679
42724
  break;
42725
+ case 3:
42726
+ message.ignorePorts = reader.bool();
42727
+ break;
42680
42728
  default:
42681
42729
  reader.skipType(tag & 7);
42682
42730
  break;
@@ -42722,6 +42770,9 @@
42722
42770
  if (error)
42723
42771
  return "build." + error;
42724
42772
  }
42773
+ if (message.ignorePorts != null && message.hasOwnProperty("ignorePorts"))
42774
+ if (typeof message.ignorePorts !== "boolean")
42775
+ return "ignorePorts: boolean expected";
42725
42776
  return null;
42726
42777
  };
42727
42778
 
@@ -42747,6 +42798,8 @@
42747
42798
  throw TypeError(".replit.goval.api.DeploymentConfig.build: object expected");
42748
42799
  message.build = $root.replit.goval.api.Exec.fromObject(object.build);
42749
42800
  }
42801
+ if (object.ignorePorts != null)
42802
+ message.ignorePorts = Boolean(object.ignorePorts);
42750
42803
  return message;
42751
42804
  };
42752
42805
 
@@ -42766,11 +42819,14 @@
42766
42819
  if (options.defaults) {
42767
42820
  object.run = null;
42768
42821
  object.build = null;
42822
+ object.ignorePorts = false;
42769
42823
  }
42770
42824
  if (message.run != null && message.hasOwnProperty("run"))
42771
42825
  object.run = $root.replit.goval.api.Exec.toObject(message.run, options);
42772
42826
  if (message.build != null && message.hasOwnProperty("build"))
42773
42827
  object.build = $root.replit.goval.api.Exec.toObject(message.build, options);
42828
+ if (message.ignorePorts != null && message.hasOwnProperty("ignorePorts"))
42829
+ object.ignorePorts = message.ignorePorts;
42774
42830
  return object;
42775
42831
  };
42776
42832
 
@@ -42788,6 +42844,259 @@
42788
42844
  return DeploymentConfig;
42789
42845
  })();
42790
42846
 
42847
+ api.ExtensionConfig = (function() {
42848
+
42849
+ /**
42850
+ * Properties of an ExtensionConfig.
42851
+ * @memberof replit.goval.api
42852
+ * @interface IExtensionConfig
42853
+ * @property {boolean|null} [isExtension] ExtensionConfig isExtension
42854
+ * @property {string|null} [extensionID] ExtensionConfig extensionID
42855
+ * @property {string|null} [buildCommand] ExtensionConfig buildCommand
42856
+ * @property {string|null} [outputDirectory] ExtensionConfig outputDirectory
42857
+ */
42858
+
42859
+ /**
42860
+ * Constructs a new ExtensionConfig.
42861
+ * @memberof replit.goval.api
42862
+ * @classdesc Represents an ExtensionConfig.
42863
+ * @constructor
42864
+ * @param {replit.goval.api.IExtensionConfig=} [properties] Properties to set
42865
+ */
42866
+ function ExtensionConfig(properties) {
42867
+ if (properties)
42868
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
42869
+ if (properties[keys[i]] != null)
42870
+ this[keys[i]] = properties[keys[i]];
42871
+ }
42872
+
42873
+ /**
42874
+ * ExtensionConfig isExtension.
42875
+ * @member {boolean} isExtension
42876
+ * @memberof replit.goval.api.ExtensionConfig
42877
+ * @instance
42878
+ */
42879
+ ExtensionConfig.prototype.isExtension = false;
42880
+
42881
+ /**
42882
+ * ExtensionConfig extensionID.
42883
+ * @member {string} extensionID
42884
+ * @memberof replit.goval.api.ExtensionConfig
42885
+ * @instance
42886
+ */
42887
+ ExtensionConfig.prototype.extensionID = "";
42888
+
42889
+ /**
42890
+ * ExtensionConfig buildCommand.
42891
+ * @member {string} buildCommand
42892
+ * @memberof replit.goval.api.ExtensionConfig
42893
+ * @instance
42894
+ */
42895
+ ExtensionConfig.prototype.buildCommand = "";
42896
+
42897
+ /**
42898
+ * ExtensionConfig outputDirectory.
42899
+ * @member {string} outputDirectory
42900
+ * @memberof replit.goval.api.ExtensionConfig
42901
+ * @instance
42902
+ */
42903
+ ExtensionConfig.prototype.outputDirectory = "";
42904
+
42905
+ /**
42906
+ * Creates a new ExtensionConfig instance using the specified properties.
42907
+ * @function create
42908
+ * @memberof replit.goval.api.ExtensionConfig
42909
+ * @static
42910
+ * @param {replit.goval.api.IExtensionConfig=} [properties] Properties to set
42911
+ * @returns {replit.goval.api.ExtensionConfig} ExtensionConfig instance
42912
+ */
42913
+ ExtensionConfig.create = function create(properties) {
42914
+ return ExtensionConfig.fromObject(properties);
42915
+ };
42916
+
42917
+ /**
42918
+ * Encodes the specified ExtensionConfig message. Does not implicitly {@link replit.goval.api.ExtensionConfig.verify|verify} messages.
42919
+ * @function encode
42920
+ * @memberof replit.goval.api.ExtensionConfig
42921
+ * @static
42922
+ * @param {replit.goval.api.ExtensionConfig} message ExtensionConfig message or plain object to encode
42923
+ * @param {$protobuf.Writer} [writer] Writer to encode to
42924
+ * @returns {$protobuf.Writer} Writer
42925
+ */
42926
+ ExtensionConfig.encode = function encode(message, writer) {
42927
+ if (!writer)
42928
+ writer = $Writer.create();
42929
+ if (message.isExtension != null && Object.hasOwnProperty.call(message, "isExtension"))
42930
+ writer.uint32(/* id 1, wireType 0 =*/8).bool(message.isExtension);
42931
+ if (message.extensionID != null && Object.hasOwnProperty.call(message, "extensionID"))
42932
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.extensionID);
42933
+ if (message.buildCommand != null && Object.hasOwnProperty.call(message, "buildCommand"))
42934
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.buildCommand);
42935
+ if (message.outputDirectory != null && Object.hasOwnProperty.call(message, "outputDirectory"))
42936
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.outputDirectory);
42937
+ return writer;
42938
+ };
42939
+
42940
+ /**
42941
+ * Encodes the specified ExtensionConfig message, length delimited. Does not implicitly {@link replit.goval.api.ExtensionConfig.verify|verify} messages.
42942
+ * @function encodeDelimited
42943
+ * @memberof replit.goval.api.ExtensionConfig
42944
+ * @static
42945
+ * @param {replit.goval.api.ExtensionConfig} message ExtensionConfig message or plain object to encode
42946
+ * @param {$protobuf.Writer} [writer] Writer to encode to
42947
+ * @returns {$protobuf.Writer} Writer
42948
+ */
42949
+ ExtensionConfig.encodeDelimited = function encodeDelimited(message, writer) {
42950
+ return this.encode(message, writer).ldelim();
42951
+ };
42952
+
42953
+ /**
42954
+ * Decodes an ExtensionConfig message from the specified reader or buffer.
42955
+ * @function decode
42956
+ * @memberof replit.goval.api.ExtensionConfig
42957
+ * @static
42958
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
42959
+ * @param {number} [length] Message length if known beforehand
42960
+ * @returns {replit.goval.api.ExtensionConfig} ExtensionConfig
42961
+ * @throws {Error} If the payload is not a reader or valid buffer
42962
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
42963
+ */
42964
+ ExtensionConfig.decode = function decode(reader, length) {
42965
+ if (!(reader instanceof $Reader))
42966
+ reader = $Reader.create(reader);
42967
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.ExtensionConfig();
42968
+ while (reader.pos < end) {
42969
+ var tag = reader.uint32();
42970
+ switch (tag >>> 3) {
42971
+ case 1:
42972
+ message.isExtension = reader.bool();
42973
+ break;
42974
+ case 2:
42975
+ message.extensionID = reader.string();
42976
+ break;
42977
+ case 3:
42978
+ message.buildCommand = reader.string();
42979
+ break;
42980
+ case 4:
42981
+ message.outputDirectory = reader.string();
42982
+ break;
42983
+ default:
42984
+ reader.skipType(tag & 7);
42985
+ break;
42986
+ }
42987
+ }
42988
+ return message;
42989
+ };
42990
+
42991
+ /**
42992
+ * Decodes an ExtensionConfig message from the specified reader or buffer, length delimited.
42993
+ * @function decodeDelimited
42994
+ * @memberof replit.goval.api.ExtensionConfig
42995
+ * @static
42996
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
42997
+ * @returns {replit.goval.api.ExtensionConfig} ExtensionConfig
42998
+ * @throws {Error} If the payload is not a reader or valid buffer
42999
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
43000
+ */
43001
+ ExtensionConfig.decodeDelimited = function decodeDelimited(reader) {
43002
+ if (!(reader instanceof $Reader))
43003
+ reader = new $Reader(reader);
43004
+ return this.decode(reader, reader.uint32());
43005
+ };
43006
+
43007
+ /**
43008
+ * Verifies an ExtensionConfig message.
43009
+ * @function verify
43010
+ * @memberof replit.goval.api.ExtensionConfig
43011
+ * @static
43012
+ * @param {Object.<string,*>} message Plain object to verify
43013
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
43014
+ */
43015
+ ExtensionConfig.verify = function verify(message) {
43016
+ if (typeof message !== "object" || message === null)
43017
+ return "object expected";
43018
+ if (message.isExtension != null && message.hasOwnProperty("isExtension"))
43019
+ if (typeof message.isExtension !== "boolean")
43020
+ return "isExtension: boolean expected";
43021
+ if (message.extensionID != null && message.hasOwnProperty("extensionID"))
43022
+ if (!$util.isString(message.extensionID))
43023
+ return "extensionID: string expected";
43024
+ if (message.buildCommand != null && message.hasOwnProperty("buildCommand"))
43025
+ if (!$util.isString(message.buildCommand))
43026
+ return "buildCommand: string expected";
43027
+ if (message.outputDirectory != null && message.hasOwnProperty("outputDirectory"))
43028
+ if (!$util.isString(message.outputDirectory))
43029
+ return "outputDirectory: string expected";
43030
+ return null;
43031
+ };
43032
+
43033
+ /**
43034
+ * Creates an ExtensionConfig message from a plain object. Also converts values to their respective internal types.
43035
+ * @function fromObject
43036
+ * @memberof replit.goval.api.ExtensionConfig
43037
+ * @static
43038
+ * @param {Object.<string,*>} object Plain object
43039
+ * @returns {replit.goval.api.ExtensionConfig} ExtensionConfig
43040
+ */
43041
+ ExtensionConfig.fromObject = function fromObject(object) {
43042
+ if (object instanceof $root.replit.goval.api.ExtensionConfig)
43043
+ return object;
43044
+ var message = new $root.replit.goval.api.ExtensionConfig();
43045
+ if (object.isExtension != null)
43046
+ message.isExtension = Boolean(object.isExtension);
43047
+ if (object.extensionID != null)
43048
+ message.extensionID = String(object.extensionID);
43049
+ if (object.buildCommand != null)
43050
+ message.buildCommand = String(object.buildCommand);
43051
+ if (object.outputDirectory != null)
43052
+ message.outputDirectory = String(object.outputDirectory);
43053
+ return message;
43054
+ };
43055
+
43056
+ /**
43057
+ * Creates a plain object from an ExtensionConfig message. Also converts values to other types if specified.
43058
+ * @function toObject
43059
+ * @memberof replit.goval.api.ExtensionConfig
43060
+ * @static
43061
+ * @param {replit.goval.api.ExtensionConfig} message ExtensionConfig
43062
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
43063
+ * @returns {Object.<string,*>} Plain object
43064
+ */
43065
+ ExtensionConfig.toObject = function toObject(message, options) {
43066
+ if (!options)
43067
+ options = {};
43068
+ var object = {};
43069
+ if (options.defaults) {
43070
+ object.isExtension = false;
43071
+ object.extensionID = "";
43072
+ object.buildCommand = "";
43073
+ object.outputDirectory = "";
43074
+ }
43075
+ if (message.isExtension != null && message.hasOwnProperty("isExtension"))
43076
+ object.isExtension = message.isExtension;
43077
+ if (message.extensionID != null && message.hasOwnProperty("extensionID"))
43078
+ object.extensionID = message.extensionID;
43079
+ if (message.buildCommand != null && message.hasOwnProperty("buildCommand"))
43080
+ object.buildCommand = message.buildCommand;
43081
+ if (message.outputDirectory != null && message.hasOwnProperty("outputDirectory"))
43082
+ object.outputDirectory = message.outputDirectory;
43083
+ return object;
43084
+ };
43085
+
43086
+ /**
43087
+ * Converts this ExtensionConfig to JSON.
43088
+ * @function toJSON
43089
+ * @memberof replit.goval.api.ExtensionConfig
43090
+ * @instance
43091
+ * @returns {Object.<string,*>} JSON object
43092
+ */
43093
+ ExtensionConfig.prototype.toJSON = function toJSON() {
43094
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
43095
+ };
43096
+
43097
+ return ExtensionConfig;
43098
+ })();
43099
+
42791
43100
  api.NixConfig = (function() {
42792
43101
 
42793
43102
  /**
@@ -50692,6 +51001,1226 @@
50692
51001
  return PackagerOption;
50693
51002
  })();
50694
51003
 
51004
+ api.ReplDomainDoubleDash = (function() {
51005
+
51006
+ /**
51007
+ * Properties of a ReplDomainDoubleDash.
51008
+ * @memberof replit.goval.api
51009
+ * @interface IReplDomainDoubleDash
51010
+ * @property {string|null} [user] ReplDomainDoubleDash user
51011
+ * @property {string|null} [slug] ReplDomainDoubleDash slug
51012
+ * @property {string|null} [suffix] ReplDomainDoubleDash suffix
51013
+ */
51014
+
51015
+ /**
51016
+ * Constructs a new ReplDomainDoubleDash.
51017
+ * @memberof replit.goval.api
51018
+ * @classdesc Represents a ReplDomainDoubleDash.
51019
+ * @constructor
51020
+ * @param {replit.goval.api.IReplDomainDoubleDash=} [properties] Properties to set
51021
+ */
51022
+ function ReplDomainDoubleDash(properties) {
51023
+ if (properties)
51024
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
51025
+ if (properties[keys[i]] != null)
51026
+ this[keys[i]] = properties[keys[i]];
51027
+ }
51028
+
51029
+ /**
51030
+ * ReplDomainDoubleDash user.
51031
+ * @member {string} user
51032
+ * @memberof replit.goval.api.ReplDomainDoubleDash
51033
+ * @instance
51034
+ */
51035
+ ReplDomainDoubleDash.prototype.user = "";
51036
+
51037
+ /**
51038
+ * ReplDomainDoubleDash slug.
51039
+ * @member {string} slug
51040
+ * @memberof replit.goval.api.ReplDomainDoubleDash
51041
+ * @instance
51042
+ */
51043
+ ReplDomainDoubleDash.prototype.slug = "";
51044
+
51045
+ /**
51046
+ * ReplDomainDoubleDash suffix.
51047
+ * @member {string} suffix
51048
+ * @memberof replit.goval.api.ReplDomainDoubleDash
51049
+ * @instance
51050
+ */
51051
+ ReplDomainDoubleDash.prototype.suffix = "";
51052
+
51053
+ /**
51054
+ * Creates a new ReplDomainDoubleDash instance using the specified properties.
51055
+ * @function create
51056
+ * @memberof replit.goval.api.ReplDomainDoubleDash
51057
+ * @static
51058
+ * @param {replit.goval.api.IReplDomainDoubleDash=} [properties] Properties to set
51059
+ * @returns {replit.goval.api.ReplDomainDoubleDash} ReplDomainDoubleDash instance
51060
+ */
51061
+ ReplDomainDoubleDash.create = function create(properties) {
51062
+ return ReplDomainDoubleDash.fromObject(properties);
51063
+ };
51064
+
51065
+ /**
51066
+ * Encodes the specified ReplDomainDoubleDash message. Does not implicitly {@link replit.goval.api.ReplDomainDoubleDash.verify|verify} messages.
51067
+ * @function encode
51068
+ * @memberof replit.goval.api.ReplDomainDoubleDash
51069
+ * @static
51070
+ * @param {replit.goval.api.ReplDomainDoubleDash} message ReplDomainDoubleDash message or plain object to encode
51071
+ * @param {$protobuf.Writer} [writer] Writer to encode to
51072
+ * @returns {$protobuf.Writer} Writer
51073
+ */
51074
+ ReplDomainDoubleDash.encode = function encode(message, writer) {
51075
+ if (!writer)
51076
+ writer = $Writer.create();
51077
+ if (message.user != null && Object.hasOwnProperty.call(message, "user"))
51078
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.user);
51079
+ if (message.slug != null && Object.hasOwnProperty.call(message, "slug"))
51080
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.slug);
51081
+ if (message.suffix != null && Object.hasOwnProperty.call(message, "suffix"))
51082
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.suffix);
51083
+ return writer;
51084
+ };
51085
+
51086
+ /**
51087
+ * Encodes the specified ReplDomainDoubleDash message, length delimited. Does not implicitly {@link replit.goval.api.ReplDomainDoubleDash.verify|verify} messages.
51088
+ * @function encodeDelimited
51089
+ * @memberof replit.goval.api.ReplDomainDoubleDash
51090
+ * @static
51091
+ * @param {replit.goval.api.ReplDomainDoubleDash} message ReplDomainDoubleDash message or plain object to encode
51092
+ * @param {$protobuf.Writer} [writer] Writer to encode to
51093
+ * @returns {$protobuf.Writer} Writer
51094
+ */
51095
+ ReplDomainDoubleDash.encodeDelimited = function encodeDelimited(message, writer) {
51096
+ return this.encode(message, writer).ldelim();
51097
+ };
51098
+
51099
+ /**
51100
+ * Decodes a ReplDomainDoubleDash message from the specified reader or buffer.
51101
+ * @function decode
51102
+ * @memberof replit.goval.api.ReplDomainDoubleDash
51103
+ * @static
51104
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
51105
+ * @param {number} [length] Message length if known beforehand
51106
+ * @returns {replit.goval.api.ReplDomainDoubleDash} ReplDomainDoubleDash
51107
+ * @throws {Error} If the payload is not a reader or valid buffer
51108
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
51109
+ */
51110
+ ReplDomainDoubleDash.decode = function decode(reader, length) {
51111
+ if (!(reader instanceof $Reader))
51112
+ reader = $Reader.create(reader);
51113
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.ReplDomainDoubleDash();
51114
+ while (reader.pos < end) {
51115
+ var tag = reader.uint32();
51116
+ switch (tag >>> 3) {
51117
+ case 1:
51118
+ message.user = reader.string();
51119
+ break;
51120
+ case 2:
51121
+ message.slug = reader.string();
51122
+ break;
51123
+ case 3:
51124
+ message.suffix = reader.string();
51125
+ break;
51126
+ default:
51127
+ reader.skipType(tag & 7);
51128
+ break;
51129
+ }
51130
+ }
51131
+ return message;
51132
+ };
51133
+
51134
+ /**
51135
+ * Decodes a ReplDomainDoubleDash message from the specified reader or buffer, length delimited.
51136
+ * @function decodeDelimited
51137
+ * @memberof replit.goval.api.ReplDomainDoubleDash
51138
+ * @static
51139
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
51140
+ * @returns {replit.goval.api.ReplDomainDoubleDash} ReplDomainDoubleDash
51141
+ * @throws {Error} If the payload is not a reader or valid buffer
51142
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
51143
+ */
51144
+ ReplDomainDoubleDash.decodeDelimited = function decodeDelimited(reader) {
51145
+ if (!(reader instanceof $Reader))
51146
+ reader = new $Reader(reader);
51147
+ return this.decode(reader, reader.uint32());
51148
+ };
51149
+
51150
+ /**
51151
+ * Verifies a ReplDomainDoubleDash message.
51152
+ * @function verify
51153
+ * @memberof replit.goval.api.ReplDomainDoubleDash
51154
+ * @static
51155
+ * @param {Object.<string,*>} message Plain object to verify
51156
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
51157
+ */
51158
+ ReplDomainDoubleDash.verify = function verify(message) {
51159
+ if (typeof message !== "object" || message === null)
51160
+ return "object expected";
51161
+ if (message.user != null && message.hasOwnProperty("user"))
51162
+ if (!$util.isString(message.user))
51163
+ return "user: string expected";
51164
+ if (message.slug != null && message.hasOwnProperty("slug"))
51165
+ if (!$util.isString(message.slug))
51166
+ return "slug: string expected";
51167
+ if (message.suffix != null && message.hasOwnProperty("suffix"))
51168
+ if (!$util.isString(message.suffix))
51169
+ return "suffix: string expected";
51170
+ return null;
51171
+ };
51172
+
51173
+ /**
51174
+ * Creates a ReplDomainDoubleDash message from a plain object. Also converts values to their respective internal types.
51175
+ * @function fromObject
51176
+ * @memberof replit.goval.api.ReplDomainDoubleDash
51177
+ * @static
51178
+ * @param {Object.<string,*>} object Plain object
51179
+ * @returns {replit.goval.api.ReplDomainDoubleDash} ReplDomainDoubleDash
51180
+ */
51181
+ ReplDomainDoubleDash.fromObject = function fromObject(object) {
51182
+ if (object instanceof $root.replit.goval.api.ReplDomainDoubleDash)
51183
+ return object;
51184
+ var message = new $root.replit.goval.api.ReplDomainDoubleDash();
51185
+ if (object.user != null)
51186
+ message.user = String(object.user);
51187
+ if (object.slug != null)
51188
+ message.slug = String(object.slug);
51189
+ if (object.suffix != null)
51190
+ message.suffix = String(object.suffix);
51191
+ return message;
51192
+ };
51193
+
51194
+ /**
51195
+ * Creates a plain object from a ReplDomainDoubleDash message. Also converts values to other types if specified.
51196
+ * @function toObject
51197
+ * @memberof replit.goval.api.ReplDomainDoubleDash
51198
+ * @static
51199
+ * @param {replit.goval.api.ReplDomainDoubleDash} message ReplDomainDoubleDash
51200
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
51201
+ * @returns {Object.<string,*>} Plain object
51202
+ */
51203
+ ReplDomainDoubleDash.toObject = function toObject(message, options) {
51204
+ if (!options)
51205
+ options = {};
51206
+ var object = {};
51207
+ if (options.defaults) {
51208
+ object.user = "";
51209
+ object.slug = "";
51210
+ object.suffix = "";
51211
+ }
51212
+ if (message.user != null && message.hasOwnProperty("user"))
51213
+ object.user = message.user;
51214
+ if (message.slug != null && message.hasOwnProperty("slug"))
51215
+ object.slug = message.slug;
51216
+ if (message.suffix != null && message.hasOwnProperty("suffix"))
51217
+ object.suffix = message.suffix;
51218
+ return object;
51219
+ };
51220
+
51221
+ /**
51222
+ * Converts this ReplDomainDoubleDash to JSON.
51223
+ * @function toJSON
51224
+ * @memberof replit.goval.api.ReplDomainDoubleDash
51225
+ * @instance
51226
+ * @returns {Object.<string,*>} JSON object
51227
+ */
51228
+ ReplDomainDoubleDash.prototype.toJSON = function toJSON() {
51229
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
51230
+ };
51231
+
51232
+ return ReplDomainDoubleDash;
51233
+ })();
51234
+
51235
+ api.ReplDomainDots = (function() {
51236
+
51237
+ /**
51238
+ * Properties of a ReplDomainDots.
51239
+ * @memberof replit.goval.api
51240
+ * @interface IReplDomainDots
51241
+ * @property {string|null} [user] ReplDomainDots user
51242
+ * @property {string|null} [slug] ReplDomainDots slug
51243
+ * @property {string|null} [suffix] ReplDomainDots suffix
51244
+ */
51245
+
51246
+ /**
51247
+ * Constructs a new ReplDomainDots.
51248
+ * @memberof replit.goval.api
51249
+ * @classdesc Represents a ReplDomainDots.
51250
+ * @constructor
51251
+ * @param {replit.goval.api.IReplDomainDots=} [properties] Properties to set
51252
+ */
51253
+ function ReplDomainDots(properties) {
51254
+ if (properties)
51255
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
51256
+ if (properties[keys[i]] != null)
51257
+ this[keys[i]] = properties[keys[i]];
51258
+ }
51259
+
51260
+ /**
51261
+ * ReplDomainDots user.
51262
+ * @member {string} user
51263
+ * @memberof replit.goval.api.ReplDomainDots
51264
+ * @instance
51265
+ */
51266
+ ReplDomainDots.prototype.user = "";
51267
+
51268
+ /**
51269
+ * ReplDomainDots slug.
51270
+ * @member {string} slug
51271
+ * @memberof replit.goval.api.ReplDomainDots
51272
+ * @instance
51273
+ */
51274
+ ReplDomainDots.prototype.slug = "";
51275
+
51276
+ /**
51277
+ * ReplDomainDots suffix.
51278
+ * @member {string} suffix
51279
+ * @memberof replit.goval.api.ReplDomainDots
51280
+ * @instance
51281
+ */
51282
+ ReplDomainDots.prototype.suffix = "";
51283
+
51284
+ /**
51285
+ * Creates a new ReplDomainDots instance using the specified properties.
51286
+ * @function create
51287
+ * @memberof replit.goval.api.ReplDomainDots
51288
+ * @static
51289
+ * @param {replit.goval.api.IReplDomainDots=} [properties] Properties to set
51290
+ * @returns {replit.goval.api.ReplDomainDots} ReplDomainDots instance
51291
+ */
51292
+ ReplDomainDots.create = function create(properties) {
51293
+ return ReplDomainDots.fromObject(properties);
51294
+ };
51295
+
51296
+ /**
51297
+ * Encodes the specified ReplDomainDots message. Does not implicitly {@link replit.goval.api.ReplDomainDots.verify|verify} messages.
51298
+ * @function encode
51299
+ * @memberof replit.goval.api.ReplDomainDots
51300
+ * @static
51301
+ * @param {replit.goval.api.ReplDomainDots} message ReplDomainDots message or plain object to encode
51302
+ * @param {$protobuf.Writer} [writer] Writer to encode to
51303
+ * @returns {$protobuf.Writer} Writer
51304
+ */
51305
+ ReplDomainDots.encode = function encode(message, writer) {
51306
+ if (!writer)
51307
+ writer = $Writer.create();
51308
+ if (message.user != null && Object.hasOwnProperty.call(message, "user"))
51309
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.user);
51310
+ if (message.slug != null && Object.hasOwnProperty.call(message, "slug"))
51311
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.slug);
51312
+ if (message.suffix != null && Object.hasOwnProperty.call(message, "suffix"))
51313
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.suffix);
51314
+ return writer;
51315
+ };
51316
+
51317
+ /**
51318
+ * Encodes the specified ReplDomainDots message, length delimited. Does not implicitly {@link replit.goval.api.ReplDomainDots.verify|verify} messages.
51319
+ * @function encodeDelimited
51320
+ * @memberof replit.goval.api.ReplDomainDots
51321
+ * @static
51322
+ * @param {replit.goval.api.ReplDomainDots} message ReplDomainDots message or plain object to encode
51323
+ * @param {$protobuf.Writer} [writer] Writer to encode to
51324
+ * @returns {$protobuf.Writer} Writer
51325
+ */
51326
+ ReplDomainDots.encodeDelimited = function encodeDelimited(message, writer) {
51327
+ return this.encode(message, writer).ldelim();
51328
+ };
51329
+
51330
+ /**
51331
+ * Decodes a ReplDomainDots message from the specified reader or buffer.
51332
+ * @function decode
51333
+ * @memberof replit.goval.api.ReplDomainDots
51334
+ * @static
51335
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
51336
+ * @param {number} [length] Message length if known beforehand
51337
+ * @returns {replit.goval.api.ReplDomainDots} ReplDomainDots
51338
+ * @throws {Error} If the payload is not a reader or valid buffer
51339
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
51340
+ */
51341
+ ReplDomainDots.decode = function decode(reader, length) {
51342
+ if (!(reader instanceof $Reader))
51343
+ reader = $Reader.create(reader);
51344
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.ReplDomainDots();
51345
+ while (reader.pos < end) {
51346
+ var tag = reader.uint32();
51347
+ switch (tag >>> 3) {
51348
+ case 1:
51349
+ message.user = reader.string();
51350
+ break;
51351
+ case 2:
51352
+ message.slug = reader.string();
51353
+ break;
51354
+ case 3:
51355
+ message.suffix = reader.string();
51356
+ break;
51357
+ default:
51358
+ reader.skipType(tag & 7);
51359
+ break;
51360
+ }
51361
+ }
51362
+ return message;
51363
+ };
51364
+
51365
+ /**
51366
+ * Decodes a ReplDomainDots message from the specified reader or buffer, length delimited.
51367
+ * @function decodeDelimited
51368
+ * @memberof replit.goval.api.ReplDomainDots
51369
+ * @static
51370
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
51371
+ * @returns {replit.goval.api.ReplDomainDots} ReplDomainDots
51372
+ * @throws {Error} If the payload is not a reader or valid buffer
51373
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
51374
+ */
51375
+ ReplDomainDots.decodeDelimited = function decodeDelimited(reader) {
51376
+ if (!(reader instanceof $Reader))
51377
+ reader = new $Reader(reader);
51378
+ return this.decode(reader, reader.uint32());
51379
+ };
51380
+
51381
+ /**
51382
+ * Verifies a ReplDomainDots message.
51383
+ * @function verify
51384
+ * @memberof replit.goval.api.ReplDomainDots
51385
+ * @static
51386
+ * @param {Object.<string,*>} message Plain object to verify
51387
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
51388
+ */
51389
+ ReplDomainDots.verify = function verify(message) {
51390
+ if (typeof message !== "object" || message === null)
51391
+ return "object expected";
51392
+ if (message.user != null && message.hasOwnProperty("user"))
51393
+ if (!$util.isString(message.user))
51394
+ return "user: string expected";
51395
+ if (message.slug != null && message.hasOwnProperty("slug"))
51396
+ if (!$util.isString(message.slug))
51397
+ return "slug: string expected";
51398
+ if (message.suffix != null && message.hasOwnProperty("suffix"))
51399
+ if (!$util.isString(message.suffix))
51400
+ return "suffix: string expected";
51401
+ return null;
51402
+ };
51403
+
51404
+ /**
51405
+ * Creates a ReplDomainDots message from a plain object. Also converts values to their respective internal types.
51406
+ * @function fromObject
51407
+ * @memberof replit.goval.api.ReplDomainDots
51408
+ * @static
51409
+ * @param {Object.<string,*>} object Plain object
51410
+ * @returns {replit.goval.api.ReplDomainDots} ReplDomainDots
51411
+ */
51412
+ ReplDomainDots.fromObject = function fromObject(object) {
51413
+ if (object instanceof $root.replit.goval.api.ReplDomainDots)
51414
+ return object;
51415
+ var message = new $root.replit.goval.api.ReplDomainDots();
51416
+ if (object.user != null)
51417
+ message.user = String(object.user);
51418
+ if (object.slug != null)
51419
+ message.slug = String(object.slug);
51420
+ if (object.suffix != null)
51421
+ message.suffix = String(object.suffix);
51422
+ return message;
51423
+ };
51424
+
51425
+ /**
51426
+ * Creates a plain object from a ReplDomainDots message. Also converts values to other types if specified.
51427
+ * @function toObject
51428
+ * @memberof replit.goval.api.ReplDomainDots
51429
+ * @static
51430
+ * @param {replit.goval.api.ReplDomainDots} message ReplDomainDots
51431
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
51432
+ * @returns {Object.<string,*>} Plain object
51433
+ */
51434
+ ReplDomainDots.toObject = function toObject(message, options) {
51435
+ if (!options)
51436
+ options = {};
51437
+ var object = {};
51438
+ if (options.defaults) {
51439
+ object.user = "";
51440
+ object.slug = "";
51441
+ object.suffix = "";
51442
+ }
51443
+ if (message.user != null && message.hasOwnProperty("user"))
51444
+ object.user = message.user;
51445
+ if (message.slug != null && message.hasOwnProperty("slug"))
51446
+ object.slug = message.slug;
51447
+ if (message.suffix != null && message.hasOwnProperty("suffix"))
51448
+ object.suffix = message.suffix;
51449
+ return object;
51450
+ };
51451
+
51452
+ /**
51453
+ * Converts this ReplDomainDots to JSON.
51454
+ * @function toJSON
51455
+ * @memberof replit.goval.api.ReplDomainDots
51456
+ * @instance
51457
+ * @returns {Object.<string,*>} JSON object
51458
+ */
51459
+ ReplDomainDots.prototype.toJSON = function toJSON() {
51460
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
51461
+ };
51462
+
51463
+ return ReplDomainDots;
51464
+ })();
51465
+
51466
+ api.ReplDomainSingleDomain = (function() {
51467
+
51468
+ /**
51469
+ * Properties of a ReplDomainSingleDomain.
51470
+ * @memberof replit.goval.api
51471
+ * @interface IReplDomainSingleDomain
51472
+ * @property {string|null} [user] ReplDomainSingleDomain user
51473
+ * @property {string|null} [suffix] ReplDomainSingleDomain suffix
51474
+ */
51475
+
51476
+ /**
51477
+ * Constructs a new ReplDomainSingleDomain.
51478
+ * @memberof replit.goval.api
51479
+ * @classdesc Represents a ReplDomainSingleDomain.
51480
+ * @constructor
51481
+ * @param {replit.goval.api.IReplDomainSingleDomain=} [properties] Properties to set
51482
+ */
51483
+ function ReplDomainSingleDomain(properties) {
51484
+ if (properties)
51485
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
51486
+ if (properties[keys[i]] != null)
51487
+ this[keys[i]] = properties[keys[i]];
51488
+ }
51489
+
51490
+ /**
51491
+ * ReplDomainSingleDomain user.
51492
+ * @member {string} user
51493
+ * @memberof replit.goval.api.ReplDomainSingleDomain
51494
+ * @instance
51495
+ */
51496
+ ReplDomainSingleDomain.prototype.user = "";
51497
+
51498
+ /**
51499
+ * ReplDomainSingleDomain suffix.
51500
+ * @member {string} suffix
51501
+ * @memberof replit.goval.api.ReplDomainSingleDomain
51502
+ * @instance
51503
+ */
51504
+ ReplDomainSingleDomain.prototype.suffix = "";
51505
+
51506
+ /**
51507
+ * Creates a new ReplDomainSingleDomain instance using the specified properties.
51508
+ * @function create
51509
+ * @memberof replit.goval.api.ReplDomainSingleDomain
51510
+ * @static
51511
+ * @param {replit.goval.api.IReplDomainSingleDomain=} [properties] Properties to set
51512
+ * @returns {replit.goval.api.ReplDomainSingleDomain} ReplDomainSingleDomain instance
51513
+ */
51514
+ ReplDomainSingleDomain.create = function create(properties) {
51515
+ return ReplDomainSingleDomain.fromObject(properties);
51516
+ };
51517
+
51518
+ /**
51519
+ * Encodes the specified ReplDomainSingleDomain message. Does not implicitly {@link replit.goval.api.ReplDomainSingleDomain.verify|verify} messages.
51520
+ * @function encode
51521
+ * @memberof replit.goval.api.ReplDomainSingleDomain
51522
+ * @static
51523
+ * @param {replit.goval.api.ReplDomainSingleDomain} message ReplDomainSingleDomain message or plain object to encode
51524
+ * @param {$protobuf.Writer} [writer] Writer to encode to
51525
+ * @returns {$protobuf.Writer} Writer
51526
+ */
51527
+ ReplDomainSingleDomain.encode = function encode(message, writer) {
51528
+ if (!writer)
51529
+ writer = $Writer.create();
51530
+ if (message.user != null && Object.hasOwnProperty.call(message, "user"))
51531
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.user);
51532
+ if (message.suffix != null && Object.hasOwnProperty.call(message, "suffix"))
51533
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.suffix);
51534
+ return writer;
51535
+ };
51536
+
51537
+ /**
51538
+ * Encodes the specified ReplDomainSingleDomain message, length delimited. Does not implicitly {@link replit.goval.api.ReplDomainSingleDomain.verify|verify} messages.
51539
+ * @function encodeDelimited
51540
+ * @memberof replit.goval.api.ReplDomainSingleDomain
51541
+ * @static
51542
+ * @param {replit.goval.api.ReplDomainSingleDomain} message ReplDomainSingleDomain message or plain object to encode
51543
+ * @param {$protobuf.Writer} [writer] Writer to encode to
51544
+ * @returns {$protobuf.Writer} Writer
51545
+ */
51546
+ ReplDomainSingleDomain.encodeDelimited = function encodeDelimited(message, writer) {
51547
+ return this.encode(message, writer).ldelim();
51548
+ };
51549
+
51550
+ /**
51551
+ * Decodes a ReplDomainSingleDomain message from the specified reader or buffer.
51552
+ * @function decode
51553
+ * @memberof replit.goval.api.ReplDomainSingleDomain
51554
+ * @static
51555
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
51556
+ * @param {number} [length] Message length if known beforehand
51557
+ * @returns {replit.goval.api.ReplDomainSingleDomain} ReplDomainSingleDomain
51558
+ * @throws {Error} If the payload is not a reader or valid buffer
51559
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
51560
+ */
51561
+ ReplDomainSingleDomain.decode = function decode(reader, length) {
51562
+ if (!(reader instanceof $Reader))
51563
+ reader = $Reader.create(reader);
51564
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.ReplDomainSingleDomain();
51565
+ while (reader.pos < end) {
51566
+ var tag = reader.uint32();
51567
+ switch (tag >>> 3) {
51568
+ case 1:
51569
+ message.user = reader.string();
51570
+ break;
51571
+ case 2:
51572
+ message.suffix = reader.string();
51573
+ break;
51574
+ default:
51575
+ reader.skipType(tag & 7);
51576
+ break;
51577
+ }
51578
+ }
51579
+ return message;
51580
+ };
51581
+
51582
+ /**
51583
+ * Decodes a ReplDomainSingleDomain message from the specified reader or buffer, length delimited.
51584
+ * @function decodeDelimited
51585
+ * @memberof replit.goval.api.ReplDomainSingleDomain
51586
+ * @static
51587
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
51588
+ * @returns {replit.goval.api.ReplDomainSingleDomain} ReplDomainSingleDomain
51589
+ * @throws {Error} If the payload is not a reader or valid buffer
51590
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
51591
+ */
51592
+ ReplDomainSingleDomain.decodeDelimited = function decodeDelimited(reader) {
51593
+ if (!(reader instanceof $Reader))
51594
+ reader = new $Reader(reader);
51595
+ return this.decode(reader, reader.uint32());
51596
+ };
51597
+
51598
+ /**
51599
+ * Verifies a ReplDomainSingleDomain message.
51600
+ * @function verify
51601
+ * @memberof replit.goval.api.ReplDomainSingleDomain
51602
+ * @static
51603
+ * @param {Object.<string,*>} message Plain object to verify
51604
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
51605
+ */
51606
+ ReplDomainSingleDomain.verify = function verify(message) {
51607
+ if (typeof message !== "object" || message === null)
51608
+ return "object expected";
51609
+ if (message.user != null && message.hasOwnProperty("user"))
51610
+ if (!$util.isString(message.user))
51611
+ return "user: string expected";
51612
+ if (message.suffix != null && message.hasOwnProperty("suffix"))
51613
+ if (!$util.isString(message.suffix))
51614
+ return "suffix: string expected";
51615
+ return null;
51616
+ };
51617
+
51618
+ /**
51619
+ * Creates a ReplDomainSingleDomain message from a plain object. Also converts values to their respective internal types.
51620
+ * @function fromObject
51621
+ * @memberof replit.goval.api.ReplDomainSingleDomain
51622
+ * @static
51623
+ * @param {Object.<string,*>} object Plain object
51624
+ * @returns {replit.goval.api.ReplDomainSingleDomain} ReplDomainSingleDomain
51625
+ */
51626
+ ReplDomainSingleDomain.fromObject = function fromObject(object) {
51627
+ if (object instanceof $root.replit.goval.api.ReplDomainSingleDomain)
51628
+ return object;
51629
+ var message = new $root.replit.goval.api.ReplDomainSingleDomain();
51630
+ if (object.user != null)
51631
+ message.user = String(object.user);
51632
+ if (object.suffix != null)
51633
+ message.suffix = String(object.suffix);
51634
+ return message;
51635
+ };
51636
+
51637
+ /**
51638
+ * Creates a plain object from a ReplDomainSingleDomain message. Also converts values to other types if specified.
51639
+ * @function toObject
51640
+ * @memberof replit.goval.api.ReplDomainSingleDomain
51641
+ * @static
51642
+ * @param {replit.goval.api.ReplDomainSingleDomain} message ReplDomainSingleDomain
51643
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
51644
+ * @returns {Object.<string,*>} Plain object
51645
+ */
51646
+ ReplDomainSingleDomain.toObject = function toObject(message, options) {
51647
+ if (!options)
51648
+ options = {};
51649
+ var object = {};
51650
+ if (options.defaults) {
51651
+ object.user = "";
51652
+ object.suffix = "";
51653
+ }
51654
+ if (message.user != null && message.hasOwnProperty("user"))
51655
+ object.user = message.user;
51656
+ if (message.suffix != null && message.hasOwnProperty("suffix"))
51657
+ object.suffix = message.suffix;
51658
+ return object;
51659
+ };
51660
+
51661
+ /**
51662
+ * Converts this ReplDomainSingleDomain to JSON.
51663
+ * @function toJSON
51664
+ * @memberof replit.goval.api.ReplDomainSingleDomain
51665
+ * @instance
51666
+ * @returns {Object.<string,*>} JSON object
51667
+ */
51668
+ ReplDomainSingleDomain.prototype.toJSON = function toJSON() {
51669
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
51670
+ };
51671
+
51672
+ return ReplDomainSingleDomain;
51673
+ })();
51674
+
51675
+ api.ReplDomainId = (function() {
51676
+
51677
+ /**
51678
+ * Properties of a ReplDomainId.
51679
+ * @memberof replit.goval.api
51680
+ * @interface IReplDomainId
51681
+ * @property {string|null} [id] ReplDomainId id
51682
+ * @property {string|null} [suffix] ReplDomainId suffix
51683
+ */
51684
+
51685
+ /**
51686
+ * Constructs a new ReplDomainId.
51687
+ * @memberof replit.goval.api
51688
+ * @classdesc Represents a ReplDomainId.
51689
+ * @constructor
51690
+ * @param {replit.goval.api.IReplDomainId=} [properties] Properties to set
51691
+ */
51692
+ function ReplDomainId(properties) {
51693
+ if (properties)
51694
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
51695
+ if (properties[keys[i]] != null)
51696
+ this[keys[i]] = properties[keys[i]];
51697
+ }
51698
+
51699
+ /**
51700
+ * ReplDomainId id.
51701
+ * @member {string} id
51702
+ * @memberof replit.goval.api.ReplDomainId
51703
+ * @instance
51704
+ */
51705
+ ReplDomainId.prototype.id = "";
51706
+
51707
+ /**
51708
+ * ReplDomainId suffix.
51709
+ * @member {string} suffix
51710
+ * @memberof replit.goval.api.ReplDomainId
51711
+ * @instance
51712
+ */
51713
+ ReplDomainId.prototype.suffix = "";
51714
+
51715
+ /**
51716
+ * Creates a new ReplDomainId instance using the specified properties.
51717
+ * @function create
51718
+ * @memberof replit.goval.api.ReplDomainId
51719
+ * @static
51720
+ * @param {replit.goval.api.IReplDomainId=} [properties] Properties to set
51721
+ * @returns {replit.goval.api.ReplDomainId} ReplDomainId instance
51722
+ */
51723
+ ReplDomainId.create = function create(properties) {
51724
+ return ReplDomainId.fromObject(properties);
51725
+ };
51726
+
51727
+ /**
51728
+ * Encodes the specified ReplDomainId message. Does not implicitly {@link replit.goval.api.ReplDomainId.verify|verify} messages.
51729
+ * @function encode
51730
+ * @memberof replit.goval.api.ReplDomainId
51731
+ * @static
51732
+ * @param {replit.goval.api.ReplDomainId} message ReplDomainId message or plain object to encode
51733
+ * @param {$protobuf.Writer} [writer] Writer to encode to
51734
+ * @returns {$protobuf.Writer} Writer
51735
+ */
51736
+ ReplDomainId.encode = function encode(message, writer) {
51737
+ if (!writer)
51738
+ writer = $Writer.create();
51739
+ if (message.id != null && Object.hasOwnProperty.call(message, "id"))
51740
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.id);
51741
+ if (message.suffix != null && Object.hasOwnProperty.call(message, "suffix"))
51742
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.suffix);
51743
+ return writer;
51744
+ };
51745
+
51746
+ /**
51747
+ * Encodes the specified ReplDomainId message, length delimited. Does not implicitly {@link replit.goval.api.ReplDomainId.verify|verify} messages.
51748
+ * @function encodeDelimited
51749
+ * @memberof replit.goval.api.ReplDomainId
51750
+ * @static
51751
+ * @param {replit.goval.api.ReplDomainId} message ReplDomainId message or plain object to encode
51752
+ * @param {$protobuf.Writer} [writer] Writer to encode to
51753
+ * @returns {$protobuf.Writer} Writer
51754
+ */
51755
+ ReplDomainId.encodeDelimited = function encodeDelimited(message, writer) {
51756
+ return this.encode(message, writer).ldelim();
51757
+ };
51758
+
51759
+ /**
51760
+ * Decodes a ReplDomainId message from the specified reader or buffer.
51761
+ * @function decode
51762
+ * @memberof replit.goval.api.ReplDomainId
51763
+ * @static
51764
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
51765
+ * @param {number} [length] Message length if known beforehand
51766
+ * @returns {replit.goval.api.ReplDomainId} ReplDomainId
51767
+ * @throws {Error} If the payload is not a reader or valid buffer
51768
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
51769
+ */
51770
+ ReplDomainId.decode = function decode(reader, length) {
51771
+ if (!(reader instanceof $Reader))
51772
+ reader = $Reader.create(reader);
51773
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.ReplDomainId();
51774
+ while (reader.pos < end) {
51775
+ var tag = reader.uint32();
51776
+ switch (tag >>> 3) {
51777
+ case 1:
51778
+ message.id = reader.string();
51779
+ break;
51780
+ case 2:
51781
+ message.suffix = reader.string();
51782
+ break;
51783
+ default:
51784
+ reader.skipType(tag & 7);
51785
+ break;
51786
+ }
51787
+ }
51788
+ return message;
51789
+ };
51790
+
51791
+ /**
51792
+ * Decodes a ReplDomainId message from the specified reader or buffer, length delimited.
51793
+ * @function decodeDelimited
51794
+ * @memberof replit.goval.api.ReplDomainId
51795
+ * @static
51796
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
51797
+ * @returns {replit.goval.api.ReplDomainId} ReplDomainId
51798
+ * @throws {Error} If the payload is not a reader or valid buffer
51799
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
51800
+ */
51801
+ ReplDomainId.decodeDelimited = function decodeDelimited(reader) {
51802
+ if (!(reader instanceof $Reader))
51803
+ reader = new $Reader(reader);
51804
+ return this.decode(reader, reader.uint32());
51805
+ };
51806
+
51807
+ /**
51808
+ * Verifies a ReplDomainId message.
51809
+ * @function verify
51810
+ * @memberof replit.goval.api.ReplDomainId
51811
+ * @static
51812
+ * @param {Object.<string,*>} message Plain object to verify
51813
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
51814
+ */
51815
+ ReplDomainId.verify = function verify(message) {
51816
+ if (typeof message !== "object" || message === null)
51817
+ return "object expected";
51818
+ if (message.id != null && message.hasOwnProperty("id"))
51819
+ if (!$util.isString(message.id))
51820
+ return "id: string expected";
51821
+ if (message.suffix != null && message.hasOwnProperty("suffix"))
51822
+ if (!$util.isString(message.suffix))
51823
+ return "suffix: string expected";
51824
+ return null;
51825
+ };
51826
+
51827
+ /**
51828
+ * Creates a ReplDomainId message from a plain object. Also converts values to their respective internal types.
51829
+ * @function fromObject
51830
+ * @memberof replit.goval.api.ReplDomainId
51831
+ * @static
51832
+ * @param {Object.<string,*>} object Plain object
51833
+ * @returns {replit.goval.api.ReplDomainId} ReplDomainId
51834
+ */
51835
+ ReplDomainId.fromObject = function fromObject(object) {
51836
+ if (object instanceof $root.replit.goval.api.ReplDomainId)
51837
+ return object;
51838
+ var message = new $root.replit.goval.api.ReplDomainId();
51839
+ if (object.id != null)
51840
+ message.id = String(object.id);
51841
+ if (object.suffix != null)
51842
+ message.suffix = String(object.suffix);
51843
+ return message;
51844
+ };
51845
+
51846
+ /**
51847
+ * Creates a plain object from a ReplDomainId message. Also converts values to other types if specified.
51848
+ * @function toObject
51849
+ * @memberof replit.goval.api.ReplDomainId
51850
+ * @static
51851
+ * @param {replit.goval.api.ReplDomainId} message ReplDomainId
51852
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
51853
+ * @returns {Object.<string,*>} Plain object
51854
+ */
51855
+ ReplDomainId.toObject = function toObject(message, options) {
51856
+ if (!options)
51857
+ options = {};
51858
+ var object = {};
51859
+ if (options.defaults) {
51860
+ object.id = "";
51861
+ object.suffix = "";
51862
+ }
51863
+ if (message.id != null && message.hasOwnProperty("id"))
51864
+ object.id = message.id;
51865
+ if (message.suffix != null && message.hasOwnProperty("suffix"))
51866
+ object.suffix = message.suffix;
51867
+ return object;
51868
+ };
51869
+
51870
+ /**
51871
+ * Converts this ReplDomainId to JSON.
51872
+ * @function toJSON
51873
+ * @memberof replit.goval.api.ReplDomainId
51874
+ * @instance
51875
+ * @returns {Object.<string,*>} JSON object
51876
+ */
51877
+ ReplDomainId.prototype.toJSON = function toJSON() {
51878
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
51879
+ };
51880
+
51881
+ return ReplDomainId;
51882
+ })();
51883
+
51884
+ api.ReplDomain = (function() {
51885
+
51886
+ /**
51887
+ * Properties of a ReplDomain.
51888
+ * @memberof replit.goval.api
51889
+ * @interface IReplDomain
51890
+ * @property {string|null} [custom] ReplDomain custom
51891
+ * @property {replit.goval.api.ReplDomainId|replit.goval.api.IReplDomainId|null} [id] ReplDomain id
51892
+ * @property {replit.goval.api.ReplDomainDoubleDash|replit.goval.api.IReplDomainDoubleDash|null} [doubleDash] ReplDomain doubleDash
51893
+ * @property {replit.goval.api.ReplDomainDots|replit.goval.api.IReplDomainDots|null} [dots] ReplDomain dots
51894
+ * @property {replit.goval.api.ReplDomainSingleDomain|replit.goval.api.IReplDomainSingleDomain|null} [singleDomain] ReplDomain singleDomain
51895
+ */
51896
+
51897
+ /**
51898
+ * Constructs a new ReplDomain.
51899
+ * @memberof replit.goval.api
51900
+ * @classdesc Represents a ReplDomain.
51901
+ * @constructor
51902
+ * @param {replit.goval.api.IReplDomain=} [properties] Properties to set
51903
+ */
51904
+ function ReplDomain(properties) {
51905
+ if (properties)
51906
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
51907
+ if (properties[keys[i]] != null)
51908
+ this[keys[i]] = properties[keys[i]];
51909
+ }
51910
+
51911
+ /**
51912
+ * ReplDomain custom.
51913
+ * @member {string|null|undefined} custom
51914
+ * @memberof replit.goval.api.ReplDomain
51915
+ * @instance
51916
+ */
51917
+ ReplDomain.prototype.custom = null;
51918
+
51919
+ /**
51920
+ * ReplDomain id.
51921
+ * @member {replit.goval.api.ReplDomainId|null|undefined} id
51922
+ * @memberof replit.goval.api.ReplDomain
51923
+ * @instance
51924
+ */
51925
+ ReplDomain.prototype.id = null;
51926
+
51927
+ /**
51928
+ * ReplDomain doubleDash.
51929
+ * @member {replit.goval.api.ReplDomainDoubleDash|null|undefined} doubleDash
51930
+ * @memberof replit.goval.api.ReplDomain
51931
+ * @instance
51932
+ */
51933
+ ReplDomain.prototype.doubleDash = null;
51934
+
51935
+ /**
51936
+ * ReplDomain dots.
51937
+ * @member {replit.goval.api.ReplDomainDots|null|undefined} dots
51938
+ * @memberof replit.goval.api.ReplDomain
51939
+ * @instance
51940
+ */
51941
+ ReplDomain.prototype.dots = null;
51942
+
51943
+ /**
51944
+ * ReplDomain singleDomain.
51945
+ * @member {replit.goval.api.ReplDomainSingleDomain|null|undefined} singleDomain
51946
+ * @memberof replit.goval.api.ReplDomain
51947
+ * @instance
51948
+ */
51949
+ ReplDomain.prototype.singleDomain = null;
51950
+
51951
+ // OneOf field names bound to virtual getters and setters
51952
+ var $oneOfFields;
51953
+
51954
+ /**
51955
+ * ReplDomain kind.
51956
+ * @member {"custom"|"id"|"doubleDash"|"dots"|"singleDomain"|undefined} kind
51957
+ * @memberof replit.goval.api.ReplDomain
51958
+ * @instance
51959
+ */
51960
+ Object.defineProperty(ReplDomain.prototype, "kind", {
51961
+ get: $util.oneOfGetter($oneOfFields = ["custom", "id", "doubleDash", "dots", "singleDomain"]),
51962
+ set: $util.oneOfSetter($oneOfFields)
51963
+ });
51964
+
51965
+ /**
51966
+ * Creates a new ReplDomain instance using the specified properties.
51967
+ * @function create
51968
+ * @memberof replit.goval.api.ReplDomain
51969
+ * @static
51970
+ * @param {replit.goval.api.IReplDomain=} [properties] Properties to set
51971
+ * @returns {replit.goval.api.ReplDomain} ReplDomain instance
51972
+ */
51973
+ ReplDomain.create = function create(properties) {
51974
+ return ReplDomain.fromObject(properties);
51975
+ };
51976
+
51977
+ /**
51978
+ * Encodes the specified ReplDomain message. Does not implicitly {@link replit.goval.api.ReplDomain.verify|verify} messages.
51979
+ * @function encode
51980
+ * @memberof replit.goval.api.ReplDomain
51981
+ * @static
51982
+ * @param {replit.goval.api.ReplDomain} message ReplDomain message or plain object to encode
51983
+ * @param {$protobuf.Writer} [writer] Writer to encode to
51984
+ * @returns {$protobuf.Writer} Writer
51985
+ */
51986
+ ReplDomain.encode = function encode(message, writer) {
51987
+ if (!writer)
51988
+ writer = $Writer.create();
51989
+ if (message.custom != null && Object.hasOwnProperty.call(message, "custom"))
51990
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.custom);
51991
+ if (message.id != null && Object.hasOwnProperty.call(message, "id"))
51992
+ $root.replit.goval.api.ReplDomainId.encode(message.id, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
51993
+ if (message.doubleDash != null && Object.hasOwnProperty.call(message, "doubleDash"))
51994
+ $root.replit.goval.api.ReplDomainDoubleDash.encode(message.doubleDash, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
51995
+ if (message.dots != null && Object.hasOwnProperty.call(message, "dots"))
51996
+ $root.replit.goval.api.ReplDomainDots.encode(message.dots, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
51997
+ if (message.singleDomain != null && Object.hasOwnProperty.call(message, "singleDomain"))
51998
+ $root.replit.goval.api.ReplDomainSingleDomain.encode(message.singleDomain, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
51999
+ return writer;
52000
+ };
52001
+
52002
+ /**
52003
+ * Encodes the specified ReplDomain message, length delimited. Does not implicitly {@link replit.goval.api.ReplDomain.verify|verify} messages.
52004
+ * @function encodeDelimited
52005
+ * @memberof replit.goval.api.ReplDomain
52006
+ * @static
52007
+ * @param {replit.goval.api.ReplDomain} message ReplDomain message or plain object to encode
52008
+ * @param {$protobuf.Writer} [writer] Writer to encode to
52009
+ * @returns {$protobuf.Writer} Writer
52010
+ */
52011
+ ReplDomain.encodeDelimited = function encodeDelimited(message, writer) {
52012
+ return this.encode(message, writer).ldelim();
52013
+ };
52014
+
52015
+ /**
52016
+ * Decodes a ReplDomain message from the specified reader or buffer.
52017
+ * @function decode
52018
+ * @memberof replit.goval.api.ReplDomain
52019
+ * @static
52020
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
52021
+ * @param {number} [length] Message length if known beforehand
52022
+ * @returns {replit.goval.api.ReplDomain} ReplDomain
52023
+ * @throws {Error} If the payload is not a reader or valid buffer
52024
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
52025
+ */
52026
+ ReplDomain.decode = function decode(reader, length) {
52027
+ if (!(reader instanceof $Reader))
52028
+ reader = $Reader.create(reader);
52029
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.ReplDomain();
52030
+ while (reader.pos < end) {
52031
+ var tag = reader.uint32();
52032
+ switch (tag >>> 3) {
52033
+ case 1:
52034
+ message.custom = reader.string();
52035
+ break;
52036
+ case 2:
52037
+ message.id = $root.replit.goval.api.ReplDomainId.decode(reader, reader.uint32());
52038
+ break;
52039
+ case 3:
52040
+ message.doubleDash = $root.replit.goval.api.ReplDomainDoubleDash.decode(reader, reader.uint32());
52041
+ break;
52042
+ case 4:
52043
+ message.dots = $root.replit.goval.api.ReplDomainDots.decode(reader, reader.uint32());
52044
+ break;
52045
+ case 5:
52046
+ message.singleDomain = $root.replit.goval.api.ReplDomainSingleDomain.decode(reader, reader.uint32());
52047
+ break;
52048
+ default:
52049
+ reader.skipType(tag & 7);
52050
+ break;
52051
+ }
52052
+ }
52053
+ return message;
52054
+ };
52055
+
52056
+ /**
52057
+ * Decodes a ReplDomain message from the specified reader or buffer, length delimited.
52058
+ * @function decodeDelimited
52059
+ * @memberof replit.goval.api.ReplDomain
52060
+ * @static
52061
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
52062
+ * @returns {replit.goval.api.ReplDomain} ReplDomain
52063
+ * @throws {Error} If the payload is not a reader or valid buffer
52064
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
52065
+ */
52066
+ ReplDomain.decodeDelimited = function decodeDelimited(reader) {
52067
+ if (!(reader instanceof $Reader))
52068
+ reader = new $Reader(reader);
52069
+ return this.decode(reader, reader.uint32());
52070
+ };
52071
+
52072
+ /**
52073
+ * Verifies a ReplDomain message.
52074
+ * @function verify
52075
+ * @memberof replit.goval.api.ReplDomain
52076
+ * @static
52077
+ * @param {Object.<string,*>} message Plain object to verify
52078
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
52079
+ */
52080
+ ReplDomain.verify = function verify(message) {
52081
+ if (typeof message !== "object" || message === null)
52082
+ return "object expected";
52083
+ var properties = {};
52084
+ if (message.custom != null && message.hasOwnProperty("custom")) {
52085
+ properties.kind = 1;
52086
+ if (!$util.isString(message.custom))
52087
+ return "custom: string expected";
52088
+ }
52089
+ if (message.id != null && message.hasOwnProperty("id")) {
52090
+ if (properties.kind === 1)
52091
+ return "kind: multiple values";
52092
+ properties.kind = 1;
52093
+ {
52094
+ var error = $root.replit.goval.api.ReplDomainId.verify(message.id);
52095
+ if (error)
52096
+ return "id." + error;
52097
+ }
52098
+ }
52099
+ if (message.doubleDash != null && message.hasOwnProperty("doubleDash")) {
52100
+ if (properties.kind === 1)
52101
+ return "kind: multiple values";
52102
+ properties.kind = 1;
52103
+ {
52104
+ var error = $root.replit.goval.api.ReplDomainDoubleDash.verify(message.doubleDash);
52105
+ if (error)
52106
+ return "doubleDash." + error;
52107
+ }
52108
+ }
52109
+ if (message.dots != null && message.hasOwnProperty("dots")) {
52110
+ if (properties.kind === 1)
52111
+ return "kind: multiple values";
52112
+ properties.kind = 1;
52113
+ {
52114
+ var error = $root.replit.goval.api.ReplDomainDots.verify(message.dots);
52115
+ if (error)
52116
+ return "dots." + error;
52117
+ }
52118
+ }
52119
+ if (message.singleDomain != null && message.hasOwnProperty("singleDomain")) {
52120
+ if (properties.kind === 1)
52121
+ return "kind: multiple values";
52122
+ properties.kind = 1;
52123
+ {
52124
+ var error = $root.replit.goval.api.ReplDomainSingleDomain.verify(message.singleDomain);
52125
+ if (error)
52126
+ return "singleDomain." + error;
52127
+ }
52128
+ }
52129
+ return null;
52130
+ };
52131
+
52132
+ /**
52133
+ * Creates a ReplDomain message from a plain object. Also converts values to their respective internal types.
52134
+ * @function fromObject
52135
+ * @memberof replit.goval.api.ReplDomain
52136
+ * @static
52137
+ * @param {Object.<string,*>} object Plain object
52138
+ * @returns {replit.goval.api.ReplDomain} ReplDomain
52139
+ */
52140
+ ReplDomain.fromObject = function fromObject(object) {
52141
+ if (object instanceof $root.replit.goval.api.ReplDomain)
52142
+ return object;
52143
+ var message = new $root.replit.goval.api.ReplDomain();
52144
+ if (object.custom != null)
52145
+ message.custom = String(object.custom);
52146
+ if (object.id != null) {
52147
+ if (typeof object.id !== "object")
52148
+ throw TypeError(".replit.goval.api.ReplDomain.id: object expected");
52149
+ message.id = $root.replit.goval.api.ReplDomainId.fromObject(object.id);
52150
+ }
52151
+ if (object.doubleDash != null) {
52152
+ if (typeof object.doubleDash !== "object")
52153
+ throw TypeError(".replit.goval.api.ReplDomain.doubleDash: object expected");
52154
+ message.doubleDash = $root.replit.goval.api.ReplDomainDoubleDash.fromObject(object.doubleDash);
52155
+ }
52156
+ if (object.dots != null) {
52157
+ if (typeof object.dots !== "object")
52158
+ throw TypeError(".replit.goval.api.ReplDomain.dots: object expected");
52159
+ message.dots = $root.replit.goval.api.ReplDomainDots.fromObject(object.dots);
52160
+ }
52161
+ if (object.singleDomain != null) {
52162
+ if (typeof object.singleDomain !== "object")
52163
+ throw TypeError(".replit.goval.api.ReplDomain.singleDomain: object expected");
52164
+ message.singleDomain = $root.replit.goval.api.ReplDomainSingleDomain.fromObject(object.singleDomain);
52165
+ }
52166
+ return message;
52167
+ };
52168
+
52169
+ /**
52170
+ * Creates a plain object from a ReplDomain message. Also converts values to other types if specified.
52171
+ * @function toObject
52172
+ * @memberof replit.goval.api.ReplDomain
52173
+ * @static
52174
+ * @param {replit.goval.api.ReplDomain} message ReplDomain
52175
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
52176
+ * @returns {Object.<string,*>} Plain object
52177
+ */
52178
+ ReplDomain.toObject = function toObject(message, options) {
52179
+ if (!options)
52180
+ options = {};
52181
+ var object = {};
52182
+ if (message.custom != null && message.hasOwnProperty("custom")) {
52183
+ object.custom = message.custom;
52184
+ if (options.oneofs)
52185
+ object.kind = "custom";
52186
+ }
52187
+ if (message.id != null && message.hasOwnProperty("id")) {
52188
+ object.id = $root.replit.goval.api.ReplDomainId.toObject(message.id, options);
52189
+ if (options.oneofs)
52190
+ object.kind = "id";
52191
+ }
52192
+ if (message.doubleDash != null && message.hasOwnProperty("doubleDash")) {
52193
+ object.doubleDash = $root.replit.goval.api.ReplDomainDoubleDash.toObject(message.doubleDash, options);
52194
+ if (options.oneofs)
52195
+ object.kind = "doubleDash";
52196
+ }
52197
+ if (message.dots != null && message.hasOwnProperty("dots")) {
52198
+ object.dots = $root.replit.goval.api.ReplDomainDots.toObject(message.dots, options);
52199
+ if (options.oneofs)
52200
+ object.kind = "dots";
52201
+ }
52202
+ if (message.singleDomain != null && message.hasOwnProperty("singleDomain")) {
52203
+ object.singleDomain = $root.replit.goval.api.ReplDomainSingleDomain.toObject(message.singleDomain, options);
52204
+ if (options.oneofs)
52205
+ object.kind = "singleDomain";
52206
+ }
52207
+ return object;
52208
+ };
52209
+
52210
+ /**
52211
+ * Converts this ReplDomain to JSON.
52212
+ * @function toJSON
52213
+ * @memberof replit.goval.api.ReplDomain
52214
+ * @instance
52215
+ * @returns {Object.<string,*>} JSON object
52216
+ */
52217
+ ReplDomain.prototype.toJSON = function toJSON() {
52218
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
52219
+ };
52220
+
52221
+ return ReplDomain;
52222
+ })();
52223
+
50695
52224
  api.ReplToken = (function() {
50696
52225
 
50697
52226
  /**
@@ -53822,6 +55351,8 @@
53822
55351
  * @property {number} SIGN_INTERMEDIATE_CERT=1 SIGN_INTERMEDIATE_CERT value
53823
55352
  * @property {number} IDENTITY=5 IDENTITY value
53824
55353
  * @property {number} GHOSTWRITER=6 GHOSTWRITER value
55354
+ * @property {number} RENEW_IDENTITY=7 RENEW_IDENTITY value
55355
+ * @property {number} RENEW_KV=8 RENEW_KV value
53825
55356
  * @property {number} ANY_REPLID=2 ANY_REPLID value
53826
55357
  * @property {number} ANY_USER=3 ANY_USER value
53827
55358
  * @property {number} ANY_CLUSTER=4 ANY_CLUSTER value
@@ -53832,6 +55363,8 @@
53832
55363
  values[valuesById[1] = "SIGN_INTERMEDIATE_CERT"] = 1;
53833
55364
  values[valuesById[5] = "IDENTITY"] = 5;
53834
55365
  values[valuesById[6] = "GHOSTWRITER"] = 6;
55366
+ values[valuesById[7] = "RENEW_IDENTITY"] = 7;
55367
+ values[valuesById[8] = "RENEW_KV"] = 8;
53835
55368
  values[valuesById[2] = "ANY_REPLID"] = 2;
53836
55369
  values[valuesById[3] = "ANY_USER"] = 3;
53837
55370
  values[valuesById[4] = "ANY_CLUSTER"] = 4;
@@ -54054,6 +55587,8 @@
54054
55587
  case 1:
54055
55588
  case 5:
54056
55589
  case 6:
55590
+ case 7:
55591
+ case 8:
54057
55592
  case 2:
54058
55593
  case 3:
54059
55594
  case 4:
@@ -54098,6 +55633,14 @@
54098
55633
  case 6:
54099
55634
  message.flag = 6;
54100
55635
  break;
55636
+ case "RENEW_IDENTITY":
55637
+ case 7:
55638
+ message.flag = 7;
55639
+ break;
55640
+ case "RENEW_KV":
55641
+ case 8:
55642
+ message.flag = 8;
55643
+ break;
54101
55644
  case "ANY_REPLID":
54102
55645
  case 2:
54103
55646
  message.flag = 2;