@replit/protocol 0.4.15 → 0.4.16
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 +98 -1
- package/main/index.js +211 -2
- package/package.json +1 -1
package/main/index.d.ts
CHANGED
|
@@ -35982,6 +35982,97 @@ export namespace replit {
|
|
|
35982
35982
|
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
35983
35983
|
}
|
|
35984
35984
|
|
|
35985
|
+
/** Properties of a Notary. */
|
|
35986
|
+
interface INotary {
|
|
35987
|
+
}
|
|
35988
|
+
|
|
35989
|
+
/** Represents a Notary. */
|
|
35990
|
+
class Notary {
|
|
35991
|
+
|
|
35992
|
+
/**
|
|
35993
|
+
* Constructs a new Notary.
|
|
35994
|
+
* @param [properties] Properties to set
|
|
35995
|
+
*/
|
|
35996
|
+
private constructor(properties?: replit.goval.api.features.INotary);
|
|
35997
|
+
|
|
35998
|
+
/**
|
|
35999
|
+
* Creates a new Notary instance using the specified properties.
|
|
36000
|
+
* @param [properties] Properties to set
|
|
36001
|
+
* @returns Notary instance
|
|
36002
|
+
*/
|
|
36003
|
+
public static create(properties?: replit.goval.api.features.INotary): replit.goval.api.features.Notary;
|
|
36004
|
+
|
|
36005
|
+
/**
|
|
36006
|
+
* Encodes the specified Notary message. Does not implicitly {@link replit.goval.api.features.Notary.verify|verify} messages.
|
|
36007
|
+
* @param message Notary message or plain object to encode
|
|
36008
|
+
* @param [writer] Writer to encode to
|
|
36009
|
+
* @returns Writer
|
|
36010
|
+
*/
|
|
36011
|
+
public static encode(message: replit.goval.api.features.Notary, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
36012
|
+
|
|
36013
|
+
/**
|
|
36014
|
+
* Encodes the specified Notary message, length delimited. Does not implicitly {@link replit.goval.api.features.Notary.verify|verify} messages.
|
|
36015
|
+
* @param message Notary message or plain object to encode
|
|
36016
|
+
* @param [writer] Writer to encode to
|
|
36017
|
+
* @returns Writer
|
|
36018
|
+
*/
|
|
36019
|
+
public static encodeDelimited(message: replit.goval.api.features.Notary, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
36020
|
+
|
|
36021
|
+
/**
|
|
36022
|
+
* Decodes a Notary message from the specified reader or buffer.
|
|
36023
|
+
* @param reader Reader or buffer to decode from
|
|
36024
|
+
* @param [length] Message length if known beforehand
|
|
36025
|
+
* @returns Notary
|
|
36026
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
36027
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
36028
|
+
*/
|
|
36029
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): replit.goval.api.features.Notary;
|
|
36030
|
+
|
|
36031
|
+
/**
|
|
36032
|
+
* Decodes a Notary message from the specified reader or buffer, length delimited.
|
|
36033
|
+
* @param reader Reader or buffer to decode from
|
|
36034
|
+
* @returns Notary
|
|
36035
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
36036
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
36037
|
+
*/
|
|
36038
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): replit.goval.api.features.Notary;
|
|
36039
|
+
|
|
36040
|
+
/**
|
|
36041
|
+
* Verifies a Notary message.
|
|
36042
|
+
* @param message Plain object to verify
|
|
36043
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
36044
|
+
*/
|
|
36045
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
36046
|
+
|
|
36047
|
+
/**
|
|
36048
|
+
* Creates a Notary message from a plain object. Also converts values to their respective internal types.
|
|
36049
|
+
* @param object Plain object
|
|
36050
|
+
* @returns Notary
|
|
36051
|
+
*/
|
|
36052
|
+
public static fromObject(object: { [k: string]: any }): replit.goval.api.features.Notary;
|
|
36053
|
+
|
|
36054
|
+
/**
|
|
36055
|
+
* Creates a plain object from a Notary message. Also converts values to other types if specified.
|
|
36056
|
+
* @param message Notary
|
|
36057
|
+
* @param [options] Conversion options
|
|
36058
|
+
* @returns Plain object
|
|
36059
|
+
*/
|
|
36060
|
+
public static toObject(message: replit.goval.api.features.Notary, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
36061
|
+
|
|
36062
|
+
/**
|
|
36063
|
+
* Converts this Notary to JSON.
|
|
36064
|
+
* @returns JSON object
|
|
36065
|
+
*/
|
|
36066
|
+
public toJSON(): { [k: string]: any };
|
|
36067
|
+
|
|
36068
|
+
/**
|
|
36069
|
+
* Gets the default type url for Notary
|
|
36070
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
36071
|
+
* @returns The default type url
|
|
36072
|
+
*/
|
|
36073
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
36074
|
+
}
|
|
36075
|
+
|
|
35985
36076
|
/** Properties of a Feature. */
|
|
35986
36077
|
interface IFeature {
|
|
35987
36078
|
|
|
@@ -35991,6 +36082,9 @@ export namespace replit {
|
|
|
35991
36082
|
/** Feature viktor */
|
|
35992
36083
|
viktor?: (replit.goval.api.features.Viktor|replit.goval.api.features.IViktor|null);
|
|
35993
36084
|
|
|
36085
|
+
/** Feature notary */
|
|
36086
|
+
notary?: (replit.goval.api.features.Notary|replit.goval.api.features.INotary|null);
|
|
36087
|
+
|
|
35994
36088
|
/** Feature required */
|
|
35995
36089
|
required?: (boolean|null);
|
|
35996
36090
|
}
|
|
@@ -36010,11 +36104,14 @@ export namespace replit {
|
|
|
36010
36104
|
/** Feature viktor. */
|
|
36011
36105
|
public viktor?: (replit.goval.api.features.Viktor|null);
|
|
36012
36106
|
|
|
36107
|
+
/** Feature notary. */
|
|
36108
|
+
public notary?: (replit.goval.api.features.Notary|null);
|
|
36109
|
+
|
|
36013
36110
|
/** Feature required. */
|
|
36014
36111
|
public required: boolean;
|
|
36015
36112
|
|
|
36016
36113
|
/** Feature feature. */
|
|
36017
|
-
public feature?: ("boosted"|"viktor");
|
|
36114
|
+
public feature?: ("boosted"|"viktor"|"notary");
|
|
36018
36115
|
|
|
36019
36116
|
/**
|
|
36020
36117
|
* Creates a new Feature instance using the specified properties.
|
package/main/index.js
CHANGED
|
@@ -89510,6 +89510,180 @@
|
|
|
89510
89510
|
return Viktor;
|
|
89511
89511
|
})();
|
|
89512
89512
|
|
|
89513
|
+
features.Notary = (function() {
|
|
89514
|
+
|
|
89515
|
+
/**
|
|
89516
|
+
* Properties of a Notary.
|
|
89517
|
+
* @memberof replit.goval.api.features
|
|
89518
|
+
* @interface INotary
|
|
89519
|
+
*/
|
|
89520
|
+
|
|
89521
|
+
/**
|
|
89522
|
+
* Constructs a new Notary.
|
|
89523
|
+
* @memberof replit.goval.api.features
|
|
89524
|
+
* @classdesc Represents a Notary.
|
|
89525
|
+
* @constructor
|
|
89526
|
+
* @param {replit.goval.api.features.INotary=} [properties] Properties to set
|
|
89527
|
+
*/
|
|
89528
|
+
function Notary(properties) {
|
|
89529
|
+
if (properties)
|
|
89530
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
89531
|
+
if (properties[keys[i]] != null)
|
|
89532
|
+
this[keys[i]] = properties[keys[i]];
|
|
89533
|
+
}
|
|
89534
|
+
|
|
89535
|
+
/**
|
|
89536
|
+
* Creates a new Notary instance using the specified properties.
|
|
89537
|
+
* @function create
|
|
89538
|
+
* @memberof replit.goval.api.features.Notary
|
|
89539
|
+
* @static
|
|
89540
|
+
* @param {replit.goval.api.features.INotary=} [properties] Properties to set
|
|
89541
|
+
* @returns {replit.goval.api.features.Notary} Notary instance
|
|
89542
|
+
*/
|
|
89543
|
+
Notary.create = function create(properties) {
|
|
89544
|
+
return Notary.fromObject(properties);
|
|
89545
|
+
};
|
|
89546
|
+
|
|
89547
|
+
/**
|
|
89548
|
+
* Encodes the specified Notary message. Does not implicitly {@link replit.goval.api.features.Notary.verify|verify} messages.
|
|
89549
|
+
* @function encode
|
|
89550
|
+
* @memberof replit.goval.api.features.Notary
|
|
89551
|
+
* @static
|
|
89552
|
+
* @param {replit.goval.api.features.Notary} message Notary message or plain object to encode
|
|
89553
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
89554
|
+
* @returns {$protobuf.Writer} Writer
|
|
89555
|
+
*/
|
|
89556
|
+
Notary.encode = function encode(message, writer) {
|
|
89557
|
+
if (!writer)
|
|
89558
|
+
writer = $Writer.create();
|
|
89559
|
+
return writer;
|
|
89560
|
+
};
|
|
89561
|
+
|
|
89562
|
+
/**
|
|
89563
|
+
* Encodes the specified Notary message, length delimited. Does not implicitly {@link replit.goval.api.features.Notary.verify|verify} messages.
|
|
89564
|
+
* @function encodeDelimited
|
|
89565
|
+
* @memberof replit.goval.api.features.Notary
|
|
89566
|
+
* @static
|
|
89567
|
+
* @param {replit.goval.api.features.Notary} message Notary message or plain object to encode
|
|
89568
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
89569
|
+
* @returns {$protobuf.Writer} Writer
|
|
89570
|
+
*/
|
|
89571
|
+
Notary.encodeDelimited = function encodeDelimited(message, writer) {
|
|
89572
|
+
return this.encode(message, writer).ldelim();
|
|
89573
|
+
};
|
|
89574
|
+
|
|
89575
|
+
/**
|
|
89576
|
+
* Decodes a Notary message from the specified reader or buffer.
|
|
89577
|
+
* @function decode
|
|
89578
|
+
* @memberof replit.goval.api.features.Notary
|
|
89579
|
+
* @static
|
|
89580
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
89581
|
+
* @param {number} [length] Message length if known beforehand
|
|
89582
|
+
* @returns {replit.goval.api.features.Notary} Notary
|
|
89583
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
89584
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
89585
|
+
*/
|
|
89586
|
+
Notary.decode = function decode(reader, length) {
|
|
89587
|
+
if (!(reader instanceof $Reader))
|
|
89588
|
+
reader = $Reader.create(reader);
|
|
89589
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.features.Notary();
|
|
89590
|
+
while (reader.pos < end) {
|
|
89591
|
+
var tag = reader.uint32();
|
|
89592
|
+
switch (tag >>> 3) {
|
|
89593
|
+
default:
|
|
89594
|
+
reader.skipType(tag & 7);
|
|
89595
|
+
break;
|
|
89596
|
+
}
|
|
89597
|
+
}
|
|
89598
|
+
return message;
|
|
89599
|
+
};
|
|
89600
|
+
|
|
89601
|
+
/**
|
|
89602
|
+
* Decodes a Notary message from the specified reader or buffer, length delimited.
|
|
89603
|
+
* @function decodeDelimited
|
|
89604
|
+
* @memberof replit.goval.api.features.Notary
|
|
89605
|
+
* @static
|
|
89606
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
89607
|
+
* @returns {replit.goval.api.features.Notary} Notary
|
|
89608
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
89609
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
89610
|
+
*/
|
|
89611
|
+
Notary.decodeDelimited = function decodeDelimited(reader) {
|
|
89612
|
+
if (!(reader instanceof $Reader))
|
|
89613
|
+
reader = new $Reader(reader);
|
|
89614
|
+
return this.decode(reader, reader.uint32());
|
|
89615
|
+
};
|
|
89616
|
+
|
|
89617
|
+
/**
|
|
89618
|
+
* Verifies a Notary message.
|
|
89619
|
+
* @function verify
|
|
89620
|
+
* @memberof replit.goval.api.features.Notary
|
|
89621
|
+
* @static
|
|
89622
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
89623
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
89624
|
+
*/
|
|
89625
|
+
Notary.verify = function verify(message) {
|
|
89626
|
+
if (typeof message !== "object" || message === null)
|
|
89627
|
+
return "object expected";
|
|
89628
|
+
return null;
|
|
89629
|
+
};
|
|
89630
|
+
|
|
89631
|
+
/**
|
|
89632
|
+
* Creates a Notary message from a plain object. Also converts values to their respective internal types.
|
|
89633
|
+
* @function fromObject
|
|
89634
|
+
* @memberof replit.goval.api.features.Notary
|
|
89635
|
+
* @static
|
|
89636
|
+
* @param {Object.<string,*>} object Plain object
|
|
89637
|
+
* @returns {replit.goval.api.features.Notary} Notary
|
|
89638
|
+
*/
|
|
89639
|
+
Notary.fromObject = function fromObject(object) {
|
|
89640
|
+
if (object instanceof $root.replit.goval.api.features.Notary)
|
|
89641
|
+
return object;
|
|
89642
|
+
return new $root.replit.goval.api.features.Notary();
|
|
89643
|
+
};
|
|
89644
|
+
|
|
89645
|
+
/**
|
|
89646
|
+
* Creates a plain object from a Notary message. Also converts values to other types if specified.
|
|
89647
|
+
* @function toObject
|
|
89648
|
+
* @memberof replit.goval.api.features.Notary
|
|
89649
|
+
* @static
|
|
89650
|
+
* @param {replit.goval.api.features.Notary} message Notary
|
|
89651
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
89652
|
+
* @returns {Object.<string,*>} Plain object
|
|
89653
|
+
*/
|
|
89654
|
+
Notary.toObject = function toObject() {
|
|
89655
|
+
return {};
|
|
89656
|
+
};
|
|
89657
|
+
|
|
89658
|
+
/**
|
|
89659
|
+
* Converts this Notary to JSON.
|
|
89660
|
+
* @function toJSON
|
|
89661
|
+
* @memberof replit.goval.api.features.Notary
|
|
89662
|
+
* @instance
|
|
89663
|
+
* @returns {Object.<string,*>} JSON object
|
|
89664
|
+
*/
|
|
89665
|
+
Notary.prototype.toJSON = function toJSON() {
|
|
89666
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
89667
|
+
};
|
|
89668
|
+
|
|
89669
|
+
/**
|
|
89670
|
+
* Gets the default type url for Notary
|
|
89671
|
+
* @function getTypeUrl
|
|
89672
|
+
* @memberof replit.goval.api.features.Notary
|
|
89673
|
+
* @static
|
|
89674
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
89675
|
+
* @returns {string} The default type url
|
|
89676
|
+
*/
|
|
89677
|
+
Notary.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
89678
|
+
if (typeUrlPrefix === undefined) {
|
|
89679
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
89680
|
+
}
|
|
89681
|
+
return typeUrlPrefix + "/replit.goval.api.features.Notary";
|
|
89682
|
+
};
|
|
89683
|
+
|
|
89684
|
+
return Notary;
|
|
89685
|
+
})();
|
|
89686
|
+
|
|
89513
89687
|
features.Feature = (function() {
|
|
89514
89688
|
|
|
89515
89689
|
/**
|
|
@@ -89518,6 +89692,7 @@
|
|
|
89518
89692
|
* @interface IFeature
|
|
89519
89693
|
* @property {replit.goval.api.features.Boosted|replit.goval.api.features.IBoosted|null} [boosted] Feature boosted
|
|
89520
89694
|
* @property {replit.goval.api.features.Viktor|replit.goval.api.features.IViktor|null} [viktor] Feature viktor
|
|
89695
|
+
* @property {replit.goval.api.features.Notary|replit.goval.api.features.INotary|null} [notary] Feature notary
|
|
89521
89696
|
* @property {boolean|null} [required] Feature required
|
|
89522
89697
|
*/
|
|
89523
89698
|
|
|
@@ -89551,6 +89726,14 @@
|
|
|
89551
89726
|
*/
|
|
89552
89727
|
Feature.prototype.viktor = null;
|
|
89553
89728
|
|
|
89729
|
+
/**
|
|
89730
|
+
* Feature notary.
|
|
89731
|
+
* @member {replit.goval.api.features.Notary|null|undefined} notary
|
|
89732
|
+
* @memberof replit.goval.api.features.Feature
|
|
89733
|
+
* @instance
|
|
89734
|
+
*/
|
|
89735
|
+
Feature.prototype.notary = null;
|
|
89736
|
+
|
|
89554
89737
|
/**
|
|
89555
89738
|
* Feature required.
|
|
89556
89739
|
* @member {boolean} required
|
|
@@ -89564,12 +89747,12 @@
|
|
|
89564
89747
|
|
|
89565
89748
|
/**
|
|
89566
89749
|
* Feature feature.
|
|
89567
|
-
* @member {"boosted"|"viktor"|undefined} feature
|
|
89750
|
+
* @member {"boosted"|"viktor"|"notary"|undefined} feature
|
|
89568
89751
|
* @memberof replit.goval.api.features.Feature
|
|
89569
89752
|
* @instance
|
|
89570
89753
|
*/
|
|
89571
89754
|
Object.defineProperty(Feature.prototype, "feature", {
|
|
89572
|
-
get: $util.oneOfGetter($oneOfFields = ["boosted", "viktor"]),
|
|
89755
|
+
get: $util.oneOfGetter($oneOfFields = ["boosted", "viktor", "notary"]),
|
|
89573
89756
|
set: $util.oneOfSetter($oneOfFields)
|
|
89574
89757
|
});
|
|
89575
89758
|
|
|
@@ -89603,6 +89786,8 @@
|
|
|
89603
89786
|
writer.uint32(/* id 3, wireType 0 =*/24).bool(message.required);
|
|
89604
89787
|
if (message.viktor != null && Object.hasOwnProperty.call(message, "viktor"))
|
|
89605
89788
|
$root.replit.goval.api.features.Viktor.encode(message.viktor, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
|
|
89789
|
+
if (message.notary != null && Object.hasOwnProperty.call(message, "notary"))
|
|
89790
|
+
$root.replit.goval.api.features.Notary.encode(message.notary, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
|
|
89606
89791
|
return writer;
|
|
89607
89792
|
};
|
|
89608
89793
|
|
|
@@ -89645,6 +89830,10 @@
|
|
|
89645
89830
|
message.viktor = $root.replit.goval.api.features.Viktor.decode(reader, reader.uint32());
|
|
89646
89831
|
break;
|
|
89647
89832
|
}
|
|
89833
|
+
case 6: {
|
|
89834
|
+
message.notary = $root.replit.goval.api.features.Notary.decode(reader, reader.uint32());
|
|
89835
|
+
break;
|
|
89836
|
+
}
|
|
89648
89837
|
case 3: {
|
|
89649
89838
|
message.required = reader.bool();
|
|
89650
89839
|
break;
|
|
@@ -89703,6 +89892,16 @@
|
|
|
89703
89892
|
return "viktor." + error;
|
|
89704
89893
|
}
|
|
89705
89894
|
}
|
|
89895
|
+
if (message.notary != null && message.hasOwnProperty("notary")) {
|
|
89896
|
+
if (properties.feature === 1)
|
|
89897
|
+
return "feature: multiple values";
|
|
89898
|
+
properties.feature = 1;
|
|
89899
|
+
{
|
|
89900
|
+
var error = $root.replit.goval.api.features.Notary.verify(message.notary);
|
|
89901
|
+
if (error)
|
|
89902
|
+
return "notary." + error;
|
|
89903
|
+
}
|
|
89904
|
+
}
|
|
89706
89905
|
if (message.required != null && message.hasOwnProperty("required"))
|
|
89707
89906
|
if (typeof message.required !== "boolean")
|
|
89708
89907
|
return "required: boolean expected";
|
|
@@ -89731,6 +89930,11 @@
|
|
|
89731
89930
|
throw TypeError(".replit.goval.api.features.Feature.viktor: object expected");
|
|
89732
89931
|
message.viktor = $root.replit.goval.api.features.Viktor.fromObject(object.viktor);
|
|
89733
89932
|
}
|
|
89933
|
+
if (object.notary != null) {
|
|
89934
|
+
if (typeof object.notary !== "object")
|
|
89935
|
+
throw TypeError(".replit.goval.api.features.Feature.notary: object expected");
|
|
89936
|
+
message.notary = $root.replit.goval.api.features.Notary.fromObject(object.notary);
|
|
89937
|
+
}
|
|
89734
89938
|
if (object.required != null)
|
|
89735
89939
|
message.required = Boolean(object.required);
|
|
89736
89940
|
return message;
|
|
@@ -89763,6 +89967,11 @@
|
|
|
89763
89967
|
if (options.oneofs)
|
|
89764
89968
|
object.feature = "viktor";
|
|
89765
89969
|
}
|
|
89970
|
+
if (message.notary != null && message.hasOwnProperty("notary")) {
|
|
89971
|
+
object.notary = $root.replit.goval.api.features.Notary.toObject(message.notary, options);
|
|
89972
|
+
if (options.oneofs)
|
|
89973
|
+
object.feature = "notary";
|
|
89974
|
+
}
|
|
89766
89975
|
return object;
|
|
89767
89976
|
};
|
|
89768
89977
|
|