@replit/protocol 0.2.77 → 0.2.78

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/gen.sh CHANGED
@@ -47,8 +47,7 @@ flowgen \
47
47
 
48
48
  if [ "$MODE" = "fix" ]; then
49
49
  sed -i.bak 's/declare var replit: typeof npm\$namespace\$replit;/export var replit = npm$namespace$replit;/' "${TARGET}.js.flow"
50
- rm -f "${TARGET}.js.flow.bak"
51
-
50
+ sed -i.bak 's/declare var google: typeof npm\$namespace\$google;/export var google = npm$namespace$google;/' "${TARGET}.js.flow"
52
51
  sed -i.bak 's/declare export { api };/export var api = npm$namespace$replit$goval$api;/' "${TARGET}.js.flow"
53
52
  rm -f "${TARGET}.js.flow.bak"
54
53
  fi
package/main/index.d.ts CHANGED
@@ -19730,6 +19730,9 @@ export namespace replit {
19730
19730
  /** LoreCommand govalCommand */
19731
19731
  govalCommand?: (replit.goval.api.GovalCommand|replit.goval.api.IGovalCommand|null);
19732
19732
 
19733
+ /** LoreCommand multiGovalCommand */
19734
+ multiGovalCommand?: (replit.goval.api.MultiGovalCommand|replit.goval.api.IMultiGovalCommand|null);
19735
+
19733
19736
  /** LoreCommand restore */
19734
19737
  restore?: (replit.goval.api.Restore|replit.goval.api.IRestore|null);
19735
19738
  }
@@ -19752,11 +19755,14 @@ export namespace replit {
19752
19755
  /** LoreCommand govalCommand. */
19753
19756
  public govalCommand?: (replit.goval.api.GovalCommand|null);
19754
19757
 
19758
+ /** LoreCommand multiGovalCommand. */
19759
+ public multiGovalCommand?: (replit.goval.api.MultiGovalCommand|null);
19760
+
19755
19761
  /** LoreCommand restore. */
19756
19762
  public restore?: (replit.goval.api.Restore|null);
19757
19763
 
19758
19764
  /** LoreCommand command. */
19759
- public command?: ("clusterTransfer"|"softTakedown"|"govalCommand"|"restore");
19765
+ public command?: ("clusterTransfer"|"softTakedown"|"govalCommand"|"multiGovalCommand"|"restore");
19760
19766
 
19761
19767
  /**
19762
19768
  * Creates a new LoreCommand instance using the specified properties.
@@ -20041,6 +20047,9 @@ export namespace replit {
20041
20047
 
20042
20048
  /** GovalCommand partialUpdateMetadata */
20043
20049
  partialUpdateMetadata?: (replit.goval.api.PartialUpdateMetadata|replit.goval.api.IPartialUpdateMetadata|null);
20050
+
20051
+ /** GovalCommand killRepl */
20052
+ killRepl?: (replit.goval.api.KillRepl|replit.goval.api.IKillRepl|null);
20044
20053
  }
20045
20054
 
20046
20055
  /** Represents a GovalCommand. */
@@ -20058,8 +20067,11 @@ export namespace replit {
20058
20067
  /** GovalCommand partialUpdateMetadata. */
20059
20068
  public partialUpdateMetadata?: (replit.goval.api.PartialUpdateMetadata|null);
20060
20069
 
20070
+ /** GovalCommand killRepl. */
20071
+ public killRepl?: (replit.goval.api.KillRepl|null);
20072
+
20061
20073
  /** GovalCommand command. */
20062
- public command?: ("updateMetadata"|"partialUpdateMetadata");
20074
+ public command?: ("updateMetadata"|"partialUpdateMetadata"|"killRepl");
20063
20075
 
20064
20076
  /**
20065
20077
  * Creates a new GovalCommand instance using the specified properties.
@@ -20228,6 +20240,192 @@ export namespace replit {
20228
20240
  public toJSON(): { [k: string]: any };
20229
20241
  }
20230
20242
 
20243
+ /** Properties of a MultiGovalCommand. */
20244
+ interface IMultiGovalCommand {
20245
+
20246
+ /** MultiGovalCommand replId */
20247
+ replId?: (string|null);
20248
+
20249
+ /** MultiGovalCommand govalCommands */
20250
+ govalCommands?: ((replit.goval.api.GovalCommand|replit.goval.api.IGovalCommand)[]|null);
20251
+ }
20252
+
20253
+ /** Represents a MultiGovalCommand. */
20254
+ class MultiGovalCommand {
20255
+
20256
+ /**
20257
+ * Constructs a new MultiGovalCommand.
20258
+ * @param [properties] Properties to set
20259
+ */
20260
+ private constructor(properties?: replit.goval.api.IMultiGovalCommand);
20261
+
20262
+ /** MultiGovalCommand replId. */
20263
+ public replId: string;
20264
+
20265
+ /** MultiGovalCommand govalCommands. */
20266
+ public govalCommands: replit.goval.api.GovalCommand[];
20267
+
20268
+ /**
20269
+ * Creates a new MultiGovalCommand instance using the specified properties.
20270
+ * @param [properties] Properties to set
20271
+ * @returns MultiGovalCommand instance
20272
+ */
20273
+ public static create(properties?: replit.goval.api.IMultiGovalCommand): replit.goval.api.MultiGovalCommand;
20274
+
20275
+ /**
20276
+ * Encodes the specified MultiGovalCommand message. Does not implicitly {@link replit.goval.api.MultiGovalCommand.verify|verify} messages.
20277
+ * @param message MultiGovalCommand message or plain object to encode
20278
+ * @param [writer] Writer to encode to
20279
+ * @returns Writer
20280
+ */
20281
+ public static encode(message: replit.goval.api.MultiGovalCommand, writer?: $protobuf.Writer): $protobuf.Writer;
20282
+
20283
+ /**
20284
+ * Encodes the specified MultiGovalCommand message, length delimited. Does not implicitly {@link replit.goval.api.MultiGovalCommand.verify|verify} messages.
20285
+ * @param message MultiGovalCommand message or plain object to encode
20286
+ * @param [writer] Writer to encode to
20287
+ * @returns Writer
20288
+ */
20289
+ public static encodeDelimited(message: replit.goval.api.MultiGovalCommand, writer?: $protobuf.Writer): $protobuf.Writer;
20290
+
20291
+ /**
20292
+ * Decodes a MultiGovalCommand message from the specified reader or buffer.
20293
+ * @param reader Reader or buffer to decode from
20294
+ * @param [length] Message length if known beforehand
20295
+ * @returns MultiGovalCommand
20296
+ * @throws {Error} If the payload is not a reader or valid buffer
20297
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
20298
+ */
20299
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): replit.goval.api.MultiGovalCommand;
20300
+
20301
+ /**
20302
+ * Decodes a MultiGovalCommand message from the specified reader or buffer, length delimited.
20303
+ * @param reader Reader or buffer to decode from
20304
+ * @returns MultiGovalCommand
20305
+ * @throws {Error} If the payload is not a reader or valid buffer
20306
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
20307
+ */
20308
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): replit.goval.api.MultiGovalCommand;
20309
+
20310
+ /**
20311
+ * Verifies a MultiGovalCommand message.
20312
+ * @param message Plain object to verify
20313
+ * @returns `null` if valid, otherwise the reason why it is not
20314
+ */
20315
+ public static verify(message: { [k: string]: any }): (string|null);
20316
+
20317
+ /**
20318
+ * Creates a MultiGovalCommand message from a plain object. Also converts values to their respective internal types.
20319
+ * @param object Plain object
20320
+ * @returns MultiGovalCommand
20321
+ */
20322
+ public static fromObject(object: { [k: string]: any }): replit.goval.api.MultiGovalCommand;
20323
+
20324
+ /**
20325
+ * Creates a plain object from a MultiGovalCommand message. Also converts values to other types if specified.
20326
+ * @param message MultiGovalCommand
20327
+ * @param [options] Conversion options
20328
+ * @returns Plain object
20329
+ */
20330
+ public static toObject(message: replit.goval.api.MultiGovalCommand, options?: $protobuf.IConversionOptions): { [k: string]: any };
20331
+
20332
+ /**
20333
+ * Converts this MultiGovalCommand to JSON.
20334
+ * @returns JSON object
20335
+ */
20336
+ public toJSON(): { [k: string]: any };
20337
+ }
20338
+
20339
+ /** Properties of a KillRepl. */
20340
+ interface IKillRepl {
20341
+
20342
+ /** KillRepl replId */
20343
+ replId?: (string|null);
20344
+ }
20345
+
20346
+ /** Represents a KillRepl. */
20347
+ class KillRepl {
20348
+
20349
+ /**
20350
+ * Constructs a new KillRepl.
20351
+ * @param [properties] Properties to set
20352
+ */
20353
+ private constructor(properties?: replit.goval.api.IKillRepl);
20354
+
20355
+ /** KillRepl replId. */
20356
+ public replId: string;
20357
+
20358
+ /**
20359
+ * Creates a new KillRepl instance using the specified properties.
20360
+ * @param [properties] Properties to set
20361
+ * @returns KillRepl instance
20362
+ */
20363
+ public static create(properties?: replit.goval.api.IKillRepl): replit.goval.api.KillRepl;
20364
+
20365
+ /**
20366
+ * Encodes the specified KillRepl message. Does not implicitly {@link replit.goval.api.KillRepl.verify|verify} messages.
20367
+ * @param message KillRepl message or plain object to encode
20368
+ * @param [writer] Writer to encode to
20369
+ * @returns Writer
20370
+ */
20371
+ public static encode(message: replit.goval.api.KillRepl, writer?: $protobuf.Writer): $protobuf.Writer;
20372
+
20373
+ /**
20374
+ * Encodes the specified KillRepl message, length delimited. Does not implicitly {@link replit.goval.api.KillRepl.verify|verify} messages.
20375
+ * @param message KillRepl message or plain object to encode
20376
+ * @param [writer] Writer to encode to
20377
+ * @returns Writer
20378
+ */
20379
+ public static encodeDelimited(message: replit.goval.api.KillRepl, writer?: $protobuf.Writer): $protobuf.Writer;
20380
+
20381
+ /**
20382
+ * Decodes a KillRepl message from the specified reader or buffer.
20383
+ * @param reader Reader or buffer to decode from
20384
+ * @param [length] Message length if known beforehand
20385
+ * @returns KillRepl
20386
+ * @throws {Error} If the payload is not a reader or valid buffer
20387
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
20388
+ */
20389
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): replit.goval.api.KillRepl;
20390
+
20391
+ /**
20392
+ * Decodes a KillRepl message from the specified reader or buffer, length delimited.
20393
+ * @param reader Reader or buffer to decode from
20394
+ * @returns KillRepl
20395
+ * @throws {Error} If the payload is not a reader or valid buffer
20396
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
20397
+ */
20398
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): replit.goval.api.KillRepl;
20399
+
20400
+ /**
20401
+ * Verifies a KillRepl message.
20402
+ * @param message Plain object to verify
20403
+ * @returns `null` if valid, otherwise the reason why it is not
20404
+ */
20405
+ public static verify(message: { [k: string]: any }): (string|null);
20406
+
20407
+ /**
20408
+ * Creates a KillRepl message from a plain object. Also converts values to their respective internal types.
20409
+ * @param object Plain object
20410
+ * @returns KillRepl
20411
+ */
20412
+ public static fromObject(object: { [k: string]: any }): replit.goval.api.KillRepl;
20413
+
20414
+ /**
20415
+ * Creates a plain object from a KillRepl message. Also converts values to other types if specified.
20416
+ * @param message KillRepl
20417
+ * @param [options] Conversion options
20418
+ * @returns Plain object
20419
+ */
20420
+ public static toObject(message: replit.goval.api.KillRepl, options?: $protobuf.IConversionOptions): { [k: string]: any };
20421
+
20422
+ /**
20423
+ * Converts this KillRepl to JSON.
20424
+ * @returns JSON object
20425
+ */
20426
+ public toJSON(): { [k: string]: any };
20427
+ }
20428
+
20231
20429
  /** Properties of a Restore. */
20232
20430
  interface IRestore {
20233
20431
 
package/main/index.js CHANGED
@@ -49230,6 +49230,7 @@
49230
49230
  * @property {replit.goval.api.ClusterTransfer|replit.goval.api.IClusterTransfer|null} [clusterTransfer] LoreCommand clusterTransfer
49231
49231
  * @property {replit.goval.api.SoftTakedown|replit.goval.api.ISoftTakedown|null} [softTakedown] LoreCommand softTakedown
49232
49232
  * @property {replit.goval.api.GovalCommand|replit.goval.api.IGovalCommand|null} [govalCommand] LoreCommand govalCommand
49233
+ * @property {replit.goval.api.MultiGovalCommand|replit.goval.api.IMultiGovalCommand|null} [multiGovalCommand] LoreCommand multiGovalCommand
49233
49234
  * @property {replit.goval.api.Restore|replit.goval.api.IRestore|null} [restore] LoreCommand restore
49234
49235
  */
49235
49236
 
@@ -49271,6 +49272,14 @@
49271
49272
  */
49272
49273
  LoreCommand.prototype.govalCommand = null;
49273
49274
 
49275
+ /**
49276
+ * LoreCommand multiGovalCommand.
49277
+ * @member {replit.goval.api.MultiGovalCommand|null|undefined} multiGovalCommand
49278
+ * @memberof replit.goval.api.LoreCommand
49279
+ * @instance
49280
+ */
49281
+ LoreCommand.prototype.multiGovalCommand = null;
49282
+
49274
49283
  /**
49275
49284
  * LoreCommand restore.
49276
49285
  * @member {replit.goval.api.Restore|null|undefined} restore
@@ -49284,12 +49293,12 @@
49284
49293
 
49285
49294
  /**
49286
49295
  * LoreCommand command.
49287
- * @member {"clusterTransfer"|"softTakedown"|"govalCommand"|"restore"|undefined} command
49296
+ * @member {"clusterTransfer"|"softTakedown"|"govalCommand"|"multiGovalCommand"|"restore"|undefined} command
49288
49297
  * @memberof replit.goval.api.LoreCommand
49289
49298
  * @instance
49290
49299
  */
49291
49300
  Object.defineProperty(LoreCommand.prototype, "command", {
49292
- get: $util.oneOfGetter($oneOfFields = ["clusterTransfer", "softTakedown", "govalCommand", "restore"]),
49301
+ get: $util.oneOfGetter($oneOfFields = ["clusterTransfer", "softTakedown", "govalCommand", "multiGovalCommand", "restore"]),
49293
49302
  set: $util.oneOfSetter($oneOfFields)
49294
49303
  });
49295
49304
 
@@ -49325,6 +49334,8 @@
49325
49334
  $root.replit.goval.api.GovalCommand.encode(message.govalCommand, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
49326
49335
  if (message.restore != null && Object.hasOwnProperty.call(message, "restore"))
49327
49336
  $root.replit.goval.api.Restore.encode(message.restore, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
49337
+ if (message.multiGovalCommand != null && Object.hasOwnProperty.call(message, "multiGovalCommand"))
49338
+ $root.replit.goval.api.MultiGovalCommand.encode(message.multiGovalCommand, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
49328
49339
  return writer;
49329
49340
  };
49330
49341
 
@@ -49368,6 +49379,9 @@
49368
49379
  case 3:
49369
49380
  message.govalCommand = $root.replit.goval.api.GovalCommand.decode(reader, reader.uint32());
49370
49381
  break;
49382
+ case 5:
49383
+ message.multiGovalCommand = $root.replit.goval.api.MultiGovalCommand.decode(reader, reader.uint32());
49384
+ break;
49371
49385
  case 4:
49372
49386
  message.restore = $root.replit.goval.api.Restore.decode(reader, reader.uint32());
49373
49387
  break;
@@ -49435,6 +49449,16 @@
49435
49449
  return "govalCommand." + error;
49436
49450
  }
49437
49451
  }
49452
+ if (message.multiGovalCommand != null && message.hasOwnProperty("multiGovalCommand")) {
49453
+ if (properties.command === 1)
49454
+ return "command: multiple values";
49455
+ properties.command = 1;
49456
+ {
49457
+ var error = $root.replit.goval.api.MultiGovalCommand.verify(message.multiGovalCommand);
49458
+ if (error)
49459
+ return "multiGovalCommand." + error;
49460
+ }
49461
+ }
49438
49462
  if (message.restore != null && message.hasOwnProperty("restore")) {
49439
49463
  if (properties.command === 1)
49440
49464
  return "command: multiple values";
@@ -49475,6 +49499,11 @@
49475
49499
  throw TypeError(".replit.goval.api.LoreCommand.govalCommand: object expected");
49476
49500
  message.govalCommand = $root.replit.goval.api.GovalCommand.fromObject(object.govalCommand);
49477
49501
  }
49502
+ if (object.multiGovalCommand != null) {
49503
+ if (typeof object.multiGovalCommand !== "object")
49504
+ throw TypeError(".replit.goval.api.LoreCommand.multiGovalCommand: object expected");
49505
+ message.multiGovalCommand = $root.replit.goval.api.MultiGovalCommand.fromObject(object.multiGovalCommand);
49506
+ }
49478
49507
  if (object.restore != null) {
49479
49508
  if (typeof object.restore !== "object")
49480
49509
  throw TypeError(".replit.goval.api.LoreCommand.restore: object expected");
@@ -49516,6 +49545,11 @@
49516
49545
  if (options.oneofs)
49517
49546
  object.command = "restore";
49518
49547
  }
49548
+ if (message.multiGovalCommand != null && message.hasOwnProperty("multiGovalCommand")) {
49549
+ object.multiGovalCommand = $root.replit.goval.api.MultiGovalCommand.toObject(message.multiGovalCommand, options);
49550
+ if (options.oneofs)
49551
+ object.command = "multiGovalCommand";
49552
+ }
49519
49553
  return object;
49520
49554
  };
49521
49555
 
@@ -50003,6 +50037,7 @@
50003
50037
  * @interface IGovalCommand
50004
50038
  * @property {replit.goval.api.repl.Metadata|replit.goval.api.repl.IMetadata|null} [updateMetadata] GovalCommand updateMetadata
50005
50039
  * @property {replit.goval.api.PartialUpdateMetadata|replit.goval.api.IPartialUpdateMetadata|null} [partialUpdateMetadata] GovalCommand partialUpdateMetadata
50040
+ * @property {replit.goval.api.KillRepl|replit.goval.api.IKillRepl|null} [killRepl] GovalCommand killRepl
50006
50041
  */
50007
50042
 
50008
50043
  /**
@@ -50035,17 +50070,25 @@
50035
50070
  */
50036
50071
  GovalCommand.prototype.partialUpdateMetadata = null;
50037
50072
 
50073
+ /**
50074
+ * GovalCommand killRepl.
50075
+ * @member {replit.goval.api.KillRepl|null|undefined} killRepl
50076
+ * @memberof replit.goval.api.GovalCommand
50077
+ * @instance
50078
+ */
50079
+ GovalCommand.prototype.killRepl = null;
50080
+
50038
50081
  // OneOf field names bound to virtual getters and setters
50039
50082
  var $oneOfFields;
50040
50083
 
50041
50084
  /**
50042
50085
  * GovalCommand command.
50043
- * @member {"updateMetadata"|"partialUpdateMetadata"|undefined} command
50086
+ * @member {"updateMetadata"|"partialUpdateMetadata"|"killRepl"|undefined} command
50044
50087
  * @memberof replit.goval.api.GovalCommand
50045
50088
  * @instance
50046
50089
  */
50047
50090
  Object.defineProperty(GovalCommand.prototype, "command", {
50048
- get: $util.oneOfGetter($oneOfFields = ["updateMetadata", "partialUpdateMetadata"]),
50091
+ get: $util.oneOfGetter($oneOfFields = ["updateMetadata", "partialUpdateMetadata", "killRepl"]),
50049
50092
  set: $util.oneOfSetter($oneOfFields)
50050
50093
  });
50051
50094
 
@@ -50077,6 +50120,8 @@
50077
50120
  $root.replit.goval.api.repl.Metadata.encode(message.updateMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
50078
50121
  if (message.partialUpdateMetadata != null && Object.hasOwnProperty.call(message, "partialUpdateMetadata"))
50079
50122
  $root.replit.goval.api.PartialUpdateMetadata.encode(message.partialUpdateMetadata, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
50123
+ if (message.killRepl != null && Object.hasOwnProperty.call(message, "killRepl"))
50124
+ $root.replit.goval.api.KillRepl.encode(message.killRepl, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
50080
50125
  return writer;
50081
50126
  };
50082
50127
 
@@ -50117,6 +50162,9 @@
50117
50162
  case 2:
50118
50163
  message.partialUpdateMetadata = $root.replit.goval.api.PartialUpdateMetadata.decode(reader, reader.uint32());
50119
50164
  break;
50165
+ case 3:
50166
+ message.killRepl = $root.replit.goval.api.KillRepl.decode(reader, reader.uint32());
50167
+ break;
50120
50168
  default:
50121
50169
  reader.skipType(tag & 7);
50122
50170
  break;
@@ -50171,6 +50219,16 @@
50171
50219
  return "partialUpdateMetadata." + error;
50172
50220
  }
50173
50221
  }
50222
+ if (message.killRepl != null && message.hasOwnProperty("killRepl")) {
50223
+ if (properties.command === 1)
50224
+ return "command: multiple values";
50225
+ properties.command = 1;
50226
+ {
50227
+ var error = $root.replit.goval.api.KillRepl.verify(message.killRepl);
50228
+ if (error)
50229
+ return "killRepl." + error;
50230
+ }
50231
+ }
50174
50232
  return null;
50175
50233
  };
50176
50234
 
@@ -50196,6 +50254,11 @@
50196
50254
  throw TypeError(".replit.goval.api.GovalCommand.partialUpdateMetadata: object expected");
50197
50255
  message.partialUpdateMetadata = $root.replit.goval.api.PartialUpdateMetadata.fromObject(object.partialUpdateMetadata);
50198
50256
  }
50257
+ if (object.killRepl != null) {
50258
+ if (typeof object.killRepl !== "object")
50259
+ throw TypeError(".replit.goval.api.GovalCommand.killRepl: object expected");
50260
+ message.killRepl = $root.replit.goval.api.KillRepl.fromObject(object.killRepl);
50261
+ }
50199
50262
  return message;
50200
50263
  };
50201
50264
 
@@ -50222,6 +50285,11 @@
50222
50285
  if (options.oneofs)
50223
50286
  object.command = "partialUpdateMetadata";
50224
50287
  }
50288
+ if (message.killRepl != null && message.hasOwnProperty("killRepl")) {
50289
+ object.killRepl = $root.replit.goval.api.KillRepl.toObject(message.killRepl, options);
50290
+ if (options.oneofs)
50291
+ object.command = "killRepl";
50292
+ }
50225
50293
  return object;
50226
50294
  };
50227
50295
 
@@ -50458,6 +50526,422 @@
50458
50526
  return PartialUpdateMetadata;
50459
50527
  })();
50460
50528
 
50529
+ api.MultiGovalCommand = (function() {
50530
+
50531
+ /**
50532
+ * Properties of a MultiGovalCommand.
50533
+ * @memberof replit.goval.api
50534
+ * @interface IMultiGovalCommand
50535
+ * @property {string|null} [replId] MultiGovalCommand replId
50536
+ * @property {Array.<replit.goval.api.GovalCommand|replit.goval.api.IGovalCommand>|null} [govalCommands] MultiGovalCommand govalCommands
50537
+ */
50538
+
50539
+ /**
50540
+ * Constructs a new MultiGovalCommand.
50541
+ * @memberof replit.goval.api
50542
+ * @classdesc Represents a MultiGovalCommand.
50543
+ * @constructor
50544
+ * @param {replit.goval.api.IMultiGovalCommand=} [properties] Properties to set
50545
+ */
50546
+ function MultiGovalCommand(properties) {
50547
+ this.govalCommands = [];
50548
+ if (properties)
50549
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
50550
+ if (properties[keys[i]] != null)
50551
+ this[keys[i]] = properties[keys[i]];
50552
+ }
50553
+
50554
+ /**
50555
+ * MultiGovalCommand replId.
50556
+ * @member {string} replId
50557
+ * @memberof replit.goval.api.MultiGovalCommand
50558
+ * @instance
50559
+ */
50560
+ MultiGovalCommand.prototype.replId = "";
50561
+
50562
+ /**
50563
+ * MultiGovalCommand govalCommands.
50564
+ * @member {Array.<replit.goval.api.GovalCommand>} govalCommands
50565
+ * @memberof replit.goval.api.MultiGovalCommand
50566
+ * @instance
50567
+ */
50568
+ MultiGovalCommand.prototype.govalCommands = $util.emptyArray;
50569
+
50570
+ /**
50571
+ * Creates a new MultiGovalCommand instance using the specified properties.
50572
+ * @function create
50573
+ * @memberof replit.goval.api.MultiGovalCommand
50574
+ * @static
50575
+ * @param {replit.goval.api.IMultiGovalCommand=} [properties] Properties to set
50576
+ * @returns {replit.goval.api.MultiGovalCommand} MultiGovalCommand instance
50577
+ */
50578
+ MultiGovalCommand.create = function create(properties) {
50579
+ return MultiGovalCommand.fromObject(properties);
50580
+ };
50581
+
50582
+ /**
50583
+ * Encodes the specified MultiGovalCommand message. Does not implicitly {@link replit.goval.api.MultiGovalCommand.verify|verify} messages.
50584
+ * @function encode
50585
+ * @memberof replit.goval.api.MultiGovalCommand
50586
+ * @static
50587
+ * @param {replit.goval.api.MultiGovalCommand} message MultiGovalCommand message or plain object to encode
50588
+ * @param {$protobuf.Writer} [writer] Writer to encode to
50589
+ * @returns {$protobuf.Writer} Writer
50590
+ */
50591
+ MultiGovalCommand.encode = function encode(message, writer) {
50592
+ if (!writer)
50593
+ writer = $Writer.create();
50594
+ if (message.replId != null && Object.hasOwnProperty.call(message, "replId"))
50595
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.replId);
50596
+ if (message.govalCommands != null && message.govalCommands.length)
50597
+ for (var i = 0; i < message.govalCommands.length; ++i)
50598
+ $root.replit.goval.api.GovalCommand.encode(message.govalCommands[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
50599
+ return writer;
50600
+ };
50601
+
50602
+ /**
50603
+ * Encodes the specified MultiGovalCommand message, length delimited. Does not implicitly {@link replit.goval.api.MultiGovalCommand.verify|verify} messages.
50604
+ * @function encodeDelimited
50605
+ * @memberof replit.goval.api.MultiGovalCommand
50606
+ * @static
50607
+ * @param {replit.goval.api.MultiGovalCommand} message MultiGovalCommand message or plain object to encode
50608
+ * @param {$protobuf.Writer} [writer] Writer to encode to
50609
+ * @returns {$protobuf.Writer} Writer
50610
+ */
50611
+ MultiGovalCommand.encodeDelimited = function encodeDelimited(message, writer) {
50612
+ return this.encode(message, writer).ldelim();
50613
+ };
50614
+
50615
+ /**
50616
+ * Decodes a MultiGovalCommand message from the specified reader or buffer.
50617
+ * @function decode
50618
+ * @memberof replit.goval.api.MultiGovalCommand
50619
+ * @static
50620
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
50621
+ * @param {number} [length] Message length if known beforehand
50622
+ * @returns {replit.goval.api.MultiGovalCommand} MultiGovalCommand
50623
+ * @throws {Error} If the payload is not a reader or valid buffer
50624
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
50625
+ */
50626
+ MultiGovalCommand.decode = function decode(reader, length) {
50627
+ if (!(reader instanceof $Reader))
50628
+ reader = $Reader.create(reader);
50629
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.MultiGovalCommand();
50630
+ while (reader.pos < end) {
50631
+ var tag = reader.uint32();
50632
+ switch (tag >>> 3) {
50633
+ case 1:
50634
+ message.replId = reader.string();
50635
+ break;
50636
+ case 2:
50637
+ if (!(message.govalCommands && message.govalCommands.length))
50638
+ message.govalCommands = [];
50639
+ message.govalCommands.push($root.replit.goval.api.GovalCommand.decode(reader, reader.uint32()));
50640
+ break;
50641
+ default:
50642
+ reader.skipType(tag & 7);
50643
+ break;
50644
+ }
50645
+ }
50646
+ return message;
50647
+ };
50648
+
50649
+ /**
50650
+ * Decodes a MultiGovalCommand message from the specified reader or buffer, length delimited.
50651
+ * @function decodeDelimited
50652
+ * @memberof replit.goval.api.MultiGovalCommand
50653
+ * @static
50654
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
50655
+ * @returns {replit.goval.api.MultiGovalCommand} MultiGovalCommand
50656
+ * @throws {Error} If the payload is not a reader or valid buffer
50657
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
50658
+ */
50659
+ MultiGovalCommand.decodeDelimited = function decodeDelimited(reader) {
50660
+ if (!(reader instanceof $Reader))
50661
+ reader = new $Reader(reader);
50662
+ return this.decode(reader, reader.uint32());
50663
+ };
50664
+
50665
+ /**
50666
+ * Verifies a MultiGovalCommand message.
50667
+ * @function verify
50668
+ * @memberof replit.goval.api.MultiGovalCommand
50669
+ * @static
50670
+ * @param {Object.<string,*>} message Plain object to verify
50671
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
50672
+ */
50673
+ MultiGovalCommand.verify = function verify(message) {
50674
+ if (typeof message !== "object" || message === null)
50675
+ return "object expected";
50676
+ if (message.replId != null && message.hasOwnProperty("replId"))
50677
+ if (!$util.isString(message.replId))
50678
+ return "replId: string expected";
50679
+ if (message.govalCommands != null && message.hasOwnProperty("govalCommands")) {
50680
+ if (!Array.isArray(message.govalCommands))
50681
+ return "govalCommands: array expected";
50682
+ for (var i = 0; i < message.govalCommands.length; ++i) {
50683
+ var error = $root.replit.goval.api.GovalCommand.verify(message.govalCommands[i]);
50684
+ if (error)
50685
+ return "govalCommands." + error;
50686
+ }
50687
+ }
50688
+ return null;
50689
+ };
50690
+
50691
+ /**
50692
+ * Creates a MultiGovalCommand message from a plain object. Also converts values to their respective internal types.
50693
+ * @function fromObject
50694
+ * @memberof replit.goval.api.MultiGovalCommand
50695
+ * @static
50696
+ * @param {Object.<string,*>} object Plain object
50697
+ * @returns {replit.goval.api.MultiGovalCommand} MultiGovalCommand
50698
+ */
50699
+ MultiGovalCommand.fromObject = function fromObject(object) {
50700
+ if (object instanceof $root.replit.goval.api.MultiGovalCommand)
50701
+ return object;
50702
+ var message = new $root.replit.goval.api.MultiGovalCommand();
50703
+ if (object.replId != null)
50704
+ message.replId = String(object.replId);
50705
+ if (object.govalCommands) {
50706
+ if (!Array.isArray(object.govalCommands))
50707
+ throw TypeError(".replit.goval.api.MultiGovalCommand.govalCommands: array expected");
50708
+ message.govalCommands = [];
50709
+ for (var i = 0; i < object.govalCommands.length; ++i) {
50710
+ if (typeof object.govalCommands[i] !== "object")
50711
+ throw TypeError(".replit.goval.api.MultiGovalCommand.govalCommands: object expected");
50712
+ message.govalCommands[i] = $root.replit.goval.api.GovalCommand.fromObject(object.govalCommands[i]);
50713
+ }
50714
+ }
50715
+ return message;
50716
+ };
50717
+
50718
+ /**
50719
+ * Creates a plain object from a MultiGovalCommand message. Also converts values to other types if specified.
50720
+ * @function toObject
50721
+ * @memberof replit.goval.api.MultiGovalCommand
50722
+ * @static
50723
+ * @param {replit.goval.api.MultiGovalCommand} message MultiGovalCommand
50724
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
50725
+ * @returns {Object.<string,*>} Plain object
50726
+ */
50727
+ MultiGovalCommand.toObject = function toObject(message, options) {
50728
+ if (!options)
50729
+ options = {};
50730
+ var object = {};
50731
+ if (options.arrays || options.defaults)
50732
+ object.govalCommands = [];
50733
+ if (options.defaults)
50734
+ object.replId = "";
50735
+ if (message.replId != null && message.hasOwnProperty("replId"))
50736
+ object.replId = message.replId;
50737
+ if (message.govalCommands && message.govalCommands.length) {
50738
+ object.govalCommands = [];
50739
+ for (var j = 0; j < message.govalCommands.length; ++j)
50740
+ object.govalCommands[j] = $root.replit.goval.api.GovalCommand.toObject(message.govalCommands[j], options);
50741
+ }
50742
+ return object;
50743
+ };
50744
+
50745
+ /**
50746
+ * Converts this MultiGovalCommand to JSON.
50747
+ * @function toJSON
50748
+ * @memberof replit.goval.api.MultiGovalCommand
50749
+ * @instance
50750
+ * @returns {Object.<string,*>} JSON object
50751
+ */
50752
+ MultiGovalCommand.prototype.toJSON = function toJSON() {
50753
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
50754
+ };
50755
+
50756
+ return MultiGovalCommand;
50757
+ })();
50758
+
50759
+ api.KillRepl = (function() {
50760
+
50761
+ /**
50762
+ * Properties of a KillRepl.
50763
+ * @memberof replit.goval.api
50764
+ * @interface IKillRepl
50765
+ * @property {string|null} [replId] KillRepl replId
50766
+ */
50767
+
50768
+ /**
50769
+ * Constructs a new KillRepl.
50770
+ * @memberof replit.goval.api
50771
+ * @classdesc Represents a KillRepl.
50772
+ * @constructor
50773
+ * @param {replit.goval.api.IKillRepl=} [properties] Properties to set
50774
+ */
50775
+ function KillRepl(properties) {
50776
+ if (properties)
50777
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
50778
+ if (properties[keys[i]] != null)
50779
+ this[keys[i]] = properties[keys[i]];
50780
+ }
50781
+
50782
+ /**
50783
+ * KillRepl replId.
50784
+ * @member {string} replId
50785
+ * @memberof replit.goval.api.KillRepl
50786
+ * @instance
50787
+ */
50788
+ KillRepl.prototype.replId = "";
50789
+
50790
+ /**
50791
+ * Creates a new KillRepl instance using the specified properties.
50792
+ * @function create
50793
+ * @memberof replit.goval.api.KillRepl
50794
+ * @static
50795
+ * @param {replit.goval.api.IKillRepl=} [properties] Properties to set
50796
+ * @returns {replit.goval.api.KillRepl} KillRepl instance
50797
+ */
50798
+ KillRepl.create = function create(properties) {
50799
+ return KillRepl.fromObject(properties);
50800
+ };
50801
+
50802
+ /**
50803
+ * Encodes the specified KillRepl message. Does not implicitly {@link replit.goval.api.KillRepl.verify|verify} messages.
50804
+ * @function encode
50805
+ * @memberof replit.goval.api.KillRepl
50806
+ * @static
50807
+ * @param {replit.goval.api.KillRepl} message KillRepl message or plain object to encode
50808
+ * @param {$protobuf.Writer} [writer] Writer to encode to
50809
+ * @returns {$protobuf.Writer} Writer
50810
+ */
50811
+ KillRepl.encode = function encode(message, writer) {
50812
+ if (!writer)
50813
+ writer = $Writer.create();
50814
+ if (message.replId != null && Object.hasOwnProperty.call(message, "replId"))
50815
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.replId);
50816
+ return writer;
50817
+ };
50818
+
50819
+ /**
50820
+ * Encodes the specified KillRepl message, length delimited. Does not implicitly {@link replit.goval.api.KillRepl.verify|verify} messages.
50821
+ * @function encodeDelimited
50822
+ * @memberof replit.goval.api.KillRepl
50823
+ * @static
50824
+ * @param {replit.goval.api.KillRepl} message KillRepl message or plain object to encode
50825
+ * @param {$protobuf.Writer} [writer] Writer to encode to
50826
+ * @returns {$protobuf.Writer} Writer
50827
+ */
50828
+ KillRepl.encodeDelimited = function encodeDelimited(message, writer) {
50829
+ return this.encode(message, writer).ldelim();
50830
+ };
50831
+
50832
+ /**
50833
+ * Decodes a KillRepl message from the specified reader or buffer.
50834
+ * @function decode
50835
+ * @memberof replit.goval.api.KillRepl
50836
+ * @static
50837
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
50838
+ * @param {number} [length] Message length if known beforehand
50839
+ * @returns {replit.goval.api.KillRepl} KillRepl
50840
+ * @throws {Error} If the payload is not a reader or valid buffer
50841
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
50842
+ */
50843
+ KillRepl.decode = function decode(reader, length) {
50844
+ if (!(reader instanceof $Reader))
50845
+ reader = $Reader.create(reader);
50846
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.KillRepl();
50847
+ while (reader.pos < end) {
50848
+ var tag = reader.uint32();
50849
+ switch (tag >>> 3) {
50850
+ case 1:
50851
+ message.replId = reader.string();
50852
+ break;
50853
+ default:
50854
+ reader.skipType(tag & 7);
50855
+ break;
50856
+ }
50857
+ }
50858
+ return message;
50859
+ };
50860
+
50861
+ /**
50862
+ * Decodes a KillRepl message from the specified reader or buffer, length delimited.
50863
+ * @function decodeDelimited
50864
+ * @memberof replit.goval.api.KillRepl
50865
+ * @static
50866
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
50867
+ * @returns {replit.goval.api.KillRepl} KillRepl
50868
+ * @throws {Error} If the payload is not a reader or valid buffer
50869
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
50870
+ */
50871
+ KillRepl.decodeDelimited = function decodeDelimited(reader) {
50872
+ if (!(reader instanceof $Reader))
50873
+ reader = new $Reader(reader);
50874
+ return this.decode(reader, reader.uint32());
50875
+ };
50876
+
50877
+ /**
50878
+ * Verifies a KillRepl message.
50879
+ * @function verify
50880
+ * @memberof replit.goval.api.KillRepl
50881
+ * @static
50882
+ * @param {Object.<string,*>} message Plain object to verify
50883
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
50884
+ */
50885
+ KillRepl.verify = function verify(message) {
50886
+ if (typeof message !== "object" || message === null)
50887
+ return "object expected";
50888
+ if (message.replId != null && message.hasOwnProperty("replId"))
50889
+ if (!$util.isString(message.replId))
50890
+ return "replId: string expected";
50891
+ return null;
50892
+ };
50893
+
50894
+ /**
50895
+ * Creates a KillRepl message from a plain object. Also converts values to their respective internal types.
50896
+ * @function fromObject
50897
+ * @memberof replit.goval.api.KillRepl
50898
+ * @static
50899
+ * @param {Object.<string,*>} object Plain object
50900
+ * @returns {replit.goval.api.KillRepl} KillRepl
50901
+ */
50902
+ KillRepl.fromObject = function fromObject(object) {
50903
+ if (object instanceof $root.replit.goval.api.KillRepl)
50904
+ return object;
50905
+ var message = new $root.replit.goval.api.KillRepl();
50906
+ if (object.replId != null)
50907
+ message.replId = String(object.replId);
50908
+ return message;
50909
+ };
50910
+
50911
+ /**
50912
+ * Creates a plain object from a KillRepl message. Also converts values to other types if specified.
50913
+ * @function toObject
50914
+ * @memberof replit.goval.api.KillRepl
50915
+ * @static
50916
+ * @param {replit.goval.api.KillRepl} message KillRepl
50917
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
50918
+ * @returns {Object.<string,*>} Plain object
50919
+ */
50920
+ KillRepl.toObject = function toObject(message, options) {
50921
+ if (!options)
50922
+ options = {};
50923
+ var object = {};
50924
+ if (options.defaults)
50925
+ object.replId = "";
50926
+ if (message.replId != null && message.hasOwnProperty("replId"))
50927
+ object.replId = message.replId;
50928
+ return object;
50929
+ };
50930
+
50931
+ /**
50932
+ * Converts this KillRepl to JSON.
50933
+ * @function toJSON
50934
+ * @memberof replit.goval.api.KillRepl
50935
+ * @instance
50936
+ * @returns {Object.<string,*>} JSON object
50937
+ */
50938
+ KillRepl.prototype.toJSON = function toJSON() {
50939
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
50940
+ };
50941
+
50942
+ return KillRepl;
50943
+ })();
50944
+
50461
50945
  api.Restore = (function() {
50462
50946
 
50463
50947
  /**
@@ -211,6 +211,8 @@ declare var npm$namespace$replit$goval$api: {|
211
211
  ISoftTakedown: Class<replit$goval$api$ISoftTakedown>,
212
212
  IGovalCommand: Class<replit$goval$api$IGovalCommand>,
213
213
  IPartialUpdateMetadata: Class<replit$goval$api$IPartialUpdateMetadata>,
214
+ IMultiGovalCommand: Class<replit$goval$api$IMultiGovalCommand>,
215
+ IKillRepl: Class<replit$goval$api$IKillRepl>,
214
216
  IRestore: Class<replit$goval$api$IRestore>,
215
217
  Command: typeof replit$goval$api$Command,
216
218
  NixPackageAddRequest: typeof replit$goval$api$NixPackageAddRequest,
@@ -402,6 +404,8 @@ declare var npm$namespace$replit$goval$api: {|
402
404
  SoftTakedown: typeof replit$goval$api$SoftTakedown,
403
405
  GovalCommand: typeof replit$goval$api$GovalCommand,
404
406
  PartialUpdateMetadata: typeof replit$goval$api$PartialUpdateMetadata,
407
+ MultiGovalCommand: typeof replit$goval$api$MultiGovalCommand,
408
+ KillRepl: typeof replit$goval$api$KillRepl,
405
409
  Restore: typeof replit$goval$api$Restore,
406
410
  features: typeof npm$namespace$replit$goval$api$features,
407
411
  repl: typeof npm$namespace$replit$goval$api$repl,
@@ -28099,6 +28103,14 @@ declare type replit$goval$api$ILoreCommand = {|
28099
28103
  | replit$goval$api$IGovalCommand
28100
28104
  | null,
28101
28105
 
28106
+ /**
28107
+ * LoreCommand multiGovalCommand
28108
+ */
28109
+ multiGovalCommand?:
28110
+ | replit$goval$api$MultiGovalCommand
28111
+ | replit$goval$api$IMultiGovalCommand
28112
+ | null,
28113
+
28102
28114
  /**
28103
28115
  * LoreCommand restore
28104
28116
  */
@@ -28130,6 +28142,11 @@ declare class replit$goval$api$LoreCommand {
28130
28142
  */
28131
28143
  govalCommand?: replit$goval$api$GovalCommand | null;
28132
28144
 
28145
+ /**
28146
+ * LoreCommand multiGovalCommand.
28147
+ */
28148
+ multiGovalCommand?: replit$goval$api$MultiGovalCommand | null;
28149
+
28133
28150
  /**
28134
28151
  * LoreCommand restore.
28135
28152
  */
@@ -28138,7 +28155,12 @@ declare class replit$goval$api$LoreCommand {
28138
28155
  /**
28139
28156
  * LoreCommand command.
28140
28157
  */
28141
- command?: "clusterTransfer" | "softTakedown" | "govalCommand" | "restore";
28158
+ command?:
28159
+ | "clusterTransfer"
28160
+ | "softTakedown"
28161
+ | "govalCommand"
28162
+ | "multiGovalCommand"
28163
+ | "restore";
28142
28164
 
28143
28165
  /**
28144
28166
  * Creates a new LoreCommand instance using the specified properties.
@@ -28534,6 +28556,11 @@ declare type replit$goval$api$IGovalCommand = {|
28534
28556
  | replit$goval$api$PartialUpdateMetadata
28535
28557
  | replit$goval$api$IPartialUpdateMetadata
28536
28558
  | null,
28559
+
28560
+ /**
28561
+ * GovalCommand killRepl
28562
+ */
28563
+ killRepl?: replit$goval$api$KillRepl | replit$goval$api$IKillRepl | null,
28537
28564
  |};
28538
28565
 
28539
28566
  /**
@@ -28556,10 +28583,15 @@ declare class replit$goval$api$GovalCommand {
28556
28583
  */
28557
28584
  partialUpdateMetadata?: replit$goval$api$PartialUpdateMetadata | null;
28558
28585
 
28586
+ /**
28587
+ * GovalCommand killRepl.
28588
+ */
28589
+ killRepl?: replit$goval$api$KillRepl | null;
28590
+
28559
28591
  /**
28560
28592
  * GovalCommand command.
28561
28593
  */
28562
- command?: "updateMetadata" | "partialUpdateMetadata";
28594
+ command?: "updateMetadata" | "partialUpdateMetadata" | "killRepl";
28563
28595
 
28564
28596
  /**
28565
28597
  * Creates a new GovalCommand instance using the specified properties.
@@ -28789,6 +28821,258 @@ declare class replit$goval$api$PartialUpdateMetadata {
28789
28821
  |};
28790
28822
  }
28791
28823
 
28824
+ /**
28825
+ * Properties of a MultiGovalCommand.
28826
+ */
28827
+ declare type replit$goval$api$IMultiGovalCommand = {|
28828
+ /**
28829
+ * MultiGovalCommand replId
28830
+ */
28831
+ replId?: string | null,
28832
+
28833
+ /**
28834
+ * MultiGovalCommand govalCommands
28835
+ */
28836
+ govalCommands?:
28837
+ | (replit$goval$api$GovalCommand | replit$goval$api$IGovalCommand)[]
28838
+ | null,
28839
+ |};
28840
+
28841
+ /**
28842
+ * Represents a MultiGovalCommand.
28843
+ */
28844
+ declare class replit$goval$api$MultiGovalCommand {
28845
+ /**
28846
+ * Constructs a new MultiGovalCommand.
28847
+ * @param [properties] Properties to set
28848
+ */
28849
+ constructor(properties?: replit$goval$api$IMultiGovalCommand): this;
28850
+
28851
+ /**
28852
+ * MultiGovalCommand replId.
28853
+ */
28854
+ replId: string;
28855
+
28856
+ /**
28857
+ * MultiGovalCommand govalCommands.
28858
+ */
28859
+ govalCommands: replit$goval$api$GovalCommand[];
28860
+
28861
+ /**
28862
+ * Creates a new MultiGovalCommand instance using the specified properties.
28863
+ * @param [properties] Properties to set
28864
+ * @returns MultiGovalCommand instance
28865
+ */
28866
+ static create(
28867
+ properties?: replit$goval$api$IMultiGovalCommand
28868
+ ): replit$goval$api$MultiGovalCommand;
28869
+
28870
+ /**
28871
+ * [object Object],[object Object],[object Object]
28872
+ * @param message MultiGovalCommand message or plain object to encode
28873
+ * @param [writer] Writer to encode to
28874
+ * @returns Writer
28875
+ */
28876
+ static encode(
28877
+ message: replit$goval$api$MultiGovalCommand,
28878
+ writer?: $protobuf.Writer
28879
+ ): $protobuf.Writer;
28880
+
28881
+ /**
28882
+ * [object Object],[object Object],[object Object]
28883
+ * @param message MultiGovalCommand message or plain object to encode
28884
+ * @param [writer] Writer to encode to
28885
+ * @returns Writer
28886
+ */
28887
+ static encodeDelimited(
28888
+ message: replit$goval$api$MultiGovalCommand,
28889
+ writer?: $protobuf.Writer
28890
+ ): $protobuf.Writer;
28891
+
28892
+ /**
28893
+ * Decodes a MultiGovalCommand message from the specified reader or buffer.
28894
+ * @param reader Reader or buffer to decode from
28895
+ * @param [length] Message length if known beforehand
28896
+ * @returns MultiGovalCommand
28897
+ * @throws {Error} If the payload is not a reader or valid buffer
28898
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
28899
+ */
28900
+ static decode(
28901
+ reader: $protobuf.Reader | Uint8Array,
28902
+ length?: number
28903
+ ): replit$goval$api$MultiGovalCommand;
28904
+
28905
+ /**
28906
+ * Decodes a MultiGovalCommand message from the specified reader or buffer, length delimited.
28907
+ * @param reader Reader or buffer to decode from
28908
+ * @returns MultiGovalCommand
28909
+ * @throws {Error} If the payload is not a reader or valid buffer
28910
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
28911
+ */
28912
+ static decodeDelimited(
28913
+ reader: $protobuf.Reader | Uint8Array
28914
+ ): replit$goval$api$MultiGovalCommand;
28915
+
28916
+ /**
28917
+ * Verifies a MultiGovalCommand message.
28918
+ * @param message Plain object to verify
28919
+ * @returns `null` if valid, otherwise the reason why it is not
28920
+ */
28921
+ static verify(message: {|
28922
+ [k: string]: any,
28923
+ |}): string | null;
28924
+
28925
+ /**
28926
+ * Creates a MultiGovalCommand message from a plain object. Also converts values to their respective internal types.
28927
+ * @param object Plain object
28928
+ * @returns MultiGovalCommand
28929
+ */
28930
+ static fromObject(object: {|
28931
+ [k: string]: any,
28932
+ |}): replit$goval$api$MultiGovalCommand;
28933
+
28934
+ /**
28935
+ * Creates a plain object from a MultiGovalCommand message. Also converts values to other types if specified.
28936
+ * @param message MultiGovalCommand
28937
+ * @param [options] Conversion options
28938
+ * @returns Plain object
28939
+ */
28940
+ static toObject(
28941
+ message: replit$goval$api$MultiGovalCommand,
28942
+ options?: $protobuf.IConversionOptions
28943
+ ): {|
28944
+ [k: string]: any,
28945
+ |};
28946
+
28947
+ /**
28948
+ * Converts this MultiGovalCommand to JSON.
28949
+ * @returns JSON object
28950
+ */
28951
+ toJSON(): {|
28952
+ [k: string]: any,
28953
+ |};
28954
+ }
28955
+
28956
+ /**
28957
+ * Properties of a KillRepl.
28958
+ */
28959
+ declare type replit$goval$api$IKillRepl = {|
28960
+ /**
28961
+ * KillRepl replId
28962
+ */
28963
+ replId?: string | null,
28964
+ |};
28965
+
28966
+ /**
28967
+ * Represents a KillRepl.
28968
+ */
28969
+ declare class replit$goval$api$KillRepl {
28970
+ /**
28971
+ * Constructs a new KillRepl.
28972
+ * @param [properties] Properties to set
28973
+ */
28974
+ constructor(properties?: replit$goval$api$IKillRepl): this;
28975
+
28976
+ /**
28977
+ * KillRepl replId.
28978
+ */
28979
+ replId: string;
28980
+
28981
+ /**
28982
+ * Creates a new KillRepl instance using the specified properties.
28983
+ * @param [properties] Properties to set
28984
+ * @returns KillRepl instance
28985
+ */
28986
+ static create(
28987
+ properties?: replit$goval$api$IKillRepl
28988
+ ): replit$goval$api$KillRepl;
28989
+
28990
+ /**
28991
+ * [object Object],[object Object],[object Object]
28992
+ * @param message KillRepl message or plain object to encode
28993
+ * @param [writer] Writer to encode to
28994
+ * @returns Writer
28995
+ */
28996
+ static encode(
28997
+ message: replit$goval$api$KillRepl,
28998
+ writer?: $protobuf.Writer
28999
+ ): $protobuf.Writer;
29000
+
29001
+ /**
29002
+ * [object Object],[object Object],[object Object]
29003
+ * @param message KillRepl message or plain object to encode
29004
+ * @param [writer] Writer to encode to
29005
+ * @returns Writer
29006
+ */
29007
+ static encodeDelimited(
29008
+ message: replit$goval$api$KillRepl,
29009
+ writer?: $protobuf.Writer
29010
+ ): $protobuf.Writer;
29011
+
29012
+ /**
29013
+ * Decodes a KillRepl message from the specified reader or buffer.
29014
+ * @param reader Reader or buffer to decode from
29015
+ * @param [length] Message length if known beforehand
29016
+ * @returns KillRepl
29017
+ * @throws {Error} If the payload is not a reader or valid buffer
29018
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
29019
+ */
29020
+ static decode(
29021
+ reader: $protobuf.Reader | Uint8Array,
29022
+ length?: number
29023
+ ): replit$goval$api$KillRepl;
29024
+
29025
+ /**
29026
+ * Decodes a KillRepl message from the specified reader or buffer, length delimited.
29027
+ * @param reader Reader or buffer to decode from
29028
+ * @returns KillRepl
29029
+ * @throws {Error} If the payload is not a reader or valid buffer
29030
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
29031
+ */
29032
+ static decodeDelimited(
29033
+ reader: $protobuf.Reader | Uint8Array
29034
+ ): replit$goval$api$KillRepl;
29035
+
29036
+ /**
29037
+ * Verifies a KillRepl message.
29038
+ * @param message Plain object to verify
29039
+ * @returns `null` if valid, otherwise the reason why it is not
29040
+ */
29041
+ static verify(message: {|
29042
+ [k: string]: any,
29043
+ |}): string | null;
29044
+
29045
+ /**
29046
+ * Creates a KillRepl message from a plain object. Also converts values to their respective internal types.
29047
+ * @param object Plain object
29048
+ * @returns KillRepl
29049
+ */
29050
+ static fromObject(object: {|
29051
+ [k: string]: any,
29052
+ |}): replit$goval$api$KillRepl;
29053
+
29054
+ /**
29055
+ * Creates a plain object from a KillRepl message. Also converts values to other types if specified.
29056
+ * @param message KillRepl
29057
+ * @param [options] Conversion options
29058
+ * @returns Plain object
29059
+ */
29060
+ static toObject(
29061
+ message: replit$goval$api$KillRepl,
29062
+ options?: $protobuf.IConversionOptions
29063
+ ): {|
29064
+ [k: string]: any,
29065
+ |};
29066
+
29067
+ /**
29068
+ * Converts this KillRepl to JSON.
29069
+ * @returns JSON object
29070
+ */
29071
+ toJSON(): {|
29072
+ [k: string]: any,
29073
+ |};
29074
+ }
29075
+
28792
29076
  /**
28793
29077
  * Properties of a Restore.
28794
29078
  */
@@ -29998,7 +30282,7 @@ declare class replit$goval$api$repl$Metadata {
29998
30282
  [k: string]: any,
29999
30283
  |};
30000
30284
  }
30001
- declare var google: typeof npm$namespace$google;
30285
+ export var google = npm$namespace$google;
30002
30286
 
30003
30287
  declare var npm$namespace$google: {|
30004
30288
  protobuf: typeof npm$namespace$google$protobuf,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@replit/protocol",
3
- "version": "0.2.77",
3
+ "version": "0.2.78",
4
4
  "description": "JavaScript bindings for the Replit protocol",
5
5
  "main": "main/index.js",
6
6
  "repository": "https://github.com/replit/protocol",