@replit/protocol 0.3.3 → 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.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
@@ -17089,6 +17095,114 @@ export namespace replit {
17089
17095
  public toJSON(): { [k: string]: any };
17090
17096
  }
17091
17097
 
17098
+ /** Properties of an ExtensionConfig. */
17099
+ interface IExtensionConfig {
17100
+
17101
+ /** ExtensionConfig isExtension */
17102
+ isExtension?: (boolean|null);
17103
+
17104
+ /** ExtensionConfig extensionID */
17105
+ extensionID?: (string|null);
17106
+
17107
+ /** ExtensionConfig buildCommand */
17108
+ buildCommand?: (string|null);
17109
+
17110
+ /** ExtensionConfig outputDirectory */
17111
+ outputDirectory?: (string|null);
17112
+ }
17113
+
17114
+ /** Represents an ExtensionConfig. */
17115
+ class ExtensionConfig {
17116
+
17117
+ /**
17118
+ * Constructs a new ExtensionConfig.
17119
+ * @param [properties] Properties to set
17120
+ */
17121
+ private constructor(properties?: replit.goval.api.IExtensionConfig);
17122
+
17123
+ /** ExtensionConfig isExtension. */
17124
+ public isExtension: boolean;
17125
+
17126
+ /** ExtensionConfig extensionID. */
17127
+ public extensionID: string;
17128
+
17129
+ /** ExtensionConfig buildCommand. */
17130
+ public buildCommand: string;
17131
+
17132
+ /** ExtensionConfig outputDirectory. */
17133
+ public outputDirectory: string;
17134
+
17135
+ /**
17136
+ * Creates a new ExtensionConfig instance using the specified properties.
17137
+ * @param [properties] Properties to set
17138
+ * @returns ExtensionConfig instance
17139
+ */
17140
+ public static create(properties?: replit.goval.api.IExtensionConfig): replit.goval.api.ExtensionConfig;
17141
+
17142
+ /**
17143
+ * Encodes the specified ExtensionConfig message. Does not implicitly {@link replit.goval.api.ExtensionConfig.verify|verify} messages.
17144
+ * @param message ExtensionConfig message or plain object to encode
17145
+ * @param [writer] Writer to encode to
17146
+ * @returns Writer
17147
+ */
17148
+ public static encode(message: replit.goval.api.ExtensionConfig, writer?: $protobuf.Writer): $protobuf.Writer;
17149
+
17150
+ /**
17151
+ * Encodes the specified ExtensionConfig message, length delimited. Does not implicitly {@link replit.goval.api.ExtensionConfig.verify|verify} messages.
17152
+ * @param message ExtensionConfig message or plain object to encode
17153
+ * @param [writer] Writer to encode to
17154
+ * @returns Writer
17155
+ */
17156
+ public static encodeDelimited(message: replit.goval.api.ExtensionConfig, writer?: $protobuf.Writer): $protobuf.Writer;
17157
+
17158
+ /**
17159
+ * Decodes an ExtensionConfig message from the specified reader or buffer.
17160
+ * @param reader Reader or buffer to decode from
17161
+ * @param [length] Message length if known beforehand
17162
+ * @returns ExtensionConfig
17163
+ * @throws {Error} If the payload is not a reader or valid buffer
17164
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
17165
+ */
17166
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): replit.goval.api.ExtensionConfig;
17167
+
17168
+ /**
17169
+ * Decodes an ExtensionConfig message from the specified reader or buffer, length delimited.
17170
+ * @param reader Reader or buffer to decode from
17171
+ * @returns ExtensionConfig
17172
+ * @throws {Error} If the payload is not a reader or valid buffer
17173
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
17174
+ */
17175
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): replit.goval.api.ExtensionConfig;
17176
+
17177
+ /**
17178
+ * Verifies an ExtensionConfig message.
17179
+ * @param message Plain object to verify
17180
+ * @returns `null` if valid, otherwise the reason why it is not
17181
+ */
17182
+ public static verify(message: { [k: string]: any }): (string|null);
17183
+
17184
+ /**
17185
+ * Creates an ExtensionConfig message from a plain object. Also converts values to their respective internal types.
17186
+ * @param object Plain object
17187
+ * @returns ExtensionConfig
17188
+ */
17189
+ public static fromObject(object: { [k: string]: any }): replit.goval.api.ExtensionConfig;
17190
+
17191
+ /**
17192
+ * Creates a plain object from an ExtensionConfig message. Also converts values to other types if specified.
17193
+ * @param message ExtensionConfig
17194
+ * @param [options] Conversion options
17195
+ * @returns Plain object
17196
+ */
17197
+ public static toObject(message: replit.goval.api.ExtensionConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
17198
+
17199
+ /**
17200
+ * Converts this ExtensionConfig to JSON.
17201
+ * @returns JSON object
17202
+ */
17203
+ public toJSON(): { [k: string]: any };
17204
+ }
17205
+
17092
17206
  /** Properties of a NixConfig. */
17093
17207
  interface INixConfig {
17094
17208
 
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
 
@@ -42817,6 +42844,259 @@
42817
42844
  return DeploymentConfig;
42818
42845
  })();
42819
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
+
42820
43100
  api.NixConfig = (function() {
42821
43101
 
42822
43102
  /**
@@ -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
@@ -24486,6 +24501,156 @@ declare class replit$goval$api$DeploymentConfig {
24486
24501
  |};
24487
24502
  }
24488
24503
 
24504
+ /**
24505
+ * Properties of an ExtensionConfig.
24506
+ */
24507
+ declare type replit$goval$api$IExtensionConfig = {|
24508
+ /**
24509
+ * ExtensionConfig isExtension
24510
+ */
24511
+ isExtension?: boolean | null,
24512
+
24513
+ /**
24514
+ * ExtensionConfig extensionID
24515
+ */
24516
+ extensionID?: string | null,
24517
+
24518
+ /**
24519
+ * ExtensionConfig buildCommand
24520
+ */
24521
+ buildCommand?: string | null,
24522
+
24523
+ /**
24524
+ * ExtensionConfig outputDirectory
24525
+ */
24526
+ outputDirectory?: string | null,
24527
+ |};
24528
+
24529
+ /**
24530
+ * Represents an ExtensionConfig.
24531
+ */
24532
+ declare class replit$goval$api$ExtensionConfig {
24533
+ /**
24534
+ * Constructs a new ExtensionConfig.
24535
+ * @param [properties] Properties to set
24536
+ */
24537
+ constructor(properties?: replit$goval$api$IExtensionConfig): this;
24538
+
24539
+ /**
24540
+ * ExtensionConfig isExtension.
24541
+ */
24542
+ isExtension: boolean;
24543
+
24544
+ /**
24545
+ * ExtensionConfig extensionID.
24546
+ */
24547
+ extensionID: string;
24548
+
24549
+ /**
24550
+ * ExtensionConfig buildCommand.
24551
+ */
24552
+ buildCommand: string;
24553
+
24554
+ /**
24555
+ * ExtensionConfig outputDirectory.
24556
+ */
24557
+ outputDirectory: string;
24558
+
24559
+ /**
24560
+ * Creates a new ExtensionConfig instance using the specified properties.
24561
+ * @param [properties] Properties to set
24562
+ * @returns ExtensionConfig instance
24563
+ */
24564
+ static create(
24565
+ properties?: replit$goval$api$IExtensionConfig
24566
+ ): replit$goval$api$ExtensionConfig;
24567
+
24568
+ /**
24569
+ * [object Object],[object Object],[object Object]
24570
+ * @param message ExtensionConfig message or plain object to encode
24571
+ * @param [writer] Writer to encode to
24572
+ * @returns Writer
24573
+ */
24574
+ static encode(
24575
+ message: replit$goval$api$ExtensionConfig,
24576
+ writer?: $protobuf.Writer
24577
+ ): $protobuf.Writer;
24578
+
24579
+ /**
24580
+ * [object Object],[object Object],[object Object]
24581
+ * @param message ExtensionConfig message or plain object to encode
24582
+ * @param [writer] Writer to encode to
24583
+ * @returns Writer
24584
+ */
24585
+ static encodeDelimited(
24586
+ message: replit$goval$api$ExtensionConfig,
24587
+ writer?: $protobuf.Writer
24588
+ ): $protobuf.Writer;
24589
+
24590
+ /**
24591
+ * Decodes an ExtensionConfig message from the specified reader or buffer.
24592
+ * @param reader Reader or buffer to decode from
24593
+ * @param [length] Message length if known beforehand
24594
+ * @returns ExtensionConfig
24595
+ * @throws {Error} If the payload is not a reader or valid buffer
24596
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
24597
+ */
24598
+ static decode(
24599
+ reader: $protobuf.Reader | Uint8Array,
24600
+ length?: number
24601
+ ): replit$goval$api$ExtensionConfig;
24602
+
24603
+ /**
24604
+ * Decodes an ExtensionConfig message from the specified reader or buffer, length delimited.
24605
+ * @param reader Reader or buffer to decode from
24606
+ * @returns ExtensionConfig
24607
+ * @throws {Error} If the payload is not a reader or valid buffer
24608
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
24609
+ */
24610
+ static decodeDelimited(
24611
+ reader: $protobuf.Reader | Uint8Array
24612
+ ): replit$goval$api$ExtensionConfig;
24613
+
24614
+ /**
24615
+ * Verifies an ExtensionConfig message.
24616
+ * @param message Plain object to verify
24617
+ * @returns `null` if valid, otherwise the reason why it is not
24618
+ */
24619
+ static verify(message: {|
24620
+ [k: string]: any,
24621
+ |}): string | null;
24622
+
24623
+ /**
24624
+ * Creates an ExtensionConfig message from a plain object. Also converts values to their respective internal types.
24625
+ * @param object Plain object
24626
+ * @returns ExtensionConfig
24627
+ */
24628
+ static fromObject(object: {|
24629
+ [k: string]: any,
24630
+ |}): replit$goval$api$ExtensionConfig;
24631
+
24632
+ /**
24633
+ * Creates a plain object from an ExtensionConfig message. Also converts values to other types if specified.
24634
+ * @param message ExtensionConfig
24635
+ * @param [options] Conversion options
24636
+ * @returns Plain object
24637
+ */
24638
+ static toObject(
24639
+ message: replit$goval$api$ExtensionConfig,
24640
+ options?: $protobuf.IConversionOptions
24641
+ ): {|
24642
+ [k: string]: any,
24643
+ |};
24644
+
24645
+ /**
24646
+ * Converts this ExtensionConfig to JSON.
24647
+ * @returns JSON object
24648
+ */
24649
+ toJSON(): {|
24650
+ [k: string]: any,
24651
+ |};
24652
+ }
24653
+
24489
24654
  /**
24490
24655
  * Properties of a NixConfig.
24491
24656
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@replit/protocol",
3
- "version": "0.3.3",
3
+ "version": "0.3.4",
4
4
  "description": "JavaScript bindings for the Replit protocol",
5
5
  "main": "main/index.js",
6
6
  "repository": "https://github.com/replit/protocol",