@replit/protocol 0.3.31 → 0.3.33

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.d.ts CHANGED
@@ -17873,6 +17873,9 @@ export namespace replit {
17873
17873
 
17874
17874
  /** DotReplit rules */
17875
17875
  rules?: (replit.goval.api.RulesConfig|replit.goval.api.IRulesConfig|null);
17876
+
17877
+ /** DotReplit suggestions */
17878
+ suggestions?: (replit.goval.api.SuggestionsConfig|replit.goval.api.ISuggestionsConfig|null);
17876
17879
  }
17877
17880
 
17878
17881
  /** Represents a DotReplit. */
@@ -17959,6 +17962,9 @@ export namespace replit {
17959
17962
  /** DotReplit rules. */
17960
17963
  public rules?: (replit.goval.api.RulesConfig|null);
17961
17964
 
17965
+ /** DotReplit suggestions. */
17966
+ public suggestions?: (replit.goval.api.SuggestionsConfig|null);
17967
+
17962
17968
  /**
17963
17969
  * Creates a new DotReplit instance using the specified properties.
17964
17970
  * @param [properties] Properties to set
@@ -18460,6 +18466,9 @@ export namespace replit {
18460
18466
 
18461
18467
  /** DeploymentConfig publicDir */
18462
18468
  publicDir?: (string|null);
18469
+
18470
+ /** DeploymentConfig rewrites */
18471
+ rewrites?: ((replit.goval.api.DeploymentConfig.RewriteRule|replit.goval.api.DeploymentConfig.IRewriteRule)[]|null);
18463
18472
  }
18464
18473
 
18465
18474
  /** Represents a DeploymentConfig. */
@@ -18486,6 +18495,9 @@ export namespace replit {
18486
18495
  /** DeploymentConfig publicDir. */
18487
18496
  public publicDir: string;
18488
18497
 
18498
+ /** DeploymentConfig rewrites. */
18499
+ public rewrites: replit.goval.api.DeploymentConfig.RewriteRule[];
18500
+
18489
18501
  /**
18490
18502
  * Creates a new DeploymentConfig instance using the specified properties.
18491
18503
  * @param [properties] Properties to set
@@ -18572,6 +18584,109 @@ export namespace replit {
18572
18584
  CLOUDRUN = 1,
18573
18585
  STATIC = 2
18574
18586
  }
18587
+
18588
+ /** Properties of a RewriteRule. */
18589
+ interface IRewriteRule {
18590
+
18591
+ /** RewriteRule from */
18592
+ from?: (string|null);
18593
+
18594
+ /** RewriteRule to */
18595
+ to?: (string|null);
18596
+ }
18597
+
18598
+ /** Represents a RewriteRule. */
18599
+ class RewriteRule {
18600
+
18601
+ /**
18602
+ * Constructs a new RewriteRule.
18603
+ * @param [properties] Properties to set
18604
+ */
18605
+ private constructor(properties?: replit.goval.api.DeploymentConfig.IRewriteRule);
18606
+
18607
+ /** RewriteRule from. */
18608
+ public from: string;
18609
+
18610
+ /** RewriteRule to. */
18611
+ public to: string;
18612
+
18613
+ /**
18614
+ * Creates a new RewriteRule instance using the specified properties.
18615
+ * @param [properties] Properties to set
18616
+ * @returns RewriteRule instance
18617
+ */
18618
+ public static create(properties?: replit.goval.api.DeploymentConfig.IRewriteRule): replit.goval.api.DeploymentConfig.RewriteRule;
18619
+
18620
+ /**
18621
+ * Encodes the specified RewriteRule message. Does not implicitly {@link replit.goval.api.DeploymentConfig.RewriteRule.verify|verify} messages.
18622
+ * @param message RewriteRule message or plain object to encode
18623
+ * @param [writer] Writer to encode to
18624
+ * @returns Writer
18625
+ */
18626
+ public static encode(message: replit.goval.api.DeploymentConfig.RewriteRule, writer?: $protobuf.Writer): $protobuf.Writer;
18627
+
18628
+ /**
18629
+ * Encodes the specified RewriteRule message, length delimited. Does not implicitly {@link replit.goval.api.DeploymentConfig.RewriteRule.verify|verify} messages.
18630
+ * @param message RewriteRule message or plain object to encode
18631
+ * @param [writer] Writer to encode to
18632
+ * @returns Writer
18633
+ */
18634
+ public static encodeDelimited(message: replit.goval.api.DeploymentConfig.RewriteRule, writer?: $protobuf.Writer): $protobuf.Writer;
18635
+
18636
+ /**
18637
+ * Decodes a RewriteRule message from the specified reader or buffer.
18638
+ * @param reader Reader or buffer to decode from
18639
+ * @param [length] Message length if known beforehand
18640
+ * @returns RewriteRule
18641
+ * @throws {Error} If the payload is not a reader or valid buffer
18642
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
18643
+ */
18644
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): replit.goval.api.DeploymentConfig.RewriteRule;
18645
+
18646
+ /**
18647
+ * Decodes a RewriteRule message from the specified reader or buffer, length delimited.
18648
+ * @param reader Reader or buffer to decode from
18649
+ * @returns RewriteRule
18650
+ * @throws {Error} If the payload is not a reader or valid buffer
18651
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
18652
+ */
18653
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): replit.goval.api.DeploymentConfig.RewriteRule;
18654
+
18655
+ /**
18656
+ * Verifies a RewriteRule message.
18657
+ * @param message Plain object to verify
18658
+ * @returns `null` if valid, otherwise the reason why it is not
18659
+ */
18660
+ public static verify(message: { [k: string]: any }): (string|null);
18661
+
18662
+ /**
18663
+ * Creates a RewriteRule message from a plain object. Also converts values to their respective internal types.
18664
+ * @param object Plain object
18665
+ * @returns RewriteRule
18666
+ */
18667
+ public static fromObject(object: { [k: string]: any }): replit.goval.api.DeploymentConfig.RewriteRule;
18668
+
18669
+ /**
18670
+ * Creates a plain object from a RewriteRule message. Also converts values to other types if specified.
18671
+ * @param message RewriteRule
18672
+ * @param [options] Conversion options
18673
+ * @returns Plain object
18674
+ */
18675
+ public static toObject(message: replit.goval.api.DeploymentConfig.RewriteRule, options?: $protobuf.IConversionOptions): { [k: string]: any };
18676
+
18677
+ /**
18678
+ * Converts this RewriteRule to JSON.
18679
+ * @returns JSON object
18680
+ */
18681
+ public toJSON(): { [k: string]: any };
18682
+
18683
+ /**
18684
+ * Gets the default type url for RewriteRule
18685
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
18686
+ * @returns The default type url
18687
+ */
18688
+ public static getTypeUrl(typeUrlPrefix?: string): string;
18689
+ }
18575
18690
  }
18576
18691
 
18577
18692
  /** Properties of an ExtensionConfig. */
@@ -18695,6 +18810,103 @@ export namespace replit {
18695
18810
  public static getTypeUrl(typeUrlPrefix?: string): string;
18696
18811
  }
18697
18812
 
18813
+ /** Properties of a SuggestionsConfig. */
18814
+ interface ISuggestionsConfig {
18815
+
18816
+ /** SuggestionsConfig extensions */
18817
+ extensions?: (string[]|null);
18818
+ }
18819
+
18820
+ /** Represents a SuggestionsConfig. */
18821
+ class SuggestionsConfig {
18822
+
18823
+ /**
18824
+ * Constructs a new SuggestionsConfig.
18825
+ * @param [properties] Properties to set
18826
+ */
18827
+ private constructor(properties?: replit.goval.api.ISuggestionsConfig);
18828
+
18829
+ /** SuggestionsConfig extensions. */
18830
+ public extensions: string[];
18831
+
18832
+ /**
18833
+ * Creates a new SuggestionsConfig instance using the specified properties.
18834
+ * @param [properties] Properties to set
18835
+ * @returns SuggestionsConfig instance
18836
+ */
18837
+ public static create(properties?: replit.goval.api.ISuggestionsConfig): replit.goval.api.SuggestionsConfig;
18838
+
18839
+ /**
18840
+ * Encodes the specified SuggestionsConfig message. Does not implicitly {@link replit.goval.api.SuggestionsConfig.verify|verify} messages.
18841
+ * @param message SuggestionsConfig message or plain object to encode
18842
+ * @param [writer] Writer to encode to
18843
+ * @returns Writer
18844
+ */
18845
+ public static encode(message: replit.goval.api.SuggestionsConfig, writer?: $protobuf.Writer): $protobuf.Writer;
18846
+
18847
+ /**
18848
+ * Encodes the specified SuggestionsConfig message, length delimited. Does not implicitly {@link replit.goval.api.SuggestionsConfig.verify|verify} messages.
18849
+ * @param message SuggestionsConfig message or plain object to encode
18850
+ * @param [writer] Writer to encode to
18851
+ * @returns Writer
18852
+ */
18853
+ public static encodeDelimited(message: replit.goval.api.SuggestionsConfig, writer?: $protobuf.Writer): $protobuf.Writer;
18854
+
18855
+ /**
18856
+ * Decodes a SuggestionsConfig message from the specified reader or buffer.
18857
+ * @param reader Reader or buffer to decode from
18858
+ * @param [length] Message length if known beforehand
18859
+ * @returns SuggestionsConfig
18860
+ * @throws {Error} If the payload is not a reader or valid buffer
18861
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
18862
+ */
18863
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): replit.goval.api.SuggestionsConfig;
18864
+
18865
+ /**
18866
+ * Decodes a SuggestionsConfig message from the specified reader or buffer, length delimited.
18867
+ * @param reader Reader or buffer to decode from
18868
+ * @returns SuggestionsConfig
18869
+ * @throws {Error} If the payload is not a reader or valid buffer
18870
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
18871
+ */
18872
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): replit.goval.api.SuggestionsConfig;
18873
+
18874
+ /**
18875
+ * Verifies a SuggestionsConfig message.
18876
+ * @param message Plain object to verify
18877
+ * @returns `null` if valid, otherwise the reason why it is not
18878
+ */
18879
+ public static verify(message: { [k: string]: any }): (string|null);
18880
+
18881
+ /**
18882
+ * Creates a SuggestionsConfig message from a plain object. Also converts values to their respective internal types.
18883
+ * @param object Plain object
18884
+ * @returns SuggestionsConfig
18885
+ */
18886
+ public static fromObject(object: { [k: string]: any }): replit.goval.api.SuggestionsConfig;
18887
+
18888
+ /**
18889
+ * Creates a plain object from a SuggestionsConfig message. Also converts values to other types if specified.
18890
+ * @param message SuggestionsConfig
18891
+ * @param [options] Conversion options
18892
+ * @returns Plain object
18893
+ */
18894
+ public static toObject(message: replit.goval.api.SuggestionsConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
18895
+
18896
+ /**
18897
+ * Converts this SuggestionsConfig to JSON.
18898
+ * @returns JSON object
18899
+ */
18900
+ public toJSON(): { [k: string]: any };
18901
+
18902
+ /**
18903
+ * Gets the default type url for SuggestionsConfig
18904
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
18905
+ * @returns The default type url
18906
+ */
18907
+ public static getTypeUrl(typeUrlPrefix?: string): string;
18908
+ }
18909
+
18698
18910
  /** Properties of a NixConfig. */
18699
18911
  interface INixConfig {
18700
18912
 
package/main/index.js CHANGED
@@ -44851,6 +44851,7 @@
44851
44851
  * @property {Array.<string>|null} [modules] DotReplit modules
44852
44852
  * @property {replit.goval.api.ExtensionConfig|replit.goval.api.IExtensionConfig|null} [extension] DotReplit extension
44853
44853
  * @property {replit.goval.api.RulesConfig|replit.goval.api.IRulesConfig|null} [rules] DotReplit rules
44854
+ * @property {replit.goval.api.SuggestionsConfig|replit.goval.api.ISuggestionsConfig|null} [suggestions] DotReplit suggestions
44854
44855
  */
44855
44856
 
44856
44857
  /**
@@ -45075,6 +45076,14 @@
45075
45076
  */
45076
45077
  DotReplit.prototype.rules = null;
45077
45078
 
45079
+ /**
45080
+ * DotReplit suggestions.
45081
+ * @member {replit.goval.api.SuggestionsConfig|null|undefined} suggestions
45082
+ * @memberof replit.goval.api.DotReplit
45083
+ * @instance
45084
+ */
45085
+ DotReplit.prototype.suggestions = null;
45086
+
45078
45087
  /**
45079
45088
  * Creates a new DotReplit instance using the specified properties.
45080
45089
  * @function create
@@ -45159,6 +45168,8 @@
45159
45168
  $root.replit.goval.api.ExtensionConfig.encode(message.extension, writer.uint32(/* id 24, wireType 2 =*/194).fork()).ldelim();
45160
45169
  if (message.rules != null && Object.hasOwnProperty.call(message, "rules"))
45161
45170
  $root.replit.goval.api.RulesConfig.encode(message.rules, writer.uint32(/* id 25, wireType 2 =*/202).fork()).ldelim();
45171
+ if (message.suggestions != null && Object.hasOwnProperty.call(message, "suggestions"))
45172
+ $root.replit.goval.api.SuggestionsConfig.encode(message.suggestions, writer.uint32(/* id 26, wireType 2 =*/210).fork()).ldelim();
45162
45173
  return writer;
45163
45174
  };
45164
45175
 
@@ -45343,6 +45354,10 @@
45343
45354
  message.rules = $root.replit.goval.api.RulesConfig.decode(reader, reader.uint32());
45344
45355
  break;
45345
45356
  }
45357
+ case 26: {
45358
+ message.suggestions = $root.replit.goval.api.SuggestionsConfig.decode(reader, reader.uint32());
45359
+ break;
45360
+ }
45346
45361
  default:
45347
45362
  reader.skipType(tag & 7);
45348
45363
  break;
@@ -45523,6 +45538,11 @@
45523
45538
  if (error)
45524
45539
  return "rules." + error;
45525
45540
  }
45541
+ if (message.suggestions != null && message.hasOwnProperty("suggestions")) {
45542
+ var error = $root.replit.goval.api.SuggestionsConfig.verify(message.suggestions);
45543
+ if (error)
45544
+ return "suggestions." + error;
45545
+ }
45526
45546
  return null;
45527
45547
  };
45528
45548
 
@@ -45682,6 +45702,11 @@
45682
45702
  throw TypeError(".replit.goval.api.DotReplit.rules: object expected");
45683
45703
  message.rules = $root.replit.goval.api.RulesConfig.fromObject(object.rules);
45684
45704
  }
45705
+ if (object.suggestions != null) {
45706
+ if (typeof object.suggestions !== "object")
45707
+ throw TypeError(".replit.goval.api.DotReplit.suggestions: object expected");
45708
+ message.suggestions = $root.replit.goval.api.SuggestionsConfig.fromObject(object.suggestions);
45709
+ }
45685
45710
  return message;
45686
45711
  };
45687
45712
 
@@ -45728,6 +45753,7 @@
45728
45753
  object.deployment = null;
45729
45754
  object.extension = null;
45730
45755
  object.rules = null;
45756
+ object.suggestions = null;
45731
45757
  }
45732
45758
  if (message.run != null && message.hasOwnProperty("run"))
45733
45759
  object.run = $root.replit.goval.api.Exec.toObject(message.run, options);
@@ -45804,6 +45830,8 @@
45804
45830
  object.extension = $root.replit.goval.api.ExtensionConfig.toObject(message.extension, options);
45805
45831
  if (message.rules != null && message.hasOwnProperty("rules"))
45806
45832
  object.rules = $root.replit.goval.api.RulesConfig.toObject(message.rules, options);
45833
+ if (message.suggestions != null && message.hasOwnProperty("suggestions"))
45834
+ object.suggestions = $root.replit.goval.api.SuggestionsConfig.toObject(message.suggestions, options);
45807
45835
  return object;
45808
45836
  };
45809
45837
 
@@ -46743,6 +46771,7 @@
46743
46771
  * @property {boolean|null} [ignorePorts] DeploymentConfig ignorePorts
46744
46772
  * @property {replit.goval.api.DeploymentConfig.Target|null} [target] DeploymentConfig target
46745
46773
  * @property {string|null} [publicDir] DeploymentConfig publicDir
46774
+ * @property {Array.<replit.goval.api.DeploymentConfig.RewriteRule|replit.goval.api.DeploymentConfig.IRewriteRule>|null} [rewrites] DeploymentConfig rewrites
46746
46775
  */
46747
46776
 
46748
46777
  /**
@@ -46753,6 +46782,7 @@
46753
46782
  * @param {replit.goval.api.IDeploymentConfig=} [properties] Properties to set
46754
46783
  */
46755
46784
  function DeploymentConfig(properties) {
46785
+ this.rewrites = [];
46756
46786
  if (properties)
46757
46787
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
46758
46788
  if (properties[keys[i]] != null)
@@ -46799,6 +46829,14 @@
46799
46829
  */
46800
46830
  DeploymentConfig.prototype.publicDir = "";
46801
46831
 
46832
+ /**
46833
+ * DeploymentConfig rewrites.
46834
+ * @member {Array.<replit.goval.api.DeploymentConfig.RewriteRule>} rewrites
46835
+ * @memberof replit.goval.api.DeploymentConfig
46836
+ * @instance
46837
+ */
46838
+ DeploymentConfig.prototype.rewrites = $util.emptyArray;
46839
+
46802
46840
  /**
46803
46841
  * Creates a new DeploymentConfig instance using the specified properties.
46804
46842
  * @function create
@@ -46833,6 +46871,9 @@
46833
46871
  writer.uint32(/* id 4, wireType 0 =*/32).int32(message.target);
46834
46872
  if (message.publicDir != null && Object.hasOwnProperty.call(message, "publicDir"))
46835
46873
  writer.uint32(/* id 5, wireType 2 =*/42).string(message.publicDir);
46874
+ if (message.rewrites != null && message.rewrites.length)
46875
+ for (var i = 0; i < message.rewrites.length; ++i)
46876
+ $root.replit.goval.api.DeploymentConfig.RewriteRule.encode(message.rewrites[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
46836
46877
  return writer;
46837
46878
  };
46838
46879
 
@@ -46887,6 +46928,12 @@
46887
46928
  message.publicDir = reader.string();
46888
46929
  break;
46889
46930
  }
46931
+ case 6: {
46932
+ if (!(message.rewrites && message.rewrites.length))
46933
+ message.rewrites = [];
46934
+ message.rewrites.push($root.replit.goval.api.DeploymentConfig.RewriteRule.decode(reader, reader.uint32()));
46935
+ break;
46936
+ }
46890
46937
  default:
46891
46938
  reader.skipType(tag & 7);
46892
46939
  break;
@@ -46947,6 +46994,15 @@
46947
46994
  if (message.publicDir != null && message.hasOwnProperty("publicDir"))
46948
46995
  if (!$util.isString(message.publicDir))
46949
46996
  return "publicDir: string expected";
46997
+ if (message.rewrites != null && message.hasOwnProperty("rewrites")) {
46998
+ if (!Array.isArray(message.rewrites))
46999
+ return "rewrites: array expected";
47000
+ for (var i = 0; i < message.rewrites.length; ++i) {
47001
+ var error = $root.replit.goval.api.DeploymentConfig.RewriteRule.verify(message.rewrites[i]);
47002
+ if (error)
47003
+ return "rewrites." + error;
47004
+ }
47005
+ }
46950
47006
  return null;
46951
47007
  };
46952
47008
 
@@ -46996,6 +47052,16 @@
46996
47052
  }
46997
47053
  if (object.publicDir != null)
46998
47054
  message.publicDir = String(object.publicDir);
47055
+ if (object.rewrites) {
47056
+ if (!Array.isArray(object.rewrites))
47057
+ throw TypeError(".replit.goval.api.DeploymentConfig.rewrites: array expected");
47058
+ message.rewrites = [];
47059
+ for (var i = 0; i < object.rewrites.length; ++i) {
47060
+ if (typeof object.rewrites[i] !== "object")
47061
+ throw TypeError(".replit.goval.api.DeploymentConfig.rewrites: object expected");
47062
+ message.rewrites[i] = $root.replit.goval.api.DeploymentConfig.RewriteRule.fromObject(object.rewrites[i]);
47063
+ }
47064
+ }
46999
47065
  return message;
47000
47066
  };
47001
47067
 
@@ -47012,6 +47078,8 @@
47012
47078
  if (!options)
47013
47079
  options = {};
47014
47080
  var object = {};
47081
+ if (options.arrays || options.defaults)
47082
+ object.rewrites = [];
47015
47083
  if (options.defaults) {
47016
47084
  object.run = null;
47017
47085
  object.build = null;
@@ -47029,6 +47097,11 @@
47029
47097
  object.target = options.enums === String ? $root.replit.goval.api.DeploymentConfig.Target[message.target] === undefined ? message.target : $root.replit.goval.api.DeploymentConfig.Target[message.target] : message.target;
47030
47098
  if (message.publicDir != null && message.hasOwnProperty("publicDir"))
47031
47099
  object.publicDir = message.publicDir;
47100
+ if (message.rewrites && message.rewrites.length) {
47101
+ object.rewrites = [];
47102
+ for (var j = 0; j < message.rewrites.length; ++j)
47103
+ object.rewrites[j] = $root.replit.goval.api.DeploymentConfig.RewriteRule.toObject(message.rewrites[j], options);
47104
+ }
47032
47105
  return object;
47033
47106
  };
47034
47107
 
@@ -47074,6 +47147,232 @@
47074
47147
  return values;
47075
47148
  })();
47076
47149
 
47150
+ DeploymentConfig.RewriteRule = (function() {
47151
+
47152
+ /**
47153
+ * Properties of a RewriteRule.
47154
+ * @memberof replit.goval.api.DeploymentConfig
47155
+ * @interface IRewriteRule
47156
+ * @property {string|null} [from] RewriteRule from
47157
+ * @property {string|null} [to] RewriteRule to
47158
+ */
47159
+
47160
+ /**
47161
+ * Constructs a new RewriteRule.
47162
+ * @memberof replit.goval.api.DeploymentConfig
47163
+ * @classdesc Represents a RewriteRule.
47164
+ * @constructor
47165
+ * @param {replit.goval.api.DeploymentConfig.IRewriteRule=} [properties] Properties to set
47166
+ */
47167
+ function RewriteRule(properties) {
47168
+ if (properties)
47169
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
47170
+ if (properties[keys[i]] != null)
47171
+ this[keys[i]] = properties[keys[i]];
47172
+ }
47173
+
47174
+ /**
47175
+ * RewriteRule from.
47176
+ * @member {string} from
47177
+ * @memberof replit.goval.api.DeploymentConfig.RewriteRule
47178
+ * @instance
47179
+ */
47180
+ RewriteRule.prototype.from = "";
47181
+
47182
+ /**
47183
+ * RewriteRule to.
47184
+ * @member {string} to
47185
+ * @memberof replit.goval.api.DeploymentConfig.RewriteRule
47186
+ * @instance
47187
+ */
47188
+ RewriteRule.prototype.to = "";
47189
+
47190
+ /**
47191
+ * Creates a new RewriteRule instance using the specified properties.
47192
+ * @function create
47193
+ * @memberof replit.goval.api.DeploymentConfig.RewriteRule
47194
+ * @static
47195
+ * @param {replit.goval.api.DeploymentConfig.IRewriteRule=} [properties] Properties to set
47196
+ * @returns {replit.goval.api.DeploymentConfig.RewriteRule} RewriteRule instance
47197
+ */
47198
+ RewriteRule.create = function create(properties) {
47199
+ return RewriteRule.fromObject(properties);
47200
+ };
47201
+
47202
+ /**
47203
+ * Encodes the specified RewriteRule message. Does not implicitly {@link replit.goval.api.DeploymentConfig.RewriteRule.verify|verify} messages.
47204
+ * @function encode
47205
+ * @memberof replit.goval.api.DeploymentConfig.RewriteRule
47206
+ * @static
47207
+ * @param {replit.goval.api.DeploymentConfig.RewriteRule} message RewriteRule message or plain object to encode
47208
+ * @param {$protobuf.Writer} [writer] Writer to encode to
47209
+ * @returns {$protobuf.Writer} Writer
47210
+ */
47211
+ RewriteRule.encode = function encode(message, writer) {
47212
+ if (!writer)
47213
+ writer = $Writer.create();
47214
+ if (message.from != null && Object.hasOwnProperty.call(message, "from"))
47215
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.from);
47216
+ if (message.to != null && Object.hasOwnProperty.call(message, "to"))
47217
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.to);
47218
+ return writer;
47219
+ };
47220
+
47221
+ /**
47222
+ * Encodes the specified RewriteRule message, length delimited. Does not implicitly {@link replit.goval.api.DeploymentConfig.RewriteRule.verify|verify} messages.
47223
+ * @function encodeDelimited
47224
+ * @memberof replit.goval.api.DeploymentConfig.RewriteRule
47225
+ * @static
47226
+ * @param {replit.goval.api.DeploymentConfig.RewriteRule} message RewriteRule message or plain object to encode
47227
+ * @param {$protobuf.Writer} [writer] Writer to encode to
47228
+ * @returns {$protobuf.Writer} Writer
47229
+ */
47230
+ RewriteRule.encodeDelimited = function encodeDelimited(message, writer) {
47231
+ return this.encode(message, writer).ldelim();
47232
+ };
47233
+
47234
+ /**
47235
+ * Decodes a RewriteRule message from the specified reader or buffer.
47236
+ * @function decode
47237
+ * @memberof replit.goval.api.DeploymentConfig.RewriteRule
47238
+ * @static
47239
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
47240
+ * @param {number} [length] Message length if known beforehand
47241
+ * @returns {replit.goval.api.DeploymentConfig.RewriteRule} RewriteRule
47242
+ * @throws {Error} If the payload is not a reader or valid buffer
47243
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
47244
+ */
47245
+ RewriteRule.decode = function decode(reader, length) {
47246
+ if (!(reader instanceof $Reader))
47247
+ reader = $Reader.create(reader);
47248
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.DeploymentConfig.RewriteRule();
47249
+ while (reader.pos < end) {
47250
+ var tag = reader.uint32();
47251
+ switch (tag >>> 3) {
47252
+ case 1: {
47253
+ message.from = reader.string();
47254
+ break;
47255
+ }
47256
+ case 2: {
47257
+ message.to = reader.string();
47258
+ break;
47259
+ }
47260
+ default:
47261
+ reader.skipType(tag & 7);
47262
+ break;
47263
+ }
47264
+ }
47265
+ return message;
47266
+ };
47267
+
47268
+ /**
47269
+ * Decodes a RewriteRule message from the specified reader or buffer, length delimited.
47270
+ * @function decodeDelimited
47271
+ * @memberof replit.goval.api.DeploymentConfig.RewriteRule
47272
+ * @static
47273
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
47274
+ * @returns {replit.goval.api.DeploymentConfig.RewriteRule} RewriteRule
47275
+ * @throws {Error} If the payload is not a reader or valid buffer
47276
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
47277
+ */
47278
+ RewriteRule.decodeDelimited = function decodeDelimited(reader) {
47279
+ if (!(reader instanceof $Reader))
47280
+ reader = new $Reader(reader);
47281
+ return this.decode(reader, reader.uint32());
47282
+ };
47283
+
47284
+ /**
47285
+ * Verifies a RewriteRule message.
47286
+ * @function verify
47287
+ * @memberof replit.goval.api.DeploymentConfig.RewriteRule
47288
+ * @static
47289
+ * @param {Object.<string,*>} message Plain object to verify
47290
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
47291
+ */
47292
+ RewriteRule.verify = function verify(message) {
47293
+ if (typeof message !== "object" || message === null)
47294
+ return "object expected";
47295
+ if (message.from != null && message.hasOwnProperty("from"))
47296
+ if (!$util.isString(message.from))
47297
+ return "from: string expected";
47298
+ if (message.to != null && message.hasOwnProperty("to"))
47299
+ if (!$util.isString(message.to))
47300
+ return "to: string expected";
47301
+ return null;
47302
+ };
47303
+
47304
+ /**
47305
+ * Creates a RewriteRule message from a plain object. Also converts values to their respective internal types.
47306
+ * @function fromObject
47307
+ * @memberof replit.goval.api.DeploymentConfig.RewriteRule
47308
+ * @static
47309
+ * @param {Object.<string,*>} object Plain object
47310
+ * @returns {replit.goval.api.DeploymentConfig.RewriteRule} RewriteRule
47311
+ */
47312
+ RewriteRule.fromObject = function fromObject(object) {
47313
+ if (object instanceof $root.replit.goval.api.DeploymentConfig.RewriteRule)
47314
+ return object;
47315
+ var message = new $root.replit.goval.api.DeploymentConfig.RewriteRule();
47316
+ if (object.from != null)
47317
+ message.from = String(object.from);
47318
+ if (object.to != null)
47319
+ message.to = String(object.to);
47320
+ return message;
47321
+ };
47322
+
47323
+ /**
47324
+ * Creates a plain object from a RewriteRule message. Also converts values to other types if specified.
47325
+ * @function toObject
47326
+ * @memberof replit.goval.api.DeploymentConfig.RewriteRule
47327
+ * @static
47328
+ * @param {replit.goval.api.DeploymentConfig.RewriteRule} message RewriteRule
47329
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
47330
+ * @returns {Object.<string,*>} Plain object
47331
+ */
47332
+ RewriteRule.toObject = function toObject(message, options) {
47333
+ if (!options)
47334
+ options = {};
47335
+ var object = {};
47336
+ if (options.defaults) {
47337
+ object.from = "";
47338
+ object.to = "";
47339
+ }
47340
+ if (message.from != null && message.hasOwnProperty("from"))
47341
+ object.from = message.from;
47342
+ if (message.to != null && message.hasOwnProperty("to"))
47343
+ object.to = message.to;
47344
+ return object;
47345
+ };
47346
+
47347
+ /**
47348
+ * Converts this RewriteRule to JSON.
47349
+ * @function toJSON
47350
+ * @memberof replit.goval.api.DeploymentConfig.RewriteRule
47351
+ * @instance
47352
+ * @returns {Object.<string,*>} JSON object
47353
+ */
47354
+ RewriteRule.prototype.toJSON = function toJSON() {
47355
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
47356
+ };
47357
+
47358
+ /**
47359
+ * Gets the default type url for RewriteRule
47360
+ * @function getTypeUrl
47361
+ * @memberof replit.goval.api.DeploymentConfig.RewriteRule
47362
+ * @static
47363
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
47364
+ * @returns {string} The default type url
47365
+ */
47366
+ RewriteRule.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
47367
+ if (typeUrlPrefix === undefined) {
47368
+ typeUrlPrefix = "type.googleapis.com";
47369
+ }
47370
+ return typeUrlPrefix + "/replit.goval.api.DeploymentConfig.RewriteRule";
47371
+ };
47372
+
47373
+ return RewriteRule;
47374
+ })();
47375
+
47077
47376
  return DeploymentConfig;
47078
47377
  })();
47079
47378
 
@@ -47372,6 +47671,224 @@
47372
47671
  return ExtensionConfig;
47373
47672
  })();
47374
47673
 
47674
+ api.SuggestionsConfig = (function() {
47675
+
47676
+ /**
47677
+ * Properties of a SuggestionsConfig.
47678
+ * @memberof replit.goval.api
47679
+ * @interface ISuggestionsConfig
47680
+ * @property {Array.<string>|null} [extensions] SuggestionsConfig extensions
47681
+ */
47682
+
47683
+ /**
47684
+ * Constructs a new SuggestionsConfig.
47685
+ * @memberof replit.goval.api
47686
+ * @classdesc Represents a SuggestionsConfig.
47687
+ * @constructor
47688
+ * @param {replit.goval.api.ISuggestionsConfig=} [properties] Properties to set
47689
+ */
47690
+ function SuggestionsConfig(properties) {
47691
+ this.extensions = [];
47692
+ if (properties)
47693
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
47694
+ if (properties[keys[i]] != null)
47695
+ this[keys[i]] = properties[keys[i]];
47696
+ }
47697
+
47698
+ /**
47699
+ * SuggestionsConfig extensions.
47700
+ * @member {Array.<string>} extensions
47701
+ * @memberof replit.goval.api.SuggestionsConfig
47702
+ * @instance
47703
+ */
47704
+ SuggestionsConfig.prototype.extensions = $util.emptyArray;
47705
+
47706
+ /**
47707
+ * Creates a new SuggestionsConfig instance using the specified properties.
47708
+ * @function create
47709
+ * @memberof replit.goval.api.SuggestionsConfig
47710
+ * @static
47711
+ * @param {replit.goval.api.ISuggestionsConfig=} [properties] Properties to set
47712
+ * @returns {replit.goval.api.SuggestionsConfig} SuggestionsConfig instance
47713
+ */
47714
+ SuggestionsConfig.create = function create(properties) {
47715
+ return SuggestionsConfig.fromObject(properties);
47716
+ };
47717
+
47718
+ /**
47719
+ * Encodes the specified SuggestionsConfig message. Does not implicitly {@link replit.goval.api.SuggestionsConfig.verify|verify} messages.
47720
+ * @function encode
47721
+ * @memberof replit.goval.api.SuggestionsConfig
47722
+ * @static
47723
+ * @param {replit.goval.api.SuggestionsConfig} message SuggestionsConfig message or plain object to encode
47724
+ * @param {$protobuf.Writer} [writer] Writer to encode to
47725
+ * @returns {$protobuf.Writer} Writer
47726
+ */
47727
+ SuggestionsConfig.encode = function encode(message, writer) {
47728
+ if (!writer)
47729
+ writer = $Writer.create();
47730
+ if (message.extensions != null && message.extensions.length)
47731
+ for (var i = 0; i < message.extensions.length; ++i)
47732
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.extensions[i]);
47733
+ return writer;
47734
+ };
47735
+
47736
+ /**
47737
+ * Encodes the specified SuggestionsConfig message, length delimited. Does not implicitly {@link replit.goval.api.SuggestionsConfig.verify|verify} messages.
47738
+ * @function encodeDelimited
47739
+ * @memberof replit.goval.api.SuggestionsConfig
47740
+ * @static
47741
+ * @param {replit.goval.api.SuggestionsConfig} message SuggestionsConfig message or plain object to encode
47742
+ * @param {$protobuf.Writer} [writer] Writer to encode to
47743
+ * @returns {$protobuf.Writer} Writer
47744
+ */
47745
+ SuggestionsConfig.encodeDelimited = function encodeDelimited(message, writer) {
47746
+ return this.encode(message, writer).ldelim();
47747
+ };
47748
+
47749
+ /**
47750
+ * Decodes a SuggestionsConfig message from the specified reader or buffer.
47751
+ * @function decode
47752
+ * @memberof replit.goval.api.SuggestionsConfig
47753
+ * @static
47754
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
47755
+ * @param {number} [length] Message length if known beforehand
47756
+ * @returns {replit.goval.api.SuggestionsConfig} SuggestionsConfig
47757
+ * @throws {Error} If the payload is not a reader or valid buffer
47758
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
47759
+ */
47760
+ SuggestionsConfig.decode = function decode(reader, length) {
47761
+ if (!(reader instanceof $Reader))
47762
+ reader = $Reader.create(reader);
47763
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.SuggestionsConfig();
47764
+ while (reader.pos < end) {
47765
+ var tag = reader.uint32();
47766
+ switch (tag >>> 3) {
47767
+ case 1: {
47768
+ if (!(message.extensions && message.extensions.length))
47769
+ message.extensions = [];
47770
+ message.extensions.push(reader.string());
47771
+ break;
47772
+ }
47773
+ default:
47774
+ reader.skipType(tag & 7);
47775
+ break;
47776
+ }
47777
+ }
47778
+ return message;
47779
+ };
47780
+
47781
+ /**
47782
+ * Decodes a SuggestionsConfig message from the specified reader or buffer, length delimited.
47783
+ * @function decodeDelimited
47784
+ * @memberof replit.goval.api.SuggestionsConfig
47785
+ * @static
47786
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
47787
+ * @returns {replit.goval.api.SuggestionsConfig} SuggestionsConfig
47788
+ * @throws {Error} If the payload is not a reader or valid buffer
47789
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
47790
+ */
47791
+ SuggestionsConfig.decodeDelimited = function decodeDelimited(reader) {
47792
+ if (!(reader instanceof $Reader))
47793
+ reader = new $Reader(reader);
47794
+ return this.decode(reader, reader.uint32());
47795
+ };
47796
+
47797
+ /**
47798
+ * Verifies a SuggestionsConfig message.
47799
+ * @function verify
47800
+ * @memberof replit.goval.api.SuggestionsConfig
47801
+ * @static
47802
+ * @param {Object.<string,*>} message Plain object to verify
47803
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
47804
+ */
47805
+ SuggestionsConfig.verify = function verify(message) {
47806
+ if (typeof message !== "object" || message === null)
47807
+ return "object expected";
47808
+ if (message.extensions != null && message.hasOwnProperty("extensions")) {
47809
+ if (!Array.isArray(message.extensions))
47810
+ return "extensions: array expected";
47811
+ for (var i = 0; i < message.extensions.length; ++i)
47812
+ if (!$util.isString(message.extensions[i]))
47813
+ return "extensions: string[] expected";
47814
+ }
47815
+ return null;
47816
+ };
47817
+
47818
+ /**
47819
+ * Creates a SuggestionsConfig message from a plain object. Also converts values to their respective internal types.
47820
+ * @function fromObject
47821
+ * @memberof replit.goval.api.SuggestionsConfig
47822
+ * @static
47823
+ * @param {Object.<string,*>} object Plain object
47824
+ * @returns {replit.goval.api.SuggestionsConfig} SuggestionsConfig
47825
+ */
47826
+ SuggestionsConfig.fromObject = function fromObject(object) {
47827
+ if (object instanceof $root.replit.goval.api.SuggestionsConfig)
47828
+ return object;
47829
+ var message = new $root.replit.goval.api.SuggestionsConfig();
47830
+ if (object.extensions) {
47831
+ if (!Array.isArray(object.extensions))
47832
+ throw TypeError(".replit.goval.api.SuggestionsConfig.extensions: array expected");
47833
+ message.extensions = [];
47834
+ for (var i = 0; i < object.extensions.length; ++i)
47835
+ message.extensions[i] = String(object.extensions[i]);
47836
+ }
47837
+ return message;
47838
+ };
47839
+
47840
+ /**
47841
+ * Creates a plain object from a SuggestionsConfig message. Also converts values to other types if specified.
47842
+ * @function toObject
47843
+ * @memberof replit.goval.api.SuggestionsConfig
47844
+ * @static
47845
+ * @param {replit.goval.api.SuggestionsConfig} message SuggestionsConfig
47846
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
47847
+ * @returns {Object.<string,*>} Plain object
47848
+ */
47849
+ SuggestionsConfig.toObject = function toObject(message, options) {
47850
+ if (!options)
47851
+ options = {};
47852
+ var object = {};
47853
+ if (options.arrays || options.defaults)
47854
+ object.extensions = [];
47855
+ if (message.extensions && message.extensions.length) {
47856
+ object.extensions = [];
47857
+ for (var j = 0; j < message.extensions.length; ++j)
47858
+ object.extensions[j] = message.extensions[j];
47859
+ }
47860
+ return object;
47861
+ };
47862
+
47863
+ /**
47864
+ * Converts this SuggestionsConfig to JSON.
47865
+ * @function toJSON
47866
+ * @memberof replit.goval.api.SuggestionsConfig
47867
+ * @instance
47868
+ * @returns {Object.<string,*>} JSON object
47869
+ */
47870
+ SuggestionsConfig.prototype.toJSON = function toJSON() {
47871
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
47872
+ };
47873
+
47874
+ /**
47875
+ * Gets the default type url for SuggestionsConfig
47876
+ * @function getTypeUrl
47877
+ * @memberof replit.goval.api.SuggestionsConfig
47878
+ * @static
47879
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
47880
+ * @returns {string} The default type url
47881
+ */
47882
+ SuggestionsConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
47883
+ if (typeUrlPrefix === undefined) {
47884
+ typeUrlPrefix = "type.googleapis.com";
47885
+ }
47886
+ return typeUrlPrefix + "/replit.goval.api.SuggestionsConfig";
47887
+ };
47888
+
47889
+ return SuggestionsConfig;
47890
+ })();
47891
+
47375
47892
  api.NixConfig = (function() {
47376
47893
 
47377
47894
  /**
@@ -187,6 +187,7 @@ declare var npm$namespace$replit$goval$api: {|
187
187
  IGitHubImportConfig: Class<replit$goval$api$IGitHubImportConfig>,
188
188
  IDeploymentConfig: Class<replit$goval$api$IDeploymentConfig>,
189
189
  IExtensionConfig: Class<replit$goval$api$IExtensionConfig>,
190
+ ISuggestionsConfig: Class<replit$goval$api$ISuggestionsConfig>,
190
191
  INixConfig: Class<replit$goval$api$INixConfig>,
191
192
  IHostingConfig: Class<replit$goval$api$IHostingConfig>,
192
193
  IAuthConfig: Class<replit$goval$api$IAuthConfig>,
@@ -421,6 +422,7 @@ declare var npm$namespace$replit$goval$api: {|
421
422
  GitHubImportConfig: typeof replit$goval$api$GitHubImportConfig,
422
423
  DeploymentConfig: typeof replit$goval$api$DeploymentConfig,
423
424
  ExtensionConfig: typeof replit$goval$api$ExtensionConfig,
425
+ SuggestionsConfig: typeof replit$goval$api$SuggestionsConfig,
424
426
  NixConfig: typeof replit$goval$api$NixConfig,
425
427
  HostingConfig: typeof replit$goval$api$HostingConfig,
426
428
  AuthConfig: typeof replit$goval$api$AuthConfig,
@@ -25225,6 +25227,14 @@ declare type replit$goval$api$IDotReplit = {|
25225
25227
  * DotReplit rules
25226
25228
  */
25227
25229
  rules?: replit$goval$api$RulesConfig | replit$goval$api$IRulesConfig | null,
25230
+
25231
+ /**
25232
+ * DotReplit suggestions
25233
+ */
25234
+ suggestions?:
25235
+ | replit$goval$api$SuggestionsConfig
25236
+ | replit$goval$api$ISuggestionsConfig
25237
+ | null,
25228
25238
  |};
25229
25239
 
25230
25240
  /**
@@ -25366,6 +25376,11 @@ declare class replit$goval$api$DotReplit {
25366
25376
  */
25367
25377
  rules?: replit$goval$api$RulesConfig | null;
25368
25378
 
25379
+ /**
25380
+ * DotReplit suggestions.
25381
+ */
25382
+ suggestions?: replit$goval$api$SuggestionsConfig | null;
25383
+
25369
25384
  /**
25370
25385
  * Creates a new DotReplit instance using the specified properties.
25371
25386
  * @param [properties] Properties to set
@@ -26034,6 +26049,16 @@ declare type replit$goval$api$IDeploymentConfig = {|
26034
26049
  * DeploymentConfig publicDir
26035
26050
  */
26036
26051
  publicDir?: string | null,
26052
+
26053
+ /**
26054
+ * DeploymentConfig rewrites
26055
+ */
26056
+ rewrites?:
26057
+ | (
26058
+ | replit$goval$api$DeploymentConfig$RewriteRule
26059
+ | replit$goval$api$DeploymentConfig$IRewriteRule
26060
+ )[]
26061
+ | null,
26037
26062
  |};
26038
26063
 
26039
26064
  /**
@@ -26071,6 +26096,11 @@ declare class replit$goval$api$DeploymentConfig {
26071
26096
  */
26072
26097
  publicDir: string;
26073
26098
 
26099
+ /**
26100
+ * DeploymentConfig rewrites.
26101
+ */
26102
+ rewrites: replit$goval$api$DeploymentConfig$RewriteRule[];
26103
+
26074
26104
  /**
26075
26105
  * Creates a new DeploymentConfig instance using the specified properties.
26076
26106
  * @param [properties] Properties to set
@@ -26172,6 +26202,8 @@ declare class replit$goval$api$DeploymentConfig {
26172
26202
  */
26173
26203
  static getTypeUrl(typeUrlPrefix?: string): string;
26174
26204
  static Target: typeof replit$goval$api$DeploymentConfig$Target;
26205
+ static IRewriteRule: Class<replit$goval$api$DeploymentConfig$IRewriteRule>;
26206
+ static RewriteRule: typeof replit$goval$api$DeploymentConfig$RewriteRule;
26175
26207
  }
26176
26208
 
26177
26209
  /**
@@ -26184,6 +26216,145 @@ declare var replit$goval$api$DeploymentConfig$Target: {|
26184
26216
  +STATIC: 2, // 2
26185
26217
  |};
26186
26218
 
26219
+ /**
26220
+ * Properties of a RewriteRule.
26221
+ */
26222
+ declare type replit$goval$api$DeploymentConfig$IRewriteRule = {|
26223
+ /**
26224
+ * RewriteRule from
26225
+ */
26226
+ from?: string | null,
26227
+
26228
+ /**
26229
+ * RewriteRule to
26230
+ */
26231
+ to?: string | null,
26232
+ |};
26233
+
26234
+ /**
26235
+ * Represents a RewriteRule.
26236
+ */
26237
+ declare class replit$goval$api$DeploymentConfig$RewriteRule {
26238
+ /**
26239
+ * Constructs a new RewriteRule.
26240
+ * @param [properties] Properties to set
26241
+ */
26242
+ constructor(
26243
+ properties?: replit$goval$api$DeploymentConfig$IRewriteRule
26244
+ ): this;
26245
+
26246
+ /**
26247
+ * RewriteRule from.
26248
+ */
26249
+ from: string;
26250
+
26251
+ /**
26252
+ * RewriteRule to.
26253
+ */
26254
+ to: string;
26255
+
26256
+ /**
26257
+ * Creates a new RewriteRule instance using the specified properties.
26258
+ * @param [properties] Properties to set
26259
+ * @returns RewriteRule instance
26260
+ */
26261
+ static create(
26262
+ properties?: replit$goval$api$DeploymentConfig$IRewriteRule
26263
+ ): replit$goval$api$DeploymentConfig$RewriteRule;
26264
+
26265
+ /**
26266
+ * [object Object],[object Object],[object Object]
26267
+ * @param message RewriteRule message or plain object to encode
26268
+ * @param [writer] Writer to encode to
26269
+ * @returns Writer
26270
+ */
26271
+ static encode(
26272
+ message: replit$goval$api$DeploymentConfig$RewriteRule,
26273
+ writer?: $protobuf.Writer
26274
+ ): $protobuf.Writer;
26275
+
26276
+ /**
26277
+ * [object Object],[object Object],[object Object]
26278
+ * @param message RewriteRule message or plain object to encode
26279
+ * @param [writer] Writer to encode to
26280
+ * @returns Writer
26281
+ */
26282
+ static encodeDelimited(
26283
+ message: replit$goval$api$DeploymentConfig$RewriteRule,
26284
+ writer?: $protobuf.Writer
26285
+ ): $protobuf.Writer;
26286
+
26287
+ /**
26288
+ * Decodes a RewriteRule message from the specified reader or buffer.
26289
+ * @param reader Reader or buffer to decode from
26290
+ * @param [length] Message length if known beforehand
26291
+ * @returns RewriteRule
26292
+ * @throws {Error} If the payload is not a reader or valid buffer
26293
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
26294
+ */
26295
+ static decode(
26296
+ reader: $protobuf.Reader | Uint8Array,
26297
+ length?: number
26298
+ ): replit$goval$api$DeploymentConfig$RewriteRule;
26299
+
26300
+ /**
26301
+ * Decodes a RewriteRule message from the specified reader or buffer, length delimited.
26302
+ * @param reader Reader or buffer to decode from
26303
+ * @returns RewriteRule
26304
+ * @throws {Error} If the payload is not a reader or valid buffer
26305
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
26306
+ */
26307
+ static decodeDelimited(
26308
+ reader: $protobuf.Reader | Uint8Array
26309
+ ): replit$goval$api$DeploymentConfig$RewriteRule;
26310
+
26311
+ /**
26312
+ * Verifies a RewriteRule message.
26313
+ * @param message Plain object to verify
26314
+ * @returns `null` if valid, otherwise the reason why it is not
26315
+ */
26316
+ static verify(message: {|
26317
+ [k: string]: any,
26318
+ |}): string | null;
26319
+
26320
+ /**
26321
+ * Creates a RewriteRule message from a plain object. Also converts values to their respective internal types.
26322
+ * @param object Plain object
26323
+ * @returns RewriteRule
26324
+ */
26325
+ static fromObject(object: {|
26326
+ [k: string]: any,
26327
+ |}): replit$goval$api$DeploymentConfig$RewriteRule;
26328
+
26329
+ /**
26330
+ * Creates a plain object from a RewriteRule message. Also converts values to other types if specified.
26331
+ * @param message RewriteRule
26332
+ * @param [options] Conversion options
26333
+ * @returns Plain object
26334
+ */
26335
+ static toObject(
26336
+ message: replit$goval$api$DeploymentConfig$RewriteRule,
26337
+ options?: $protobuf.IConversionOptions
26338
+ ): {|
26339
+ [k: string]: any,
26340
+ |};
26341
+
26342
+ /**
26343
+ * Converts this RewriteRule to JSON.
26344
+ * @returns JSON object
26345
+ */
26346
+ toJSON(): {|
26347
+ [k: string]: any,
26348
+ |};
26349
+
26350
+ /**
26351
+ * Gets the default type url for RewriteRule
26352
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
26353
+ * @returns The default type url
26354
+ */
26355
+ static getTypeUrl(typeUrlPrefix?: string): string;
26356
+ }
26357
+
26187
26358
  /**
26188
26359
  * Properties of an ExtensionConfig.
26189
26360
  */
@@ -26351,6 +26522,133 @@ declare class replit$goval$api$ExtensionConfig {
26351
26522
  static getTypeUrl(typeUrlPrefix?: string): string;
26352
26523
  }
26353
26524
 
26525
+ /**
26526
+ * Properties of a SuggestionsConfig.
26527
+ */
26528
+ declare type replit$goval$api$ISuggestionsConfig = {|
26529
+ /**
26530
+ * SuggestionsConfig extensions
26531
+ */
26532
+ extensions?: string[] | null,
26533
+ |};
26534
+
26535
+ /**
26536
+ * Represents a SuggestionsConfig.
26537
+ */
26538
+ declare class replit$goval$api$SuggestionsConfig {
26539
+ /**
26540
+ * Constructs a new SuggestionsConfig.
26541
+ * @param [properties] Properties to set
26542
+ */
26543
+ constructor(properties?: replit$goval$api$ISuggestionsConfig): this;
26544
+
26545
+ /**
26546
+ * SuggestionsConfig extensions.
26547
+ */
26548
+ extensions: string[];
26549
+
26550
+ /**
26551
+ * Creates a new SuggestionsConfig instance using the specified properties.
26552
+ * @param [properties] Properties to set
26553
+ * @returns SuggestionsConfig instance
26554
+ */
26555
+ static create(
26556
+ properties?: replit$goval$api$ISuggestionsConfig
26557
+ ): replit$goval$api$SuggestionsConfig;
26558
+
26559
+ /**
26560
+ * [object Object],[object Object],[object Object]
26561
+ * @param message SuggestionsConfig message or plain object to encode
26562
+ * @param [writer] Writer to encode to
26563
+ * @returns Writer
26564
+ */
26565
+ static encode(
26566
+ message: replit$goval$api$SuggestionsConfig,
26567
+ writer?: $protobuf.Writer
26568
+ ): $protobuf.Writer;
26569
+
26570
+ /**
26571
+ * [object Object],[object Object],[object Object]
26572
+ * @param message SuggestionsConfig message or plain object to encode
26573
+ * @param [writer] Writer to encode to
26574
+ * @returns Writer
26575
+ */
26576
+ static encodeDelimited(
26577
+ message: replit$goval$api$SuggestionsConfig,
26578
+ writer?: $protobuf.Writer
26579
+ ): $protobuf.Writer;
26580
+
26581
+ /**
26582
+ * Decodes a SuggestionsConfig message from the specified reader or buffer.
26583
+ * @param reader Reader or buffer to decode from
26584
+ * @param [length] Message length if known beforehand
26585
+ * @returns SuggestionsConfig
26586
+ * @throws {Error} If the payload is not a reader or valid buffer
26587
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
26588
+ */
26589
+ static decode(
26590
+ reader: $protobuf.Reader | Uint8Array,
26591
+ length?: number
26592
+ ): replit$goval$api$SuggestionsConfig;
26593
+
26594
+ /**
26595
+ * Decodes a SuggestionsConfig message from the specified reader or buffer, length delimited.
26596
+ * @param reader Reader or buffer to decode from
26597
+ * @returns SuggestionsConfig
26598
+ * @throws {Error} If the payload is not a reader or valid buffer
26599
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
26600
+ */
26601
+ static decodeDelimited(
26602
+ reader: $protobuf.Reader | Uint8Array
26603
+ ): replit$goval$api$SuggestionsConfig;
26604
+
26605
+ /**
26606
+ * Verifies a SuggestionsConfig message.
26607
+ * @param message Plain object to verify
26608
+ * @returns `null` if valid, otherwise the reason why it is not
26609
+ */
26610
+ static verify(message: {|
26611
+ [k: string]: any,
26612
+ |}): string | null;
26613
+
26614
+ /**
26615
+ * Creates a SuggestionsConfig message from a plain object. Also converts values to their respective internal types.
26616
+ * @param object Plain object
26617
+ * @returns SuggestionsConfig
26618
+ */
26619
+ static fromObject(object: {|
26620
+ [k: string]: any,
26621
+ |}): replit$goval$api$SuggestionsConfig;
26622
+
26623
+ /**
26624
+ * Creates a plain object from a SuggestionsConfig message. Also converts values to other types if specified.
26625
+ * @param message SuggestionsConfig
26626
+ * @param [options] Conversion options
26627
+ * @returns Plain object
26628
+ */
26629
+ static toObject(
26630
+ message: replit$goval$api$SuggestionsConfig,
26631
+ options?: $protobuf.IConversionOptions
26632
+ ): {|
26633
+ [k: string]: any,
26634
+ |};
26635
+
26636
+ /**
26637
+ * Converts this SuggestionsConfig to JSON.
26638
+ * @returns JSON object
26639
+ */
26640
+ toJSON(): {|
26641
+ [k: string]: any,
26642
+ |};
26643
+
26644
+ /**
26645
+ * Gets the default type url for SuggestionsConfig
26646
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
26647
+ * @returns The default type url
26648
+ */
26649
+ static getTypeUrl(typeUrlPrefix?: string): string;
26650
+ }
26651
+
26354
26652
  /**
26355
26653
  * Properties of a NixConfig.
26356
26654
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@replit/protocol",
3
- "version": "0.3.31",
3
+ "version": "0.3.33",
4
4
  "description": "JavaScript bindings for the Replit protocol",
5
5
  "main": "main/index.js",
6
6
  "repository": "https://github.com/replit/protocol",