@replit/protocol 0.2.81 → 0.2.83
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 +109 -1
- package/main/index.js +272 -2
- package/main/index.js.flow +163 -1
- package/package.json +1 -1
package/main/index.d.ts
CHANGED
|
@@ -18192,6 +18192,9 @@ export namespace replit {
|
|
|
18192
18192
|
/** ReplToken resourceLimits */
|
|
18193
18193
|
resourceLimits?: (replit.goval.api.repl.ResourceLimits|replit.goval.api.repl.IResourceLimits|null);
|
|
18194
18194
|
|
|
18195
|
+
/** ReplToken interactiveResourceLimits */
|
|
18196
|
+
interactiveResourceLimits?: (replit.goval.api.repl.ResourceLimits|replit.goval.api.repl.IResourceLimits|null);
|
|
18197
|
+
|
|
18195
18198
|
/** ReplToken format */
|
|
18196
18199
|
format?: (replit.goval.api.ReplToken.WireFormat|null);
|
|
18197
18200
|
|
|
@@ -18244,6 +18247,9 @@ export namespace replit {
|
|
|
18244
18247
|
/** ReplToken resourceLimits. */
|
|
18245
18248
|
public resourceLimits?: (replit.goval.api.repl.ResourceLimits|null);
|
|
18246
18249
|
|
|
18250
|
+
/** ReplToken interactiveResourceLimits. */
|
|
18251
|
+
public interactiveResourceLimits?: (replit.goval.api.repl.ResourceLimits|null);
|
|
18252
|
+
|
|
18247
18253
|
/** ReplToken format. */
|
|
18248
18254
|
public format: replit.goval.api.ReplToken.WireFormat;
|
|
18249
18255
|
|
|
@@ -20158,6 +20164,9 @@ export namespace replit {
|
|
|
20158
20164
|
|
|
20159
20165
|
/** GovalCommand killRepl */
|
|
20160
20166
|
killRepl?: (replit.goval.api.KillRepl|replit.goval.api.IKillRepl|null);
|
|
20167
|
+
|
|
20168
|
+
/** GovalCommand updateSourceRepl */
|
|
20169
|
+
updateSourceRepl?: (replit.goval.api.UpdateSourceRepl|replit.goval.api.IUpdateSourceRepl|null);
|
|
20161
20170
|
}
|
|
20162
20171
|
|
|
20163
20172
|
/** Represents a GovalCommand. */
|
|
@@ -20178,8 +20187,11 @@ export namespace replit {
|
|
|
20178
20187
|
/** GovalCommand killRepl. */
|
|
20179
20188
|
public killRepl?: (replit.goval.api.KillRepl|null);
|
|
20180
20189
|
|
|
20190
|
+
/** GovalCommand updateSourceRepl. */
|
|
20191
|
+
public updateSourceRepl?: (replit.goval.api.UpdateSourceRepl|null);
|
|
20192
|
+
|
|
20181
20193
|
/** GovalCommand command. */
|
|
20182
|
-
public command?: ("updateMetadata"|"partialUpdateMetadata"|"killRepl");
|
|
20194
|
+
public command?: ("updateMetadata"|"partialUpdateMetadata"|"killRepl"|"updateSourceRepl");
|
|
20183
20195
|
|
|
20184
20196
|
/**
|
|
20185
20197
|
* Creates a new GovalCommand instance using the specified properties.
|
|
@@ -20630,6 +20642,102 @@ export namespace replit {
|
|
|
20630
20642
|
public toJSON(): { [k: string]: any };
|
|
20631
20643
|
}
|
|
20632
20644
|
|
|
20645
|
+
/** Properties of an UpdateSourceRepl. */
|
|
20646
|
+
interface IUpdateSourceRepl {
|
|
20647
|
+
|
|
20648
|
+
/** UpdateSourceRepl replId */
|
|
20649
|
+
replId?: (string|null);
|
|
20650
|
+
|
|
20651
|
+
/** UpdateSourceRepl sourceReplId */
|
|
20652
|
+
sourceReplId?: (string|null);
|
|
20653
|
+
}
|
|
20654
|
+
|
|
20655
|
+
/** Represents an UpdateSourceRepl. */
|
|
20656
|
+
class UpdateSourceRepl {
|
|
20657
|
+
|
|
20658
|
+
/**
|
|
20659
|
+
* Constructs a new UpdateSourceRepl.
|
|
20660
|
+
* @param [properties] Properties to set
|
|
20661
|
+
*/
|
|
20662
|
+
private constructor(properties?: replit.goval.api.IUpdateSourceRepl);
|
|
20663
|
+
|
|
20664
|
+
/** UpdateSourceRepl replId. */
|
|
20665
|
+
public replId: string;
|
|
20666
|
+
|
|
20667
|
+
/** UpdateSourceRepl sourceReplId. */
|
|
20668
|
+
public sourceReplId: string;
|
|
20669
|
+
|
|
20670
|
+
/**
|
|
20671
|
+
* Creates a new UpdateSourceRepl instance using the specified properties.
|
|
20672
|
+
* @param [properties] Properties to set
|
|
20673
|
+
* @returns UpdateSourceRepl instance
|
|
20674
|
+
*/
|
|
20675
|
+
public static create(properties?: replit.goval.api.IUpdateSourceRepl): replit.goval.api.UpdateSourceRepl;
|
|
20676
|
+
|
|
20677
|
+
/**
|
|
20678
|
+
* Encodes the specified UpdateSourceRepl message. Does not implicitly {@link replit.goval.api.UpdateSourceRepl.verify|verify} messages.
|
|
20679
|
+
* @param message UpdateSourceRepl message or plain object to encode
|
|
20680
|
+
* @param [writer] Writer to encode to
|
|
20681
|
+
* @returns Writer
|
|
20682
|
+
*/
|
|
20683
|
+
public static encode(message: replit.goval.api.UpdateSourceRepl, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
20684
|
+
|
|
20685
|
+
/**
|
|
20686
|
+
* Encodes the specified UpdateSourceRepl message, length delimited. Does not implicitly {@link replit.goval.api.UpdateSourceRepl.verify|verify} messages.
|
|
20687
|
+
* @param message UpdateSourceRepl message or plain object to encode
|
|
20688
|
+
* @param [writer] Writer to encode to
|
|
20689
|
+
* @returns Writer
|
|
20690
|
+
*/
|
|
20691
|
+
public static encodeDelimited(message: replit.goval.api.UpdateSourceRepl, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
20692
|
+
|
|
20693
|
+
/**
|
|
20694
|
+
* Decodes an UpdateSourceRepl message from the specified reader or buffer.
|
|
20695
|
+
* @param reader Reader or buffer to decode from
|
|
20696
|
+
* @param [length] Message length if known beforehand
|
|
20697
|
+
* @returns UpdateSourceRepl
|
|
20698
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
20699
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
20700
|
+
*/
|
|
20701
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): replit.goval.api.UpdateSourceRepl;
|
|
20702
|
+
|
|
20703
|
+
/**
|
|
20704
|
+
* Decodes an UpdateSourceRepl message from the specified reader or buffer, length delimited.
|
|
20705
|
+
* @param reader Reader or buffer to decode from
|
|
20706
|
+
* @returns UpdateSourceRepl
|
|
20707
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
20708
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
20709
|
+
*/
|
|
20710
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): replit.goval.api.UpdateSourceRepl;
|
|
20711
|
+
|
|
20712
|
+
/**
|
|
20713
|
+
* Verifies an UpdateSourceRepl message.
|
|
20714
|
+
* @param message Plain object to verify
|
|
20715
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
20716
|
+
*/
|
|
20717
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
20718
|
+
|
|
20719
|
+
/**
|
|
20720
|
+
* Creates an UpdateSourceRepl message from a plain object. Also converts values to their respective internal types.
|
|
20721
|
+
* @param object Plain object
|
|
20722
|
+
* @returns UpdateSourceRepl
|
|
20723
|
+
*/
|
|
20724
|
+
public static fromObject(object: { [k: string]: any }): replit.goval.api.UpdateSourceRepl;
|
|
20725
|
+
|
|
20726
|
+
/**
|
|
20727
|
+
* Creates a plain object from an UpdateSourceRepl message. Also converts values to other types if specified.
|
|
20728
|
+
* @param message UpdateSourceRepl
|
|
20729
|
+
* @param [options] Conversion options
|
|
20730
|
+
* @returns Plain object
|
|
20731
|
+
*/
|
|
20732
|
+
public static toObject(message: replit.goval.api.UpdateSourceRepl, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
20733
|
+
|
|
20734
|
+
/**
|
|
20735
|
+
* Converts this UpdateSourceRepl to JSON.
|
|
20736
|
+
* @returns JSON object
|
|
20737
|
+
*/
|
|
20738
|
+
public toJSON(): { [k: string]: any };
|
|
20739
|
+
}
|
|
20740
|
+
|
|
20633
20741
|
/** Namespace features. */
|
|
20634
20742
|
namespace features {
|
|
20635
20743
|
|
package/main/index.js
CHANGED
|
@@ -45211,6 +45211,7 @@
|
|
|
45211
45211
|
* @property {replit.goval.api.ReplToken.ReplID|replit.goval.api.ReplToken.IReplID|null} [id] ReplToken id
|
|
45212
45212
|
* @property {replit.goval.api.ReplToken.ClassroomMetadata|replit.goval.api.ReplToken.IClassroomMetadata|null} [classroom] ReplToken classroom
|
|
45213
45213
|
* @property {replit.goval.api.repl.ResourceLimits|replit.goval.api.repl.IResourceLimits|null} [resourceLimits] ReplToken resourceLimits
|
|
45214
|
+
* @property {replit.goval.api.repl.ResourceLimits|replit.goval.api.repl.IResourceLimits|null} [interactiveResourceLimits] ReplToken interactiveResourceLimits
|
|
45214
45215
|
* @property {replit.goval.api.ReplToken.WireFormat|null} [format] ReplToken format
|
|
45215
45216
|
* @property {replit.goval.api.ReplToken.Presenced|replit.goval.api.ReplToken.IPresenced|null} [presenced] ReplToken presenced
|
|
45216
45217
|
* @property {Array.<string>|null} [flags] ReplToken flags
|
|
@@ -45306,6 +45307,14 @@
|
|
|
45306
45307
|
*/
|
|
45307
45308
|
ReplToken.prototype.resourceLimits = null;
|
|
45308
45309
|
|
|
45310
|
+
/**
|
|
45311
|
+
* ReplToken interactiveResourceLimits.
|
|
45312
|
+
* @member {replit.goval.api.repl.ResourceLimits|null|undefined} interactiveResourceLimits
|
|
45313
|
+
* @memberof replit.goval.api.ReplToken
|
|
45314
|
+
* @instance
|
|
45315
|
+
*/
|
|
45316
|
+
ReplToken.prototype.interactiveResourceLimits = null;
|
|
45317
|
+
|
|
45309
45318
|
/**
|
|
45310
45319
|
* ReplToken format.
|
|
45311
45320
|
* @member {replit.goval.api.ReplToken.WireFormat} format
|
|
@@ -45414,6 +45423,8 @@
|
|
|
45414
45423
|
if (message.features != null && message.features.length)
|
|
45415
45424
|
for (var i = 0; i < message.features.length; ++i)
|
|
45416
45425
|
$root.replit.goval.api.features.Feature.encode(message.features[i], writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim();
|
|
45426
|
+
if (message.interactiveResourceLimits != null && Object.hasOwnProperty.call(message, "interactiveResourceLimits"))
|
|
45427
|
+
$root.replit.goval.api.repl.ResourceLimits.encode(message.interactiveResourceLimits, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim();
|
|
45417
45428
|
return writer;
|
|
45418
45429
|
};
|
|
45419
45430
|
|
|
@@ -45475,6 +45486,9 @@
|
|
|
45475
45486
|
case 10:
|
|
45476
45487
|
message.resourceLimits = $root.replit.goval.api.repl.ResourceLimits.decode(reader, reader.uint32());
|
|
45477
45488
|
break;
|
|
45489
|
+
case 17:
|
|
45490
|
+
message.interactiveResourceLimits = $root.replit.goval.api.repl.ResourceLimits.decode(reader, reader.uint32());
|
|
45491
|
+
break;
|
|
45478
45492
|
case 12:
|
|
45479
45493
|
message.format = reader.int32();
|
|
45480
45494
|
break;
|
|
@@ -45589,6 +45603,11 @@
|
|
|
45589
45603
|
if (error)
|
|
45590
45604
|
return "resourceLimits." + error;
|
|
45591
45605
|
}
|
|
45606
|
+
if (message.interactiveResourceLimits != null && message.hasOwnProperty("interactiveResourceLimits")) {
|
|
45607
|
+
var error = $root.replit.goval.api.repl.ResourceLimits.verify(message.interactiveResourceLimits);
|
|
45608
|
+
if (error)
|
|
45609
|
+
return "interactiveResourceLimits." + error;
|
|
45610
|
+
}
|
|
45592
45611
|
if (message.format != null && message.hasOwnProperty("format"))
|
|
45593
45612
|
switch (message.format) {
|
|
45594
45613
|
default:
|
|
@@ -45690,6 +45709,11 @@
|
|
|
45690
45709
|
throw TypeError(".replit.goval.api.ReplToken.resourceLimits: object expected");
|
|
45691
45710
|
message.resourceLimits = $root.replit.goval.api.repl.ResourceLimits.fromObject(object.resourceLimits);
|
|
45692
45711
|
}
|
|
45712
|
+
if (object.interactiveResourceLimits != null) {
|
|
45713
|
+
if (typeof object.interactiveResourceLimits !== "object")
|
|
45714
|
+
throw TypeError(".replit.goval.api.ReplToken.interactiveResourceLimits: object expected");
|
|
45715
|
+
message.interactiveResourceLimits = $root.replit.goval.api.repl.ResourceLimits.fromObject(object.interactiveResourceLimits);
|
|
45716
|
+
}
|
|
45693
45717
|
switch (object.format) {
|
|
45694
45718
|
case "PROTOBUF":
|
|
45695
45719
|
case 0:
|
|
@@ -45757,6 +45781,7 @@
|
|
|
45757
45781
|
object.format = options.enums === String ? "PROTOBUF" : 0;
|
|
45758
45782
|
object.presenced = null;
|
|
45759
45783
|
object.permissions = null;
|
|
45784
|
+
object.interactiveResourceLimits = null;
|
|
45760
45785
|
}
|
|
45761
45786
|
if (message.iat != null && message.hasOwnProperty("iat"))
|
|
45762
45787
|
object.iat = $root.google.protobuf.Timestamp.toObject(message.iat, options);
|
|
@@ -45801,6 +45826,8 @@
|
|
|
45801
45826
|
for (var j = 0; j < message.features.length; ++j)
|
|
45802
45827
|
object.features[j] = $root.replit.goval.api.features.Feature.toObject(message.features[j], options);
|
|
45803
45828
|
}
|
|
45829
|
+
if (message.interactiveResourceLimits != null && message.hasOwnProperty("interactiveResourceLimits"))
|
|
45830
|
+
object.interactiveResourceLimits = $root.replit.goval.api.repl.ResourceLimits.toObject(message.interactiveResourceLimits, options);
|
|
45804
45831
|
return object;
|
|
45805
45832
|
};
|
|
45806
45833
|
|
|
@@ -50313,6 +50340,7 @@
|
|
|
50313
50340
|
* @property {replit.goval.api.repl.Metadata|replit.goval.api.repl.IMetadata|null} [updateMetadata] GovalCommand updateMetadata
|
|
50314
50341
|
* @property {replit.goval.api.PartialUpdateMetadata|replit.goval.api.IPartialUpdateMetadata|null} [partialUpdateMetadata] GovalCommand partialUpdateMetadata
|
|
50315
50342
|
* @property {replit.goval.api.KillRepl|replit.goval.api.IKillRepl|null} [killRepl] GovalCommand killRepl
|
|
50343
|
+
* @property {replit.goval.api.UpdateSourceRepl|replit.goval.api.IUpdateSourceRepl|null} [updateSourceRepl] GovalCommand updateSourceRepl
|
|
50316
50344
|
*/
|
|
50317
50345
|
|
|
50318
50346
|
/**
|
|
@@ -50353,17 +50381,25 @@
|
|
|
50353
50381
|
*/
|
|
50354
50382
|
GovalCommand.prototype.killRepl = null;
|
|
50355
50383
|
|
|
50384
|
+
/**
|
|
50385
|
+
* GovalCommand updateSourceRepl.
|
|
50386
|
+
* @member {replit.goval.api.UpdateSourceRepl|null|undefined} updateSourceRepl
|
|
50387
|
+
* @memberof replit.goval.api.GovalCommand
|
|
50388
|
+
* @instance
|
|
50389
|
+
*/
|
|
50390
|
+
GovalCommand.prototype.updateSourceRepl = null;
|
|
50391
|
+
|
|
50356
50392
|
// OneOf field names bound to virtual getters and setters
|
|
50357
50393
|
var $oneOfFields;
|
|
50358
50394
|
|
|
50359
50395
|
/**
|
|
50360
50396
|
* GovalCommand command.
|
|
50361
|
-
* @member {"updateMetadata"|"partialUpdateMetadata"|"killRepl"|undefined} command
|
|
50397
|
+
* @member {"updateMetadata"|"partialUpdateMetadata"|"killRepl"|"updateSourceRepl"|undefined} command
|
|
50362
50398
|
* @memberof replit.goval.api.GovalCommand
|
|
50363
50399
|
* @instance
|
|
50364
50400
|
*/
|
|
50365
50401
|
Object.defineProperty(GovalCommand.prototype, "command", {
|
|
50366
|
-
get: $util.oneOfGetter($oneOfFields = ["updateMetadata", "partialUpdateMetadata", "killRepl"]),
|
|
50402
|
+
get: $util.oneOfGetter($oneOfFields = ["updateMetadata", "partialUpdateMetadata", "killRepl", "updateSourceRepl"]),
|
|
50367
50403
|
set: $util.oneOfSetter($oneOfFields)
|
|
50368
50404
|
});
|
|
50369
50405
|
|
|
@@ -50397,6 +50433,8 @@
|
|
|
50397
50433
|
$root.replit.goval.api.PartialUpdateMetadata.encode(message.partialUpdateMetadata, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
50398
50434
|
if (message.killRepl != null && Object.hasOwnProperty.call(message, "killRepl"))
|
|
50399
50435
|
$root.replit.goval.api.KillRepl.encode(message.killRepl, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
50436
|
+
if (message.updateSourceRepl != null && Object.hasOwnProperty.call(message, "updateSourceRepl"))
|
|
50437
|
+
$root.replit.goval.api.UpdateSourceRepl.encode(message.updateSourceRepl, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
50400
50438
|
return writer;
|
|
50401
50439
|
};
|
|
50402
50440
|
|
|
@@ -50440,6 +50478,9 @@
|
|
|
50440
50478
|
case 3:
|
|
50441
50479
|
message.killRepl = $root.replit.goval.api.KillRepl.decode(reader, reader.uint32());
|
|
50442
50480
|
break;
|
|
50481
|
+
case 4:
|
|
50482
|
+
message.updateSourceRepl = $root.replit.goval.api.UpdateSourceRepl.decode(reader, reader.uint32());
|
|
50483
|
+
break;
|
|
50443
50484
|
default:
|
|
50444
50485
|
reader.skipType(tag & 7);
|
|
50445
50486
|
break;
|
|
@@ -50504,6 +50545,16 @@
|
|
|
50504
50545
|
return "killRepl." + error;
|
|
50505
50546
|
}
|
|
50506
50547
|
}
|
|
50548
|
+
if (message.updateSourceRepl != null && message.hasOwnProperty("updateSourceRepl")) {
|
|
50549
|
+
if (properties.command === 1)
|
|
50550
|
+
return "command: multiple values";
|
|
50551
|
+
properties.command = 1;
|
|
50552
|
+
{
|
|
50553
|
+
var error = $root.replit.goval.api.UpdateSourceRepl.verify(message.updateSourceRepl);
|
|
50554
|
+
if (error)
|
|
50555
|
+
return "updateSourceRepl." + error;
|
|
50556
|
+
}
|
|
50557
|
+
}
|
|
50507
50558
|
return null;
|
|
50508
50559
|
};
|
|
50509
50560
|
|
|
@@ -50534,6 +50585,11 @@
|
|
|
50534
50585
|
throw TypeError(".replit.goval.api.GovalCommand.killRepl: object expected");
|
|
50535
50586
|
message.killRepl = $root.replit.goval.api.KillRepl.fromObject(object.killRepl);
|
|
50536
50587
|
}
|
|
50588
|
+
if (object.updateSourceRepl != null) {
|
|
50589
|
+
if (typeof object.updateSourceRepl !== "object")
|
|
50590
|
+
throw TypeError(".replit.goval.api.GovalCommand.updateSourceRepl: object expected");
|
|
50591
|
+
message.updateSourceRepl = $root.replit.goval.api.UpdateSourceRepl.fromObject(object.updateSourceRepl);
|
|
50592
|
+
}
|
|
50537
50593
|
return message;
|
|
50538
50594
|
};
|
|
50539
50595
|
|
|
@@ -50565,6 +50621,11 @@
|
|
|
50565
50621
|
if (options.oneofs)
|
|
50566
50622
|
object.command = "killRepl";
|
|
50567
50623
|
}
|
|
50624
|
+
if (message.updateSourceRepl != null && message.hasOwnProperty("updateSourceRepl")) {
|
|
50625
|
+
object.updateSourceRepl = $root.replit.goval.api.UpdateSourceRepl.toObject(message.updateSourceRepl, options);
|
|
50626
|
+
if (options.oneofs)
|
|
50627
|
+
object.command = "updateSourceRepl";
|
|
50628
|
+
}
|
|
50568
50629
|
return object;
|
|
50569
50630
|
};
|
|
50570
50631
|
|
|
@@ -51426,6 +51487,215 @@
|
|
|
51426
51487
|
return Restore;
|
|
51427
51488
|
})();
|
|
51428
51489
|
|
|
51490
|
+
api.UpdateSourceRepl = (function() {
|
|
51491
|
+
|
|
51492
|
+
/**
|
|
51493
|
+
* Properties of an UpdateSourceRepl.
|
|
51494
|
+
* @memberof replit.goval.api
|
|
51495
|
+
* @interface IUpdateSourceRepl
|
|
51496
|
+
* @property {string|null} [replId] UpdateSourceRepl replId
|
|
51497
|
+
* @property {string|null} [sourceReplId] UpdateSourceRepl sourceReplId
|
|
51498
|
+
*/
|
|
51499
|
+
|
|
51500
|
+
/**
|
|
51501
|
+
* Constructs a new UpdateSourceRepl.
|
|
51502
|
+
* @memberof replit.goval.api
|
|
51503
|
+
* @classdesc Represents an UpdateSourceRepl.
|
|
51504
|
+
* @constructor
|
|
51505
|
+
* @param {replit.goval.api.IUpdateSourceRepl=} [properties] Properties to set
|
|
51506
|
+
*/
|
|
51507
|
+
function UpdateSourceRepl(properties) {
|
|
51508
|
+
if (properties)
|
|
51509
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
51510
|
+
if (properties[keys[i]] != null)
|
|
51511
|
+
this[keys[i]] = properties[keys[i]];
|
|
51512
|
+
}
|
|
51513
|
+
|
|
51514
|
+
/**
|
|
51515
|
+
* UpdateSourceRepl replId.
|
|
51516
|
+
* @member {string} replId
|
|
51517
|
+
* @memberof replit.goval.api.UpdateSourceRepl
|
|
51518
|
+
* @instance
|
|
51519
|
+
*/
|
|
51520
|
+
UpdateSourceRepl.prototype.replId = "";
|
|
51521
|
+
|
|
51522
|
+
/**
|
|
51523
|
+
* UpdateSourceRepl sourceReplId.
|
|
51524
|
+
* @member {string} sourceReplId
|
|
51525
|
+
* @memberof replit.goval.api.UpdateSourceRepl
|
|
51526
|
+
* @instance
|
|
51527
|
+
*/
|
|
51528
|
+
UpdateSourceRepl.prototype.sourceReplId = "";
|
|
51529
|
+
|
|
51530
|
+
/**
|
|
51531
|
+
* Creates a new UpdateSourceRepl instance using the specified properties.
|
|
51532
|
+
* @function create
|
|
51533
|
+
* @memberof replit.goval.api.UpdateSourceRepl
|
|
51534
|
+
* @static
|
|
51535
|
+
* @param {replit.goval.api.IUpdateSourceRepl=} [properties] Properties to set
|
|
51536
|
+
* @returns {replit.goval.api.UpdateSourceRepl} UpdateSourceRepl instance
|
|
51537
|
+
*/
|
|
51538
|
+
UpdateSourceRepl.create = function create(properties) {
|
|
51539
|
+
return UpdateSourceRepl.fromObject(properties);
|
|
51540
|
+
};
|
|
51541
|
+
|
|
51542
|
+
/**
|
|
51543
|
+
* Encodes the specified UpdateSourceRepl message. Does not implicitly {@link replit.goval.api.UpdateSourceRepl.verify|verify} messages.
|
|
51544
|
+
* @function encode
|
|
51545
|
+
* @memberof replit.goval.api.UpdateSourceRepl
|
|
51546
|
+
* @static
|
|
51547
|
+
* @param {replit.goval.api.UpdateSourceRepl} message UpdateSourceRepl message or plain object to encode
|
|
51548
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
51549
|
+
* @returns {$protobuf.Writer} Writer
|
|
51550
|
+
*/
|
|
51551
|
+
UpdateSourceRepl.encode = function encode(message, writer) {
|
|
51552
|
+
if (!writer)
|
|
51553
|
+
writer = $Writer.create();
|
|
51554
|
+
if (message.replId != null && Object.hasOwnProperty.call(message, "replId"))
|
|
51555
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.replId);
|
|
51556
|
+
if (message.sourceReplId != null && Object.hasOwnProperty.call(message, "sourceReplId"))
|
|
51557
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.sourceReplId);
|
|
51558
|
+
return writer;
|
|
51559
|
+
};
|
|
51560
|
+
|
|
51561
|
+
/**
|
|
51562
|
+
* Encodes the specified UpdateSourceRepl message, length delimited. Does not implicitly {@link replit.goval.api.UpdateSourceRepl.verify|verify} messages.
|
|
51563
|
+
* @function encodeDelimited
|
|
51564
|
+
* @memberof replit.goval.api.UpdateSourceRepl
|
|
51565
|
+
* @static
|
|
51566
|
+
* @param {replit.goval.api.UpdateSourceRepl} message UpdateSourceRepl message or plain object to encode
|
|
51567
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
51568
|
+
* @returns {$protobuf.Writer} Writer
|
|
51569
|
+
*/
|
|
51570
|
+
UpdateSourceRepl.encodeDelimited = function encodeDelimited(message, writer) {
|
|
51571
|
+
return this.encode(message, writer).ldelim();
|
|
51572
|
+
};
|
|
51573
|
+
|
|
51574
|
+
/**
|
|
51575
|
+
* Decodes an UpdateSourceRepl message from the specified reader or buffer.
|
|
51576
|
+
* @function decode
|
|
51577
|
+
* @memberof replit.goval.api.UpdateSourceRepl
|
|
51578
|
+
* @static
|
|
51579
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
51580
|
+
* @param {number} [length] Message length if known beforehand
|
|
51581
|
+
* @returns {replit.goval.api.UpdateSourceRepl} UpdateSourceRepl
|
|
51582
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
51583
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
51584
|
+
*/
|
|
51585
|
+
UpdateSourceRepl.decode = function decode(reader, length) {
|
|
51586
|
+
if (!(reader instanceof $Reader))
|
|
51587
|
+
reader = $Reader.create(reader);
|
|
51588
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.UpdateSourceRepl();
|
|
51589
|
+
while (reader.pos < end) {
|
|
51590
|
+
var tag = reader.uint32();
|
|
51591
|
+
switch (tag >>> 3) {
|
|
51592
|
+
case 1:
|
|
51593
|
+
message.replId = reader.string();
|
|
51594
|
+
break;
|
|
51595
|
+
case 2:
|
|
51596
|
+
message.sourceReplId = reader.string();
|
|
51597
|
+
break;
|
|
51598
|
+
default:
|
|
51599
|
+
reader.skipType(tag & 7);
|
|
51600
|
+
break;
|
|
51601
|
+
}
|
|
51602
|
+
}
|
|
51603
|
+
return message;
|
|
51604
|
+
};
|
|
51605
|
+
|
|
51606
|
+
/**
|
|
51607
|
+
* Decodes an UpdateSourceRepl message from the specified reader or buffer, length delimited.
|
|
51608
|
+
* @function decodeDelimited
|
|
51609
|
+
* @memberof replit.goval.api.UpdateSourceRepl
|
|
51610
|
+
* @static
|
|
51611
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
51612
|
+
* @returns {replit.goval.api.UpdateSourceRepl} UpdateSourceRepl
|
|
51613
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
51614
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
51615
|
+
*/
|
|
51616
|
+
UpdateSourceRepl.decodeDelimited = function decodeDelimited(reader) {
|
|
51617
|
+
if (!(reader instanceof $Reader))
|
|
51618
|
+
reader = new $Reader(reader);
|
|
51619
|
+
return this.decode(reader, reader.uint32());
|
|
51620
|
+
};
|
|
51621
|
+
|
|
51622
|
+
/**
|
|
51623
|
+
* Verifies an UpdateSourceRepl message.
|
|
51624
|
+
* @function verify
|
|
51625
|
+
* @memberof replit.goval.api.UpdateSourceRepl
|
|
51626
|
+
* @static
|
|
51627
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
51628
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
51629
|
+
*/
|
|
51630
|
+
UpdateSourceRepl.verify = function verify(message) {
|
|
51631
|
+
if (typeof message !== "object" || message === null)
|
|
51632
|
+
return "object expected";
|
|
51633
|
+
if (message.replId != null && message.hasOwnProperty("replId"))
|
|
51634
|
+
if (!$util.isString(message.replId))
|
|
51635
|
+
return "replId: string expected";
|
|
51636
|
+
if (message.sourceReplId != null && message.hasOwnProperty("sourceReplId"))
|
|
51637
|
+
if (!$util.isString(message.sourceReplId))
|
|
51638
|
+
return "sourceReplId: string expected";
|
|
51639
|
+
return null;
|
|
51640
|
+
};
|
|
51641
|
+
|
|
51642
|
+
/**
|
|
51643
|
+
* Creates an UpdateSourceRepl message from a plain object. Also converts values to their respective internal types.
|
|
51644
|
+
* @function fromObject
|
|
51645
|
+
* @memberof replit.goval.api.UpdateSourceRepl
|
|
51646
|
+
* @static
|
|
51647
|
+
* @param {Object.<string,*>} object Plain object
|
|
51648
|
+
* @returns {replit.goval.api.UpdateSourceRepl} UpdateSourceRepl
|
|
51649
|
+
*/
|
|
51650
|
+
UpdateSourceRepl.fromObject = function fromObject(object) {
|
|
51651
|
+
if (object instanceof $root.replit.goval.api.UpdateSourceRepl)
|
|
51652
|
+
return object;
|
|
51653
|
+
var message = new $root.replit.goval.api.UpdateSourceRepl();
|
|
51654
|
+
if (object.replId != null)
|
|
51655
|
+
message.replId = String(object.replId);
|
|
51656
|
+
if (object.sourceReplId != null)
|
|
51657
|
+
message.sourceReplId = String(object.sourceReplId);
|
|
51658
|
+
return message;
|
|
51659
|
+
};
|
|
51660
|
+
|
|
51661
|
+
/**
|
|
51662
|
+
* Creates a plain object from an UpdateSourceRepl message. Also converts values to other types if specified.
|
|
51663
|
+
* @function toObject
|
|
51664
|
+
* @memberof replit.goval.api.UpdateSourceRepl
|
|
51665
|
+
* @static
|
|
51666
|
+
* @param {replit.goval.api.UpdateSourceRepl} message UpdateSourceRepl
|
|
51667
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
51668
|
+
* @returns {Object.<string,*>} Plain object
|
|
51669
|
+
*/
|
|
51670
|
+
UpdateSourceRepl.toObject = function toObject(message, options) {
|
|
51671
|
+
if (!options)
|
|
51672
|
+
options = {};
|
|
51673
|
+
var object = {};
|
|
51674
|
+
if (options.defaults) {
|
|
51675
|
+
object.replId = "";
|
|
51676
|
+
object.sourceReplId = "";
|
|
51677
|
+
}
|
|
51678
|
+
if (message.replId != null && message.hasOwnProperty("replId"))
|
|
51679
|
+
object.replId = message.replId;
|
|
51680
|
+
if (message.sourceReplId != null && message.hasOwnProperty("sourceReplId"))
|
|
51681
|
+
object.sourceReplId = message.sourceReplId;
|
|
51682
|
+
return object;
|
|
51683
|
+
};
|
|
51684
|
+
|
|
51685
|
+
/**
|
|
51686
|
+
* Converts this UpdateSourceRepl to JSON.
|
|
51687
|
+
* @function toJSON
|
|
51688
|
+
* @memberof replit.goval.api.UpdateSourceRepl
|
|
51689
|
+
* @instance
|
|
51690
|
+
* @returns {Object.<string,*>} JSON object
|
|
51691
|
+
*/
|
|
51692
|
+
UpdateSourceRepl.prototype.toJSON = function toJSON() {
|
|
51693
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
51694
|
+
};
|
|
51695
|
+
|
|
51696
|
+
return UpdateSourceRepl;
|
|
51697
|
+
})();
|
|
51698
|
+
|
|
51429
51699
|
api.features = (function() {
|
|
51430
51700
|
|
|
51431
51701
|
/**
|
package/main/index.js.flow
CHANGED
|
@@ -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
|
|};
|
|
@@ -25928,6 +25930,14 @@ declare type replit$goval$api$IReplToken = {|
|
|
|
25928
25930
|
| replit$goval$api$repl$IResourceLimits
|
|
25929
25931
|
| null,
|
|
25930
25932
|
|
|
25933
|
+
/**
|
|
25934
|
+
* ReplToken interactiveResourceLimits
|
|
25935
|
+
*/
|
|
25936
|
+
interactiveResourceLimits?:
|
|
25937
|
+
| replit$goval$api$repl$ResourceLimits
|
|
25938
|
+
| replit$goval$api$repl$IResourceLimits
|
|
25939
|
+
| null,
|
|
25940
|
+
|
|
25931
25941
|
/**
|
|
25932
25942
|
* ReplToken format
|
|
25933
25943
|
*/
|
|
@@ -26017,6 +26027,11 @@ declare class replit$goval$api$ReplToken {
|
|
|
26017
26027
|
*/
|
|
26018
26028
|
resourceLimits?: replit$goval$api$repl$ResourceLimits | null;
|
|
26019
26029
|
|
|
26030
|
+
/**
|
|
26031
|
+
* ReplToken interactiveResourceLimits.
|
|
26032
|
+
*/
|
|
26033
|
+
interactiveResourceLimits?: replit$goval$api$repl$ResourceLimits | null;
|
|
26034
|
+
|
|
26020
26035
|
/**
|
|
26021
26036
|
* ReplToken format.
|
|
26022
26037
|
*/
|
|
@@ -28714,6 +28729,14 @@ declare type replit$goval$api$IGovalCommand = {|
|
|
|
28714
28729
|
* GovalCommand killRepl
|
|
28715
28730
|
*/
|
|
28716
28731
|
killRepl?: replit$goval$api$KillRepl | replit$goval$api$IKillRepl | null,
|
|
28732
|
+
|
|
28733
|
+
/**
|
|
28734
|
+
* GovalCommand updateSourceRepl
|
|
28735
|
+
*/
|
|
28736
|
+
updateSourceRepl?:
|
|
28737
|
+
| replit$goval$api$UpdateSourceRepl
|
|
28738
|
+
| replit$goval$api$IUpdateSourceRepl
|
|
28739
|
+
| null,
|
|
28717
28740
|
|};
|
|
28718
28741
|
|
|
28719
28742
|
/**
|
|
@@ -28741,10 +28764,19 @@ declare class replit$goval$api$GovalCommand {
|
|
|
28741
28764
|
*/
|
|
28742
28765
|
killRepl?: replit$goval$api$KillRepl | null;
|
|
28743
28766
|
|
|
28767
|
+
/**
|
|
28768
|
+
* GovalCommand updateSourceRepl.
|
|
28769
|
+
*/
|
|
28770
|
+
updateSourceRepl?: replit$goval$api$UpdateSourceRepl | null;
|
|
28771
|
+
|
|
28744
28772
|
/**
|
|
28745
28773
|
* GovalCommand command.
|
|
28746
28774
|
*/
|
|
28747
|
-
command?:
|
|
28775
|
+
command?:
|
|
28776
|
+
| "updateMetadata"
|
|
28777
|
+
| "partialUpdateMetadata"
|
|
28778
|
+
| "killRepl"
|
|
28779
|
+
| "updateSourceRepl";
|
|
28748
28780
|
|
|
28749
28781
|
/**
|
|
28750
28782
|
* Creates a new GovalCommand instance using the specified properties.
|
|
@@ -29356,6 +29388,136 @@ declare class replit$goval$api$Restore {
|
|
|
29356
29388
|
|};
|
|
29357
29389
|
}
|
|
29358
29390
|
|
|
29391
|
+
/**
|
|
29392
|
+
* Properties of an UpdateSourceRepl.
|
|
29393
|
+
*/
|
|
29394
|
+
declare type replit$goval$api$IUpdateSourceRepl = {|
|
|
29395
|
+
/**
|
|
29396
|
+
* UpdateSourceRepl replId
|
|
29397
|
+
*/
|
|
29398
|
+
replId?: string | null,
|
|
29399
|
+
|
|
29400
|
+
/**
|
|
29401
|
+
* UpdateSourceRepl sourceReplId
|
|
29402
|
+
*/
|
|
29403
|
+
sourceReplId?: string | null,
|
|
29404
|
+
|};
|
|
29405
|
+
|
|
29406
|
+
/**
|
|
29407
|
+
* Represents an UpdateSourceRepl.
|
|
29408
|
+
*/
|
|
29409
|
+
declare class replit$goval$api$UpdateSourceRepl {
|
|
29410
|
+
/**
|
|
29411
|
+
* Constructs a new UpdateSourceRepl.
|
|
29412
|
+
* @param [properties] Properties to set
|
|
29413
|
+
*/
|
|
29414
|
+
constructor(properties?: replit$goval$api$IUpdateSourceRepl): this;
|
|
29415
|
+
|
|
29416
|
+
/**
|
|
29417
|
+
* UpdateSourceRepl replId.
|
|
29418
|
+
*/
|
|
29419
|
+
replId: string;
|
|
29420
|
+
|
|
29421
|
+
/**
|
|
29422
|
+
* UpdateSourceRepl sourceReplId.
|
|
29423
|
+
*/
|
|
29424
|
+
sourceReplId: string;
|
|
29425
|
+
|
|
29426
|
+
/**
|
|
29427
|
+
* Creates a new UpdateSourceRepl instance using the specified properties.
|
|
29428
|
+
* @param [properties] Properties to set
|
|
29429
|
+
* @returns UpdateSourceRepl instance
|
|
29430
|
+
*/
|
|
29431
|
+
static create(
|
|
29432
|
+
properties?: replit$goval$api$IUpdateSourceRepl
|
|
29433
|
+
): replit$goval$api$UpdateSourceRepl;
|
|
29434
|
+
|
|
29435
|
+
/**
|
|
29436
|
+
* [object Object],[object Object],[object Object]
|
|
29437
|
+
* @param message UpdateSourceRepl message or plain object to encode
|
|
29438
|
+
* @param [writer] Writer to encode to
|
|
29439
|
+
* @returns Writer
|
|
29440
|
+
*/
|
|
29441
|
+
static encode(
|
|
29442
|
+
message: replit$goval$api$UpdateSourceRepl,
|
|
29443
|
+
writer?: $protobuf.Writer
|
|
29444
|
+
): $protobuf.Writer;
|
|
29445
|
+
|
|
29446
|
+
/**
|
|
29447
|
+
* [object Object],[object Object],[object Object]
|
|
29448
|
+
* @param message UpdateSourceRepl message or plain object to encode
|
|
29449
|
+
* @param [writer] Writer to encode to
|
|
29450
|
+
* @returns Writer
|
|
29451
|
+
*/
|
|
29452
|
+
static encodeDelimited(
|
|
29453
|
+
message: replit$goval$api$UpdateSourceRepl,
|
|
29454
|
+
writer?: $protobuf.Writer
|
|
29455
|
+
): $protobuf.Writer;
|
|
29456
|
+
|
|
29457
|
+
/**
|
|
29458
|
+
* Decodes an UpdateSourceRepl message from the specified reader or buffer.
|
|
29459
|
+
* @param reader Reader or buffer to decode from
|
|
29460
|
+
* @param [length] Message length if known beforehand
|
|
29461
|
+
* @returns UpdateSourceRepl
|
|
29462
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
29463
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
29464
|
+
*/
|
|
29465
|
+
static decode(
|
|
29466
|
+
reader: $protobuf.Reader | Uint8Array,
|
|
29467
|
+
length?: number
|
|
29468
|
+
): replit$goval$api$UpdateSourceRepl;
|
|
29469
|
+
|
|
29470
|
+
/**
|
|
29471
|
+
* Decodes an UpdateSourceRepl message from the specified reader or buffer, length delimited.
|
|
29472
|
+
* @param reader Reader or buffer to decode from
|
|
29473
|
+
* @returns UpdateSourceRepl
|
|
29474
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
29475
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
29476
|
+
*/
|
|
29477
|
+
static decodeDelimited(
|
|
29478
|
+
reader: $protobuf.Reader | Uint8Array
|
|
29479
|
+
): replit$goval$api$UpdateSourceRepl;
|
|
29480
|
+
|
|
29481
|
+
/**
|
|
29482
|
+
* Verifies an UpdateSourceRepl message.
|
|
29483
|
+
* @param message Plain object to verify
|
|
29484
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
29485
|
+
*/
|
|
29486
|
+
static verify(message: {|
|
|
29487
|
+
[k: string]: any,
|
|
29488
|
+
|}): string | null;
|
|
29489
|
+
|
|
29490
|
+
/**
|
|
29491
|
+
* Creates an UpdateSourceRepl message from a plain object. Also converts values to their respective internal types.
|
|
29492
|
+
* @param object Plain object
|
|
29493
|
+
* @returns UpdateSourceRepl
|
|
29494
|
+
*/
|
|
29495
|
+
static fromObject(object: {|
|
|
29496
|
+
[k: string]: any,
|
|
29497
|
+
|}): replit$goval$api$UpdateSourceRepl;
|
|
29498
|
+
|
|
29499
|
+
/**
|
|
29500
|
+
* Creates a plain object from an UpdateSourceRepl message. Also converts values to other types if specified.
|
|
29501
|
+
* @param message UpdateSourceRepl
|
|
29502
|
+
* @param [options] Conversion options
|
|
29503
|
+
* @returns Plain object
|
|
29504
|
+
*/
|
|
29505
|
+
static toObject(
|
|
29506
|
+
message: replit$goval$api$UpdateSourceRepl,
|
|
29507
|
+
options?: $protobuf.IConversionOptions
|
|
29508
|
+
): {|
|
|
29509
|
+
[k: string]: any,
|
|
29510
|
+
|};
|
|
29511
|
+
|
|
29512
|
+
/**
|
|
29513
|
+
* Converts this UpdateSourceRepl to JSON.
|
|
29514
|
+
* @returns JSON object
|
|
29515
|
+
*/
|
|
29516
|
+
toJSON(): {|
|
|
29517
|
+
[k: string]: any,
|
|
29518
|
+
|};
|
|
29519
|
+
}
|
|
29520
|
+
|
|
29359
29521
|
declare var npm$namespace$replit$goval$api$features: {|
|
|
29360
29522
|
IGpu: Class<replit$goval$api$features$IGpu>,
|
|
29361
29523
|
IBoosted: Class<replit$goval$api$features$IBoosted>,
|