@replit/protocol 0.2.51 → 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.js CHANGED
@@ -178,6 +178,8 @@
178
178
  * @property {api.DotReplitGetResponse|api.IDotReplitGetResponse|null} [dotReplitGetResponse] Command dotReplitGetResponse
179
179
  * @property {api.RunConfigGetRequest|api.IRunConfigGetRequest|null} [runConfigGetRequest] Command runConfigGetRequest
180
180
  * @property {api.RunConfigGetResponse|api.IRunConfigGetResponse|null} [runConfigGetResponse] Command runConfigGetResponse
181
+ * @property {api.DotReplitUpdateRequest|api.IDotReplitUpdateRequest|null} [dotReplitUpdateRequest] Command dotReplitUpdateRequest
182
+ * @property {api.DotReplitUpdateResponse|api.IDotReplitUpdateResponse|null} [dotReplitUpdateResponse] Command dotReplitUpdateResponse
181
183
  * @property {api.StartLSP|api.IStartLSP|null} [startLSP] Command startLSP
182
184
  * @property {api.FirewallDenied|api.IFirewallDenied|null} [firewallDenied] Command firewallDenied
183
185
  * @property {string|null} [ref] Command ref
@@ -1375,6 +1377,22 @@
1375
1377
  */
1376
1378
  Command.prototype.runConfigGetResponse = null;
1377
1379
 
1380
+ /**
1381
+ * Command dotReplitUpdateRequest.
1382
+ * @member {api.DotReplitUpdateRequest|null|undefined} dotReplitUpdateRequest
1383
+ * @memberof api.Command
1384
+ * @instance
1385
+ */
1386
+ Command.prototype.dotReplitUpdateRequest = null;
1387
+
1388
+ /**
1389
+ * Command dotReplitUpdateResponse.
1390
+ * @member {api.DotReplitUpdateResponse|null|undefined} dotReplitUpdateResponse
1391
+ * @memberof api.Command
1392
+ * @instance
1393
+ */
1394
+ Command.prototype.dotReplitUpdateResponse = null;
1395
+
1378
1396
  /**
1379
1397
  * Command startLSP.
1380
1398
  * @member {api.StartLSP|null|undefined} startLSP
@@ -1412,12 +1430,12 @@
1412
1430
 
1413
1431
  /**
1414
1432
  * Command body.
1415
- * @member {"openChan"|"openChanRes"|"closeChan"|"closeChanRes"|"containerState"|"portOpen"|"portClose"|"toast"|"protocolError"|"redirect"|"alwaysOn"|"runMain"|"clear"|"eval"|"result"|"input"|"output"|"error"|"stderr"|"log"|"saneTerm"|"resizeTerm"|"state"|"ok"|"persist"|"persistMirror"|"write"|"remove"|"move"|"tryRemove"|"mkdir"|"stat"|"statRes"|"transferStart"|"transferChunk"|"transferComplete"|"transferCancel"|"transfer"|"read"|"readdir"|"files"|"file"|"checkChanges"|"changedFiles"|"lintResults"|"runContainedTest"|"testResult"|"debuggerStart"|"debuggerStep"|"debuggerStatus"|"ensurePackages"|"ping"|"pong"|"hello"|"goodbye"|"proxyGoingAway"|"hint"|"connect"|"send"|"recv"|"disconnect"|"fileAuthReq"|"fileAuthRes"|"mutliFileAuthRes"|"listObjects"|"listObjectsResp"|"ot"|"otstatus"|"otLinkFile"|"otLinkFileResponse"|"otNewCursor"|"otDeleteCursor"|"otFetchRequest"|"otFetchResponse"|"otTransformSelectionRequest"|"otTransformSelectionResponse"|"flush"|"debug"|"startVCR"|"readVCR"|"VCRLog"|"auth"|"execInfo"|"subscribeFile"|"fileEvent"|"roster"|"join"|"part"|"openFile"|"fileOpened"|"followUser"|"unfollowUser"|"updateSessionTimestamp"|"sessionTimestampUpdated"|"exec"|"packageSearch"|"packageSearchResp"|"packageInfo"|"packageInfoResp"|"packageAdd"|"packageRemove"|"packageInstall"|"packageListSpecfile"|"packageListSpecfileResp"|"packageCacheSave"|"chatMessage"|"chatTyping"|"chatScrollback"|"fsSnapshot"|"fsSnapshotEvent"|"fsTakeLock"|"fsReleaseLock"|"hasCap"|"snapshotEvent"|"NoninteractiveFSChangeEvent"|"pid1Config"|"metrics"|"bootStatus"|"readMetaRequest"|"readMetaResponse"|"writeMetaRequest"|"writeMetaResponse"|"appendMetaRequest"|"appendMetaResponse"|"audio"|"pprofRequest"|"pprofResponse"|"audio2"|"PTYConfig"|"debugMain"|"debugState"|"debugMainReply"|"debugInput"|"debugOutput"|"debugStop"|"debugLeave"|"debugSessions"|"debugAddBreakpointRequest"|"debugUpdateBreakpointRequest"|"debugRemoveBreakpointRequest"|"debugBreakpointEvent"|"dotReplitGetRequest"|"dotReplitGetResponse"|"runConfigGetRequest"|"runConfigGetResponse"|"startLSP"|"firewallDenied"|undefined} body
1433
+ * @member {"openChan"|"openChanRes"|"closeChan"|"closeChanRes"|"containerState"|"portOpen"|"portClose"|"toast"|"protocolError"|"redirect"|"alwaysOn"|"runMain"|"clear"|"eval"|"result"|"input"|"output"|"error"|"stderr"|"log"|"saneTerm"|"resizeTerm"|"state"|"ok"|"persist"|"persistMirror"|"write"|"remove"|"move"|"tryRemove"|"mkdir"|"stat"|"statRes"|"transferStart"|"transferChunk"|"transferComplete"|"transferCancel"|"transfer"|"read"|"readdir"|"files"|"file"|"checkChanges"|"changedFiles"|"lintResults"|"runContainedTest"|"testResult"|"debuggerStart"|"debuggerStep"|"debuggerStatus"|"ensurePackages"|"ping"|"pong"|"hello"|"goodbye"|"proxyGoingAway"|"hint"|"connect"|"send"|"recv"|"disconnect"|"fileAuthReq"|"fileAuthRes"|"mutliFileAuthRes"|"listObjects"|"listObjectsResp"|"ot"|"otstatus"|"otLinkFile"|"otLinkFileResponse"|"otNewCursor"|"otDeleteCursor"|"otFetchRequest"|"otFetchResponse"|"otTransformSelectionRequest"|"otTransformSelectionResponse"|"flush"|"debug"|"startVCR"|"readVCR"|"VCRLog"|"auth"|"execInfo"|"subscribeFile"|"fileEvent"|"roster"|"join"|"part"|"openFile"|"fileOpened"|"followUser"|"unfollowUser"|"updateSessionTimestamp"|"sessionTimestampUpdated"|"exec"|"packageSearch"|"packageSearchResp"|"packageInfo"|"packageInfoResp"|"packageAdd"|"packageRemove"|"packageInstall"|"packageListSpecfile"|"packageListSpecfileResp"|"packageCacheSave"|"chatMessage"|"chatTyping"|"chatScrollback"|"fsSnapshot"|"fsSnapshotEvent"|"fsTakeLock"|"fsReleaseLock"|"hasCap"|"snapshotEvent"|"NoninteractiveFSChangeEvent"|"pid1Config"|"metrics"|"bootStatus"|"readMetaRequest"|"readMetaResponse"|"writeMetaRequest"|"writeMetaResponse"|"appendMetaRequest"|"appendMetaResponse"|"audio"|"pprofRequest"|"pprofResponse"|"audio2"|"PTYConfig"|"debugMain"|"debugState"|"debugMainReply"|"debugInput"|"debugOutput"|"debugStop"|"debugLeave"|"debugSessions"|"debugAddBreakpointRequest"|"debugUpdateBreakpointRequest"|"debugRemoveBreakpointRequest"|"debugBreakpointEvent"|"dotReplitGetRequest"|"dotReplitGetResponse"|"runConfigGetRequest"|"runConfigGetResponse"|"dotReplitUpdateRequest"|"dotReplitUpdateResponse"|"startLSP"|"firewallDenied"|undefined} body
1416
1434
  * @memberof api.Command
1417
1435
  * @instance
1418
1436
  */
1419
1437
  Object.defineProperty(Command.prototype, "body", {
1420
- get: $util.oneOfGetter($oneOfFields = ["openChan", "openChanRes", "closeChan", "closeChanRes", "containerState", "portOpen", "portClose", "toast", "protocolError", "redirect", "alwaysOn", "runMain", "clear", "eval", "result", "input", "output", "error", "stderr", "log", "saneTerm", "resizeTerm", "state", "ok", "persist", "persistMirror", "write", "remove", "move", "tryRemove", "mkdir", "stat", "statRes", "transferStart", "transferChunk", "transferComplete", "transferCancel", "transfer", "read", "readdir", "files", "file", "checkChanges", "changedFiles", "lintResults", "runContainedTest", "testResult", "debuggerStart", "debuggerStep", "debuggerStatus", "ensurePackages", "ping", "pong", "hello", "goodbye", "proxyGoingAway", "hint", "connect", "send", "recv", "disconnect", "fileAuthReq", "fileAuthRes", "mutliFileAuthRes", "listObjects", "listObjectsResp", "ot", "otstatus", "otLinkFile", "otLinkFileResponse", "otNewCursor", "otDeleteCursor", "otFetchRequest", "otFetchResponse", "otTransformSelectionRequest", "otTransformSelectionResponse", "flush", "debug", "startVCR", "readVCR", "VCRLog", "auth", "execInfo", "subscribeFile", "fileEvent", "roster", "join", "part", "openFile", "fileOpened", "followUser", "unfollowUser", "updateSessionTimestamp", "sessionTimestampUpdated", "exec", "packageSearch", "packageSearchResp", "packageInfo", "packageInfoResp", "packageAdd", "packageRemove", "packageInstall", "packageListSpecfile", "packageListSpecfileResp", "packageCacheSave", "chatMessage", "chatTyping", "chatScrollback", "fsSnapshot", "fsSnapshotEvent", "fsTakeLock", "fsReleaseLock", "hasCap", "snapshotEvent", "NoninteractiveFSChangeEvent", "pid1Config", "metrics", "bootStatus", "readMetaRequest", "readMetaResponse", "writeMetaRequest", "writeMetaResponse", "appendMetaRequest", "appendMetaResponse", "audio", "pprofRequest", "pprofResponse", "audio2", "PTYConfig", "debugMain", "debugState", "debugMainReply", "debugInput", "debugOutput", "debugStop", "debugLeave", "debugSessions", "debugAddBreakpointRequest", "debugUpdateBreakpointRequest", "debugRemoveBreakpointRequest", "debugBreakpointEvent", "dotReplitGetRequest", "dotReplitGetResponse", "runConfigGetRequest", "runConfigGetResponse", "startLSP", "firewallDenied"]),
1438
+ get: $util.oneOfGetter($oneOfFields = ["openChan", "openChanRes", "closeChan", "closeChanRes", "containerState", "portOpen", "portClose", "toast", "protocolError", "redirect", "alwaysOn", "runMain", "clear", "eval", "result", "input", "output", "error", "stderr", "log", "saneTerm", "resizeTerm", "state", "ok", "persist", "persistMirror", "write", "remove", "move", "tryRemove", "mkdir", "stat", "statRes", "transferStart", "transferChunk", "transferComplete", "transferCancel", "transfer", "read", "readdir", "files", "file", "checkChanges", "changedFiles", "lintResults", "runContainedTest", "testResult", "debuggerStart", "debuggerStep", "debuggerStatus", "ensurePackages", "ping", "pong", "hello", "goodbye", "proxyGoingAway", "hint", "connect", "send", "recv", "disconnect", "fileAuthReq", "fileAuthRes", "mutliFileAuthRes", "listObjects", "listObjectsResp", "ot", "otstatus", "otLinkFile", "otLinkFileResponse", "otNewCursor", "otDeleteCursor", "otFetchRequest", "otFetchResponse", "otTransformSelectionRequest", "otTransformSelectionResponse", "flush", "debug", "startVCR", "readVCR", "VCRLog", "auth", "execInfo", "subscribeFile", "fileEvent", "roster", "join", "part", "openFile", "fileOpened", "followUser", "unfollowUser", "updateSessionTimestamp", "sessionTimestampUpdated", "exec", "packageSearch", "packageSearchResp", "packageInfo", "packageInfoResp", "packageAdd", "packageRemove", "packageInstall", "packageListSpecfile", "packageListSpecfileResp", "packageCacheSave", "chatMessage", "chatTyping", "chatScrollback", "fsSnapshot", "fsSnapshotEvent", "fsTakeLock", "fsReleaseLock", "hasCap", "snapshotEvent", "NoninteractiveFSChangeEvent", "pid1Config", "metrics", "bootStatus", "readMetaRequest", "readMetaResponse", "writeMetaRequest", "writeMetaResponse", "appendMetaRequest", "appendMetaResponse", "audio", "pprofRequest", "pprofResponse", "audio2", "PTYConfig", "debugMain", "debugState", "debugMainReply", "debugInput", "debugOutput", "debugStop", "debugLeave", "debugSessions", "debugAddBreakpointRequest", "debugUpdateBreakpointRequest", "debugRemoveBreakpointRequest", "debugBreakpointEvent", "dotReplitGetRequest", "dotReplitGetResponse", "runConfigGetRequest", "runConfigGetResponse", "dotReplitUpdateRequest", "dotReplitUpdateResponse", "startLSP", "firewallDenied"]),
1421
1439
  set: $util.oneOfSetter($oneOfFields)
1422
1440
  });
1423
1441
 
@@ -1743,6 +1761,10 @@
1743
1761
  writer.uint32(/* id 392, wireType 0 =*/3136).bool(message.NoninteractiveFSChangeEvent);
1744
1762
  if (message.firewallDenied != null && Object.hasOwnProperty.call(message, "firewallDenied"))
1745
1763
  $root.api.FirewallDenied.encode(message.firewallDenied, writer.uint32(/* id 393, wireType 2 =*/3146).fork()).ldelim();
1764
+ if (message.dotReplitUpdateRequest != null && Object.hasOwnProperty.call(message, "dotReplitUpdateRequest"))
1765
+ $root.api.DotReplitUpdateRequest.encode(message.dotReplitUpdateRequest, writer.uint32(/* id 395, wireType 2 =*/3162).fork()).ldelim();
1766
+ if (message.dotReplitUpdateResponse != null && Object.hasOwnProperty.call(message, "dotReplitUpdateResponse"))
1767
+ $root.api.DotReplitUpdateResponse.encode(message.dotReplitUpdateResponse, writer.uint32(/* id 396, wireType 2 =*/3170).fork()).ldelim();
1746
1768
  if (message.ref != null && Object.hasOwnProperty.call(message, "ref"))
1747
1769
  writer.uint32(/* id 1000, wireType 2 =*/8002).string(message.ref);
1748
1770
  if (message.traceInfo != null && Object.hasOwnProperty.call(message, "traceInfo"))
@@ -2223,6 +2245,12 @@
2223
2245
  case 391:
2224
2246
  message.runConfigGetResponse = $root.api.RunConfigGetResponse.decode(reader, reader.uint32());
2225
2247
  break;
2248
+ case 395:
2249
+ message.dotReplitUpdateRequest = $root.api.DotReplitUpdateRequest.decode(reader, reader.uint32());
2250
+ break;
2251
+ case 396:
2252
+ message.dotReplitUpdateResponse = $root.api.DotReplitUpdateResponse.decode(reader, reader.uint32());
2253
+ break;
2226
2254
  case 345:
2227
2255
  message.startLSP = $root.api.StartLSP.decode(reader, reader.uint32());
2228
2256
  break;
@@ -3716,6 +3744,26 @@
3716
3744
  return "runConfigGetResponse." + error;
3717
3745
  }
3718
3746
  }
3747
+ if (message.dotReplitUpdateRequest != null && message.hasOwnProperty("dotReplitUpdateRequest")) {
3748
+ if (properties.body === 1)
3749
+ return "body: multiple values";
3750
+ properties.body = 1;
3751
+ {
3752
+ var error = $root.api.DotReplitUpdateRequest.verify(message.dotReplitUpdateRequest);
3753
+ if (error)
3754
+ return "dotReplitUpdateRequest." + error;
3755
+ }
3756
+ }
3757
+ if (message.dotReplitUpdateResponse != null && message.hasOwnProperty("dotReplitUpdateResponse")) {
3758
+ if (properties.body === 1)
3759
+ return "body: multiple values";
3760
+ properties.body = 1;
3761
+ {
3762
+ var error = $root.api.DotReplitUpdateResponse.verify(message.dotReplitUpdateResponse);
3763
+ if (error)
3764
+ return "dotReplitUpdateResponse." + error;
3765
+ }
3766
+ }
3719
3767
  if (message.startLSP != null && message.hasOwnProperty("startLSP")) {
3720
3768
  if (properties.body === 1)
3721
3769
  return "body: multiple values";
@@ -4466,6 +4514,16 @@
4466
4514
  throw TypeError(".api.Command.runConfigGetResponse: object expected");
4467
4515
  message.runConfigGetResponse = $root.api.RunConfigGetResponse.fromObject(object.runConfigGetResponse);
4468
4516
  }
4517
+ if (object.dotReplitUpdateRequest != null) {
4518
+ if (typeof object.dotReplitUpdateRequest !== "object")
4519
+ throw TypeError(".api.Command.dotReplitUpdateRequest: object expected");
4520
+ message.dotReplitUpdateRequest = $root.api.DotReplitUpdateRequest.fromObject(object.dotReplitUpdateRequest);
4521
+ }
4522
+ if (object.dotReplitUpdateResponse != null) {
4523
+ if (typeof object.dotReplitUpdateResponse !== "object")
4524
+ throw TypeError(".api.Command.dotReplitUpdateResponse: object expected");
4525
+ message.dotReplitUpdateResponse = $root.api.DotReplitUpdateResponse.fromObject(object.dotReplitUpdateResponse);
4526
+ }
4469
4527
  if (object.startLSP != null) {
4470
4528
  if (typeof object.startLSP !== "object")
4471
4529
  throw TypeError(".api.Command.startLSP: object expected");
@@ -5247,6 +5305,16 @@
5247
5305
  if (options.oneofs)
5248
5306
  object.body = "firewallDenied";
5249
5307
  }
5308
+ if (message.dotReplitUpdateRequest != null && message.hasOwnProperty("dotReplitUpdateRequest")) {
5309
+ object.dotReplitUpdateRequest = $root.api.DotReplitUpdateRequest.toObject(message.dotReplitUpdateRequest, options);
5310
+ if (options.oneofs)
5311
+ object.body = "dotReplitUpdateRequest";
5312
+ }
5313
+ if (message.dotReplitUpdateResponse != null && message.hasOwnProperty("dotReplitUpdateResponse")) {
5314
+ object.dotReplitUpdateResponse = $root.api.DotReplitUpdateResponse.toObject(message.dotReplitUpdateResponse, options);
5315
+ if (options.oneofs)
5316
+ object.body = "dotReplitUpdateResponse";
5317
+ }
5250
5318
  if (message.ref != null && message.hasOwnProperty("ref"))
5251
5319
  object.ref = message.ref;
5252
5320
  var keys2;
@@ -33700,6 +33768,603 @@
33700
33768
  return RunConfigGetResponse;
33701
33769
  })();
33702
33770
 
33771
+ api.DotReplitUpdateOp = (function() {
33772
+
33773
+ /**
33774
+ * Properties of a DotReplitUpdateOp.
33775
+ * @memberof api
33776
+ * @interface IDotReplitUpdateOp
33777
+ * @property {string|null} [op] DotReplitUpdateOp op
33778
+ * @property {string|null} [path] DotReplitUpdateOp path
33779
+ * @property {string|null} [value] DotReplitUpdateOp value
33780
+ */
33781
+
33782
+ /**
33783
+ * Constructs a new DotReplitUpdateOp.
33784
+ * @memberof api
33785
+ * @classdesc Represents a DotReplitUpdateOp.
33786
+ * @constructor
33787
+ * @param {api.IDotReplitUpdateOp=} [properties] Properties to set
33788
+ */
33789
+ function DotReplitUpdateOp(properties) {
33790
+ if (properties)
33791
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
33792
+ if (properties[keys[i]] != null)
33793
+ this[keys[i]] = properties[keys[i]];
33794
+ }
33795
+
33796
+ /**
33797
+ * DotReplitUpdateOp op.
33798
+ * @member {string} op
33799
+ * @memberof api.DotReplitUpdateOp
33800
+ * @instance
33801
+ */
33802
+ DotReplitUpdateOp.prototype.op = "";
33803
+
33804
+ /**
33805
+ * DotReplitUpdateOp path.
33806
+ * @member {string} path
33807
+ * @memberof api.DotReplitUpdateOp
33808
+ * @instance
33809
+ */
33810
+ DotReplitUpdateOp.prototype.path = "";
33811
+
33812
+ /**
33813
+ * DotReplitUpdateOp value.
33814
+ * @member {string} value
33815
+ * @memberof api.DotReplitUpdateOp
33816
+ * @instance
33817
+ */
33818
+ DotReplitUpdateOp.prototype.value = "";
33819
+
33820
+ /**
33821
+ * Creates a new DotReplitUpdateOp instance using the specified properties.
33822
+ * @function create
33823
+ * @memberof api.DotReplitUpdateOp
33824
+ * @static
33825
+ * @param {api.IDotReplitUpdateOp=} [properties] Properties to set
33826
+ * @returns {api.DotReplitUpdateOp} DotReplitUpdateOp instance
33827
+ */
33828
+ DotReplitUpdateOp.create = function create(properties) {
33829
+ return DotReplitUpdateOp.fromObject(properties);
33830
+ };
33831
+
33832
+ /**
33833
+ * Encodes the specified DotReplitUpdateOp message. Does not implicitly {@link api.DotReplitUpdateOp.verify|verify} messages.
33834
+ * @function encode
33835
+ * @memberof api.DotReplitUpdateOp
33836
+ * @static
33837
+ * @param {api.DotReplitUpdateOp} message DotReplitUpdateOp message or plain object to encode
33838
+ * @param {$protobuf.Writer} [writer] Writer to encode to
33839
+ * @returns {$protobuf.Writer} Writer
33840
+ */
33841
+ DotReplitUpdateOp.encode = function encode(message, writer) {
33842
+ if (!writer)
33843
+ writer = $Writer.create();
33844
+ if (message.op != null && Object.hasOwnProperty.call(message, "op"))
33845
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.op);
33846
+ if (message.path != null && Object.hasOwnProperty.call(message, "path"))
33847
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.path);
33848
+ if (message.value != null && Object.hasOwnProperty.call(message, "value"))
33849
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.value);
33850
+ return writer;
33851
+ };
33852
+
33853
+ /**
33854
+ * Encodes the specified DotReplitUpdateOp message, length delimited. Does not implicitly {@link api.DotReplitUpdateOp.verify|verify} messages.
33855
+ * @function encodeDelimited
33856
+ * @memberof api.DotReplitUpdateOp
33857
+ * @static
33858
+ * @param {api.DotReplitUpdateOp} message DotReplitUpdateOp message or plain object to encode
33859
+ * @param {$protobuf.Writer} [writer] Writer to encode to
33860
+ * @returns {$protobuf.Writer} Writer
33861
+ */
33862
+ DotReplitUpdateOp.encodeDelimited = function encodeDelimited(message, writer) {
33863
+ return this.encode(message, writer).ldelim();
33864
+ };
33865
+
33866
+ /**
33867
+ * Decodes a DotReplitUpdateOp message from the specified reader or buffer.
33868
+ * @function decode
33869
+ * @memberof api.DotReplitUpdateOp
33870
+ * @static
33871
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
33872
+ * @param {number} [length] Message length if known beforehand
33873
+ * @returns {api.DotReplitUpdateOp} DotReplitUpdateOp
33874
+ * @throws {Error} If the payload is not a reader or valid buffer
33875
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
33876
+ */
33877
+ DotReplitUpdateOp.decode = function decode(reader, length) {
33878
+ if (!(reader instanceof $Reader))
33879
+ reader = $Reader.create(reader);
33880
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.api.DotReplitUpdateOp();
33881
+ while (reader.pos < end) {
33882
+ var tag = reader.uint32();
33883
+ switch (tag >>> 3) {
33884
+ case 1:
33885
+ message.op = reader.string();
33886
+ break;
33887
+ case 2:
33888
+ message.path = reader.string();
33889
+ break;
33890
+ case 3:
33891
+ message.value = reader.string();
33892
+ break;
33893
+ default:
33894
+ reader.skipType(tag & 7);
33895
+ break;
33896
+ }
33897
+ }
33898
+ return message;
33899
+ };
33900
+
33901
+ /**
33902
+ * Decodes a DotReplitUpdateOp message from the specified reader or buffer, length delimited.
33903
+ * @function decodeDelimited
33904
+ * @memberof api.DotReplitUpdateOp
33905
+ * @static
33906
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
33907
+ * @returns {api.DotReplitUpdateOp} DotReplitUpdateOp
33908
+ * @throws {Error} If the payload is not a reader or valid buffer
33909
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
33910
+ */
33911
+ DotReplitUpdateOp.decodeDelimited = function decodeDelimited(reader) {
33912
+ if (!(reader instanceof $Reader))
33913
+ reader = new $Reader(reader);
33914
+ return this.decode(reader, reader.uint32());
33915
+ };
33916
+
33917
+ /**
33918
+ * Verifies a DotReplitUpdateOp message.
33919
+ * @function verify
33920
+ * @memberof api.DotReplitUpdateOp
33921
+ * @static
33922
+ * @param {Object.<string,*>} message Plain object to verify
33923
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
33924
+ */
33925
+ DotReplitUpdateOp.verify = function verify(message) {
33926
+ if (typeof message !== "object" || message === null)
33927
+ return "object expected";
33928
+ if (message.op != null && message.hasOwnProperty("op"))
33929
+ if (!$util.isString(message.op))
33930
+ return "op: string expected";
33931
+ if (message.path != null && message.hasOwnProperty("path"))
33932
+ if (!$util.isString(message.path))
33933
+ return "path: string expected";
33934
+ if (message.value != null && message.hasOwnProperty("value"))
33935
+ if (!$util.isString(message.value))
33936
+ return "value: string expected";
33937
+ return null;
33938
+ };
33939
+
33940
+ /**
33941
+ * Creates a DotReplitUpdateOp message from a plain object. Also converts values to their respective internal types.
33942
+ * @function fromObject
33943
+ * @memberof api.DotReplitUpdateOp
33944
+ * @static
33945
+ * @param {Object.<string,*>} object Plain object
33946
+ * @returns {api.DotReplitUpdateOp} DotReplitUpdateOp
33947
+ */
33948
+ DotReplitUpdateOp.fromObject = function fromObject(object) {
33949
+ if (object instanceof $root.api.DotReplitUpdateOp)
33950
+ return object;
33951
+ var message = new $root.api.DotReplitUpdateOp();
33952
+ if (object.op != null)
33953
+ message.op = String(object.op);
33954
+ if (object.path != null)
33955
+ message.path = String(object.path);
33956
+ if (object.value != null)
33957
+ message.value = String(object.value);
33958
+ return message;
33959
+ };
33960
+
33961
+ /**
33962
+ * Creates a plain object from a DotReplitUpdateOp message. Also converts values to other types if specified.
33963
+ * @function toObject
33964
+ * @memberof api.DotReplitUpdateOp
33965
+ * @static
33966
+ * @param {api.DotReplitUpdateOp} message DotReplitUpdateOp
33967
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
33968
+ * @returns {Object.<string,*>} Plain object
33969
+ */
33970
+ DotReplitUpdateOp.toObject = function toObject(message, options) {
33971
+ if (!options)
33972
+ options = {};
33973
+ var object = {};
33974
+ if (options.defaults) {
33975
+ object.op = "";
33976
+ object.path = "";
33977
+ object.value = "";
33978
+ }
33979
+ if (message.op != null && message.hasOwnProperty("op"))
33980
+ object.op = message.op;
33981
+ if (message.path != null && message.hasOwnProperty("path"))
33982
+ object.path = message.path;
33983
+ if (message.value != null && message.hasOwnProperty("value"))
33984
+ object.value = message.value;
33985
+ return object;
33986
+ };
33987
+
33988
+ /**
33989
+ * Converts this DotReplitUpdateOp to JSON.
33990
+ * @function toJSON
33991
+ * @memberof api.DotReplitUpdateOp
33992
+ * @instance
33993
+ * @returns {Object.<string,*>} JSON object
33994
+ */
33995
+ DotReplitUpdateOp.prototype.toJSON = function toJSON() {
33996
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
33997
+ };
33998
+
33999
+ return DotReplitUpdateOp;
34000
+ })();
34001
+
34002
+ api.DotReplitUpdateRequest = (function() {
34003
+
34004
+ /**
34005
+ * Properties of a DotReplitUpdateRequest.
34006
+ * @memberof api
34007
+ * @interface IDotReplitUpdateRequest
34008
+ * @property {Array.<api.DotReplitUpdateOp|api.IDotReplitUpdateOp>|null} [ops] DotReplitUpdateRequest ops
34009
+ */
34010
+
34011
+ /**
34012
+ * Constructs a new DotReplitUpdateRequest.
34013
+ * @memberof api
34014
+ * @classdesc Represents a DotReplitUpdateRequest.
34015
+ * @constructor
34016
+ * @param {api.IDotReplitUpdateRequest=} [properties] Properties to set
34017
+ */
34018
+ function DotReplitUpdateRequest(properties) {
34019
+ this.ops = [];
34020
+ if (properties)
34021
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
34022
+ if (properties[keys[i]] != null)
34023
+ this[keys[i]] = properties[keys[i]];
34024
+ }
34025
+
34026
+ /**
34027
+ * DotReplitUpdateRequest ops.
34028
+ * @member {Array.<api.DotReplitUpdateOp>} ops
34029
+ * @memberof api.DotReplitUpdateRequest
34030
+ * @instance
34031
+ */
34032
+ DotReplitUpdateRequest.prototype.ops = $util.emptyArray;
34033
+
34034
+ /**
34035
+ * Creates a new DotReplitUpdateRequest instance using the specified properties.
34036
+ * @function create
34037
+ * @memberof api.DotReplitUpdateRequest
34038
+ * @static
34039
+ * @param {api.IDotReplitUpdateRequest=} [properties] Properties to set
34040
+ * @returns {api.DotReplitUpdateRequest} DotReplitUpdateRequest instance
34041
+ */
34042
+ DotReplitUpdateRequest.create = function create(properties) {
34043
+ return DotReplitUpdateRequest.fromObject(properties);
34044
+ };
34045
+
34046
+ /**
34047
+ * Encodes the specified DotReplitUpdateRequest message. Does not implicitly {@link api.DotReplitUpdateRequest.verify|verify} messages.
34048
+ * @function encode
34049
+ * @memberof api.DotReplitUpdateRequest
34050
+ * @static
34051
+ * @param {api.DotReplitUpdateRequest} message DotReplitUpdateRequest message or plain object to encode
34052
+ * @param {$protobuf.Writer} [writer] Writer to encode to
34053
+ * @returns {$protobuf.Writer} Writer
34054
+ */
34055
+ DotReplitUpdateRequest.encode = function encode(message, writer) {
34056
+ if (!writer)
34057
+ writer = $Writer.create();
34058
+ if (message.ops != null && message.ops.length)
34059
+ for (var i = 0; i < message.ops.length; ++i)
34060
+ $root.api.DotReplitUpdateOp.encode(message.ops[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
34061
+ return writer;
34062
+ };
34063
+
34064
+ /**
34065
+ * Encodes the specified DotReplitUpdateRequest message, length delimited. Does not implicitly {@link api.DotReplitUpdateRequest.verify|verify} messages.
34066
+ * @function encodeDelimited
34067
+ * @memberof api.DotReplitUpdateRequest
34068
+ * @static
34069
+ * @param {api.DotReplitUpdateRequest} message DotReplitUpdateRequest message or plain object to encode
34070
+ * @param {$protobuf.Writer} [writer] Writer to encode to
34071
+ * @returns {$protobuf.Writer} Writer
34072
+ */
34073
+ DotReplitUpdateRequest.encodeDelimited = function encodeDelimited(message, writer) {
34074
+ return this.encode(message, writer).ldelim();
34075
+ };
34076
+
34077
+ /**
34078
+ * Decodes a DotReplitUpdateRequest message from the specified reader or buffer.
34079
+ * @function decode
34080
+ * @memberof api.DotReplitUpdateRequest
34081
+ * @static
34082
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
34083
+ * @param {number} [length] Message length if known beforehand
34084
+ * @returns {api.DotReplitUpdateRequest} DotReplitUpdateRequest
34085
+ * @throws {Error} If the payload is not a reader or valid buffer
34086
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
34087
+ */
34088
+ DotReplitUpdateRequest.decode = function decode(reader, length) {
34089
+ if (!(reader instanceof $Reader))
34090
+ reader = $Reader.create(reader);
34091
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.api.DotReplitUpdateRequest();
34092
+ while (reader.pos < end) {
34093
+ var tag = reader.uint32();
34094
+ switch (tag >>> 3) {
34095
+ case 1:
34096
+ if (!(message.ops && message.ops.length))
34097
+ message.ops = [];
34098
+ message.ops.push($root.api.DotReplitUpdateOp.decode(reader, reader.uint32()));
34099
+ break;
34100
+ default:
34101
+ reader.skipType(tag & 7);
34102
+ break;
34103
+ }
34104
+ }
34105
+ return message;
34106
+ };
34107
+
34108
+ /**
34109
+ * Decodes a DotReplitUpdateRequest message from the specified reader or buffer, length delimited.
34110
+ * @function decodeDelimited
34111
+ * @memberof api.DotReplitUpdateRequest
34112
+ * @static
34113
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
34114
+ * @returns {api.DotReplitUpdateRequest} DotReplitUpdateRequest
34115
+ * @throws {Error} If the payload is not a reader or valid buffer
34116
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
34117
+ */
34118
+ DotReplitUpdateRequest.decodeDelimited = function decodeDelimited(reader) {
34119
+ if (!(reader instanceof $Reader))
34120
+ reader = new $Reader(reader);
34121
+ return this.decode(reader, reader.uint32());
34122
+ };
34123
+
34124
+ /**
34125
+ * Verifies a DotReplitUpdateRequest message.
34126
+ * @function verify
34127
+ * @memberof api.DotReplitUpdateRequest
34128
+ * @static
34129
+ * @param {Object.<string,*>} message Plain object to verify
34130
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
34131
+ */
34132
+ DotReplitUpdateRequest.verify = function verify(message) {
34133
+ if (typeof message !== "object" || message === null)
34134
+ return "object expected";
34135
+ if (message.ops != null && message.hasOwnProperty("ops")) {
34136
+ if (!Array.isArray(message.ops))
34137
+ return "ops: array expected";
34138
+ for (var i = 0; i < message.ops.length; ++i) {
34139
+ var error = $root.api.DotReplitUpdateOp.verify(message.ops[i]);
34140
+ if (error)
34141
+ return "ops." + error;
34142
+ }
34143
+ }
34144
+ return null;
34145
+ };
34146
+
34147
+ /**
34148
+ * Creates a DotReplitUpdateRequest message from a plain object. Also converts values to their respective internal types.
34149
+ * @function fromObject
34150
+ * @memberof api.DotReplitUpdateRequest
34151
+ * @static
34152
+ * @param {Object.<string,*>} object Plain object
34153
+ * @returns {api.DotReplitUpdateRequest} DotReplitUpdateRequest
34154
+ */
34155
+ DotReplitUpdateRequest.fromObject = function fromObject(object) {
34156
+ if (object instanceof $root.api.DotReplitUpdateRequest)
34157
+ return object;
34158
+ var message = new $root.api.DotReplitUpdateRequest();
34159
+ if (object.ops) {
34160
+ if (!Array.isArray(object.ops))
34161
+ throw TypeError(".api.DotReplitUpdateRequest.ops: array expected");
34162
+ message.ops = [];
34163
+ for (var i = 0; i < object.ops.length; ++i) {
34164
+ if (typeof object.ops[i] !== "object")
34165
+ throw TypeError(".api.DotReplitUpdateRequest.ops: object expected");
34166
+ message.ops[i] = $root.api.DotReplitUpdateOp.fromObject(object.ops[i]);
34167
+ }
34168
+ }
34169
+ return message;
34170
+ };
34171
+
34172
+ /**
34173
+ * Creates a plain object from a DotReplitUpdateRequest message. Also converts values to other types if specified.
34174
+ * @function toObject
34175
+ * @memberof api.DotReplitUpdateRequest
34176
+ * @static
34177
+ * @param {api.DotReplitUpdateRequest} message DotReplitUpdateRequest
34178
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
34179
+ * @returns {Object.<string,*>} Plain object
34180
+ */
34181
+ DotReplitUpdateRequest.toObject = function toObject(message, options) {
34182
+ if (!options)
34183
+ options = {};
34184
+ var object = {};
34185
+ if (options.arrays || options.defaults)
34186
+ object.ops = [];
34187
+ if (message.ops && message.ops.length) {
34188
+ object.ops = [];
34189
+ for (var j = 0; j < message.ops.length; ++j)
34190
+ object.ops[j] = $root.api.DotReplitUpdateOp.toObject(message.ops[j], options);
34191
+ }
34192
+ return object;
34193
+ };
34194
+
34195
+ /**
34196
+ * Converts this DotReplitUpdateRequest to JSON.
34197
+ * @function toJSON
34198
+ * @memberof api.DotReplitUpdateRequest
34199
+ * @instance
34200
+ * @returns {Object.<string,*>} JSON object
34201
+ */
34202
+ DotReplitUpdateRequest.prototype.toJSON = function toJSON() {
34203
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
34204
+ };
34205
+
34206
+ return DotReplitUpdateRequest;
34207
+ })();
34208
+
34209
+ api.DotReplitUpdateResponse = (function() {
34210
+
34211
+ /**
34212
+ * Properties of a DotReplitUpdateResponse.
34213
+ * @memberof api
34214
+ * @interface IDotReplitUpdateResponse
34215
+ */
34216
+
34217
+ /**
34218
+ * Constructs a new DotReplitUpdateResponse.
34219
+ * @memberof api
34220
+ * @classdesc Represents a DotReplitUpdateResponse.
34221
+ * @constructor
34222
+ * @param {api.IDotReplitUpdateResponse=} [properties] Properties to set
34223
+ */
34224
+ function DotReplitUpdateResponse(properties) {
34225
+ if (properties)
34226
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
34227
+ if (properties[keys[i]] != null)
34228
+ this[keys[i]] = properties[keys[i]];
34229
+ }
34230
+
34231
+ /**
34232
+ * Creates a new DotReplitUpdateResponse instance using the specified properties.
34233
+ * @function create
34234
+ * @memberof api.DotReplitUpdateResponse
34235
+ * @static
34236
+ * @param {api.IDotReplitUpdateResponse=} [properties] Properties to set
34237
+ * @returns {api.DotReplitUpdateResponse} DotReplitUpdateResponse instance
34238
+ */
34239
+ DotReplitUpdateResponse.create = function create(properties) {
34240
+ return DotReplitUpdateResponse.fromObject(properties);
34241
+ };
34242
+
34243
+ /**
34244
+ * Encodes the specified DotReplitUpdateResponse message. Does not implicitly {@link api.DotReplitUpdateResponse.verify|verify} messages.
34245
+ * @function encode
34246
+ * @memberof api.DotReplitUpdateResponse
34247
+ * @static
34248
+ * @param {api.DotReplitUpdateResponse} message DotReplitUpdateResponse message or plain object to encode
34249
+ * @param {$protobuf.Writer} [writer] Writer to encode to
34250
+ * @returns {$protobuf.Writer} Writer
34251
+ */
34252
+ DotReplitUpdateResponse.encode = function encode(message, writer) {
34253
+ if (!writer)
34254
+ writer = $Writer.create();
34255
+ return writer;
34256
+ };
34257
+
34258
+ /**
34259
+ * Encodes the specified DotReplitUpdateResponse message, length delimited. Does not implicitly {@link api.DotReplitUpdateResponse.verify|verify} messages.
34260
+ * @function encodeDelimited
34261
+ * @memberof api.DotReplitUpdateResponse
34262
+ * @static
34263
+ * @param {api.DotReplitUpdateResponse} message DotReplitUpdateResponse message or plain object to encode
34264
+ * @param {$protobuf.Writer} [writer] Writer to encode to
34265
+ * @returns {$protobuf.Writer} Writer
34266
+ */
34267
+ DotReplitUpdateResponse.encodeDelimited = function encodeDelimited(message, writer) {
34268
+ return this.encode(message, writer).ldelim();
34269
+ };
34270
+
34271
+ /**
34272
+ * Decodes a DotReplitUpdateResponse message from the specified reader or buffer.
34273
+ * @function decode
34274
+ * @memberof api.DotReplitUpdateResponse
34275
+ * @static
34276
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
34277
+ * @param {number} [length] Message length if known beforehand
34278
+ * @returns {api.DotReplitUpdateResponse} DotReplitUpdateResponse
34279
+ * @throws {Error} If the payload is not a reader or valid buffer
34280
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
34281
+ */
34282
+ DotReplitUpdateResponse.decode = function decode(reader, length) {
34283
+ if (!(reader instanceof $Reader))
34284
+ reader = $Reader.create(reader);
34285
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.api.DotReplitUpdateResponse();
34286
+ while (reader.pos < end) {
34287
+ var tag = reader.uint32();
34288
+ switch (tag >>> 3) {
34289
+ default:
34290
+ reader.skipType(tag & 7);
34291
+ break;
34292
+ }
34293
+ }
34294
+ return message;
34295
+ };
34296
+
34297
+ /**
34298
+ * Decodes a DotReplitUpdateResponse message from the specified reader or buffer, length delimited.
34299
+ * @function decodeDelimited
34300
+ * @memberof api.DotReplitUpdateResponse
34301
+ * @static
34302
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
34303
+ * @returns {api.DotReplitUpdateResponse} DotReplitUpdateResponse
34304
+ * @throws {Error} If the payload is not a reader or valid buffer
34305
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
34306
+ */
34307
+ DotReplitUpdateResponse.decodeDelimited = function decodeDelimited(reader) {
34308
+ if (!(reader instanceof $Reader))
34309
+ reader = new $Reader(reader);
34310
+ return this.decode(reader, reader.uint32());
34311
+ };
34312
+
34313
+ /**
34314
+ * Verifies a DotReplitUpdateResponse message.
34315
+ * @function verify
34316
+ * @memberof api.DotReplitUpdateResponse
34317
+ * @static
34318
+ * @param {Object.<string,*>} message Plain object to verify
34319
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
34320
+ */
34321
+ DotReplitUpdateResponse.verify = function verify(message) {
34322
+ if (typeof message !== "object" || message === null)
34323
+ return "object expected";
34324
+ return null;
34325
+ };
34326
+
34327
+ /**
34328
+ * Creates a DotReplitUpdateResponse message from a plain object. Also converts values to their respective internal types.
34329
+ * @function fromObject
34330
+ * @memberof api.DotReplitUpdateResponse
34331
+ * @static
34332
+ * @param {Object.<string,*>} object Plain object
34333
+ * @returns {api.DotReplitUpdateResponse} DotReplitUpdateResponse
34334
+ */
34335
+ DotReplitUpdateResponse.fromObject = function fromObject(object) {
34336
+ if (object instanceof $root.api.DotReplitUpdateResponse)
34337
+ return object;
34338
+ return new $root.api.DotReplitUpdateResponse();
34339
+ };
34340
+
34341
+ /**
34342
+ * Creates a plain object from a DotReplitUpdateResponse message. Also converts values to other types if specified.
34343
+ * @function toObject
34344
+ * @memberof api.DotReplitUpdateResponse
34345
+ * @static
34346
+ * @param {api.DotReplitUpdateResponse} message DotReplitUpdateResponse
34347
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
34348
+ * @returns {Object.<string,*>} Plain object
34349
+ */
34350
+ DotReplitUpdateResponse.toObject = function toObject() {
34351
+ return {};
34352
+ };
34353
+
34354
+ /**
34355
+ * Converts this DotReplitUpdateResponse to JSON.
34356
+ * @function toJSON
34357
+ * @memberof api.DotReplitUpdateResponse
34358
+ * @instance
34359
+ * @returns {Object.<string,*>} JSON object
34360
+ */
34361
+ DotReplitUpdateResponse.prototype.toJSON = function toJSON() {
34362
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
34363
+ };
34364
+
34365
+ return DotReplitUpdateResponse;
34366
+ })();
34367
+
33703
34368
  api.DebugAddBreakpointRequest = (function() {
33704
34369
 
33705
34370
  /**
@@ -34959,6 +35624,10 @@
34959
35624
  * @property {Object.<string,api.DotReplitLanguage|api.IDotReplitLanguage>|null} [languages] DotReplit languages
34960
35625
  * @property {api.DotReplitUnitTest|api.IDotReplitUnitTest|null} [unitTest] DotReplit unitTest
34961
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
34962
35631
  */
34963
35632
 
34964
35633
  /**
@@ -34971,6 +35640,7 @@
34971
35640
  function DotReplit(properties) {
34972
35641
  this.languages = {};
34973
35642
  this.hidden = [];
35643
+ this.env = {};
34974
35644
  if (properties)
34975
35645
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
34976
35646
  if (properties[keys[i]] != null)
@@ -35065,6 +35735,38 @@
35065
35735
  */
35066
35736
  DotReplit.prototype.hidden = $util.emptyArray;
35067
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
+
35068
35770
  /**
35069
35771
  * Creates a new DotReplit instance using the specified properties.
35070
35772
  * @function create
@@ -35115,6 +35817,15 @@
35115
35817
  if (message.hidden != null && message.hidden.length)
35116
35818
  for (var i = 0; i < message.hidden.length; ++i)
35117
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();
35118
35829
  return writer;
35119
35830
  };
35120
35831
 
@@ -35203,6 +35914,37 @@
35203
35914
  message.hidden = [];
35204
35915
  message.hidden.push(reader.string());
35205
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;
35206
35948
  default:
35207
35949
  reader.skipType(tag & 7);
35208
35950
  break;
@@ -35296,6 +36038,27 @@
35296
36038
  if (!$util.isString(message.hidden[i]))
35297
36039
  return "hidden: string[] expected";
35298
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
+ }
35299
36062
  return null;
35300
36063
  };
35301
36064
 
@@ -35367,6 +36130,25 @@
35367
36130
  for (var i = 0; i < object.hidden.length; ++i)
35368
36131
  message.hidden[i] = String(object.hidden[i]);
35369
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
+ }
35370
36152
  return message;
35371
36153
  };
35372
36154
 
@@ -35385,8 +36167,10 @@
35385
36167
  var object = {};
35386
36168
  if (options.arrays || options.defaults)
35387
36169
  object.hidden = [];
35388
- if (options.objects || options.defaults)
36170
+ if (options.objects || options.defaults) {
35389
36171
  object.languages = {};
36172
+ object.env = {};
36173
+ }
35390
36174
  if (options.defaults) {
35391
36175
  object.run = null;
35392
36176
  object.compile = null;
@@ -35397,6 +36181,9 @@
35397
36181
  object.interpreter = null;
35398
36182
  object.entrypoint = "";
35399
36183
  object.unitTest = null;
36184
+ object.nix = null;
36185
+ object.audio = false;
36186
+ object.hosting = null;
35400
36187
  }
35401
36188
  if (message.run != null && message.hasOwnProperty("run"))
35402
36189
  object.run = $root.api.Exec.toObject(message.run, options);
@@ -35427,6 +36214,17 @@
35427
36214
  for (var j = 0; j < message.hidden.length; ++j)
35428
36215
  object.hidden[j] = message.hidden[j];
35429
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
+ }
35430
36228
  return object;
35431
36229
  };
35432
36230
 
@@ -35444,6 +36242,401 @@
35444
36242
  return DotReplit;
35445
36243
  })();
35446
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);
36599
+ return message;
36600
+ };
36601
+
36602
+ /**
36603
+ * Creates a plain object from a HostingConfig message. Also converts values to other types if specified.
36604
+ * @function toObject
36605
+ * @memberof api.HostingConfig
36606
+ * @static
36607
+ * @param {api.HostingConfig} message HostingConfig
36608
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
36609
+ * @returns {Object.<string,*>} Plain object
36610
+ */
36611
+ HostingConfig.toObject = function toObject(message, options) {
36612
+ if (!options)
36613
+ options = {};
36614
+ var object = {};
36615
+ if (options.defaults) {
36616
+ object.route = "";
36617
+ object.directory = "";
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;
36623
+ return object;
36624
+ };
36625
+
36626
+ /**
36627
+ * Converts this HostingConfig to JSON.
36628
+ * @function toJSON
36629
+ * @memberof api.HostingConfig
36630
+ * @instance
36631
+ * @returns {Object.<string,*>} JSON object
36632
+ */
36633
+ HostingConfig.prototype.toJSON = function toJSON() {
36634
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
36635
+ };
36636
+
36637
+ return HostingConfig;
36638
+ })();
36639
+
35447
36640
  api.DotReplitInterp = (function() {
35448
36641
 
35449
36642
  /**
@@ -41298,11 +42491,17 @@
41298
42491
  * @enum {number}
41299
42492
  * @property {number} MINT_GOVAL_TOKEN=0 MINT_GOVAL_TOKEN value
41300
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
41301
42497
  */
41302
42498
  api.FlagClaim = (function() {
41303
42499
  var valuesById = {}, values = Object.create(valuesById);
41304
42500
  values[valuesById[0] = "MINT_GOVAL_TOKEN"] = 0;
41305
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;
41306
42505
  return values;
41307
42506
  })();
41308
42507
 
@@ -41314,6 +42513,7 @@
41314
42513
  * @interface ICertificateClaim
41315
42514
  * @property {string|null} [replid] CertificateClaim replid
41316
42515
  * @property {string|null} [user] CertificateClaim user
42516
+ * @property {string|null} [cluster] CertificateClaim cluster
41317
42517
  * @property {api.FlagClaim|null} [flag] CertificateClaim flag
41318
42518
  */
41319
42519
 
@@ -41347,6 +42547,14 @@
41347
42547
  */
41348
42548
  CertificateClaim.prototype.user = null;
41349
42549
 
42550
+ /**
42551
+ * CertificateClaim cluster.
42552
+ * @member {string|null|undefined} cluster
42553
+ * @memberof api.CertificateClaim
42554
+ * @instance
42555
+ */
42556
+ CertificateClaim.prototype.cluster = null;
42557
+
41350
42558
  /**
41351
42559
  * CertificateClaim flag.
41352
42560
  * @member {api.FlagClaim|null|undefined} flag
@@ -41360,12 +42568,12 @@
41360
42568
 
41361
42569
  /**
41362
42570
  * CertificateClaim claim.
41363
- * @member {"replid"|"user"|"flag"|undefined} claim
42571
+ * @member {"replid"|"user"|"cluster"|"flag"|undefined} claim
41364
42572
  * @memberof api.CertificateClaim
41365
42573
  * @instance
41366
42574
  */
41367
42575
  Object.defineProperty(CertificateClaim.prototype, "claim", {
41368
- get: $util.oneOfGetter($oneOfFields = ["replid", "user", "flag"]),
42576
+ get: $util.oneOfGetter($oneOfFields = ["replid", "user", "cluster", "flag"]),
41369
42577
  set: $util.oneOfSetter($oneOfFields)
41370
42578
  });
41371
42579
 
@@ -41399,6 +42607,8 @@
41399
42607
  writer.uint32(/* id 2, wireType 2 =*/18).string(message.user);
41400
42608
  if (message.flag != null && Object.hasOwnProperty.call(message, "flag"))
41401
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);
41402
42612
  return writer;
41403
42613
  };
41404
42614
 
@@ -41439,6 +42649,9 @@
41439
42649
  case 2:
41440
42650
  message.user = reader.string();
41441
42651
  break;
42652
+ case 4:
42653
+ message.cluster = reader.string();
42654
+ break;
41442
42655
  case 3:
41443
42656
  message.flag = reader.int32();
41444
42657
  break;
@@ -41490,6 +42703,13 @@
41490
42703
  if (!$util.isString(message.user))
41491
42704
  return "user: string expected";
41492
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
+ }
41493
42713
  if (message.flag != null && message.hasOwnProperty("flag")) {
41494
42714
  if (properties.claim === 1)
41495
42715
  return "claim: multiple values";
@@ -41499,6 +42719,9 @@
41499
42719
  return "flag: enum value expected";
41500
42720
  case 0:
41501
42721
  case 1:
42722
+ case 2:
42723
+ case 3:
42724
+ case 4:
41502
42725
  break;
41503
42726
  }
41504
42727
  }
@@ -41521,6 +42744,8 @@
41521
42744
  message.replid = String(object.replid);
41522
42745
  if (object.user != null)
41523
42746
  message.user = String(object.user);
42747
+ if (object.cluster != null)
42748
+ message.cluster = String(object.cluster);
41524
42749
  switch (object.flag) {
41525
42750
  case "MINT_GOVAL_TOKEN":
41526
42751
  case 0:
@@ -41530,6 +42755,18 @@
41530
42755
  case 1:
41531
42756
  message.flag = 1;
41532
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;
41533
42770
  }
41534
42771
  return message;
41535
42772
  };
@@ -41562,6 +42799,11 @@
41562
42799
  if (options.oneofs)
41563
42800
  object.claim = "flag";
41564
42801
  }
42802
+ if (message.cluster != null && message.hasOwnProperty("cluster")) {
42803
+ object.cluster = message.cluster;
42804
+ if (options.oneofs)
42805
+ object.claim = "cluster";
42806
+ }
41565
42807
  return object;
41566
42808
  };
41567
42809
 
@@ -42152,6 +43394,237 @@
42152
43394
  return GovalToken;
42153
43395
  })();
42154
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
+
42155
43628
  return api;
42156
43629
  })();
42157
43630