@replit/protocol 0.2.72 → 0.2.74
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/gen.sh +3 -3
- package/main/index.d.ts +92 -1
- package/main/index.js +196 -3
- package/main/index.js.flow +128 -2
- package/package.json +1 -1
package/gen.sh
CHANGED
|
@@ -19,7 +19,7 @@ pbjs \
|
|
|
19
19
|
--root "${TARGET}" \
|
|
20
20
|
"$@"
|
|
21
21
|
|
|
22
|
-
if [ "$
|
|
22
|
+
if [ "$MODE" = "fix" ]; then
|
|
23
23
|
# TODO: Remove this hack
|
|
24
24
|
sed -i.bak 's@return $root;@$root.api = $root.replit.goval.api; return $root;@' "${TARGET}.js"
|
|
25
25
|
rm -f "${TARGET}.js.bak"
|
|
@@ -31,7 +31,7 @@ mv "${TARGET}.tmp.js" "${TARGET}.js"
|
|
|
31
31
|
|
|
32
32
|
pbts -o "${TARGET}.d.ts" "${TARGET}.js"
|
|
33
33
|
|
|
34
|
-
if [ "$
|
|
34
|
+
if [ "$MODE" = "fix" ]; then
|
|
35
35
|
# TODO: Remove this hack
|
|
36
36
|
echo 'import api = replit.goval.api; export { api };' >> "${TARGET}.d.ts"
|
|
37
37
|
fi
|
|
@@ -45,7 +45,7 @@ flowgen \
|
|
|
45
45
|
--add-flow-header \
|
|
46
46
|
--output-file "${TARGET}.js.flow" "${TARGET}.d.ts"
|
|
47
47
|
|
|
48
|
-
if [ "$
|
|
48
|
+
if [ "$MODE" = "fix" ]; then
|
|
49
49
|
sed -i.bak 's/declare var replit: typeof npm\$namespace\$replit;/export var replit = npm$namespace$replit;/' "${TARGET}.js.flow"
|
|
50
50
|
rm -f "${TARGET}.js.flow.bak"
|
|
51
51
|
|
package/main/index.d.ts
CHANGED
|
@@ -19953,12 +19953,99 @@ export namespace replit {
|
|
|
19953
19953
|
public toJSON(): { [k: string]: any };
|
|
19954
19954
|
}
|
|
19955
19955
|
|
|
19956
|
+
/** Properties of a Boosted. */
|
|
19957
|
+
interface IBoosted {
|
|
19958
|
+
}
|
|
19959
|
+
|
|
19960
|
+
/** Represents a Boosted. */
|
|
19961
|
+
class Boosted {
|
|
19962
|
+
|
|
19963
|
+
/**
|
|
19964
|
+
* Constructs a new Boosted.
|
|
19965
|
+
* @param [properties] Properties to set
|
|
19966
|
+
*/
|
|
19967
|
+
private constructor(properties?: replit.goval.api.features.IBoosted);
|
|
19968
|
+
|
|
19969
|
+
/**
|
|
19970
|
+
* Creates a new Boosted instance using the specified properties.
|
|
19971
|
+
* @param [properties] Properties to set
|
|
19972
|
+
* @returns Boosted instance
|
|
19973
|
+
*/
|
|
19974
|
+
public static create(properties?: replit.goval.api.features.IBoosted): replit.goval.api.features.Boosted;
|
|
19975
|
+
|
|
19976
|
+
/**
|
|
19977
|
+
* Encodes the specified Boosted message. Does not implicitly {@link replit.goval.api.features.Boosted.verify|verify} messages.
|
|
19978
|
+
* @param message Boosted message or plain object to encode
|
|
19979
|
+
* @param [writer] Writer to encode to
|
|
19980
|
+
* @returns Writer
|
|
19981
|
+
*/
|
|
19982
|
+
public static encode(message: replit.goval.api.features.Boosted, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
19983
|
+
|
|
19984
|
+
/**
|
|
19985
|
+
* Encodes the specified Boosted message, length delimited. Does not implicitly {@link replit.goval.api.features.Boosted.verify|verify} messages.
|
|
19986
|
+
* @param message Boosted message or plain object to encode
|
|
19987
|
+
* @param [writer] Writer to encode to
|
|
19988
|
+
* @returns Writer
|
|
19989
|
+
*/
|
|
19990
|
+
public static encodeDelimited(message: replit.goval.api.features.Boosted, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
19991
|
+
|
|
19992
|
+
/**
|
|
19993
|
+
* Decodes a Boosted message from the specified reader or buffer.
|
|
19994
|
+
* @param reader Reader or buffer to decode from
|
|
19995
|
+
* @param [length] Message length if known beforehand
|
|
19996
|
+
* @returns Boosted
|
|
19997
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
19998
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
19999
|
+
*/
|
|
20000
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): replit.goval.api.features.Boosted;
|
|
20001
|
+
|
|
20002
|
+
/**
|
|
20003
|
+
* Decodes a Boosted message from the specified reader or buffer, length delimited.
|
|
20004
|
+
* @param reader Reader or buffer to decode from
|
|
20005
|
+
* @returns Boosted
|
|
20006
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
20007
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
20008
|
+
*/
|
|
20009
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): replit.goval.api.features.Boosted;
|
|
20010
|
+
|
|
20011
|
+
/**
|
|
20012
|
+
* Verifies a Boosted message.
|
|
20013
|
+
* @param message Plain object to verify
|
|
20014
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
20015
|
+
*/
|
|
20016
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
20017
|
+
|
|
20018
|
+
/**
|
|
20019
|
+
* Creates a Boosted message from a plain object. Also converts values to their respective internal types.
|
|
20020
|
+
* @param object Plain object
|
|
20021
|
+
* @returns Boosted
|
|
20022
|
+
*/
|
|
20023
|
+
public static fromObject(object: { [k: string]: any }): replit.goval.api.features.Boosted;
|
|
20024
|
+
|
|
20025
|
+
/**
|
|
20026
|
+
* Creates a plain object from a Boosted message. Also converts values to other types if specified.
|
|
20027
|
+
* @param message Boosted
|
|
20028
|
+
* @param [options] Conversion options
|
|
20029
|
+
* @returns Plain object
|
|
20030
|
+
*/
|
|
20031
|
+
public static toObject(message: replit.goval.api.features.Boosted, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
20032
|
+
|
|
20033
|
+
/**
|
|
20034
|
+
* Converts this Boosted to JSON.
|
|
20035
|
+
* @returns JSON object
|
|
20036
|
+
*/
|
|
20037
|
+
public toJSON(): { [k: string]: any };
|
|
20038
|
+
}
|
|
20039
|
+
|
|
19956
20040
|
/** Properties of a Feature. */
|
|
19957
20041
|
interface IFeature {
|
|
19958
20042
|
|
|
19959
20043
|
/** Feature gpu */
|
|
19960
20044
|
gpu?: (replit.goval.api.features.Gpu|replit.goval.api.features.IGpu|null);
|
|
19961
20045
|
|
|
20046
|
+
/** Feature boosted */
|
|
20047
|
+
boosted?: (replit.goval.api.features.Boosted|replit.goval.api.features.IBoosted|null);
|
|
20048
|
+
|
|
19962
20049
|
/** Feature required */
|
|
19963
20050
|
required?: (boolean|null);
|
|
19964
20051
|
}
|
|
@@ -19975,11 +20062,14 @@ export namespace replit {
|
|
|
19975
20062
|
/** Feature gpu. */
|
|
19976
20063
|
public gpu?: (replit.goval.api.features.Gpu|null);
|
|
19977
20064
|
|
|
20065
|
+
/** Feature boosted. */
|
|
20066
|
+
public boosted?: (replit.goval.api.features.Boosted|null);
|
|
20067
|
+
|
|
19978
20068
|
/** Feature required. */
|
|
19979
20069
|
public required: boolean;
|
|
19980
20070
|
|
|
19981
20071
|
/** Feature feature. */
|
|
19982
|
-
public feature?: "gpu";
|
|
20072
|
+
public feature?: ("gpu"|"boosted");
|
|
19983
20073
|
|
|
19984
20074
|
/**
|
|
19985
20075
|
* Creates a new Feature instance using the specified properties.
|
|
@@ -20467,3 +20557,4 @@ export namespace google {
|
|
|
20467
20557
|
}
|
|
20468
20558
|
}
|
|
20469
20559
|
}
|
|
20560
|
+
import api = replit.goval.api; export { api };
|
package/main/index.js
CHANGED
|
@@ -49774,6 +49774,165 @@
|
|
|
49774
49774
|
return Gpu;
|
|
49775
49775
|
})();
|
|
49776
49776
|
|
|
49777
|
+
features.Boosted = (function() {
|
|
49778
|
+
|
|
49779
|
+
/**
|
|
49780
|
+
* Properties of a Boosted.
|
|
49781
|
+
* @memberof replit.goval.api.features
|
|
49782
|
+
* @interface IBoosted
|
|
49783
|
+
*/
|
|
49784
|
+
|
|
49785
|
+
/**
|
|
49786
|
+
* Constructs a new Boosted.
|
|
49787
|
+
* @memberof replit.goval.api.features
|
|
49788
|
+
* @classdesc Represents a Boosted.
|
|
49789
|
+
* @constructor
|
|
49790
|
+
* @param {replit.goval.api.features.IBoosted=} [properties] Properties to set
|
|
49791
|
+
*/
|
|
49792
|
+
function Boosted(properties) {
|
|
49793
|
+
if (properties)
|
|
49794
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
49795
|
+
if (properties[keys[i]] != null)
|
|
49796
|
+
this[keys[i]] = properties[keys[i]];
|
|
49797
|
+
}
|
|
49798
|
+
|
|
49799
|
+
/**
|
|
49800
|
+
* Creates a new Boosted instance using the specified properties.
|
|
49801
|
+
* @function create
|
|
49802
|
+
* @memberof replit.goval.api.features.Boosted
|
|
49803
|
+
* @static
|
|
49804
|
+
* @param {replit.goval.api.features.IBoosted=} [properties] Properties to set
|
|
49805
|
+
* @returns {replit.goval.api.features.Boosted} Boosted instance
|
|
49806
|
+
*/
|
|
49807
|
+
Boosted.create = function create(properties) {
|
|
49808
|
+
return Boosted.fromObject(properties);
|
|
49809
|
+
};
|
|
49810
|
+
|
|
49811
|
+
/**
|
|
49812
|
+
* Encodes the specified Boosted message. Does not implicitly {@link replit.goval.api.features.Boosted.verify|verify} messages.
|
|
49813
|
+
* @function encode
|
|
49814
|
+
* @memberof replit.goval.api.features.Boosted
|
|
49815
|
+
* @static
|
|
49816
|
+
* @param {replit.goval.api.features.Boosted} message Boosted message or plain object to encode
|
|
49817
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
49818
|
+
* @returns {$protobuf.Writer} Writer
|
|
49819
|
+
*/
|
|
49820
|
+
Boosted.encode = function encode(message, writer) {
|
|
49821
|
+
if (!writer)
|
|
49822
|
+
writer = $Writer.create();
|
|
49823
|
+
return writer;
|
|
49824
|
+
};
|
|
49825
|
+
|
|
49826
|
+
/**
|
|
49827
|
+
* Encodes the specified Boosted message, length delimited. Does not implicitly {@link replit.goval.api.features.Boosted.verify|verify} messages.
|
|
49828
|
+
* @function encodeDelimited
|
|
49829
|
+
* @memberof replit.goval.api.features.Boosted
|
|
49830
|
+
* @static
|
|
49831
|
+
* @param {replit.goval.api.features.Boosted} message Boosted message or plain object to encode
|
|
49832
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
49833
|
+
* @returns {$protobuf.Writer} Writer
|
|
49834
|
+
*/
|
|
49835
|
+
Boosted.encodeDelimited = function encodeDelimited(message, writer) {
|
|
49836
|
+
return this.encode(message, writer).ldelim();
|
|
49837
|
+
};
|
|
49838
|
+
|
|
49839
|
+
/**
|
|
49840
|
+
* Decodes a Boosted message from the specified reader or buffer.
|
|
49841
|
+
* @function decode
|
|
49842
|
+
* @memberof replit.goval.api.features.Boosted
|
|
49843
|
+
* @static
|
|
49844
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
49845
|
+
* @param {number} [length] Message length if known beforehand
|
|
49846
|
+
* @returns {replit.goval.api.features.Boosted} Boosted
|
|
49847
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
49848
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
49849
|
+
*/
|
|
49850
|
+
Boosted.decode = function decode(reader, length) {
|
|
49851
|
+
if (!(reader instanceof $Reader))
|
|
49852
|
+
reader = $Reader.create(reader);
|
|
49853
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.features.Boosted();
|
|
49854
|
+
while (reader.pos < end) {
|
|
49855
|
+
var tag = reader.uint32();
|
|
49856
|
+
switch (tag >>> 3) {
|
|
49857
|
+
default:
|
|
49858
|
+
reader.skipType(tag & 7);
|
|
49859
|
+
break;
|
|
49860
|
+
}
|
|
49861
|
+
}
|
|
49862
|
+
return message;
|
|
49863
|
+
};
|
|
49864
|
+
|
|
49865
|
+
/**
|
|
49866
|
+
* Decodes a Boosted message from the specified reader or buffer, length delimited.
|
|
49867
|
+
* @function decodeDelimited
|
|
49868
|
+
* @memberof replit.goval.api.features.Boosted
|
|
49869
|
+
* @static
|
|
49870
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
49871
|
+
* @returns {replit.goval.api.features.Boosted} Boosted
|
|
49872
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
49873
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
49874
|
+
*/
|
|
49875
|
+
Boosted.decodeDelimited = function decodeDelimited(reader) {
|
|
49876
|
+
if (!(reader instanceof $Reader))
|
|
49877
|
+
reader = new $Reader(reader);
|
|
49878
|
+
return this.decode(reader, reader.uint32());
|
|
49879
|
+
};
|
|
49880
|
+
|
|
49881
|
+
/**
|
|
49882
|
+
* Verifies a Boosted message.
|
|
49883
|
+
* @function verify
|
|
49884
|
+
* @memberof replit.goval.api.features.Boosted
|
|
49885
|
+
* @static
|
|
49886
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
49887
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
49888
|
+
*/
|
|
49889
|
+
Boosted.verify = function verify(message) {
|
|
49890
|
+
if (typeof message !== "object" || message === null)
|
|
49891
|
+
return "object expected";
|
|
49892
|
+
return null;
|
|
49893
|
+
};
|
|
49894
|
+
|
|
49895
|
+
/**
|
|
49896
|
+
* Creates a Boosted message from a plain object. Also converts values to their respective internal types.
|
|
49897
|
+
* @function fromObject
|
|
49898
|
+
* @memberof replit.goval.api.features.Boosted
|
|
49899
|
+
* @static
|
|
49900
|
+
* @param {Object.<string,*>} object Plain object
|
|
49901
|
+
* @returns {replit.goval.api.features.Boosted} Boosted
|
|
49902
|
+
*/
|
|
49903
|
+
Boosted.fromObject = function fromObject(object) {
|
|
49904
|
+
if (object instanceof $root.replit.goval.api.features.Boosted)
|
|
49905
|
+
return object;
|
|
49906
|
+
return new $root.replit.goval.api.features.Boosted();
|
|
49907
|
+
};
|
|
49908
|
+
|
|
49909
|
+
/**
|
|
49910
|
+
* Creates a plain object from a Boosted message. Also converts values to other types if specified.
|
|
49911
|
+
* @function toObject
|
|
49912
|
+
* @memberof replit.goval.api.features.Boosted
|
|
49913
|
+
* @static
|
|
49914
|
+
* @param {replit.goval.api.features.Boosted} message Boosted
|
|
49915
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
49916
|
+
* @returns {Object.<string,*>} Plain object
|
|
49917
|
+
*/
|
|
49918
|
+
Boosted.toObject = function toObject() {
|
|
49919
|
+
return {};
|
|
49920
|
+
};
|
|
49921
|
+
|
|
49922
|
+
/**
|
|
49923
|
+
* Converts this Boosted to JSON.
|
|
49924
|
+
* @function toJSON
|
|
49925
|
+
* @memberof replit.goval.api.features.Boosted
|
|
49926
|
+
* @instance
|
|
49927
|
+
* @returns {Object.<string,*>} JSON object
|
|
49928
|
+
*/
|
|
49929
|
+
Boosted.prototype.toJSON = function toJSON() {
|
|
49930
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
49931
|
+
};
|
|
49932
|
+
|
|
49933
|
+
return Boosted;
|
|
49934
|
+
})();
|
|
49935
|
+
|
|
49777
49936
|
features.Feature = (function() {
|
|
49778
49937
|
|
|
49779
49938
|
/**
|
|
@@ -49781,6 +49940,7 @@
|
|
|
49781
49940
|
* @memberof replit.goval.api.features
|
|
49782
49941
|
* @interface IFeature
|
|
49783
49942
|
* @property {replit.goval.api.features.Gpu|replit.goval.api.features.IGpu|null} [gpu] Feature gpu
|
|
49943
|
+
* @property {replit.goval.api.features.Boosted|replit.goval.api.features.IBoosted|null} [boosted] Feature boosted
|
|
49784
49944
|
* @property {boolean|null} [required] Feature required
|
|
49785
49945
|
*/
|
|
49786
49946
|
|
|
@@ -49806,6 +49966,14 @@
|
|
|
49806
49966
|
*/
|
|
49807
49967
|
Feature.prototype.gpu = null;
|
|
49808
49968
|
|
|
49969
|
+
/**
|
|
49970
|
+
* Feature boosted.
|
|
49971
|
+
* @member {replit.goval.api.features.Boosted|null|undefined} boosted
|
|
49972
|
+
* @memberof replit.goval.api.features.Feature
|
|
49973
|
+
* @instance
|
|
49974
|
+
*/
|
|
49975
|
+
Feature.prototype.boosted = null;
|
|
49976
|
+
|
|
49809
49977
|
/**
|
|
49810
49978
|
* Feature required.
|
|
49811
49979
|
* @member {boolean} required
|
|
@@ -49819,12 +49987,12 @@
|
|
|
49819
49987
|
|
|
49820
49988
|
/**
|
|
49821
49989
|
* Feature feature.
|
|
49822
|
-
* @member {"gpu"|undefined} feature
|
|
49990
|
+
* @member {"gpu"|"boosted"|undefined} feature
|
|
49823
49991
|
* @memberof replit.goval.api.features.Feature
|
|
49824
49992
|
* @instance
|
|
49825
49993
|
*/
|
|
49826
49994
|
Object.defineProperty(Feature.prototype, "feature", {
|
|
49827
|
-
get: $util.oneOfGetter($oneOfFields = ["gpu"]),
|
|
49995
|
+
get: $util.oneOfGetter($oneOfFields = ["gpu", "boosted"]),
|
|
49828
49996
|
set: $util.oneOfSetter($oneOfFields)
|
|
49829
49997
|
});
|
|
49830
49998
|
|
|
@@ -49854,6 +50022,8 @@
|
|
|
49854
50022
|
writer = $Writer.create();
|
|
49855
50023
|
if (message.gpu != null && Object.hasOwnProperty.call(message, "gpu"))
|
|
49856
50024
|
$root.replit.goval.api.features.Gpu.encode(message.gpu, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
50025
|
+
if (message.boosted != null && Object.hasOwnProperty.call(message, "boosted"))
|
|
50026
|
+
$root.replit.goval.api.features.Boosted.encode(message.boosted, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
49857
50027
|
if (message.required != null && Object.hasOwnProperty.call(message, "required"))
|
|
49858
50028
|
writer.uint32(/* id 3, wireType 0 =*/24).bool(message.required);
|
|
49859
50029
|
return writer;
|
|
@@ -49893,6 +50063,9 @@
|
|
|
49893
50063
|
case 1:
|
|
49894
50064
|
message.gpu = $root.replit.goval.api.features.Gpu.decode(reader, reader.uint32());
|
|
49895
50065
|
break;
|
|
50066
|
+
case 2:
|
|
50067
|
+
message.boosted = $root.replit.goval.api.features.Boosted.decode(reader, reader.uint32());
|
|
50068
|
+
break;
|
|
49896
50069
|
case 3:
|
|
49897
50070
|
message.required = reader.bool();
|
|
49898
50071
|
break;
|
|
@@ -49940,6 +50113,16 @@
|
|
|
49940
50113
|
return "gpu." + error;
|
|
49941
50114
|
}
|
|
49942
50115
|
}
|
|
50116
|
+
if (message.boosted != null && message.hasOwnProperty("boosted")) {
|
|
50117
|
+
if (properties.feature === 1)
|
|
50118
|
+
return "feature: multiple values";
|
|
50119
|
+
properties.feature = 1;
|
|
50120
|
+
{
|
|
50121
|
+
var error = $root.replit.goval.api.features.Boosted.verify(message.boosted);
|
|
50122
|
+
if (error)
|
|
50123
|
+
return "boosted." + error;
|
|
50124
|
+
}
|
|
50125
|
+
}
|
|
49943
50126
|
if (message.required != null && message.hasOwnProperty("required"))
|
|
49944
50127
|
if (typeof message.required !== "boolean")
|
|
49945
50128
|
return "required: boolean expected";
|
|
@@ -49963,6 +50146,11 @@
|
|
|
49963
50146
|
throw TypeError(".replit.goval.api.features.Feature.gpu: object expected");
|
|
49964
50147
|
message.gpu = $root.replit.goval.api.features.Gpu.fromObject(object.gpu);
|
|
49965
50148
|
}
|
|
50149
|
+
if (object.boosted != null) {
|
|
50150
|
+
if (typeof object.boosted !== "object")
|
|
50151
|
+
throw TypeError(".replit.goval.api.features.Feature.boosted: object expected");
|
|
50152
|
+
message.boosted = $root.replit.goval.api.features.Boosted.fromObject(object.boosted);
|
|
50153
|
+
}
|
|
49966
50154
|
if (object.required != null)
|
|
49967
50155
|
message.required = Boolean(object.required);
|
|
49968
50156
|
return message;
|
|
@@ -49988,6 +50176,11 @@
|
|
|
49988
50176
|
if (options.oneofs)
|
|
49989
50177
|
object.feature = "gpu";
|
|
49990
50178
|
}
|
|
50179
|
+
if (message.boosted != null && message.hasOwnProperty("boosted")) {
|
|
50180
|
+
object.boosted = $root.replit.goval.api.features.Boosted.toObject(message.boosted, options);
|
|
50181
|
+
if (options.oneofs)
|
|
50182
|
+
object.feature = "boosted";
|
|
50183
|
+
}
|
|
49991
50184
|
if (message.required != null && message.hasOwnProperty("required"))
|
|
49992
50185
|
object.required = message.required;
|
|
49993
50186
|
return object;
|
|
@@ -51077,5 +51270,5 @@
|
|
|
51077
51270
|
return google;
|
|
51078
51271
|
})();
|
|
51079
51272
|
|
|
51080
|
-
return $root;
|
|
51273
|
+
$root.api = $root.replit.goval.api; return $root;
|
|
51081
51274
|
});
|
package/main/index.js.flow
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import * as $protobuf from "protobufjs";
|
|
9
|
-
|
|
9
|
+
export var replit = npm$namespace$replit;
|
|
10
10
|
|
|
11
11
|
declare var npm$namespace$replit: {|
|
|
12
12
|
goval: typeof npm$namespace$replit$goval,
|
|
@@ -28267,8 +28267,10 @@ declare class replit$goval$api$GovalReplIdentity {
|
|
|
28267
28267
|
|
|
28268
28268
|
declare var npm$namespace$replit$goval$api$features: {|
|
|
28269
28269
|
IGpu: Class<replit$goval$api$features$IGpu>,
|
|
28270
|
+
IBoosted: Class<replit$goval$api$features$IBoosted>,
|
|
28270
28271
|
IFeature: Class<replit$goval$api$features$IFeature>,
|
|
28271
28272
|
Gpu: typeof replit$goval$api$features$Gpu,
|
|
28273
|
+
Boosted: typeof replit$goval$api$features$Boosted,
|
|
28272
28274
|
Feature: typeof replit$goval$api$features$Feature,
|
|
28273
28275
|
|};
|
|
28274
28276
|
|
|
@@ -28382,6 +28384,116 @@ declare class replit$goval$api$features$Gpu {
|
|
|
28382
28384
|
|};
|
|
28383
28385
|
}
|
|
28384
28386
|
|
|
28387
|
+
/**
|
|
28388
|
+
* Properties of a Boosted.
|
|
28389
|
+
*/
|
|
28390
|
+
declare type replit$goval$api$features$IBoosted = {||};
|
|
28391
|
+
|
|
28392
|
+
/**
|
|
28393
|
+
* Represents a Boosted.
|
|
28394
|
+
*/
|
|
28395
|
+
declare class replit$goval$api$features$Boosted {
|
|
28396
|
+
/**
|
|
28397
|
+
* Constructs a new Boosted.
|
|
28398
|
+
* @param [properties] Properties to set
|
|
28399
|
+
*/
|
|
28400
|
+
constructor(properties?: replit$goval$api$features$IBoosted): this;
|
|
28401
|
+
|
|
28402
|
+
/**
|
|
28403
|
+
* Creates a new Boosted instance using the specified properties.
|
|
28404
|
+
* @param [properties] Properties to set
|
|
28405
|
+
* @returns Boosted instance
|
|
28406
|
+
*/
|
|
28407
|
+
static create(
|
|
28408
|
+
properties?: replit$goval$api$features$IBoosted
|
|
28409
|
+
): replit$goval$api$features$Boosted;
|
|
28410
|
+
|
|
28411
|
+
/**
|
|
28412
|
+
* [object Object],[object Object],[object Object]
|
|
28413
|
+
* @param message Boosted message or plain object to encode
|
|
28414
|
+
* @param [writer] Writer to encode to
|
|
28415
|
+
* @returns Writer
|
|
28416
|
+
*/
|
|
28417
|
+
static encode(
|
|
28418
|
+
message: replit$goval$api$features$Boosted,
|
|
28419
|
+
writer?: $protobuf.Writer
|
|
28420
|
+
): $protobuf.Writer;
|
|
28421
|
+
|
|
28422
|
+
/**
|
|
28423
|
+
* [object Object],[object Object],[object Object]
|
|
28424
|
+
* @param message Boosted message or plain object to encode
|
|
28425
|
+
* @param [writer] Writer to encode to
|
|
28426
|
+
* @returns Writer
|
|
28427
|
+
*/
|
|
28428
|
+
static encodeDelimited(
|
|
28429
|
+
message: replit$goval$api$features$Boosted,
|
|
28430
|
+
writer?: $protobuf.Writer
|
|
28431
|
+
): $protobuf.Writer;
|
|
28432
|
+
|
|
28433
|
+
/**
|
|
28434
|
+
* Decodes a Boosted message from the specified reader or buffer.
|
|
28435
|
+
* @param reader Reader or buffer to decode from
|
|
28436
|
+
* @param [length] Message length if known beforehand
|
|
28437
|
+
* @returns Boosted
|
|
28438
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
28439
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
28440
|
+
*/
|
|
28441
|
+
static decode(
|
|
28442
|
+
reader: $protobuf.Reader | Uint8Array,
|
|
28443
|
+
length?: number
|
|
28444
|
+
): replit$goval$api$features$Boosted;
|
|
28445
|
+
|
|
28446
|
+
/**
|
|
28447
|
+
* Decodes a Boosted message from the specified reader or buffer, length delimited.
|
|
28448
|
+
* @param reader Reader or buffer to decode from
|
|
28449
|
+
* @returns Boosted
|
|
28450
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
28451
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
28452
|
+
*/
|
|
28453
|
+
static decodeDelimited(
|
|
28454
|
+
reader: $protobuf.Reader | Uint8Array
|
|
28455
|
+
): replit$goval$api$features$Boosted;
|
|
28456
|
+
|
|
28457
|
+
/**
|
|
28458
|
+
* Verifies a Boosted message.
|
|
28459
|
+
* @param message Plain object to verify
|
|
28460
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
28461
|
+
*/
|
|
28462
|
+
static verify(message: {|
|
|
28463
|
+
[k: string]: any,
|
|
28464
|
+
|}): string | null;
|
|
28465
|
+
|
|
28466
|
+
/**
|
|
28467
|
+
* Creates a Boosted message from a plain object. Also converts values to their respective internal types.
|
|
28468
|
+
* @param object Plain object
|
|
28469
|
+
* @returns Boosted
|
|
28470
|
+
*/
|
|
28471
|
+
static fromObject(object: {|
|
|
28472
|
+
[k: string]: any,
|
|
28473
|
+
|}): replit$goval$api$features$Boosted;
|
|
28474
|
+
|
|
28475
|
+
/**
|
|
28476
|
+
* Creates a plain object from a Boosted message. Also converts values to other types if specified.
|
|
28477
|
+
* @param message Boosted
|
|
28478
|
+
* @param [options] Conversion options
|
|
28479
|
+
* @returns Plain object
|
|
28480
|
+
*/
|
|
28481
|
+
static toObject(
|
|
28482
|
+
message: replit$goval$api$features$Boosted,
|
|
28483
|
+
options?: $protobuf.IConversionOptions
|
|
28484
|
+
): {|
|
|
28485
|
+
[k: string]: any,
|
|
28486
|
+
|};
|
|
28487
|
+
|
|
28488
|
+
/**
|
|
28489
|
+
* Converts this Boosted to JSON.
|
|
28490
|
+
* @returns JSON object
|
|
28491
|
+
*/
|
|
28492
|
+
toJSON(): {|
|
|
28493
|
+
[k: string]: any,
|
|
28494
|
+
|};
|
|
28495
|
+
}
|
|
28496
|
+
|
|
28385
28497
|
/**
|
|
28386
28498
|
* Properties of a Feature.
|
|
28387
28499
|
*/
|
|
@@ -28391,6 +28503,14 @@ declare type replit$goval$api$features$IFeature = {|
|
|
|
28391
28503
|
*/
|
|
28392
28504
|
gpu?: replit$goval$api$features$Gpu | replit$goval$api$features$IGpu | null,
|
|
28393
28505
|
|
|
28506
|
+
/**
|
|
28507
|
+
* Feature boosted
|
|
28508
|
+
*/
|
|
28509
|
+
boosted?:
|
|
28510
|
+
| replit$goval$api$features$Boosted
|
|
28511
|
+
| replit$goval$api$features$IBoosted
|
|
28512
|
+
| null,
|
|
28513
|
+
|
|
28394
28514
|
/**
|
|
28395
28515
|
* Feature required
|
|
28396
28516
|
*/
|
|
@@ -28412,6 +28532,11 @@ declare class replit$goval$api$features$Feature {
|
|
|
28412
28532
|
*/
|
|
28413
28533
|
gpu?: replit$goval$api$features$Gpu | null;
|
|
28414
28534
|
|
|
28535
|
+
/**
|
|
28536
|
+
* Feature boosted.
|
|
28537
|
+
*/
|
|
28538
|
+
boosted?: replit$goval$api$features$Boosted | null;
|
|
28539
|
+
|
|
28415
28540
|
/**
|
|
28416
28541
|
* Feature required.
|
|
28417
28542
|
*/
|
|
@@ -28420,7 +28545,7 @@ declare class replit$goval$api$features$Feature {
|
|
|
28420
28545
|
/**
|
|
28421
28546
|
* Feature feature.
|
|
28422
28547
|
*/
|
|
28423
|
-
feature?: "gpu";
|
|
28548
|
+
feature?: "gpu" | "boosted";
|
|
28424
28549
|
|
|
28425
28550
|
/**
|
|
28426
28551
|
* Creates a new Feature instance using the specified properties.
|
|
@@ -29092,3 +29217,4 @@ declare class google$protobuf$ListValue {
|
|
|
29092
29217
|
[k: string]: any,
|
|
29093
29218
|
|};
|
|
29094
29219
|
}
|
|
29220
|
+
export var api = npm$namespace$replit$goval$api;
|