@replit/protocol 0.2.43 → 0.2.46
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/iotester/index.d.ts +6 -0
- package/iotester/index.js +24 -1
- package/iotester/index.js.flow +10 -0
- package/main/index.d.ts +145 -1
- package/main/index.js +458 -7
- package/main/index.js.flow +212 -1
- package/package.json +1 -1
package/main/index.js
CHANGED
|
@@ -145,6 +145,7 @@
|
|
|
145
145
|
* @property {api.FSLock|api.IFSLock|null} [fsReleaseLock] Command fsReleaseLock
|
|
146
146
|
* @property {boolean|null} [hasCap] Command hasCap
|
|
147
147
|
* @property {api.SnapshotEvent|api.ISnapshotEvent|null} [snapshotEvent] Command snapshotEvent
|
|
148
|
+
* @property {boolean|null} [NoninteractiveFSChangeEvent] Command NoninteractiveFSChangeEvent
|
|
148
149
|
* @property {api.Pid1Config|api.IPid1Config|null} [pid1Config] Command pid1Config
|
|
149
150
|
* @property {api.Metrics|api.IMetrics|null} [metrics] Command metrics
|
|
150
151
|
* @property {api.BootStatus|api.IBootStatus|null} [bootStatus] Command bootStatus
|
|
@@ -1105,6 +1106,14 @@
|
|
|
1105
1106
|
*/
|
|
1106
1107
|
Command.prototype.snapshotEvent = null;
|
|
1107
1108
|
|
|
1109
|
+
/**
|
|
1110
|
+
* Command NoninteractiveFSChangeEvent.
|
|
1111
|
+
* @member {boolean|null|undefined} NoninteractiveFSChangeEvent
|
|
1112
|
+
* @memberof api.Command
|
|
1113
|
+
* @instance
|
|
1114
|
+
*/
|
|
1115
|
+
Command.prototype.NoninteractiveFSChangeEvent = null;
|
|
1116
|
+
|
|
1108
1117
|
/**
|
|
1109
1118
|
* Command pid1Config.
|
|
1110
1119
|
* @member {api.Pid1Config|null|undefined} pid1Config
|
|
@@ -1366,12 +1375,12 @@
|
|
|
1366
1375
|
|
|
1367
1376
|
/**
|
|
1368
1377
|
* Command body.
|
|
1369
|
-
* @member {"openChan"|"openChanRes"|"closeChan"|"closeChanRes"|"containerState"|"portOpen"|"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"|"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"|"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"|undefined} body
|
|
1378
|
+
* @member {"openChan"|"openChanRes"|"closeChan"|"closeChanRes"|"containerState"|"portOpen"|"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"|"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"|undefined} body
|
|
1370
1379
|
* @memberof api.Command
|
|
1371
1380
|
* @instance
|
|
1372
1381
|
*/
|
|
1373
1382
|
Object.defineProperty(Command.prototype, "body", {
|
|
1374
|
-
get: $util.oneOfGetter($oneOfFields = ["openChan", "openChanRes", "closeChan", "closeChanRes", "containerState", "portOpen", "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", "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", "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"]),
|
|
1383
|
+
get: $util.oneOfGetter($oneOfFields = ["openChan", "openChanRes", "closeChan", "closeChanRes", "containerState", "portOpen", "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", "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"]),
|
|
1375
1384
|
set: $util.oneOfSetter($oneOfFields)
|
|
1376
1385
|
});
|
|
1377
1386
|
|
|
@@ -1689,6 +1698,8 @@
|
|
|
1689
1698
|
$root.api.RunConfigGetRequest.encode(message.runConfigGetRequest, writer.uint32(/* id 390, wireType 2 =*/3122).fork()).ldelim();
|
|
1690
1699
|
if (message.runConfigGetResponse != null && Object.hasOwnProperty.call(message, "runConfigGetResponse"))
|
|
1691
1700
|
$root.api.RunConfigGetResponse.encode(message.runConfigGetResponse, writer.uint32(/* id 391, wireType 2 =*/3130).fork()).ldelim();
|
|
1701
|
+
if (message.NoninteractiveFSChangeEvent != null && Object.hasOwnProperty.call(message, "NoninteractiveFSChangeEvent"))
|
|
1702
|
+
writer.uint32(/* id 392, wireType 0 =*/3136).bool(message.NoninteractiveFSChangeEvent);
|
|
1692
1703
|
if (message.ref != null && Object.hasOwnProperty.call(message, "ref"))
|
|
1693
1704
|
writer.uint32(/* id 1000, wireType 2 =*/8002).string(message.ref);
|
|
1694
1705
|
return writer;
|
|
@@ -2067,6 +2078,9 @@
|
|
|
2067
2078
|
case 389:
|
|
2068
2079
|
message.snapshotEvent = $root.api.SnapshotEvent.decode(reader, reader.uint32());
|
|
2069
2080
|
break;
|
|
2081
|
+
case 392:
|
|
2082
|
+
message.NoninteractiveFSChangeEvent = reader.bool();
|
|
2083
|
+
break;
|
|
2070
2084
|
case 340:
|
|
2071
2085
|
message.pid1Config = $root.api.Pid1Config.decode(reader, reader.uint32());
|
|
2072
2086
|
break;
|
|
@@ -3298,6 +3312,13 @@
|
|
|
3298
3312
|
return "snapshotEvent." + error;
|
|
3299
3313
|
}
|
|
3300
3314
|
}
|
|
3315
|
+
if (message.NoninteractiveFSChangeEvent != null && message.hasOwnProperty("NoninteractiveFSChangeEvent")) {
|
|
3316
|
+
if (properties.body === 1)
|
|
3317
|
+
return "body: multiple values";
|
|
3318
|
+
properties.body = 1;
|
|
3319
|
+
if (typeof message.NoninteractiveFSChangeEvent !== "boolean")
|
|
3320
|
+
return "NoninteractiveFSChangeEvent: boolean expected";
|
|
3321
|
+
}
|
|
3301
3322
|
if (message.pid1Config != null && message.hasOwnProperty("pid1Config")) {
|
|
3302
3323
|
if (properties.body === 1)
|
|
3303
3324
|
return "body: multiple values";
|
|
@@ -4168,6 +4189,8 @@
|
|
|
4168
4189
|
throw TypeError(".api.Command.snapshotEvent: object expected");
|
|
4169
4190
|
message.snapshotEvent = $root.api.SnapshotEvent.fromObject(object.snapshotEvent);
|
|
4170
4191
|
}
|
|
4192
|
+
if (object.NoninteractiveFSChangeEvent != null)
|
|
4193
|
+
message.NoninteractiveFSChangeEvent = Boolean(object.NoninteractiveFSChangeEvent);
|
|
4171
4194
|
if (object.pid1Config != null) {
|
|
4172
4195
|
if (typeof object.pid1Config !== "object")
|
|
4173
4196
|
throw TypeError(".api.Command.pid1Config: object expected");
|
|
@@ -5065,6 +5088,11 @@
|
|
|
5065
5088
|
if (options.oneofs)
|
|
5066
5089
|
object.body = "runConfigGetResponse";
|
|
5067
5090
|
}
|
|
5091
|
+
if (message.NoninteractiveFSChangeEvent != null && message.hasOwnProperty("NoninteractiveFSChangeEvent")) {
|
|
5092
|
+
object.NoninteractiveFSChangeEvent = message.NoninteractiveFSChangeEvent;
|
|
5093
|
+
if (options.oneofs)
|
|
5094
|
+
object.body = "NoninteractiveFSChangeEvent";
|
|
5095
|
+
}
|
|
5068
5096
|
if (message.ref != null && message.hasOwnProperty("ref"))
|
|
5069
5097
|
object.ref = message.ref;
|
|
5070
5098
|
return object;
|
|
@@ -7805,6 +7833,7 @@
|
|
|
7805
7833
|
* @property {string|null} [language] Pid1Config language
|
|
7806
7834
|
* @property {Object.<string,string>|null} [env] Pid1Config env
|
|
7807
7835
|
* @property {boolean|null} [noStore] Pid1Config noStore
|
|
7836
|
+
* @property {boolean|null} [noninteractiveFSChange] Pid1Config noninteractiveFSChange
|
|
7808
7837
|
*/
|
|
7809
7838
|
|
|
7810
7839
|
/**
|
|
@@ -7854,6 +7883,14 @@
|
|
|
7854
7883
|
*/
|
|
7855
7884
|
Pid1Config.prototype.noStore = false;
|
|
7856
7885
|
|
|
7886
|
+
/**
|
|
7887
|
+
* Pid1Config noninteractiveFSChange.
|
|
7888
|
+
* @member {boolean} noninteractiveFSChange
|
|
7889
|
+
* @memberof api.Pid1Config
|
|
7890
|
+
* @instance
|
|
7891
|
+
*/
|
|
7892
|
+
Pid1Config.prototype.noninteractiveFSChange = false;
|
|
7893
|
+
|
|
7857
7894
|
/**
|
|
7858
7895
|
* Creates a new Pid1Config instance using the specified properties.
|
|
7859
7896
|
* @function create
|
|
@@ -7887,6 +7924,8 @@
|
|
|
7887
7924
|
writer.uint32(/* id 3, wireType 2 =*/26).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.env[keys[i]]).ldelim();
|
|
7888
7925
|
if (message.noStore != null && Object.hasOwnProperty.call(message, "noStore"))
|
|
7889
7926
|
writer.uint32(/* id 4, wireType 0 =*/32).bool(message.noStore);
|
|
7927
|
+
if (message.noninteractiveFSChange != null && Object.hasOwnProperty.call(message, "noninteractiveFSChange"))
|
|
7928
|
+
writer.uint32(/* id 5, wireType 0 =*/40).bool(message.noninteractiveFSChange);
|
|
7890
7929
|
return writer;
|
|
7891
7930
|
};
|
|
7892
7931
|
|
|
@@ -7952,6 +7991,9 @@
|
|
|
7952
7991
|
case 4:
|
|
7953
7992
|
message.noStore = reader.bool();
|
|
7954
7993
|
break;
|
|
7994
|
+
case 5:
|
|
7995
|
+
message.noninteractiveFSChange = reader.bool();
|
|
7996
|
+
break;
|
|
7955
7997
|
default:
|
|
7956
7998
|
reader.skipType(tag & 7);
|
|
7957
7999
|
break;
|
|
@@ -8004,6 +8046,9 @@
|
|
|
8004
8046
|
if (message.noStore != null && message.hasOwnProperty("noStore"))
|
|
8005
8047
|
if (typeof message.noStore !== "boolean")
|
|
8006
8048
|
return "noStore: boolean expected";
|
|
8049
|
+
if (message.noninteractiveFSChange != null && message.hasOwnProperty("noninteractiveFSChange"))
|
|
8050
|
+
if (typeof message.noninteractiveFSChange !== "boolean")
|
|
8051
|
+
return "noninteractiveFSChange: boolean expected";
|
|
8007
8052
|
return null;
|
|
8008
8053
|
};
|
|
8009
8054
|
|
|
@@ -8032,6 +8077,8 @@
|
|
|
8032
8077
|
}
|
|
8033
8078
|
if (object.noStore != null)
|
|
8034
8079
|
message.noStore = Boolean(object.noStore);
|
|
8080
|
+
if (object.noninteractiveFSChange != null)
|
|
8081
|
+
message.noninteractiveFSChange = Boolean(object.noninteractiveFSChange);
|
|
8035
8082
|
return message;
|
|
8036
8083
|
};
|
|
8037
8084
|
|
|
@@ -8054,6 +8101,7 @@
|
|
|
8054
8101
|
object.cwd = "";
|
|
8055
8102
|
object.language = "";
|
|
8056
8103
|
object.noStore = false;
|
|
8104
|
+
object.noninteractiveFSChange = false;
|
|
8057
8105
|
}
|
|
8058
8106
|
if (message.cwd != null && message.hasOwnProperty("cwd"))
|
|
8059
8107
|
object.cwd = message.cwd;
|
|
@@ -8067,6 +8115,8 @@
|
|
|
8067
8115
|
}
|
|
8068
8116
|
if (message.noStore != null && message.hasOwnProperty("noStore"))
|
|
8069
8117
|
object.noStore = message.noStore;
|
|
8118
|
+
if (message.noninteractiveFSChange != null && message.hasOwnProperty("noninteractiveFSChange"))
|
|
8119
|
+
object.noninteractiveFSChange = message.noninteractiveFSChange;
|
|
8070
8120
|
return object;
|
|
8071
8121
|
};
|
|
8072
8122
|
|
|
@@ -23906,6 +23956,7 @@
|
|
|
23906
23956
|
* @property {string|null} [name] User name
|
|
23907
23957
|
* @property {Array.<string>|null} [roles] User roles
|
|
23908
23958
|
* @property {number|null} [session] User session
|
|
23959
|
+
* @property {Array.<string>|null} [teams] User teams
|
|
23909
23960
|
*/
|
|
23910
23961
|
|
|
23911
23962
|
/**
|
|
@@ -23917,6 +23968,7 @@
|
|
|
23917
23968
|
*/
|
|
23918
23969
|
function User(properties) {
|
|
23919
23970
|
this.roles = [];
|
|
23971
|
+
this.teams = [];
|
|
23920
23972
|
if (properties)
|
|
23921
23973
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
23922
23974
|
if (properties[keys[i]] != null)
|
|
@@ -23955,6 +24007,14 @@
|
|
|
23955
24007
|
*/
|
|
23956
24008
|
User.prototype.session = 0;
|
|
23957
24009
|
|
|
24010
|
+
/**
|
|
24011
|
+
* User teams.
|
|
24012
|
+
* @member {Array.<string>} teams
|
|
24013
|
+
* @memberof api.User
|
|
24014
|
+
* @instance
|
|
24015
|
+
*/
|
|
24016
|
+
User.prototype.teams = $util.emptyArray;
|
|
24017
|
+
|
|
23958
24018
|
/**
|
|
23959
24019
|
* Creates a new User instance using the specified properties.
|
|
23960
24020
|
* @function create
|
|
@@ -23988,6 +24048,9 @@
|
|
|
23988
24048
|
writer.uint32(/* id 3, wireType 2 =*/26).string(message.roles[i]);
|
|
23989
24049
|
if (message.session != null && Object.hasOwnProperty.call(message, "session"))
|
|
23990
24050
|
writer.uint32(/* id 4, wireType 0 =*/32).int32(message.session);
|
|
24051
|
+
if (message.teams != null && message.teams.length)
|
|
24052
|
+
for (var i = 0; i < message.teams.length; ++i)
|
|
24053
|
+
writer.uint32(/* id 5, wireType 2 =*/42).string(message.teams[i]);
|
|
23991
24054
|
return writer;
|
|
23992
24055
|
};
|
|
23993
24056
|
|
|
@@ -24036,6 +24099,11 @@
|
|
|
24036
24099
|
case 4:
|
|
24037
24100
|
message.session = reader.int32();
|
|
24038
24101
|
break;
|
|
24102
|
+
case 5:
|
|
24103
|
+
if (!(message.teams && message.teams.length))
|
|
24104
|
+
message.teams = [];
|
|
24105
|
+
message.teams.push(reader.string());
|
|
24106
|
+
break;
|
|
24039
24107
|
default:
|
|
24040
24108
|
reader.skipType(tag & 7);
|
|
24041
24109
|
break;
|
|
@@ -24087,6 +24155,13 @@
|
|
|
24087
24155
|
if (message.session != null && message.hasOwnProperty("session"))
|
|
24088
24156
|
if (!$util.isInteger(message.session))
|
|
24089
24157
|
return "session: integer expected";
|
|
24158
|
+
if (message.teams != null && message.hasOwnProperty("teams")) {
|
|
24159
|
+
if (!Array.isArray(message.teams))
|
|
24160
|
+
return "teams: array expected";
|
|
24161
|
+
for (var i = 0; i < message.teams.length; ++i)
|
|
24162
|
+
if (!$util.isString(message.teams[i]))
|
|
24163
|
+
return "teams: string[] expected";
|
|
24164
|
+
}
|
|
24090
24165
|
return null;
|
|
24091
24166
|
};
|
|
24092
24167
|
|
|
@@ -24115,6 +24190,13 @@
|
|
|
24115
24190
|
}
|
|
24116
24191
|
if (object.session != null)
|
|
24117
24192
|
message.session = object.session | 0;
|
|
24193
|
+
if (object.teams) {
|
|
24194
|
+
if (!Array.isArray(object.teams))
|
|
24195
|
+
throw TypeError(".api.User.teams: array expected");
|
|
24196
|
+
message.teams = [];
|
|
24197
|
+
for (var i = 0; i < object.teams.length; ++i)
|
|
24198
|
+
message.teams[i] = String(object.teams[i]);
|
|
24199
|
+
}
|
|
24118
24200
|
return message;
|
|
24119
24201
|
};
|
|
24120
24202
|
|
|
@@ -24131,8 +24213,10 @@
|
|
|
24131
24213
|
if (!options)
|
|
24132
24214
|
options = {};
|
|
24133
24215
|
var object = {};
|
|
24134
|
-
if (options.arrays || options.defaults)
|
|
24216
|
+
if (options.arrays || options.defaults) {
|
|
24135
24217
|
object.roles = [];
|
|
24218
|
+
object.teams = [];
|
|
24219
|
+
}
|
|
24136
24220
|
if (options.defaults) {
|
|
24137
24221
|
object.id = 0;
|
|
24138
24222
|
object.name = "";
|
|
@@ -24149,6 +24233,11 @@
|
|
|
24149
24233
|
}
|
|
24150
24234
|
if (message.session != null && message.hasOwnProperty("session"))
|
|
24151
24235
|
object.session = message.session;
|
|
24236
|
+
if (message.teams && message.teams.length) {
|
|
24237
|
+
object.teams = [];
|
|
24238
|
+
for (var j = 0; j < message.teams.length; ++j)
|
|
24239
|
+
object.teams[j] = message.teams[j];
|
|
24240
|
+
}
|
|
24152
24241
|
return object;
|
|
24153
24242
|
};
|
|
24154
24243
|
|
|
@@ -27614,6 +27703,7 @@
|
|
|
27614
27703
|
* Properties of a PackageInstall.
|
|
27615
27704
|
* @memberof api
|
|
27616
27705
|
* @interface IPackageInstall
|
|
27706
|
+
* @property {boolean|null} [fromHosting] PackageInstall fromHosting
|
|
27617
27707
|
*/
|
|
27618
27708
|
|
|
27619
27709
|
/**
|
|
@@ -27630,6 +27720,14 @@
|
|
|
27630
27720
|
this[keys[i]] = properties[keys[i]];
|
|
27631
27721
|
}
|
|
27632
27722
|
|
|
27723
|
+
/**
|
|
27724
|
+
* PackageInstall fromHosting.
|
|
27725
|
+
* @member {boolean} fromHosting
|
|
27726
|
+
* @memberof api.PackageInstall
|
|
27727
|
+
* @instance
|
|
27728
|
+
*/
|
|
27729
|
+
PackageInstall.prototype.fromHosting = false;
|
|
27730
|
+
|
|
27633
27731
|
/**
|
|
27634
27732
|
* Creates a new PackageInstall instance using the specified properties.
|
|
27635
27733
|
* @function create
|
|
@@ -27654,6 +27752,8 @@
|
|
|
27654
27752
|
PackageInstall.encode = function encode(message, writer) {
|
|
27655
27753
|
if (!writer)
|
|
27656
27754
|
writer = $Writer.create();
|
|
27755
|
+
if (message.fromHosting != null && Object.hasOwnProperty.call(message, "fromHosting"))
|
|
27756
|
+
writer.uint32(/* id 1, wireType 0 =*/8).bool(message.fromHosting);
|
|
27657
27757
|
return writer;
|
|
27658
27758
|
};
|
|
27659
27759
|
|
|
@@ -27688,6 +27788,9 @@
|
|
|
27688
27788
|
while (reader.pos < end) {
|
|
27689
27789
|
var tag = reader.uint32();
|
|
27690
27790
|
switch (tag >>> 3) {
|
|
27791
|
+
case 1:
|
|
27792
|
+
message.fromHosting = reader.bool();
|
|
27793
|
+
break;
|
|
27691
27794
|
default:
|
|
27692
27795
|
reader.skipType(tag & 7);
|
|
27693
27796
|
break;
|
|
@@ -27723,6 +27826,9 @@
|
|
|
27723
27826
|
PackageInstall.verify = function verify(message) {
|
|
27724
27827
|
if (typeof message !== "object" || message === null)
|
|
27725
27828
|
return "object expected";
|
|
27829
|
+
if (message.fromHosting != null && message.hasOwnProperty("fromHosting"))
|
|
27830
|
+
if (typeof message.fromHosting !== "boolean")
|
|
27831
|
+
return "fromHosting: boolean expected";
|
|
27726
27832
|
return null;
|
|
27727
27833
|
};
|
|
27728
27834
|
|
|
@@ -27737,7 +27843,10 @@
|
|
|
27737
27843
|
PackageInstall.fromObject = function fromObject(object) {
|
|
27738
27844
|
if (object instanceof $root.api.PackageInstall)
|
|
27739
27845
|
return object;
|
|
27740
|
-
|
|
27846
|
+
var message = new $root.api.PackageInstall();
|
|
27847
|
+
if (object.fromHosting != null)
|
|
27848
|
+
message.fromHosting = Boolean(object.fromHosting);
|
|
27849
|
+
return message;
|
|
27741
27850
|
};
|
|
27742
27851
|
|
|
27743
27852
|
/**
|
|
@@ -27749,8 +27858,15 @@
|
|
|
27749
27858
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
27750
27859
|
* @returns {Object.<string,*>} Plain object
|
|
27751
27860
|
*/
|
|
27752
|
-
PackageInstall.toObject = function toObject() {
|
|
27753
|
-
|
|
27861
|
+
PackageInstall.toObject = function toObject(message, options) {
|
|
27862
|
+
if (!options)
|
|
27863
|
+
options = {};
|
|
27864
|
+
var object = {};
|
|
27865
|
+
if (options.defaults)
|
|
27866
|
+
object.fromHosting = false;
|
|
27867
|
+
if (message.fromHosting != null && message.hasOwnProperty("fromHosting"))
|
|
27868
|
+
object.fromHosting = message.fromHosting;
|
|
27869
|
+
return object;
|
|
27754
27870
|
};
|
|
27755
27871
|
|
|
27756
27872
|
/**
|
|
@@ -34450,6 +34566,8 @@
|
|
|
34450
34566
|
* @property {api.DotReplitInterp|api.IDotReplitInterp|null} [interpreter] DotReplit interpreter
|
|
34451
34567
|
* @property {string|null} [entrypoint] DotReplit entrypoint
|
|
34452
34568
|
* @property {Object.<string,api.DotReplitLanguage|api.IDotReplitLanguage>|null} [languages] DotReplit languages
|
|
34569
|
+
* @property {api.DotReplitUnitTest|api.IDotReplitUnitTest|null} [unitTest] DotReplit unitTest
|
|
34570
|
+
* @property {Array.<string>|null} [hidden] DotReplit hidden
|
|
34453
34571
|
*/
|
|
34454
34572
|
|
|
34455
34573
|
/**
|
|
@@ -34461,6 +34579,7 @@
|
|
|
34461
34579
|
*/
|
|
34462
34580
|
function DotReplit(properties) {
|
|
34463
34581
|
this.languages = {};
|
|
34582
|
+
this.hidden = [];
|
|
34464
34583
|
if (properties)
|
|
34465
34584
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
34466
34585
|
if (properties[keys[i]] != null)
|
|
@@ -34539,6 +34658,22 @@
|
|
|
34539
34658
|
*/
|
|
34540
34659
|
DotReplit.prototype.languages = $util.emptyObject;
|
|
34541
34660
|
|
|
34661
|
+
/**
|
|
34662
|
+
* DotReplit unitTest.
|
|
34663
|
+
* @member {api.DotReplitUnitTest|null|undefined} unitTest
|
|
34664
|
+
* @memberof api.DotReplit
|
|
34665
|
+
* @instance
|
|
34666
|
+
*/
|
|
34667
|
+
DotReplit.prototype.unitTest = null;
|
|
34668
|
+
|
|
34669
|
+
/**
|
|
34670
|
+
* DotReplit hidden.
|
|
34671
|
+
* @member {Array.<string>} hidden
|
|
34672
|
+
* @memberof api.DotReplit
|
|
34673
|
+
* @instance
|
|
34674
|
+
*/
|
|
34675
|
+
DotReplit.prototype.hidden = $util.emptyArray;
|
|
34676
|
+
|
|
34542
34677
|
/**
|
|
34543
34678
|
* Creates a new DotReplit instance using the specified properties.
|
|
34544
34679
|
* @function create
|
|
@@ -34584,6 +34719,11 @@
|
|
|
34584
34719
|
writer.uint32(/* id 9, wireType 2 =*/74).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
|
|
34585
34720
|
$root.api.DotReplitLanguage.encode(message.languages[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
|
|
34586
34721
|
}
|
|
34722
|
+
if (message.unitTest != null && Object.hasOwnProperty.call(message, "unitTest"))
|
|
34723
|
+
$root.api.DotReplitUnitTest.encode(message.unitTest, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim();
|
|
34724
|
+
if (message.hidden != null && message.hidden.length)
|
|
34725
|
+
for (var i = 0; i < message.hidden.length; ++i)
|
|
34726
|
+
writer.uint32(/* id 11, wireType 2 =*/90).string(message.hidden[i]);
|
|
34587
34727
|
return writer;
|
|
34588
34728
|
};
|
|
34589
34729
|
|
|
@@ -34664,6 +34804,14 @@
|
|
|
34664
34804
|
}
|
|
34665
34805
|
message.languages[key] = value;
|
|
34666
34806
|
break;
|
|
34807
|
+
case 10:
|
|
34808
|
+
message.unitTest = $root.api.DotReplitUnitTest.decode(reader, reader.uint32());
|
|
34809
|
+
break;
|
|
34810
|
+
case 11:
|
|
34811
|
+
if (!(message.hidden && message.hidden.length))
|
|
34812
|
+
message.hidden = [];
|
|
34813
|
+
message.hidden.push(reader.string());
|
|
34814
|
+
break;
|
|
34667
34815
|
default:
|
|
34668
34816
|
reader.skipType(tag & 7);
|
|
34669
34817
|
break;
|
|
@@ -34745,6 +34893,18 @@
|
|
|
34745
34893
|
return "languages." + error;
|
|
34746
34894
|
}
|
|
34747
34895
|
}
|
|
34896
|
+
if (message.unitTest != null && message.hasOwnProperty("unitTest")) {
|
|
34897
|
+
var error = $root.api.DotReplitUnitTest.verify(message.unitTest);
|
|
34898
|
+
if (error)
|
|
34899
|
+
return "unitTest." + error;
|
|
34900
|
+
}
|
|
34901
|
+
if (message.hidden != null && message.hasOwnProperty("hidden")) {
|
|
34902
|
+
if (!Array.isArray(message.hidden))
|
|
34903
|
+
return "hidden: array expected";
|
|
34904
|
+
for (var i = 0; i < message.hidden.length; ++i)
|
|
34905
|
+
if (!$util.isString(message.hidden[i]))
|
|
34906
|
+
return "hidden: string[] expected";
|
|
34907
|
+
}
|
|
34748
34908
|
return null;
|
|
34749
34909
|
};
|
|
34750
34910
|
|
|
@@ -34804,6 +34964,18 @@
|
|
|
34804
34964
|
message.languages[keys[i]] = $root.api.DotReplitLanguage.fromObject(object.languages[keys[i]]);
|
|
34805
34965
|
}
|
|
34806
34966
|
}
|
|
34967
|
+
if (object.unitTest != null) {
|
|
34968
|
+
if (typeof object.unitTest !== "object")
|
|
34969
|
+
throw TypeError(".api.DotReplit.unitTest: object expected");
|
|
34970
|
+
message.unitTest = $root.api.DotReplitUnitTest.fromObject(object.unitTest);
|
|
34971
|
+
}
|
|
34972
|
+
if (object.hidden) {
|
|
34973
|
+
if (!Array.isArray(object.hidden))
|
|
34974
|
+
throw TypeError(".api.DotReplit.hidden: array expected");
|
|
34975
|
+
message.hidden = [];
|
|
34976
|
+
for (var i = 0; i < object.hidden.length; ++i)
|
|
34977
|
+
message.hidden[i] = String(object.hidden[i]);
|
|
34978
|
+
}
|
|
34807
34979
|
return message;
|
|
34808
34980
|
};
|
|
34809
34981
|
|
|
@@ -34820,6 +34992,8 @@
|
|
|
34820
34992
|
if (!options)
|
|
34821
34993
|
options = {};
|
|
34822
34994
|
var object = {};
|
|
34995
|
+
if (options.arrays || options.defaults)
|
|
34996
|
+
object.hidden = [];
|
|
34823
34997
|
if (options.objects || options.defaults)
|
|
34824
34998
|
object.languages = {};
|
|
34825
34999
|
if (options.defaults) {
|
|
@@ -34831,6 +35005,7 @@
|
|
|
34831
35005
|
object.packager = null;
|
|
34832
35006
|
object.interpreter = null;
|
|
34833
35007
|
object.entrypoint = "";
|
|
35008
|
+
object.unitTest = null;
|
|
34834
35009
|
}
|
|
34835
35010
|
if (message.run != null && message.hasOwnProperty("run"))
|
|
34836
35011
|
object.run = $root.api.Exec.toObject(message.run, options);
|
|
@@ -34854,6 +35029,13 @@
|
|
|
34854
35029
|
for (var j = 0; j < keys2.length; ++j)
|
|
34855
35030
|
object.languages[keys2[j]] = $root.api.DotReplitLanguage.toObject(message.languages[keys2[j]], options);
|
|
34856
35031
|
}
|
|
35032
|
+
if (message.unitTest != null && message.hasOwnProperty("unitTest"))
|
|
35033
|
+
object.unitTest = $root.api.DotReplitUnitTest.toObject(message.unitTest, options);
|
|
35034
|
+
if (message.hidden && message.hidden.length) {
|
|
35035
|
+
object.hidden = [];
|
|
35036
|
+
for (var j = 0; j < message.hidden.length; ++j)
|
|
35037
|
+
object.hidden[j] = message.hidden[j];
|
|
35038
|
+
}
|
|
34857
35039
|
return object;
|
|
34858
35040
|
};
|
|
34859
35041
|
|
|
@@ -35337,6 +35519,8 @@
|
|
|
35337
35519
|
* @memberof api
|
|
35338
35520
|
* @interface ILanguageServerConfig
|
|
35339
35521
|
* @property {api.Exec|api.IExec|null} [startCommand] LanguageServerConfig startCommand
|
|
35522
|
+
* @property {string|null} [configurationJson] LanguageServerConfig configurationJson
|
|
35523
|
+
* @property {string|null} [initializationOptionsJson] LanguageServerConfig initializationOptionsJson
|
|
35340
35524
|
*/
|
|
35341
35525
|
|
|
35342
35526
|
/**
|
|
@@ -35361,6 +35545,22 @@
|
|
|
35361
35545
|
*/
|
|
35362
35546
|
LanguageServerConfig.prototype.startCommand = null;
|
|
35363
35547
|
|
|
35548
|
+
/**
|
|
35549
|
+
* LanguageServerConfig configurationJson.
|
|
35550
|
+
* @member {string} configurationJson
|
|
35551
|
+
* @memberof api.LanguageServerConfig
|
|
35552
|
+
* @instance
|
|
35553
|
+
*/
|
|
35554
|
+
LanguageServerConfig.prototype.configurationJson = "";
|
|
35555
|
+
|
|
35556
|
+
/**
|
|
35557
|
+
* LanguageServerConfig initializationOptionsJson.
|
|
35558
|
+
* @member {string} initializationOptionsJson
|
|
35559
|
+
* @memberof api.LanguageServerConfig
|
|
35560
|
+
* @instance
|
|
35561
|
+
*/
|
|
35562
|
+
LanguageServerConfig.prototype.initializationOptionsJson = "";
|
|
35563
|
+
|
|
35364
35564
|
/**
|
|
35365
35565
|
* Creates a new LanguageServerConfig instance using the specified properties.
|
|
35366
35566
|
* @function create
|
|
@@ -35387,6 +35587,10 @@
|
|
|
35387
35587
|
writer = $Writer.create();
|
|
35388
35588
|
if (message.startCommand != null && Object.hasOwnProperty.call(message, "startCommand"))
|
|
35389
35589
|
$root.api.Exec.encode(message.startCommand, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
35590
|
+
if (message.configurationJson != null && Object.hasOwnProperty.call(message, "configurationJson"))
|
|
35591
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.configurationJson);
|
|
35592
|
+
if (message.initializationOptionsJson != null && Object.hasOwnProperty.call(message, "initializationOptionsJson"))
|
|
35593
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.initializationOptionsJson);
|
|
35390
35594
|
return writer;
|
|
35391
35595
|
};
|
|
35392
35596
|
|
|
@@ -35424,6 +35628,12 @@
|
|
|
35424
35628
|
case 1:
|
|
35425
35629
|
message.startCommand = $root.api.Exec.decode(reader, reader.uint32());
|
|
35426
35630
|
break;
|
|
35631
|
+
case 2:
|
|
35632
|
+
message.configurationJson = reader.string();
|
|
35633
|
+
break;
|
|
35634
|
+
case 3:
|
|
35635
|
+
message.initializationOptionsJson = reader.string();
|
|
35636
|
+
break;
|
|
35427
35637
|
default:
|
|
35428
35638
|
reader.skipType(tag & 7);
|
|
35429
35639
|
break;
|
|
@@ -35464,6 +35674,12 @@
|
|
|
35464
35674
|
if (error)
|
|
35465
35675
|
return "startCommand." + error;
|
|
35466
35676
|
}
|
|
35677
|
+
if (message.configurationJson != null && message.hasOwnProperty("configurationJson"))
|
|
35678
|
+
if (!$util.isString(message.configurationJson))
|
|
35679
|
+
return "configurationJson: string expected";
|
|
35680
|
+
if (message.initializationOptionsJson != null && message.hasOwnProperty("initializationOptionsJson"))
|
|
35681
|
+
if (!$util.isString(message.initializationOptionsJson))
|
|
35682
|
+
return "initializationOptionsJson: string expected";
|
|
35467
35683
|
return null;
|
|
35468
35684
|
};
|
|
35469
35685
|
|
|
@@ -35484,6 +35700,10 @@
|
|
|
35484
35700
|
throw TypeError(".api.LanguageServerConfig.startCommand: object expected");
|
|
35485
35701
|
message.startCommand = $root.api.Exec.fromObject(object.startCommand);
|
|
35486
35702
|
}
|
|
35703
|
+
if (object.configurationJson != null)
|
|
35704
|
+
message.configurationJson = String(object.configurationJson);
|
|
35705
|
+
if (object.initializationOptionsJson != null)
|
|
35706
|
+
message.initializationOptionsJson = String(object.initializationOptionsJson);
|
|
35487
35707
|
return message;
|
|
35488
35708
|
};
|
|
35489
35709
|
|
|
@@ -35500,10 +35720,17 @@
|
|
|
35500
35720
|
if (!options)
|
|
35501
35721
|
options = {};
|
|
35502
35722
|
var object = {};
|
|
35503
|
-
if (options.defaults)
|
|
35723
|
+
if (options.defaults) {
|
|
35504
35724
|
object.startCommand = null;
|
|
35725
|
+
object.configurationJson = "";
|
|
35726
|
+
object.initializationOptionsJson = "";
|
|
35727
|
+
}
|
|
35505
35728
|
if (message.startCommand != null && message.hasOwnProperty("startCommand"))
|
|
35506
35729
|
object.startCommand = $root.api.Exec.toObject(message.startCommand, options);
|
|
35730
|
+
if (message.configurationJson != null && message.hasOwnProperty("configurationJson"))
|
|
35731
|
+
object.configurationJson = message.configurationJson;
|
|
35732
|
+
if (message.initializationOptionsJson != null && message.hasOwnProperty("initializationOptionsJson"))
|
|
35733
|
+
object.initializationOptionsJson = message.initializationOptionsJson;
|
|
35507
35734
|
return object;
|
|
35508
35735
|
};
|
|
35509
35736
|
|
|
@@ -36107,6 +36334,192 @@
|
|
|
36107
36334
|
return DotReplitPackagerFeatures;
|
|
36108
36335
|
})();
|
|
36109
36336
|
|
|
36337
|
+
api.DotReplitUnitTest = (function() {
|
|
36338
|
+
|
|
36339
|
+
/**
|
|
36340
|
+
* Properties of a DotReplitUnitTest.
|
|
36341
|
+
* @memberof api
|
|
36342
|
+
* @interface IDotReplitUnitTest
|
|
36343
|
+
* @property {string|null} [language] DotReplitUnitTest language
|
|
36344
|
+
*/
|
|
36345
|
+
|
|
36346
|
+
/**
|
|
36347
|
+
* Constructs a new DotReplitUnitTest.
|
|
36348
|
+
* @memberof api
|
|
36349
|
+
* @classdesc Represents a DotReplitUnitTest.
|
|
36350
|
+
* @constructor
|
|
36351
|
+
* @param {api.IDotReplitUnitTest=} [properties] Properties to set
|
|
36352
|
+
*/
|
|
36353
|
+
function DotReplitUnitTest(properties) {
|
|
36354
|
+
if (properties)
|
|
36355
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
36356
|
+
if (properties[keys[i]] != null)
|
|
36357
|
+
this[keys[i]] = properties[keys[i]];
|
|
36358
|
+
}
|
|
36359
|
+
|
|
36360
|
+
/**
|
|
36361
|
+
* DotReplitUnitTest language.
|
|
36362
|
+
* @member {string} language
|
|
36363
|
+
* @memberof api.DotReplitUnitTest
|
|
36364
|
+
* @instance
|
|
36365
|
+
*/
|
|
36366
|
+
DotReplitUnitTest.prototype.language = "";
|
|
36367
|
+
|
|
36368
|
+
/**
|
|
36369
|
+
* Creates a new DotReplitUnitTest instance using the specified properties.
|
|
36370
|
+
* @function create
|
|
36371
|
+
* @memberof api.DotReplitUnitTest
|
|
36372
|
+
* @static
|
|
36373
|
+
* @param {api.IDotReplitUnitTest=} [properties] Properties to set
|
|
36374
|
+
* @returns {api.DotReplitUnitTest} DotReplitUnitTest instance
|
|
36375
|
+
*/
|
|
36376
|
+
DotReplitUnitTest.create = function create(properties) {
|
|
36377
|
+
return DotReplitUnitTest.fromObject(properties);
|
|
36378
|
+
};
|
|
36379
|
+
|
|
36380
|
+
/**
|
|
36381
|
+
* Encodes the specified DotReplitUnitTest message. Does not implicitly {@link api.DotReplitUnitTest.verify|verify} messages.
|
|
36382
|
+
* @function encode
|
|
36383
|
+
* @memberof api.DotReplitUnitTest
|
|
36384
|
+
* @static
|
|
36385
|
+
* @param {api.DotReplitUnitTest} message DotReplitUnitTest message or plain object to encode
|
|
36386
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
36387
|
+
* @returns {$protobuf.Writer} Writer
|
|
36388
|
+
*/
|
|
36389
|
+
DotReplitUnitTest.encode = function encode(message, writer) {
|
|
36390
|
+
if (!writer)
|
|
36391
|
+
writer = $Writer.create();
|
|
36392
|
+
if (message.language != null && Object.hasOwnProperty.call(message, "language"))
|
|
36393
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.language);
|
|
36394
|
+
return writer;
|
|
36395
|
+
};
|
|
36396
|
+
|
|
36397
|
+
/**
|
|
36398
|
+
* Encodes the specified DotReplitUnitTest message, length delimited. Does not implicitly {@link api.DotReplitUnitTest.verify|verify} messages.
|
|
36399
|
+
* @function encodeDelimited
|
|
36400
|
+
* @memberof api.DotReplitUnitTest
|
|
36401
|
+
* @static
|
|
36402
|
+
* @param {api.DotReplitUnitTest} message DotReplitUnitTest message or plain object to encode
|
|
36403
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
36404
|
+
* @returns {$protobuf.Writer} Writer
|
|
36405
|
+
*/
|
|
36406
|
+
DotReplitUnitTest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
36407
|
+
return this.encode(message, writer).ldelim();
|
|
36408
|
+
};
|
|
36409
|
+
|
|
36410
|
+
/**
|
|
36411
|
+
* Decodes a DotReplitUnitTest message from the specified reader or buffer.
|
|
36412
|
+
* @function decode
|
|
36413
|
+
* @memberof api.DotReplitUnitTest
|
|
36414
|
+
* @static
|
|
36415
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
36416
|
+
* @param {number} [length] Message length if known beforehand
|
|
36417
|
+
* @returns {api.DotReplitUnitTest} DotReplitUnitTest
|
|
36418
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
36419
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
36420
|
+
*/
|
|
36421
|
+
DotReplitUnitTest.decode = function decode(reader, length) {
|
|
36422
|
+
if (!(reader instanceof $Reader))
|
|
36423
|
+
reader = $Reader.create(reader);
|
|
36424
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.api.DotReplitUnitTest();
|
|
36425
|
+
while (reader.pos < end) {
|
|
36426
|
+
var tag = reader.uint32();
|
|
36427
|
+
switch (tag >>> 3) {
|
|
36428
|
+
case 1:
|
|
36429
|
+
message.language = reader.string();
|
|
36430
|
+
break;
|
|
36431
|
+
default:
|
|
36432
|
+
reader.skipType(tag & 7);
|
|
36433
|
+
break;
|
|
36434
|
+
}
|
|
36435
|
+
}
|
|
36436
|
+
return message;
|
|
36437
|
+
};
|
|
36438
|
+
|
|
36439
|
+
/**
|
|
36440
|
+
* Decodes a DotReplitUnitTest message from the specified reader or buffer, length delimited.
|
|
36441
|
+
* @function decodeDelimited
|
|
36442
|
+
* @memberof api.DotReplitUnitTest
|
|
36443
|
+
* @static
|
|
36444
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
36445
|
+
* @returns {api.DotReplitUnitTest} DotReplitUnitTest
|
|
36446
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
36447
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
36448
|
+
*/
|
|
36449
|
+
DotReplitUnitTest.decodeDelimited = function decodeDelimited(reader) {
|
|
36450
|
+
if (!(reader instanceof $Reader))
|
|
36451
|
+
reader = new $Reader(reader);
|
|
36452
|
+
return this.decode(reader, reader.uint32());
|
|
36453
|
+
};
|
|
36454
|
+
|
|
36455
|
+
/**
|
|
36456
|
+
* Verifies a DotReplitUnitTest message.
|
|
36457
|
+
* @function verify
|
|
36458
|
+
* @memberof api.DotReplitUnitTest
|
|
36459
|
+
* @static
|
|
36460
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
36461
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
36462
|
+
*/
|
|
36463
|
+
DotReplitUnitTest.verify = function verify(message) {
|
|
36464
|
+
if (typeof message !== "object" || message === null)
|
|
36465
|
+
return "object expected";
|
|
36466
|
+
if (message.language != null && message.hasOwnProperty("language"))
|
|
36467
|
+
if (!$util.isString(message.language))
|
|
36468
|
+
return "language: string expected";
|
|
36469
|
+
return null;
|
|
36470
|
+
};
|
|
36471
|
+
|
|
36472
|
+
/**
|
|
36473
|
+
* Creates a DotReplitUnitTest message from a plain object. Also converts values to their respective internal types.
|
|
36474
|
+
* @function fromObject
|
|
36475
|
+
* @memberof api.DotReplitUnitTest
|
|
36476
|
+
* @static
|
|
36477
|
+
* @param {Object.<string,*>} object Plain object
|
|
36478
|
+
* @returns {api.DotReplitUnitTest} DotReplitUnitTest
|
|
36479
|
+
*/
|
|
36480
|
+
DotReplitUnitTest.fromObject = function fromObject(object) {
|
|
36481
|
+
if (object instanceof $root.api.DotReplitUnitTest)
|
|
36482
|
+
return object;
|
|
36483
|
+
var message = new $root.api.DotReplitUnitTest();
|
|
36484
|
+
if (object.language != null)
|
|
36485
|
+
message.language = String(object.language);
|
|
36486
|
+
return message;
|
|
36487
|
+
};
|
|
36488
|
+
|
|
36489
|
+
/**
|
|
36490
|
+
* Creates a plain object from a DotReplitUnitTest message. Also converts values to other types if specified.
|
|
36491
|
+
* @function toObject
|
|
36492
|
+
* @memberof api.DotReplitUnitTest
|
|
36493
|
+
* @static
|
|
36494
|
+
* @param {api.DotReplitUnitTest} message DotReplitUnitTest
|
|
36495
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
36496
|
+
* @returns {Object.<string,*>} Plain object
|
|
36497
|
+
*/
|
|
36498
|
+
DotReplitUnitTest.toObject = function toObject(message, options) {
|
|
36499
|
+
if (!options)
|
|
36500
|
+
options = {};
|
|
36501
|
+
var object = {};
|
|
36502
|
+
if (options.defaults)
|
|
36503
|
+
object.language = "";
|
|
36504
|
+
if (message.language != null && message.hasOwnProperty("language"))
|
|
36505
|
+
object.language = message.language;
|
|
36506
|
+
return object;
|
|
36507
|
+
};
|
|
36508
|
+
|
|
36509
|
+
/**
|
|
36510
|
+
* Converts this DotReplitUnitTest to JSON.
|
|
36511
|
+
* @function toJSON
|
|
36512
|
+
* @memberof api.DotReplitUnitTest
|
|
36513
|
+
* @instance
|
|
36514
|
+
* @returns {Object.<string,*>} JSON object
|
|
36515
|
+
*/
|
|
36516
|
+
DotReplitUnitTest.prototype.toJSON = function toJSON() {
|
|
36517
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
36518
|
+
};
|
|
36519
|
+
|
|
36520
|
+
return DotReplitUnitTest;
|
|
36521
|
+
})();
|
|
36522
|
+
|
|
36110
36523
|
api.DebuggerConfig = (function() {
|
|
36111
36524
|
|
|
36112
36525
|
/**
|
|
@@ -38594,6 +39007,7 @@
|
|
|
38594
39007
|
* @property {api.ResourceLimits|api.IResourceLimits|null} [userLimits] ReplTransfer userLimits
|
|
38595
39008
|
* @property {Array.<string>|null} [customDomains] ReplTransfer customDomains
|
|
38596
39009
|
* @property {Array.<api.TLSCertificate|api.ITLSCertificate>|null} [certificates] ReplTransfer certificates
|
|
39010
|
+
* @property {Array.<string>|null} [flags] ReplTransfer flags
|
|
38597
39011
|
*/
|
|
38598
39012
|
|
|
38599
39013
|
/**
|
|
@@ -38606,6 +39020,7 @@
|
|
|
38606
39020
|
function ReplTransfer(properties) {
|
|
38607
39021
|
this.customDomains = [];
|
|
38608
39022
|
this.certificates = [];
|
|
39023
|
+
this.flags = [];
|
|
38609
39024
|
if (properties)
|
|
38610
39025
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
38611
39026
|
if (properties[keys[i]] != null)
|
|
@@ -38652,6 +39067,14 @@
|
|
|
38652
39067
|
*/
|
|
38653
39068
|
ReplTransfer.prototype.certificates = $util.emptyArray;
|
|
38654
39069
|
|
|
39070
|
+
/**
|
|
39071
|
+
* ReplTransfer flags.
|
|
39072
|
+
* @member {Array.<string>} flags
|
|
39073
|
+
* @memberof api.ReplTransfer
|
|
39074
|
+
* @instance
|
|
39075
|
+
*/
|
|
39076
|
+
ReplTransfer.prototype.flags = $util.emptyArray;
|
|
39077
|
+
|
|
38655
39078
|
/**
|
|
38656
39079
|
* Creates a new ReplTransfer instance using the specified properties.
|
|
38657
39080
|
* @function create
|
|
@@ -38688,6 +39111,9 @@
|
|
|
38688
39111
|
if (message.certificates != null && message.certificates.length)
|
|
38689
39112
|
for (var i = 0; i < message.certificates.length; ++i)
|
|
38690
39113
|
$root.api.TLSCertificate.encode(message.certificates[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
|
|
39114
|
+
if (message.flags != null && message.flags.length)
|
|
39115
|
+
for (var i = 0; i < message.flags.length; ++i)
|
|
39116
|
+
writer.uint32(/* id 6, wireType 2 =*/50).string(message.flags[i]);
|
|
38691
39117
|
return writer;
|
|
38692
39118
|
};
|
|
38693
39119
|
|
|
@@ -38741,6 +39167,11 @@
|
|
|
38741
39167
|
message.certificates = [];
|
|
38742
39168
|
message.certificates.push($root.api.TLSCertificate.decode(reader, reader.uint32()));
|
|
38743
39169
|
break;
|
|
39170
|
+
case 6:
|
|
39171
|
+
if (!(message.flags && message.flags.length))
|
|
39172
|
+
message.flags = [];
|
|
39173
|
+
message.flags.push(reader.string());
|
|
39174
|
+
break;
|
|
38744
39175
|
default:
|
|
38745
39176
|
reader.skipType(tag & 7);
|
|
38746
39177
|
break;
|
|
@@ -38807,6 +39238,13 @@
|
|
|
38807
39238
|
return "certificates." + error;
|
|
38808
39239
|
}
|
|
38809
39240
|
}
|
|
39241
|
+
if (message.flags != null && message.hasOwnProperty("flags")) {
|
|
39242
|
+
if (!Array.isArray(message.flags))
|
|
39243
|
+
return "flags: array expected";
|
|
39244
|
+
for (var i = 0; i < message.flags.length; ++i)
|
|
39245
|
+
if (!$util.isString(message.flags[i]))
|
|
39246
|
+
return "flags: string[] expected";
|
|
39247
|
+
}
|
|
38810
39248
|
return null;
|
|
38811
39249
|
};
|
|
38812
39250
|
|
|
@@ -38854,6 +39292,13 @@
|
|
|
38854
39292
|
message.certificates[i] = $root.api.TLSCertificate.fromObject(object.certificates[i]);
|
|
38855
39293
|
}
|
|
38856
39294
|
}
|
|
39295
|
+
if (object.flags) {
|
|
39296
|
+
if (!Array.isArray(object.flags))
|
|
39297
|
+
throw TypeError(".api.ReplTransfer.flags: array expected");
|
|
39298
|
+
message.flags = [];
|
|
39299
|
+
for (var i = 0; i < object.flags.length; ++i)
|
|
39300
|
+
message.flags[i] = String(object.flags[i]);
|
|
39301
|
+
}
|
|
38857
39302
|
return message;
|
|
38858
39303
|
};
|
|
38859
39304
|
|
|
@@ -38873,6 +39318,7 @@
|
|
|
38873
39318
|
if (options.arrays || options.defaults) {
|
|
38874
39319
|
object.customDomains = [];
|
|
38875
39320
|
object.certificates = [];
|
|
39321
|
+
object.flags = [];
|
|
38876
39322
|
}
|
|
38877
39323
|
if (options.defaults) {
|
|
38878
39324
|
object.repl = null;
|
|
@@ -38895,6 +39341,11 @@
|
|
|
38895
39341
|
for (var j = 0; j < message.certificates.length; ++j)
|
|
38896
39342
|
object.certificates[j] = $root.api.TLSCertificate.toObject(message.certificates[j], options);
|
|
38897
39343
|
}
|
|
39344
|
+
if (message.flags && message.flags.length) {
|
|
39345
|
+
object.flags = [];
|
|
39346
|
+
for (var j = 0; j < message.flags.length; ++j)
|
|
39347
|
+
object.flags[j] = message.flags[j];
|
|
39348
|
+
}
|
|
38898
39349
|
return object;
|
|
38899
39350
|
};
|
|
38900
39351
|
|