@replit/protocol 0.2.85 → 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 +102 -0
- package/main/index.js +236 -0
- package/main/index.js.flow +145 -0
- package/package.json +1 -1
package/main/index.d.ts
CHANGED
|
@@ -21120,6 +21120,102 @@ export namespace replit {
|
|
|
21120
21120
|
/** Namespace repl. */
|
|
21121
21121
|
namespace repl {
|
|
21122
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
|
+
|
|
21123
21219
|
/** Properties of a Repl. */
|
|
21124
21220
|
interface IRepl {
|
|
21125
21221
|
|
|
@@ -21143,6 +21239,9 @@ export namespace replit {
|
|
|
21143
21239
|
|
|
21144
21240
|
/** Repl database */
|
|
21145
21241
|
database?: (string|null);
|
|
21242
|
+
|
|
21243
|
+
/** Repl buckets */
|
|
21244
|
+
buckets?: (replit.goval.api.repl.Buckets|replit.goval.api.repl.IBuckets|null);
|
|
21146
21245
|
}
|
|
21147
21246
|
|
|
21148
21247
|
/** Represents a Repl. */
|
|
@@ -21175,6 +21274,9 @@ export namespace replit {
|
|
|
21175
21274
|
/** Repl database. */
|
|
21176
21275
|
public database: string;
|
|
21177
21276
|
|
|
21277
|
+
/** Repl buckets. */
|
|
21278
|
+
public buckets?: (replit.goval.api.repl.Buckets|null);
|
|
21279
|
+
|
|
21178
21280
|
/**
|
|
21179
21281
|
* Creates a new Repl instance using the specified properties.
|
|
21180
21282
|
* @param [properties] Properties to set
|
package/main/index.js
CHANGED
|
@@ -52561,6 +52561,215 @@
|
|
|
52561
52561
|
*/
|
|
52562
52562
|
var repl = {};
|
|
52563
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
|
+
|
|
52564
52773
|
repl.Repl = (function() {
|
|
52565
52774
|
|
|
52566
52775
|
/**
|
|
@@ -52574,6 +52783,7 @@
|
|
|
52574
52783
|
* @property {string|null} [user] Repl user
|
|
52575
52784
|
* @property {string|null} [sourceRepl] Repl sourceRepl
|
|
52576
52785
|
* @property {string|null} [database] Repl database
|
|
52786
|
+
* @property {replit.goval.api.repl.Buckets|replit.goval.api.repl.IBuckets|null} [buckets] Repl buckets
|
|
52577
52787
|
*/
|
|
52578
52788
|
|
|
52579
52789
|
/**
|
|
@@ -52646,6 +52856,14 @@
|
|
|
52646
52856
|
*/
|
|
52647
52857
|
Repl.prototype.database = "";
|
|
52648
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
|
+
|
|
52649
52867
|
/**
|
|
52650
52868
|
* Creates a new Repl instance using the specified properties.
|
|
52651
52869
|
* @function create
|
|
@@ -52684,6 +52902,8 @@
|
|
|
52684
52902
|
writer.uint32(/* id 6, wireType 2 =*/50).string(message.sourceRepl);
|
|
52685
52903
|
if (message.database != null && Object.hasOwnProperty.call(message, "database"))
|
|
52686
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();
|
|
52687
52907
|
return writer;
|
|
52688
52908
|
};
|
|
52689
52909
|
|
|
@@ -52739,6 +52959,9 @@
|
|
|
52739
52959
|
case 7:
|
|
52740
52960
|
message.database = reader.string();
|
|
52741
52961
|
break;
|
|
52962
|
+
case 8:
|
|
52963
|
+
message.buckets = $root.replit.goval.api.repl.Buckets.decode(reader, reader.uint32());
|
|
52964
|
+
break;
|
|
52742
52965
|
default:
|
|
52743
52966
|
reader.skipType(tag & 7);
|
|
52744
52967
|
break;
|
|
@@ -52795,6 +53018,11 @@
|
|
|
52795
53018
|
if (message.database != null && message.hasOwnProperty("database"))
|
|
52796
53019
|
if (!$util.isString(message.database))
|
|
52797
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
|
+
}
|
|
52798
53026
|
return null;
|
|
52799
53027
|
};
|
|
52800
53028
|
|
|
@@ -52824,6 +53052,11 @@
|
|
|
52824
53052
|
message.sourceRepl = String(object.sourceRepl);
|
|
52825
53053
|
if (object.database != null)
|
|
52826
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
|
+
}
|
|
52827
53060
|
return message;
|
|
52828
53061
|
};
|
|
52829
53062
|
|
|
@@ -52848,6 +53081,7 @@
|
|
|
52848
53081
|
object.user = "";
|
|
52849
53082
|
object.sourceRepl = "";
|
|
52850
53083
|
object.database = "";
|
|
53084
|
+
object.buckets = null;
|
|
52851
53085
|
}
|
|
52852
53086
|
if (message.id != null && message.hasOwnProperty("id"))
|
|
52853
53087
|
object.id = message.id;
|
|
@@ -52863,6 +53097,8 @@
|
|
|
52863
53097
|
object.sourceRepl = message.sourceRepl;
|
|
52864
53098
|
if (message.database != null && message.hasOwnProperty("database"))
|
|
52865
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);
|
|
52866
53102
|
return object;
|
|
52867
53103
|
};
|
|
52868
53104
|
|
package/main/index.js.flow
CHANGED
|
@@ -30043,16 +30043,148 @@ declare class replit$goval$api$features$Feature {
|
|
|
30043
30043
|
|
|
30044
30044
|
declare var npm$namespace$replit$goval$api$repl: {|
|
|
30045
30045
|
Persistence: typeof replit$goval$api$repl$Persistence,
|
|
30046
|
+
IBuckets: Class<replit$goval$api$repl$IBuckets>,
|
|
30046
30047
|
IRepl: Class<replit$goval$api$repl$IRepl>,
|
|
30047
30048
|
IResourceLimits: Class<replit$goval$api$repl$IResourceLimits>,
|
|
30048
30049
|
IPermissions: Class<replit$goval$api$repl$IPermissions>,
|
|
30049
30050
|
IMetadata: Class<replit$goval$api$repl$IMetadata>,
|
|
30051
|
+
Buckets: typeof replit$goval$api$repl$Buckets,
|
|
30050
30052
|
Repl: typeof replit$goval$api$repl$Repl,
|
|
30051
30053
|
ResourceLimits: typeof replit$goval$api$repl$ResourceLimits,
|
|
30052
30054
|
Permissions: typeof replit$goval$api$repl$Permissions,
|
|
30053
30055
|
Metadata: typeof replit$goval$api$repl$Metadata,
|
|
30054
30056
|
|};
|
|
30055
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
|
+
|
|
30056
30188
|
/**
|
|
30057
30189
|
* Properties of a Repl.
|
|
30058
30190
|
*/
|
|
@@ -30091,6 +30223,14 @@ declare type replit$goval$api$repl$IRepl = {|
|
|
|
30091
30223
|
* Repl database
|
|
30092
30224
|
*/
|
|
30093
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,
|
|
30094
30234
|
|};
|
|
30095
30235
|
|
|
30096
30236
|
/**
|
|
@@ -30138,6 +30278,11 @@ declare class replit$goval$api$repl$Repl {
|
|
|
30138
30278
|
*/
|
|
30139
30279
|
database: string;
|
|
30140
30280
|
|
|
30281
|
+
/**
|
|
30282
|
+
* Repl buckets.
|
|
30283
|
+
*/
|
|
30284
|
+
buckets?: replit$goval$api$repl$Buckets | null;
|
|
30285
|
+
|
|
30141
30286
|
/**
|
|
30142
30287
|
* Creates a new Repl instance using the specified properties.
|
|
30143
30288
|
* @param [properties] Properties to set
|