@replit/protocol 0.2.53 → 0.2.54
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 +323 -2
- package/main/index.js +860 -52
- package/main/index.js.flow +446 -1
- package/package.json +1 -1
package/main/index.js
CHANGED
|
@@ -35624,6 +35624,10 @@
|
|
|
35624
35624
|
* @property {Object.<string,api.DotReplitLanguage|api.IDotReplitLanguage>|null} [languages] DotReplit languages
|
|
35625
35625
|
* @property {api.DotReplitUnitTest|api.IDotReplitUnitTest|null} [unitTest] DotReplit unitTest
|
|
35626
35626
|
* @property {Array.<string>|null} [hidden] DotReplit hidden
|
|
35627
|
+
* @property {api.NixConfig|api.INixConfig|null} [nix] DotReplit nix
|
|
35628
|
+
* @property {boolean|null} [audio] DotReplit audio
|
|
35629
|
+
* @property {api.HostingConfig|api.IHostingConfig|null} [hosting] DotReplit hosting
|
|
35630
|
+
* @property {Object.<string,string>|null} [env] DotReplit env
|
|
35627
35631
|
*/
|
|
35628
35632
|
|
|
35629
35633
|
/**
|
|
@@ -35636,6 +35640,7 @@
|
|
|
35636
35640
|
function DotReplit(properties) {
|
|
35637
35641
|
this.languages = {};
|
|
35638
35642
|
this.hidden = [];
|
|
35643
|
+
this.env = {};
|
|
35639
35644
|
if (properties)
|
|
35640
35645
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
35641
35646
|
if (properties[keys[i]] != null)
|
|
@@ -35730,6 +35735,38 @@
|
|
|
35730
35735
|
*/
|
|
35731
35736
|
DotReplit.prototype.hidden = $util.emptyArray;
|
|
35732
35737
|
|
|
35738
|
+
/**
|
|
35739
|
+
* DotReplit nix.
|
|
35740
|
+
* @member {api.NixConfig|null|undefined} nix
|
|
35741
|
+
* @memberof api.DotReplit
|
|
35742
|
+
* @instance
|
|
35743
|
+
*/
|
|
35744
|
+
DotReplit.prototype.nix = null;
|
|
35745
|
+
|
|
35746
|
+
/**
|
|
35747
|
+
* DotReplit audio.
|
|
35748
|
+
* @member {boolean} audio
|
|
35749
|
+
* @memberof api.DotReplit
|
|
35750
|
+
* @instance
|
|
35751
|
+
*/
|
|
35752
|
+
DotReplit.prototype.audio = false;
|
|
35753
|
+
|
|
35754
|
+
/**
|
|
35755
|
+
* DotReplit hosting.
|
|
35756
|
+
* @member {api.HostingConfig|null|undefined} hosting
|
|
35757
|
+
* @memberof api.DotReplit
|
|
35758
|
+
* @instance
|
|
35759
|
+
*/
|
|
35760
|
+
DotReplit.prototype.hosting = null;
|
|
35761
|
+
|
|
35762
|
+
/**
|
|
35763
|
+
* DotReplit env.
|
|
35764
|
+
* @member {Object.<string,string>} env
|
|
35765
|
+
* @memberof api.DotReplit
|
|
35766
|
+
* @instance
|
|
35767
|
+
*/
|
|
35768
|
+
DotReplit.prototype.env = $util.emptyObject;
|
|
35769
|
+
|
|
35733
35770
|
/**
|
|
35734
35771
|
* Creates a new DotReplit instance using the specified properties.
|
|
35735
35772
|
* @function create
|
|
@@ -35780,6 +35817,15 @@
|
|
|
35780
35817
|
if (message.hidden != null && message.hidden.length)
|
|
35781
35818
|
for (var i = 0; i < message.hidden.length; ++i)
|
|
35782
35819
|
writer.uint32(/* id 11, wireType 2 =*/90).string(message.hidden[i]);
|
|
35820
|
+
if (message.nix != null && Object.hasOwnProperty.call(message, "nix"))
|
|
35821
|
+
$root.api.NixConfig.encode(message.nix, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim();
|
|
35822
|
+
if (message.audio != null && Object.hasOwnProperty.call(message, "audio"))
|
|
35823
|
+
writer.uint32(/* id 13, wireType 0 =*/104).bool(message.audio);
|
|
35824
|
+
if (message.hosting != null && Object.hasOwnProperty.call(message, "hosting"))
|
|
35825
|
+
$root.api.HostingConfig.encode(message.hosting, writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim();
|
|
35826
|
+
if (message.env != null && Object.hasOwnProperty.call(message, "env"))
|
|
35827
|
+
for (var keys = Object.keys(message.env), i = 0; i < keys.length; ++i)
|
|
35828
|
+
writer.uint32(/* id 15, wireType 2 =*/122).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.env[keys[i]]).ldelim();
|
|
35783
35829
|
return writer;
|
|
35784
35830
|
};
|
|
35785
35831
|
|
|
@@ -35868,6 +35914,37 @@
|
|
|
35868
35914
|
message.hidden = [];
|
|
35869
35915
|
message.hidden.push(reader.string());
|
|
35870
35916
|
break;
|
|
35917
|
+
case 12:
|
|
35918
|
+
message.nix = $root.api.NixConfig.decode(reader, reader.uint32());
|
|
35919
|
+
break;
|
|
35920
|
+
case 13:
|
|
35921
|
+
message.audio = reader.bool();
|
|
35922
|
+
break;
|
|
35923
|
+
case 14:
|
|
35924
|
+
message.hosting = $root.api.HostingConfig.decode(reader, reader.uint32());
|
|
35925
|
+
break;
|
|
35926
|
+
case 15:
|
|
35927
|
+
if (message.env === $util.emptyObject)
|
|
35928
|
+
message.env = {};
|
|
35929
|
+
var end2 = reader.uint32() + reader.pos;
|
|
35930
|
+
key = "";
|
|
35931
|
+
value = "";
|
|
35932
|
+
while (reader.pos < end2) {
|
|
35933
|
+
var tag2 = reader.uint32();
|
|
35934
|
+
switch (tag2 >>> 3) {
|
|
35935
|
+
case 1:
|
|
35936
|
+
key = reader.string();
|
|
35937
|
+
break;
|
|
35938
|
+
case 2:
|
|
35939
|
+
value = reader.string();
|
|
35940
|
+
break;
|
|
35941
|
+
default:
|
|
35942
|
+
reader.skipType(tag2 & 7);
|
|
35943
|
+
break;
|
|
35944
|
+
}
|
|
35945
|
+
}
|
|
35946
|
+
message.env[key] = value;
|
|
35947
|
+
break;
|
|
35871
35948
|
default:
|
|
35872
35949
|
reader.skipType(tag & 7);
|
|
35873
35950
|
break;
|
|
@@ -35961,6 +36038,27 @@
|
|
|
35961
36038
|
if (!$util.isString(message.hidden[i]))
|
|
35962
36039
|
return "hidden: string[] expected";
|
|
35963
36040
|
}
|
|
36041
|
+
if (message.nix != null && message.hasOwnProperty("nix")) {
|
|
36042
|
+
var error = $root.api.NixConfig.verify(message.nix);
|
|
36043
|
+
if (error)
|
|
36044
|
+
return "nix." + error;
|
|
36045
|
+
}
|
|
36046
|
+
if (message.audio != null && message.hasOwnProperty("audio"))
|
|
36047
|
+
if (typeof message.audio !== "boolean")
|
|
36048
|
+
return "audio: boolean expected";
|
|
36049
|
+
if (message.hosting != null && message.hasOwnProperty("hosting")) {
|
|
36050
|
+
var error = $root.api.HostingConfig.verify(message.hosting);
|
|
36051
|
+
if (error)
|
|
36052
|
+
return "hosting." + error;
|
|
36053
|
+
}
|
|
36054
|
+
if (message.env != null && message.hasOwnProperty("env")) {
|
|
36055
|
+
if (!$util.isObject(message.env))
|
|
36056
|
+
return "env: object expected";
|
|
36057
|
+
var key = Object.keys(message.env);
|
|
36058
|
+
for (var i = 0; i < key.length; ++i)
|
|
36059
|
+
if (!$util.isString(message.env[key[i]]))
|
|
36060
|
+
return "env: string{k:string} expected";
|
|
36061
|
+
}
|
|
35964
36062
|
return null;
|
|
35965
36063
|
};
|
|
35966
36064
|
|
|
@@ -36032,81 +36130,511 @@
|
|
|
36032
36130
|
for (var i = 0; i < object.hidden.length; ++i)
|
|
36033
36131
|
message.hidden[i] = String(object.hidden[i]);
|
|
36034
36132
|
}
|
|
36133
|
+
if (object.nix != null) {
|
|
36134
|
+
if (typeof object.nix !== "object")
|
|
36135
|
+
throw TypeError(".api.DotReplit.nix: object expected");
|
|
36136
|
+
message.nix = $root.api.NixConfig.fromObject(object.nix);
|
|
36137
|
+
}
|
|
36138
|
+
if (object.audio != null)
|
|
36139
|
+
message.audio = Boolean(object.audio);
|
|
36140
|
+
if (object.hosting != null) {
|
|
36141
|
+
if (typeof object.hosting !== "object")
|
|
36142
|
+
throw TypeError(".api.DotReplit.hosting: object expected");
|
|
36143
|
+
message.hosting = $root.api.HostingConfig.fromObject(object.hosting);
|
|
36144
|
+
}
|
|
36145
|
+
if (object.env) {
|
|
36146
|
+
if (typeof object.env !== "object")
|
|
36147
|
+
throw TypeError(".api.DotReplit.env: object expected");
|
|
36148
|
+
message.env = {};
|
|
36149
|
+
for (var keys = Object.keys(object.env), i = 0; i < keys.length; ++i)
|
|
36150
|
+
message.env[keys[i]] = String(object.env[keys[i]]);
|
|
36151
|
+
}
|
|
36152
|
+
return message;
|
|
36153
|
+
};
|
|
36154
|
+
|
|
36155
|
+
/**
|
|
36156
|
+
* Creates a plain object from a DotReplit message. Also converts values to other types if specified.
|
|
36157
|
+
* @function toObject
|
|
36158
|
+
* @memberof api.DotReplit
|
|
36159
|
+
* @static
|
|
36160
|
+
* @param {api.DotReplit} message DotReplit
|
|
36161
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
36162
|
+
* @returns {Object.<string,*>} Plain object
|
|
36163
|
+
*/
|
|
36164
|
+
DotReplit.toObject = function toObject(message, options) {
|
|
36165
|
+
if (!options)
|
|
36166
|
+
options = {};
|
|
36167
|
+
var object = {};
|
|
36168
|
+
if (options.arrays || options.defaults)
|
|
36169
|
+
object.hidden = [];
|
|
36170
|
+
if (options.objects || options.defaults) {
|
|
36171
|
+
object.languages = {};
|
|
36172
|
+
object.env = {};
|
|
36173
|
+
}
|
|
36174
|
+
if (options.defaults) {
|
|
36175
|
+
object.run = null;
|
|
36176
|
+
object.compile = null;
|
|
36177
|
+
object["debugger"] = null;
|
|
36178
|
+
object.language = "";
|
|
36179
|
+
object.onBoot = null;
|
|
36180
|
+
object.packager = null;
|
|
36181
|
+
object.interpreter = null;
|
|
36182
|
+
object.entrypoint = "";
|
|
36183
|
+
object.unitTest = null;
|
|
36184
|
+
object.nix = null;
|
|
36185
|
+
object.audio = false;
|
|
36186
|
+
object.hosting = null;
|
|
36187
|
+
}
|
|
36188
|
+
if (message.run != null && message.hasOwnProperty("run"))
|
|
36189
|
+
object.run = $root.api.Exec.toObject(message.run, options);
|
|
36190
|
+
if (message.compile != null && message.hasOwnProperty("compile"))
|
|
36191
|
+
object.compile = $root.api.Exec.toObject(message.compile, options);
|
|
36192
|
+
if (message["debugger"] != null && message.hasOwnProperty("debugger"))
|
|
36193
|
+
object["debugger"] = $root.api.DebuggerConfig.toObject(message["debugger"], options);
|
|
36194
|
+
if (message.language != null && message.hasOwnProperty("language"))
|
|
36195
|
+
object.language = message.language;
|
|
36196
|
+
if (message.onBoot != null && message.hasOwnProperty("onBoot"))
|
|
36197
|
+
object.onBoot = $root.api.Exec.toObject(message.onBoot, options);
|
|
36198
|
+
if (message.packager != null && message.hasOwnProperty("packager"))
|
|
36199
|
+
object.packager = $root.api.DotReplitPackager.toObject(message.packager, options);
|
|
36200
|
+
if (message.interpreter != null && message.hasOwnProperty("interpreter"))
|
|
36201
|
+
object.interpreter = $root.api.DotReplitInterp.toObject(message.interpreter, options);
|
|
36202
|
+
if (message.entrypoint != null && message.hasOwnProperty("entrypoint"))
|
|
36203
|
+
object.entrypoint = message.entrypoint;
|
|
36204
|
+
var keys2;
|
|
36205
|
+
if (message.languages && (keys2 = Object.keys(message.languages)).length) {
|
|
36206
|
+
object.languages = {};
|
|
36207
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
36208
|
+
object.languages[keys2[j]] = $root.api.DotReplitLanguage.toObject(message.languages[keys2[j]], options);
|
|
36209
|
+
}
|
|
36210
|
+
if (message.unitTest != null && message.hasOwnProperty("unitTest"))
|
|
36211
|
+
object.unitTest = $root.api.DotReplitUnitTest.toObject(message.unitTest, options);
|
|
36212
|
+
if (message.hidden && message.hidden.length) {
|
|
36213
|
+
object.hidden = [];
|
|
36214
|
+
for (var j = 0; j < message.hidden.length; ++j)
|
|
36215
|
+
object.hidden[j] = message.hidden[j];
|
|
36216
|
+
}
|
|
36217
|
+
if (message.nix != null && message.hasOwnProperty("nix"))
|
|
36218
|
+
object.nix = $root.api.NixConfig.toObject(message.nix, options);
|
|
36219
|
+
if (message.audio != null && message.hasOwnProperty("audio"))
|
|
36220
|
+
object.audio = message.audio;
|
|
36221
|
+
if (message.hosting != null && message.hasOwnProperty("hosting"))
|
|
36222
|
+
object.hosting = $root.api.HostingConfig.toObject(message.hosting, options);
|
|
36223
|
+
if (message.env && (keys2 = Object.keys(message.env)).length) {
|
|
36224
|
+
object.env = {};
|
|
36225
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
36226
|
+
object.env[keys2[j]] = message.env[keys2[j]];
|
|
36227
|
+
}
|
|
36228
|
+
return object;
|
|
36229
|
+
};
|
|
36230
|
+
|
|
36231
|
+
/**
|
|
36232
|
+
* Converts this DotReplit to JSON.
|
|
36233
|
+
* @function toJSON
|
|
36234
|
+
* @memberof api.DotReplit
|
|
36235
|
+
* @instance
|
|
36236
|
+
* @returns {Object.<string,*>} JSON object
|
|
36237
|
+
*/
|
|
36238
|
+
DotReplit.prototype.toJSON = function toJSON() {
|
|
36239
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
36240
|
+
};
|
|
36241
|
+
|
|
36242
|
+
return DotReplit;
|
|
36243
|
+
})();
|
|
36244
|
+
|
|
36245
|
+
api.NixConfig = (function() {
|
|
36246
|
+
|
|
36247
|
+
/**
|
|
36248
|
+
* Properties of a NixConfig.
|
|
36249
|
+
* @memberof api
|
|
36250
|
+
* @interface INixConfig
|
|
36251
|
+
* @property {string|null} [channel] NixConfig channel
|
|
36252
|
+
*/
|
|
36253
|
+
|
|
36254
|
+
/**
|
|
36255
|
+
* Constructs a new NixConfig.
|
|
36256
|
+
* @memberof api
|
|
36257
|
+
* @classdesc Represents a NixConfig.
|
|
36258
|
+
* @constructor
|
|
36259
|
+
* @param {api.INixConfig=} [properties] Properties to set
|
|
36260
|
+
*/
|
|
36261
|
+
function NixConfig(properties) {
|
|
36262
|
+
if (properties)
|
|
36263
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
36264
|
+
if (properties[keys[i]] != null)
|
|
36265
|
+
this[keys[i]] = properties[keys[i]];
|
|
36266
|
+
}
|
|
36267
|
+
|
|
36268
|
+
/**
|
|
36269
|
+
* NixConfig channel.
|
|
36270
|
+
* @member {string} channel
|
|
36271
|
+
* @memberof api.NixConfig
|
|
36272
|
+
* @instance
|
|
36273
|
+
*/
|
|
36274
|
+
NixConfig.prototype.channel = "";
|
|
36275
|
+
|
|
36276
|
+
/**
|
|
36277
|
+
* Creates a new NixConfig instance using the specified properties.
|
|
36278
|
+
* @function create
|
|
36279
|
+
* @memberof api.NixConfig
|
|
36280
|
+
* @static
|
|
36281
|
+
* @param {api.INixConfig=} [properties] Properties to set
|
|
36282
|
+
* @returns {api.NixConfig} NixConfig instance
|
|
36283
|
+
*/
|
|
36284
|
+
NixConfig.create = function create(properties) {
|
|
36285
|
+
return NixConfig.fromObject(properties);
|
|
36286
|
+
};
|
|
36287
|
+
|
|
36288
|
+
/**
|
|
36289
|
+
* Encodes the specified NixConfig message. Does not implicitly {@link api.NixConfig.verify|verify} messages.
|
|
36290
|
+
* @function encode
|
|
36291
|
+
* @memberof api.NixConfig
|
|
36292
|
+
* @static
|
|
36293
|
+
* @param {api.NixConfig} message NixConfig message or plain object to encode
|
|
36294
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
36295
|
+
* @returns {$protobuf.Writer} Writer
|
|
36296
|
+
*/
|
|
36297
|
+
NixConfig.encode = function encode(message, writer) {
|
|
36298
|
+
if (!writer)
|
|
36299
|
+
writer = $Writer.create();
|
|
36300
|
+
if (message.channel != null && Object.hasOwnProperty.call(message, "channel"))
|
|
36301
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.channel);
|
|
36302
|
+
return writer;
|
|
36303
|
+
};
|
|
36304
|
+
|
|
36305
|
+
/**
|
|
36306
|
+
* Encodes the specified NixConfig message, length delimited. Does not implicitly {@link api.NixConfig.verify|verify} messages.
|
|
36307
|
+
* @function encodeDelimited
|
|
36308
|
+
* @memberof api.NixConfig
|
|
36309
|
+
* @static
|
|
36310
|
+
* @param {api.NixConfig} message NixConfig message or plain object to encode
|
|
36311
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
36312
|
+
* @returns {$protobuf.Writer} Writer
|
|
36313
|
+
*/
|
|
36314
|
+
NixConfig.encodeDelimited = function encodeDelimited(message, writer) {
|
|
36315
|
+
return this.encode(message, writer).ldelim();
|
|
36316
|
+
};
|
|
36317
|
+
|
|
36318
|
+
/**
|
|
36319
|
+
* Decodes a NixConfig message from the specified reader or buffer.
|
|
36320
|
+
* @function decode
|
|
36321
|
+
* @memberof api.NixConfig
|
|
36322
|
+
* @static
|
|
36323
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
36324
|
+
* @param {number} [length] Message length if known beforehand
|
|
36325
|
+
* @returns {api.NixConfig} NixConfig
|
|
36326
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
36327
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
36328
|
+
*/
|
|
36329
|
+
NixConfig.decode = function decode(reader, length) {
|
|
36330
|
+
if (!(reader instanceof $Reader))
|
|
36331
|
+
reader = $Reader.create(reader);
|
|
36332
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.api.NixConfig();
|
|
36333
|
+
while (reader.pos < end) {
|
|
36334
|
+
var tag = reader.uint32();
|
|
36335
|
+
switch (tag >>> 3) {
|
|
36336
|
+
case 1:
|
|
36337
|
+
message.channel = reader.string();
|
|
36338
|
+
break;
|
|
36339
|
+
default:
|
|
36340
|
+
reader.skipType(tag & 7);
|
|
36341
|
+
break;
|
|
36342
|
+
}
|
|
36343
|
+
}
|
|
36344
|
+
return message;
|
|
36345
|
+
};
|
|
36346
|
+
|
|
36347
|
+
/**
|
|
36348
|
+
* Decodes a NixConfig message from the specified reader or buffer, length delimited.
|
|
36349
|
+
* @function decodeDelimited
|
|
36350
|
+
* @memberof api.NixConfig
|
|
36351
|
+
* @static
|
|
36352
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
36353
|
+
* @returns {api.NixConfig} NixConfig
|
|
36354
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
36355
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
36356
|
+
*/
|
|
36357
|
+
NixConfig.decodeDelimited = function decodeDelimited(reader) {
|
|
36358
|
+
if (!(reader instanceof $Reader))
|
|
36359
|
+
reader = new $Reader(reader);
|
|
36360
|
+
return this.decode(reader, reader.uint32());
|
|
36361
|
+
};
|
|
36362
|
+
|
|
36363
|
+
/**
|
|
36364
|
+
* Verifies a NixConfig message.
|
|
36365
|
+
* @function verify
|
|
36366
|
+
* @memberof api.NixConfig
|
|
36367
|
+
* @static
|
|
36368
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
36369
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
36370
|
+
*/
|
|
36371
|
+
NixConfig.verify = function verify(message) {
|
|
36372
|
+
if (typeof message !== "object" || message === null)
|
|
36373
|
+
return "object expected";
|
|
36374
|
+
if (message.channel != null && message.hasOwnProperty("channel"))
|
|
36375
|
+
if (!$util.isString(message.channel))
|
|
36376
|
+
return "channel: string expected";
|
|
36377
|
+
return null;
|
|
36378
|
+
};
|
|
36379
|
+
|
|
36380
|
+
/**
|
|
36381
|
+
* Creates a NixConfig message from a plain object. Also converts values to their respective internal types.
|
|
36382
|
+
* @function fromObject
|
|
36383
|
+
* @memberof api.NixConfig
|
|
36384
|
+
* @static
|
|
36385
|
+
* @param {Object.<string,*>} object Plain object
|
|
36386
|
+
* @returns {api.NixConfig} NixConfig
|
|
36387
|
+
*/
|
|
36388
|
+
NixConfig.fromObject = function fromObject(object) {
|
|
36389
|
+
if (object instanceof $root.api.NixConfig)
|
|
36390
|
+
return object;
|
|
36391
|
+
var message = new $root.api.NixConfig();
|
|
36392
|
+
if (object.channel != null)
|
|
36393
|
+
message.channel = String(object.channel);
|
|
36394
|
+
return message;
|
|
36395
|
+
};
|
|
36396
|
+
|
|
36397
|
+
/**
|
|
36398
|
+
* Creates a plain object from a NixConfig message. Also converts values to other types if specified.
|
|
36399
|
+
* @function toObject
|
|
36400
|
+
* @memberof api.NixConfig
|
|
36401
|
+
* @static
|
|
36402
|
+
* @param {api.NixConfig} message NixConfig
|
|
36403
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
36404
|
+
* @returns {Object.<string,*>} Plain object
|
|
36405
|
+
*/
|
|
36406
|
+
NixConfig.toObject = function toObject(message, options) {
|
|
36407
|
+
if (!options)
|
|
36408
|
+
options = {};
|
|
36409
|
+
var object = {};
|
|
36410
|
+
if (options.defaults)
|
|
36411
|
+
object.channel = "";
|
|
36412
|
+
if (message.channel != null && message.hasOwnProperty("channel"))
|
|
36413
|
+
object.channel = message.channel;
|
|
36414
|
+
return object;
|
|
36415
|
+
};
|
|
36416
|
+
|
|
36417
|
+
/**
|
|
36418
|
+
* Converts this NixConfig to JSON.
|
|
36419
|
+
* @function toJSON
|
|
36420
|
+
* @memberof api.NixConfig
|
|
36421
|
+
* @instance
|
|
36422
|
+
* @returns {Object.<string,*>} JSON object
|
|
36423
|
+
*/
|
|
36424
|
+
NixConfig.prototype.toJSON = function toJSON() {
|
|
36425
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
36426
|
+
};
|
|
36427
|
+
|
|
36428
|
+
return NixConfig;
|
|
36429
|
+
})();
|
|
36430
|
+
|
|
36431
|
+
api.HostingConfig = (function() {
|
|
36432
|
+
|
|
36433
|
+
/**
|
|
36434
|
+
* Properties of a HostingConfig.
|
|
36435
|
+
* @memberof api
|
|
36436
|
+
* @interface IHostingConfig
|
|
36437
|
+
* @property {string|null} [route] HostingConfig route
|
|
36438
|
+
* @property {string|null} [directory] HostingConfig directory
|
|
36439
|
+
*/
|
|
36440
|
+
|
|
36441
|
+
/**
|
|
36442
|
+
* Constructs a new HostingConfig.
|
|
36443
|
+
* @memberof api
|
|
36444
|
+
* @classdesc Represents a HostingConfig.
|
|
36445
|
+
* @constructor
|
|
36446
|
+
* @param {api.IHostingConfig=} [properties] Properties to set
|
|
36447
|
+
*/
|
|
36448
|
+
function HostingConfig(properties) {
|
|
36449
|
+
if (properties)
|
|
36450
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
36451
|
+
if (properties[keys[i]] != null)
|
|
36452
|
+
this[keys[i]] = properties[keys[i]];
|
|
36453
|
+
}
|
|
36454
|
+
|
|
36455
|
+
/**
|
|
36456
|
+
* HostingConfig route.
|
|
36457
|
+
* @member {string} route
|
|
36458
|
+
* @memberof api.HostingConfig
|
|
36459
|
+
* @instance
|
|
36460
|
+
*/
|
|
36461
|
+
HostingConfig.prototype.route = "";
|
|
36462
|
+
|
|
36463
|
+
/**
|
|
36464
|
+
* HostingConfig directory.
|
|
36465
|
+
* @member {string} directory
|
|
36466
|
+
* @memberof api.HostingConfig
|
|
36467
|
+
* @instance
|
|
36468
|
+
*/
|
|
36469
|
+
HostingConfig.prototype.directory = "";
|
|
36470
|
+
|
|
36471
|
+
/**
|
|
36472
|
+
* Creates a new HostingConfig instance using the specified properties.
|
|
36473
|
+
* @function create
|
|
36474
|
+
* @memberof api.HostingConfig
|
|
36475
|
+
* @static
|
|
36476
|
+
* @param {api.IHostingConfig=} [properties] Properties to set
|
|
36477
|
+
* @returns {api.HostingConfig} HostingConfig instance
|
|
36478
|
+
*/
|
|
36479
|
+
HostingConfig.create = function create(properties) {
|
|
36480
|
+
return HostingConfig.fromObject(properties);
|
|
36481
|
+
};
|
|
36482
|
+
|
|
36483
|
+
/**
|
|
36484
|
+
* Encodes the specified HostingConfig message. Does not implicitly {@link api.HostingConfig.verify|verify} messages.
|
|
36485
|
+
* @function encode
|
|
36486
|
+
* @memberof api.HostingConfig
|
|
36487
|
+
* @static
|
|
36488
|
+
* @param {api.HostingConfig} message HostingConfig message or plain object to encode
|
|
36489
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
36490
|
+
* @returns {$protobuf.Writer} Writer
|
|
36491
|
+
*/
|
|
36492
|
+
HostingConfig.encode = function encode(message, writer) {
|
|
36493
|
+
if (!writer)
|
|
36494
|
+
writer = $Writer.create();
|
|
36495
|
+
if (message.route != null && Object.hasOwnProperty.call(message, "route"))
|
|
36496
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.route);
|
|
36497
|
+
if (message.directory != null && Object.hasOwnProperty.call(message, "directory"))
|
|
36498
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.directory);
|
|
36499
|
+
return writer;
|
|
36500
|
+
};
|
|
36501
|
+
|
|
36502
|
+
/**
|
|
36503
|
+
* Encodes the specified HostingConfig message, length delimited. Does not implicitly {@link api.HostingConfig.verify|verify} messages.
|
|
36504
|
+
* @function encodeDelimited
|
|
36505
|
+
* @memberof api.HostingConfig
|
|
36506
|
+
* @static
|
|
36507
|
+
* @param {api.HostingConfig} message HostingConfig message or plain object to encode
|
|
36508
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
36509
|
+
* @returns {$protobuf.Writer} Writer
|
|
36510
|
+
*/
|
|
36511
|
+
HostingConfig.encodeDelimited = function encodeDelimited(message, writer) {
|
|
36512
|
+
return this.encode(message, writer).ldelim();
|
|
36513
|
+
};
|
|
36514
|
+
|
|
36515
|
+
/**
|
|
36516
|
+
* Decodes a HostingConfig message from the specified reader or buffer.
|
|
36517
|
+
* @function decode
|
|
36518
|
+
* @memberof api.HostingConfig
|
|
36519
|
+
* @static
|
|
36520
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
36521
|
+
* @param {number} [length] Message length if known beforehand
|
|
36522
|
+
* @returns {api.HostingConfig} HostingConfig
|
|
36523
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
36524
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
36525
|
+
*/
|
|
36526
|
+
HostingConfig.decode = function decode(reader, length) {
|
|
36527
|
+
if (!(reader instanceof $Reader))
|
|
36528
|
+
reader = $Reader.create(reader);
|
|
36529
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.api.HostingConfig();
|
|
36530
|
+
while (reader.pos < end) {
|
|
36531
|
+
var tag = reader.uint32();
|
|
36532
|
+
switch (tag >>> 3) {
|
|
36533
|
+
case 1:
|
|
36534
|
+
message.route = reader.string();
|
|
36535
|
+
break;
|
|
36536
|
+
case 2:
|
|
36537
|
+
message.directory = reader.string();
|
|
36538
|
+
break;
|
|
36539
|
+
default:
|
|
36540
|
+
reader.skipType(tag & 7);
|
|
36541
|
+
break;
|
|
36542
|
+
}
|
|
36543
|
+
}
|
|
36544
|
+
return message;
|
|
36545
|
+
};
|
|
36546
|
+
|
|
36547
|
+
/**
|
|
36548
|
+
* Decodes a HostingConfig message from the specified reader or buffer, length delimited.
|
|
36549
|
+
* @function decodeDelimited
|
|
36550
|
+
* @memberof api.HostingConfig
|
|
36551
|
+
* @static
|
|
36552
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
36553
|
+
* @returns {api.HostingConfig} HostingConfig
|
|
36554
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
36555
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
36556
|
+
*/
|
|
36557
|
+
HostingConfig.decodeDelimited = function decodeDelimited(reader) {
|
|
36558
|
+
if (!(reader instanceof $Reader))
|
|
36559
|
+
reader = new $Reader(reader);
|
|
36560
|
+
return this.decode(reader, reader.uint32());
|
|
36561
|
+
};
|
|
36562
|
+
|
|
36563
|
+
/**
|
|
36564
|
+
* Verifies a HostingConfig message.
|
|
36565
|
+
* @function verify
|
|
36566
|
+
* @memberof api.HostingConfig
|
|
36567
|
+
* @static
|
|
36568
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
36569
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
36570
|
+
*/
|
|
36571
|
+
HostingConfig.verify = function verify(message) {
|
|
36572
|
+
if (typeof message !== "object" || message === null)
|
|
36573
|
+
return "object expected";
|
|
36574
|
+
if (message.route != null && message.hasOwnProperty("route"))
|
|
36575
|
+
if (!$util.isString(message.route))
|
|
36576
|
+
return "route: string expected";
|
|
36577
|
+
if (message.directory != null && message.hasOwnProperty("directory"))
|
|
36578
|
+
if (!$util.isString(message.directory))
|
|
36579
|
+
return "directory: string expected";
|
|
36580
|
+
return null;
|
|
36581
|
+
};
|
|
36582
|
+
|
|
36583
|
+
/**
|
|
36584
|
+
* Creates a HostingConfig message from a plain object. Also converts values to their respective internal types.
|
|
36585
|
+
* @function fromObject
|
|
36586
|
+
* @memberof api.HostingConfig
|
|
36587
|
+
* @static
|
|
36588
|
+
* @param {Object.<string,*>} object Plain object
|
|
36589
|
+
* @returns {api.HostingConfig} HostingConfig
|
|
36590
|
+
*/
|
|
36591
|
+
HostingConfig.fromObject = function fromObject(object) {
|
|
36592
|
+
if (object instanceof $root.api.HostingConfig)
|
|
36593
|
+
return object;
|
|
36594
|
+
var message = new $root.api.HostingConfig();
|
|
36595
|
+
if (object.route != null)
|
|
36596
|
+
message.route = String(object.route);
|
|
36597
|
+
if (object.directory != null)
|
|
36598
|
+
message.directory = String(object.directory);
|
|
36035
36599
|
return message;
|
|
36036
36600
|
};
|
|
36037
36601
|
|
|
36038
36602
|
/**
|
|
36039
|
-
* Creates a plain object from a
|
|
36603
|
+
* Creates a plain object from a HostingConfig message. Also converts values to other types if specified.
|
|
36040
36604
|
* @function toObject
|
|
36041
|
-
* @memberof api.
|
|
36605
|
+
* @memberof api.HostingConfig
|
|
36042
36606
|
* @static
|
|
36043
|
-
* @param {api.
|
|
36607
|
+
* @param {api.HostingConfig} message HostingConfig
|
|
36044
36608
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
36045
36609
|
* @returns {Object.<string,*>} Plain object
|
|
36046
36610
|
*/
|
|
36047
|
-
|
|
36611
|
+
HostingConfig.toObject = function toObject(message, options) {
|
|
36048
36612
|
if (!options)
|
|
36049
36613
|
options = {};
|
|
36050
36614
|
var object = {};
|
|
36051
|
-
if (options.arrays || options.defaults)
|
|
36052
|
-
object.hidden = [];
|
|
36053
|
-
if (options.objects || options.defaults)
|
|
36054
|
-
object.languages = {};
|
|
36055
36615
|
if (options.defaults) {
|
|
36056
|
-
object.
|
|
36057
|
-
object.
|
|
36058
|
-
object["debugger"] = null;
|
|
36059
|
-
object.language = "";
|
|
36060
|
-
object.onBoot = null;
|
|
36061
|
-
object.packager = null;
|
|
36062
|
-
object.interpreter = null;
|
|
36063
|
-
object.entrypoint = "";
|
|
36064
|
-
object.unitTest = null;
|
|
36065
|
-
}
|
|
36066
|
-
if (message.run != null && message.hasOwnProperty("run"))
|
|
36067
|
-
object.run = $root.api.Exec.toObject(message.run, options);
|
|
36068
|
-
if (message.compile != null && message.hasOwnProperty("compile"))
|
|
36069
|
-
object.compile = $root.api.Exec.toObject(message.compile, options);
|
|
36070
|
-
if (message["debugger"] != null && message.hasOwnProperty("debugger"))
|
|
36071
|
-
object["debugger"] = $root.api.DebuggerConfig.toObject(message["debugger"], options);
|
|
36072
|
-
if (message.language != null && message.hasOwnProperty("language"))
|
|
36073
|
-
object.language = message.language;
|
|
36074
|
-
if (message.onBoot != null && message.hasOwnProperty("onBoot"))
|
|
36075
|
-
object.onBoot = $root.api.Exec.toObject(message.onBoot, options);
|
|
36076
|
-
if (message.packager != null && message.hasOwnProperty("packager"))
|
|
36077
|
-
object.packager = $root.api.DotReplitPackager.toObject(message.packager, options);
|
|
36078
|
-
if (message.interpreter != null && message.hasOwnProperty("interpreter"))
|
|
36079
|
-
object.interpreter = $root.api.DotReplitInterp.toObject(message.interpreter, options);
|
|
36080
|
-
if (message.entrypoint != null && message.hasOwnProperty("entrypoint"))
|
|
36081
|
-
object.entrypoint = message.entrypoint;
|
|
36082
|
-
var keys2;
|
|
36083
|
-
if (message.languages && (keys2 = Object.keys(message.languages)).length) {
|
|
36084
|
-
object.languages = {};
|
|
36085
|
-
for (var j = 0; j < keys2.length; ++j)
|
|
36086
|
-
object.languages[keys2[j]] = $root.api.DotReplitLanguage.toObject(message.languages[keys2[j]], options);
|
|
36087
|
-
}
|
|
36088
|
-
if (message.unitTest != null && message.hasOwnProperty("unitTest"))
|
|
36089
|
-
object.unitTest = $root.api.DotReplitUnitTest.toObject(message.unitTest, options);
|
|
36090
|
-
if (message.hidden && message.hidden.length) {
|
|
36091
|
-
object.hidden = [];
|
|
36092
|
-
for (var j = 0; j < message.hidden.length; ++j)
|
|
36093
|
-
object.hidden[j] = message.hidden[j];
|
|
36616
|
+
object.route = "";
|
|
36617
|
+
object.directory = "";
|
|
36094
36618
|
}
|
|
36619
|
+
if (message.route != null && message.hasOwnProperty("route"))
|
|
36620
|
+
object.route = message.route;
|
|
36621
|
+
if (message.directory != null && message.hasOwnProperty("directory"))
|
|
36622
|
+
object.directory = message.directory;
|
|
36095
36623
|
return object;
|
|
36096
36624
|
};
|
|
36097
36625
|
|
|
36098
36626
|
/**
|
|
36099
|
-
* Converts this
|
|
36627
|
+
* Converts this HostingConfig to JSON.
|
|
36100
36628
|
* @function toJSON
|
|
36101
|
-
* @memberof api.
|
|
36629
|
+
* @memberof api.HostingConfig
|
|
36102
36630
|
* @instance
|
|
36103
36631
|
* @returns {Object.<string,*>} JSON object
|
|
36104
36632
|
*/
|
|
36105
|
-
|
|
36633
|
+
HostingConfig.prototype.toJSON = function toJSON() {
|
|
36106
36634
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
36107
36635
|
};
|
|
36108
36636
|
|
|
36109
|
-
return
|
|
36637
|
+
return HostingConfig;
|
|
36110
36638
|
})();
|
|
36111
36639
|
|
|
36112
36640
|
api.DotReplitInterp = (function() {
|
|
@@ -41963,11 +42491,17 @@
|
|
|
41963
42491
|
* @enum {number}
|
|
41964
42492
|
* @property {number} MINT_GOVAL_TOKEN=0 MINT_GOVAL_TOKEN value
|
|
41965
42493
|
* @property {number} SIGN_INTERMEDIATE_CERT=1 SIGN_INTERMEDIATE_CERT value
|
|
42494
|
+
* @property {number} ANY_REPLID=2 ANY_REPLID value
|
|
42495
|
+
* @property {number} ANY_USER=3 ANY_USER value
|
|
42496
|
+
* @property {number} ANY_CLUSTER=4 ANY_CLUSTER value
|
|
41966
42497
|
*/
|
|
41967
42498
|
api.FlagClaim = (function() {
|
|
41968
42499
|
var valuesById = {}, values = Object.create(valuesById);
|
|
41969
42500
|
values[valuesById[0] = "MINT_GOVAL_TOKEN"] = 0;
|
|
41970
42501
|
values[valuesById[1] = "SIGN_INTERMEDIATE_CERT"] = 1;
|
|
42502
|
+
values[valuesById[2] = "ANY_REPLID"] = 2;
|
|
42503
|
+
values[valuesById[3] = "ANY_USER"] = 3;
|
|
42504
|
+
values[valuesById[4] = "ANY_CLUSTER"] = 4;
|
|
41971
42505
|
return values;
|
|
41972
42506
|
})();
|
|
41973
42507
|
|
|
@@ -41979,6 +42513,7 @@
|
|
|
41979
42513
|
* @interface ICertificateClaim
|
|
41980
42514
|
* @property {string|null} [replid] CertificateClaim replid
|
|
41981
42515
|
* @property {string|null} [user] CertificateClaim user
|
|
42516
|
+
* @property {string|null} [cluster] CertificateClaim cluster
|
|
41982
42517
|
* @property {api.FlagClaim|null} [flag] CertificateClaim flag
|
|
41983
42518
|
*/
|
|
41984
42519
|
|
|
@@ -42012,6 +42547,14 @@
|
|
|
42012
42547
|
*/
|
|
42013
42548
|
CertificateClaim.prototype.user = null;
|
|
42014
42549
|
|
|
42550
|
+
/**
|
|
42551
|
+
* CertificateClaim cluster.
|
|
42552
|
+
* @member {string|null|undefined} cluster
|
|
42553
|
+
* @memberof api.CertificateClaim
|
|
42554
|
+
* @instance
|
|
42555
|
+
*/
|
|
42556
|
+
CertificateClaim.prototype.cluster = null;
|
|
42557
|
+
|
|
42015
42558
|
/**
|
|
42016
42559
|
* CertificateClaim flag.
|
|
42017
42560
|
* @member {api.FlagClaim|null|undefined} flag
|
|
@@ -42025,12 +42568,12 @@
|
|
|
42025
42568
|
|
|
42026
42569
|
/**
|
|
42027
42570
|
* CertificateClaim claim.
|
|
42028
|
-
* @member {"replid"|"user"|"flag"|undefined} claim
|
|
42571
|
+
* @member {"replid"|"user"|"cluster"|"flag"|undefined} claim
|
|
42029
42572
|
* @memberof api.CertificateClaim
|
|
42030
42573
|
* @instance
|
|
42031
42574
|
*/
|
|
42032
42575
|
Object.defineProperty(CertificateClaim.prototype, "claim", {
|
|
42033
|
-
get: $util.oneOfGetter($oneOfFields = ["replid", "user", "flag"]),
|
|
42576
|
+
get: $util.oneOfGetter($oneOfFields = ["replid", "user", "cluster", "flag"]),
|
|
42034
42577
|
set: $util.oneOfSetter($oneOfFields)
|
|
42035
42578
|
});
|
|
42036
42579
|
|
|
@@ -42064,6 +42607,8 @@
|
|
|
42064
42607
|
writer.uint32(/* id 2, wireType 2 =*/18).string(message.user);
|
|
42065
42608
|
if (message.flag != null && Object.hasOwnProperty.call(message, "flag"))
|
|
42066
42609
|
writer.uint32(/* id 3, wireType 0 =*/24).int32(message.flag);
|
|
42610
|
+
if (message.cluster != null && Object.hasOwnProperty.call(message, "cluster"))
|
|
42611
|
+
writer.uint32(/* id 4, wireType 2 =*/34).string(message.cluster);
|
|
42067
42612
|
return writer;
|
|
42068
42613
|
};
|
|
42069
42614
|
|
|
@@ -42104,6 +42649,9 @@
|
|
|
42104
42649
|
case 2:
|
|
42105
42650
|
message.user = reader.string();
|
|
42106
42651
|
break;
|
|
42652
|
+
case 4:
|
|
42653
|
+
message.cluster = reader.string();
|
|
42654
|
+
break;
|
|
42107
42655
|
case 3:
|
|
42108
42656
|
message.flag = reader.int32();
|
|
42109
42657
|
break;
|
|
@@ -42155,6 +42703,13 @@
|
|
|
42155
42703
|
if (!$util.isString(message.user))
|
|
42156
42704
|
return "user: string expected";
|
|
42157
42705
|
}
|
|
42706
|
+
if (message.cluster != null && message.hasOwnProperty("cluster")) {
|
|
42707
|
+
if (properties.claim === 1)
|
|
42708
|
+
return "claim: multiple values";
|
|
42709
|
+
properties.claim = 1;
|
|
42710
|
+
if (!$util.isString(message.cluster))
|
|
42711
|
+
return "cluster: string expected";
|
|
42712
|
+
}
|
|
42158
42713
|
if (message.flag != null && message.hasOwnProperty("flag")) {
|
|
42159
42714
|
if (properties.claim === 1)
|
|
42160
42715
|
return "claim: multiple values";
|
|
@@ -42164,6 +42719,9 @@
|
|
|
42164
42719
|
return "flag: enum value expected";
|
|
42165
42720
|
case 0:
|
|
42166
42721
|
case 1:
|
|
42722
|
+
case 2:
|
|
42723
|
+
case 3:
|
|
42724
|
+
case 4:
|
|
42167
42725
|
break;
|
|
42168
42726
|
}
|
|
42169
42727
|
}
|
|
@@ -42186,6 +42744,8 @@
|
|
|
42186
42744
|
message.replid = String(object.replid);
|
|
42187
42745
|
if (object.user != null)
|
|
42188
42746
|
message.user = String(object.user);
|
|
42747
|
+
if (object.cluster != null)
|
|
42748
|
+
message.cluster = String(object.cluster);
|
|
42189
42749
|
switch (object.flag) {
|
|
42190
42750
|
case "MINT_GOVAL_TOKEN":
|
|
42191
42751
|
case 0:
|
|
@@ -42195,6 +42755,18 @@
|
|
|
42195
42755
|
case 1:
|
|
42196
42756
|
message.flag = 1;
|
|
42197
42757
|
break;
|
|
42758
|
+
case "ANY_REPLID":
|
|
42759
|
+
case 2:
|
|
42760
|
+
message.flag = 2;
|
|
42761
|
+
break;
|
|
42762
|
+
case "ANY_USER":
|
|
42763
|
+
case 3:
|
|
42764
|
+
message.flag = 3;
|
|
42765
|
+
break;
|
|
42766
|
+
case "ANY_CLUSTER":
|
|
42767
|
+
case 4:
|
|
42768
|
+
message.flag = 4;
|
|
42769
|
+
break;
|
|
42198
42770
|
}
|
|
42199
42771
|
return message;
|
|
42200
42772
|
};
|
|
@@ -42227,6 +42799,11 @@
|
|
|
42227
42799
|
if (options.oneofs)
|
|
42228
42800
|
object.claim = "flag";
|
|
42229
42801
|
}
|
|
42802
|
+
if (message.cluster != null && message.hasOwnProperty("cluster")) {
|
|
42803
|
+
object.cluster = message.cluster;
|
|
42804
|
+
if (options.oneofs)
|
|
42805
|
+
object.claim = "cluster";
|
|
42806
|
+
}
|
|
42230
42807
|
return object;
|
|
42231
42808
|
};
|
|
42232
42809
|
|
|
@@ -42817,6 +43394,237 @@
|
|
|
42817
43394
|
return GovalToken;
|
|
42818
43395
|
})();
|
|
42819
43396
|
|
|
43397
|
+
api.GovalReplIdentity = (function() {
|
|
43398
|
+
|
|
43399
|
+
/**
|
|
43400
|
+
* Properties of a GovalReplIdentity.
|
|
43401
|
+
* @memberof api
|
|
43402
|
+
* @interface IGovalReplIdentity
|
|
43403
|
+
* @property {string|null} [replid] GovalReplIdentity replid
|
|
43404
|
+
* @property {string|null} [user] GovalReplIdentity user
|
|
43405
|
+
* @property {string|null} [slug] GovalReplIdentity slug
|
|
43406
|
+
*/
|
|
43407
|
+
|
|
43408
|
+
/**
|
|
43409
|
+
* Constructs a new GovalReplIdentity.
|
|
43410
|
+
* @memberof api
|
|
43411
|
+
* @classdesc Represents a GovalReplIdentity.
|
|
43412
|
+
* @constructor
|
|
43413
|
+
* @param {api.IGovalReplIdentity=} [properties] Properties to set
|
|
43414
|
+
*/
|
|
43415
|
+
function GovalReplIdentity(properties) {
|
|
43416
|
+
if (properties)
|
|
43417
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
43418
|
+
if (properties[keys[i]] != null)
|
|
43419
|
+
this[keys[i]] = properties[keys[i]];
|
|
43420
|
+
}
|
|
43421
|
+
|
|
43422
|
+
/**
|
|
43423
|
+
* GovalReplIdentity replid.
|
|
43424
|
+
* @member {string} replid
|
|
43425
|
+
* @memberof api.GovalReplIdentity
|
|
43426
|
+
* @instance
|
|
43427
|
+
*/
|
|
43428
|
+
GovalReplIdentity.prototype.replid = "";
|
|
43429
|
+
|
|
43430
|
+
/**
|
|
43431
|
+
* GovalReplIdentity user.
|
|
43432
|
+
* @member {string} user
|
|
43433
|
+
* @memberof api.GovalReplIdentity
|
|
43434
|
+
* @instance
|
|
43435
|
+
*/
|
|
43436
|
+
GovalReplIdentity.prototype.user = "";
|
|
43437
|
+
|
|
43438
|
+
/**
|
|
43439
|
+
* GovalReplIdentity slug.
|
|
43440
|
+
* @member {string} slug
|
|
43441
|
+
* @memberof api.GovalReplIdentity
|
|
43442
|
+
* @instance
|
|
43443
|
+
*/
|
|
43444
|
+
GovalReplIdentity.prototype.slug = "";
|
|
43445
|
+
|
|
43446
|
+
/**
|
|
43447
|
+
* Creates a new GovalReplIdentity instance using the specified properties.
|
|
43448
|
+
* @function create
|
|
43449
|
+
* @memberof api.GovalReplIdentity
|
|
43450
|
+
* @static
|
|
43451
|
+
* @param {api.IGovalReplIdentity=} [properties] Properties to set
|
|
43452
|
+
* @returns {api.GovalReplIdentity} GovalReplIdentity instance
|
|
43453
|
+
*/
|
|
43454
|
+
GovalReplIdentity.create = function create(properties) {
|
|
43455
|
+
return GovalReplIdentity.fromObject(properties);
|
|
43456
|
+
};
|
|
43457
|
+
|
|
43458
|
+
/**
|
|
43459
|
+
* Encodes the specified GovalReplIdentity message. Does not implicitly {@link api.GovalReplIdentity.verify|verify} messages.
|
|
43460
|
+
* @function encode
|
|
43461
|
+
* @memberof api.GovalReplIdentity
|
|
43462
|
+
* @static
|
|
43463
|
+
* @param {api.GovalReplIdentity} message GovalReplIdentity message or plain object to encode
|
|
43464
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
43465
|
+
* @returns {$protobuf.Writer} Writer
|
|
43466
|
+
*/
|
|
43467
|
+
GovalReplIdentity.encode = function encode(message, writer) {
|
|
43468
|
+
if (!writer)
|
|
43469
|
+
writer = $Writer.create();
|
|
43470
|
+
if (message.replid != null && Object.hasOwnProperty.call(message, "replid"))
|
|
43471
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.replid);
|
|
43472
|
+
if (message.user != null && Object.hasOwnProperty.call(message, "user"))
|
|
43473
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.user);
|
|
43474
|
+
if (message.slug != null && Object.hasOwnProperty.call(message, "slug"))
|
|
43475
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.slug);
|
|
43476
|
+
return writer;
|
|
43477
|
+
};
|
|
43478
|
+
|
|
43479
|
+
/**
|
|
43480
|
+
* Encodes the specified GovalReplIdentity message, length delimited. Does not implicitly {@link api.GovalReplIdentity.verify|verify} messages.
|
|
43481
|
+
* @function encodeDelimited
|
|
43482
|
+
* @memberof api.GovalReplIdentity
|
|
43483
|
+
* @static
|
|
43484
|
+
* @param {api.GovalReplIdentity} message GovalReplIdentity message or plain object to encode
|
|
43485
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
43486
|
+
* @returns {$protobuf.Writer} Writer
|
|
43487
|
+
*/
|
|
43488
|
+
GovalReplIdentity.encodeDelimited = function encodeDelimited(message, writer) {
|
|
43489
|
+
return this.encode(message, writer).ldelim();
|
|
43490
|
+
};
|
|
43491
|
+
|
|
43492
|
+
/**
|
|
43493
|
+
* Decodes a GovalReplIdentity message from the specified reader or buffer.
|
|
43494
|
+
* @function decode
|
|
43495
|
+
* @memberof api.GovalReplIdentity
|
|
43496
|
+
* @static
|
|
43497
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
43498
|
+
* @param {number} [length] Message length if known beforehand
|
|
43499
|
+
* @returns {api.GovalReplIdentity} GovalReplIdentity
|
|
43500
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
43501
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
43502
|
+
*/
|
|
43503
|
+
GovalReplIdentity.decode = function decode(reader, length) {
|
|
43504
|
+
if (!(reader instanceof $Reader))
|
|
43505
|
+
reader = $Reader.create(reader);
|
|
43506
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.api.GovalReplIdentity();
|
|
43507
|
+
while (reader.pos < end) {
|
|
43508
|
+
var tag = reader.uint32();
|
|
43509
|
+
switch (tag >>> 3) {
|
|
43510
|
+
case 1:
|
|
43511
|
+
message.replid = reader.string();
|
|
43512
|
+
break;
|
|
43513
|
+
case 2:
|
|
43514
|
+
message.user = reader.string();
|
|
43515
|
+
break;
|
|
43516
|
+
case 3:
|
|
43517
|
+
message.slug = reader.string();
|
|
43518
|
+
break;
|
|
43519
|
+
default:
|
|
43520
|
+
reader.skipType(tag & 7);
|
|
43521
|
+
break;
|
|
43522
|
+
}
|
|
43523
|
+
}
|
|
43524
|
+
return message;
|
|
43525
|
+
};
|
|
43526
|
+
|
|
43527
|
+
/**
|
|
43528
|
+
* Decodes a GovalReplIdentity message from the specified reader or buffer, length delimited.
|
|
43529
|
+
* @function decodeDelimited
|
|
43530
|
+
* @memberof api.GovalReplIdentity
|
|
43531
|
+
* @static
|
|
43532
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
43533
|
+
* @returns {api.GovalReplIdentity} GovalReplIdentity
|
|
43534
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
43535
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
43536
|
+
*/
|
|
43537
|
+
GovalReplIdentity.decodeDelimited = function decodeDelimited(reader) {
|
|
43538
|
+
if (!(reader instanceof $Reader))
|
|
43539
|
+
reader = new $Reader(reader);
|
|
43540
|
+
return this.decode(reader, reader.uint32());
|
|
43541
|
+
};
|
|
43542
|
+
|
|
43543
|
+
/**
|
|
43544
|
+
* Verifies a GovalReplIdentity message.
|
|
43545
|
+
* @function verify
|
|
43546
|
+
* @memberof api.GovalReplIdentity
|
|
43547
|
+
* @static
|
|
43548
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
43549
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
43550
|
+
*/
|
|
43551
|
+
GovalReplIdentity.verify = function verify(message) {
|
|
43552
|
+
if (typeof message !== "object" || message === null)
|
|
43553
|
+
return "object expected";
|
|
43554
|
+
if (message.replid != null && message.hasOwnProperty("replid"))
|
|
43555
|
+
if (!$util.isString(message.replid))
|
|
43556
|
+
return "replid: string expected";
|
|
43557
|
+
if (message.user != null && message.hasOwnProperty("user"))
|
|
43558
|
+
if (!$util.isString(message.user))
|
|
43559
|
+
return "user: string expected";
|
|
43560
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
43561
|
+
if (!$util.isString(message.slug))
|
|
43562
|
+
return "slug: string expected";
|
|
43563
|
+
return null;
|
|
43564
|
+
};
|
|
43565
|
+
|
|
43566
|
+
/**
|
|
43567
|
+
* Creates a GovalReplIdentity message from a plain object. Also converts values to their respective internal types.
|
|
43568
|
+
* @function fromObject
|
|
43569
|
+
* @memberof api.GovalReplIdentity
|
|
43570
|
+
* @static
|
|
43571
|
+
* @param {Object.<string,*>} object Plain object
|
|
43572
|
+
* @returns {api.GovalReplIdentity} GovalReplIdentity
|
|
43573
|
+
*/
|
|
43574
|
+
GovalReplIdentity.fromObject = function fromObject(object) {
|
|
43575
|
+
if (object instanceof $root.api.GovalReplIdentity)
|
|
43576
|
+
return object;
|
|
43577
|
+
var message = new $root.api.GovalReplIdentity();
|
|
43578
|
+
if (object.replid != null)
|
|
43579
|
+
message.replid = String(object.replid);
|
|
43580
|
+
if (object.user != null)
|
|
43581
|
+
message.user = String(object.user);
|
|
43582
|
+
if (object.slug != null)
|
|
43583
|
+
message.slug = String(object.slug);
|
|
43584
|
+
return message;
|
|
43585
|
+
};
|
|
43586
|
+
|
|
43587
|
+
/**
|
|
43588
|
+
* Creates a plain object from a GovalReplIdentity message. Also converts values to other types if specified.
|
|
43589
|
+
* @function toObject
|
|
43590
|
+
* @memberof api.GovalReplIdentity
|
|
43591
|
+
* @static
|
|
43592
|
+
* @param {api.GovalReplIdentity} message GovalReplIdentity
|
|
43593
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
43594
|
+
* @returns {Object.<string,*>} Plain object
|
|
43595
|
+
*/
|
|
43596
|
+
GovalReplIdentity.toObject = function toObject(message, options) {
|
|
43597
|
+
if (!options)
|
|
43598
|
+
options = {};
|
|
43599
|
+
var object = {};
|
|
43600
|
+
if (options.defaults) {
|
|
43601
|
+
object.replid = "";
|
|
43602
|
+
object.user = "";
|
|
43603
|
+
object.slug = "";
|
|
43604
|
+
}
|
|
43605
|
+
if (message.replid != null && message.hasOwnProperty("replid"))
|
|
43606
|
+
object.replid = message.replid;
|
|
43607
|
+
if (message.user != null && message.hasOwnProperty("user"))
|
|
43608
|
+
object.user = message.user;
|
|
43609
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
43610
|
+
object.slug = message.slug;
|
|
43611
|
+
return object;
|
|
43612
|
+
};
|
|
43613
|
+
|
|
43614
|
+
/**
|
|
43615
|
+
* Converts this GovalReplIdentity to JSON.
|
|
43616
|
+
* @function toJSON
|
|
43617
|
+
* @memberof api.GovalReplIdentity
|
|
43618
|
+
* @instance
|
|
43619
|
+
* @returns {Object.<string,*>} JSON object
|
|
43620
|
+
*/
|
|
43621
|
+
GovalReplIdentity.prototype.toJSON = function toJSON() {
|
|
43622
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
43623
|
+
};
|
|
43624
|
+
|
|
43625
|
+
return GovalReplIdentity;
|
|
43626
|
+
})();
|
|
43627
|
+
|
|
42820
43628
|
return api;
|
|
42821
43629
|
})();
|
|
42822
43630
|
|