@replit/protocol 0.2.41 → 0.2.45
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 +427 -1
- package/main/index.js +1078 -3
- package/main/index.js.flow +598 -0
- package/package.json +3 -3
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
|
|
@@ -173,6 +174,8 @@
|
|
|
173
174
|
* @property {api.DebugBreakpointEvent|api.IDebugBreakpointEvent|null} [debugBreakpointEvent] Command debugBreakpointEvent
|
|
174
175
|
* @property {api.DotReplitGetRequest|api.IDotReplitGetRequest|null} [dotReplitGetRequest] Command dotReplitGetRequest
|
|
175
176
|
* @property {api.DotReplitGetResponse|api.IDotReplitGetResponse|null} [dotReplitGetResponse] Command dotReplitGetResponse
|
|
177
|
+
* @property {api.RunConfigGetRequest|api.IRunConfigGetRequest|null} [runConfigGetRequest] Command runConfigGetRequest
|
|
178
|
+
* @property {api.RunConfigGetResponse|api.IRunConfigGetResponse|null} [runConfigGetResponse] Command runConfigGetResponse
|
|
176
179
|
* @property {api.StartLSP|api.IStartLSP|null} [startLSP] Command startLSP
|
|
177
180
|
* @property {string|null} [ref] Command ref
|
|
178
181
|
*/
|
|
@@ -1103,6 +1106,14 @@
|
|
|
1103
1106
|
*/
|
|
1104
1107
|
Command.prototype.snapshotEvent = null;
|
|
1105
1108
|
|
|
1109
|
+
/**
|
|
1110
|
+
* Command NoninteractiveFSChangeEvent.
|
|
1111
|
+
* @member {boolean|null|undefined} NoninteractiveFSChangeEvent
|
|
1112
|
+
* @memberof api.Command
|
|
1113
|
+
* @instance
|
|
1114
|
+
*/
|
|
1115
|
+
Command.prototype.NoninteractiveFSChangeEvent = null;
|
|
1116
|
+
|
|
1106
1117
|
/**
|
|
1107
1118
|
* Command pid1Config.
|
|
1108
1119
|
* @member {api.Pid1Config|null|undefined} pid1Config
|
|
@@ -1327,6 +1338,22 @@
|
|
|
1327
1338
|
*/
|
|
1328
1339
|
Command.prototype.dotReplitGetResponse = null;
|
|
1329
1340
|
|
|
1341
|
+
/**
|
|
1342
|
+
* Command runConfigGetRequest.
|
|
1343
|
+
* @member {api.RunConfigGetRequest|null|undefined} runConfigGetRequest
|
|
1344
|
+
* @memberof api.Command
|
|
1345
|
+
* @instance
|
|
1346
|
+
*/
|
|
1347
|
+
Command.prototype.runConfigGetRequest = null;
|
|
1348
|
+
|
|
1349
|
+
/**
|
|
1350
|
+
* Command runConfigGetResponse.
|
|
1351
|
+
* @member {api.RunConfigGetResponse|null|undefined} runConfigGetResponse
|
|
1352
|
+
* @memberof api.Command
|
|
1353
|
+
* @instance
|
|
1354
|
+
*/
|
|
1355
|
+
Command.prototype.runConfigGetResponse = null;
|
|
1356
|
+
|
|
1330
1357
|
/**
|
|
1331
1358
|
* Command startLSP.
|
|
1332
1359
|
* @member {api.StartLSP|null|undefined} startLSP
|
|
@@ -1348,12 +1375,12 @@
|
|
|
1348
1375
|
|
|
1349
1376
|
/**
|
|
1350
1377
|
* Command body.
|
|
1351
|
-
* @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"|"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
|
|
1352
1379
|
* @memberof api.Command
|
|
1353
1380
|
* @instance
|
|
1354
1381
|
*/
|
|
1355
1382
|
Object.defineProperty(Command.prototype, "body", {
|
|
1356
|
-
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", "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"]),
|
|
1357
1384
|
set: $util.oneOfSetter($oneOfFields)
|
|
1358
1385
|
});
|
|
1359
1386
|
|
|
@@ -1667,6 +1694,12 @@
|
|
|
1667
1694
|
$root.api.FSSnapshotEvent.encode(message.fsSnapshotEvent, writer.uint32(/* id 388, wireType 2 =*/3106).fork()).ldelim();
|
|
1668
1695
|
if (message.snapshotEvent != null && Object.hasOwnProperty.call(message, "snapshotEvent"))
|
|
1669
1696
|
$root.api.SnapshotEvent.encode(message.snapshotEvent, writer.uint32(/* id 389, wireType 2 =*/3114).fork()).ldelim();
|
|
1697
|
+
if (message.runConfigGetRequest != null && Object.hasOwnProperty.call(message, "runConfigGetRequest"))
|
|
1698
|
+
$root.api.RunConfigGetRequest.encode(message.runConfigGetRequest, writer.uint32(/* id 390, wireType 2 =*/3122).fork()).ldelim();
|
|
1699
|
+
if (message.runConfigGetResponse != null && Object.hasOwnProperty.call(message, "runConfigGetResponse"))
|
|
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);
|
|
1670
1703
|
if (message.ref != null && Object.hasOwnProperty.call(message, "ref"))
|
|
1671
1704
|
writer.uint32(/* id 1000, wireType 2 =*/8002).string(message.ref);
|
|
1672
1705
|
return writer;
|
|
@@ -2045,6 +2078,9 @@
|
|
|
2045
2078
|
case 389:
|
|
2046
2079
|
message.snapshotEvent = $root.api.SnapshotEvent.decode(reader, reader.uint32());
|
|
2047
2080
|
break;
|
|
2081
|
+
case 392:
|
|
2082
|
+
message.NoninteractiveFSChangeEvent = reader.bool();
|
|
2083
|
+
break;
|
|
2048
2084
|
case 340:
|
|
2049
2085
|
message.pid1Config = $root.api.Pid1Config.decode(reader, reader.uint32());
|
|
2050
2086
|
break;
|
|
@@ -2129,6 +2165,12 @@
|
|
|
2129
2165
|
case 379:
|
|
2130
2166
|
message.dotReplitGetResponse = $root.api.DotReplitGetResponse.decode(reader, reader.uint32());
|
|
2131
2167
|
break;
|
|
2168
|
+
case 390:
|
|
2169
|
+
message.runConfigGetRequest = $root.api.RunConfigGetRequest.decode(reader, reader.uint32());
|
|
2170
|
+
break;
|
|
2171
|
+
case 391:
|
|
2172
|
+
message.runConfigGetResponse = $root.api.RunConfigGetResponse.decode(reader, reader.uint32());
|
|
2173
|
+
break;
|
|
2132
2174
|
case 345:
|
|
2133
2175
|
message.startLSP = $root.api.StartLSP.decode(reader, reader.uint32());
|
|
2134
2176
|
break;
|
|
@@ -3270,6 +3312,13 @@
|
|
|
3270
3312
|
return "snapshotEvent." + error;
|
|
3271
3313
|
}
|
|
3272
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
|
+
}
|
|
3273
3322
|
if (message.pid1Config != null && message.hasOwnProperty("pid1Config")) {
|
|
3274
3323
|
if (properties.body === 1)
|
|
3275
3324
|
return "body: multiple values";
|
|
@@ -3550,6 +3599,26 @@
|
|
|
3550
3599
|
return "dotReplitGetResponse." + error;
|
|
3551
3600
|
}
|
|
3552
3601
|
}
|
|
3602
|
+
if (message.runConfigGetRequest != null && message.hasOwnProperty("runConfigGetRequest")) {
|
|
3603
|
+
if (properties.body === 1)
|
|
3604
|
+
return "body: multiple values";
|
|
3605
|
+
properties.body = 1;
|
|
3606
|
+
{
|
|
3607
|
+
var error = $root.api.RunConfigGetRequest.verify(message.runConfigGetRequest);
|
|
3608
|
+
if (error)
|
|
3609
|
+
return "runConfigGetRequest." + error;
|
|
3610
|
+
}
|
|
3611
|
+
}
|
|
3612
|
+
if (message.runConfigGetResponse != null && message.hasOwnProperty("runConfigGetResponse")) {
|
|
3613
|
+
if (properties.body === 1)
|
|
3614
|
+
return "body: multiple values";
|
|
3615
|
+
properties.body = 1;
|
|
3616
|
+
{
|
|
3617
|
+
var error = $root.api.RunConfigGetResponse.verify(message.runConfigGetResponse);
|
|
3618
|
+
if (error)
|
|
3619
|
+
return "runConfigGetResponse." + error;
|
|
3620
|
+
}
|
|
3621
|
+
}
|
|
3553
3622
|
if (message.startLSP != null && message.hasOwnProperty("startLSP")) {
|
|
3554
3623
|
if (properties.body === 1)
|
|
3555
3624
|
return "body: multiple values";
|
|
@@ -4120,6 +4189,8 @@
|
|
|
4120
4189
|
throw TypeError(".api.Command.snapshotEvent: object expected");
|
|
4121
4190
|
message.snapshotEvent = $root.api.SnapshotEvent.fromObject(object.snapshotEvent);
|
|
4122
4191
|
}
|
|
4192
|
+
if (object.NoninteractiveFSChangeEvent != null)
|
|
4193
|
+
message.NoninteractiveFSChangeEvent = Boolean(object.NoninteractiveFSChangeEvent);
|
|
4123
4194
|
if (object.pid1Config != null) {
|
|
4124
4195
|
if (typeof object.pid1Config !== "object")
|
|
4125
4196
|
throw TypeError(".api.Command.pid1Config: object expected");
|
|
@@ -4260,6 +4331,16 @@
|
|
|
4260
4331
|
throw TypeError(".api.Command.dotReplitGetResponse: object expected");
|
|
4261
4332
|
message.dotReplitGetResponse = $root.api.DotReplitGetResponse.fromObject(object.dotReplitGetResponse);
|
|
4262
4333
|
}
|
|
4334
|
+
if (object.runConfigGetRequest != null) {
|
|
4335
|
+
if (typeof object.runConfigGetRequest !== "object")
|
|
4336
|
+
throw TypeError(".api.Command.runConfigGetRequest: object expected");
|
|
4337
|
+
message.runConfigGetRequest = $root.api.RunConfigGetRequest.fromObject(object.runConfigGetRequest);
|
|
4338
|
+
}
|
|
4339
|
+
if (object.runConfigGetResponse != null) {
|
|
4340
|
+
if (typeof object.runConfigGetResponse !== "object")
|
|
4341
|
+
throw TypeError(".api.Command.runConfigGetResponse: object expected");
|
|
4342
|
+
message.runConfigGetResponse = $root.api.RunConfigGetResponse.fromObject(object.runConfigGetResponse);
|
|
4343
|
+
}
|
|
4263
4344
|
if (object.startLSP != null) {
|
|
4264
4345
|
if (typeof object.startLSP !== "object")
|
|
4265
4346
|
throw TypeError(".api.Command.startLSP: object expected");
|
|
@@ -4997,6 +5078,21 @@
|
|
|
4997
5078
|
if (options.oneofs)
|
|
4998
5079
|
object.body = "snapshotEvent";
|
|
4999
5080
|
}
|
|
5081
|
+
if (message.runConfigGetRequest != null && message.hasOwnProperty("runConfigGetRequest")) {
|
|
5082
|
+
object.runConfigGetRequest = $root.api.RunConfigGetRequest.toObject(message.runConfigGetRequest, options);
|
|
5083
|
+
if (options.oneofs)
|
|
5084
|
+
object.body = "runConfigGetRequest";
|
|
5085
|
+
}
|
|
5086
|
+
if (message.runConfigGetResponse != null && message.hasOwnProperty("runConfigGetResponse")) {
|
|
5087
|
+
object.runConfigGetResponse = $root.api.RunConfigGetResponse.toObject(message.runConfigGetResponse, options);
|
|
5088
|
+
if (options.oneofs)
|
|
5089
|
+
object.body = "runConfigGetResponse";
|
|
5090
|
+
}
|
|
5091
|
+
if (message.NoninteractiveFSChangeEvent != null && message.hasOwnProperty("NoninteractiveFSChangeEvent")) {
|
|
5092
|
+
object.NoninteractiveFSChangeEvent = message.NoninteractiveFSChangeEvent;
|
|
5093
|
+
if (options.oneofs)
|
|
5094
|
+
object.body = "NoninteractiveFSChangeEvent";
|
|
5095
|
+
}
|
|
5000
5096
|
if (message.ref != null && message.hasOwnProperty("ref"))
|
|
5001
5097
|
object.ref = message.ref;
|
|
5002
5098
|
return object;
|
|
@@ -7736,6 +7832,8 @@
|
|
|
7736
7832
|
* @property {string|null} [cwd] Pid1Config cwd
|
|
7737
7833
|
* @property {string|null} [language] Pid1Config language
|
|
7738
7834
|
* @property {Object.<string,string>|null} [env] Pid1Config env
|
|
7835
|
+
* @property {boolean|null} [noStore] Pid1Config noStore
|
|
7836
|
+
* @property {boolean|null} [noninteractiveFSChange] Pid1Config noninteractiveFSChange
|
|
7739
7837
|
*/
|
|
7740
7838
|
|
|
7741
7839
|
/**
|
|
@@ -7777,6 +7875,22 @@
|
|
|
7777
7875
|
*/
|
|
7778
7876
|
Pid1Config.prototype.env = $util.emptyObject;
|
|
7779
7877
|
|
|
7878
|
+
/**
|
|
7879
|
+
* Pid1Config noStore.
|
|
7880
|
+
* @member {boolean} noStore
|
|
7881
|
+
* @memberof api.Pid1Config
|
|
7882
|
+
* @instance
|
|
7883
|
+
*/
|
|
7884
|
+
Pid1Config.prototype.noStore = false;
|
|
7885
|
+
|
|
7886
|
+
/**
|
|
7887
|
+
* Pid1Config noninteractiveFSChange.
|
|
7888
|
+
* @member {boolean} noninteractiveFSChange
|
|
7889
|
+
* @memberof api.Pid1Config
|
|
7890
|
+
* @instance
|
|
7891
|
+
*/
|
|
7892
|
+
Pid1Config.prototype.noninteractiveFSChange = false;
|
|
7893
|
+
|
|
7780
7894
|
/**
|
|
7781
7895
|
* Creates a new Pid1Config instance using the specified properties.
|
|
7782
7896
|
* @function create
|
|
@@ -7808,6 +7922,10 @@
|
|
|
7808
7922
|
if (message.env != null && Object.hasOwnProperty.call(message, "env"))
|
|
7809
7923
|
for (var keys = Object.keys(message.env), i = 0; i < keys.length; ++i)
|
|
7810
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();
|
|
7925
|
+
if (message.noStore != null && Object.hasOwnProperty.call(message, "noStore"))
|
|
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);
|
|
7811
7929
|
return writer;
|
|
7812
7930
|
};
|
|
7813
7931
|
|
|
@@ -7870,6 +7988,12 @@
|
|
|
7870
7988
|
}
|
|
7871
7989
|
message.env[key] = value;
|
|
7872
7990
|
break;
|
|
7991
|
+
case 4:
|
|
7992
|
+
message.noStore = reader.bool();
|
|
7993
|
+
break;
|
|
7994
|
+
case 5:
|
|
7995
|
+
message.noninteractiveFSChange = reader.bool();
|
|
7996
|
+
break;
|
|
7873
7997
|
default:
|
|
7874
7998
|
reader.skipType(tag & 7);
|
|
7875
7999
|
break;
|
|
@@ -7919,6 +8043,12 @@
|
|
|
7919
8043
|
if (!$util.isString(message.env[key[i]]))
|
|
7920
8044
|
return "env: string{k:string} expected";
|
|
7921
8045
|
}
|
|
8046
|
+
if (message.noStore != null && message.hasOwnProperty("noStore"))
|
|
8047
|
+
if (typeof message.noStore !== "boolean")
|
|
8048
|
+
return "noStore: boolean expected";
|
|
8049
|
+
if (message.noninteractiveFSChange != null && message.hasOwnProperty("noninteractiveFSChange"))
|
|
8050
|
+
if (typeof message.noninteractiveFSChange !== "boolean")
|
|
8051
|
+
return "noninteractiveFSChange: boolean expected";
|
|
7922
8052
|
return null;
|
|
7923
8053
|
};
|
|
7924
8054
|
|
|
@@ -7945,6 +8075,10 @@
|
|
|
7945
8075
|
for (var keys = Object.keys(object.env), i = 0; i < keys.length; ++i)
|
|
7946
8076
|
message.env[keys[i]] = String(object.env[keys[i]]);
|
|
7947
8077
|
}
|
|
8078
|
+
if (object.noStore != null)
|
|
8079
|
+
message.noStore = Boolean(object.noStore);
|
|
8080
|
+
if (object.noninteractiveFSChange != null)
|
|
8081
|
+
message.noninteractiveFSChange = Boolean(object.noninteractiveFSChange);
|
|
7948
8082
|
return message;
|
|
7949
8083
|
};
|
|
7950
8084
|
|
|
@@ -7966,6 +8100,8 @@
|
|
|
7966
8100
|
if (options.defaults) {
|
|
7967
8101
|
object.cwd = "";
|
|
7968
8102
|
object.language = "";
|
|
8103
|
+
object.noStore = false;
|
|
8104
|
+
object.noninteractiveFSChange = false;
|
|
7969
8105
|
}
|
|
7970
8106
|
if (message.cwd != null && message.hasOwnProperty("cwd"))
|
|
7971
8107
|
object.cwd = message.cwd;
|
|
@@ -7977,6 +8113,10 @@
|
|
|
7977
8113
|
for (var j = 0; j < keys2.length; ++j)
|
|
7978
8114
|
object.env[keys2[j]] = message.env[keys2[j]];
|
|
7979
8115
|
}
|
|
8116
|
+
if (message.noStore != null && message.hasOwnProperty("noStore"))
|
|
8117
|
+
object.noStore = message.noStore;
|
|
8118
|
+
if (message.noninteractiveFSChange != null && message.hasOwnProperty("noninteractiveFSChange"))
|
|
8119
|
+
object.noninteractiveFSChange = message.noninteractiveFSChange;
|
|
7980
8120
|
return object;
|
|
7981
8121
|
};
|
|
7982
8122
|
|
|
@@ -32481,6 +32621,628 @@
|
|
|
32481
32621
|
return DotReplitGetResponse;
|
|
32482
32622
|
})();
|
|
32483
32623
|
|
|
32624
|
+
api.RunConfigGetRequest = (function() {
|
|
32625
|
+
|
|
32626
|
+
/**
|
|
32627
|
+
* Properties of a RunConfigGetRequest.
|
|
32628
|
+
* @memberof api
|
|
32629
|
+
* @interface IRunConfigGetRequest
|
|
32630
|
+
*/
|
|
32631
|
+
|
|
32632
|
+
/**
|
|
32633
|
+
* Constructs a new RunConfigGetRequest.
|
|
32634
|
+
* @memberof api
|
|
32635
|
+
* @classdesc Represents a RunConfigGetRequest.
|
|
32636
|
+
* @constructor
|
|
32637
|
+
* @param {api.IRunConfigGetRequest=} [properties] Properties to set
|
|
32638
|
+
*/
|
|
32639
|
+
function RunConfigGetRequest(properties) {
|
|
32640
|
+
if (properties)
|
|
32641
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
32642
|
+
if (properties[keys[i]] != null)
|
|
32643
|
+
this[keys[i]] = properties[keys[i]];
|
|
32644
|
+
}
|
|
32645
|
+
|
|
32646
|
+
/**
|
|
32647
|
+
* Creates a new RunConfigGetRequest instance using the specified properties.
|
|
32648
|
+
* @function create
|
|
32649
|
+
* @memberof api.RunConfigGetRequest
|
|
32650
|
+
* @static
|
|
32651
|
+
* @param {api.IRunConfigGetRequest=} [properties] Properties to set
|
|
32652
|
+
* @returns {api.RunConfigGetRequest} RunConfigGetRequest instance
|
|
32653
|
+
*/
|
|
32654
|
+
RunConfigGetRequest.create = function create(properties) {
|
|
32655
|
+
return RunConfigGetRequest.fromObject(properties);
|
|
32656
|
+
};
|
|
32657
|
+
|
|
32658
|
+
/**
|
|
32659
|
+
* Encodes the specified RunConfigGetRequest message. Does not implicitly {@link api.RunConfigGetRequest.verify|verify} messages.
|
|
32660
|
+
* @function encode
|
|
32661
|
+
* @memberof api.RunConfigGetRequest
|
|
32662
|
+
* @static
|
|
32663
|
+
* @param {api.RunConfigGetRequest} message RunConfigGetRequest message or plain object to encode
|
|
32664
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
32665
|
+
* @returns {$protobuf.Writer} Writer
|
|
32666
|
+
*/
|
|
32667
|
+
RunConfigGetRequest.encode = function encode(message, writer) {
|
|
32668
|
+
if (!writer)
|
|
32669
|
+
writer = $Writer.create();
|
|
32670
|
+
return writer;
|
|
32671
|
+
};
|
|
32672
|
+
|
|
32673
|
+
/**
|
|
32674
|
+
* Encodes the specified RunConfigGetRequest message, length delimited. Does not implicitly {@link api.RunConfigGetRequest.verify|verify} messages.
|
|
32675
|
+
* @function encodeDelimited
|
|
32676
|
+
* @memberof api.RunConfigGetRequest
|
|
32677
|
+
* @static
|
|
32678
|
+
* @param {api.RunConfigGetRequest} message RunConfigGetRequest message or plain object to encode
|
|
32679
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
32680
|
+
* @returns {$protobuf.Writer} Writer
|
|
32681
|
+
*/
|
|
32682
|
+
RunConfigGetRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
32683
|
+
return this.encode(message, writer).ldelim();
|
|
32684
|
+
};
|
|
32685
|
+
|
|
32686
|
+
/**
|
|
32687
|
+
* Decodes a RunConfigGetRequest message from the specified reader or buffer.
|
|
32688
|
+
* @function decode
|
|
32689
|
+
* @memberof api.RunConfigGetRequest
|
|
32690
|
+
* @static
|
|
32691
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
32692
|
+
* @param {number} [length] Message length if known beforehand
|
|
32693
|
+
* @returns {api.RunConfigGetRequest} RunConfigGetRequest
|
|
32694
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
32695
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
32696
|
+
*/
|
|
32697
|
+
RunConfigGetRequest.decode = function decode(reader, length) {
|
|
32698
|
+
if (!(reader instanceof $Reader))
|
|
32699
|
+
reader = $Reader.create(reader);
|
|
32700
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.api.RunConfigGetRequest();
|
|
32701
|
+
while (reader.pos < end) {
|
|
32702
|
+
var tag = reader.uint32();
|
|
32703
|
+
switch (tag >>> 3) {
|
|
32704
|
+
default:
|
|
32705
|
+
reader.skipType(tag & 7);
|
|
32706
|
+
break;
|
|
32707
|
+
}
|
|
32708
|
+
}
|
|
32709
|
+
return message;
|
|
32710
|
+
};
|
|
32711
|
+
|
|
32712
|
+
/**
|
|
32713
|
+
* Decodes a RunConfigGetRequest message from the specified reader or buffer, length delimited.
|
|
32714
|
+
* @function decodeDelimited
|
|
32715
|
+
* @memberof api.RunConfigGetRequest
|
|
32716
|
+
* @static
|
|
32717
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
32718
|
+
* @returns {api.RunConfigGetRequest} RunConfigGetRequest
|
|
32719
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
32720
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
32721
|
+
*/
|
|
32722
|
+
RunConfigGetRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
32723
|
+
if (!(reader instanceof $Reader))
|
|
32724
|
+
reader = new $Reader(reader);
|
|
32725
|
+
return this.decode(reader, reader.uint32());
|
|
32726
|
+
};
|
|
32727
|
+
|
|
32728
|
+
/**
|
|
32729
|
+
* Verifies a RunConfigGetRequest message.
|
|
32730
|
+
* @function verify
|
|
32731
|
+
* @memberof api.RunConfigGetRequest
|
|
32732
|
+
* @static
|
|
32733
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
32734
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
32735
|
+
*/
|
|
32736
|
+
RunConfigGetRequest.verify = function verify(message) {
|
|
32737
|
+
if (typeof message !== "object" || message === null)
|
|
32738
|
+
return "object expected";
|
|
32739
|
+
return null;
|
|
32740
|
+
};
|
|
32741
|
+
|
|
32742
|
+
/**
|
|
32743
|
+
* Creates a RunConfigGetRequest message from a plain object. Also converts values to their respective internal types.
|
|
32744
|
+
* @function fromObject
|
|
32745
|
+
* @memberof api.RunConfigGetRequest
|
|
32746
|
+
* @static
|
|
32747
|
+
* @param {Object.<string,*>} object Plain object
|
|
32748
|
+
* @returns {api.RunConfigGetRequest} RunConfigGetRequest
|
|
32749
|
+
*/
|
|
32750
|
+
RunConfigGetRequest.fromObject = function fromObject(object) {
|
|
32751
|
+
if (object instanceof $root.api.RunConfigGetRequest)
|
|
32752
|
+
return object;
|
|
32753
|
+
return new $root.api.RunConfigGetRequest();
|
|
32754
|
+
};
|
|
32755
|
+
|
|
32756
|
+
/**
|
|
32757
|
+
* Creates a plain object from a RunConfigGetRequest message. Also converts values to other types if specified.
|
|
32758
|
+
* @function toObject
|
|
32759
|
+
* @memberof api.RunConfigGetRequest
|
|
32760
|
+
* @static
|
|
32761
|
+
* @param {api.RunConfigGetRequest} message RunConfigGetRequest
|
|
32762
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
32763
|
+
* @returns {Object.<string,*>} Plain object
|
|
32764
|
+
*/
|
|
32765
|
+
RunConfigGetRequest.toObject = function toObject() {
|
|
32766
|
+
return {};
|
|
32767
|
+
};
|
|
32768
|
+
|
|
32769
|
+
/**
|
|
32770
|
+
* Converts this RunConfigGetRequest to JSON.
|
|
32771
|
+
* @function toJSON
|
|
32772
|
+
* @memberof api.RunConfigGetRequest
|
|
32773
|
+
* @instance
|
|
32774
|
+
* @returns {Object.<string,*>} JSON object
|
|
32775
|
+
*/
|
|
32776
|
+
RunConfigGetRequest.prototype.toJSON = function toJSON() {
|
|
32777
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
32778
|
+
};
|
|
32779
|
+
|
|
32780
|
+
return RunConfigGetRequest;
|
|
32781
|
+
})();
|
|
32782
|
+
|
|
32783
|
+
api.RunConfigGetResponse = (function() {
|
|
32784
|
+
|
|
32785
|
+
/**
|
|
32786
|
+
* Properties of a RunConfigGetResponse.
|
|
32787
|
+
* @memberof api
|
|
32788
|
+
* @interface IRunConfigGetResponse
|
|
32789
|
+
* @property {api.DotReplitInterp|api.IDotReplitInterp|null} [interp] RunConfigGetResponse interp
|
|
32790
|
+
* @property {api.RunConfigGetResponse.Run|api.RunConfigGetResponse.IRun|null} [run] RunConfigGetResponse run
|
|
32791
|
+
*/
|
|
32792
|
+
|
|
32793
|
+
/**
|
|
32794
|
+
* Constructs a new RunConfigGetResponse.
|
|
32795
|
+
* @memberof api
|
|
32796
|
+
* @classdesc Represents a RunConfigGetResponse.
|
|
32797
|
+
* @constructor
|
|
32798
|
+
* @param {api.IRunConfigGetResponse=} [properties] Properties to set
|
|
32799
|
+
*/
|
|
32800
|
+
function RunConfigGetResponse(properties) {
|
|
32801
|
+
if (properties)
|
|
32802
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
32803
|
+
if (properties[keys[i]] != null)
|
|
32804
|
+
this[keys[i]] = properties[keys[i]];
|
|
32805
|
+
}
|
|
32806
|
+
|
|
32807
|
+
/**
|
|
32808
|
+
* RunConfigGetResponse interp.
|
|
32809
|
+
* @member {api.DotReplitInterp|null|undefined} interp
|
|
32810
|
+
* @memberof api.RunConfigGetResponse
|
|
32811
|
+
* @instance
|
|
32812
|
+
*/
|
|
32813
|
+
RunConfigGetResponse.prototype.interp = null;
|
|
32814
|
+
|
|
32815
|
+
/**
|
|
32816
|
+
* RunConfigGetResponse run.
|
|
32817
|
+
* @member {api.RunConfigGetResponse.Run|null|undefined} run
|
|
32818
|
+
* @memberof api.RunConfigGetResponse
|
|
32819
|
+
* @instance
|
|
32820
|
+
*/
|
|
32821
|
+
RunConfigGetResponse.prototype.run = null;
|
|
32822
|
+
|
|
32823
|
+
// OneOf field names bound to virtual getters and setters
|
|
32824
|
+
var $oneOfFields;
|
|
32825
|
+
|
|
32826
|
+
/**
|
|
32827
|
+
* RunConfigGetResponse config.
|
|
32828
|
+
* @member {"interp"|"run"|undefined} config
|
|
32829
|
+
* @memberof api.RunConfigGetResponse
|
|
32830
|
+
* @instance
|
|
32831
|
+
*/
|
|
32832
|
+
Object.defineProperty(RunConfigGetResponse.prototype, "config", {
|
|
32833
|
+
get: $util.oneOfGetter($oneOfFields = ["interp", "run"]),
|
|
32834
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
32835
|
+
});
|
|
32836
|
+
|
|
32837
|
+
/**
|
|
32838
|
+
* Creates a new RunConfigGetResponse instance using the specified properties.
|
|
32839
|
+
* @function create
|
|
32840
|
+
* @memberof api.RunConfigGetResponse
|
|
32841
|
+
* @static
|
|
32842
|
+
* @param {api.IRunConfigGetResponse=} [properties] Properties to set
|
|
32843
|
+
* @returns {api.RunConfigGetResponse} RunConfigGetResponse instance
|
|
32844
|
+
*/
|
|
32845
|
+
RunConfigGetResponse.create = function create(properties) {
|
|
32846
|
+
return RunConfigGetResponse.fromObject(properties);
|
|
32847
|
+
};
|
|
32848
|
+
|
|
32849
|
+
/**
|
|
32850
|
+
* Encodes the specified RunConfigGetResponse message. Does not implicitly {@link api.RunConfigGetResponse.verify|verify} messages.
|
|
32851
|
+
* @function encode
|
|
32852
|
+
* @memberof api.RunConfigGetResponse
|
|
32853
|
+
* @static
|
|
32854
|
+
* @param {api.RunConfigGetResponse} message RunConfigGetResponse message or plain object to encode
|
|
32855
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
32856
|
+
* @returns {$protobuf.Writer} Writer
|
|
32857
|
+
*/
|
|
32858
|
+
RunConfigGetResponse.encode = function encode(message, writer) {
|
|
32859
|
+
if (!writer)
|
|
32860
|
+
writer = $Writer.create();
|
|
32861
|
+
if (message.interp != null && Object.hasOwnProperty.call(message, "interp"))
|
|
32862
|
+
$root.api.DotReplitInterp.encode(message.interp, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
32863
|
+
if (message.run != null && Object.hasOwnProperty.call(message, "run"))
|
|
32864
|
+
$root.api.RunConfigGetResponse.Run.encode(message.run, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
32865
|
+
return writer;
|
|
32866
|
+
};
|
|
32867
|
+
|
|
32868
|
+
/**
|
|
32869
|
+
* Encodes the specified RunConfigGetResponse message, length delimited. Does not implicitly {@link api.RunConfigGetResponse.verify|verify} messages.
|
|
32870
|
+
* @function encodeDelimited
|
|
32871
|
+
* @memberof api.RunConfigGetResponse
|
|
32872
|
+
* @static
|
|
32873
|
+
* @param {api.RunConfigGetResponse} message RunConfigGetResponse message or plain object to encode
|
|
32874
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
32875
|
+
* @returns {$protobuf.Writer} Writer
|
|
32876
|
+
*/
|
|
32877
|
+
RunConfigGetResponse.encodeDelimited = function encodeDelimited(message, writer) {
|
|
32878
|
+
return this.encode(message, writer).ldelim();
|
|
32879
|
+
};
|
|
32880
|
+
|
|
32881
|
+
/**
|
|
32882
|
+
* Decodes a RunConfigGetResponse message from the specified reader or buffer.
|
|
32883
|
+
* @function decode
|
|
32884
|
+
* @memberof api.RunConfigGetResponse
|
|
32885
|
+
* @static
|
|
32886
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
32887
|
+
* @param {number} [length] Message length if known beforehand
|
|
32888
|
+
* @returns {api.RunConfigGetResponse} RunConfigGetResponse
|
|
32889
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
32890
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
32891
|
+
*/
|
|
32892
|
+
RunConfigGetResponse.decode = function decode(reader, length) {
|
|
32893
|
+
if (!(reader instanceof $Reader))
|
|
32894
|
+
reader = $Reader.create(reader);
|
|
32895
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.api.RunConfigGetResponse();
|
|
32896
|
+
while (reader.pos < end) {
|
|
32897
|
+
var tag = reader.uint32();
|
|
32898
|
+
switch (tag >>> 3) {
|
|
32899
|
+
case 1:
|
|
32900
|
+
message.interp = $root.api.DotReplitInterp.decode(reader, reader.uint32());
|
|
32901
|
+
break;
|
|
32902
|
+
case 2:
|
|
32903
|
+
message.run = $root.api.RunConfigGetResponse.Run.decode(reader, reader.uint32());
|
|
32904
|
+
break;
|
|
32905
|
+
default:
|
|
32906
|
+
reader.skipType(tag & 7);
|
|
32907
|
+
break;
|
|
32908
|
+
}
|
|
32909
|
+
}
|
|
32910
|
+
return message;
|
|
32911
|
+
};
|
|
32912
|
+
|
|
32913
|
+
/**
|
|
32914
|
+
* Decodes a RunConfigGetResponse message from the specified reader or buffer, length delimited.
|
|
32915
|
+
* @function decodeDelimited
|
|
32916
|
+
* @memberof api.RunConfigGetResponse
|
|
32917
|
+
* @static
|
|
32918
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
32919
|
+
* @returns {api.RunConfigGetResponse} RunConfigGetResponse
|
|
32920
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
32921
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
32922
|
+
*/
|
|
32923
|
+
RunConfigGetResponse.decodeDelimited = function decodeDelimited(reader) {
|
|
32924
|
+
if (!(reader instanceof $Reader))
|
|
32925
|
+
reader = new $Reader(reader);
|
|
32926
|
+
return this.decode(reader, reader.uint32());
|
|
32927
|
+
};
|
|
32928
|
+
|
|
32929
|
+
/**
|
|
32930
|
+
* Verifies a RunConfigGetResponse message.
|
|
32931
|
+
* @function verify
|
|
32932
|
+
* @memberof api.RunConfigGetResponse
|
|
32933
|
+
* @static
|
|
32934
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
32935
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
32936
|
+
*/
|
|
32937
|
+
RunConfigGetResponse.verify = function verify(message) {
|
|
32938
|
+
if (typeof message !== "object" || message === null)
|
|
32939
|
+
return "object expected";
|
|
32940
|
+
var properties = {};
|
|
32941
|
+
if (message.interp != null && message.hasOwnProperty("interp")) {
|
|
32942
|
+
properties.config = 1;
|
|
32943
|
+
{
|
|
32944
|
+
var error = $root.api.DotReplitInterp.verify(message.interp);
|
|
32945
|
+
if (error)
|
|
32946
|
+
return "interp." + error;
|
|
32947
|
+
}
|
|
32948
|
+
}
|
|
32949
|
+
if (message.run != null && message.hasOwnProperty("run")) {
|
|
32950
|
+
if (properties.config === 1)
|
|
32951
|
+
return "config: multiple values";
|
|
32952
|
+
properties.config = 1;
|
|
32953
|
+
{
|
|
32954
|
+
var error = $root.api.RunConfigGetResponse.Run.verify(message.run);
|
|
32955
|
+
if (error)
|
|
32956
|
+
return "run." + error;
|
|
32957
|
+
}
|
|
32958
|
+
}
|
|
32959
|
+
return null;
|
|
32960
|
+
};
|
|
32961
|
+
|
|
32962
|
+
/**
|
|
32963
|
+
* Creates a RunConfigGetResponse message from a plain object. Also converts values to their respective internal types.
|
|
32964
|
+
* @function fromObject
|
|
32965
|
+
* @memberof api.RunConfigGetResponse
|
|
32966
|
+
* @static
|
|
32967
|
+
* @param {Object.<string,*>} object Plain object
|
|
32968
|
+
* @returns {api.RunConfigGetResponse} RunConfigGetResponse
|
|
32969
|
+
*/
|
|
32970
|
+
RunConfigGetResponse.fromObject = function fromObject(object) {
|
|
32971
|
+
if (object instanceof $root.api.RunConfigGetResponse)
|
|
32972
|
+
return object;
|
|
32973
|
+
var message = new $root.api.RunConfigGetResponse();
|
|
32974
|
+
if (object.interp != null) {
|
|
32975
|
+
if (typeof object.interp !== "object")
|
|
32976
|
+
throw TypeError(".api.RunConfigGetResponse.interp: object expected");
|
|
32977
|
+
message.interp = $root.api.DotReplitInterp.fromObject(object.interp);
|
|
32978
|
+
}
|
|
32979
|
+
if (object.run != null) {
|
|
32980
|
+
if (typeof object.run !== "object")
|
|
32981
|
+
throw TypeError(".api.RunConfigGetResponse.run: object expected");
|
|
32982
|
+
message.run = $root.api.RunConfigGetResponse.Run.fromObject(object.run);
|
|
32983
|
+
}
|
|
32984
|
+
return message;
|
|
32985
|
+
};
|
|
32986
|
+
|
|
32987
|
+
/**
|
|
32988
|
+
* Creates a plain object from a RunConfigGetResponse message. Also converts values to other types if specified.
|
|
32989
|
+
* @function toObject
|
|
32990
|
+
* @memberof api.RunConfigGetResponse
|
|
32991
|
+
* @static
|
|
32992
|
+
* @param {api.RunConfigGetResponse} message RunConfigGetResponse
|
|
32993
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
32994
|
+
* @returns {Object.<string,*>} Plain object
|
|
32995
|
+
*/
|
|
32996
|
+
RunConfigGetResponse.toObject = function toObject(message, options) {
|
|
32997
|
+
if (!options)
|
|
32998
|
+
options = {};
|
|
32999
|
+
var object = {};
|
|
33000
|
+
if (message.interp != null && message.hasOwnProperty("interp")) {
|
|
33001
|
+
object.interp = $root.api.DotReplitInterp.toObject(message.interp, options);
|
|
33002
|
+
if (options.oneofs)
|
|
33003
|
+
object.config = "interp";
|
|
33004
|
+
}
|
|
33005
|
+
if (message.run != null && message.hasOwnProperty("run")) {
|
|
33006
|
+
object.run = $root.api.RunConfigGetResponse.Run.toObject(message.run, options);
|
|
33007
|
+
if (options.oneofs)
|
|
33008
|
+
object.config = "run";
|
|
33009
|
+
}
|
|
33010
|
+
return object;
|
|
33011
|
+
};
|
|
33012
|
+
|
|
33013
|
+
/**
|
|
33014
|
+
* Converts this RunConfigGetResponse to JSON.
|
|
33015
|
+
* @function toJSON
|
|
33016
|
+
* @memberof api.RunConfigGetResponse
|
|
33017
|
+
* @instance
|
|
33018
|
+
* @returns {Object.<string,*>} JSON object
|
|
33019
|
+
*/
|
|
33020
|
+
RunConfigGetResponse.prototype.toJSON = function toJSON() {
|
|
33021
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
33022
|
+
};
|
|
33023
|
+
|
|
33024
|
+
RunConfigGetResponse.Run = (function() {
|
|
33025
|
+
|
|
33026
|
+
/**
|
|
33027
|
+
* Properties of a Run.
|
|
33028
|
+
* @memberof api.RunConfigGetResponse
|
|
33029
|
+
* @interface IRun
|
|
33030
|
+
* @property {api.Exec|api.IExec|null} [compile] Run compile
|
|
33031
|
+
* @property {api.Exec|api.IExec|null} [run] Run run
|
|
33032
|
+
*/
|
|
33033
|
+
|
|
33034
|
+
/**
|
|
33035
|
+
* Constructs a new Run.
|
|
33036
|
+
* @memberof api.RunConfigGetResponse
|
|
33037
|
+
* @classdesc Represents a Run.
|
|
33038
|
+
* @constructor
|
|
33039
|
+
* @param {api.RunConfigGetResponse.IRun=} [properties] Properties to set
|
|
33040
|
+
*/
|
|
33041
|
+
function Run(properties) {
|
|
33042
|
+
if (properties)
|
|
33043
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
33044
|
+
if (properties[keys[i]] != null)
|
|
33045
|
+
this[keys[i]] = properties[keys[i]];
|
|
33046
|
+
}
|
|
33047
|
+
|
|
33048
|
+
/**
|
|
33049
|
+
* Run compile.
|
|
33050
|
+
* @member {api.Exec|null|undefined} compile
|
|
33051
|
+
* @memberof api.RunConfigGetResponse.Run
|
|
33052
|
+
* @instance
|
|
33053
|
+
*/
|
|
33054
|
+
Run.prototype.compile = null;
|
|
33055
|
+
|
|
33056
|
+
/**
|
|
33057
|
+
* Run run.
|
|
33058
|
+
* @member {api.Exec|null|undefined} run
|
|
33059
|
+
* @memberof api.RunConfigGetResponse.Run
|
|
33060
|
+
* @instance
|
|
33061
|
+
*/
|
|
33062
|
+
Run.prototype.run = null;
|
|
33063
|
+
|
|
33064
|
+
/**
|
|
33065
|
+
* Creates a new Run instance using the specified properties.
|
|
33066
|
+
* @function create
|
|
33067
|
+
* @memberof api.RunConfigGetResponse.Run
|
|
33068
|
+
* @static
|
|
33069
|
+
* @param {api.RunConfigGetResponse.IRun=} [properties] Properties to set
|
|
33070
|
+
* @returns {api.RunConfigGetResponse.Run} Run instance
|
|
33071
|
+
*/
|
|
33072
|
+
Run.create = function create(properties) {
|
|
33073
|
+
return Run.fromObject(properties);
|
|
33074
|
+
};
|
|
33075
|
+
|
|
33076
|
+
/**
|
|
33077
|
+
* Encodes the specified Run message. Does not implicitly {@link api.RunConfigGetResponse.Run.verify|verify} messages.
|
|
33078
|
+
* @function encode
|
|
33079
|
+
* @memberof api.RunConfigGetResponse.Run
|
|
33080
|
+
* @static
|
|
33081
|
+
* @param {api.RunConfigGetResponse.Run} message Run message or plain object to encode
|
|
33082
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
33083
|
+
* @returns {$protobuf.Writer} Writer
|
|
33084
|
+
*/
|
|
33085
|
+
Run.encode = function encode(message, writer) {
|
|
33086
|
+
if (!writer)
|
|
33087
|
+
writer = $Writer.create();
|
|
33088
|
+
if (message.compile != null && Object.hasOwnProperty.call(message, "compile"))
|
|
33089
|
+
$root.api.Exec.encode(message.compile, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
33090
|
+
if (message.run != null && Object.hasOwnProperty.call(message, "run"))
|
|
33091
|
+
$root.api.Exec.encode(message.run, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
33092
|
+
return writer;
|
|
33093
|
+
};
|
|
33094
|
+
|
|
33095
|
+
/**
|
|
33096
|
+
* Encodes the specified Run message, length delimited. Does not implicitly {@link api.RunConfigGetResponse.Run.verify|verify} messages.
|
|
33097
|
+
* @function encodeDelimited
|
|
33098
|
+
* @memberof api.RunConfigGetResponse.Run
|
|
33099
|
+
* @static
|
|
33100
|
+
* @param {api.RunConfigGetResponse.Run} message Run message or plain object to encode
|
|
33101
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
33102
|
+
* @returns {$protobuf.Writer} Writer
|
|
33103
|
+
*/
|
|
33104
|
+
Run.encodeDelimited = function encodeDelimited(message, writer) {
|
|
33105
|
+
return this.encode(message, writer).ldelim();
|
|
33106
|
+
};
|
|
33107
|
+
|
|
33108
|
+
/**
|
|
33109
|
+
* Decodes a Run message from the specified reader or buffer.
|
|
33110
|
+
* @function decode
|
|
33111
|
+
* @memberof api.RunConfigGetResponse.Run
|
|
33112
|
+
* @static
|
|
33113
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
33114
|
+
* @param {number} [length] Message length if known beforehand
|
|
33115
|
+
* @returns {api.RunConfigGetResponse.Run} Run
|
|
33116
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
33117
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
33118
|
+
*/
|
|
33119
|
+
Run.decode = function decode(reader, length) {
|
|
33120
|
+
if (!(reader instanceof $Reader))
|
|
33121
|
+
reader = $Reader.create(reader);
|
|
33122
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.api.RunConfigGetResponse.Run();
|
|
33123
|
+
while (reader.pos < end) {
|
|
33124
|
+
var tag = reader.uint32();
|
|
33125
|
+
switch (tag >>> 3) {
|
|
33126
|
+
case 1:
|
|
33127
|
+
message.compile = $root.api.Exec.decode(reader, reader.uint32());
|
|
33128
|
+
break;
|
|
33129
|
+
case 2:
|
|
33130
|
+
message.run = $root.api.Exec.decode(reader, reader.uint32());
|
|
33131
|
+
break;
|
|
33132
|
+
default:
|
|
33133
|
+
reader.skipType(tag & 7);
|
|
33134
|
+
break;
|
|
33135
|
+
}
|
|
33136
|
+
}
|
|
33137
|
+
return message;
|
|
33138
|
+
};
|
|
33139
|
+
|
|
33140
|
+
/**
|
|
33141
|
+
* Decodes a Run message from the specified reader or buffer, length delimited.
|
|
33142
|
+
* @function decodeDelimited
|
|
33143
|
+
* @memberof api.RunConfigGetResponse.Run
|
|
33144
|
+
* @static
|
|
33145
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
33146
|
+
* @returns {api.RunConfigGetResponse.Run} Run
|
|
33147
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
33148
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
33149
|
+
*/
|
|
33150
|
+
Run.decodeDelimited = function decodeDelimited(reader) {
|
|
33151
|
+
if (!(reader instanceof $Reader))
|
|
33152
|
+
reader = new $Reader(reader);
|
|
33153
|
+
return this.decode(reader, reader.uint32());
|
|
33154
|
+
};
|
|
33155
|
+
|
|
33156
|
+
/**
|
|
33157
|
+
* Verifies a Run message.
|
|
33158
|
+
* @function verify
|
|
33159
|
+
* @memberof api.RunConfigGetResponse.Run
|
|
33160
|
+
* @static
|
|
33161
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
33162
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
33163
|
+
*/
|
|
33164
|
+
Run.verify = function verify(message) {
|
|
33165
|
+
if (typeof message !== "object" || message === null)
|
|
33166
|
+
return "object expected";
|
|
33167
|
+
if (message.compile != null && message.hasOwnProperty("compile")) {
|
|
33168
|
+
var error = $root.api.Exec.verify(message.compile);
|
|
33169
|
+
if (error)
|
|
33170
|
+
return "compile." + error;
|
|
33171
|
+
}
|
|
33172
|
+
if (message.run != null && message.hasOwnProperty("run")) {
|
|
33173
|
+
var error = $root.api.Exec.verify(message.run);
|
|
33174
|
+
if (error)
|
|
33175
|
+
return "run." + error;
|
|
33176
|
+
}
|
|
33177
|
+
return null;
|
|
33178
|
+
};
|
|
33179
|
+
|
|
33180
|
+
/**
|
|
33181
|
+
* Creates a Run message from a plain object. Also converts values to their respective internal types.
|
|
33182
|
+
* @function fromObject
|
|
33183
|
+
* @memberof api.RunConfigGetResponse.Run
|
|
33184
|
+
* @static
|
|
33185
|
+
* @param {Object.<string,*>} object Plain object
|
|
33186
|
+
* @returns {api.RunConfigGetResponse.Run} Run
|
|
33187
|
+
*/
|
|
33188
|
+
Run.fromObject = function fromObject(object) {
|
|
33189
|
+
if (object instanceof $root.api.RunConfigGetResponse.Run)
|
|
33190
|
+
return object;
|
|
33191
|
+
var message = new $root.api.RunConfigGetResponse.Run();
|
|
33192
|
+
if (object.compile != null) {
|
|
33193
|
+
if (typeof object.compile !== "object")
|
|
33194
|
+
throw TypeError(".api.RunConfigGetResponse.Run.compile: object expected");
|
|
33195
|
+
message.compile = $root.api.Exec.fromObject(object.compile);
|
|
33196
|
+
}
|
|
33197
|
+
if (object.run != null) {
|
|
33198
|
+
if (typeof object.run !== "object")
|
|
33199
|
+
throw TypeError(".api.RunConfigGetResponse.Run.run: object expected");
|
|
33200
|
+
message.run = $root.api.Exec.fromObject(object.run);
|
|
33201
|
+
}
|
|
33202
|
+
return message;
|
|
33203
|
+
};
|
|
33204
|
+
|
|
33205
|
+
/**
|
|
33206
|
+
* Creates a plain object from a Run message. Also converts values to other types if specified.
|
|
33207
|
+
* @function toObject
|
|
33208
|
+
* @memberof api.RunConfigGetResponse.Run
|
|
33209
|
+
* @static
|
|
33210
|
+
* @param {api.RunConfigGetResponse.Run} message Run
|
|
33211
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
33212
|
+
* @returns {Object.<string,*>} Plain object
|
|
33213
|
+
*/
|
|
33214
|
+
Run.toObject = function toObject(message, options) {
|
|
33215
|
+
if (!options)
|
|
33216
|
+
options = {};
|
|
33217
|
+
var object = {};
|
|
33218
|
+
if (options.defaults) {
|
|
33219
|
+
object.compile = null;
|
|
33220
|
+
object.run = null;
|
|
33221
|
+
}
|
|
33222
|
+
if (message.compile != null && message.hasOwnProperty("compile"))
|
|
33223
|
+
object.compile = $root.api.Exec.toObject(message.compile, options);
|
|
33224
|
+
if (message.run != null && message.hasOwnProperty("run"))
|
|
33225
|
+
object.run = $root.api.Exec.toObject(message.run, options);
|
|
33226
|
+
return object;
|
|
33227
|
+
};
|
|
33228
|
+
|
|
33229
|
+
/**
|
|
33230
|
+
* Converts this Run to JSON.
|
|
33231
|
+
* @function toJSON
|
|
33232
|
+
* @memberof api.RunConfigGetResponse.Run
|
|
33233
|
+
* @instance
|
|
33234
|
+
* @returns {Object.<string,*>} JSON object
|
|
33235
|
+
*/
|
|
33236
|
+
Run.prototype.toJSON = function toJSON() {
|
|
33237
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
33238
|
+
};
|
|
33239
|
+
|
|
33240
|
+
return Run;
|
|
33241
|
+
})();
|
|
33242
|
+
|
|
33243
|
+
return RunConfigGetResponse;
|
|
33244
|
+
})();
|
|
33245
|
+
|
|
32484
33246
|
api.DebugAddBreakpointRequest = (function() {
|
|
32485
33247
|
|
|
32486
33248
|
/**
|
|
@@ -33738,6 +34500,8 @@
|
|
|
33738
34500
|
* @property {api.DotReplitInterp|api.IDotReplitInterp|null} [interpreter] DotReplit interpreter
|
|
33739
34501
|
* @property {string|null} [entrypoint] DotReplit entrypoint
|
|
33740
34502
|
* @property {Object.<string,api.DotReplitLanguage|api.IDotReplitLanguage>|null} [languages] DotReplit languages
|
|
34503
|
+
* @property {api.DotReplitUnitTest|api.IDotReplitUnitTest|null} [unitTest] DotReplit unitTest
|
|
34504
|
+
* @property {Array.<string>|null} [hidden] DotReplit hidden
|
|
33741
34505
|
*/
|
|
33742
34506
|
|
|
33743
34507
|
/**
|
|
@@ -33749,6 +34513,7 @@
|
|
|
33749
34513
|
*/
|
|
33750
34514
|
function DotReplit(properties) {
|
|
33751
34515
|
this.languages = {};
|
|
34516
|
+
this.hidden = [];
|
|
33752
34517
|
if (properties)
|
|
33753
34518
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
33754
34519
|
if (properties[keys[i]] != null)
|
|
@@ -33827,6 +34592,22 @@
|
|
|
33827
34592
|
*/
|
|
33828
34593
|
DotReplit.prototype.languages = $util.emptyObject;
|
|
33829
34594
|
|
|
34595
|
+
/**
|
|
34596
|
+
* DotReplit unitTest.
|
|
34597
|
+
* @member {api.DotReplitUnitTest|null|undefined} unitTest
|
|
34598
|
+
* @memberof api.DotReplit
|
|
34599
|
+
* @instance
|
|
34600
|
+
*/
|
|
34601
|
+
DotReplit.prototype.unitTest = null;
|
|
34602
|
+
|
|
34603
|
+
/**
|
|
34604
|
+
* DotReplit hidden.
|
|
34605
|
+
* @member {Array.<string>} hidden
|
|
34606
|
+
* @memberof api.DotReplit
|
|
34607
|
+
* @instance
|
|
34608
|
+
*/
|
|
34609
|
+
DotReplit.prototype.hidden = $util.emptyArray;
|
|
34610
|
+
|
|
33830
34611
|
/**
|
|
33831
34612
|
* Creates a new DotReplit instance using the specified properties.
|
|
33832
34613
|
* @function create
|
|
@@ -33872,6 +34653,11 @@
|
|
|
33872
34653
|
writer.uint32(/* id 9, wireType 2 =*/74).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
|
|
33873
34654
|
$root.api.DotReplitLanguage.encode(message.languages[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
|
|
33874
34655
|
}
|
|
34656
|
+
if (message.unitTest != null && Object.hasOwnProperty.call(message, "unitTest"))
|
|
34657
|
+
$root.api.DotReplitUnitTest.encode(message.unitTest, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim();
|
|
34658
|
+
if (message.hidden != null && message.hidden.length)
|
|
34659
|
+
for (var i = 0; i < message.hidden.length; ++i)
|
|
34660
|
+
writer.uint32(/* id 11, wireType 2 =*/90).string(message.hidden[i]);
|
|
33875
34661
|
return writer;
|
|
33876
34662
|
};
|
|
33877
34663
|
|
|
@@ -33952,6 +34738,14 @@
|
|
|
33952
34738
|
}
|
|
33953
34739
|
message.languages[key] = value;
|
|
33954
34740
|
break;
|
|
34741
|
+
case 10:
|
|
34742
|
+
message.unitTest = $root.api.DotReplitUnitTest.decode(reader, reader.uint32());
|
|
34743
|
+
break;
|
|
34744
|
+
case 11:
|
|
34745
|
+
if (!(message.hidden && message.hidden.length))
|
|
34746
|
+
message.hidden = [];
|
|
34747
|
+
message.hidden.push(reader.string());
|
|
34748
|
+
break;
|
|
33955
34749
|
default:
|
|
33956
34750
|
reader.skipType(tag & 7);
|
|
33957
34751
|
break;
|
|
@@ -34033,6 +34827,18 @@
|
|
|
34033
34827
|
return "languages." + error;
|
|
34034
34828
|
}
|
|
34035
34829
|
}
|
|
34830
|
+
if (message.unitTest != null && message.hasOwnProperty("unitTest")) {
|
|
34831
|
+
var error = $root.api.DotReplitUnitTest.verify(message.unitTest);
|
|
34832
|
+
if (error)
|
|
34833
|
+
return "unitTest." + error;
|
|
34834
|
+
}
|
|
34835
|
+
if (message.hidden != null && message.hasOwnProperty("hidden")) {
|
|
34836
|
+
if (!Array.isArray(message.hidden))
|
|
34837
|
+
return "hidden: array expected";
|
|
34838
|
+
for (var i = 0; i < message.hidden.length; ++i)
|
|
34839
|
+
if (!$util.isString(message.hidden[i]))
|
|
34840
|
+
return "hidden: string[] expected";
|
|
34841
|
+
}
|
|
34036
34842
|
return null;
|
|
34037
34843
|
};
|
|
34038
34844
|
|
|
@@ -34092,6 +34898,18 @@
|
|
|
34092
34898
|
message.languages[keys[i]] = $root.api.DotReplitLanguage.fromObject(object.languages[keys[i]]);
|
|
34093
34899
|
}
|
|
34094
34900
|
}
|
|
34901
|
+
if (object.unitTest != null) {
|
|
34902
|
+
if (typeof object.unitTest !== "object")
|
|
34903
|
+
throw TypeError(".api.DotReplit.unitTest: object expected");
|
|
34904
|
+
message.unitTest = $root.api.DotReplitUnitTest.fromObject(object.unitTest);
|
|
34905
|
+
}
|
|
34906
|
+
if (object.hidden) {
|
|
34907
|
+
if (!Array.isArray(object.hidden))
|
|
34908
|
+
throw TypeError(".api.DotReplit.hidden: array expected");
|
|
34909
|
+
message.hidden = [];
|
|
34910
|
+
for (var i = 0; i < object.hidden.length; ++i)
|
|
34911
|
+
message.hidden[i] = String(object.hidden[i]);
|
|
34912
|
+
}
|
|
34095
34913
|
return message;
|
|
34096
34914
|
};
|
|
34097
34915
|
|
|
@@ -34108,6 +34926,8 @@
|
|
|
34108
34926
|
if (!options)
|
|
34109
34927
|
options = {};
|
|
34110
34928
|
var object = {};
|
|
34929
|
+
if (options.arrays || options.defaults)
|
|
34930
|
+
object.hidden = [];
|
|
34111
34931
|
if (options.objects || options.defaults)
|
|
34112
34932
|
object.languages = {};
|
|
34113
34933
|
if (options.defaults) {
|
|
@@ -34119,6 +34939,7 @@
|
|
|
34119
34939
|
object.packager = null;
|
|
34120
34940
|
object.interpreter = null;
|
|
34121
34941
|
object.entrypoint = "";
|
|
34942
|
+
object.unitTest = null;
|
|
34122
34943
|
}
|
|
34123
34944
|
if (message.run != null && message.hasOwnProperty("run"))
|
|
34124
34945
|
object.run = $root.api.Exec.toObject(message.run, options);
|
|
@@ -34142,6 +34963,13 @@
|
|
|
34142
34963
|
for (var j = 0; j < keys2.length; ++j)
|
|
34143
34964
|
object.languages[keys2[j]] = $root.api.DotReplitLanguage.toObject(message.languages[keys2[j]], options);
|
|
34144
34965
|
}
|
|
34966
|
+
if (message.unitTest != null && message.hasOwnProperty("unitTest"))
|
|
34967
|
+
object.unitTest = $root.api.DotReplitUnitTest.toObject(message.unitTest, options);
|
|
34968
|
+
if (message.hidden && message.hidden.length) {
|
|
34969
|
+
object.hidden = [];
|
|
34970
|
+
for (var j = 0; j < message.hidden.length; ++j)
|
|
34971
|
+
object.hidden[j] = message.hidden[j];
|
|
34972
|
+
}
|
|
34145
34973
|
return object;
|
|
34146
34974
|
};
|
|
34147
34975
|
|
|
@@ -35395,6 +36223,192 @@
|
|
|
35395
36223
|
return DotReplitPackagerFeatures;
|
|
35396
36224
|
})();
|
|
35397
36225
|
|
|
36226
|
+
api.DotReplitUnitTest = (function() {
|
|
36227
|
+
|
|
36228
|
+
/**
|
|
36229
|
+
* Properties of a DotReplitUnitTest.
|
|
36230
|
+
* @memberof api
|
|
36231
|
+
* @interface IDotReplitUnitTest
|
|
36232
|
+
* @property {string|null} [language] DotReplitUnitTest language
|
|
36233
|
+
*/
|
|
36234
|
+
|
|
36235
|
+
/**
|
|
36236
|
+
* Constructs a new DotReplitUnitTest.
|
|
36237
|
+
* @memberof api
|
|
36238
|
+
* @classdesc Represents a DotReplitUnitTest.
|
|
36239
|
+
* @constructor
|
|
36240
|
+
* @param {api.IDotReplitUnitTest=} [properties] Properties to set
|
|
36241
|
+
*/
|
|
36242
|
+
function DotReplitUnitTest(properties) {
|
|
36243
|
+
if (properties)
|
|
36244
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
36245
|
+
if (properties[keys[i]] != null)
|
|
36246
|
+
this[keys[i]] = properties[keys[i]];
|
|
36247
|
+
}
|
|
36248
|
+
|
|
36249
|
+
/**
|
|
36250
|
+
* DotReplitUnitTest language.
|
|
36251
|
+
* @member {string} language
|
|
36252
|
+
* @memberof api.DotReplitUnitTest
|
|
36253
|
+
* @instance
|
|
36254
|
+
*/
|
|
36255
|
+
DotReplitUnitTest.prototype.language = "";
|
|
36256
|
+
|
|
36257
|
+
/**
|
|
36258
|
+
* Creates a new DotReplitUnitTest instance using the specified properties.
|
|
36259
|
+
* @function create
|
|
36260
|
+
* @memberof api.DotReplitUnitTest
|
|
36261
|
+
* @static
|
|
36262
|
+
* @param {api.IDotReplitUnitTest=} [properties] Properties to set
|
|
36263
|
+
* @returns {api.DotReplitUnitTest} DotReplitUnitTest instance
|
|
36264
|
+
*/
|
|
36265
|
+
DotReplitUnitTest.create = function create(properties) {
|
|
36266
|
+
return DotReplitUnitTest.fromObject(properties);
|
|
36267
|
+
};
|
|
36268
|
+
|
|
36269
|
+
/**
|
|
36270
|
+
* Encodes the specified DotReplitUnitTest message. Does not implicitly {@link api.DotReplitUnitTest.verify|verify} messages.
|
|
36271
|
+
* @function encode
|
|
36272
|
+
* @memberof api.DotReplitUnitTest
|
|
36273
|
+
* @static
|
|
36274
|
+
* @param {api.DotReplitUnitTest} message DotReplitUnitTest message or plain object to encode
|
|
36275
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
36276
|
+
* @returns {$protobuf.Writer} Writer
|
|
36277
|
+
*/
|
|
36278
|
+
DotReplitUnitTest.encode = function encode(message, writer) {
|
|
36279
|
+
if (!writer)
|
|
36280
|
+
writer = $Writer.create();
|
|
36281
|
+
if (message.language != null && Object.hasOwnProperty.call(message, "language"))
|
|
36282
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.language);
|
|
36283
|
+
return writer;
|
|
36284
|
+
};
|
|
36285
|
+
|
|
36286
|
+
/**
|
|
36287
|
+
* Encodes the specified DotReplitUnitTest message, length delimited. Does not implicitly {@link api.DotReplitUnitTest.verify|verify} messages.
|
|
36288
|
+
* @function encodeDelimited
|
|
36289
|
+
* @memberof api.DotReplitUnitTest
|
|
36290
|
+
* @static
|
|
36291
|
+
* @param {api.DotReplitUnitTest} message DotReplitUnitTest message or plain object to encode
|
|
36292
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
36293
|
+
* @returns {$protobuf.Writer} Writer
|
|
36294
|
+
*/
|
|
36295
|
+
DotReplitUnitTest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
36296
|
+
return this.encode(message, writer).ldelim();
|
|
36297
|
+
};
|
|
36298
|
+
|
|
36299
|
+
/**
|
|
36300
|
+
* Decodes a DotReplitUnitTest message from the specified reader or buffer.
|
|
36301
|
+
* @function decode
|
|
36302
|
+
* @memberof api.DotReplitUnitTest
|
|
36303
|
+
* @static
|
|
36304
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
36305
|
+
* @param {number} [length] Message length if known beforehand
|
|
36306
|
+
* @returns {api.DotReplitUnitTest} DotReplitUnitTest
|
|
36307
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
36308
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
36309
|
+
*/
|
|
36310
|
+
DotReplitUnitTest.decode = function decode(reader, length) {
|
|
36311
|
+
if (!(reader instanceof $Reader))
|
|
36312
|
+
reader = $Reader.create(reader);
|
|
36313
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.api.DotReplitUnitTest();
|
|
36314
|
+
while (reader.pos < end) {
|
|
36315
|
+
var tag = reader.uint32();
|
|
36316
|
+
switch (tag >>> 3) {
|
|
36317
|
+
case 1:
|
|
36318
|
+
message.language = reader.string();
|
|
36319
|
+
break;
|
|
36320
|
+
default:
|
|
36321
|
+
reader.skipType(tag & 7);
|
|
36322
|
+
break;
|
|
36323
|
+
}
|
|
36324
|
+
}
|
|
36325
|
+
return message;
|
|
36326
|
+
};
|
|
36327
|
+
|
|
36328
|
+
/**
|
|
36329
|
+
* Decodes a DotReplitUnitTest message from the specified reader or buffer, length delimited.
|
|
36330
|
+
* @function decodeDelimited
|
|
36331
|
+
* @memberof api.DotReplitUnitTest
|
|
36332
|
+
* @static
|
|
36333
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
36334
|
+
* @returns {api.DotReplitUnitTest} DotReplitUnitTest
|
|
36335
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
36336
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
36337
|
+
*/
|
|
36338
|
+
DotReplitUnitTest.decodeDelimited = function decodeDelimited(reader) {
|
|
36339
|
+
if (!(reader instanceof $Reader))
|
|
36340
|
+
reader = new $Reader(reader);
|
|
36341
|
+
return this.decode(reader, reader.uint32());
|
|
36342
|
+
};
|
|
36343
|
+
|
|
36344
|
+
/**
|
|
36345
|
+
* Verifies a DotReplitUnitTest message.
|
|
36346
|
+
* @function verify
|
|
36347
|
+
* @memberof api.DotReplitUnitTest
|
|
36348
|
+
* @static
|
|
36349
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
36350
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
36351
|
+
*/
|
|
36352
|
+
DotReplitUnitTest.verify = function verify(message) {
|
|
36353
|
+
if (typeof message !== "object" || message === null)
|
|
36354
|
+
return "object expected";
|
|
36355
|
+
if (message.language != null && message.hasOwnProperty("language"))
|
|
36356
|
+
if (!$util.isString(message.language))
|
|
36357
|
+
return "language: string expected";
|
|
36358
|
+
return null;
|
|
36359
|
+
};
|
|
36360
|
+
|
|
36361
|
+
/**
|
|
36362
|
+
* Creates a DotReplitUnitTest message from a plain object. Also converts values to their respective internal types.
|
|
36363
|
+
* @function fromObject
|
|
36364
|
+
* @memberof api.DotReplitUnitTest
|
|
36365
|
+
* @static
|
|
36366
|
+
* @param {Object.<string,*>} object Plain object
|
|
36367
|
+
* @returns {api.DotReplitUnitTest} DotReplitUnitTest
|
|
36368
|
+
*/
|
|
36369
|
+
DotReplitUnitTest.fromObject = function fromObject(object) {
|
|
36370
|
+
if (object instanceof $root.api.DotReplitUnitTest)
|
|
36371
|
+
return object;
|
|
36372
|
+
var message = new $root.api.DotReplitUnitTest();
|
|
36373
|
+
if (object.language != null)
|
|
36374
|
+
message.language = String(object.language);
|
|
36375
|
+
return message;
|
|
36376
|
+
};
|
|
36377
|
+
|
|
36378
|
+
/**
|
|
36379
|
+
* Creates a plain object from a DotReplitUnitTest message. Also converts values to other types if specified.
|
|
36380
|
+
* @function toObject
|
|
36381
|
+
* @memberof api.DotReplitUnitTest
|
|
36382
|
+
* @static
|
|
36383
|
+
* @param {api.DotReplitUnitTest} message DotReplitUnitTest
|
|
36384
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
36385
|
+
* @returns {Object.<string,*>} Plain object
|
|
36386
|
+
*/
|
|
36387
|
+
DotReplitUnitTest.toObject = function toObject(message, options) {
|
|
36388
|
+
if (!options)
|
|
36389
|
+
options = {};
|
|
36390
|
+
var object = {};
|
|
36391
|
+
if (options.defaults)
|
|
36392
|
+
object.language = "";
|
|
36393
|
+
if (message.language != null && message.hasOwnProperty("language"))
|
|
36394
|
+
object.language = message.language;
|
|
36395
|
+
return object;
|
|
36396
|
+
};
|
|
36397
|
+
|
|
36398
|
+
/**
|
|
36399
|
+
* Converts this DotReplitUnitTest to JSON.
|
|
36400
|
+
* @function toJSON
|
|
36401
|
+
* @memberof api.DotReplitUnitTest
|
|
36402
|
+
* @instance
|
|
36403
|
+
* @returns {Object.<string,*>} JSON object
|
|
36404
|
+
*/
|
|
36405
|
+
DotReplitUnitTest.prototype.toJSON = function toJSON() {
|
|
36406
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
36407
|
+
};
|
|
36408
|
+
|
|
36409
|
+
return DotReplitUnitTest;
|
|
36410
|
+
})();
|
|
36411
|
+
|
|
35398
36412
|
api.DebuggerConfig = (function() {
|
|
35399
36413
|
|
|
35400
36414
|
/**
|
|
@@ -37882,6 +38896,7 @@
|
|
|
37882
38896
|
* @property {api.ResourceLimits|api.IResourceLimits|null} [userLimits] ReplTransfer userLimits
|
|
37883
38897
|
* @property {Array.<string>|null} [customDomains] ReplTransfer customDomains
|
|
37884
38898
|
* @property {Array.<api.TLSCertificate|api.ITLSCertificate>|null} [certificates] ReplTransfer certificates
|
|
38899
|
+
* @property {Array.<string>|null} [flags] ReplTransfer flags
|
|
37885
38900
|
*/
|
|
37886
38901
|
|
|
37887
38902
|
/**
|
|
@@ -37894,6 +38909,7 @@
|
|
|
37894
38909
|
function ReplTransfer(properties) {
|
|
37895
38910
|
this.customDomains = [];
|
|
37896
38911
|
this.certificates = [];
|
|
38912
|
+
this.flags = [];
|
|
37897
38913
|
if (properties)
|
|
37898
38914
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
37899
38915
|
if (properties[keys[i]] != null)
|
|
@@ -37940,6 +38956,14 @@
|
|
|
37940
38956
|
*/
|
|
37941
38957
|
ReplTransfer.prototype.certificates = $util.emptyArray;
|
|
37942
38958
|
|
|
38959
|
+
/**
|
|
38960
|
+
* ReplTransfer flags.
|
|
38961
|
+
* @member {Array.<string>} flags
|
|
38962
|
+
* @memberof api.ReplTransfer
|
|
38963
|
+
* @instance
|
|
38964
|
+
*/
|
|
38965
|
+
ReplTransfer.prototype.flags = $util.emptyArray;
|
|
38966
|
+
|
|
37943
38967
|
/**
|
|
37944
38968
|
* Creates a new ReplTransfer instance using the specified properties.
|
|
37945
38969
|
* @function create
|
|
@@ -37976,6 +39000,9 @@
|
|
|
37976
39000
|
if (message.certificates != null && message.certificates.length)
|
|
37977
39001
|
for (var i = 0; i < message.certificates.length; ++i)
|
|
37978
39002
|
$root.api.TLSCertificate.encode(message.certificates[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
|
|
39003
|
+
if (message.flags != null && message.flags.length)
|
|
39004
|
+
for (var i = 0; i < message.flags.length; ++i)
|
|
39005
|
+
writer.uint32(/* id 6, wireType 2 =*/50).string(message.flags[i]);
|
|
37979
39006
|
return writer;
|
|
37980
39007
|
};
|
|
37981
39008
|
|
|
@@ -38029,6 +39056,11 @@
|
|
|
38029
39056
|
message.certificates = [];
|
|
38030
39057
|
message.certificates.push($root.api.TLSCertificate.decode(reader, reader.uint32()));
|
|
38031
39058
|
break;
|
|
39059
|
+
case 6:
|
|
39060
|
+
if (!(message.flags && message.flags.length))
|
|
39061
|
+
message.flags = [];
|
|
39062
|
+
message.flags.push(reader.string());
|
|
39063
|
+
break;
|
|
38032
39064
|
default:
|
|
38033
39065
|
reader.skipType(tag & 7);
|
|
38034
39066
|
break;
|
|
@@ -38095,6 +39127,13 @@
|
|
|
38095
39127
|
return "certificates." + error;
|
|
38096
39128
|
}
|
|
38097
39129
|
}
|
|
39130
|
+
if (message.flags != null && message.hasOwnProperty("flags")) {
|
|
39131
|
+
if (!Array.isArray(message.flags))
|
|
39132
|
+
return "flags: array expected";
|
|
39133
|
+
for (var i = 0; i < message.flags.length; ++i)
|
|
39134
|
+
if (!$util.isString(message.flags[i]))
|
|
39135
|
+
return "flags: string[] expected";
|
|
39136
|
+
}
|
|
38098
39137
|
return null;
|
|
38099
39138
|
};
|
|
38100
39139
|
|
|
@@ -38142,6 +39181,13 @@
|
|
|
38142
39181
|
message.certificates[i] = $root.api.TLSCertificate.fromObject(object.certificates[i]);
|
|
38143
39182
|
}
|
|
38144
39183
|
}
|
|
39184
|
+
if (object.flags) {
|
|
39185
|
+
if (!Array.isArray(object.flags))
|
|
39186
|
+
throw TypeError(".api.ReplTransfer.flags: array expected");
|
|
39187
|
+
message.flags = [];
|
|
39188
|
+
for (var i = 0; i < object.flags.length; ++i)
|
|
39189
|
+
message.flags[i] = String(object.flags[i]);
|
|
39190
|
+
}
|
|
38145
39191
|
return message;
|
|
38146
39192
|
};
|
|
38147
39193
|
|
|
@@ -38161,6 +39207,7 @@
|
|
|
38161
39207
|
if (options.arrays || options.defaults) {
|
|
38162
39208
|
object.customDomains = [];
|
|
38163
39209
|
object.certificates = [];
|
|
39210
|
+
object.flags = [];
|
|
38164
39211
|
}
|
|
38165
39212
|
if (options.defaults) {
|
|
38166
39213
|
object.repl = null;
|
|
@@ -38183,6 +39230,11 @@
|
|
|
38183
39230
|
for (var j = 0; j < message.certificates.length; ++j)
|
|
38184
39231
|
object.certificates[j] = $root.api.TLSCertificate.toObject(message.certificates[j], options);
|
|
38185
39232
|
}
|
|
39233
|
+
if (message.flags && message.flags.length) {
|
|
39234
|
+
object.flags = [];
|
|
39235
|
+
for (var j = 0; j < message.flags.length; ++j)
|
|
39236
|
+
object.flags[j] = message.flags[j];
|
|
39237
|
+
}
|
|
38186
39238
|
return object;
|
|
38187
39239
|
};
|
|
38188
39240
|
|
|
@@ -39160,6 +40212,7 @@
|
|
|
39160
40212
|
* @property {string|null} [keyId] GovalSigningAuthority keyId
|
|
39161
40213
|
* @property {string|null} [signedCert] GovalSigningAuthority signedCert
|
|
39162
40214
|
* @property {api.TokenVersion|null} [version] GovalSigningAuthority version
|
|
40215
|
+
* @property {string|null} [issuer] GovalSigningAuthority issuer
|
|
39163
40216
|
*/
|
|
39164
40217
|
|
|
39165
40218
|
/**
|
|
@@ -39200,6 +40253,14 @@
|
|
|
39200
40253
|
*/
|
|
39201
40254
|
GovalSigningAuthority.prototype.version = 0;
|
|
39202
40255
|
|
|
40256
|
+
/**
|
|
40257
|
+
* GovalSigningAuthority issuer.
|
|
40258
|
+
* @member {string} issuer
|
|
40259
|
+
* @memberof api.GovalSigningAuthority
|
|
40260
|
+
* @instance
|
|
40261
|
+
*/
|
|
40262
|
+
GovalSigningAuthority.prototype.issuer = "";
|
|
40263
|
+
|
|
39203
40264
|
// OneOf field names bound to virtual getters and setters
|
|
39204
40265
|
var $oneOfFields;
|
|
39205
40266
|
|
|
@@ -39244,6 +40305,8 @@
|
|
|
39244
40305
|
writer.uint32(/* id 2, wireType 2 =*/18).string(message.signedCert);
|
|
39245
40306
|
if (message.version != null && Object.hasOwnProperty.call(message, "version"))
|
|
39246
40307
|
writer.uint32(/* id 3, wireType 0 =*/24).int32(message.version);
|
|
40308
|
+
if (message.issuer != null && Object.hasOwnProperty.call(message, "issuer"))
|
|
40309
|
+
writer.uint32(/* id 4, wireType 2 =*/34).string(message.issuer);
|
|
39247
40310
|
return writer;
|
|
39248
40311
|
};
|
|
39249
40312
|
|
|
@@ -39287,6 +40350,9 @@
|
|
|
39287
40350
|
case 3:
|
|
39288
40351
|
message.version = reader.int32();
|
|
39289
40352
|
break;
|
|
40353
|
+
case 4:
|
|
40354
|
+
message.issuer = reader.string();
|
|
40355
|
+
break;
|
|
39290
40356
|
default:
|
|
39291
40357
|
reader.skipType(tag & 7);
|
|
39292
40358
|
break;
|
|
@@ -39343,6 +40409,9 @@
|
|
|
39343
40409
|
case 1:
|
|
39344
40410
|
break;
|
|
39345
40411
|
}
|
|
40412
|
+
if (message.issuer != null && message.hasOwnProperty("issuer"))
|
|
40413
|
+
if (!$util.isString(message.issuer))
|
|
40414
|
+
return "issuer: string expected";
|
|
39346
40415
|
return null;
|
|
39347
40416
|
};
|
|
39348
40417
|
|
|
@@ -39372,6 +40441,8 @@
|
|
|
39372
40441
|
message.version = 1;
|
|
39373
40442
|
break;
|
|
39374
40443
|
}
|
|
40444
|
+
if (object.issuer != null)
|
|
40445
|
+
message.issuer = String(object.issuer);
|
|
39375
40446
|
return message;
|
|
39376
40447
|
};
|
|
39377
40448
|
|
|
@@ -39388,8 +40459,10 @@
|
|
|
39388
40459
|
if (!options)
|
|
39389
40460
|
options = {};
|
|
39390
40461
|
var object = {};
|
|
39391
|
-
if (options.defaults)
|
|
40462
|
+
if (options.defaults) {
|
|
39392
40463
|
object.version = options.enums === String ? "BARE_REPL_TOKEN" : 0;
|
|
40464
|
+
object.issuer = "";
|
|
40465
|
+
}
|
|
39393
40466
|
if (message.keyId != null && message.hasOwnProperty("keyId")) {
|
|
39394
40467
|
object.keyId = message.keyId;
|
|
39395
40468
|
if (options.oneofs)
|
|
@@ -39402,6 +40475,8 @@
|
|
|
39402
40475
|
}
|
|
39403
40476
|
if (message.version != null && message.hasOwnProperty("version"))
|
|
39404
40477
|
object.version = options.enums === String ? $root.api.TokenVersion[message.version] : message.version;
|
|
40478
|
+
if (message.issuer != null && message.hasOwnProperty("issuer"))
|
|
40479
|
+
object.issuer = message.issuer;
|
|
39405
40480
|
return object;
|
|
39406
40481
|
};
|
|
39407
40482
|
|