@replit/protocol 0.2.60 → 0.2.63

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/main/index.js CHANGED
@@ -38639,6 +38639,8 @@
38639
38639
  * @property {Object.<string,string>|null} [env] DotReplit env
38640
38640
  * @property {api.GitHubImportConfig|api.IGitHubImportConfig|null} [gitHubImport] DotReplit gitHubImport
38641
38641
  * @property {api.AuthConfig|api.IAuthConfig|null} [auth] DotReplit auth
38642
+ * @property {Array.<api.DotReplitHint|api.IDotReplitHint>|null} [hintsList] DotReplit hintsList
38643
+ * @property {Array.<api.DotReplitPort|api.IDotReplitPort>|null} [ports] DotReplit ports
38642
38644
  */
38643
38645
 
38644
38646
  /**
@@ -38652,6 +38654,8 @@
38652
38654
  this.languages = {};
38653
38655
  this.hidden = [];
38654
38656
  this.env = {};
38657
+ this.hintsList = [];
38658
+ this.ports = [];
38655
38659
  if (properties)
38656
38660
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
38657
38661
  if (properties[keys[i]] != null)
@@ -38794,6 +38798,22 @@
38794
38798
  */
38795
38799
  DotReplit.prototype.auth = null;
38796
38800
 
38801
+ /**
38802
+ * DotReplit hintsList.
38803
+ * @member {Array.<api.DotReplitHint>} hintsList
38804
+ * @memberof api.DotReplit
38805
+ * @instance
38806
+ */
38807
+ DotReplit.prototype.hintsList = $util.emptyArray;
38808
+
38809
+ /**
38810
+ * DotReplit ports.
38811
+ * @member {Array.<api.DotReplitPort>} ports
38812
+ * @memberof api.DotReplit
38813
+ * @instance
38814
+ */
38815
+ DotReplit.prototype.ports = $util.emptyArray;
38816
+
38797
38817
  /**
38798
38818
  * Creates a new DotReplit instance using the specified properties.
38799
38819
  * @function create
@@ -38857,6 +38877,12 @@
38857
38877
  $root.api.GitHubImportConfig.encode(message.gitHubImport, writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim();
38858
38878
  if (message.auth != null && Object.hasOwnProperty.call(message, "auth"))
38859
38879
  $root.api.AuthConfig.encode(message.auth, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim();
38880
+ if (message.hintsList != null && message.hintsList.length)
38881
+ for (var i = 0; i < message.hintsList.length; ++i)
38882
+ $root.api.DotReplitHint.encode(message.hintsList[i], writer.uint32(/* id 18, wireType 2 =*/146).fork()).ldelim();
38883
+ if (message.ports != null && message.ports.length)
38884
+ for (var i = 0; i < message.ports.length; ++i)
38885
+ $root.api.DotReplitPort.encode(message.ports[i], writer.uint32(/* id 19, wireType 2 =*/154).fork()).ldelim();
38860
38886
  return writer;
38861
38887
  };
38862
38888
 
@@ -38982,6 +39008,16 @@
38982
39008
  case 17:
38983
39009
  message.auth = $root.api.AuthConfig.decode(reader, reader.uint32());
38984
39010
  break;
39011
+ case 18:
39012
+ if (!(message.hintsList && message.hintsList.length))
39013
+ message.hintsList = [];
39014
+ message.hintsList.push($root.api.DotReplitHint.decode(reader, reader.uint32()));
39015
+ break;
39016
+ case 19:
39017
+ if (!(message.ports && message.ports.length))
39018
+ message.ports = [];
39019
+ message.ports.push($root.api.DotReplitPort.decode(reader, reader.uint32()));
39020
+ break;
38985
39021
  default:
38986
39022
  reader.skipType(tag & 7);
38987
39023
  break;
@@ -39106,6 +39142,24 @@
39106
39142
  if (error)
39107
39143
  return "auth." + error;
39108
39144
  }
39145
+ if (message.hintsList != null && message.hasOwnProperty("hintsList")) {
39146
+ if (!Array.isArray(message.hintsList))
39147
+ return "hintsList: array expected";
39148
+ for (var i = 0; i < message.hintsList.length; ++i) {
39149
+ var error = $root.api.DotReplitHint.verify(message.hintsList[i]);
39150
+ if (error)
39151
+ return "hintsList." + error;
39152
+ }
39153
+ }
39154
+ if (message.ports != null && message.hasOwnProperty("ports")) {
39155
+ if (!Array.isArray(message.ports))
39156
+ return "ports: array expected";
39157
+ for (var i = 0; i < message.ports.length; ++i) {
39158
+ var error = $root.api.DotReplitPort.verify(message.ports[i]);
39159
+ if (error)
39160
+ return "ports." + error;
39161
+ }
39162
+ }
39109
39163
  return null;
39110
39164
  };
39111
39165
 
@@ -39206,6 +39260,26 @@
39206
39260
  throw TypeError(".api.DotReplit.auth: object expected");
39207
39261
  message.auth = $root.api.AuthConfig.fromObject(object.auth);
39208
39262
  }
39263
+ if (object.hintsList) {
39264
+ if (!Array.isArray(object.hintsList))
39265
+ throw TypeError(".api.DotReplit.hintsList: array expected");
39266
+ message.hintsList = [];
39267
+ for (var i = 0; i < object.hintsList.length; ++i) {
39268
+ if (typeof object.hintsList[i] !== "object")
39269
+ throw TypeError(".api.DotReplit.hintsList: object expected");
39270
+ message.hintsList[i] = $root.api.DotReplitHint.fromObject(object.hintsList[i]);
39271
+ }
39272
+ }
39273
+ if (object.ports) {
39274
+ if (!Array.isArray(object.ports))
39275
+ throw TypeError(".api.DotReplit.ports: array expected");
39276
+ message.ports = [];
39277
+ for (var i = 0; i < object.ports.length; ++i) {
39278
+ if (typeof object.ports[i] !== "object")
39279
+ throw TypeError(".api.DotReplit.ports: object expected");
39280
+ message.ports[i] = $root.api.DotReplitPort.fromObject(object.ports[i]);
39281
+ }
39282
+ }
39209
39283
  return message;
39210
39284
  };
39211
39285
 
@@ -39222,8 +39296,11 @@
39222
39296
  if (!options)
39223
39297
  options = {};
39224
39298
  var object = {};
39225
- if (options.arrays || options.defaults)
39299
+ if (options.arrays || options.defaults) {
39226
39300
  object.hidden = [];
39301
+ object.hintsList = [];
39302
+ object.ports = [];
39303
+ }
39227
39304
  if (options.objects || options.defaults) {
39228
39305
  object.languages = {};
39229
39306
  object.env = {};
@@ -39288,6 +39365,16 @@
39288
39365
  object.gitHubImport = $root.api.GitHubImportConfig.toObject(message.gitHubImport, options);
39289
39366
  if (message.auth != null && message.hasOwnProperty("auth"))
39290
39367
  object.auth = $root.api.AuthConfig.toObject(message.auth, options);
39368
+ if (message.hintsList && message.hintsList.length) {
39369
+ object.hintsList = [];
39370
+ for (var j = 0; j < message.hintsList.length; ++j)
39371
+ object.hintsList[j] = $root.api.DotReplitHint.toObject(message.hintsList[j], options);
39372
+ }
39373
+ if (message.ports && message.ports.length) {
39374
+ object.ports = [];
39375
+ for (var j = 0; j < message.ports.length; ++j)
39376
+ object.ports[j] = $root.api.DotReplitPort.toObject(message.ports[j], options);
39377
+ }
39291
39378
  return object;
39292
39379
  };
39293
39380
 
@@ -39305,13 +39392,431 @@
39305
39392
  return DotReplit;
39306
39393
  })();
39307
39394
 
39395
+ api.DotReplitPort = (function() {
39396
+
39397
+ /**
39398
+ * Properties of a DotReplitPort.
39399
+ * @memberof api
39400
+ * @interface IDotReplitPort
39401
+ * @property {number|null} [localPort] DotReplitPort localPort
39402
+ * @property {number|null} [externalPort] DotReplitPort externalPort
39403
+ */
39404
+
39405
+ /**
39406
+ * Constructs a new DotReplitPort.
39407
+ * @memberof api
39408
+ * @classdesc Represents a DotReplitPort.
39409
+ * @constructor
39410
+ * @param {api.IDotReplitPort=} [properties] Properties to set
39411
+ */
39412
+ function DotReplitPort(properties) {
39413
+ if (properties)
39414
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
39415
+ if (properties[keys[i]] != null)
39416
+ this[keys[i]] = properties[keys[i]];
39417
+ }
39418
+
39419
+ /**
39420
+ * DotReplitPort localPort.
39421
+ * @member {number} localPort
39422
+ * @memberof api.DotReplitPort
39423
+ * @instance
39424
+ */
39425
+ DotReplitPort.prototype.localPort = 0;
39426
+
39427
+ /**
39428
+ * DotReplitPort externalPort.
39429
+ * @member {number} externalPort
39430
+ * @memberof api.DotReplitPort
39431
+ * @instance
39432
+ */
39433
+ DotReplitPort.prototype.externalPort = 0;
39434
+
39435
+ /**
39436
+ * Creates a new DotReplitPort instance using the specified properties.
39437
+ * @function create
39438
+ * @memberof api.DotReplitPort
39439
+ * @static
39440
+ * @param {api.IDotReplitPort=} [properties] Properties to set
39441
+ * @returns {api.DotReplitPort} DotReplitPort instance
39442
+ */
39443
+ DotReplitPort.create = function create(properties) {
39444
+ return DotReplitPort.fromObject(properties);
39445
+ };
39446
+
39447
+ /**
39448
+ * Encodes the specified DotReplitPort message. Does not implicitly {@link api.DotReplitPort.verify|verify} messages.
39449
+ * @function encode
39450
+ * @memberof api.DotReplitPort
39451
+ * @static
39452
+ * @param {api.DotReplitPort} message DotReplitPort message or plain object to encode
39453
+ * @param {$protobuf.Writer} [writer] Writer to encode to
39454
+ * @returns {$protobuf.Writer} Writer
39455
+ */
39456
+ DotReplitPort.encode = function encode(message, writer) {
39457
+ if (!writer)
39458
+ writer = $Writer.create();
39459
+ if (message.localPort != null && Object.hasOwnProperty.call(message, "localPort"))
39460
+ writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.localPort);
39461
+ if (message.externalPort != null && Object.hasOwnProperty.call(message, "externalPort"))
39462
+ writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.externalPort);
39463
+ return writer;
39464
+ };
39465
+
39466
+ /**
39467
+ * Encodes the specified DotReplitPort message, length delimited. Does not implicitly {@link api.DotReplitPort.verify|verify} messages.
39468
+ * @function encodeDelimited
39469
+ * @memberof api.DotReplitPort
39470
+ * @static
39471
+ * @param {api.DotReplitPort} message DotReplitPort message or plain object to encode
39472
+ * @param {$protobuf.Writer} [writer] Writer to encode to
39473
+ * @returns {$protobuf.Writer} Writer
39474
+ */
39475
+ DotReplitPort.encodeDelimited = function encodeDelimited(message, writer) {
39476
+ return this.encode(message, writer).ldelim();
39477
+ };
39478
+
39479
+ /**
39480
+ * Decodes a DotReplitPort message from the specified reader or buffer.
39481
+ * @function decode
39482
+ * @memberof api.DotReplitPort
39483
+ * @static
39484
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
39485
+ * @param {number} [length] Message length if known beforehand
39486
+ * @returns {api.DotReplitPort} DotReplitPort
39487
+ * @throws {Error} If the payload is not a reader or valid buffer
39488
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
39489
+ */
39490
+ DotReplitPort.decode = function decode(reader, length) {
39491
+ if (!(reader instanceof $Reader))
39492
+ reader = $Reader.create(reader);
39493
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.api.DotReplitPort();
39494
+ while (reader.pos < end) {
39495
+ var tag = reader.uint32();
39496
+ switch (tag >>> 3) {
39497
+ case 1:
39498
+ message.localPort = reader.uint32();
39499
+ break;
39500
+ case 2:
39501
+ message.externalPort = reader.uint32();
39502
+ break;
39503
+ default:
39504
+ reader.skipType(tag & 7);
39505
+ break;
39506
+ }
39507
+ }
39508
+ return message;
39509
+ };
39510
+
39511
+ /**
39512
+ * Decodes a DotReplitPort message from the specified reader or buffer, length delimited.
39513
+ * @function decodeDelimited
39514
+ * @memberof api.DotReplitPort
39515
+ * @static
39516
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
39517
+ * @returns {api.DotReplitPort} DotReplitPort
39518
+ * @throws {Error} If the payload is not a reader or valid buffer
39519
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
39520
+ */
39521
+ DotReplitPort.decodeDelimited = function decodeDelimited(reader) {
39522
+ if (!(reader instanceof $Reader))
39523
+ reader = new $Reader(reader);
39524
+ return this.decode(reader, reader.uint32());
39525
+ };
39526
+
39527
+ /**
39528
+ * Verifies a DotReplitPort message.
39529
+ * @function verify
39530
+ * @memberof api.DotReplitPort
39531
+ * @static
39532
+ * @param {Object.<string,*>} message Plain object to verify
39533
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
39534
+ */
39535
+ DotReplitPort.verify = function verify(message) {
39536
+ if (typeof message !== "object" || message === null)
39537
+ return "object expected";
39538
+ if (message.localPort != null && message.hasOwnProperty("localPort"))
39539
+ if (!$util.isInteger(message.localPort))
39540
+ return "localPort: integer expected";
39541
+ if (message.externalPort != null && message.hasOwnProperty("externalPort"))
39542
+ if (!$util.isInteger(message.externalPort))
39543
+ return "externalPort: integer expected";
39544
+ return null;
39545
+ };
39546
+
39547
+ /**
39548
+ * Creates a DotReplitPort message from a plain object. Also converts values to their respective internal types.
39549
+ * @function fromObject
39550
+ * @memberof api.DotReplitPort
39551
+ * @static
39552
+ * @param {Object.<string,*>} object Plain object
39553
+ * @returns {api.DotReplitPort} DotReplitPort
39554
+ */
39555
+ DotReplitPort.fromObject = function fromObject(object) {
39556
+ if (object instanceof $root.api.DotReplitPort)
39557
+ return object;
39558
+ var message = new $root.api.DotReplitPort();
39559
+ if (object.localPort != null)
39560
+ message.localPort = object.localPort >>> 0;
39561
+ if (object.externalPort != null)
39562
+ message.externalPort = object.externalPort >>> 0;
39563
+ return message;
39564
+ };
39565
+
39566
+ /**
39567
+ * Creates a plain object from a DotReplitPort message. Also converts values to other types if specified.
39568
+ * @function toObject
39569
+ * @memberof api.DotReplitPort
39570
+ * @static
39571
+ * @param {api.DotReplitPort} message DotReplitPort
39572
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
39573
+ * @returns {Object.<string,*>} Plain object
39574
+ */
39575
+ DotReplitPort.toObject = function toObject(message, options) {
39576
+ if (!options)
39577
+ options = {};
39578
+ var object = {};
39579
+ if (options.defaults) {
39580
+ object.localPort = 0;
39581
+ object.externalPort = 0;
39582
+ }
39583
+ if (message.localPort != null && message.hasOwnProperty("localPort"))
39584
+ object.localPort = message.localPort;
39585
+ if (message.externalPort != null && message.hasOwnProperty("externalPort"))
39586
+ object.externalPort = message.externalPort;
39587
+ return object;
39588
+ };
39589
+
39590
+ /**
39591
+ * Converts this DotReplitPort to JSON.
39592
+ * @function toJSON
39593
+ * @memberof api.DotReplitPort
39594
+ * @instance
39595
+ * @returns {Object.<string,*>} JSON object
39596
+ */
39597
+ DotReplitPort.prototype.toJSON = function toJSON() {
39598
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
39599
+ };
39600
+
39601
+ return DotReplitPort;
39602
+ })();
39603
+
39604
+ api.DotReplitHint = (function() {
39605
+
39606
+ /**
39607
+ * Properties of a DotReplitHint.
39608
+ * @memberof api
39609
+ * @interface IDotReplitHint
39610
+ * @property {string|null} [regex] DotReplitHint regex
39611
+ * @property {string|null} [message] DotReplitHint message
39612
+ */
39613
+
39614
+ /**
39615
+ * Constructs a new DotReplitHint.
39616
+ * @memberof api
39617
+ * @classdesc Represents a DotReplitHint.
39618
+ * @constructor
39619
+ * @param {api.IDotReplitHint=} [properties] Properties to set
39620
+ */
39621
+ function DotReplitHint(properties) {
39622
+ if (properties)
39623
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
39624
+ if (properties[keys[i]] != null)
39625
+ this[keys[i]] = properties[keys[i]];
39626
+ }
39627
+
39628
+ /**
39629
+ * DotReplitHint regex.
39630
+ * @member {string} regex
39631
+ * @memberof api.DotReplitHint
39632
+ * @instance
39633
+ */
39634
+ DotReplitHint.prototype.regex = "";
39635
+
39636
+ /**
39637
+ * DotReplitHint message.
39638
+ * @member {string} message
39639
+ * @memberof api.DotReplitHint
39640
+ * @instance
39641
+ */
39642
+ DotReplitHint.prototype.message = "";
39643
+
39644
+ /**
39645
+ * Creates a new DotReplitHint instance using the specified properties.
39646
+ * @function create
39647
+ * @memberof api.DotReplitHint
39648
+ * @static
39649
+ * @param {api.IDotReplitHint=} [properties] Properties to set
39650
+ * @returns {api.DotReplitHint} DotReplitHint instance
39651
+ */
39652
+ DotReplitHint.create = function create(properties) {
39653
+ return DotReplitHint.fromObject(properties);
39654
+ };
39655
+
39656
+ /**
39657
+ * Encodes the specified DotReplitHint message. Does not implicitly {@link api.DotReplitHint.verify|verify} messages.
39658
+ * @function encode
39659
+ * @memberof api.DotReplitHint
39660
+ * @static
39661
+ * @param {api.DotReplitHint} message DotReplitHint message or plain object to encode
39662
+ * @param {$protobuf.Writer} [writer] Writer to encode to
39663
+ * @returns {$protobuf.Writer} Writer
39664
+ */
39665
+ DotReplitHint.encode = function encode(message, writer) {
39666
+ if (!writer)
39667
+ writer = $Writer.create();
39668
+ if (message.regex != null && Object.hasOwnProperty.call(message, "regex"))
39669
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.regex);
39670
+ if (message.message != null && Object.hasOwnProperty.call(message, "message"))
39671
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.message);
39672
+ return writer;
39673
+ };
39674
+
39675
+ /**
39676
+ * Encodes the specified DotReplitHint message, length delimited. Does not implicitly {@link api.DotReplitHint.verify|verify} messages.
39677
+ * @function encodeDelimited
39678
+ * @memberof api.DotReplitHint
39679
+ * @static
39680
+ * @param {api.DotReplitHint} message DotReplitHint message or plain object to encode
39681
+ * @param {$protobuf.Writer} [writer] Writer to encode to
39682
+ * @returns {$protobuf.Writer} Writer
39683
+ */
39684
+ DotReplitHint.encodeDelimited = function encodeDelimited(message, writer) {
39685
+ return this.encode(message, writer).ldelim();
39686
+ };
39687
+
39688
+ /**
39689
+ * Decodes a DotReplitHint message from the specified reader or buffer.
39690
+ * @function decode
39691
+ * @memberof api.DotReplitHint
39692
+ * @static
39693
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
39694
+ * @param {number} [length] Message length if known beforehand
39695
+ * @returns {api.DotReplitHint} DotReplitHint
39696
+ * @throws {Error} If the payload is not a reader or valid buffer
39697
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
39698
+ */
39699
+ DotReplitHint.decode = function decode(reader, length) {
39700
+ if (!(reader instanceof $Reader))
39701
+ reader = $Reader.create(reader);
39702
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.api.DotReplitHint();
39703
+ while (reader.pos < end) {
39704
+ var tag = reader.uint32();
39705
+ switch (tag >>> 3) {
39706
+ case 1:
39707
+ message.regex = reader.string();
39708
+ break;
39709
+ case 2:
39710
+ message.message = reader.string();
39711
+ break;
39712
+ default:
39713
+ reader.skipType(tag & 7);
39714
+ break;
39715
+ }
39716
+ }
39717
+ return message;
39718
+ };
39719
+
39720
+ /**
39721
+ * Decodes a DotReplitHint message from the specified reader or buffer, length delimited.
39722
+ * @function decodeDelimited
39723
+ * @memberof api.DotReplitHint
39724
+ * @static
39725
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
39726
+ * @returns {api.DotReplitHint} DotReplitHint
39727
+ * @throws {Error} If the payload is not a reader or valid buffer
39728
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
39729
+ */
39730
+ DotReplitHint.decodeDelimited = function decodeDelimited(reader) {
39731
+ if (!(reader instanceof $Reader))
39732
+ reader = new $Reader(reader);
39733
+ return this.decode(reader, reader.uint32());
39734
+ };
39735
+
39736
+ /**
39737
+ * Verifies a DotReplitHint message.
39738
+ * @function verify
39739
+ * @memberof api.DotReplitHint
39740
+ * @static
39741
+ * @param {Object.<string,*>} message Plain object to verify
39742
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
39743
+ */
39744
+ DotReplitHint.verify = function verify(message) {
39745
+ if (typeof message !== "object" || message === null)
39746
+ return "object expected";
39747
+ if (message.regex != null && message.hasOwnProperty("regex"))
39748
+ if (!$util.isString(message.regex))
39749
+ return "regex: string expected";
39750
+ if (message.message != null && message.hasOwnProperty("message"))
39751
+ if (!$util.isString(message.message))
39752
+ return "message: string expected";
39753
+ return null;
39754
+ };
39755
+
39756
+ /**
39757
+ * Creates a DotReplitHint message from a plain object. Also converts values to their respective internal types.
39758
+ * @function fromObject
39759
+ * @memberof api.DotReplitHint
39760
+ * @static
39761
+ * @param {Object.<string,*>} object Plain object
39762
+ * @returns {api.DotReplitHint} DotReplitHint
39763
+ */
39764
+ DotReplitHint.fromObject = function fromObject(object) {
39765
+ if (object instanceof $root.api.DotReplitHint)
39766
+ return object;
39767
+ var message = new $root.api.DotReplitHint();
39768
+ if (object.regex != null)
39769
+ message.regex = String(object.regex);
39770
+ if (object.message != null)
39771
+ message.message = String(object.message);
39772
+ return message;
39773
+ };
39774
+
39775
+ /**
39776
+ * Creates a plain object from a DotReplitHint message. Also converts values to other types if specified.
39777
+ * @function toObject
39778
+ * @memberof api.DotReplitHint
39779
+ * @static
39780
+ * @param {api.DotReplitHint} message DotReplitHint
39781
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
39782
+ * @returns {Object.<string,*>} Plain object
39783
+ */
39784
+ DotReplitHint.toObject = function toObject(message, options) {
39785
+ if (!options)
39786
+ options = {};
39787
+ var object = {};
39788
+ if (options.defaults) {
39789
+ object.regex = "";
39790
+ object.message = "";
39791
+ }
39792
+ if (message.regex != null && message.hasOwnProperty("regex"))
39793
+ object.regex = message.regex;
39794
+ if (message.message != null && message.hasOwnProperty("message"))
39795
+ object.message = message.message;
39796
+ return object;
39797
+ };
39798
+
39799
+ /**
39800
+ * Converts this DotReplitHint to JSON.
39801
+ * @function toJSON
39802
+ * @memberof api.DotReplitHint
39803
+ * @instance
39804
+ * @returns {Object.<string,*>} JSON object
39805
+ */
39806
+ DotReplitHint.prototype.toJSON = function toJSON() {
39807
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
39808
+ };
39809
+
39810
+ return DotReplitHint;
39811
+ })();
39812
+
39308
39813
  api.GitHubImportConfig = (function() {
39309
39814
 
39310
39815
  /**
39311
39816
  * Properties of a GitHubImportConfig.
39312
39817
  * @memberof api
39313
39818
  * @interface IGitHubImportConfig
39314
- * @property {Array.<string>|null} [RequiredFiles] GitHubImportConfig RequiredFiles
39819
+ * @property {Array.<string>|null} [requiredFiles] GitHubImportConfig requiredFiles
39315
39820
  */
39316
39821
 
39317
39822
  /**
@@ -39322,7 +39827,7 @@
39322
39827
  * @param {api.IGitHubImportConfig=} [properties] Properties to set
39323
39828
  */
39324
39829
  function GitHubImportConfig(properties) {
39325
- this.RequiredFiles = [];
39830
+ this.requiredFiles = [];
39326
39831
  if (properties)
39327
39832
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
39328
39833
  if (properties[keys[i]] != null)
@@ -39330,12 +39835,12 @@
39330
39835
  }
39331
39836
 
39332
39837
  /**
39333
- * GitHubImportConfig RequiredFiles.
39334
- * @member {Array.<string>} RequiredFiles
39838
+ * GitHubImportConfig requiredFiles.
39839
+ * @member {Array.<string>} requiredFiles
39335
39840
  * @memberof api.GitHubImportConfig
39336
39841
  * @instance
39337
39842
  */
39338
- GitHubImportConfig.prototype.RequiredFiles = $util.emptyArray;
39843
+ GitHubImportConfig.prototype.requiredFiles = $util.emptyArray;
39339
39844
 
39340
39845
  /**
39341
39846
  * Creates a new GitHubImportConfig instance using the specified properties.
@@ -39361,9 +39866,9 @@
39361
39866
  GitHubImportConfig.encode = function encode(message, writer) {
39362
39867
  if (!writer)
39363
39868
  writer = $Writer.create();
39364
- if (message.RequiredFiles != null && message.RequiredFiles.length)
39365
- for (var i = 0; i < message.RequiredFiles.length; ++i)
39366
- writer.uint32(/* id 1, wireType 2 =*/10).string(message.RequiredFiles[i]);
39869
+ if (message.requiredFiles != null && message.requiredFiles.length)
39870
+ for (var i = 0; i < message.requiredFiles.length; ++i)
39871
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.requiredFiles[i]);
39367
39872
  return writer;
39368
39873
  };
39369
39874
 
@@ -39399,9 +39904,9 @@
39399
39904
  var tag = reader.uint32();
39400
39905
  switch (tag >>> 3) {
39401
39906
  case 1:
39402
- if (!(message.RequiredFiles && message.RequiredFiles.length))
39403
- message.RequiredFiles = [];
39404
- message.RequiredFiles.push(reader.string());
39907
+ if (!(message.requiredFiles && message.requiredFiles.length))
39908
+ message.requiredFiles = [];
39909
+ message.requiredFiles.push(reader.string());
39405
39910
  break;
39406
39911
  default:
39407
39912
  reader.skipType(tag & 7);
@@ -39438,12 +39943,12 @@
39438
39943
  GitHubImportConfig.verify = function verify(message) {
39439
39944
  if (typeof message !== "object" || message === null)
39440
39945
  return "object expected";
39441
- if (message.RequiredFiles != null && message.hasOwnProperty("RequiredFiles")) {
39442
- if (!Array.isArray(message.RequiredFiles))
39443
- return "RequiredFiles: array expected";
39444
- for (var i = 0; i < message.RequiredFiles.length; ++i)
39445
- if (!$util.isString(message.RequiredFiles[i]))
39446
- return "RequiredFiles: string[] expected";
39946
+ if (message.requiredFiles != null && message.hasOwnProperty("requiredFiles")) {
39947
+ if (!Array.isArray(message.requiredFiles))
39948
+ return "requiredFiles: array expected";
39949
+ for (var i = 0; i < message.requiredFiles.length; ++i)
39950
+ if (!$util.isString(message.requiredFiles[i]))
39951
+ return "requiredFiles: string[] expected";
39447
39952
  }
39448
39953
  return null;
39449
39954
  };
@@ -39460,12 +39965,12 @@
39460
39965
  if (object instanceof $root.api.GitHubImportConfig)
39461
39966
  return object;
39462
39967
  var message = new $root.api.GitHubImportConfig();
39463
- if (object.RequiredFiles) {
39464
- if (!Array.isArray(object.RequiredFiles))
39465
- throw TypeError(".api.GitHubImportConfig.RequiredFiles: array expected");
39466
- message.RequiredFiles = [];
39467
- for (var i = 0; i < object.RequiredFiles.length; ++i)
39468
- message.RequiredFiles[i] = String(object.RequiredFiles[i]);
39968
+ if (object.requiredFiles) {
39969
+ if (!Array.isArray(object.requiredFiles))
39970
+ throw TypeError(".api.GitHubImportConfig.requiredFiles: array expected");
39971
+ message.requiredFiles = [];
39972
+ for (var i = 0; i < object.requiredFiles.length; ++i)
39973
+ message.requiredFiles[i] = String(object.requiredFiles[i]);
39469
39974
  }
39470
39975
  return message;
39471
39976
  };
@@ -39484,11 +39989,11 @@
39484
39989
  options = {};
39485
39990
  var object = {};
39486
39991
  if (options.arrays || options.defaults)
39487
- object.RequiredFiles = [];
39488
- if (message.RequiredFiles && message.RequiredFiles.length) {
39489
- object.RequiredFiles = [];
39490
- for (var j = 0; j < message.RequiredFiles.length; ++j)
39491
- object.RequiredFiles[j] = message.RequiredFiles[j];
39992
+ object.requiredFiles = [];
39993
+ if (message.requiredFiles && message.requiredFiles.length) {
39994
+ object.requiredFiles = [];
39995
+ for (var j = 0; j < message.requiredFiles.length; ++j)
39996
+ object.requiredFiles[j] = message.requiredFiles[j];
39492
39997
  }
39493
39998
  return object;
39494
39999
  };
@@ -41168,6 +41673,7 @@
41168
41673
  * @interface IDotReplitPackagerFeatures
41169
41674
  * @property {boolean|null} [packageSearch] DotReplitPackagerFeatures packageSearch
41170
41675
  * @property {boolean|null} [guessImports] DotReplitPackagerFeatures guessImports
41676
+ * @property {boolean|null} [enabledForHosting] DotReplitPackagerFeatures enabledForHosting
41171
41677
  */
41172
41678
 
41173
41679
  /**
@@ -41200,6 +41706,14 @@
41200
41706
  */
41201
41707
  DotReplitPackagerFeatures.prototype.guessImports = false;
41202
41708
 
41709
+ /**
41710
+ * DotReplitPackagerFeatures enabledForHosting.
41711
+ * @member {boolean} enabledForHosting
41712
+ * @memberof api.DotReplitPackagerFeatures
41713
+ * @instance
41714
+ */
41715
+ DotReplitPackagerFeatures.prototype.enabledForHosting = false;
41716
+
41203
41717
  /**
41204
41718
  * Creates a new DotReplitPackagerFeatures instance using the specified properties.
41205
41719
  * @function create
@@ -41228,6 +41742,8 @@
41228
41742
  writer.uint32(/* id 1, wireType 0 =*/8).bool(message.packageSearch);
41229
41743
  if (message.guessImports != null && Object.hasOwnProperty.call(message, "guessImports"))
41230
41744
  writer.uint32(/* id 2, wireType 0 =*/16).bool(message.guessImports);
41745
+ if (message.enabledForHosting != null && Object.hasOwnProperty.call(message, "enabledForHosting"))
41746
+ writer.uint32(/* id 3, wireType 0 =*/24).bool(message.enabledForHosting);
41231
41747
  return writer;
41232
41748
  };
41233
41749
 
@@ -41268,6 +41784,9 @@
41268
41784
  case 2:
41269
41785
  message.guessImports = reader.bool();
41270
41786
  break;
41787
+ case 3:
41788
+ message.enabledForHosting = reader.bool();
41789
+ break;
41271
41790
  default:
41272
41791
  reader.skipType(tag & 7);
41273
41792
  break;
@@ -41309,6 +41828,9 @@
41309
41828
  if (message.guessImports != null && message.hasOwnProperty("guessImports"))
41310
41829
  if (typeof message.guessImports !== "boolean")
41311
41830
  return "guessImports: boolean expected";
41831
+ if (message.enabledForHosting != null && message.hasOwnProperty("enabledForHosting"))
41832
+ if (typeof message.enabledForHosting !== "boolean")
41833
+ return "enabledForHosting: boolean expected";
41312
41834
  return null;
41313
41835
  };
41314
41836
 
@@ -41328,6 +41850,8 @@
41328
41850
  message.packageSearch = Boolean(object.packageSearch);
41329
41851
  if (object.guessImports != null)
41330
41852
  message.guessImports = Boolean(object.guessImports);
41853
+ if (object.enabledForHosting != null)
41854
+ message.enabledForHosting = Boolean(object.enabledForHosting);
41331
41855
  return message;
41332
41856
  };
41333
41857
 
@@ -41347,11 +41871,14 @@
41347
41871
  if (options.defaults) {
41348
41872
  object.packageSearch = false;
41349
41873
  object.guessImports = false;
41874
+ object.enabledForHosting = false;
41350
41875
  }
41351
41876
  if (message.packageSearch != null && message.hasOwnProperty("packageSearch"))
41352
41877
  object.packageSearch = message.packageSearch;
41353
41878
  if (message.guessImports != null && message.hasOwnProperty("guessImports"))
41354
41879
  object.guessImports = message.guessImports;
41880
+ if (message.enabledForHosting != null && message.hasOwnProperty("enabledForHosting"))
41881
+ object.enabledForHosting = message.enabledForHosting;
41355
41882
  return object;
41356
41883
  };
41357
41884
 
@@ -48116,6 +48643,7 @@
48116
48643
  * @property {string|null} [user] GovalReplIdentity user
48117
48644
  * @property {string|null} [slug] GovalReplIdentity slug
48118
48645
  * @property {string|null} [aud] GovalReplIdentity aud
48646
+ * @property {boolean|null} [ephemeral] GovalReplIdentity ephemeral
48119
48647
  */
48120
48648
 
48121
48649
  /**
@@ -48164,6 +48692,14 @@
48164
48692
  */
48165
48693
  GovalReplIdentity.prototype.aud = "";
48166
48694
 
48695
+ /**
48696
+ * GovalReplIdentity ephemeral.
48697
+ * @member {boolean} ephemeral
48698
+ * @memberof api.GovalReplIdentity
48699
+ * @instance
48700
+ */
48701
+ GovalReplIdentity.prototype.ephemeral = false;
48702
+
48167
48703
  /**
48168
48704
  * Creates a new GovalReplIdentity instance using the specified properties.
48169
48705
  * @function create
@@ -48196,6 +48732,8 @@
48196
48732
  writer.uint32(/* id 3, wireType 2 =*/26).string(message.slug);
48197
48733
  if (message.aud != null && Object.hasOwnProperty.call(message, "aud"))
48198
48734
  writer.uint32(/* id 4, wireType 2 =*/34).string(message.aud);
48735
+ if (message.ephemeral != null && Object.hasOwnProperty.call(message, "ephemeral"))
48736
+ writer.uint32(/* id 5, wireType 0 =*/40).bool(message.ephemeral);
48199
48737
  return writer;
48200
48738
  };
48201
48739
 
@@ -48242,6 +48780,9 @@
48242
48780
  case 4:
48243
48781
  message.aud = reader.string();
48244
48782
  break;
48783
+ case 5:
48784
+ message.ephemeral = reader.bool();
48785
+ break;
48245
48786
  default:
48246
48787
  reader.skipType(tag & 7);
48247
48788
  break;
@@ -48289,6 +48830,9 @@
48289
48830
  if (message.aud != null && message.hasOwnProperty("aud"))
48290
48831
  if (!$util.isString(message.aud))
48291
48832
  return "aud: string expected";
48833
+ if (message.ephemeral != null && message.hasOwnProperty("ephemeral"))
48834
+ if (typeof message.ephemeral !== "boolean")
48835
+ return "ephemeral: boolean expected";
48292
48836
  return null;
48293
48837
  };
48294
48838
 
@@ -48312,6 +48856,8 @@
48312
48856
  message.slug = String(object.slug);
48313
48857
  if (object.aud != null)
48314
48858
  message.aud = String(object.aud);
48859
+ if (object.ephemeral != null)
48860
+ message.ephemeral = Boolean(object.ephemeral);
48315
48861
  return message;
48316
48862
  };
48317
48863
 
@@ -48333,6 +48879,7 @@
48333
48879
  object.user = "";
48334
48880
  object.slug = "";
48335
48881
  object.aud = "";
48882
+ object.ephemeral = false;
48336
48883
  }
48337
48884
  if (message.replid != null && message.hasOwnProperty("replid"))
48338
48885
  object.replid = message.replid;
@@ -48342,6 +48889,8 @@
48342
48889
  object.slug = message.slug;
48343
48890
  if (message.aud != null && message.hasOwnProperty("aud"))
48344
48891
  object.aud = message.aud;
48892
+ if (message.ephemeral != null && message.hasOwnProperty("ephemeral"))
48893
+ object.ephemeral = message.ephemeral;
48345
48894
  return object;
48346
48895
  };
48347
48896