@replit/protocol 0.2.84 → 0.2.86
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 +205 -1
- package/main/index.js +497 -2
- package/main/index.js.flow +292 -1
- package/package.json +1 -1
package/main/index.d.ts
CHANGED
|
@@ -20167,6 +20167,9 @@ export namespace replit {
|
|
|
20167
20167
|
|
|
20168
20168
|
/** GovalCommand updateSourceRepl */
|
|
20169
20169
|
updateSourceRepl?: (replit.goval.api.UpdateSourceRepl|replit.goval.api.IUpdateSourceRepl|null);
|
|
20170
|
+
|
|
20171
|
+
/** GovalCommand updateReplFlags */
|
|
20172
|
+
updateReplFlags?: (replit.goval.api.UpdateReplFlags|replit.goval.api.IUpdateReplFlags|null);
|
|
20170
20173
|
}
|
|
20171
20174
|
|
|
20172
20175
|
/** Represents a GovalCommand. */
|
|
@@ -20190,8 +20193,11 @@ export namespace replit {
|
|
|
20190
20193
|
/** GovalCommand updateSourceRepl. */
|
|
20191
20194
|
public updateSourceRepl?: (replit.goval.api.UpdateSourceRepl|null);
|
|
20192
20195
|
|
|
20196
|
+
/** GovalCommand updateReplFlags. */
|
|
20197
|
+
public updateReplFlags?: (replit.goval.api.UpdateReplFlags|null);
|
|
20198
|
+
|
|
20193
20199
|
/** GovalCommand command. */
|
|
20194
|
-
public command?: ("updateMetadata"|"partialUpdateMetadata"|"killRepl"|"updateSourceRepl");
|
|
20200
|
+
public command?: ("updateMetadata"|"partialUpdateMetadata"|"killRepl"|"updateSourceRepl"|"updateReplFlags");
|
|
20195
20201
|
|
|
20196
20202
|
/**
|
|
20197
20203
|
* Creates a new GovalCommand instance using the specified properties.
|
|
@@ -20738,6 +20744,102 @@ export namespace replit {
|
|
|
20738
20744
|
public toJSON(): { [k: string]: any };
|
|
20739
20745
|
}
|
|
20740
20746
|
|
|
20747
|
+
/** Properties of an UpdateReplFlags. */
|
|
20748
|
+
interface IUpdateReplFlags {
|
|
20749
|
+
|
|
20750
|
+
/** UpdateReplFlags replId */
|
|
20751
|
+
replId?: (string|null);
|
|
20752
|
+
|
|
20753
|
+
/** UpdateReplFlags flags */
|
|
20754
|
+
flags?: (string[]|null);
|
|
20755
|
+
}
|
|
20756
|
+
|
|
20757
|
+
/** Represents an UpdateReplFlags. */
|
|
20758
|
+
class UpdateReplFlags {
|
|
20759
|
+
|
|
20760
|
+
/**
|
|
20761
|
+
* Constructs a new UpdateReplFlags.
|
|
20762
|
+
* @param [properties] Properties to set
|
|
20763
|
+
*/
|
|
20764
|
+
private constructor(properties?: replit.goval.api.IUpdateReplFlags);
|
|
20765
|
+
|
|
20766
|
+
/** UpdateReplFlags replId. */
|
|
20767
|
+
public replId: string;
|
|
20768
|
+
|
|
20769
|
+
/** UpdateReplFlags flags. */
|
|
20770
|
+
public flags: string[];
|
|
20771
|
+
|
|
20772
|
+
/**
|
|
20773
|
+
* Creates a new UpdateReplFlags instance using the specified properties.
|
|
20774
|
+
* @param [properties] Properties to set
|
|
20775
|
+
* @returns UpdateReplFlags instance
|
|
20776
|
+
*/
|
|
20777
|
+
public static create(properties?: replit.goval.api.IUpdateReplFlags): replit.goval.api.UpdateReplFlags;
|
|
20778
|
+
|
|
20779
|
+
/**
|
|
20780
|
+
* Encodes the specified UpdateReplFlags message. Does not implicitly {@link replit.goval.api.UpdateReplFlags.verify|verify} messages.
|
|
20781
|
+
* @param message UpdateReplFlags message or plain object to encode
|
|
20782
|
+
* @param [writer] Writer to encode to
|
|
20783
|
+
* @returns Writer
|
|
20784
|
+
*/
|
|
20785
|
+
public static encode(message: replit.goval.api.UpdateReplFlags, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
20786
|
+
|
|
20787
|
+
/**
|
|
20788
|
+
* Encodes the specified UpdateReplFlags message, length delimited. Does not implicitly {@link replit.goval.api.UpdateReplFlags.verify|verify} messages.
|
|
20789
|
+
* @param message UpdateReplFlags message or plain object to encode
|
|
20790
|
+
* @param [writer] Writer to encode to
|
|
20791
|
+
* @returns Writer
|
|
20792
|
+
*/
|
|
20793
|
+
public static encodeDelimited(message: replit.goval.api.UpdateReplFlags, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
20794
|
+
|
|
20795
|
+
/**
|
|
20796
|
+
* Decodes an UpdateReplFlags message from the specified reader or buffer.
|
|
20797
|
+
* @param reader Reader or buffer to decode from
|
|
20798
|
+
* @param [length] Message length if known beforehand
|
|
20799
|
+
* @returns UpdateReplFlags
|
|
20800
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
20801
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
20802
|
+
*/
|
|
20803
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): replit.goval.api.UpdateReplFlags;
|
|
20804
|
+
|
|
20805
|
+
/**
|
|
20806
|
+
* Decodes an UpdateReplFlags message from the specified reader or buffer, length delimited.
|
|
20807
|
+
* @param reader Reader or buffer to decode from
|
|
20808
|
+
* @returns UpdateReplFlags
|
|
20809
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
20810
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
20811
|
+
*/
|
|
20812
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): replit.goval.api.UpdateReplFlags;
|
|
20813
|
+
|
|
20814
|
+
/**
|
|
20815
|
+
* Verifies an UpdateReplFlags message.
|
|
20816
|
+
* @param message Plain object to verify
|
|
20817
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
20818
|
+
*/
|
|
20819
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
20820
|
+
|
|
20821
|
+
/**
|
|
20822
|
+
* Creates an UpdateReplFlags message from a plain object. Also converts values to their respective internal types.
|
|
20823
|
+
* @param object Plain object
|
|
20824
|
+
* @returns UpdateReplFlags
|
|
20825
|
+
*/
|
|
20826
|
+
public static fromObject(object: { [k: string]: any }): replit.goval.api.UpdateReplFlags;
|
|
20827
|
+
|
|
20828
|
+
/**
|
|
20829
|
+
* Creates a plain object from an UpdateReplFlags message. Also converts values to other types if specified.
|
|
20830
|
+
* @param message UpdateReplFlags
|
|
20831
|
+
* @param [options] Conversion options
|
|
20832
|
+
* @returns Plain object
|
|
20833
|
+
*/
|
|
20834
|
+
public static toObject(message: replit.goval.api.UpdateReplFlags, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
20835
|
+
|
|
20836
|
+
/**
|
|
20837
|
+
* Converts this UpdateReplFlags to JSON.
|
|
20838
|
+
* @returns JSON object
|
|
20839
|
+
*/
|
|
20840
|
+
public toJSON(): { [k: string]: any };
|
|
20841
|
+
}
|
|
20842
|
+
|
|
20741
20843
|
/** Namespace features. */
|
|
20742
20844
|
namespace features {
|
|
20743
20845
|
|
|
@@ -21018,6 +21120,102 @@ export namespace replit {
|
|
|
21018
21120
|
/** Namespace repl. */
|
|
21019
21121
|
namespace repl {
|
|
21020
21122
|
|
|
21123
|
+
/** Properties of a Buckets. */
|
|
21124
|
+
interface IBuckets {
|
|
21125
|
+
|
|
21126
|
+
/** Buckets snapshots */
|
|
21127
|
+
snapshots?: (string|null);
|
|
21128
|
+
|
|
21129
|
+
/** Buckets metadata */
|
|
21130
|
+
metadata?: (string|null);
|
|
21131
|
+
}
|
|
21132
|
+
|
|
21133
|
+
/** Represents a Buckets. */
|
|
21134
|
+
class Buckets {
|
|
21135
|
+
|
|
21136
|
+
/**
|
|
21137
|
+
* Constructs a new Buckets.
|
|
21138
|
+
* @param [properties] Properties to set
|
|
21139
|
+
*/
|
|
21140
|
+
private constructor(properties?: replit.goval.api.repl.IBuckets);
|
|
21141
|
+
|
|
21142
|
+
/** Buckets snapshots. */
|
|
21143
|
+
public snapshots: string;
|
|
21144
|
+
|
|
21145
|
+
/** Buckets metadata. */
|
|
21146
|
+
public metadata: string;
|
|
21147
|
+
|
|
21148
|
+
/**
|
|
21149
|
+
* Creates a new Buckets instance using the specified properties.
|
|
21150
|
+
* @param [properties] Properties to set
|
|
21151
|
+
* @returns Buckets instance
|
|
21152
|
+
*/
|
|
21153
|
+
public static create(properties?: replit.goval.api.repl.IBuckets): replit.goval.api.repl.Buckets;
|
|
21154
|
+
|
|
21155
|
+
/**
|
|
21156
|
+
* Encodes the specified Buckets message. Does not implicitly {@link replit.goval.api.repl.Buckets.verify|verify} messages.
|
|
21157
|
+
* @param message Buckets message or plain object to encode
|
|
21158
|
+
* @param [writer] Writer to encode to
|
|
21159
|
+
* @returns Writer
|
|
21160
|
+
*/
|
|
21161
|
+
public static encode(message: replit.goval.api.repl.Buckets, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
21162
|
+
|
|
21163
|
+
/**
|
|
21164
|
+
* Encodes the specified Buckets message, length delimited. Does not implicitly {@link replit.goval.api.repl.Buckets.verify|verify} messages.
|
|
21165
|
+
* @param message Buckets message or plain object to encode
|
|
21166
|
+
* @param [writer] Writer to encode to
|
|
21167
|
+
* @returns Writer
|
|
21168
|
+
*/
|
|
21169
|
+
public static encodeDelimited(message: replit.goval.api.repl.Buckets, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
21170
|
+
|
|
21171
|
+
/**
|
|
21172
|
+
* Decodes a Buckets message from the specified reader or buffer.
|
|
21173
|
+
* @param reader Reader or buffer to decode from
|
|
21174
|
+
* @param [length] Message length if known beforehand
|
|
21175
|
+
* @returns Buckets
|
|
21176
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
21177
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
21178
|
+
*/
|
|
21179
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): replit.goval.api.repl.Buckets;
|
|
21180
|
+
|
|
21181
|
+
/**
|
|
21182
|
+
* Decodes a Buckets message from the specified reader or buffer, length delimited.
|
|
21183
|
+
* @param reader Reader or buffer to decode from
|
|
21184
|
+
* @returns Buckets
|
|
21185
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
21186
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
21187
|
+
*/
|
|
21188
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): replit.goval.api.repl.Buckets;
|
|
21189
|
+
|
|
21190
|
+
/**
|
|
21191
|
+
* Verifies a Buckets message.
|
|
21192
|
+
* @param message Plain object to verify
|
|
21193
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
21194
|
+
*/
|
|
21195
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
21196
|
+
|
|
21197
|
+
/**
|
|
21198
|
+
* Creates a Buckets message from a plain object. Also converts values to their respective internal types.
|
|
21199
|
+
* @param object Plain object
|
|
21200
|
+
* @returns Buckets
|
|
21201
|
+
*/
|
|
21202
|
+
public static fromObject(object: { [k: string]: any }): replit.goval.api.repl.Buckets;
|
|
21203
|
+
|
|
21204
|
+
/**
|
|
21205
|
+
* Creates a plain object from a Buckets message. Also converts values to other types if specified.
|
|
21206
|
+
* @param message Buckets
|
|
21207
|
+
* @param [options] Conversion options
|
|
21208
|
+
* @returns Plain object
|
|
21209
|
+
*/
|
|
21210
|
+
public static toObject(message: replit.goval.api.repl.Buckets, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
21211
|
+
|
|
21212
|
+
/**
|
|
21213
|
+
* Converts this Buckets to JSON.
|
|
21214
|
+
* @returns JSON object
|
|
21215
|
+
*/
|
|
21216
|
+
public toJSON(): { [k: string]: any };
|
|
21217
|
+
}
|
|
21218
|
+
|
|
21021
21219
|
/** Properties of a Repl. */
|
|
21022
21220
|
interface IRepl {
|
|
21023
21221
|
|
|
@@ -21041,6 +21239,9 @@ export namespace replit {
|
|
|
21041
21239
|
|
|
21042
21240
|
/** Repl database */
|
|
21043
21241
|
database?: (string|null);
|
|
21242
|
+
|
|
21243
|
+
/** Repl buckets */
|
|
21244
|
+
buckets?: (replit.goval.api.repl.Buckets|replit.goval.api.repl.IBuckets|null);
|
|
21044
21245
|
}
|
|
21045
21246
|
|
|
21046
21247
|
/** Represents a Repl. */
|
|
@@ -21073,6 +21274,9 @@ export namespace replit {
|
|
|
21073
21274
|
/** Repl database. */
|
|
21074
21275
|
public database: string;
|
|
21075
21276
|
|
|
21277
|
+
/** Repl buckets. */
|
|
21278
|
+
public buckets?: (replit.goval.api.repl.Buckets|null);
|
|
21279
|
+
|
|
21076
21280
|
/**
|
|
21077
21281
|
* Creates a new Repl instance using the specified properties.
|
|
21078
21282
|
* @param [properties] Properties to set
|
package/main/index.js
CHANGED
|
@@ -50341,6 +50341,7 @@
|
|
|
50341
50341
|
* @property {replit.goval.api.PartialUpdateMetadata|replit.goval.api.IPartialUpdateMetadata|null} [partialUpdateMetadata] GovalCommand partialUpdateMetadata
|
|
50342
50342
|
* @property {replit.goval.api.KillRepl|replit.goval.api.IKillRepl|null} [killRepl] GovalCommand killRepl
|
|
50343
50343
|
* @property {replit.goval.api.UpdateSourceRepl|replit.goval.api.IUpdateSourceRepl|null} [updateSourceRepl] GovalCommand updateSourceRepl
|
|
50344
|
+
* @property {replit.goval.api.UpdateReplFlags|replit.goval.api.IUpdateReplFlags|null} [updateReplFlags] GovalCommand updateReplFlags
|
|
50344
50345
|
*/
|
|
50345
50346
|
|
|
50346
50347
|
/**
|
|
@@ -50389,17 +50390,25 @@
|
|
|
50389
50390
|
*/
|
|
50390
50391
|
GovalCommand.prototype.updateSourceRepl = null;
|
|
50391
50392
|
|
|
50393
|
+
/**
|
|
50394
|
+
* GovalCommand updateReplFlags.
|
|
50395
|
+
* @member {replit.goval.api.UpdateReplFlags|null|undefined} updateReplFlags
|
|
50396
|
+
* @memberof replit.goval.api.GovalCommand
|
|
50397
|
+
* @instance
|
|
50398
|
+
*/
|
|
50399
|
+
GovalCommand.prototype.updateReplFlags = null;
|
|
50400
|
+
|
|
50392
50401
|
// OneOf field names bound to virtual getters and setters
|
|
50393
50402
|
var $oneOfFields;
|
|
50394
50403
|
|
|
50395
50404
|
/**
|
|
50396
50405
|
* GovalCommand command.
|
|
50397
|
-
* @member {"updateMetadata"|"partialUpdateMetadata"|"killRepl"|"updateSourceRepl"|undefined} command
|
|
50406
|
+
* @member {"updateMetadata"|"partialUpdateMetadata"|"killRepl"|"updateSourceRepl"|"updateReplFlags"|undefined} command
|
|
50398
50407
|
* @memberof replit.goval.api.GovalCommand
|
|
50399
50408
|
* @instance
|
|
50400
50409
|
*/
|
|
50401
50410
|
Object.defineProperty(GovalCommand.prototype, "command", {
|
|
50402
|
-
get: $util.oneOfGetter($oneOfFields = ["updateMetadata", "partialUpdateMetadata", "killRepl", "updateSourceRepl"]),
|
|
50411
|
+
get: $util.oneOfGetter($oneOfFields = ["updateMetadata", "partialUpdateMetadata", "killRepl", "updateSourceRepl", "updateReplFlags"]),
|
|
50403
50412
|
set: $util.oneOfSetter($oneOfFields)
|
|
50404
50413
|
});
|
|
50405
50414
|
|
|
@@ -50435,6 +50444,8 @@
|
|
|
50435
50444
|
$root.replit.goval.api.KillRepl.encode(message.killRepl, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
50436
50445
|
if (message.updateSourceRepl != null && Object.hasOwnProperty.call(message, "updateSourceRepl"))
|
|
50437
50446
|
$root.replit.goval.api.UpdateSourceRepl.encode(message.updateSourceRepl, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
50447
|
+
if (message.updateReplFlags != null && Object.hasOwnProperty.call(message, "updateReplFlags"))
|
|
50448
|
+
$root.replit.goval.api.UpdateReplFlags.encode(message.updateReplFlags, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
|
|
50438
50449
|
return writer;
|
|
50439
50450
|
};
|
|
50440
50451
|
|
|
@@ -50481,6 +50492,9 @@
|
|
|
50481
50492
|
case 4:
|
|
50482
50493
|
message.updateSourceRepl = $root.replit.goval.api.UpdateSourceRepl.decode(reader, reader.uint32());
|
|
50483
50494
|
break;
|
|
50495
|
+
case 5:
|
|
50496
|
+
message.updateReplFlags = $root.replit.goval.api.UpdateReplFlags.decode(reader, reader.uint32());
|
|
50497
|
+
break;
|
|
50484
50498
|
default:
|
|
50485
50499
|
reader.skipType(tag & 7);
|
|
50486
50500
|
break;
|
|
@@ -50555,6 +50569,16 @@
|
|
|
50555
50569
|
return "updateSourceRepl." + error;
|
|
50556
50570
|
}
|
|
50557
50571
|
}
|
|
50572
|
+
if (message.updateReplFlags != null && message.hasOwnProperty("updateReplFlags")) {
|
|
50573
|
+
if (properties.command === 1)
|
|
50574
|
+
return "command: multiple values";
|
|
50575
|
+
properties.command = 1;
|
|
50576
|
+
{
|
|
50577
|
+
var error = $root.replit.goval.api.UpdateReplFlags.verify(message.updateReplFlags);
|
|
50578
|
+
if (error)
|
|
50579
|
+
return "updateReplFlags." + error;
|
|
50580
|
+
}
|
|
50581
|
+
}
|
|
50558
50582
|
return null;
|
|
50559
50583
|
};
|
|
50560
50584
|
|
|
@@ -50590,6 +50614,11 @@
|
|
|
50590
50614
|
throw TypeError(".replit.goval.api.GovalCommand.updateSourceRepl: object expected");
|
|
50591
50615
|
message.updateSourceRepl = $root.replit.goval.api.UpdateSourceRepl.fromObject(object.updateSourceRepl);
|
|
50592
50616
|
}
|
|
50617
|
+
if (object.updateReplFlags != null) {
|
|
50618
|
+
if (typeof object.updateReplFlags !== "object")
|
|
50619
|
+
throw TypeError(".replit.goval.api.GovalCommand.updateReplFlags: object expected");
|
|
50620
|
+
message.updateReplFlags = $root.replit.goval.api.UpdateReplFlags.fromObject(object.updateReplFlags);
|
|
50621
|
+
}
|
|
50593
50622
|
return message;
|
|
50594
50623
|
};
|
|
50595
50624
|
|
|
@@ -50626,6 +50655,11 @@
|
|
|
50626
50655
|
if (options.oneofs)
|
|
50627
50656
|
object.command = "updateSourceRepl";
|
|
50628
50657
|
}
|
|
50658
|
+
if (message.updateReplFlags != null && message.hasOwnProperty("updateReplFlags")) {
|
|
50659
|
+
object.updateReplFlags = $root.replit.goval.api.UpdateReplFlags.toObject(message.updateReplFlags, options);
|
|
50660
|
+
if (options.oneofs)
|
|
50661
|
+
object.command = "updateReplFlags";
|
|
50662
|
+
}
|
|
50629
50663
|
return object;
|
|
50630
50664
|
};
|
|
50631
50665
|
|
|
@@ -51696,6 +51730,231 @@
|
|
|
51696
51730
|
return UpdateSourceRepl;
|
|
51697
51731
|
})();
|
|
51698
51732
|
|
|
51733
|
+
api.UpdateReplFlags = (function() {
|
|
51734
|
+
|
|
51735
|
+
/**
|
|
51736
|
+
* Properties of an UpdateReplFlags.
|
|
51737
|
+
* @memberof replit.goval.api
|
|
51738
|
+
* @interface IUpdateReplFlags
|
|
51739
|
+
* @property {string|null} [replId] UpdateReplFlags replId
|
|
51740
|
+
* @property {Array.<string>|null} [flags] UpdateReplFlags flags
|
|
51741
|
+
*/
|
|
51742
|
+
|
|
51743
|
+
/**
|
|
51744
|
+
* Constructs a new UpdateReplFlags.
|
|
51745
|
+
* @memberof replit.goval.api
|
|
51746
|
+
* @classdesc Represents an UpdateReplFlags.
|
|
51747
|
+
* @constructor
|
|
51748
|
+
* @param {replit.goval.api.IUpdateReplFlags=} [properties] Properties to set
|
|
51749
|
+
*/
|
|
51750
|
+
function UpdateReplFlags(properties) {
|
|
51751
|
+
this.flags = [];
|
|
51752
|
+
if (properties)
|
|
51753
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
51754
|
+
if (properties[keys[i]] != null)
|
|
51755
|
+
this[keys[i]] = properties[keys[i]];
|
|
51756
|
+
}
|
|
51757
|
+
|
|
51758
|
+
/**
|
|
51759
|
+
* UpdateReplFlags replId.
|
|
51760
|
+
* @member {string} replId
|
|
51761
|
+
* @memberof replit.goval.api.UpdateReplFlags
|
|
51762
|
+
* @instance
|
|
51763
|
+
*/
|
|
51764
|
+
UpdateReplFlags.prototype.replId = "";
|
|
51765
|
+
|
|
51766
|
+
/**
|
|
51767
|
+
* UpdateReplFlags flags.
|
|
51768
|
+
* @member {Array.<string>} flags
|
|
51769
|
+
* @memberof replit.goval.api.UpdateReplFlags
|
|
51770
|
+
* @instance
|
|
51771
|
+
*/
|
|
51772
|
+
UpdateReplFlags.prototype.flags = $util.emptyArray;
|
|
51773
|
+
|
|
51774
|
+
/**
|
|
51775
|
+
* Creates a new UpdateReplFlags instance using the specified properties.
|
|
51776
|
+
* @function create
|
|
51777
|
+
* @memberof replit.goval.api.UpdateReplFlags
|
|
51778
|
+
* @static
|
|
51779
|
+
* @param {replit.goval.api.IUpdateReplFlags=} [properties] Properties to set
|
|
51780
|
+
* @returns {replit.goval.api.UpdateReplFlags} UpdateReplFlags instance
|
|
51781
|
+
*/
|
|
51782
|
+
UpdateReplFlags.create = function create(properties) {
|
|
51783
|
+
return UpdateReplFlags.fromObject(properties);
|
|
51784
|
+
};
|
|
51785
|
+
|
|
51786
|
+
/**
|
|
51787
|
+
* Encodes the specified UpdateReplFlags message. Does not implicitly {@link replit.goval.api.UpdateReplFlags.verify|verify} messages.
|
|
51788
|
+
* @function encode
|
|
51789
|
+
* @memberof replit.goval.api.UpdateReplFlags
|
|
51790
|
+
* @static
|
|
51791
|
+
* @param {replit.goval.api.UpdateReplFlags} message UpdateReplFlags message or plain object to encode
|
|
51792
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
51793
|
+
* @returns {$protobuf.Writer} Writer
|
|
51794
|
+
*/
|
|
51795
|
+
UpdateReplFlags.encode = function encode(message, writer) {
|
|
51796
|
+
if (!writer)
|
|
51797
|
+
writer = $Writer.create();
|
|
51798
|
+
if (message.replId != null && Object.hasOwnProperty.call(message, "replId"))
|
|
51799
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.replId);
|
|
51800
|
+
if (message.flags != null && message.flags.length)
|
|
51801
|
+
for (var i = 0; i < message.flags.length; ++i)
|
|
51802
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.flags[i]);
|
|
51803
|
+
return writer;
|
|
51804
|
+
};
|
|
51805
|
+
|
|
51806
|
+
/**
|
|
51807
|
+
* Encodes the specified UpdateReplFlags message, length delimited. Does not implicitly {@link replit.goval.api.UpdateReplFlags.verify|verify} messages.
|
|
51808
|
+
* @function encodeDelimited
|
|
51809
|
+
* @memberof replit.goval.api.UpdateReplFlags
|
|
51810
|
+
* @static
|
|
51811
|
+
* @param {replit.goval.api.UpdateReplFlags} message UpdateReplFlags message or plain object to encode
|
|
51812
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
51813
|
+
* @returns {$protobuf.Writer} Writer
|
|
51814
|
+
*/
|
|
51815
|
+
UpdateReplFlags.encodeDelimited = function encodeDelimited(message, writer) {
|
|
51816
|
+
return this.encode(message, writer).ldelim();
|
|
51817
|
+
};
|
|
51818
|
+
|
|
51819
|
+
/**
|
|
51820
|
+
* Decodes an UpdateReplFlags message from the specified reader or buffer.
|
|
51821
|
+
* @function decode
|
|
51822
|
+
* @memberof replit.goval.api.UpdateReplFlags
|
|
51823
|
+
* @static
|
|
51824
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
51825
|
+
* @param {number} [length] Message length if known beforehand
|
|
51826
|
+
* @returns {replit.goval.api.UpdateReplFlags} UpdateReplFlags
|
|
51827
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
51828
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
51829
|
+
*/
|
|
51830
|
+
UpdateReplFlags.decode = function decode(reader, length) {
|
|
51831
|
+
if (!(reader instanceof $Reader))
|
|
51832
|
+
reader = $Reader.create(reader);
|
|
51833
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.UpdateReplFlags();
|
|
51834
|
+
while (reader.pos < end) {
|
|
51835
|
+
var tag = reader.uint32();
|
|
51836
|
+
switch (tag >>> 3) {
|
|
51837
|
+
case 1:
|
|
51838
|
+
message.replId = reader.string();
|
|
51839
|
+
break;
|
|
51840
|
+
case 2:
|
|
51841
|
+
if (!(message.flags && message.flags.length))
|
|
51842
|
+
message.flags = [];
|
|
51843
|
+
message.flags.push(reader.string());
|
|
51844
|
+
break;
|
|
51845
|
+
default:
|
|
51846
|
+
reader.skipType(tag & 7);
|
|
51847
|
+
break;
|
|
51848
|
+
}
|
|
51849
|
+
}
|
|
51850
|
+
return message;
|
|
51851
|
+
};
|
|
51852
|
+
|
|
51853
|
+
/**
|
|
51854
|
+
* Decodes an UpdateReplFlags message from the specified reader or buffer, length delimited.
|
|
51855
|
+
* @function decodeDelimited
|
|
51856
|
+
* @memberof replit.goval.api.UpdateReplFlags
|
|
51857
|
+
* @static
|
|
51858
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
51859
|
+
* @returns {replit.goval.api.UpdateReplFlags} UpdateReplFlags
|
|
51860
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
51861
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
51862
|
+
*/
|
|
51863
|
+
UpdateReplFlags.decodeDelimited = function decodeDelimited(reader) {
|
|
51864
|
+
if (!(reader instanceof $Reader))
|
|
51865
|
+
reader = new $Reader(reader);
|
|
51866
|
+
return this.decode(reader, reader.uint32());
|
|
51867
|
+
};
|
|
51868
|
+
|
|
51869
|
+
/**
|
|
51870
|
+
* Verifies an UpdateReplFlags message.
|
|
51871
|
+
* @function verify
|
|
51872
|
+
* @memberof replit.goval.api.UpdateReplFlags
|
|
51873
|
+
* @static
|
|
51874
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
51875
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
51876
|
+
*/
|
|
51877
|
+
UpdateReplFlags.verify = function verify(message) {
|
|
51878
|
+
if (typeof message !== "object" || message === null)
|
|
51879
|
+
return "object expected";
|
|
51880
|
+
if (message.replId != null && message.hasOwnProperty("replId"))
|
|
51881
|
+
if (!$util.isString(message.replId))
|
|
51882
|
+
return "replId: string expected";
|
|
51883
|
+
if (message.flags != null && message.hasOwnProperty("flags")) {
|
|
51884
|
+
if (!Array.isArray(message.flags))
|
|
51885
|
+
return "flags: array expected";
|
|
51886
|
+
for (var i = 0; i < message.flags.length; ++i)
|
|
51887
|
+
if (!$util.isString(message.flags[i]))
|
|
51888
|
+
return "flags: string[] expected";
|
|
51889
|
+
}
|
|
51890
|
+
return null;
|
|
51891
|
+
};
|
|
51892
|
+
|
|
51893
|
+
/**
|
|
51894
|
+
* Creates an UpdateReplFlags message from a plain object. Also converts values to their respective internal types.
|
|
51895
|
+
* @function fromObject
|
|
51896
|
+
* @memberof replit.goval.api.UpdateReplFlags
|
|
51897
|
+
* @static
|
|
51898
|
+
* @param {Object.<string,*>} object Plain object
|
|
51899
|
+
* @returns {replit.goval.api.UpdateReplFlags} UpdateReplFlags
|
|
51900
|
+
*/
|
|
51901
|
+
UpdateReplFlags.fromObject = function fromObject(object) {
|
|
51902
|
+
if (object instanceof $root.replit.goval.api.UpdateReplFlags)
|
|
51903
|
+
return object;
|
|
51904
|
+
var message = new $root.replit.goval.api.UpdateReplFlags();
|
|
51905
|
+
if (object.replId != null)
|
|
51906
|
+
message.replId = String(object.replId);
|
|
51907
|
+
if (object.flags) {
|
|
51908
|
+
if (!Array.isArray(object.flags))
|
|
51909
|
+
throw TypeError(".replit.goval.api.UpdateReplFlags.flags: array expected");
|
|
51910
|
+
message.flags = [];
|
|
51911
|
+
for (var i = 0; i < object.flags.length; ++i)
|
|
51912
|
+
message.flags[i] = String(object.flags[i]);
|
|
51913
|
+
}
|
|
51914
|
+
return message;
|
|
51915
|
+
};
|
|
51916
|
+
|
|
51917
|
+
/**
|
|
51918
|
+
* Creates a plain object from an UpdateReplFlags message. Also converts values to other types if specified.
|
|
51919
|
+
* @function toObject
|
|
51920
|
+
* @memberof replit.goval.api.UpdateReplFlags
|
|
51921
|
+
* @static
|
|
51922
|
+
* @param {replit.goval.api.UpdateReplFlags} message UpdateReplFlags
|
|
51923
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
51924
|
+
* @returns {Object.<string,*>} Plain object
|
|
51925
|
+
*/
|
|
51926
|
+
UpdateReplFlags.toObject = function toObject(message, options) {
|
|
51927
|
+
if (!options)
|
|
51928
|
+
options = {};
|
|
51929
|
+
var object = {};
|
|
51930
|
+
if (options.arrays || options.defaults)
|
|
51931
|
+
object.flags = [];
|
|
51932
|
+
if (options.defaults)
|
|
51933
|
+
object.replId = "";
|
|
51934
|
+
if (message.replId != null && message.hasOwnProperty("replId"))
|
|
51935
|
+
object.replId = message.replId;
|
|
51936
|
+
if (message.flags && message.flags.length) {
|
|
51937
|
+
object.flags = [];
|
|
51938
|
+
for (var j = 0; j < message.flags.length; ++j)
|
|
51939
|
+
object.flags[j] = message.flags[j];
|
|
51940
|
+
}
|
|
51941
|
+
return object;
|
|
51942
|
+
};
|
|
51943
|
+
|
|
51944
|
+
/**
|
|
51945
|
+
* Converts this UpdateReplFlags to JSON.
|
|
51946
|
+
* @function toJSON
|
|
51947
|
+
* @memberof replit.goval.api.UpdateReplFlags
|
|
51948
|
+
* @instance
|
|
51949
|
+
* @returns {Object.<string,*>} JSON object
|
|
51950
|
+
*/
|
|
51951
|
+
UpdateReplFlags.prototype.toJSON = function toJSON() {
|
|
51952
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
51953
|
+
};
|
|
51954
|
+
|
|
51955
|
+
return UpdateReplFlags;
|
|
51956
|
+
})();
|
|
51957
|
+
|
|
51699
51958
|
api.features = (function() {
|
|
51700
51959
|
|
|
51701
51960
|
/**
|
|
@@ -52302,6 +52561,215 @@
|
|
|
52302
52561
|
*/
|
|
52303
52562
|
var repl = {};
|
|
52304
52563
|
|
|
52564
|
+
repl.Buckets = (function() {
|
|
52565
|
+
|
|
52566
|
+
/**
|
|
52567
|
+
* Properties of a Buckets.
|
|
52568
|
+
* @memberof replit.goval.api.repl
|
|
52569
|
+
* @interface IBuckets
|
|
52570
|
+
* @property {string|null} [snapshots] Buckets snapshots
|
|
52571
|
+
* @property {string|null} [metadata] Buckets metadata
|
|
52572
|
+
*/
|
|
52573
|
+
|
|
52574
|
+
/**
|
|
52575
|
+
* Constructs a new Buckets.
|
|
52576
|
+
* @memberof replit.goval.api.repl
|
|
52577
|
+
* @classdesc Represents a Buckets.
|
|
52578
|
+
* @constructor
|
|
52579
|
+
* @param {replit.goval.api.repl.IBuckets=} [properties] Properties to set
|
|
52580
|
+
*/
|
|
52581
|
+
function Buckets(properties) {
|
|
52582
|
+
if (properties)
|
|
52583
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
52584
|
+
if (properties[keys[i]] != null)
|
|
52585
|
+
this[keys[i]] = properties[keys[i]];
|
|
52586
|
+
}
|
|
52587
|
+
|
|
52588
|
+
/**
|
|
52589
|
+
* Buckets snapshots.
|
|
52590
|
+
* @member {string} snapshots
|
|
52591
|
+
* @memberof replit.goval.api.repl.Buckets
|
|
52592
|
+
* @instance
|
|
52593
|
+
*/
|
|
52594
|
+
Buckets.prototype.snapshots = "";
|
|
52595
|
+
|
|
52596
|
+
/**
|
|
52597
|
+
* Buckets metadata.
|
|
52598
|
+
* @member {string} metadata
|
|
52599
|
+
* @memberof replit.goval.api.repl.Buckets
|
|
52600
|
+
* @instance
|
|
52601
|
+
*/
|
|
52602
|
+
Buckets.prototype.metadata = "";
|
|
52603
|
+
|
|
52604
|
+
/**
|
|
52605
|
+
* Creates a new Buckets instance using the specified properties.
|
|
52606
|
+
* @function create
|
|
52607
|
+
* @memberof replit.goval.api.repl.Buckets
|
|
52608
|
+
* @static
|
|
52609
|
+
* @param {replit.goval.api.repl.IBuckets=} [properties] Properties to set
|
|
52610
|
+
* @returns {replit.goval.api.repl.Buckets} Buckets instance
|
|
52611
|
+
*/
|
|
52612
|
+
Buckets.create = function create(properties) {
|
|
52613
|
+
return Buckets.fromObject(properties);
|
|
52614
|
+
};
|
|
52615
|
+
|
|
52616
|
+
/**
|
|
52617
|
+
* Encodes the specified Buckets message. Does not implicitly {@link replit.goval.api.repl.Buckets.verify|verify} messages.
|
|
52618
|
+
* @function encode
|
|
52619
|
+
* @memberof replit.goval.api.repl.Buckets
|
|
52620
|
+
* @static
|
|
52621
|
+
* @param {replit.goval.api.repl.Buckets} message Buckets message or plain object to encode
|
|
52622
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
52623
|
+
* @returns {$protobuf.Writer} Writer
|
|
52624
|
+
*/
|
|
52625
|
+
Buckets.encode = function encode(message, writer) {
|
|
52626
|
+
if (!writer)
|
|
52627
|
+
writer = $Writer.create();
|
|
52628
|
+
if (message.snapshots != null && Object.hasOwnProperty.call(message, "snapshots"))
|
|
52629
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.snapshots);
|
|
52630
|
+
if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata"))
|
|
52631
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.metadata);
|
|
52632
|
+
return writer;
|
|
52633
|
+
};
|
|
52634
|
+
|
|
52635
|
+
/**
|
|
52636
|
+
* Encodes the specified Buckets message, length delimited. Does not implicitly {@link replit.goval.api.repl.Buckets.verify|verify} messages.
|
|
52637
|
+
* @function encodeDelimited
|
|
52638
|
+
* @memberof replit.goval.api.repl.Buckets
|
|
52639
|
+
* @static
|
|
52640
|
+
* @param {replit.goval.api.repl.Buckets} message Buckets message or plain object to encode
|
|
52641
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
52642
|
+
* @returns {$protobuf.Writer} Writer
|
|
52643
|
+
*/
|
|
52644
|
+
Buckets.encodeDelimited = function encodeDelimited(message, writer) {
|
|
52645
|
+
return this.encode(message, writer).ldelim();
|
|
52646
|
+
};
|
|
52647
|
+
|
|
52648
|
+
/**
|
|
52649
|
+
* Decodes a Buckets message from the specified reader or buffer.
|
|
52650
|
+
* @function decode
|
|
52651
|
+
* @memberof replit.goval.api.repl.Buckets
|
|
52652
|
+
* @static
|
|
52653
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
52654
|
+
* @param {number} [length] Message length if known beforehand
|
|
52655
|
+
* @returns {replit.goval.api.repl.Buckets} Buckets
|
|
52656
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
52657
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
52658
|
+
*/
|
|
52659
|
+
Buckets.decode = function decode(reader, length) {
|
|
52660
|
+
if (!(reader instanceof $Reader))
|
|
52661
|
+
reader = $Reader.create(reader);
|
|
52662
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.repl.Buckets();
|
|
52663
|
+
while (reader.pos < end) {
|
|
52664
|
+
var tag = reader.uint32();
|
|
52665
|
+
switch (tag >>> 3) {
|
|
52666
|
+
case 1:
|
|
52667
|
+
message.snapshots = reader.string();
|
|
52668
|
+
break;
|
|
52669
|
+
case 2:
|
|
52670
|
+
message.metadata = reader.string();
|
|
52671
|
+
break;
|
|
52672
|
+
default:
|
|
52673
|
+
reader.skipType(tag & 7);
|
|
52674
|
+
break;
|
|
52675
|
+
}
|
|
52676
|
+
}
|
|
52677
|
+
return message;
|
|
52678
|
+
};
|
|
52679
|
+
|
|
52680
|
+
/**
|
|
52681
|
+
* Decodes a Buckets message from the specified reader or buffer, length delimited.
|
|
52682
|
+
* @function decodeDelimited
|
|
52683
|
+
* @memberof replit.goval.api.repl.Buckets
|
|
52684
|
+
* @static
|
|
52685
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
52686
|
+
* @returns {replit.goval.api.repl.Buckets} Buckets
|
|
52687
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
52688
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
52689
|
+
*/
|
|
52690
|
+
Buckets.decodeDelimited = function decodeDelimited(reader) {
|
|
52691
|
+
if (!(reader instanceof $Reader))
|
|
52692
|
+
reader = new $Reader(reader);
|
|
52693
|
+
return this.decode(reader, reader.uint32());
|
|
52694
|
+
};
|
|
52695
|
+
|
|
52696
|
+
/**
|
|
52697
|
+
* Verifies a Buckets message.
|
|
52698
|
+
* @function verify
|
|
52699
|
+
* @memberof replit.goval.api.repl.Buckets
|
|
52700
|
+
* @static
|
|
52701
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
52702
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
52703
|
+
*/
|
|
52704
|
+
Buckets.verify = function verify(message) {
|
|
52705
|
+
if (typeof message !== "object" || message === null)
|
|
52706
|
+
return "object expected";
|
|
52707
|
+
if (message.snapshots != null && message.hasOwnProperty("snapshots"))
|
|
52708
|
+
if (!$util.isString(message.snapshots))
|
|
52709
|
+
return "snapshots: string expected";
|
|
52710
|
+
if (message.metadata != null && message.hasOwnProperty("metadata"))
|
|
52711
|
+
if (!$util.isString(message.metadata))
|
|
52712
|
+
return "metadata: string expected";
|
|
52713
|
+
return null;
|
|
52714
|
+
};
|
|
52715
|
+
|
|
52716
|
+
/**
|
|
52717
|
+
* Creates a Buckets message from a plain object. Also converts values to their respective internal types.
|
|
52718
|
+
* @function fromObject
|
|
52719
|
+
* @memberof replit.goval.api.repl.Buckets
|
|
52720
|
+
* @static
|
|
52721
|
+
* @param {Object.<string,*>} object Plain object
|
|
52722
|
+
* @returns {replit.goval.api.repl.Buckets} Buckets
|
|
52723
|
+
*/
|
|
52724
|
+
Buckets.fromObject = function fromObject(object) {
|
|
52725
|
+
if (object instanceof $root.replit.goval.api.repl.Buckets)
|
|
52726
|
+
return object;
|
|
52727
|
+
var message = new $root.replit.goval.api.repl.Buckets();
|
|
52728
|
+
if (object.snapshots != null)
|
|
52729
|
+
message.snapshots = String(object.snapshots);
|
|
52730
|
+
if (object.metadata != null)
|
|
52731
|
+
message.metadata = String(object.metadata);
|
|
52732
|
+
return message;
|
|
52733
|
+
};
|
|
52734
|
+
|
|
52735
|
+
/**
|
|
52736
|
+
* Creates a plain object from a Buckets message. Also converts values to other types if specified.
|
|
52737
|
+
* @function toObject
|
|
52738
|
+
* @memberof replit.goval.api.repl.Buckets
|
|
52739
|
+
* @static
|
|
52740
|
+
* @param {replit.goval.api.repl.Buckets} message Buckets
|
|
52741
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
52742
|
+
* @returns {Object.<string,*>} Plain object
|
|
52743
|
+
*/
|
|
52744
|
+
Buckets.toObject = function toObject(message, options) {
|
|
52745
|
+
if (!options)
|
|
52746
|
+
options = {};
|
|
52747
|
+
var object = {};
|
|
52748
|
+
if (options.defaults) {
|
|
52749
|
+
object.snapshots = "";
|
|
52750
|
+
object.metadata = "";
|
|
52751
|
+
}
|
|
52752
|
+
if (message.snapshots != null && message.hasOwnProperty("snapshots"))
|
|
52753
|
+
object.snapshots = message.snapshots;
|
|
52754
|
+
if (message.metadata != null && message.hasOwnProperty("metadata"))
|
|
52755
|
+
object.metadata = message.metadata;
|
|
52756
|
+
return object;
|
|
52757
|
+
};
|
|
52758
|
+
|
|
52759
|
+
/**
|
|
52760
|
+
* Converts this Buckets to JSON.
|
|
52761
|
+
* @function toJSON
|
|
52762
|
+
* @memberof replit.goval.api.repl.Buckets
|
|
52763
|
+
* @instance
|
|
52764
|
+
* @returns {Object.<string,*>} JSON object
|
|
52765
|
+
*/
|
|
52766
|
+
Buckets.prototype.toJSON = function toJSON() {
|
|
52767
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
52768
|
+
};
|
|
52769
|
+
|
|
52770
|
+
return Buckets;
|
|
52771
|
+
})();
|
|
52772
|
+
|
|
52305
52773
|
repl.Repl = (function() {
|
|
52306
52774
|
|
|
52307
52775
|
/**
|
|
@@ -52315,6 +52783,7 @@
|
|
|
52315
52783
|
* @property {string|null} [user] Repl user
|
|
52316
52784
|
* @property {string|null} [sourceRepl] Repl sourceRepl
|
|
52317
52785
|
* @property {string|null} [database] Repl database
|
|
52786
|
+
* @property {replit.goval.api.repl.Buckets|replit.goval.api.repl.IBuckets|null} [buckets] Repl buckets
|
|
52318
52787
|
*/
|
|
52319
52788
|
|
|
52320
52789
|
/**
|
|
@@ -52387,6 +52856,14 @@
|
|
|
52387
52856
|
*/
|
|
52388
52857
|
Repl.prototype.database = "";
|
|
52389
52858
|
|
|
52859
|
+
/**
|
|
52860
|
+
* Repl buckets.
|
|
52861
|
+
* @member {replit.goval.api.repl.Buckets|null|undefined} buckets
|
|
52862
|
+
* @memberof replit.goval.api.repl.Repl
|
|
52863
|
+
* @instance
|
|
52864
|
+
*/
|
|
52865
|
+
Repl.prototype.buckets = null;
|
|
52866
|
+
|
|
52390
52867
|
/**
|
|
52391
52868
|
* Creates a new Repl instance using the specified properties.
|
|
52392
52869
|
* @function create
|
|
@@ -52425,6 +52902,8 @@
|
|
|
52425
52902
|
writer.uint32(/* id 6, wireType 2 =*/50).string(message.sourceRepl);
|
|
52426
52903
|
if (message.database != null && Object.hasOwnProperty.call(message, "database"))
|
|
52427
52904
|
writer.uint32(/* id 7, wireType 2 =*/58).string(message.database);
|
|
52905
|
+
if (message.buckets != null && Object.hasOwnProperty.call(message, "buckets"))
|
|
52906
|
+
$root.replit.goval.api.repl.Buckets.encode(message.buckets, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
|
|
52428
52907
|
return writer;
|
|
52429
52908
|
};
|
|
52430
52909
|
|
|
@@ -52480,6 +52959,9 @@
|
|
|
52480
52959
|
case 7:
|
|
52481
52960
|
message.database = reader.string();
|
|
52482
52961
|
break;
|
|
52962
|
+
case 8:
|
|
52963
|
+
message.buckets = $root.replit.goval.api.repl.Buckets.decode(reader, reader.uint32());
|
|
52964
|
+
break;
|
|
52483
52965
|
default:
|
|
52484
52966
|
reader.skipType(tag & 7);
|
|
52485
52967
|
break;
|
|
@@ -52536,6 +53018,11 @@
|
|
|
52536
53018
|
if (message.database != null && message.hasOwnProperty("database"))
|
|
52537
53019
|
if (!$util.isString(message.database))
|
|
52538
53020
|
return "database: string expected";
|
|
53021
|
+
if (message.buckets != null && message.hasOwnProperty("buckets")) {
|
|
53022
|
+
var error = $root.replit.goval.api.repl.Buckets.verify(message.buckets);
|
|
53023
|
+
if (error)
|
|
53024
|
+
return "buckets." + error;
|
|
53025
|
+
}
|
|
52539
53026
|
return null;
|
|
52540
53027
|
};
|
|
52541
53028
|
|
|
@@ -52565,6 +53052,11 @@
|
|
|
52565
53052
|
message.sourceRepl = String(object.sourceRepl);
|
|
52566
53053
|
if (object.database != null)
|
|
52567
53054
|
message.database = String(object.database);
|
|
53055
|
+
if (object.buckets != null) {
|
|
53056
|
+
if (typeof object.buckets !== "object")
|
|
53057
|
+
throw TypeError(".replit.goval.api.repl.Repl.buckets: object expected");
|
|
53058
|
+
message.buckets = $root.replit.goval.api.repl.Buckets.fromObject(object.buckets);
|
|
53059
|
+
}
|
|
52568
53060
|
return message;
|
|
52569
53061
|
};
|
|
52570
53062
|
|
|
@@ -52589,6 +53081,7 @@
|
|
|
52589
53081
|
object.user = "";
|
|
52590
53082
|
object.sourceRepl = "";
|
|
52591
53083
|
object.database = "";
|
|
53084
|
+
object.buckets = null;
|
|
52592
53085
|
}
|
|
52593
53086
|
if (message.id != null && message.hasOwnProperty("id"))
|
|
52594
53087
|
object.id = message.id;
|
|
@@ -52604,6 +53097,8 @@
|
|
|
52604
53097
|
object.sourceRepl = message.sourceRepl;
|
|
52605
53098
|
if (message.database != null && message.hasOwnProperty("database"))
|
|
52606
53099
|
object.database = message.database;
|
|
53100
|
+
if (message.buckets != null && message.hasOwnProperty("buckets"))
|
|
53101
|
+
object.buckets = $root.replit.goval.api.repl.Buckets.toObject(message.buckets, options);
|
|
52607
53102
|
return object;
|
|
52608
53103
|
};
|
|
52609
53104
|
|
package/main/index.js.flow
CHANGED
|
@@ -216,6 +216,7 @@ declare var npm$namespace$replit$goval$api: {|
|
|
|
216
216
|
IKillRepl: Class<replit$goval$api$IKillRepl>,
|
|
217
217
|
IRestore: Class<replit$goval$api$IRestore>,
|
|
218
218
|
IUpdateSourceRepl: Class<replit$goval$api$IUpdateSourceRepl>,
|
|
219
|
+
IUpdateReplFlags: Class<replit$goval$api$IUpdateReplFlags>,
|
|
219
220
|
Command: typeof replit$goval$api$Command,
|
|
220
221
|
NixPackageAddRequest: typeof replit$goval$api$NixPackageAddRequest,
|
|
221
222
|
NixPackageAddResponse: typeof replit$goval$api$NixPackageAddResponse,
|
|
@@ -411,6 +412,7 @@ declare var npm$namespace$replit$goval$api: {|
|
|
|
411
412
|
KillRepl: typeof replit$goval$api$KillRepl,
|
|
412
413
|
Restore: typeof replit$goval$api$Restore,
|
|
413
414
|
UpdateSourceRepl: typeof replit$goval$api$UpdateSourceRepl,
|
|
415
|
+
UpdateReplFlags: typeof replit$goval$api$UpdateReplFlags,
|
|
414
416
|
features: typeof npm$namespace$replit$goval$api$features,
|
|
415
417
|
repl: typeof npm$namespace$replit$goval$api$repl,
|
|
416
418
|
|};
|
|
@@ -28737,6 +28739,14 @@ declare type replit$goval$api$IGovalCommand = {|
|
|
|
28737
28739
|
| replit$goval$api$UpdateSourceRepl
|
|
28738
28740
|
| replit$goval$api$IUpdateSourceRepl
|
|
28739
28741
|
| null,
|
|
28742
|
+
|
|
28743
|
+
/**
|
|
28744
|
+
* GovalCommand updateReplFlags
|
|
28745
|
+
*/
|
|
28746
|
+
updateReplFlags?:
|
|
28747
|
+
| replit$goval$api$UpdateReplFlags
|
|
28748
|
+
| replit$goval$api$IUpdateReplFlags
|
|
28749
|
+
| null,
|
|
28740
28750
|
|};
|
|
28741
28751
|
|
|
28742
28752
|
/**
|
|
@@ -28769,6 +28779,11 @@ declare class replit$goval$api$GovalCommand {
|
|
|
28769
28779
|
*/
|
|
28770
28780
|
updateSourceRepl?: replit$goval$api$UpdateSourceRepl | null;
|
|
28771
28781
|
|
|
28782
|
+
/**
|
|
28783
|
+
* GovalCommand updateReplFlags.
|
|
28784
|
+
*/
|
|
28785
|
+
updateReplFlags?: replit$goval$api$UpdateReplFlags | null;
|
|
28786
|
+
|
|
28772
28787
|
/**
|
|
28773
28788
|
* GovalCommand command.
|
|
28774
28789
|
*/
|
|
@@ -28776,7 +28791,8 @@ declare class replit$goval$api$GovalCommand {
|
|
|
28776
28791
|
| "updateMetadata"
|
|
28777
28792
|
| "partialUpdateMetadata"
|
|
28778
28793
|
| "killRepl"
|
|
28779
|
-
| "updateSourceRepl"
|
|
28794
|
+
| "updateSourceRepl"
|
|
28795
|
+
| "updateReplFlags";
|
|
28780
28796
|
|
|
28781
28797
|
/**
|
|
28782
28798
|
* Creates a new GovalCommand instance using the specified properties.
|
|
@@ -29518,6 +29534,136 @@ declare class replit$goval$api$UpdateSourceRepl {
|
|
|
29518
29534
|
|};
|
|
29519
29535
|
}
|
|
29520
29536
|
|
|
29537
|
+
/**
|
|
29538
|
+
* Properties of an UpdateReplFlags.
|
|
29539
|
+
*/
|
|
29540
|
+
declare type replit$goval$api$IUpdateReplFlags = {|
|
|
29541
|
+
/**
|
|
29542
|
+
* UpdateReplFlags replId
|
|
29543
|
+
*/
|
|
29544
|
+
replId?: string | null,
|
|
29545
|
+
|
|
29546
|
+
/**
|
|
29547
|
+
* UpdateReplFlags flags
|
|
29548
|
+
*/
|
|
29549
|
+
flags?: string[] | null,
|
|
29550
|
+
|};
|
|
29551
|
+
|
|
29552
|
+
/**
|
|
29553
|
+
* Represents an UpdateReplFlags.
|
|
29554
|
+
*/
|
|
29555
|
+
declare class replit$goval$api$UpdateReplFlags {
|
|
29556
|
+
/**
|
|
29557
|
+
* Constructs a new UpdateReplFlags.
|
|
29558
|
+
* @param [properties] Properties to set
|
|
29559
|
+
*/
|
|
29560
|
+
constructor(properties?: replit$goval$api$IUpdateReplFlags): this;
|
|
29561
|
+
|
|
29562
|
+
/**
|
|
29563
|
+
* UpdateReplFlags replId.
|
|
29564
|
+
*/
|
|
29565
|
+
replId: string;
|
|
29566
|
+
|
|
29567
|
+
/**
|
|
29568
|
+
* UpdateReplFlags flags.
|
|
29569
|
+
*/
|
|
29570
|
+
flags: string[];
|
|
29571
|
+
|
|
29572
|
+
/**
|
|
29573
|
+
* Creates a new UpdateReplFlags instance using the specified properties.
|
|
29574
|
+
* @param [properties] Properties to set
|
|
29575
|
+
* @returns UpdateReplFlags instance
|
|
29576
|
+
*/
|
|
29577
|
+
static create(
|
|
29578
|
+
properties?: replit$goval$api$IUpdateReplFlags
|
|
29579
|
+
): replit$goval$api$UpdateReplFlags;
|
|
29580
|
+
|
|
29581
|
+
/**
|
|
29582
|
+
* [object Object],[object Object],[object Object]
|
|
29583
|
+
* @param message UpdateReplFlags message or plain object to encode
|
|
29584
|
+
* @param [writer] Writer to encode to
|
|
29585
|
+
* @returns Writer
|
|
29586
|
+
*/
|
|
29587
|
+
static encode(
|
|
29588
|
+
message: replit$goval$api$UpdateReplFlags,
|
|
29589
|
+
writer?: $protobuf.Writer
|
|
29590
|
+
): $protobuf.Writer;
|
|
29591
|
+
|
|
29592
|
+
/**
|
|
29593
|
+
* [object Object],[object Object],[object Object]
|
|
29594
|
+
* @param message UpdateReplFlags message or plain object to encode
|
|
29595
|
+
* @param [writer] Writer to encode to
|
|
29596
|
+
* @returns Writer
|
|
29597
|
+
*/
|
|
29598
|
+
static encodeDelimited(
|
|
29599
|
+
message: replit$goval$api$UpdateReplFlags,
|
|
29600
|
+
writer?: $protobuf.Writer
|
|
29601
|
+
): $protobuf.Writer;
|
|
29602
|
+
|
|
29603
|
+
/**
|
|
29604
|
+
* Decodes an UpdateReplFlags message from the specified reader or buffer.
|
|
29605
|
+
* @param reader Reader or buffer to decode from
|
|
29606
|
+
* @param [length] Message length if known beforehand
|
|
29607
|
+
* @returns UpdateReplFlags
|
|
29608
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
29609
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
29610
|
+
*/
|
|
29611
|
+
static decode(
|
|
29612
|
+
reader: $protobuf.Reader | Uint8Array,
|
|
29613
|
+
length?: number
|
|
29614
|
+
): replit$goval$api$UpdateReplFlags;
|
|
29615
|
+
|
|
29616
|
+
/**
|
|
29617
|
+
* Decodes an UpdateReplFlags message from the specified reader or buffer, length delimited.
|
|
29618
|
+
* @param reader Reader or buffer to decode from
|
|
29619
|
+
* @returns UpdateReplFlags
|
|
29620
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
29621
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
29622
|
+
*/
|
|
29623
|
+
static decodeDelimited(
|
|
29624
|
+
reader: $protobuf.Reader | Uint8Array
|
|
29625
|
+
): replit$goval$api$UpdateReplFlags;
|
|
29626
|
+
|
|
29627
|
+
/**
|
|
29628
|
+
* Verifies an UpdateReplFlags message.
|
|
29629
|
+
* @param message Plain object to verify
|
|
29630
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
29631
|
+
*/
|
|
29632
|
+
static verify(message: {|
|
|
29633
|
+
[k: string]: any,
|
|
29634
|
+
|}): string | null;
|
|
29635
|
+
|
|
29636
|
+
/**
|
|
29637
|
+
* Creates an UpdateReplFlags message from a plain object. Also converts values to their respective internal types.
|
|
29638
|
+
* @param object Plain object
|
|
29639
|
+
* @returns UpdateReplFlags
|
|
29640
|
+
*/
|
|
29641
|
+
static fromObject(object: {|
|
|
29642
|
+
[k: string]: any,
|
|
29643
|
+
|}): replit$goval$api$UpdateReplFlags;
|
|
29644
|
+
|
|
29645
|
+
/**
|
|
29646
|
+
* Creates a plain object from an UpdateReplFlags message. Also converts values to other types if specified.
|
|
29647
|
+
* @param message UpdateReplFlags
|
|
29648
|
+
* @param [options] Conversion options
|
|
29649
|
+
* @returns Plain object
|
|
29650
|
+
*/
|
|
29651
|
+
static toObject(
|
|
29652
|
+
message: replit$goval$api$UpdateReplFlags,
|
|
29653
|
+
options?: $protobuf.IConversionOptions
|
|
29654
|
+
): {|
|
|
29655
|
+
[k: string]: any,
|
|
29656
|
+
|};
|
|
29657
|
+
|
|
29658
|
+
/**
|
|
29659
|
+
* Converts this UpdateReplFlags to JSON.
|
|
29660
|
+
* @returns JSON object
|
|
29661
|
+
*/
|
|
29662
|
+
toJSON(): {|
|
|
29663
|
+
[k: string]: any,
|
|
29664
|
+
|};
|
|
29665
|
+
}
|
|
29666
|
+
|
|
29521
29667
|
declare var npm$namespace$replit$goval$api$features: {|
|
|
29522
29668
|
IGpu: Class<replit$goval$api$features$IGpu>,
|
|
29523
29669
|
IBoosted: Class<replit$goval$api$features$IBoosted>,
|
|
@@ -29897,16 +30043,148 @@ declare class replit$goval$api$features$Feature {
|
|
|
29897
30043
|
|
|
29898
30044
|
declare var npm$namespace$replit$goval$api$repl: {|
|
|
29899
30045
|
Persistence: typeof replit$goval$api$repl$Persistence,
|
|
30046
|
+
IBuckets: Class<replit$goval$api$repl$IBuckets>,
|
|
29900
30047
|
IRepl: Class<replit$goval$api$repl$IRepl>,
|
|
29901
30048
|
IResourceLimits: Class<replit$goval$api$repl$IResourceLimits>,
|
|
29902
30049
|
IPermissions: Class<replit$goval$api$repl$IPermissions>,
|
|
29903
30050
|
IMetadata: Class<replit$goval$api$repl$IMetadata>,
|
|
30051
|
+
Buckets: typeof replit$goval$api$repl$Buckets,
|
|
29904
30052
|
Repl: typeof replit$goval$api$repl$Repl,
|
|
29905
30053
|
ResourceLimits: typeof replit$goval$api$repl$ResourceLimits,
|
|
29906
30054
|
Permissions: typeof replit$goval$api$repl$Permissions,
|
|
29907
30055
|
Metadata: typeof replit$goval$api$repl$Metadata,
|
|
29908
30056
|
|};
|
|
29909
30057
|
|
|
30058
|
+
/**
|
|
30059
|
+
* Properties of a Buckets.
|
|
30060
|
+
*/
|
|
30061
|
+
declare type replit$goval$api$repl$IBuckets = {|
|
|
30062
|
+
/**
|
|
30063
|
+
* Buckets snapshots
|
|
30064
|
+
*/
|
|
30065
|
+
snapshots?: string | null,
|
|
30066
|
+
|
|
30067
|
+
/**
|
|
30068
|
+
* Buckets metadata
|
|
30069
|
+
*/
|
|
30070
|
+
metadata?: string | null,
|
|
30071
|
+
|};
|
|
30072
|
+
|
|
30073
|
+
/**
|
|
30074
|
+
* Represents a Buckets.
|
|
30075
|
+
*/
|
|
30076
|
+
declare class replit$goval$api$repl$Buckets {
|
|
30077
|
+
/**
|
|
30078
|
+
* Constructs a new Buckets.
|
|
30079
|
+
* @param [properties] Properties to set
|
|
30080
|
+
*/
|
|
30081
|
+
constructor(properties?: replit$goval$api$repl$IBuckets): this;
|
|
30082
|
+
|
|
30083
|
+
/**
|
|
30084
|
+
* Buckets snapshots.
|
|
30085
|
+
*/
|
|
30086
|
+
snapshots: string;
|
|
30087
|
+
|
|
30088
|
+
/**
|
|
30089
|
+
* Buckets metadata.
|
|
30090
|
+
*/
|
|
30091
|
+
metadata: string;
|
|
30092
|
+
|
|
30093
|
+
/**
|
|
30094
|
+
* Creates a new Buckets instance using the specified properties.
|
|
30095
|
+
* @param [properties] Properties to set
|
|
30096
|
+
* @returns Buckets instance
|
|
30097
|
+
*/
|
|
30098
|
+
static create(
|
|
30099
|
+
properties?: replit$goval$api$repl$IBuckets
|
|
30100
|
+
): replit$goval$api$repl$Buckets;
|
|
30101
|
+
|
|
30102
|
+
/**
|
|
30103
|
+
* [object Object],[object Object],[object Object]
|
|
30104
|
+
* @param message Buckets message or plain object to encode
|
|
30105
|
+
* @param [writer] Writer to encode to
|
|
30106
|
+
* @returns Writer
|
|
30107
|
+
*/
|
|
30108
|
+
static encode(
|
|
30109
|
+
message: replit$goval$api$repl$Buckets,
|
|
30110
|
+
writer?: $protobuf.Writer
|
|
30111
|
+
): $protobuf.Writer;
|
|
30112
|
+
|
|
30113
|
+
/**
|
|
30114
|
+
* [object Object],[object Object],[object Object]
|
|
30115
|
+
* @param message Buckets message or plain object to encode
|
|
30116
|
+
* @param [writer] Writer to encode to
|
|
30117
|
+
* @returns Writer
|
|
30118
|
+
*/
|
|
30119
|
+
static encodeDelimited(
|
|
30120
|
+
message: replit$goval$api$repl$Buckets,
|
|
30121
|
+
writer?: $protobuf.Writer
|
|
30122
|
+
): $protobuf.Writer;
|
|
30123
|
+
|
|
30124
|
+
/**
|
|
30125
|
+
* Decodes a Buckets message from the specified reader or buffer.
|
|
30126
|
+
* @param reader Reader or buffer to decode from
|
|
30127
|
+
* @param [length] Message length if known beforehand
|
|
30128
|
+
* @returns Buckets
|
|
30129
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
30130
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
30131
|
+
*/
|
|
30132
|
+
static decode(
|
|
30133
|
+
reader: $protobuf.Reader | Uint8Array,
|
|
30134
|
+
length?: number
|
|
30135
|
+
): replit$goval$api$repl$Buckets;
|
|
30136
|
+
|
|
30137
|
+
/**
|
|
30138
|
+
* Decodes a Buckets message from the specified reader or buffer, length delimited.
|
|
30139
|
+
* @param reader Reader or buffer to decode from
|
|
30140
|
+
* @returns Buckets
|
|
30141
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
30142
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
30143
|
+
*/
|
|
30144
|
+
static decodeDelimited(
|
|
30145
|
+
reader: $protobuf.Reader | Uint8Array
|
|
30146
|
+
): replit$goval$api$repl$Buckets;
|
|
30147
|
+
|
|
30148
|
+
/**
|
|
30149
|
+
* Verifies a Buckets message.
|
|
30150
|
+
* @param message Plain object to verify
|
|
30151
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
30152
|
+
*/
|
|
30153
|
+
static verify(message: {|
|
|
30154
|
+
[k: string]: any,
|
|
30155
|
+
|}): string | null;
|
|
30156
|
+
|
|
30157
|
+
/**
|
|
30158
|
+
* Creates a Buckets message from a plain object. Also converts values to their respective internal types.
|
|
30159
|
+
* @param object Plain object
|
|
30160
|
+
* @returns Buckets
|
|
30161
|
+
*/
|
|
30162
|
+
static fromObject(object: {|
|
|
30163
|
+
[k: string]: any,
|
|
30164
|
+
|}): replit$goval$api$repl$Buckets;
|
|
30165
|
+
|
|
30166
|
+
/**
|
|
30167
|
+
* Creates a plain object from a Buckets message. Also converts values to other types if specified.
|
|
30168
|
+
* @param message Buckets
|
|
30169
|
+
* @param [options] Conversion options
|
|
30170
|
+
* @returns Plain object
|
|
30171
|
+
*/
|
|
30172
|
+
static toObject(
|
|
30173
|
+
message: replit$goval$api$repl$Buckets,
|
|
30174
|
+
options?: $protobuf.IConversionOptions
|
|
30175
|
+
): {|
|
|
30176
|
+
[k: string]: any,
|
|
30177
|
+
|};
|
|
30178
|
+
|
|
30179
|
+
/**
|
|
30180
|
+
* Converts this Buckets to JSON.
|
|
30181
|
+
* @returns JSON object
|
|
30182
|
+
*/
|
|
30183
|
+
toJSON(): {|
|
|
30184
|
+
[k: string]: any,
|
|
30185
|
+
|};
|
|
30186
|
+
}
|
|
30187
|
+
|
|
29910
30188
|
/**
|
|
29911
30189
|
* Properties of a Repl.
|
|
29912
30190
|
*/
|
|
@@ -29945,6 +30223,14 @@ declare type replit$goval$api$repl$IRepl = {|
|
|
|
29945
30223
|
* Repl database
|
|
29946
30224
|
*/
|
|
29947
30225
|
database?: string | null,
|
|
30226
|
+
|
|
30227
|
+
/**
|
|
30228
|
+
* Repl buckets
|
|
30229
|
+
*/
|
|
30230
|
+
buckets?:
|
|
30231
|
+
| replit$goval$api$repl$Buckets
|
|
30232
|
+
| replit$goval$api$repl$IBuckets
|
|
30233
|
+
| null,
|
|
29948
30234
|
|};
|
|
29949
30235
|
|
|
29950
30236
|
/**
|
|
@@ -29992,6 +30278,11 @@ declare class replit$goval$api$repl$Repl {
|
|
|
29992
30278
|
*/
|
|
29993
30279
|
database: string;
|
|
29994
30280
|
|
|
30281
|
+
/**
|
|
30282
|
+
* Repl buckets.
|
|
30283
|
+
*/
|
|
30284
|
+
buckets?: replit$goval$api$repl$Buckets | null;
|
|
30285
|
+
|
|
29995
30286
|
/**
|
|
29996
30287
|
* Creates a new Repl instance using the specified properties.
|
|
29997
30288
|
* @param [properties] Properties to set
|