@replit/protocol 0.3.3 → 0.3.5

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
@@ -16458,6 +16458,9 @@ export namespace replit {
16458
16458
 
16459
16459
  /** DotReplit modules */
16460
16460
  modules?: (string[]|null);
16461
+
16462
+ /** DotReplit extension */
16463
+ extension?: (replit.goval.api.ExtensionConfig|replit.goval.api.IExtensionConfig|null);
16461
16464
  }
16462
16465
 
16463
16466
  /** Represents a DotReplit. */
@@ -16538,6 +16541,9 @@ export namespace replit {
16538
16541
  /** DotReplit modules. */
16539
16542
  public modules: string[];
16540
16543
 
16544
+ /** DotReplit extension. */
16545
+ public extension?: (replit.goval.api.ExtensionConfig|null);
16546
+
16541
16547
  /**
16542
16548
  * Creates a new DotReplit instance using the specified properties.
16543
16549
  * @param [properties] Properties to set
@@ -16998,6 +17004,12 @@ export namespace replit {
16998
17004
 
16999
17005
  /** DeploymentConfig ignorePorts */
17000
17006
  ignorePorts?: (boolean|null);
17007
+
17008
+ /** DeploymentConfig target */
17009
+ target?: (replit.goval.api.DeploymentConfig.Target|null);
17010
+
17011
+ /** DeploymentConfig publicDir */
17012
+ publicDir?: (string|null);
17001
17013
  }
17002
17014
 
17003
17015
  /** Represents a DeploymentConfig. */
@@ -17018,6 +17030,12 @@ export namespace replit {
17018
17030
  /** DeploymentConfig ignorePorts. */
17019
17031
  public ignorePorts: boolean;
17020
17032
 
17033
+ /** DeploymentConfig target. */
17034
+ public target: replit.goval.api.DeploymentConfig.Target;
17035
+
17036
+ /** DeploymentConfig publicDir. */
17037
+ public publicDir: string;
17038
+
17021
17039
  /**
17022
17040
  * Creates a new DeploymentConfig instance using the specified properties.
17023
17041
  * @param [properties] Properties to set
@@ -17089,6 +17107,124 @@ export namespace replit {
17089
17107
  public toJSON(): { [k: string]: any };
17090
17108
  }
17091
17109
 
17110
+ namespace DeploymentConfig {
17111
+
17112
+ /** Target enum. */
17113
+ enum Target {
17114
+ GCE = 0,
17115
+ CLOUDRUN = 1,
17116
+ STATIC = 2
17117
+ }
17118
+ }
17119
+
17120
+ /** Properties of an ExtensionConfig. */
17121
+ interface IExtensionConfig {
17122
+
17123
+ /** ExtensionConfig isExtension */
17124
+ isExtension?: (boolean|null);
17125
+
17126
+ /** ExtensionConfig extensionID */
17127
+ extensionID?: (string|null);
17128
+
17129
+ /** ExtensionConfig buildCommand */
17130
+ buildCommand?: (string|null);
17131
+
17132
+ /** ExtensionConfig outputDirectory */
17133
+ outputDirectory?: (string|null);
17134
+ }
17135
+
17136
+ /** Represents an ExtensionConfig. */
17137
+ class ExtensionConfig {
17138
+
17139
+ /**
17140
+ * Constructs a new ExtensionConfig.
17141
+ * @param [properties] Properties to set
17142
+ */
17143
+ private constructor(properties?: replit.goval.api.IExtensionConfig);
17144
+
17145
+ /** ExtensionConfig isExtension. */
17146
+ public isExtension: boolean;
17147
+
17148
+ /** ExtensionConfig extensionID. */
17149
+ public extensionID: string;
17150
+
17151
+ /** ExtensionConfig buildCommand. */
17152
+ public buildCommand: string;
17153
+
17154
+ /** ExtensionConfig outputDirectory. */
17155
+ public outputDirectory: string;
17156
+
17157
+ /**
17158
+ * Creates a new ExtensionConfig instance using the specified properties.
17159
+ * @param [properties] Properties to set
17160
+ * @returns ExtensionConfig instance
17161
+ */
17162
+ public static create(properties?: replit.goval.api.IExtensionConfig): replit.goval.api.ExtensionConfig;
17163
+
17164
+ /**
17165
+ * Encodes the specified ExtensionConfig message. Does not implicitly {@link replit.goval.api.ExtensionConfig.verify|verify} messages.
17166
+ * @param message ExtensionConfig message or plain object to encode
17167
+ * @param [writer] Writer to encode to
17168
+ * @returns Writer
17169
+ */
17170
+ public static encode(message: replit.goval.api.ExtensionConfig, writer?: $protobuf.Writer): $protobuf.Writer;
17171
+
17172
+ /**
17173
+ * Encodes the specified ExtensionConfig message, length delimited. Does not implicitly {@link replit.goval.api.ExtensionConfig.verify|verify} messages.
17174
+ * @param message ExtensionConfig message or plain object to encode
17175
+ * @param [writer] Writer to encode to
17176
+ * @returns Writer
17177
+ */
17178
+ public static encodeDelimited(message: replit.goval.api.ExtensionConfig, writer?: $protobuf.Writer): $protobuf.Writer;
17179
+
17180
+ /**
17181
+ * Decodes an ExtensionConfig message from the specified reader or buffer.
17182
+ * @param reader Reader or buffer to decode from
17183
+ * @param [length] Message length if known beforehand
17184
+ * @returns ExtensionConfig
17185
+ * @throws {Error} If the payload is not a reader or valid buffer
17186
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
17187
+ */
17188
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): replit.goval.api.ExtensionConfig;
17189
+
17190
+ /**
17191
+ * Decodes an ExtensionConfig message from the specified reader or buffer, length delimited.
17192
+ * @param reader Reader or buffer to decode from
17193
+ * @returns ExtensionConfig
17194
+ * @throws {Error} If the payload is not a reader or valid buffer
17195
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
17196
+ */
17197
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): replit.goval.api.ExtensionConfig;
17198
+
17199
+ /**
17200
+ * Verifies an ExtensionConfig message.
17201
+ * @param message Plain object to verify
17202
+ * @returns `null` if valid, otherwise the reason why it is not
17203
+ */
17204
+ public static verify(message: { [k: string]: any }): (string|null);
17205
+
17206
+ /**
17207
+ * Creates an ExtensionConfig message from a plain object. Also converts values to their respective internal types.
17208
+ * @param object Plain object
17209
+ * @returns ExtensionConfig
17210
+ */
17211
+ public static fromObject(object: { [k: string]: any }): replit.goval.api.ExtensionConfig;
17212
+
17213
+ /**
17214
+ * Creates a plain object from an ExtensionConfig message. Also converts values to other types if specified.
17215
+ * @param message ExtensionConfig
17216
+ * @param [options] Conversion options
17217
+ * @returns Plain object
17218
+ */
17219
+ public static toObject(message: replit.goval.api.ExtensionConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
17220
+
17221
+ /**
17222
+ * Converts this ExtensionConfig to JSON.
17223
+ * @returns JSON object
17224
+ */
17225
+ public toJSON(): { [k: string]: any };
17226
+ }
17227
+
17092
17228
  /** Properties of a NixConfig. */
17093
17229
  interface INixConfig {
17094
17230
 
package/main/index.js CHANGED
@@ -40854,6 +40854,7 @@
40854
40854
  * @property {Array.<string>|null} [refreshWebViewOnFileChange] DotReplit refreshWebViewOnFileChange
40855
40855
  * @property {replit.goval.api.DeploymentConfig|replit.goval.api.IDeploymentConfig|null} [deployment] DotReplit deployment
40856
40856
  * @property {Array.<string>|null} [modules] DotReplit modules
40857
+ * @property {replit.goval.api.ExtensionConfig|replit.goval.api.IExtensionConfig|null} [extension] DotReplit extension
40857
40858
  */
40858
40859
 
40859
40860
  /**
@@ -41062,6 +41063,14 @@
41062
41063
  */
41063
41064
  DotReplit.prototype.modules = $util.emptyArray;
41064
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
+
41065
41074
  /**
41066
41075
  * Creates a new DotReplit instance using the specified properties.
41067
41076
  * @function create
@@ -41142,6 +41151,8 @@
41142
41151
  if (message.modules != null && message.modules.length)
41143
41152
  for (var i = 0; i < message.modules.length; ++i)
41144
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();
41145
41156
  return writer;
41146
41157
  };
41147
41158
 
@@ -41295,6 +41306,9 @@
41295
41306
  message.modules = [];
41296
41307
  message.modules.push(reader.string());
41297
41308
  break;
41309
+ case 24:
41310
+ message.extension = $root.replit.goval.api.ExtensionConfig.decode(reader, reader.uint32());
41311
+ break;
41298
41312
  default:
41299
41313
  reader.skipType(tag & 7);
41300
41314
  break;
@@ -41465,6 +41479,11 @@
41465
41479
  if (!$util.isString(message.modules[i]))
41466
41480
  return "modules: string[] expected";
41467
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
+ }
41468
41487
  return null;
41469
41488
  };
41470
41489
 
@@ -41614,6 +41633,11 @@
41614
41633
  for (var i = 0; i < object.modules.length; ++i)
41615
41634
  message.modules[i] = String(object.modules[i]);
41616
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
+ }
41617
41641
  return message;
41618
41642
  };
41619
41643
 
@@ -41658,6 +41682,7 @@
41658
41682
  object.gitHubImport = null;
41659
41683
  object.auth = null;
41660
41684
  object.deployment = null;
41685
+ object.extension = null;
41661
41686
  }
41662
41687
  if (message.run != null && message.hasOwnProperty("run"))
41663
41688
  object.run = $root.replit.goval.api.Exec.toObject(message.run, options);
@@ -41730,6 +41755,8 @@
41730
41755
  for (var j = 0; j < message.modules.length; ++j)
41731
41756
  object.modules[j] = message.modules[j];
41732
41757
  }
41758
+ if (message.extension != null && message.hasOwnProperty("extension"))
41759
+ object.extension = $root.replit.goval.api.ExtensionConfig.toObject(message.extension, options);
41733
41760
  return object;
41734
41761
  };
41735
41762
 
@@ -42585,6 +42612,8 @@
42585
42612
  * @property {replit.goval.api.Exec|replit.goval.api.IExec|null} [run] DeploymentConfig run
42586
42613
  * @property {replit.goval.api.Exec|replit.goval.api.IExec|null} [build] DeploymentConfig build
42587
42614
  * @property {boolean|null} [ignorePorts] DeploymentConfig ignorePorts
42615
+ * @property {replit.goval.api.DeploymentConfig.Target|null} [target] DeploymentConfig target
42616
+ * @property {string|null} [publicDir] DeploymentConfig publicDir
42588
42617
  */
42589
42618
 
42590
42619
  /**
@@ -42625,6 +42654,22 @@
42625
42654
  */
42626
42655
  DeploymentConfig.prototype.ignorePorts = false;
42627
42656
 
42657
+ /**
42658
+ * DeploymentConfig target.
42659
+ * @member {replit.goval.api.DeploymentConfig.Target} target
42660
+ * @memberof replit.goval.api.DeploymentConfig
42661
+ * @instance
42662
+ */
42663
+ DeploymentConfig.prototype.target = 0;
42664
+
42665
+ /**
42666
+ * DeploymentConfig publicDir.
42667
+ * @member {string} publicDir
42668
+ * @memberof replit.goval.api.DeploymentConfig
42669
+ * @instance
42670
+ */
42671
+ DeploymentConfig.prototype.publicDir = "";
42672
+
42628
42673
  /**
42629
42674
  * Creates a new DeploymentConfig instance using the specified properties.
42630
42675
  * @function create
@@ -42655,6 +42700,10 @@
42655
42700
  $root.replit.goval.api.Exec.encode(message.build, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
42656
42701
  if (message.ignorePorts != null && Object.hasOwnProperty.call(message, "ignorePorts"))
42657
42702
  writer.uint32(/* id 3, wireType 0 =*/24).bool(message.ignorePorts);
42703
+ if (message.target != null && Object.hasOwnProperty.call(message, "target"))
42704
+ writer.uint32(/* id 4, wireType 0 =*/32).int32(message.target);
42705
+ if (message.publicDir != null && Object.hasOwnProperty.call(message, "publicDir"))
42706
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.publicDir);
42658
42707
  return writer;
42659
42708
  };
42660
42709
 
@@ -42698,6 +42747,12 @@
42698
42747
  case 3:
42699
42748
  message.ignorePorts = reader.bool();
42700
42749
  break;
42750
+ case 4:
42751
+ message.target = reader.int32();
42752
+ break;
42753
+ case 5:
42754
+ message.publicDir = reader.string();
42755
+ break;
42701
42756
  default:
42702
42757
  reader.skipType(tag & 7);
42703
42758
  break;
@@ -42746,6 +42801,18 @@
42746
42801
  if (message.ignorePorts != null && message.hasOwnProperty("ignorePorts"))
42747
42802
  if (typeof message.ignorePorts !== "boolean")
42748
42803
  return "ignorePorts: boolean expected";
42804
+ if (message.target != null && message.hasOwnProperty("target"))
42805
+ switch (message.target) {
42806
+ default:
42807
+ return "target: enum value expected";
42808
+ case 0:
42809
+ case 1:
42810
+ case 2:
42811
+ break;
42812
+ }
42813
+ if (message.publicDir != null && message.hasOwnProperty("publicDir"))
42814
+ if (!$util.isString(message.publicDir))
42815
+ return "publicDir: string expected";
42749
42816
  return null;
42750
42817
  };
42751
42818
 
@@ -42773,6 +42840,22 @@
42773
42840
  }
42774
42841
  if (object.ignorePorts != null)
42775
42842
  message.ignorePorts = Boolean(object.ignorePorts);
42843
+ switch (object.target) {
42844
+ case "GCE":
42845
+ case 0:
42846
+ message.target = 0;
42847
+ break;
42848
+ case "CLOUDRUN":
42849
+ case 1:
42850
+ message.target = 1;
42851
+ break;
42852
+ case "STATIC":
42853
+ case 2:
42854
+ message.target = 2;
42855
+ break;
42856
+ }
42857
+ if (object.publicDir != null)
42858
+ message.publicDir = String(object.publicDir);
42776
42859
  return message;
42777
42860
  };
42778
42861
 
@@ -42793,6 +42876,8 @@
42793
42876
  object.run = null;
42794
42877
  object.build = null;
42795
42878
  object.ignorePorts = false;
42879
+ object.target = options.enums === String ? "GCE" : 0;
42880
+ object.publicDir = "";
42796
42881
  }
42797
42882
  if (message.run != null && message.hasOwnProperty("run"))
42798
42883
  object.run = $root.replit.goval.api.Exec.toObject(message.run, options);
@@ -42800,6 +42885,10 @@
42800
42885
  object.build = $root.replit.goval.api.Exec.toObject(message.build, options);
42801
42886
  if (message.ignorePorts != null && message.hasOwnProperty("ignorePorts"))
42802
42887
  object.ignorePorts = message.ignorePorts;
42888
+ if (message.target != null && message.hasOwnProperty("target"))
42889
+ object.target = options.enums === String ? $root.replit.goval.api.DeploymentConfig.Target[message.target] : message.target;
42890
+ if (message.publicDir != null && message.hasOwnProperty("publicDir"))
42891
+ object.publicDir = message.publicDir;
42803
42892
  return object;
42804
42893
  };
42805
42894
 
@@ -42814,9 +42903,278 @@
42814
42903
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
42815
42904
  };
42816
42905
 
42906
+ /**
42907
+ * Target enum.
42908
+ * @name replit.goval.api.DeploymentConfig.Target
42909
+ * @enum {number}
42910
+ * @property {number} GCE=0 GCE value
42911
+ * @property {number} CLOUDRUN=1 CLOUDRUN value
42912
+ * @property {number} STATIC=2 STATIC value
42913
+ */
42914
+ DeploymentConfig.Target = (function() {
42915
+ var valuesById = {}, values = Object.create(valuesById);
42916
+ values[valuesById[0] = "GCE"] = 0;
42917
+ values[valuesById[1] = "CLOUDRUN"] = 1;
42918
+ values[valuesById[2] = "STATIC"] = 2;
42919
+ return values;
42920
+ })();
42921
+
42817
42922
  return DeploymentConfig;
42818
42923
  })();
42819
42924
 
42925
+ api.ExtensionConfig = (function() {
42926
+
42927
+ /**
42928
+ * Properties of an ExtensionConfig.
42929
+ * @memberof replit.goval.api
42930
+ * @interface IExtensionConfig
42931
+ * @property {boolean|null} [isExtension] ExtensionConfig isExtension
42932
+ * @property {string|null} [extensionID] ExtensionConfig extensionID
42933
+ * @property {string|null} [buildCommand] ExtensionConfig buildCommand
42934
+ * @property {string|null} [outputDirectory] ExtensionConfig outputDirectory
42935
+ */
42936
+
42937
+ /**
42938
+ * Constructs a new ExtensionConfig.
42939
+ * @memberof replit.goval.api
42940
+ * @classdesc Represents an ExtensionConfig.
42941
+ * @constructor
42942
+ * @param {replit.goval.api.IExtensionConfig=} [properties] Properties to set
42943
+ */
42944
+ function ExtensionConfig(properties) {
42945
+ if (properties)
42946
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
42947
+ if (properties[keys[i]] != null)
42948
+ this[keys[i]] = properties[keys[i]];
42949
+ }
42950
+
42951
+ /**
42952
+ * ExtensionConfig isExtension.
42953
+ * @member {boolean} isExtension
42954
+ * @memberof replit.goval.api.ExtensionConfig
42955
+ * @instance
42956
+ */
42957
+ ExtensionConfig.prototype.isExtension = false;
42958
+
42959
+ /**
42960
+ * ExtensionConfig extensionID.
42961
+ * @member {string} extensionID
42962
+ * @memberof replit.goval.api.ExtensionConfig
42963
+ * @instance
42964
+ */
42965
+ ExtensionConfig.prototype.extensionID = "";
42966
+
42967
+ /**
42968
+ * ExtensionConfig buildCommand.
42969
+ * @member {string} buildCommand
42970
+ * @memberof replit.goval.api.ExtensionConfig
42971
+ * @instance
42972
+ */
42973
+ ExtensionConfig.prototype.buildCommand = "";
42974
+
42975
+ /**
42976
+ * ExtensionConfig outputDirectory.
42977
+ * @member {string} outputDirectory
42978
+ * @memberof replit.goval.api.ExtensionConfig
42979
+ * @instance
42980
+ */
42981
+ ExtensionConfig.prototype.outputDirectory = "";
42982
+
42983
+ /**
42984
+ * Creates a new ExtensionConfig instance using the specified properties.
42985
+ * @function create
42986
+ * @memberof replit.goval.api.ExtensionConfig
42987
+ * @static
42988
+ * @param {replit.goval.api.IExtensionConfig=} [properties] Properties to set
42989
+ * @returns {replit.goval.api.ExtensionConfig} ExtensionConfig instance
42990
+ */
42991
+ ExtensionConfig.create = function create(properties) {
42992
+ return ExtensionConfig.fromObject(properties);
42993
+ };
42994
+
42995
+ /**
42996
+ * Encodes the specified ExtensionConfig message. Does not implicitly {@link replit.goval.api.ExtensionConfig.verify|verify} messages.
42997
+ * @function encode
42998
+ * @memberof replit.goval.api.ExtensionConfig
42999
+ * @static
43000
+ * @param {replit.goval.api.ExtensionConfig} message ExtensionConfig message or plain object to encode
43001
+ * @param {$protobuf.Writer} [writer] Writer to encode to
43002
+ * @returns {$protobuf.Writer} Writer
43003
+ */
43004
+ ExtensionConfig.encode = function encode(message, writer) {
43005
+ if (!writer)
43006
+ writer = $Writer.create();
43007
+ if (message.isExtension != null && Object.hasOwnProperty.call(message, "isExtension"))
43008
+ writer.uint32(/* id 1, wireType 0 =*/8).bool(message.isExtension);
43009
+ if (message.extensionID != null && Object.hasOwnProperty.call(message, "extensionID"))
43010
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.extensionID);
43011
+ if (message.buildCommand != null && Object.hasOwnProperty.call(message, "buildCommand"))
43012
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.buildCommand);
43013
+ if (message.outputDirectory != null && Object.hasOwnProperty.call(message, "outputDirectory"))
43014
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.outputDirectory);
43015
+ return writer;
43016
+ };
43017
+
43018
+ /**
43019
+ * Encodes the specified ExtensionConfig message, length delimited. Does not implicitly {@link replit.goval.api.ExtensionConfig.verify|verify} messages.
43020
+ * @function encodeDelimited
43021
+ * @memberof replit.goval.api.ExtensionConfig
43022
+ * @static
43023
+ * @param {replit.goval.api.ExtensionConfig} message ExtensionConfig message or plain object to encode
43024
+ * @param {$protobuf.Writer} [writer] Writer to encode to
43025
+ * @returns {$protobuf.Writer} Writer
43026
+ */
43027
+ ExtensionConfig.encodeDelimited = function encodeDelimited(message, writer) {
43028
+ return this.encode(message, writer).ldelim();
43029
+ };
43030
+
43031
+ /**
43032
+ * Decodes an ExtensionConfig message from the specified reader or buffer.
43033
+ * @function decode
43034
+ * @memberof replit.goval.api.ExtensionConfig
43035
+ * @static
43036
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
43037
+ * @param {number} [length] Message length if known beforehand
43038
+ * @returns {replit.goval.api.ExtensionConfig} ExtensionConfig
43039
+ * @throws {Error} If the payload is not a reader or valid buffer
43040
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
43041
+ */
43042
+ ExtensionConfig.decode = function decode(reader, length) {
43043
+ if (!(reader instanceof $Reader))
43044
+ reader = $Reader.create(reader);
43045
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.ExtensionConfig();
43046
+ while (reader.pos < end) {
43047
+ var tag = reader.uint32();
43048
+ switch (tag >>> 3) {
43049
+ case 1:
43050
+ message.isExtension = reader.bool();
43051
+ break;
43052
+ case 2:
43053
+ message.extensionID = reader.string();
43054
+ break;
43055
+ case 3:
43056
+ message.buildCommand = reader.string();
43057
+ break;
43058
+ case 4:
43059
+ message.outputDirectory = reader.string();
43060
+ break;
43061
+ default:
43062
+ reader.skipType(tag & 7);
43063
+ break;
43064
+ }
43065
+ }
43066
+ return message;
43067
+ };
43068
+
43069
+ /**
43070
+ * Decodes an ExtensionConfig message from the specified reader or buffer, length delimited.
43071
+ * @function decodeDelimited
43072
+ * @memberof replit.goval.api.ExtensionConfig
43073
+ * @static
43074
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
43075
+ * @returns {replit.goval.api.ExtensionConfig} ExtensionConfig
43076
+ * @throws {Error} If the payload is not a reader or valid buffer
43077
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
43078
+ */
43079
+ ExtensionConfig.decodeDelimited = function decodeDelimited(reader) {
43080
+ if (!(reader instanceof $Reader))
43081
+ reader = new $Reader(reader);
43082
+ return this.decode(reader, reader.uint32());
43083
+ };
43084
+
43085
+ /**
43086
+ * Verifies an ExtensionConfig message.
43087
+ * @function verify
43088
+ * @memberof replit.goval.api.ExtensionConfig
43089
+ * @static
43090
+ * @param {Object.<string,*>} message Plain object to verify
43091
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
43092
+ */
43093
+ ExtensionConfig.verify = function verify(message) {
43094
+ if (typeof message !== "object" || message === null)
43095
+ return "object expected";
43096
+ if (message.isExtension != null && message.hasOwnProperty("isExtension"))
43097
+ if (typeof message.isExtension !== "boolean")
43098
+ return "isExtension: boolean expected";
43099
+ if (message.extensionID != null && message.hasOwnProperty("extensionID"))
43100
+ if (!$util.isString(message.extensionID))
43101
+ return "extensionID: string expected";
43102
+ if (message.buildCommand != null && message.hasOwnProperty("buildCommand"))
43103
+ if (!$util.isString(message.buildCommand))
43104
+ return "buildCommand: string expected";
43105
+ if (message.outputDirectory != null && message.hasOwnProperty("outputDirectory"))
43106
+ if (!$util.isString(message.outputDirectory))
43107
+ return "outputDirectory: string expected";
43108
+ return null;
43109
+ };
43110
+
43111
+ /**
43112
+ * Creates an ExtensionConfig message from a plain object. Also converts values to their respective internal types.
43113
+ * @function fromObject
43114
+ * @memberof replit.goval.api.ExtensionConfig
43115
+ * @static
43116
+ * @param {Object.<string,*>} object Plain object
43117
+ * @returns {replit.goval.api.ExtensionConfig} ExtensionConfig
43118
+ */
43119
+ ExtensionConfig.fromObject = function fromObject(object) {
43120
+ if (object instanceof $root.replit.goval.api.ExtensionConfig)
43121
+ return object;
43122
+ var message = new $root.replit.goval.api.ExtensionConfig();
43123
+ if (object.isExtension != null)
43124
+ message.isExtension = Boolean(object.isExtension);
43125
+ if (object.extensionID != null)
43126
+ message.extensionID = String(object.extensionID);
43127
+ if (object.buildCommand != null)
43128
+ message.buildCommand = String(object.buildCommand);
43129
+ if (object.outputDirectory != null)
43130
+ message.outputDirectory = String(object.outputDirectory);
43131
+ return message;
43132
+ };
43133
+
43134
+ /**
43135
+ * Creates a plain object from an ExtensionConfig message. Also converts values to other types if specified.
43136
+ * @function toObject
43137
+ * @memberof replit.goval.api.ExtensionConfig
43138
+ * @static
43139
+ * @param {replit.goval.api.ExtensionConfig} message ExtensionConfig
43140
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
43141
+ * @returns {Object.<string,*>} Plain object
43142
+ */
43143
+ ExtensionConfig.toObject = function toObject(message, options) {
43144
+ if (!options)
43145
+ options = {};
43146
+ var object = {};
43147
+ if (options.defaults) {
43148
+ object.isExtension = false;
43149
+ object.extensionID = "";
43150
+ object.buildCommand = "";
43151
+ object.outputDirectory = "";
43152
+ }
43153
+ if (message.isExtension != null && message.hasOwnProperty("isExtension"))
43154
+ object.isExtension = message.isExtension;
43155
+ if (message.extensionID != null && message.hasOwnProperty("extensionID"))
43156
+ object.extensionID = message.extensionID;
43157
+ if (message.buildCommand != null && message.hasOwnProperty("buildCommand"))
43158
+ object.buildCommand = message.buildCommand;
43159
+ if (message.outputDirectory != null && message.hasOwnProperty("outputDirectory"))
43160
+ object.outputDirectory = message.outputDirectory;
43161
+ return object;
43162
+ };
43163
+
43164
+ /**
43165
+ * Converts this ExtensionConfig to JSON.
43166
+ * @function toJSON
43167
+ * @memberof replit.goval.api.ExtensionConfig
43168
+ * @instance
43169
+ * @returns {Object.<string,*>} JSON object
43170
+ */
43171
+ ExtensionConfig.prototype.toJSON = function toJSON() {
43172
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
43173
+ };
43174
+
43175
+ return ExtensionConfig;
43176
+ })();
43177
+
42820
43178
  api.NixConfig = (function() {
42821
43179
 
42822
43180
  /**
@@ -184,6 +184,7 @@ declare var npm$namespace$replit$goval$api: {|
184
184
  IDotReplitHint: Class<replit$goval$api$IDotReplitHint>,
185
185
  IGitHubImportConfig: Class<replit$goval$api$IGitHubImportConfig>,
186
186
  IDeploymentConfig: Class<replit$goval$api$IDeploymentConfig>,
187
+ IExtensionConfig: Class<replit$goval$api$IExtensionConfig>,
187
188
  INixConfig: Class<replit$goval$api$INixConfig>,
188
189
  IHostingConfig: Class<replit$goval$api$IHostingConfig>,
189
190
  IAuthConfig: Class<replit$goval$api$IAuthConfig>,
@@ -401,6 +402,7 @@ declare var npm$namespace$replit$goval$api: {|
401
402
  DotReplitHint: typeof replit$goval$api$DotReplitHint,
402
403
  GitHubImportConfig: typeof replit$goval$api$GitHubImportConfig,
403
404
  DeploymentConfig: typeof replit$goval$api$DeploymentConfig,
405
+ ExtensionConfig: typeof replit$goval$api$ExtensionConfig,
404
406
  NixConfig: typeof replit$goval$api$NixConfig,
405
407
  HostingConfig: typeof replit$goval$api$HostingConfig,
406
408
  AuthConfig: typeof replit$goval$api$AuthConfig,
@@ -23610,6 +23612,14 @@ declare type replit$goval$api$IDotReplit = {|
23610
23612
  * DotReplit modules
23611
23613
  */
23612
23614
  modules?: string[] | null,
23615
+
23616
+ /**
23617
+ * DotReplit extension
23618
+ */
23619
+ extension?:
23620
+ | replit$goval$api$ExtensionConfig
23621
+ | replit$goval$api$IExtensionConfig
23622
+ | null,
23613
23623
  |};
23614
23624
 
23615
23625
  /**
@@ -23741,6 +23751,11 @@ declare class replit$goval$api$DotReplit {
23741
23751
  */
23742
23752
  modules: string[];
23743
23753
 
23754
+ /**
23755
+ * DotReplit extension.
23756
+ */
23757
+ extension?: replit$goval$api$ExtensionConfig | null;
23758
+
23744
23759
  /**
23745
23760
  * Creates a new DotReplit instance using the specified properties.
23746
23761
  * @param [properties] Properties to set
@@ -24364,6 +24379,16 @@ declare type replit$goval$api$IDeploymentConfig = {|
24364
24379
  * DeploymentConfig ignorePorts
24365
24380
  */
24366
24381
  ignorePorts?: boolean | null,
24382
+
24383
+ /**
24384
+ * DeploymentConfig target
24385
+ */
24386
+ target?: $Values<typeof replit$goval$api$DeploymentConfig$Target> | null,
24387
+
24388
+ /**
24389
+ * DeploymentConfig publicDir
24390
+ */
24391
+ publicDir?: string | null,
24367
24392
  |};
24368
24393
 
24369
24394
  /**
@@ -24391,6 +24416,16 @@ declare class replit$goval$api$DeploymentConfig {
24391
24416
  */
24392
24417
  ignorePorts: boolean;
24393
24418
 
24419
+ /**
24420
+ * DeploymentConfig target.
24421
+ */
24422
+ target: $Values<typeof replit$goval$api$DeploymentConfig$Target>;
24423
+
24424
+ /**
24425
+ * DeploymentConfig publicDir.
24426
+ */
24427
+ publicDir: string;
24428
+
24394
24429
  /**
24395
24430
  * Creates a new DeploymentConfig instance using the specified properties.
24396
24431
  * @param [properties] Properties to set
@@ -24484,6 +24519,167 @@ declare class replit$goval$api$DeploymentConfig {
24484
24519
  toJSON(): {|
24485
24520
  [k: string]: any,
24486
24521
  |};
24522
+ static Target: typeof replit$goval$api$DeploymentConfig$Target;
24523
+ }
24524
+
24525
+ /**
24526
+ * Target enum.
24527
+ */
24528
+
24529
+ declare var replit$goval$api$DeploymentConfig$Target: {|
24530
+ +GCE: 0, // 0
24531
+ +CLOUDRUN: 1, // 1
24532
+ +STATIC: 2, // 2
24533
+ |};
24534
+
24535
+ /**
24536
+ * Properties of an ExtensionConfig.
24537
+ */
24538
+ declare type replit$goval$api$IExtensionConfig = {|
24539
+ /**
24540
+ * ExtensionConfig isExtension
24541
+ */
24542
+ isExtension?: boolean | null,
24543
+
24544
+ /**
24545
+ * ExtensionConfig extensionID
24546
+ */
24547
+ extensionID?: string | null,
24548
+
24549
+ /**
24550
+ * ExtensionConfig buildCommand
24551
+ */
24552
+ buildCommand?: string | null,
24553
+
24554
+ /**
24555
+ * ExtensionConfig outputDirectory
24556
+ */
24557
+ outputDirectory?: string | null,
24558
+ |};
24559
+
24560
+ /**
24561
+ * Represents an ExtensionConfig.
24562
+ */
24563
+ declare class replit$goval$api$ExtensionConfig {
24564
+ /**
24565
+ * Constructs a new ExtensionConfig.
24566
+ * @param [properties] Properties to set
24567
+ */
24568
+ constructor(properties?: replit$goval$api$IExtensionConfig): this;
24569
+
24570
+ /**
24571
+ * ExtensionConfig isExtension.
24572
+ */
24573
+ isExtension: boolean;
24574
+
24575
+ /**
24576
+ * ExtensionConfig extensionID.
24577
+ */
24578
+ extensionID: string;
24579
+
24580
+ /**
24581
+ * ExtensionConfig buildCommand.
24582
+ */
24583
+ buildCommand: string;
24584
+
24585
+ /**
24586
+ * ExtensionConfig outputDirectory.
24587
+ */
24588
+ outputDirectory: string;
24589
+
24590
+ /**
24591
+ * Creates a new ExtensionConfig instance using the specified properties.
24592
+ * @param [properties] Properties to set
24593
+ * @returns ExtensionConfig instance
24594
+ */
24595
+ static create(
24596
+ properties?: replit$goval$api$IExtensionConfig
24597
+ ): replit$goval$api$ExtensionConfig;
24598
+
24599
+ /**
24600
+ * [object Object],[object Object],[object Object]
24601
+ * @param message ExtensionConfig message or plain object to encode
24602
+ * @param [writer] Writer to encode to
24603
+ * @returns Writer
24604
+ */
24605
+ static encode(
24606
+ message: replit$goval$api$ExtensionConfig,
24607
+ writer?: $protobuf.Writer
24608
+ ): $protobuf.Writer;
24609
+
24610
+ /**
24611
+ * [object Object],[object Object],[object Object]
24612
+ * @param message ExtensionConfig message or plain object to encode
24613
+ * @param [writer] Writer to encode to
24614
+ * @returns Writer
24615
+ */
24616
+ static encodeDelimited(
24617
+ message: replit$goval$api$ExtensionConfig,
24618
+ writer?: $protobuf.Writer
24619
+ ): $protobuf.Writer;
24620
+
24621
+ /**
24622
+ * Decodes an ExtensionConfig message from the specified reader or buffer.
24623
+ * @param reader Reader or buffer to decode from
24624
+ * @param [length] Message length if known beforehand
24625
+ * @returns ExtensionConfig
24626
+ * @throws {Error} If the payload is not a reader or valid buffer
24627
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
24628
+ */
24629
+ static decode(
24630
+ reader: $protobuf.Reader | Uint8Array,
24631
+ length?: number
24632
+ ): replit$goval$api$ExtensionConfig;
24633
+
24634
+ /**
24635
+ * Decodes an ExtensionConfig message from the specified reader or buffer, length delimited.
24636
+ * @param reader Reader or buffer to decode from
24637
+ * @returns ExtensionConfig
24638
+ * @throws {Error} If the payload is not a reader or valid buffer
24639
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
24640
+ */
24641
+ static decodeDelimited(
24642
+ reader: $protobuf.Reader | Uint8Array
24643
+ ): replit$goval$api$ExtensionConfig;
24644
+
24645
+ /**
24646
+ * Verifies an ExtensionConfig message.
24647
+ * @param message Plain object to verify
24648
+ * @returns `null` if valid, otherwise the reason why it is not
24649
+ */
24650
+ static verify(message: {|
24651
+ [k: string]: any,
24652
+ |}): string | null;
24653
+
24654
+ /**
24655
+ * Creates an ExtensionConfig message from a plain object. Also converts values to their respective internal types.
24656
+ * @param object Plain object
24657
+ * @returns ExtensionConfig
24658
+ */
24659
+ static fromObject(object: {|
24660
+ [k: string]: any,
24661
+ |}): replit$goval$api$ExtensionConfig;
24662
+
24663
+ /**
24664
+ * Creates a plain object from an ExtensionConfig message. Also converts values to other types if specified.
24665
+ * @param message ExtensionConfig
24666
+ * @param [options] Conversion options
24667
+ * @returns Plain object
24668
+ */
24669
+ static toObject(
24670
+ message: replit$goval$api$ExtensionConfig,
24671
+ options?: $protobuf.IConversionOptions
24672
+ ): {|
24673
+ [k: string]: any,
24674
+ |};
24675
+
24676
+ /**
24677
+ * Converts this ExtensionConfig to JSON.
24678
+ * @returns JSON object
24679
+ */
24680
+ toJSON(): {|
24681
+ [k: string]: any,
24682
+ |};
24487
24683
  }
24488
24684
 
24489
24685
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@replit/protocol",
3
- "version": "0.3.3",
3
+ "version": "0.3.5",
4
4
  "description": "JavaScript bindings for the Replit protocol",
5
5
  "main": "main/index.js",
6
6
  "repository": "https://github.com/replit/protocol",