@replit/protocol 0.2.80 → 0.2.82

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
@@ -20158,6 +20158,9 @@ export namespace replit {
20158
20158
 
20159
20159
  /** GovalCommand killRepl */
20160
20160
  killRepl?: (replit.goval.api.KillRepl|replit.goval.api.IKillRepl|null);
20161
+
20162
+ /** GovalCommand updateSourceRepl */
20163
+ updateSourceRepl?: (replit.goval.api.UpdateSourceRepl|replit.goval.api.IUpdateSourceRepl|null);
20161
20164
  }
20162
20165
 
20163
20166
  /** Represents a GovalCommand. */
@@ -20178,8 +20181,11 @@ export namespace replit {
20178
20181
  /** GovalCommand killRepl. */
20179
20182
  public killRepl?: (replit.goval.api.KillRepl|null);
20180
20183
 
20184
+ /** GovalCommand updateSourceRepl. */
20185
+ public updateSourceRepl?: (replit.goval.api.UpdateSourceRepl|null);
20186
+
20181
20187
  /** GovalCommand command. */
20182
- public command?: ("updateMetadata"|"partialUpdateMetadata"|"killRepl");
20188
+ public command?: ("updateMetadata"|"partialUpdateMetadata"|"killRepl"|"updateSourceRepl");
20183
20189
 
20184
20190
  /**
20185
20191
  * Creates a new GovalCommand instance using the specified properties.
@@ -20630,6 +20636,102 @@ export namespace replit {
20630
20636
  public toJSON(): { [k: string]: any };
20631
20637
  }
20632
20638
 
20639
+ /** Properties of an UpdateSourceRepl. */
20640
+ interface IUpdateSourceRepl {
20641
+
20642
+ /** UpdateSourceRepl replId */
20643
+ replId?: (string|null);
20644
+
20645
+ /** UpdateSourceRepl sourceReplId */
20646
+ sourceReplId?: (string|null);
20647
+ }
20648
+
20649
+ /** Represents an UpdateSourceRepl. */
20650
+ class UpdateSourceRepl {
20651
+
20652
+ /**
20653
+ * Constructs a new UpdateSourceRepl.
20654
+ * @param [properties] Properties to set
20655
+ */
20656
+ private constructor(properties?: replit.goval.api.IUpdateSourceRepl);
20657
+
20658
+ /** UpdateSourceRepl replId. */
20659
+ public replId: string;
20660
+
20661
+ /** UpdateSourceRepl sourceReplId. */
20662
+ public sourceReplId: string;
20663
+
20664
+ /**
20665
+ * Creates a new UpdateSourceRepl instance using the specified properties.
20666
+ * @param [properties] Properties to set
20667
+ * @returns UpdateSourceRepl instance
20668
+ */
20669
+ public static create(properties?: replit.goval.api.IUpdateSourceRepl): replit.goval.api.UpdateSourceRepl;
20670
+
20671
+ /**
20672
+ * Encodes the specified UpdateSourceRepl message. Does not implicitly {@link replit.goval.api.UpdateSourceRepl.verify|verify} messages.
20673
+ * @param message UpdateSourceRepl message or plain object to encode
20674
+ * @param [writer] Writer to encode to
20675
+ * @returns Writer
20676
+ */
20677
+ public static encode(message: replit.goval.api.UpdateSourceRepl, writer?: $protobuf.Writer): $protobuf.Writer;
20678
+
20679
+ /**
20680
+ * Encodes the specified UpdateSourceRepl message, length delimited. Does not implicitly {@link replit.goval.api.UpdateSourceRepl.verify|verify} messages.
20681
+ * @param message UpdateSourceRepl message or plain object to encode
20682
+ * @param [writer] Writer to encode to
20683
+ * @returns Writer
20684
+ */
20685
+ public static encodeDelimited(message: replit.goval.api.UpdateSourceRepl, writer?: $protobuf.Writer): $protobuf.Writer;
20686
+
20687
+ /**
20688
+ * Decodes an UpdateSourceRepl message from the specified reader or buffer.
20689
+ * @param reader Reader or buffer to decode from
20690
+ * @param [length] Message length if known beforehand
20691
+ * @returns UpdateSourceRepl
20692
+ * @throws {Error} If the payload is not a reader or valid buffer
20693
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
20694
+ */
20695
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): replit.goval.api.UpdateSourceRepl;
20696
+
20697
+ /**
20698
+ * Decodes an UpdateSourceRepl message from the specified reader or buffer, length delimited.
20699
+ * @param reader Reader or buffer to decode from
20700
+ * @returns UpdateSourceRepl
20701
+ * @throws {Error} If the payload is not a reader or valid buffer
20702
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
20703
+ */
20704
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): replit.goval.api.UpdateSourceRepl;
20705
+
20706
+ /**
20707
+ * Verifies an UpdateSourceRepl message.
20708
+ * @param message Plain object to verify
20709
+ * @returns `null` if valid, otherwise the reason why it is not
20710
+ */
20711
+ public static verify(message: { [k: string]: any }): (string|null);
20712
+
20713
+ /**
20714
+ * Creates an UpdateSourceRepl message from a plain object. Also converts values to their respective internal types.
20715
+ * @param object Plain object
20716
+ * @returns UpdateSourceRepl
20717
+ */
20718
+ public static fromObject(object: { [k: string]: any }): replit.goval.api.UpdateSourceRepl;
20719
+
20720
+ /**
20721
+ * Creates a plain object from an UpdateSourceRepl message. Also converts values to other types if specified.
20722
+ * @param message UpdateSourceRepl
20723
+ * @param [options] Conversion options
20724
+ * @returns Plain object
20725
+ */
20726
+ public static toObject(message: replit.goval.api.UpdateSourceRepl, options?: $protobuf.IConversionOptions): { [k: string]: any };
20727
+
20728
+ /**
20729
+ * Converts this UpdateSourceRepl to JSON.
20730
+ * @returns JSON object
20731
+ */
20732
+ public toJSON(): { [k: string]: any };
20733
+ }
20734
+
20633
20735
  /** Namespace features. */
20634
20736
  namespace features {
20635
20737
 
@@ -21272,7 +21374,8 @@ export namespace replit {
21272
21374
  enum Persistence {
21273
21375
  PERSISTENT = 0,
21274
21376
  EPHEMERAL = 1,
21275
- NONE = 2
21377
+ NONE = 2,
21378
+ READ_ONLY = 3
21276
21379
  }
21277
21380
 
21278
21381
  /** Properties of a Metadata. */
package/main/index.js CHANGED
@@ -45553,6 +45553,7 @@
45553
45553
  case 0:
45554
45554
  case 1:
45555
45555
  case 2:
45556
+ case 3:
45556
45557
  break;
45557
45558
  }
45558
45559
  if (message.repl != null && message.hasOwnProperty("repl")) {
@@ -45664,6 +45665,10 @@
45664
45665
  case 2:
45665
45666
  message.persistence = 2;
45666
45667
  break;
45668
+ case "READ_ONLY":
45669
+ case 3:
45670
+ message.persistence = 3;
45671
+ break;
45667
45672
  }
45668
45673
  if (object.repl != null) {
45669
45674
  if (typeof object.repl !== "object")
@@ -50308,6 +50313,7 @@
50308
50313
  * @property {replit.goval.api.repl.Metadata|replit.goval.api.repl.IMetadata|null} [updateMetadata] GovalCommand updateMetadata
50309
50314
  * @property {replit.goval.api.PartialUpdateMetadata|replit.goval.api.IPartialUpdateMetadata|null} [partialUpdateMetadata] GovalCommand partialUpdateMetadata
50310
50315
  * @property {replit.goval.api.KillRepl|replit.goval.api.IKillRepl|null} [killRepl] GovalCommand killRepl
50316
+ * @property {replit.goval.api.UpdateSourceRepl|replit.goval.api.IUpdateSourceRepl|null} [updateSourceRepl] GovalCommand updateSourceRepl
50311
50317
  */
50312
50318
 
50313
50319
  /**
@@ -50348,17 +50354,25 @@
50348
50354
  */
50349
50355
  GovalCommand.prototype.killRepl = null;
50350
50356
 
50357
+ /**
50358
+ * GovalCommand updateSourceRepl.
50359
+ * @member {replit.goval.api.UpdateSourceRepl|null|undefined} updateSourceRepl
50360
+ * @memberof replit.goval.api.GovalCommand
50361
+ * @instance
50362
+ */
50363
+ GovalCommand.prototype.updateSourceRepl = null;
50364
+
50351
50365
  // OneOf field names bound to virtual getters and setters
50352
50366
  var $oneOfFields;
50353
50367
 
50354
50368
  /**
50355
50369
  * GovalCommand command.
50356
- * @member {"updateMetadata"|"partialUpdateMetadata"|"killRepl"|undefined} command
50370
+ * @member {"updateMetadata"|"partialUpdateMetadata"|"killRepl"|"updateSourceRepl"|undefined} command
50357
50371
  * @memberof replit.goval.api.GovalCommand
50358
50372
  * @instance
50359
50373
  */
50360
50374
  Object.defineProperty(GovalCommand.prototype, "command", {
50361
- get: $util.oneOfGetter($oneOfFields = ["updateMetadata", "partialUpdateMetadata", "killRepl"]),
50375
+ get: $util.oneOfGetter($oneOfFields = ["updateMetadata", "partialUpdateMetadata", "killRepl", "updateSourceRepl"]),
50362
50376
  set: $util.oneOfSetter($oneOfFields)
50363
50377
  });
50364
50378
 
@@ -50392,6 +50406,8 @@
50392
50406
  $root.replit.goval.api.PartialUpdateMetadata.encode(message.partialUpdateMetadata, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
50393
50407
  if (message.killRepl != null && Object.hasOwnProperty.call(message, "killRepl"))
50394
50408
  $root.replit.goval.api.KillRepl.encode(message.killRepl, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
50409
+ if (message.updateSourceRepl != null && Object.hasOwnProperty.call(message, "updateSourceRepl"))
50410
+ $root.replit.goval.api.UpdateSourceRepl.encode(message.updateSourceRepl, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
50395
50411
  return writer;
50396
50412
  };
50397
50413
 
@@ -50435,6 +50451,9 @@
50435
50451
  case 3:
50436
50452
  message.killRepl = $root.replit.goval.api.KillRepl.decode(reader, reader.uint32());
50437
50453
  break;
50454
+ case 4:
50455
+ message.updateSourceRepl = $root.replit.goval.api.UpdateSourceRepl.decode(reader, reader.uint32());
50456
+ break;
50438
50457
  default:
50439
50458
  reader.skipType(tag & 7);
50440
50459
  break;
@@ -50499,6 +50518,16 @@
50499
50518
  return "killRepl." + error;
50500
50519
  }
50501
50520
  }
50521
+ if (message.updateSourceRepl != null && message.hasOwnProperty("updateSourceRepl")) {
50522
+ if (properties.command === 1)
50523
+ return "command: multiple values";
50524
+ properties.command = 1;
50525
+ {
50526
+ var error = $root.replit.goval.api.UpdateSourceRepl.verify(message.updateSourceRepl);
50527
+ if (error)
50528
+ return "updateSourceRepl." + error;
50529
+ }
50530
+ }
50502
50531
  return null;
50503
50532
  };
50504
50533
 
@@ -50529,6 +50558,11 @@
50529
50558
  throw TypeError(".replit.goval.api.GovalCommand.killRepl: object expected");
50530
50559
  message.killRepl = $root.replit.goval.api.KillRepl.fromObject(object.killRepl);
50531
50560
  }
50561
+ if (object.updateSourceRepl != null) {
50562
+ if (typeof object.updateSourceRepl !== "object")
50563
+ throw TypeError(".replit.goval.api.GovalCommand.updateSourceRepl: object expected");
50564
+ message.updateSourceRepl = $root.replit.goval.api.UpdateSourceRepl.fromObject(object.updateSourceRepl);
50565
+ }
50532
50566
  return message;
50533
50567
  };
50534
50568
 
@@ -50560,6 +50594,11 @@
50560
50594
  if (options.oneofs)
50561
50595
  object.command = "killRepl";
50562
50596
  }
50597
+ if (message.updateSourceRepl != null && message.hasOwnProperty("updateSourceRepl")) {
50598
+ object.updateSourceRepl = $root.replit.goval.api.UpdateSourceRepl.toObject(message.updateSourceRepl, options);
50599
+ if (options.oneofs)
50600
+ object.command = "updateSourceRepl";
50601
+ }
50563
50602
  return object;
50564
50603
  };
50565
50604
 
@@ -51421,6 +51460,215 @@
51421
51460
  return Restore;
51422
51461
  })();
51423
51462
 
51463
+ api.UpdateSourceRepl = (function() {
51464
+
51465
+ /**
51466
+ * Properties of an UpdateSourceRepl.
51467
+ * @memberof replit.goval.api
51468
+ * @interface IUpdateSourceRepl
51469
+ * @property {string|null} [replId] UpdateSourceRepl replId
51470
+ * @property {string|null} [sourceReplId] UpdateSourceRepl sourceReplId
51471
+ */
51472
+
51473
+ /**
51474
+ * Constructs a new UpdateSourceRepl.
51475
+ * @memberof replit.goval.api
51476
+ * @classdesc Represents an UpdateSourceRepl.
51477
+ * @constructor
51478
+ * @param {replit.goval.api.IUpdateSourceRepl=} [properties] Properties to set
51479
+ */
51480
+ function UpdateSourceRepl(properties) {
51481
+ if (properties)
51482
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
51483
+ if (properties[keys[i]] != null)
51484
+ this[keys[i]] = properties[keys[i]];
51485
+ }
51486
+
51487
+ /**
51488
+ * UpdateSourceRepl replId.
51489
+ * @member {string} replId
51490
+ * @memberof replit.goval.api.UpdateSourceRepl
51491
+ * @instance
51492
+ */
51493
+ UpdateSourceRepl.prototype.replId = "";
51494
+
51495
+ /**
51496
+ * UpdateSourceRepl sourceReplId.
51497
+ * @member {string} sourceReplId
51498
+ * @memberof replit.goval.api.UpdateSourceRepl
51499
+ * @instance
51500
+ */
51501
+ UpdateSourceRepl.prototype.sourceReplId = "";
51502
+
51503
+ /**
51504
+ * Creates a new UpdateSourceRepl instance using the specified properties.
51505
+ * @function create
51506
+ * @memberof replit.goval.api.UpdateSourceRepl
51507
+ * @static
51508
+ * @param {replit.goval.api.IUpdateSourceRepl=} [properties] Properties to set
51509
+ * @returns {replit.goval.api.UpdateSourceRepl} UpdateSourceRepl instance
51510
+ */
51511
+ UpdateSourceRepl.create = function create(properties) {
51512
+ return UpdateSourceRepl.fromObject(properties);
51513
+ };
51514
+
51515
+ /**
51516
+ * Encodes the specified UpdateSourceRepl message. Does not implicitly {@link replit.goval.api.UpdateSourceRepl.verify|verify} messages.
51517
+ * @function encode
51518
+ * @memberof replit.goval.api.UpdateSourceRepl
51519
+ * @static
51520
+ * @param {replit.goval.api.UpdateSourceRepl} message UpdateSourceRepl message or plain object to encode
51521
+ * @param {$protobuf.Writer} [writer] Writer to encode to
51522
+ * @returns {$protobuf.Writer} Writer
51523
+ */
51524
+ UpdateSourceRepl.encode = function encode(message, writer) {
51525
+ if (!writer)
51526
+ writer = $Writer.create();
51527
+ if (message.replId != null && Object.hasOwnProperty.call(message, "replId"))
51528
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.replId);
51529
+ if (message.sourceReplId != null && Object.hasOwnProperty.call(message, "sourceReplId"))
51530
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.sourceReplId);
51531
+ return writer;
51532
+ };
51533
+
51534
+ /**
51535
+ * Encodes the specified UpdateSourceRepl message, length delimited. Does not implicitly {@link replit.goval.api.UpdateSourceRepl.verify|verify} messages.
51536
+ * @function encodeDelimited
51537
+ * @memberof replit.goval.api.UpdateSourceRepl
51538
+ * @static
51539
+ * @param {replit.goval.api.UpdateSourceRepl} message UpdateSourceRepl message or plain object to encode
51540
+ * @param {$protobuf.Writer} [writer] Writer to encode to
51541
+ * @returns {$protobuf.Writer} Writer
51542
+ */
51543
+ UpdateSourceRepl.encodeDelimited = function encodeDelimited(message, writer) {
51544
+ return this.encode(message, writer).ldelim();
51545
+ };
51546
+
51547
+ /**
51548
+ * Decodes an UpdateSourceRepl message from the specified reader or buffer.
51549
+ * @function decode
51550
+ * @memberof replit.goval.api.UpdateSourceRepl
51551
+ * @static
51552
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
51553
+ * @param {number} [length] Message length if known beforehand
51554
+ * @returns {replit.goval.api.UpdateSourceRepl} UpdateSourceRepl
51555
+ * @throws {Error} If the payload is not a reader or valid buffer
51556
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
51557
+ */
51558
+ UpdateSourceRepl.decode = function decode(reader, length) {
51559
+ if (!(reader instanceof $Reader))
51560
+ reader = $Reader.create(reader);
51561
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.UpdateSourceRepl();
51562
+ while (reader.pos < end) {
51563
+ var tag = reader.uint32();
51564
+ switch (tag >>> 3) {
51565
+ case 1:
51566
+ message.replId = reader.string();
51567
+ break;
51568
+ case 2:
51569
+ message.sourceReplId = reader.string();
51570
+ break;
51571
+ default:
51572
+ reader.skipType(tag & 7);
51573
+ break;
51574
+ }
51575
+ }
51576
+ return message;
51577
+ };
51578
+
51579
+ /**
51580
+ * Decodes an UpdateSourceRepl message from the specified reader or buffer, length delimited.
51581
+ * @function decodeDelimited
51582
+ * @memberof replit.goval.api.UpdateSourceRepl
51583
+ * @static
51584
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
51585
+ * @returns {replit.goval.api.UpdateSourceRepl} UpdateSourceRepl
51586
+ * @throws {Error} If the payload is not a reader or valid buffer
51587
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
51588
+ */
51589
+ UpdateSourceRepl.decodeDelimited = function decodeDelimited(reader) {
51590
+ if (!(reader instanceof $Reader))
51591
+ reader = new $Reader(reader);
51592
+ return this.decode(reader, reader.uint32());
51593
+ };
51594
+
51595
+ /**
51596
+ * Verifies an UpdateSourceRepl message.
51597
+ * @function verify
51598
+ * @memberof replit.goval.api.UpdateSourceRepl
51599
+ * @static
51600
+ * @param {Object.<string,*>} message Plain object to verify
51601
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
51602
+ */
51603
+ UpdateSourceRepl.verify = function verify(message) {
51604
+ if (typeof message !== "object" || message === null)
51605
+ return "object expected";
51606
+ if (message.replId != null && message.hasOwnProperty("replId"))
51607
+ if (!$util.isString(message.replId))
51608
+ return "replId: string expected";
51609
+ if (message.sourceReplId != null && message.hasOwnProperty("sourceReplId"))
51610
+ if (!$util.isString(message.sourceReplId))
51611
+ return "sourceReplId: string expected";
51612
+ return null;
51613
+ };
51614
+
51615
+ /**
51616
+ * Creates an UpdateSourceRepl message from a plain object. Also converts values to their respective internal types.
51617
+ * @function fromObject
51618
+ * @memberof replit.goval.api.UpdateSourceRepl
51619
+ * @static
51620
+ * @param {Object.<string,*>} object Plain object
51621
+ * @returns {replit.goval.api.UpdateSourceRepl} UpdateSourceRepl
51622
+ */
51623
+ UpdateSourceRepl.fromObject = function fromObject(object) {
51624
+ if (object instanceof $root.replit.goval.api.UpdateSourceRepl)
51625
+ return object;
51626
+ var message = new $root.replit.goval.api.UpdateSourceRepl();
51627
+ if (object.replId != null)
51628
+ message.replId = String(object.replId);
51629
+ if (object.sourceReplId != null)
51630
+ message.sourceReplId = String(object.sourceReplId);
51631
+ return message;
51632
+ };
51633
+
51634
+ /**
51635
+ * Creates a plain object from an UpdateSourceRepl message. Also converts values to other types if specified.
51636
+ * @function toObject
51637
+ * @memberof replit.goval.api.UpdateSourceRepl
51638
+ * @static
51639
+ * @param {replit.goval.api.UpdateSourceRepl} message UpdateSourceRepl
51640
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
51641
+ * @returns {Object.<string,*>} Plain object
51642
+ */
51643
+ UpdateSourceRepl.toObject = function toObject(message, options) {
51644
+ if (!options)
51645
+ options = {};
51646
+ var object = {};
51647
+ if (options.defaults) {
51648
+ object.replId = "";
51649
+ object.sourceReplId = "";
51650
+ }
51651
+ if (message.replId != null && message.hasOwnProperty("replId"))
51652
+ object.replId = message.replId;
51653
+ if (message.sourceReplId != null && message.hasOwnProperty("sourceReplId"))
51654
+ object.sourceReplId = message.sourceReplId;
51655
+ return object;
51656
+ };
51657
+
51658
+ /**
51659
+ * Converts this UpdateSourceRepl to JSON.
51660
+ * @function toJSON
51661
+ * @memberof replit.goval.api.UpdateSourceRepl
51662
+ * @instance
51663
+ * @returns {Object.<string,*>} JSON object
51664
+ */
51665
+ UpdateSourceRepl.prototype.toJSON = function toJSON() {
51666
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
51667
+ };
51668
+
51669
+ return UpdateSourceRepl;
51670
+ })();
51671
+
51424
51672
  api.features = (function() {
51425
51673
 
51426
51674
  /**
@@ -52942,12 +53190,14 @@
52942
53190
  * @property {number} PERSISTENT=0 PERSISTENT value
52943
53191
  * @property {number} EPHEMERAL=1 EPHEMERAL value
52944
53192
  * @property {number} NONE=2 NONE value
53193
+ * @property {number} READ_ONLY=3 READ_ONLY value
52945
53194
  */
52946
53195
  repl.Persistence = (function() {
52947
53196
  var valuesById = {}, values = Object.create(valuesById);
52948
53197
  values[valuesById[0] = "PERSISTENT"] = 0;
52949
53198
  values[valuesById[1] = "EPHEMERAL"] = 1;
52950
53199
  values[valuesById[2] = "NONE"] = 2;
53200
+ values[valuesById[3] = "READ_ONLY"] = 3;
52951
53201
  return values;
52952
53202
  })();
52953
53203
 
@@ -53175,6 +53425,7 @@
53175
53425
  case 0:
53176
53426
  case 1:
53177
53427
  case 2:
53428
+ case 3:
53178
53429
  break;
53179
53430
  }
53180
53431
  if (message.flags != null && message.hasOwnProperty("flags")) {
@@ -53236,6 +53487,10 @@
53236
53487
  case 2:
53237
53488
  message.persistence = 2;
53238
53489
  break;
53490
+ case "READ_ONLY":
53491
+ case 3:
53492
+ message.persistence = 3;
53493
+ break;
53239
53494
  }
53240
53495
  if (object.flags) {
53241
53496
  if (!Array.isArray(object.flags))
@@ -215,6 +215,7 @@ declare var npm$namespace$replit$goval$api: {|
215
215
  IMultiGovalCommand: Class<replit$goval$api$IMultiGovalCommand>,
216
216
  IKillRepl: Class<replit$goval$api$IKillRepl>,
217
217
  IRestore: Class<replit$goval$api$IRestore>,
218
+ IUpdateSourceRepl: Class<replit$goval$api$IUpdateSourceRepl>,
218
219
  Command: typeof replit$goval$api$Command,
219
220
  NixPackageAddRequest: typeof replit$goval$api$NixPackageAddRequest,
220
221
  NixPackageAddResponse: typeof replit$goval$api$NixPackageAddResponse,
@@ -409,6 +410,7 @@ declare var npm$namespace$replit$goval$api: {|
409
410
  MultiGovalCommand: typeof replit$goval$api$MultiGovalCommand,
410
411
  KillRepl: typeof replit$goval$api$KillRepl,
411
412
  Restore: typeof replit$goval$api$Restore,
413
+ UpdateSourceRepl: typeof replit$goval$api$UpdateSourceRepl,
412
414
  features: typeof npm$namespace$replit$goval$api$features,
413
415
  repl: typeof npm$namespace$replit$goval$api$repl,
414
416
  |};
@@ -28714,6 +28716,14 @@ declare type replit$goval$api$IGovalCommand = {|
28714
28716
  * GovalCommand killRepl
28715
28717
  */
28716
28718
  killRepl?: replit$goval$api$KillRepl | replit$goval$api$IKillRepl | null,
28719
+
28720
+ /**
28721
+ * GovalCommand updateSourceRepl
28722
+ */
28723
+ updateSourceRepl?:
28724
+ | replit$goval$api$UpdateSourceRepl
28725
+ | replit$goval$api$IUpdateSourceRepl
28726
+ | null,
28717
28727
  |};
28718
28728
 
28719
28729
  /**
@@ -28741,10 +28751,19 @@ declare class replit$goval$api$GovalCommand {
28741
28751
  */
28742
28752
  killRepl?: replit$goval$api$KillRepl | null;
28743
28753
 
28754
+ /**
28755
+ * GovalCommand updateSourceRepl.
28756
+ */
28757
+ updateSourceRepl?: replit$goval$api$UpdateSourceRepl | null;
28758
+
28744
28759
  /**
28745
28760
  * GovalCommand command.
28746
28761
  */
28747
- command?: "updateMetadata" | "partialUpdateMetadata" | "killRepl";
28762
+ command?:
28763
+ | "updateMetadata"
28764
+ | "partialUpdateMetadata"
28765
+ | "killRepl"
28766
+ | "updateSourceRepl";
28748
28767
 
28749
28768
  /**
28750
28769
  * Creates a new GovalCommand instance using the specified properties.
@@ -29356,6 +29375,136 @@ declare class replit$goval$api$Restore {
29356
29375
  |};
29357
29376
  }
29358
29377
 
29378
+ /**
29379
+ * Properties of an UpdateSourceRepl.
29380
+ */
29381
+ declare type replit$goval$api$IUpdateSourceRepl = {|
29382
+ /**
29383
+ * UpdateSourceRepl replId
29384
+ */
29385
+ replId?: string | null,
29386
+
29387
+ /**
29388
+ * UpdateSourceRepl sourceReplId
29389
+ */
29390
+ sourceReplId?: string | null,
29391
+ |};
29392
+
29393
+ /**
29394
+ * Represents an UpdateSourceRepl.
29395
+ */
29396
+ declare class replit$goval$api$UpdateSourceRepl {
29397
+ /**
29398
+ * Constructs a new UpdateSourceRepl.
29399
+ * @param [properties] Properties to set
29400
+ */
29401
+ constructor(properties?: replit$goval$api$IUpdateSourceRepl): this;
29402
+
29403
+ /**
29404
+ * UpdateSourceRepl replId.
29405
+ */
29406
+ replId: string;
29407
+
29408
+ /**
29409
+ * UpdateSourceRepl sourceReplId.
29410
+ */
29411
+ sourceReplId: string;
29412
+
29413
+ /**
29414
+ * Creates a new UpdateSourceRepl instance using the specified properties.
29415
+ * @param [properties] Properties to set
29416
+ * @returns UpdateSourceRepl instance
29417
+ */
29418
+ static create(
29419
+ properties?: replit$goval$api$IUpdateSourceRepl
29420
+ ): replit$goval$api$UpdateSourceRepl;
29421
+
29422
+ /**
29423
+ * [object Object],[object Object],[object Object]
29424
+ * @param message UpdateSourceRepl message or plain object to encode
29425
+ * @param [writer] Writer to encode to
29426
+ * @returns Writer
29427
+ */
29428
+ static encode(
29429
+ message: replit$goval$api$UpdateSourceRepl,
29430
+ writer?: $protobuf.Writer
29431
+ ): $protobuf.Writer;
29432
+
29433
+ /**
29434
+ * [object Object],[object Object],[object Object]
29435
+ * @param message UpdateSourceRepl message or plain object to encode
29436
+ * @param [writer] Writer to encode to
29437
+ * @returns Writer
29438
+ */
29439
+ static encodeDelimited(
29440
+ message: replit$goval$api$UpdateSourceRepl,
29441
+ writer?: $protobuf.Writer
29442
+ ): $protobuf.Writer;
29443
+
29444
+ /**
29445
+ * Decodes an UpdateSourceRepl message from the specified reader or buffer.
29446
+ * @param reader Reader or buffer to decode from
29447
+ * @param [length] Message length if known beforehand
29448
+ * @returns UpdateSourceRepl
29449
+ * @throws {Error} If the payload is not a reader or valid buffer
29450
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
29451
+ */
29452
+ static decode(
29453
+ reader: $protobuf.Reader | Uint8Array,
29454
+ length?: number
29455
+ ): replit$goval$api$UpdateSourceRepl;
29456
+
29457
+ /**
29458
+ * Decodes an UpdateSourceRepl message from the specified reader or buffer, length delimited.
29459
+ * @param reader Reader or buffer to decode from
29460
+ * @returns UpdateSourceRepl
29461
+ * @throws {Error} If the payload is not a reader or valid buffer
29462
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
29463
+ */
29464
+ static decodeDelimited(
29465
+ reader: $protobuf.Reader | Uint8Array
29466
+ ): replit$goval$api$UpdateSourceRepl;
29467
+
29468
+ /**
29469
+ * Verifies an UpdateSourceRepl message.
29470
+ * @param message Plain object to verify
29471
+ * @returns `null` if valid, otherwise the reason why it is not
29472
+ */
29473
+ static verify(message: {|
29474
+ [k: string]: any,
29475
+ |}): string | null;
29476
+
29477
+ /**
29478
+ * Creates an UpdateSourceRepl message from a plain object. Also converts values to their respective internal types.
29479
+ * @param object Plain object
29480
+ * @returns UpdateSourceRepl
29481
+ */
29482
+ static fromObject(object: {|
29483
+ [k: string]: any,
29484
+ |}): replit$goval$api$UpdateSourceRepl;
29485
+
29486
+ /**
29487
+ * Creates a plain object from an UpdateSourceRepl message. Also converts values to other types if specified.
29488
+ * @param message UpdateSourceRepl
29489
+ * @param [options] Conversion options
29490
+ * @returns Plain object
29491
+ */
29492
+ static toObject(
29493
+ message: replit$goval$api$UpdateSourceRepl,
29494
+ options?: $protobuf.IConversionOptions
29495
+ ): {|
29496
+ [k: string]: any,
29497
+ |};
29498
+
29499
+ /**
29500
+ * Converts this UpdateSourceRepl to JSON.
29501
+ * @returns JSON object
29502
+ */
29503
+ toJSON(): {|
29504
+ [k: string]: any,
29505
+ |};
29506
+ }
29507
+
29359
29508
  declare var npm$namespace$replit$goval$api$features: {|
29360
29509
  IGpu: Class<replit$goval$api$features$IGpu>,
29361
29510
  IBoosted: Class<replit$goval$api$features$IBoosted>,
@@ -30256,6 +30405,7 @@ declare var replit$goval$api$repl$Persistence: {|
30256
30405
  +PERSISTENT: 0, // 0
30257
30406
  +EPHEMERAL: 1, // 1
30258
30407
  +NONE: 2, // 2
30408
+ +READ_ONLY: 3, // 3
30259
30409
  |};
30260
30410
 
30261
30411
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@replit/protocol",
3
- "version": "0.2.80",
3
+ "version": "0.2.82",
4
4
  "description": "JavaScript bindings for the Replit protocol",
5
5
  "main": "main/index.js",
6
6
  "repository": "https://github.com/replit/protocol",