@replit/protocol 0.2.55 → 0.2.56
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/main/index.d.ts +144 -42
- package/main/index.js +365 -106
- package/main/index.js.flow +187 -41
- package/package.json +1 -1
package/main/index.js
CHANGED
|
@@ -135,6 +135,7 @@
|
|
|
135
135
|
* @property {api.PackageAdd|api.IPackageAdd|null} [packageAdd] Command packageAdd
|
|
136
136
|
* @property {api.PackageRemove|api.IPackageRemove|null} [packageRemove] Command packageRemove
|
|
137
137
|
* @property {api.PackageInstall|api.IPackageInstall|null} [packageInstall] Command packageInstall
|
|
138
|
+
* @property {api.PackageInstallResponse|api.IPackageInstallResponse|null} [packageInstallResponse] Command packageInstallResponse
|
|
138
139
|
* @property {api.PackageListSpecfile|api.IPackageListSpecfile|null} [packageListSpecfile] Command packageListSpecfile
|
|
139
140
|
* @property {api.PackageListSpecfileResp|api.IPackageListSpecfileResp|null} [packageListSpecfileResp] Command packageListSpecfileResp
|
|
140
141
|
* @property {api.PackageCacheSave|api.IPackageCacheSave|null} [packageCacheSave] Command packageCacheSave
|
|
@@ -1033,6 +1034,14 @@
|
|
|
1033
1034
|
*/
|
|
1034
1035
|
Command.prototype.packageInstall = null;
|
|
1035
1036
|
|
|
1037
|
+
/**
|
|
1038
|
+
* Command packageInstallResponse.
|
|
1039
|
+
* @member {api.PackageInstallResponse|null|undefined} packageInstallResponse
|
|
1040
|
+
* @memberof api.Command
|
|
1041
|
+
* @instance
|
|
1042
|
+
*/
|
|
1043
|
+
Command.prototype.packageInstallResponse = null;
|
|
1044
|
+
|
|
1036
1045
|
/**
|
|
1037
1046
|
* Command packageListSpecfile.
|
|
1038
1047
|
* @member {api.PackageListSpecfile|null|undefined} packageListSpecfile
|
|
@@ -1430,12 +1439,12 @@
|
|
|
1430
1439
|
|
|
1431
1440
|
/**
|
|
1432
1441
|
* Command body.
|
|
1433
|
-
* @member {"openChan"|"openChanRes"|"closeChan"|"closeChanRes"|"containerState"|"portOpen"|"portClose"|"toast"|"protocolError"|"redirect"|"alwaysOn"|"runMain"|"clear"|"eval"|"result"|"input"|"output"|"error"|"stderr"|"log"|"saneTerm"|"resizeTerm"|"state"|"ok"|"persist"|"persistMirror"|"write"|"remove"|"move"|"tryRemove"|"mkdir"|"stat"|"statRes"|"transferStart"|"transferChunk"|"transferComplete"|"transferCancel"|"transfer"|"read"|"readdir"|"files"|"file"|"checkChanges"|"changedFiles"|"lintResults"|"runContainedTest"|"testResult"|"debuggerStart"|"debuggerStep"|"debuggerStatus"|"ensurePackages"|"ping"|"pong"|"hello"|"goodbye"|"proxyGoingAway"|"hint"|"connect"|"send"|"recv"|"disconnect"|"fileAuthReq"|"fileAuthRes"|"mutliFileAuthRes"|"listObjects"|"listObjectsResp"|"ot"|"otstatus"|"otLinkFile"|"otLinkFileResponse"|"otNewCursor"|"otDeleteCursor"|"otFetchRequest"|"otFetchResponse"|"otTransformSelectionRequest"|"otTransformSelectionResponse"|"flush"|"debug"|"startVCR"|"readVCR"|"VCRLog"|"auth"|"execInfo"|"subscribeFile"|"fileEvent"|"roster"|"join"|"part"|"openFile"|"fileOpened"|"followUser"|"unfollowUser"|"updateSessionTimestamp"|"sessionTimestampUpdated"|"exec"|"packageSearch"|"packageSearchResp"|"packageInfo"|"packageInfoResp"|"packageAdd"|"packageRemove"|"packageInstall"|"packageListSpecfile"|"packageListSpecfileResp"|"packageCacheSave"|"chatMessage"|"chatTyping"|"chatScrollback"|"fsSnapshot"|"fsSnapshotEvent"|"fsTakeLock"|"fsReleaseLock"|"hasCap"|"snapshotEvent"|"NoninteractiveFSChangeEvent"|"pid1Config"|"metrics"|"bootStatus"|"readMetaRequest"|"readMetaResponse"|"writeMetaRequest"|"writeMetaResponse"|"appendMetaRequest"|"appendMetaResponse"|"audio"|"pprofRequest"|"pprofResponse"|"audio2"|"PTYConfig"|"debugMain"|"debugState"|"debugMainReply"|"debugInput"|"debugOutput"|"debugStop"|"debugLeave"|"debugSessions"|"debugAddBreakpointRequest"|"debugUpdateBreakpointRequest"|"debugRemoveBreakpointRequest"|"debugBreakpointEvent"|"dotReplitGetRequest"|"dotReplitGetResponse"|"runConfigGetRequest"|"runConfigGetResponse"|"dotReplitUpdateRequest"|"dotReplitUpdateResponse"|"startLSP"|"firewallDenied"|undefined} body
|
|
1442
|
+
* @member {"openChan"|"openChanRes"|"closeChan"|"closeChanRes"|"containerState"|"portOpen"|"portClose"|"toast"|"protocolError"|"redirect"|"alwaysOn"|"runMain"|"clear"|"eval"|"result"|"input"|"output"|"error"|"stderr"|"log"|"saneTerm"|"resizeTerm"|"state"|"ok"|"persist"|"persistMirror"|"write"|"remove"|"move"|"tryRemove"|"mkdir"|"stat"|"statRes"|"transferStart"|"transferChunk"|"transferComplete"|"transferCancel"|"transfer"|"read"|"readdir"|"files"|"file"|"checkChanges"|"changedFiles"|"lintResults"|"runContainedTest"|"testResult"|"debuggerStart"|"debuggerStep"|"debuggerStatus"|"ensurePackages"|"ping"|"pong"|"hello"|"goodbye"|"proxyGoingAway"|"hint"|"connect"|"send"|"recv"|"disconnect"|"fileAuthReq"|"fileAuthRes"|"mutliFileAuthRes"|"listObjects"|"listObjectsResp"|"ot"|"otstatus"|"otLinkFile"|"otLinkFileResponse"|"otNewCursor"|"otDeleteCursor"|"otFetchRequest"|"otFetchResponse"|"otTransformSelectionRequest"|"otTransformSelectionResponse"|"flush"|"debug"|"startVCR"|"readVCR"|"VCRLog"|"auth"|"execInfo"|"subscribeFile"|"fileEvent"|"roster"|"join"|"part"|"openFile"|"fileOpened"|"followUser"|"unfollowUser"|"updateSessionTimestamp"|"sessionTimestampUpdated"|"exec"|"packageSearch"|"packageSearchResp"|"packageInfo"|"packageInfoResp"|"packageAdd"|"packageRemove"|"packageInstall"|"packageInstallResponse"|"packageListSpecfile"|"packageListSpecfileResp"|"packageCacheSave"|"chatMessage"|"chatTyping"|"chatScrollback"|"fsSnapshot"|"fsSnapshotEvent"|"fsTakeLock"|"fsReleaseLock"|"hasCap"|"snapshotEvent"|"NoninteractiveFSChangeEvent"|"pid1Config"|"metrics"|"bootStatus"|"readMetaRequest"|"readMetaResponse"|"writeMetaRequest"|"writeMetaResponse"|"appendMetaRequest"|"appendMetaResponse"|"audio"|"pprofRequest"|"pprofResponse"|"audio2"|"PTYConfig"|"debugMain"|"debugState"|"debugMainReply"|"debugInput"|"debugOutput"|"debugStop"|"debugLeave"|"debugSessions"|"debugAddBreakpointRequest"|"debugUpdateBreakpointRequest"|"debugRemoveBreakpointRequest"|"debugBreakpointEvent"|"dotReplitGetRequest"|"dotReplitGetResponse"|"runConfigGetRequest"|"runConfigGetResponse"|"dotReplitUpdateRequest"|"dotReplitUpdateResponse"|"startLSP"|"firewallDenied"|undefined} body
|
|
1434
1443
|
* @memberof api.Command
|
|
1435
1444
|
* @instance
|
|
1436
1445
|
*/
|
|
1437
1446
|
Object.defineProperty(Command.prototype, "body", {
|
|
1438
|
-
get: $util.oneOfGetter($oneOfFields = ["openChan", "openChanRes", "closeChan", "closeChanRes", "containerState", "portOpen", "portClose", "toast", "protocolError", "redirect", "alwaysOn", "runMain", "clear", "eval", "result", "input", "output", "error", "stderr", "log", "saneTerm", "resizeTerm", "state", "ok", "persist", "persistMirror", "write", "remove", "move", "tryRemove", "mkdir", "stat", "statRes", "transferStart", "transferChunk", "transferComplete", "transferCancel", "transfer", "read", "readdir", "files", "file", "checkChanges", "changedFiles", "lintResults", "runContainedTest", "testResult", "debuggerStart", "debuggerStep", "debuggerStatus", "ensurePackages", "ping", "pong", "hello", "goodbye", "proxyGoingAway", "hint", "connect", "send", "recv", "disconnect", "fileAuthReq", "fileAuthRes", "mutliFileAuthRes", "listObjects", "listObjectsResp", "ot", "otstatus", "otLinkFile", "otLinkFileResponse", "otNewCursor", "otDeleteCursor", "otFetchRequest", "otFetchResponse", "otTransformSelectionRequest", "otTransformSelectionResponse", "flush", "debug", "startVCR", "readVCR", "VCRLog", "auth", "execInfo", "subscribeFile", "fileEvent", "roster", "join", "part", "openFile", "fileOpened", "followUser", "unfollowUser", "updateSessionTimestamp", "sessionTimestampUpdated", "exec", "packageSearch", "packageSearchResp", "packageInfo", "packageInfoResp", "packageAdd", "packageRemove", "packageInstall", "packageListSpecfile", "packageListSpecfileResp", "packageCacheSave", "chatMessage", "chatTyping", "chatScrollback", "fsSnapshot", "fsSnapshotEvent", "fsTakeLock", "fsReleaseLock", "hasCap", "snapshotEvent", "NoninteractiveFSChangeEvent", "pid1Config", "metrics", "bootStatus", "readMetaRequest", "readMetaResponse", "writeMetaRequest", "writeMetaResponse", "appendMetaRequest", "appendMetaResponse", "audio", "pprofRequest", "pprofResponse", "audio2", "PTYConfig", "debugMain", "debugState", "debugMainReply", "debugInput", "debugOutput", "debugStop", "debugLeave", "debugSessions", "debugAddBreakpointRequest", "debugUpdateBreakpointRequest", "debugRemoveBreakpointRequest", "debugBreakpointEvent", "dotReplitGetRequest", "dotReplitGetResponse", "runConfigGetRequest", "runConfigGetResponse", "dotReplitUpdateRequest", "dotReplitUpdateResponse", "startLSP", "firewallDenied"]),
|
|
1447
|
+
get: $util.oneOfGetter($oneOfFields = ["openChan", "openChanRes", "closeChan", "closeChanRes", "containerState", "portOpen", "portClose", "toast", "protocolError", "redirect", "alwaysOn", "runMain", "clear", "eval", "result", "input", "output", "error", "stderr", "log", "saneTerm", "resizeTerm", "state", "ok", "persist", "persistMirror", "write", "remove", "move", "tryRemove", "mkdir", "stat", "statRes", "transferStart", "transferChunk", "transferComplete", "transferCancel", "transfer", "read", "readdir", "files", "file", "checkChanges", "changedFiles", "lintResults", "runContainedTest", "testResult", "debuggerStart", "debuggerStep", "debuggerStatus", "ensurePackages", "ping", "pong", "hello", "goodbye", "proxyGoingAway", "hint", "connect", "send", "recv", "disconnect", "fileAuthReq", "fileAuthRes", "mutliFileAuthRes", "listObjects", "listObjectsResp", "ot", "otstatus", "otLinkFile", "otLinkFileResponse", "otNewCursor", "otDeleteCursor", "otFetchRequest", "otFetchResponse", "otTransformSelectionRequest", "otTransformSelectionResponse", "flush", "debug", "startVCR", "readVCR", "VCRLog", "auth", "execInfo", "subscribeFile", "fileEvent", "roster", "join", "part", "openFile", "fileOpened", "followUser", "unfollowUser", "updateSessionTimestamp", "sessionTimestampUpdated", "exec", "packageSearch", "packageSearchResp", "packageInfo", "packageInfoResp", "packageAdd", "packageRemove", "packageInstall", "packageInstallResponse", "packageListSpecfile", "packageListSpecfileResp", "packageCacheSave", "chatMessage", "chatTyping", "chatScrollback", "fsSnapshot", "fsSnapshotEvent", "fsTakeLock", "fsReleaseLock", "hasCap", "snapshotEvent", "NoninteractiveFSChangeEvent", "pid1Config", "metrics", "bootStatus", "readMetaRequest", "readMetaResponse", "writeMetaRequest", "writeMetaResponse", "appendMetaRequest", "appendMetaResponse", "audio", "pprofRequest", "pprofResponse", "audio2", "PTYConfig", "debugMain", "debugState", "debugMainReply", "debugInput", "debugOutput", "debugStop", "debugLeave", "debugSessions", "debugAddBreakpointRequest", "debugUpdateBreakpointRequest", "debugRemoveBreakpointRequest", "debugBreakpointEvent", "dotReplitGetRequest", "dotReplitGetResponse", "runConfigGetRequest", "runConfigGetResponse", "dotReplitUpdateRequest", "dotReplitUpdateResponse", "startLSP", "firewallDenied"]),
|
|
1439
1448
|
set: $util.oneOfSetter($oneOfFields)
|
|
1440
1449
|
});
|
|
1441
1450
|
|
|
@@ -1663,6 +1672,8 @@
|
|
|
1663
1672
|
$root.api.PackageListSpecfileResp.encode(message.packageListSpecfileResp, writer.uint32(/* id 288, wireType 2 =*/2306).fork()).ldelim();
|
|
1664
1673
|
if (message.packageCacheSave != null && Object.hasOwnProperty.call(message, "packageCacheSave"))
|
|
1665
1674
|
$root.api.PackageCacheSave.encode(message.packageCacheSave, writer.uint32(/* id 289, wireType 2 =*/2314).fork()).ldelim();
|
|
1675
|
+
if (message.packageInstallResponse != null && Object.hasOwnProperty.call(message, "packageInstallResponse"))
|
|
1676
|
+
$root.api.PackageInstallResponse.encode(message.packageInstallResponse, writer.uint32(/* id 290, wireType 2 =*/2322).fork()).ldelim();
|
|
1666
1677
|
if (message.chatMessage != null && Object.hasOwnProperty.call(message, "chatMessage"))
|
|
1667
1678
|
$root.api.ChatMessage.encode(message.chatMessage, writer.uint32(/* id 310, wireType 2 =*/2482).fork()).ldelim();
|
|
1668
1679
|
if (message.chatTyping != null && Object.hasOwnProperty.call(message, "chatTyping"))
|
|
@@ -2116,6 +2127,9 @@
|
|
|
2116
2127
|
case 286:
|
|
2117
2128
|
message.packageInstall = $root.api.PackageInstall.decode(reader, reader.uint32());
|
|
2118
2129
|
break;
|
|
2130
|
+
case 290:
|
|
2131
|
+
message.packageInstallResponse = $root.api.PackageInstallResponse.decode(reader, reader.uint32());
|
|
2132
|
+
break;
|
|
2119
2133
|
case 287:
|
|
2120
2134
|
message.packageListSpecfile = $root.api.PackageListSpecfile.decode(reader, reader.uint32());
|
|
2121
2135
|
break;
|
|
@@ -3320,6 +3334,16 @@
|
|
|
3320
3334
|
return "packageInstall." + error;
|
|
3321
3335
|
}
|
|
3322
3336
|
}
|
|
3337
|
+
if (message.packageInstallResponse != null && message.hasOwnProperty("packageInstallResponse")) {
|
|
3338
|
+
if (properties.body === 1)
|
|
3339
|
+
return "body: multiple values";
|
|
3340
|
+
properties.body = 1;
|
|
3341
|
+
{
|
|
3342
|
+
var error = $root.api.PackageInstallResponse.verify(message.packageInstallResponse);
|
|
3343
|
+
if (error)
|
|
3344
|
+
return "packageInstallResponse." + error;
|
|
3345
|
+
}
|
|
3346
|
+
}
|
|
3323
3347
|
if (message.packageListSpecfile != null && message.hasOwnProperty("packageListSpecfile")) {
|
|
3324
3348
|
if (properties.body === 1)
|
|
3325
3349
|
return "body: multiple values";
|
|
@@ -4305,6 +4329,11 @@
|
|
|
4305
4329
|
throw TypeError(".api.Command.packageInstall: object expected");
|
|
4306
4330
|
message.packageInstall = $root.api.PackageInstall.fromObject(object.packageInstall);
|
|
4307
4331
|
}
|
|
4332
|
+
if (object.packageInstallResponse != null) {
|
|
4333
|
+
if (typeof object.packageInstallResponse !== "object")
|
|
4334
|
+
throw TypeError(".api.Command.packageInstallResponse: object expected");
|
|
4335
|
+
message.packageInstallResponse = $root.api.PackageInstallResponse.fromObject(object.packageInstallResponse);
|
|
4336
|
+
}
|
|
4308
4337
|
if (object.packageListSpecfile != null) {
|
|
4309
4338
|
if (typeof object.packageListSpecfile !== "object")
|
|
4310
4339
|
throw TypeError(".api.Command.packageListSpecfile: object expected");
|
|
@@ -5060,6 +5089,11 @@
|
|
|
5060
5089
|
if (options.oneofs)
|
|
5061
5090
|
object.body = "packageCacheSave";
|
|
5062
5091
|
}
|
|
5092
|
+
if (message.packageInstallResponse != null && message.hasOwnProperty("packageInstallResponse")) {
|
|
5093
|
+
object.packageInstallResponse = $root.api.PackageInstallResponse.toObject(message.packageInstallResponse, options);
|
|
5094
|
+
if (options.oneofs)
|
|
5095
|
+
object.body = "packageInstallResponse";
|
|
5096
|
+
}
|
|
5063
5097
|
if (message.chatMessage != null && message.hasOwnProperty("chatMessage")) {
|
|
5064
5098
|
object.chatMessage = $root.api.ChatMessage.toObject(message.chatMessage, options);
|
|
5065
5099
|
if (options.oneofs)
|
|
@@ -22873,7 +22907,7 @@
|
|
|
22873
22907
|
* @interface IOTPacket
|
|
22874
22908
|
* @property {number|null} [spookyVersion] OTPacket spookyVersion
|
|
22875
22909
|
* @property {number|null} [version] OTPacket version
|
|
22876
|
-
* @property {Array.<api.
|
|
22910
|
+
* @property {Array.<api.OTOpComponent|api.IOTOpComponent>|null} [op] OTPacket op
|
|
22877
22911
|
* @property {number|null} [crc32] OTPacket crc32
|
|
22878
22912
|
* @property {google.protobuf.Timestamp|google.protobuf.ITimestamp|null} [committed] OTPacket committed
|
|
22879
22913
|
* @property {number|null} [nonce] OTPacket nonce
|
|
@@ -22888,7 +22922,7 @@
|
|
|
22888
22922
|
* @param {api.IOTPacket=} [properties] Properties to set
|
|
22889
22923
|
*/
|
|
22890
22924
|
function OTPacket(properties) {
|
|
22891
|
-
this.
|
|
22925
|
+
this.op = [];
|
|
22892
22926
|
if (properties)
|
|
22893
22927
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
22894
22928
|
if (properties[keys[i]] != null)
|
|
@@ -22912,12 +22946,12 @@
|
|
|
22912
22946
|
OTPacket.prototype.version = 0;
|
|
22913
22947
|
|
|
22914
22948
|
/**
|
|
22915
|
-
* OTPacket
|
|
22916
|
-
* @member {Array.<api.
|
|
22949
|
+
* OTPacket op.
|
|
22950
|
+
* @member {Array.<api.OTOpComponent>} op
|
|
22917
22951
|
* @memberof api.OTPacket
|
|
22918
22952
|
* @instance
|
|
22919
22953
|
*/
|
|
22920
|
-
OTPacket.prototype.
|
|
22954
|
+
OTPacket.prototype.op = $util.emptyArray;
|
|
22921
22955
|
|
|
22922
22956
|
/**
|
|
22923
22957
|
* OTPacket crc32.
|
|
@@ -22977,9 +23011,9 @@
|
|
|
22977
23011
|
writer = $Writer.create();
|
|
22978
23012
|
if (message.spookyVersion != null && Object.hasOwnProperty.call(message, "spookyVersion"))
|
|
22979
23013
|
writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.spookyVersion);
|
|
22980
|
-
if (message.
|
|
22981
|
-
for (var i = 0; i < message.
|
|
22982
|
-
$root.api.
|
|
23014
|
+
if (message.op != null && message.op.length)
|
|
23015
|
+
for (var i = 0; i < message.op.length; ++i)
|
|
23016
|
+
$root.api.OTOpComponent.encode(message.op[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
22983
23017
|
if (message.crc32 != null && Object.hasOwnProperty.call(message, "crc32"))
|
|
22984
23018
|
writer.uint32(/* id 3, wireType 0 =*/24).uint32(message.crc32);
|
|
22985
23019
|
if (message.committed != null && Object.hasOwnProperty.call(message, "committed"))
|
|
@@ -23031,9 +23065,9 @@
|
|
|
23031
23065
|
message.version = reader.uint32();
|
|
23032
23066
|
break;
|
|
23033
23067
|
case 2:
|
|
23034
|
-
if (!(message.
|
|
23035
|
-
message.
|
|
23036
|
-
message.
|
|
23068
|
+
if (!(message.op && message.op.length))
|
|
23069
|
+
message.op = [];
|
|
23070
|
+
message.op.push($root.api.OTOpComponent.decode(reader, reader.uint32()));
|
|
23037
23071
|
break;
|
|
23038
23072
|
case 3:
|
|
23039
23073
|
message.crc32 = reader.uint32();
|
|
@@ -23088,13 +23122,13 @@
|
|
|
23088
23122
|
if (message.version != null && message.hasOwnProperty("version"))
|
|
23089
23123
|
if (!$util.isInteger(message.version))
|
|
23090
23124
|
return "version: integer expected";
|
|
23091
|
-
if (message.
|
|
23092
|
-
if (!Array.isArray(message.
|
|
23093
|
-
return "
|
|
23094
|
-
for (var i = 0; i < message.
|
|
23095
|
-
var error = $root.api.
|
|
23125
|
+
if (message.op != null && message.hasOwnProperty("op")) {
|
|
23126
|
+
if (!Array.isArray(message.op))
|
|
23127
|
+
return "op: array expected";
|
|
23128
|
+
for (var i = 0; i < message.op.length; ++i) {
|
|
23129
|
+
var error = $root.api.OTOpComponent.verify(message.op[i]);
|
|
23096
23130
|
if (error)
|
|
23097
|
-
return "
|
|
23131
|
+
return "op." + error;
|
|
23098
23132
|
}
|
|
23099
23133
|
}
|
|
23100
23134
|
if (message.crc32 != null && message.hasOwnProperty("crc32"))
|
|
@@ -23130,14 +23164,14 @@
|
|
|
23130
23164
|
message.spookyVersion = object.spookyVersion >>> 0;
|
|
23131
23165
|
if (object.version != null)
|
|
23132
23166
|
message.version = object.version >>> 0;
|
|
23133
|
-
if (object.
|
|
23134
|
-
if (!Array.isArray(object.
|
|
23135
|
-
throw TypeError(".api.OTPacket.
|
|
23136
|
-
message.
|
|
23137
|
-
for (var i = 0; i < object.
|
|
23138
|
-
if (typeof object.
|
|
23139
|
-
throw TypeError(".api.OTPacket.
|
|
23140
|
-
message.
|
|
23167
|
+
if (object.op) {
|
|
23168
|
+
if (!Array.isArray(object.op))
|
|
23169
|
+
throw TypeError(".api.OTPacket.op: array expected");
|
|
23170
|
+
message.op = [];
|
|
23171
|
+
for (var i = 0; i < object.op.length; ++i) {
|
|
23172
|
+
if (typeof object.op[i] !== "object")
|
|
23173
|
+
throw TypeError(".api.OTPacket.op: object expected");
|
|
23174
|
+
message.op[i] = $root.api.OTOpComponent.fromObject(object.op[i]);
|
|
23141
23175
|
}
|
|
23142
23176
|
}
|
|
23143
23177
|
if (object.crc32 != null)
|
|
@@ -23168,7 +23202,7 @@
|
|
|
23168
23202
|
options = {};
|
|
23169
23203
|
var object = {};
|
|
23170
23204
|
if (options.arrays || options.defaults)
|
|
23171
|
-
object.
|
|
23205
|
+
object.op = [];
|
|
23172
23206
|
if (options.defaults) {
|
|
23173
23207
|
object.spookyVersion = 0;
|
|
23174
23208
|
object.crc32 = 0;
|
|
@@ -23179,10 +23213,10 @@
|
|
|
23179
23213
|
}
|
|
23180
23214
|
if (message.spookyVersion != null && message.hasOwnProperty("spookyVersion"))
|
|
23181
23215
|
object.spookyVersion = message.spookyVersion;
|
|
23182
|
-
if (message.
|
|
23183
|
-
object.
|
|
23184
|
-
for (var j = 0; j < message.
|
|
23185
|
-
object.
|
|
23216
|
+
if (message.op && message.op.length) {
|
|
23217
|
+
object.op = [];
|
|
23218
|
+
for (var j = 0; j < message.op.length; ++j)
|
|
23219
|
+
object.op[j] = $root.api.OTOpComponent.toObject(message.op[j], options);
|
|
23186
23220
|
}
|
|
23187
23221
|
if (message.crc32 != null && message.hasOwnProperty("crc32"))
|
|
23188
23222
|
object.crc32 = message.crc32;
|
|
@@ -23211,25 +23245,25 @@
|
|
|
23211
23245
|
return OTPacket;
|
|
23212
23246
|
})();
|
|
23213
23247
|
|
|
23214
|
-
api.
|
|
23248
|
+
api.OTOpComponent = (function() {
|
|
23215
23249
|
|
|
23216
23250
|
/**
|
|
23217
|
-
* Properties of a
|
|
23251
|
+
* Properties of a OTOpComponent.
|
|
23218
23252
|
* @memberof api
|
|
23219
|
-
* @interface
|
|
23220
|
-
* @property {number|null} [skip]
|
|
23221
|
-
* @property {number|null} ["delete"]
|
|
23222
|
-
* @property {string|null} [insert]
|
|
23253
|
+
* @interface IOTOpComponent
|
|
23254
|
+
* @property {number|null} [skip] OTOpComponent skip
|
|
23255
|
+
* @property {number|null} ["delete"] OTOpComponent delete
|
|
23256
|
+
* @property {string|null} [insert] OTOpComponent insert
|
|
23223
23257
|
*/
|
|
23224
23258
|
|
|
23225
23259
|
/**
|
|
23226
|
-
* Constructs a new
|
|
23260
|
+
* Constructs a new OTOpComponent.
|
|
23227
23261
|
* @memberof api
|
|
23228
|
-
* @classdesc Represents a
|
|
23262
|
+
* @classdesc Represents a OTOpComponent.
|
|
23229
23263
|
* @constructor
|
|
23230
|
-
* @param {api.
|
|
23264
|
+
* @param {api.IOTOpComponent=} [properties] Properties to set
|
|
23231
23265
|
*/
|
|
23232
|
-
function
|
|
23266
|
+
function OTOpComponent(properties) {
|
|
23233
23267
|
if (properties)
|
|
23234
23268
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
23235
23269
|
if (properties[keys[i]] != null)
|
|
@@ -23237,65 +23271,65 @@
|
|
|
23237
23271
|
}
|
|
23238
23272
|
|
|
23239
23273
|
/**
|
|
23240
|
-
*
|
|
23274
|
+
* OTOpComponent skip.
|
|
23241
23275
|
* @member {number|null|undefined} skip
|
|
23242
|
-
* @memberof api.
|
|
23276
|
+
* @memberof api.OTOpComponent
|
|
23243
23277
|
* @instance
|
|
23244
23278
|
*/
|
|
23245
|
-
|
|
23279
|
+
OTOpComponent.prototype.skip = null;
|
|
23246
23280
|
|
|
23247
23281
|
/**
|
|
23248
|
-
*
|
|
23282
|
+
* OTOpComponent delete.
|
|
23249
23283
|
* @member {number|null|undefined} delete
|
|
23250
|
-
* @memberof api.
|
|
23284
|
+
* @memberof api.OTOpComponent
|
|
23251
23285
|
* @instance
|
|
23252
23286
|
*/
|
|
23253
|
-
|
|
23287
|
+
OTOpComponent.prototype["delete"] = null;
|
|
23254
23288
|
|
|
23255
23289
|
/**
|
|
23256
|
-
*
|
|
23290
|
+
* OTOpComponent insert.
|
|
23257
23291
|
* @member {string|null|undefined} insert
|
|
23258
|
-
* @memberof api.
|
|
23292
|
+
* @memberof api.OTOpComponent
|
|
23259
23293
|
* @instance
|
|
23260
23294
|
*/
|
|
23261
|
-
|
|
23295
|
+
OTOpComponent.prototype.insert = null;
|
|
23262
23296
|
|
|
23263
23297
|
// OneOf field names bound to virtual getters and setters
|
|
23264
23298
|
var $oneOfFields;
|
|
23265
23299
|
|
|
23266
23300
|
/**
|
|
23267
|
-
*
|
|
23268
|
-
* @member {"skip"|"delete"|"insert"|undefined}
|
|
23269
|
-
* @memberof api.
|
|
23301
|
+
* OTOpComponent opComponent.
|
|
23302
|
+
* @member {"skip"|"delete"|"insert"|undefined} opComponent
|
|
23303
|
+
* @memberof api.OTOpComponent
|
|
23270
23304
|
* @instance
|
|
23271
23305
|
*/
|
|
23272
|
-
Object.defineProperty(
|
|
23306
|
+
Object.defineProperty(OTOpComponent.prototype, "opComponent", {
|
|
23273
23307
|
get: $util.oneOfGetter($oneOfFields = ["skip", "delete", "insert"]),
|
|
23274
23308
|
set: $util.oneOfSetter($oneOfFields)
|
|
23275
23309
|
});
|
|
23276
23310
|
|
|
23277
23311
|
/**
|
|
23278
|
-
* Creates a new
|
|
23312
|
+
* Creates a new OTOpComponent instance using the specified properties.
|
|
23279
23313
|
* @function create
|
|
23280
|
-
* @memberof api.
|
|
23314
|
+
* @memberof api.OTOpComponent
|
|
23281
23315
|
* @static
|
|
23282
|
-
* @param {api.
|
|
23283
|
-
* @returns {api.
|
|
23316
|
+
* @param {api.IOTOpComponent=} [properties] Properties to set
|
|
23317
|
+
* @returns {api.OTOpComponent} OTOpComponent instance
|
|
23284
23318
|
*/
|
|
23285
|
-
|
|
23286
|
-
return
|
|
23319
|
+
OTOpComponent.create = function create(properties) {
|
|
23320
|
+
return OTOpComponent.fromObject(properties);
|
|
23287
23321
|
};
|
|
23288
23322
|
|
|
23289
23323
|
/**
|
|
23290
|
-
* Encodes the specified
|
|
23324
|
+
* Encodes the specified OTOpComponent message. Does not implicitly {@link api.OTOpComponent.verify|verify} messages.
|
|
23291
23325
|
* @function encode
|
|
23292
|
-
* @memberof api.
|
|
23326
|
+
* @memberof api.OTOpComponent
|
|
23293
23327
|
* @static
|
|
23294
|
-
* @param {api.
|
|
23328
|
+
* @param {api.OTOpComponent} message OTOpComponent message or plain object to encode
|
|
23295
23329
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
23296
23330
|
* @returns {$protobuf.Writer} Writer
|
|
23297
23331
|
*/
|
|
23298
|
-
|
|
23332
|
+
OTOpComponent.encode = function encode(message, writer) {
|
|
23299
23333
|
if (!writer)
|
|
23300
23334
|
writer = $Writer.create();
|
|
23301
23335
|
if (message.skip != null && Object.hasOwnProperty.call(message, "skip"))
|
|
@@ -23308,33 +23342,33 @@
|
|
|
23308
23342
|
};
|
|
23309
23343
|
|
|
23310
23344
|
/**
|
|
23311
|
-
* Encodes the specified
|
|
23345
|
+
* Encodes the specified OTOpComponent message, length delimited. Does not implicitly {@link api.OTOpComponent.verify|verify} messages.
|
|
23312
23346
|
* @function encodeDelimited
|
|
23313
|
-
* @memberof api.
|
|
23347
|
+
* @memberof api.OTOpComponent
|
|
23314
23348
|
* @static
|
|
23315
|
-
* @param {api.
|
|
23349
|
+
* @param {api.OTOpComponent} message OTOpComponent message or plain object to encode
|
|
23316
23350
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
23317
23351
|
* @returns {$protobuf.Writer} Writer
|
|
23318
23352
|
*/
|
|
23319
|
-
|
|
23353
|
+
OTOpComponent.encodeDelimited = function encodeDelimited(message, writer) {
|
|
23320
23354
|
return this.encode(message, writer).ldelim();
|
|
23321
23355
|
};
|
|
23322
23356
|
|
|
23323
23357
|
/**
|
|
23324
|
-
* Decodes a
|
|
23358
|
+
* Decodes a OTOpComponent message from the specified reader or buffer.
|
|
23325
23359
|
* @function decode
|
|
23326
|
-
* @memberof api.
|
|
23360
|
+
* @memberof api.OTOpComponent
|
|
23327
23361
|
* @static
|
|
23328
23362
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
23329
23363
|
* @param {number} [length] Message length if known beforehand
|
|
23330
|
-
* @returns {api.
|
|
23364
|
+
* @returns {api.OTOpComponent} OTOpComponent
|
|
23331
23365
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
23332
23366
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
23333
23367
|
*/
|
|
23334
|
-
|
|
23368
|
+
OTOpComponent.decode = function decode(reader, length) {
|
|
23335
23369
|
if (!(reader instanceof $Reader))
|
|
23336
23370
|
reader = $Reader.create(reader);
|
|
23337
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.api.
|
|
23371
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.api.OTOpComponent();
|
|
23338
23372
|
while (reader.pos < end) {
|
|
23339
23373
|
var tag = reader.uint32();
|
|
23340
23374
|
switch (tag >>> 3) {
|
|
@@ -23356,49 +23390,49 @@
|
|
|
23356
23390
|
};
|
|
23357
23391
|
|
|
23358
23392
|
/**
|
|
23359
|
-
* Decodes a
|
|
23393
|
+
* Decodes a OTOpComponent message from the specified reader or buffer, length delimited.
|
|
23360
23394
|
* @function decodeDelimited
|
|
23361
|
-
* @memberof api.
|
|
23395
|
+
* @memberof api.OTOpComponent
|
|
23362
23396
|
* @static
|
|
23363
23397
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
23364
|
-
* @returns {api.
|
|
23398
|
+
* @returns {api.OTOpComponent} OTOpComponent
|
|
23365
23399
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
23366
23400
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
23367
23401
|
*/
|
|
23368
|
-
|
|
23402
|
+
OTOpComponent.decodeDelimited = function decodeDelimited(reader) {
|
|
23369
23403
|
if (!(reader instanceof $Reader))
|
|
23370
23404
|
reader = new $Reader(reader);
|
|
23371
23405
|
return this.decode(reader, reader.uint32());
|
|
23372
23406
|
};
|
|
23373
23407
|
|
|
23374
23408
|
/**
|
|
23375
|
-
* Verifies a
|
|
23409
|
+
* Verifies a OTOpComponent message.
|
|
23376
23410
|
* @function verify
|
|
23377
|
-
* @memberof api.
|
|
23411
|
+
* @memberof api.OTOpComponent
|
|
23378
23412
|
* @static
|
|
23379
23413
|
* @param {Object.<string,*>} message Plain object to verify
|
|
23380
23414
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
23381
23415
|
*/
|
|
23382
|
-
|
|
23416
|
+
OTOpComponent.verify = function verify(message) {
|
|
23383
23417
|
if (typeof message !== "object" || message === null)
|
|
23384
23418
|
return "object expected";
|
|
23385
23419
|
var properties = {};
|
|
23386
23420
|
if (message.skip != null && message.hasOwnProperty("skip")) {
|
|
23387
|
-
properties.
|
|
23421
|
+
properties.opComponent = 1;
|
|
23388
23422
|
if (!$util.isInteger(message.skip))
|
|
23389
23423
|
return "skip: integer expected";
|
|
23390
23424
|
}
|
|
23391
23425
|
if (message["delete"] != null && message.hasOwnProperty("delete")) {
|
|
23392
|
-
if (properties.
|
|
23393
|
-
return "
|
|
23394
|
-
properties.
|
|
23426
|
+
if (properties.opComponent === 1)
|
|
23427
|
+
return "opComponent: multiple values";
|
|
23428
|
+
properties.opComponent = 1;
|
|
23395
23429
|
if (!$util.isInteger(message["delete"]))
|
|
23396
23430
|
return "delete: integer expected";
|
|
23397
23431
|
}
|
|
23398
23432
|
if (message.insert != null && message.hasOwnProperty("insert")) {
|
|
23399
|
-
if (properties.
|
|
23400
|
-
return "
|
|
23401
|
-
properties.
|
|
23433
|
+
if (properties.opComponent === 1)
|
|
23434
|
+
return "opComponent: multiple values";
|
|
23435
|
+
properties.opComponent = 1;
|
|
23402
23436
|
if (!$util.isString(message.insert))
|
|
23403
23437
|
return "insert: string expected";
|
|
23404
23438
|
}
|
|
@@ -23406,17 +23440,17 @@
|
|
|
23406
23440
|
};
|
|
23407
23441
|
|
|
23408
23442
|
/**
|
|
23409
|
-
* Creates a
|
|
23443
|
+
* Creates a OTOpComponent message from a plain object. Also converts values to their respective internal types.
|
|
23410
23444
|
* @function fromObject
|
|
23411
|
-
* @memberof api.
|
|
23445
|
+
* @memberof api.OTOpComponent
|
|
23412
23446
|
* @static
|
|
23413
23447
|
* @param {Object.<string,*>} object Plain object
|
|
23414
|
-
* @returns {api.
|
|
23448
|
+
* @returns {api.OTOpComponent} OTOpComponent
|
|
23415
23449
|
*/
|
|
23416
|
-
|
|
23417
|
-
if (object instanceof $root.api.
|
|
23450
|
+
OTOpComponent.fromObject = function fromObject(object) {
|
|
23451
|
+
if (object instanceof $root.api.OTOpComponent)
|
|
23418
23452
|
return object;
|
|
23419
|
-
var message = new $root.api.
|
|
23453
|
+
var message = new $root.api.OTOpComponent();
|
|
23420
23454
|
if (object.skip != null)
|
|
23421
23455
|
message.skip = object.skip >>> 0;
|
|
23422
23456
|
if (object["delete"] != null)
|
|
@@ -23427,48 +23461,48 @@
|
|
|
23427
23461
|
};
|
|
23428
23462
|
|
|
23429
23463
|
/**
|
|
23430
|
-
* Creates a plain object from a
|
|
23464
|
+
* Creates a plain object from a OTOpComponent message. Also converts values to other types if specified.
|
|
23431
23465
|
* @function toObject
|
|
23432
|
-
* @memberof api.
|
|
23466
|
+
* @memberof api.OTOpComponent
|
|
23433
23467
|
* @static
|
|
23434
|
-
* @param {api.
|
|
23468
|
+
* @param {api.OTOpComponent} message OTOpComponent
|
|
23435
23469
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
23436
23470
|
* @returns {Object.<string,*>} Plain object
|
|
23437
23471
|
*/
|
|
23438
|
-
|
|
23472
|
+
OTOpComponent.toObject = function toObject(message, options) {
|
|
23439
23473
|
if (!options)
|
|
23440
23474
|
options = {};
|
|
23441
23475
|
var object = {};
|
|
23442
23476
|
if (message.skip != null && message.hasOwnProperty("skip")) {
|
|
23443
23477
|
object.skip = message.skip;
|
|
23444
23478
|
if (options.oneofs)
|
|
23445
|
-
object.
|
|
23479
|
+
object.opComponent = "skip";
|
|
23446
23480
|
}
|
|
23447
23481
|
if (message["delete"] != null && message.hasOwnProperty("delete")) {
|
|
23448
23482
|
object["delete"] = message["delete"];
|
|
23449
23483
|
if (options.oneofs)
|
|
23450
|
-
object.
|
|
23484
|
+
object.opComponent = "delete";
|
|
23451
23485
|
}
|
|
23452
23486
|
if (message.insert != null && message.hasOwnProperty("insert")) {
|
|
23453
23487
|
object.insert = message.insert;
|
|
23454
23488
|
if (options.oneofs)
|
|
23455
|
-
object.
|
|
23489
|
+
object.opComponent = "insert";
|
|
23456
23490
|
}
|
|
23457
23491
|
return object;
|
|
23458
23492
|
};
|
|
23459
23493
|
|
|
23460
23494
|
/**
|
|
23461
|
-
* Converts this
|
|
23495
|
+
* Converts this OTOpComponent to JSON.
|
|
23462
23496
|
* @function toJSON
|
|
23463
|
-
* @memberof api.
|
|
23497
|
+
* @memberof api.OTOpComponent
|
|
23464
23498
|
* @instance
|
|
23465
23499
|
* @returns {Object.<string,*>} JSON object
|
|
23466
23500
|
*/
|
|
23467
|
-
|
|
23501
|
+
OTOpComponent.prototype.toJSON = function toJSON() {
|
|
23468
23502
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
23469
23503
|
};
|
|
23470
23504
|
|
|
23471
|
-
return
|
|
23505
|
+
return OTOpComponent;
|
|
23472
23506
|
})();
|
|
23473
23507
|
|
|
23474
23508
|
api.OTStatus = (function() {
|
|
@@ -28207,6 +28241,7 @@
|
|
|
28207
28241
|
* @memberof api
|
|
28208
28242
|
* @interface IPackageInstall
|
|
28209
28243
|
* @property {boolean|null} [fromHosting] PackageInstall fromHosting
|
|
28244
|
+
* @property {boolean|null} [useNewResponse] PackageInstall useNewResponse
|
|
28210
28245
|
*/
|
|
28211
28246
|
|
|
28212
28247
|
/**
|
|
@@ -28231,6 +28266,14 @@
|
|
|
28231
28266
|
*/
|
|
28232
28267
|
PackageInstall.prototype.fromHosting = false;
|
|
28233
28268
|
|
|
28269
|
+
/**
|
|
28270
|
+
* PackageInstall useNewResponse.
|
|
28271
|
+
* @member {boolean} useNewResponse
|
|
28272
|
+
* @memberof api.PackageInstall
|
|
28273
|
+
* @instance
|
|
28274
|
+
*/
|
|
28275
|
+
PackageInstall.prototype.useNewResponse = false;
|
|
28276
|
+
|
|
28234
28277
|
/**
|
|
28235
28278
|
* Creates a new PackageInstall instance using the specified properties.
|
|
28236
28279
|
* @function create
|
|
@@ -28257,6 +28300,8 @@
|
|
|
28257
28300
|
writer = $Writer.create();
|
|
28258
28301
|
if (message.fromHosting != null && Object.hasOwnProperty.call(message, "fromHosting"))
|
|
28259
28302
|
writer.uint32(/* id 1, wireType 0 =*/8).bool(message.fromHosting);
|
|
28303
|
+
if (message.useNewResponse != null && Object.hasOwnProperty.call(message, "useNewResponse"))
|
|
28304
|
+
writer.uint32(/* id 99, wireType 0 =*/792).bool(message.useNewResponse);
|
|
28260
28305
|
return writer;
|
|
28261
28306
|
};
|
|
28262
28307
|
|
|
@@ -28294,6 +28339,9 @@
|
|
|
28294
28339
|
case 1:
|
|
28295
28340
|
message.fromHosting = reader.bool();
|
|
28296
28341
|
break;
|
|
28342
|
+
case 99:
|
|
28343
|
+
message.useNewResponse = reader.bool();
|
|
28344
|
+
break;
|
|
28297
28345
|
default:
|
|
28298
28346
|
reader.skipType(tag & 7);
|
|
28299
28347
|
break;
|
|
@@ -28332,6 +28380,9 @@
|
|
|
28332
28380
|
if (message.fromHosting != null && message.hasOwnProperty("fromHosting"))
|
|
28333
28381
|
if (typeof message.fromHosting !== "boolean")
|
|
28334
28382
|
return "fromHosting: boolean expected";
|
|
28383
|
+
if (message.useNewResponse != null && message.hasOwnProperty("useNewResponse"))
|
|
28384
|
+
if (typeof message.useNewResponse !== "boolean")
|
|
28385
|
+
return "useNewResponse: boolean expected";
|
|
28335
28386
|
return null;
|
|
28336
28387
|
};
|
|
28337
28388
|
|
|
@@ -28349,6 +28400,8 @@
|
|
|
28349
28400
|
var message = new $root.api.PackageInstall();
|
|
28350
28401
|
if (object.fromHosting != null)
|
|
28351
28402
|
message.fromHosting = Boolean(object.fromHosting);
|
|
28403
|
+
if (object.useNewResponse != null)
|
|
28404
|
+
message.useNewResponse = Boolean(object.useNewResponse);
|
|
28352
28405
|
return message;
|
|
28353
28406
|
};
|
|
28354
28407
|
|
|
@@ -28365,10 +28418,14 @@
|
|
|
28365
28418
|
if (!options)
|
|
28366
28419
|
options = {};
|
|
28367
28420
|
var object = {};
|
|
28368
|
-
if (options.defaults)
|
|
28421
|
+
if (options.defaults) {
|
|
28369
28422
|
object.fromHosting = false;
|
|
28423
|
+
object.useNewResponse = false;
|
|
28424
|
+
}
|
|
28370
28425
|
if (message.fromHosting != null && message.hasOwnProperty("fromHosting"))
|
|
28371
28426
|
object.fromHosting = message.fromHosting;
|
|
28427
|
+
if (message.useNewResponse != null && message.hasOwnProperty("useNewResponse"))
|
|
28428
|
+
object.useNewResponse = message.useNewResponse;
|
|
28372
28429
|
return object;
|
|
28373
28430
|
};
|
|
28374
28431
|
|
|
@@ -28386,6 +28443,208 @@
|
|
|
28386
28443
|
return PackageInstall;
|
|
28387
28444
|
})();
|
|
28388
28445
|
|
|
28446
|
+
api.PackageInstallResponse = (function() {
|
|
28447
|
+
|
|
28448
|
+
/**
|
|
28449
|
+
* Properties of a PackageInstallResponse.
|
|
28450
|
+
* @memberof api
|
|
28451
|
+
* @interface IPackageInstallResponse
|
|
28452
|
+
* @property {Array.<string>|null} [guessedPkgs] PackageInstallResponse guessedPkgs
|
|
28453
|
+
*/
|
|
28454
|
+
|
|
28455
|
+
/**
|
|
28456
|
+
* Constructs a new PackageInstallResponse.
|
|
28457
|
+
* @memberof api
|
|
28458
|
+
* @classdesc Represents a PackageInstallResponse.
|
|
28459
|
+
* @constructor
|
|
28460
|
+
* @param {api.IPackageInstallResponse=} [properties] Properties to set
|
|
28461
|
+
*/
|
|
28462
|
+
function PackageInstallResponse(properties) {
|
|
28463
|
+
this.guessedPkgs = [];
|
|
28464
|
+
if (properties)
|
|
28465
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
28466
|
+
if (properties[keys[i]] != null)
|
|
28467
|
+
this[keys[i]] = properties[keys[i]];
|
|
28468
|
+
}
|
|
28469
|
+
|
|
28470
|
+
/**
|
|
28471
|
+
* PackageInstallResponse guessedPkgs.
|
|
28472
|
+
* @member {Array.<string>} guessedPkgs
|
|
28473
|
+
* @memberof api.PackageInstallResponse
|
|
28474
|
+
* @instance
|
|
28475
|
+
*/
|
|
28476
|
+
PackageInstallResponse.prototype.guessedPkgs = $util.emptyArray;
|
|
28477
|
+
|
|
28478
|
+
/**
|
|
28479
|
+
* Creates a new PackageInstallResponse instance using the specified properties.
|
|
28480
|
+
* @function create
|
|
28481
|
+
* @memberof api.PackageInstallResponse
|
|
28482
|
+
* @static
|
|
28483
|
+
* @param {api.IPackageInstallResponse=} [properties] Properties to set
|
|
28484
|
+
* @returns {api.PackageInstallResponse} PackageInstallResponse instance
|
|
28485
|
+
*/
|
|
28486
|
+
PackageInstallResponse.create = function create(properties) {
|
|
28487
|
+
return PackageInstallResponse.fromObject(properties);
|
|
28488
|
+
};
|
|
28489
|
+
|
|
28490
|
+
/**
|
|
28491
|
+
* Encodes the specified PackageInstallResponse message. Does not implicitly {@link api.PackageInstallResponse.verify|verify} messages.
|
|
28492
|
+
* @function encode
|
|
28493
|
+
* @memberof api.PackageInstallResponse
|
|
28494
|
+
* @static
|
|
28495
|
+
* @param {api.PackageInstallResponse} message PackageInstallResponse message or plain object to encode
|
|
28496
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
28497
|
+
* @returns {$protobuf.Writer} Writer
|
|
28498
|
+
*/
|
|
28499
|
+
PackageInstallResponse.encode = function encode(message, writer) {
|
|
28500
|
+
if (!writer)
|
|
28501
|
+
writer = $Writer.create();
|
|
28502
|
+
if (message.guessedPkgs != null && message.guessedPkgs.length)
|
|
28503
|
+
for (var i = 0; i < message.guessedPkgs.length; ++i)
|
|
28504
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.guessedPkgs[i]);
|
|
28505
|
+
return writer;
|
|
28506
|
+
};
|
|
28507
|
+
|
|
28508
|
+
/**
|
|
28509
|
+
* Encodes the specified PackageInstallResponse message, length delimited. Does not implicitly {@link api.PackageInstallResponse.verify|verify} messages.
|
|
28510
|
+
* @function encodeDelimited
|
|
28511
|
+
* @memberof api.PackageInstallResponse
|
|
28512
|
+
* @static
|
|
28513
|
+
* @param {api.PackageInstallResponse} message PackageInstallResponse message or plain object to encode
|
|
28514
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
28515
|
+
* @returns {$protobuf.Writer} Writer
|
|
28516
|
+
*/
|
|
28517
|
+
PackageInstallResponse.encodeDelimited = function encodeDelimited(message, writer) {
|
|
28518
|
+
return this.encode(message, writer).ldelim();
|
|
28519
|
+
};
|
|
28520
|
+
|
|
28521
|
+
/**
|
|
28522
|
+
* Decodes a PackageInstallResponse message from the specified reader or buffer.
|
|
28523
|
+
* @function decode
|
|
28524
|
+
* @memberof api.PackageInstallResponse
|
|
28525
|
+
* @static
|
|
28526
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
28527
|
+
* @param {number} [length] Message length if known beforehand
|
|
28528
|
+
* @returns {api.PackageInstallResponse} PackageInstallResponse
|
|
28529
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
28530
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
28531
|
+
*/
|
|
28532
|
+
PackageInstallResponse.decode = function decode(reader, length) {
|
|
28533
|
+
if (!(reader instanceof $Reader))
|
|
28534
|
+
reader = $Reader.create(reader);
|
|
28535
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.api.PackageInstallResponse();
|
|
28536
|
+
while (reader.pos < end) {
|
|
28537
|
+
var tag = reader.uint32();
|
|
28538
|
+
switch (tag >>> 3) {
|
|
28539
|
+
case 1:
|
|
28540
|
+
if (!(message.guessedPkgs && message.guessedPkgs.length))
|
|
28541
|
+
message.guessedPkgs = [];
|
|
28542
|
+
message.guessedPkgs.push(reader.string());
|
|
28543
|
+
break;
|
|
28544
|
+
default:
|
|
28545
|
+
reader.skipType(tag & 7);
|
|
28546
|
+
break;
|
|
28547
|
+
}
|
|
28548
|
+
}
|
|
28549
|
+
return message;
|
|
28550
|
+
};
|
|
28551
|
+
|
|
28552
|
+
/**
|
|
28553
|
+
* Decodes a PackageInstallResponse message from the specified reader or buffer, length delimited.
|
|
28554
|
+
* @function decodeDelimited
|
|
28555
|
+
* @memberof api.PackageInstallResponse
|
|
28556
|
+
* @static
|
|
28557
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
28558
|
+
* @returns {api.PackageInstallResponse} PackageInstallResponse
|
|
28559
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
28560
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
28561
|
+
*/
|
|
28562
|
+
PackageInstallResponse.decodeDelimited = function decodeDelimited(reader) {
|
|
28563
|
+
if (!(reader instanceof $Reader))
|
|
28564
|
+
reader = new $Reader(reader);
|
|
28565
|
+
return this.decode(reader, reader.uint32());
|
|
28566
|
+
};
|
|
28567
|
+
|
|
28568
|
+
/**
|
|
28569
|
+
* Verifies a PackageInstallResponse message.
|
|
28570
|
+
* @function verify
|
|
28571
|
+
* @memberof api.PackageInstallResponse
|
|
28572
|
+
* @static
|
|
28573
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
28574
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
28575
|
+
*/
|
|
28576
|
+
PackageInstallResponse.verify = function verify(message) {
|
|
28577
|
+
if (typeof message !== "object" || message === null)
|
|
28578
|
+
return "object expected";
|
|
28579
|
+
if (message.guessedPkgs != null && message.hasOwnProperty("guessedPkgs")) {
|
|
28580
|
+
if (!Array.isArray(message.guessedPkgs))
|
|
28581
|
+
return "guessedPkgs: array expected";
|
|
28582
|
+
for (var i = 0; i < message.guessedPkgs.length; ++i)
|
|
28583
|
+
if (!$util.isString(message.guessedPkgs[i]))
|
|
28584
|
+
return "guessedPkgs: string[] expected";
|
|
28585
|
+
}
|
|
28586
|
+
return null;
|
|
28587
|
+
};
|
|
28588
|
+
|
|
28589
|
+
/**
|
|
28590
|
+
* Creates a PackageInstallResponse message from a plain object. Also converts values to their respective internal types.
|
|
28591
|
+
* @function fromObject
|
|
28592
|
+
* @memberof api.PackageInstallResponse
|
|
28593
|
+
* @static
|
|
28594
|
+
* @param {Object.<string,*>} object Plain object
|
|
28595
|
+
* @returns {api.PackageInstallResponse} PackageInstallResponse
|
|
28596
|
+
*/
|
|
28597
|
+
PackageInstallResponse.fromObject = function fromObject(object) {
|
|
28598
|
+
if (object instanceof $root.api.PackageInstallResponse)
|
|
28599
|
+
return object;
|
|
28600
|
+
var message = new $root.api.PackageInstallResponse();
|
|
28601
|
+
if (object.guessedPkgs) {
|
|
28602
|
+
if (!Array.isArray(object.guessedPkgs))
|
|
28603
|
+
throw TypeError(".api.PackageInstallResponse.guessedPkgs: array expected");
|
|
28604
|
+
message.guessedPkgs = [];
|
|
28605
|
+
for (var i = 0; i < object.guessedPkgs.length; ++i)
|
|
28606
|
+
message.guessedPkgs[i] = String(object.guessedPkgs[i]);
|
|
28607
|
+
}
|
|
28608
|
+
return message;
|
|
28609
|
+
};
|
|
28610
|
+
|
|
28611
|
+
/**
|
|
28612
|
+
* Creates a plain object from a PackageInstallResponse message. Also converts values to other types if specified.
|
|
28613
|
+
* @function toObject
|
|
28614
|
+
* @memberof api.PackageInstallResponse
|
|
28615
|
+
* @static
|
|
28616
|
+
* @param {api.PackageInstallResponse} message PackageInstallResponse
|
|
28617
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
28618
|
+
* @returns {Object.<string,*>} Plain object
|
|
28619
|
+
*/
|
|
28620
|
+
PackageInstallResponse.toObject = function toObject(message, options) {
|
|
28621
|
+
if (!options)
|
|
28622
|
+
options = {};
|
|
28623
|
+
var object = {};
|
|
28624
|
+
if (options.arrays || options.defaults)
|
|
28625
|
+
object.guessedPkgs = [];
|
|
28626
|
+
if (message.guessedPkgs && message.guessedPkgs.length) {
|
|
28627
|
+
object.guessedPkgs = [];
|
|
28628
|
+
for (var j = 0; j < message.guessedPkgs.length; ++j)
|
|
28629
|
+
object.guessedPkgs[j] = message.guessedPkgs[j];
|
|
28630
|
+
}
|
|
28631
|
+
return object;
|
|
28632
|
+
};
|
|
28633
|
+
|
|
28634
|
+
/**
|
|
28635
|
+
* Converts this PackageInstallResponse to JSON.
|
|
28636
|
+
* @function toJSON
|
|
28637
|
+
* @memberof api.PackageInstallResponse
|
|
28638
|
+
* @instance
|
|
28639
|
+
* @returns {Object.<string,*>} JSON object
|
|
28640
|
+
*/
|
|
28641
|
+
PackageInstallResponse.prototype.toJSON = function toJSON() {
|
|
28642
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
28643
|
+
};
|
|
28644
|
+
|
|
28645
|
+
return PackageInstallResponse;
|
|
28646
|
+
})();
|
|
28647
|
+
|
|
28389
28648
|
api.PackageListSpecfile = (function() {
|
|
28390
28649
|
|
|
28391
28650
|
/**
|