@replit/protocol 0.3.36 → 0.3.37
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 +18 -0
- package/main/index.js +113 -2
- package/main/index.js.flow +30 -0
- package/package.json +1 -1
package/main/index.d.ts
CHANGED
|
@@ -10369,8 +10369,14 @@ export namespace replit {
|
|
|
10369
10369
|
/** PortOpen cmdline */
|
|
10370
10370
|
cmdline?: (string[]|null);
|
|
10371
10371
|
|
|
10372
|
+
/** PortOpen cgroup */
|
|
10373
|
+
cgroup?: (string|null);
|
|
10374
|
+
|
|
10372
10375
|
/** PortOpen pid */
|
|
10373
10376
|
pid?: (number|null);
|
|
10377
|
+
|
|
10378
|
+
/** PortOpen pidChain */
|
|
10379
|
+
pidChain?: (number[]|null);
|
|
10374
10380
|
}
|
|
10375
10381
|
|
|
10376
10382
|
/** Represents a PortOpen. */
|
|
@@ -10400,9 +10406,15 @@ export namespace replit {
|
|
|
10400
10406
|
/** PortOpen cmdline. */
|
|
10401
10407
|
public cmdline: string[];
|
|
10402
10408
|
|
|
10409
|
+
/** PortOpen cgroup. */
|
|
10410
|
+
public cgroup: string;
|
|
10411
|
+
|
|
10403
10412
|
/** PortOpen pid. */
|
|
10404
10413
|
public pid: number;
|
|
10405
10414
|
|
|
10415
|
+
/** PortOpen pidChain. */
|
|
10416
|
+
public pidChain: number[];
|
|
10417
|
+
|
|
10406
10418
|
/**
|
|
10407
10419
|
* Creates a new PortOpen instance using the specified properties.
|
|
10408
10420
|
* @param [properties] Properties to set
|
|
@@ -12587,6 +12599,9 @@ export namespace replit {
|
|
|
12587
12599
|
|
|
12588
12600
|
/** ReplspaceApiOpenMultipleFiles files */
|
|
12589
12601
|
files?: (string[]|null);
|
|
12602
|
+
|
|
12603
|
+
/** ReplspaceApiOpenMultipleFiles urls */
|
|
12604
|
+
urls?: (string[]|null);
|
|
12590
12605
|
}
|
|
12591
12606
|
|
|
12592
12607
|
/** Represents a ReplspaceApiOpenMultipleFiles. */
|
|
@@ -12601,6 +12616,9 @@ export namespace replit {
|
|
|
12601
12616
|
/** ReplspaceApiOpenMultipleFiles files. */
|
|
12602
12617
|
public files: string[];
|
|
12603
12618
|
|
|
12619
|
+
/** ReplspaceApiOpenMultipleFiles urls. */
|
|
12620
|
+
public urls: string[];
|
|
12621
|
+
|
|
12604
12622
|
/**
|
|
12605
12623
|
* Creates a new ReplspaceApiOpenMultipleFiles instance using the specified properties.
|
|
12606
12624
|
* @param [properties] Properties to set
|
package/main/index.js
CHANGED
|
@@ -27620,7 +27620,9 @@
|
|
|
27620
27620
|
* @property {number|null} [externalPort] PortOpen externalPort
|
|
27621
27621
|
* @property {string|null} [comm] PortOpen comm
|
|
27622
27622
|
* @property {Array.<string>|null} [cmdline] PortOpen cmdline
|
|
27623
|
+
* @property {string|null} [cgroup] PortOpen cgroup
|
|
27623
27624
|
* @property {number|null} [pid] PortOpen pid
|
|
27625
|
+
* @property {Array.<number>|null} [pidChain] PortOpen pidChain
|
|
27624
27626
|
*/
|
|
27625
27627
|
|
|
27626
27628
|
/**
|
|
@@ -27632,6 +27634,7 @@
|
|
|
27632
27634
|
*/
|
|
27633
27635
|
function PortOpen(properties) {
|
|
27634
27636
|
this.cmdline = [];
|
|
27637
|
+
this.pidChain = [];
|
|
27635
27638
|
if (properties)
|
|
27636
27639
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
27637
27640
|
if (properties[keys[i]] != null)
|
|
@@ -27686,6 +27689,14 @@
|
|
|
27686
27689
|
*/
|
|
27687
27690
|
PortOpen.prototype.cmdline = $util.emptyArray;
|
|
27688
27691
|
|
|
27692
|
+
/**
|
|
27693
|
+
* PortOpen cgroup.
|
|
27694
|
+
* @member {string} cgroup
|
|
27695
|
+
* @memberof replit.goval.api.PortOpen
|
|
27696
|
+
* @instance
|
|
27697
|
+
*/
|
|
27698
|
+
PortOpen.prototype.cgroup = "";
|
|
27699
|
+
|
|
27689
27700
|
/**
|
|
27690
27701
|
* PortOpen pid.
|
|
27691
27702
|
* @member {number} pid
|
|
@@ -27694,6 +27705,14 @@
|
|
|
27694
27705
|
*/
|
|
27695
27706
|
PortOpen.prototype.pid = 0;
|
|
27696
27707
|
|
|
27708
|
+
/**
|
|
27709
|
+
* PortOpen pidChain.
|
|
27710
|
+
* @member {Array.<number>} pidChain
|
|
27711
|
+
* @memberof replit.goval.api.PortOpen
|
|
27712
|
+
* @instance
|
|
27713
|
+
*/
|
|
27714
|
+
PortOpen.prototype.pidChain = $util.emptyArray;
|
|
27715
|
+
|
|
27697
27716
|
/**
|
|
27698
27717
|
* Creates a new PortOpen instance using the specified properties.
|
|
27699
27718
|
* @function create
|
|
@@ -27733,6 +27752,14 @@
|
|
|
27733
27752
|
writer.uint32(/* id 6, wireType 2 =*/50).string(message.cmdline[i]);
|
|
27734
27753
|
if (message.pid != null && Object.hasOwnProperty.call(message, "pid"))
|
|
27735
27754
|
writer.uint32(/* id 7, wireType 0 =*/56).uint32(message.pid);
|
|
27755
|
+
if (message.cgroup != null && Object.hasOwnProperty.call(message, "cgroup"))
|
|
27756
|
+
writer.uint32(/* id 8, wireType 2 =*/66).string(message.cgroup);
|
|
27757
|
+
if (message.pidChain != null && message.pidChain.length) {
|
|
27758
|
+
writer.uint32(/* id 9, wireType 2 =*/74).fork();
|
|
27759
|
+
for (var i = 0; i < message.pidChain.length; ++i)
|
|
27760
|
+
writer.uint32(message.pidChain[i]);
|
|
27761
|
+
writer.ldelim();
|
|
27762
|
+
}
|
|
27736
27763
|
return writer;
|
|
27737
27764
|
};
|
|
27738
27765
|
|
|
@@ -27793,10 +27820,25 @@
|
|
|
27793
27820
|
message.cmdline.push(reader.string());
|
|
27794
27821
|
break;
|
|
27795
27822
|
}
|
|
27823
|
+
case 8: {
|
|
27824
|
+
message.cgroup = reader.string();
|
|
27825
|
+
break;
|
|
27826
|
+
}
|
|
27796
27827
|
case 7: {
|
|
27797
27828
|
message.pid = reader.uint32();
|
|
27798
27829
|
break;
|
|
27799
27830
|
}
|
|
27831
|
+
case 9: {
|
|
27832
|
+
if (!(message.pidChain && message.pidChain.length))
|
|
27833
|
+
message.pidChain = [];
|
|
27834
|
+
if ((tag & 7) === 2) {
|
|
27835
|
+
var end2 = reader.uint32() + reader.pos;
|
|
27836
|
+
while (reader.pos < end2)
|
|
27837
|
+
message.pidChain.push(reader.uint32());
|
|
27838
|
+
} else
|
|
27839
|
+
message.pidChain.push(reader.uint32());
|
|
27840
|
+
break;
|
|
27841
|
+
}
|
|
27800
27842
|
default:
|
|
27801
27843
|
reader.skipType(tag & 7);
|
|
27802
27844
|
break;
|
|
@@ -27854,9 +27896,19 @@
|
|
|
27854
27896
|
if (!$util.isString(message.cmdline[i]))
|
|
27855
27897
|
return "cmdline: string[] expected";
|
|
27856
27898
|
}
|
|
27899
|
+
if (message.cgroup != null && message.hasOwnProperty("cgroup"))
|
|
27900
|
+
if (!$util.isString(message.cgroup))
|
|
27901
|
+
return "cgroup: string expected";
|
|
27857
27902
|
if (message.pid != null && message.hasOwnProperty("pid"))
|
|
27858
27903
|
if (!$util.isInteger(message.pid))
|
|
27859
27904
|
return "pid: integer expected";
|
|
27905
|
+
if (message.pidChain != null && message.hasOwnProperty("pidChain")) {
|
|
27906
|
+
if (!Array.isArray(message.pidChain))
|
|
27907
|
+
return "pidChain: array expected";
|
|
27908
|
+
for (var i = 0; i < message.pidChain.length; ++i)
|
|
27909
|
+
if (!$util.isInteger(message.pidChain[i]))
|
|
27910
|
+
return "pidChain: integer[] expected";
|
|
27911
|
+
}
|
|
27860
27912
|
return null;
|
|
27861
27913
|
};
|
|
27862
27914
|
|
|
@@ -27889,8 +27941,17 @@
|
|
|
27889
27941
|
for (var i = 0; i < object.cmdline.length; ++i)
|
|
27890
27942
|
message.cmdline[i] = String(object.cmdline[i]);
|
|
27891
27943
|
}
|
|
27944
|
+
if (object.cgroup != null)
|
|
27945
|
+
message.cgroup = String(object.cgroup);
|
|
27892
27946
|
if (object.pid != null)
|
|
27893
27947
|
message.pid = object.pid >>> 0;
|
|
27948
|
+
if (object.pidChain) {
|
|
27949
|
+
if (!Array.isArray(object.pidChain))
|
|
27950
|
+
throw TypeError(".replit.goval.api.PortOpen.pidChain: array expected");
|
|
27951
|
+
message.pidChain = [];
|
|
27952
|
+
for (var i = 0; i < object.pidChain.length; ++i)
|
|
27953
|
+
message.pidChain[i] = object.pidChain[i] >>> 0;
|
|
27954
|
+
}
|
|
27894
27955
|
return message;
|
|
27895
27956
|
};
|
|
27896
27957
|
|
|
@@ -27907,8 +27968,10 @@
|
|
|
27907
27968
|
if (!options)
|
|
27908
27969
|
options = {};
|
|
27909
27970
|
var object = {};
|
|
27910
|
-
if (options.arrays || options.defaults)
|
|
27971
|
+
if (options.arrays || options.defaults) {
|
|
27911
27972
|
object.cmdline = [];
|
|
27973
|
+
object.pidChain = [];
|
|
27974
|
+
}
|
|
27912
27975
|
if (options.defaults) {
|
|
27913
27976
|
object.forwarded = false;
|
|
27914
27977
|
object.port = 0;
|
|
@@ -27916,6 +27979,7 @@
|
|
|
27916
27979
|
object.externalPort = 0;
|
|
27917
27980
|
object.comm = "";
|
|
27918
27981
|
object.pid = 0;
|
|
27982
|
+
object.cgroup = "";
|
|
27919
27983
|
}
|
|
27920
27984
|
if (message.forwarded != null && message.hasOwnProperty("forwarded"))
|
|
27921
27985
|
object.forwarded = message.forwarded;
|
|
@@ -27934,6 +27998,13 @@
|
|
|
27934
27998
|
}
|
|
27935
27999
|
if (message.pid != null && message.hasOwnProperty("pid"))
|
|
27936
28000
|
object.pid = message.pid;
|
|
28001
|
+
if (message.cgroup != null && message.hasOwnProperty("cgroup"))
|
|
28002
|
+
object.cgroup = message.cgroup;
|
|
28003
|
+
if (message.pidChain && message.pidChain.length) {
|
|
28004
|
+
object.pidChain = [];
|
|
28005
|
+
for (var j = 0; j < message.pidChain.length; ++j)
|
|
28006
|
+
object.pidChain[j] = message.pidChain[j];
|
|
28007
|
+
}
|
|
27937
28008
|
return object;
|
|
27938
28009
|
};
|
|
27939
28010
|
|
|
@@ -32993,6 +33064,7 @@
|
|
|
32993
33064
|
* @memberof replit.goval.api
|
|
32994
33065
|
* @interface IReplspaceApiOpenMultipleFiles
|
|
32995
33066
|
* @property {Array.<string>|null} [files] ReplspaceApiOpenMultipleFiles files
|
|
33067
|
+
* @property {Array.<string>|null} [urls] ReplspaceApiOpenMultipleFiles urls
|
|
32996
33068
|
*/
|
|
32997
33069
|
|
|
32998
33070
|
/**
|
|
@@ -33004,6 +33076,7 @@
|
|
|
33004
33076
|
*/
|
|
33005
33077
|
function ReplspaceApiOpenMultipleFiles(properties) {
|
|
33006
33078
|
this.files = [];
|
|
33079
|
+
this.urls = [];
|
|
33007
33080
|
if (properties)
|
|
33008
33081
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
33009
33082
|
if (properties[keys[i]] != null)
|
|
@@ -33018,6 +33091,14 @@
|
|
|
33018
33091
|
*/
|
|
33019
33092
|
ReplspaceApiOpenMultipleFiles.prototype.files = $util.emptyArray;
|
|
33020
33093
|
|
|
33094
|
+
/**
|
|
33095
|
+
* ReplspaceApiOpenMultipleFiles urls.
|
|
33096
|
+
* @member {Array.<string>} urls
|
|
33097
|
+
* @memberof replit.goval.api.ReplspaceApiOpenMultipleFiles
|
|
33098
|
+
* @instance
|
|
33099
|
+
*/
|
|
33100
|
+
ReplspaceApiOpenMultipleFiles.prototype.urls = $util.emptyArray;
|
|
33101
|
+
|
|
33021
33102
|
/**
|
|
33022
33103
|
* Creates a new ReplspaceApiOpenMultipleFiles instance using the specified properties.
|
|
33023
33104
|
* @function create
|
|
@@ -33045,6 +33126,9 @@
|
|
|
33045
33126
|
if (message.files != null && message.files.length)
|
|
33046
33127
|
for (var i = 0; i < message.files.length; ++i)
|
|
33047
33128
|
writer.uint32(/* id 1, wireType 2 =*/10).string(message.files[i]);
|
|
33129
|
+
if (message.urls != null && message.urls.length)
|
|
33130
|
+
for (var i = 0; i < message.urls.length; ++i)
|
|
33131
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.urls[i]);
|
|
33048
33132
|
return writer;
|
|
33049
33133
|
};
|
|
33050
33134
|
|
|
@@ -33085,6 +33169,12 @@
|
|
|
33085
33169
|
message.files.push(reader.string());
|
|
33086
33170
|
break;
|
|
33087
33171
|
}
|
|
33172
|
+
case 2: {
|
|
33173
|
+
if (!(message.urls && message.urls.length))
|
|
33174
|
+
message.urls = [];
|
|
33175
|
+
message.urls.push(reader.string());
|
|
33176
|
+
break;
|
|
33177
|
+
}
|
|
33088
33178
|
default:
|
|
33089
33179
|
reader.skipType(tag & 7);
|
|
33090
33180
|
break;
|
|
@@ -33127,6 +33217,13 @@
|
|
|
33127
33217
|
if (!$util.isString(message.files[i]))
|
|
33128
33218
|
return "files: string[] expected";
|
|
33129
33219
|
}
|
|
33220
|
+
if (message.urls != null && message.hasOwnProperty("urls")) {
|
|
33221
|
+
if (!Array.isArray(message.urls))
|
|
33222
|
+
return "urls: array expected";
|
|
33223
|
+
for (var i = 0; i < message.urls.length; ++i)
|
|
33224
|
+
if (!$util.isString(message.urls[i]))
|
|
33225
|
+
return "urls: string[] expected";
|
|
33226
|
+
}
|
|
33130
33227
|
return null;
|
|
33131
33228
|
};
|
|
33132
33229
|
|
|
@@ -33149,6 +33246,13 @@
|
|
|
33149
33246
|
for (var i = 0; i < object.files.length; ++i)
|
|
33150
33247
|
message.files[i] = String(object.files[i]);
|
|
33151
33248
|
}
|
|
33249
|
+
if (object.urls) {
|
|
33250
|
+
if (!Array.isArray(object.urls))
|
|
33251
|
+
throw TypeError(".replit.goval.api.ReplspaceApiOpenMultipleFiles.urls: array expected");
|
|
33252
|
+
message.urls = [];
|
|
33253
|
+
for (var i = 0; i < object.urls.length; ++i)
|
|
33254
|
+
message.urls[i] = String(object.urls[i]);
|
|
33255
|
+
}
|
|
33152
33256
|
return message;
|
|
33153
33257
|
};
|
|
33154
33258
|
|
|
@@ -33165,13 +33269,20 @@
|
|
|
33165
33269
|
if (!options)
|
|
33166
33270
|
options = {};
|
|
33167
33271
|
var object = {};
|
|
33168
|
-
if (options.arrays || options.defaults)
|
|
33272
|
+
if (options.arrays || options.defaults) {
|
|
33169
33273
|
object.files = [];
|
|
33274
|
+
object.urls = [];
|
|
33275
|
+
}
|
|
33170
33276
|
if (message.files && message.files.length) {
|
|
33171
33277
|
object.files = [];
|
|
33172
33278
|
for (var j = 0; j < message.files.length; ++j)
|
|
33173
33279
|
object.files[j] = message.files[j];
|
|
33174
33280
|
}
|
|
33281
|
+
if (message.urls && message.urls.length) {
|
|
33282
|
+
object.urls = [];
|
|
33283
|
+
for (var j = 0; j < message.urls.length; ++j)
|
|
33284
|
+
object.urls[j] = message.urls[j];
|
|
33285
|
+
}
|
|
33175
33286
|
return object;
|
|
33176
33287
|
};
|
|
33177
33288
|
|
package/main/index.js.flow
CHANGED
|
@@ -15120,10 +15120,20 @@ declare type replit$goval$api$IPortOpen = {|
|
|
|
15120
15120
|
*/
|
|
15121
15121
|
cmdline?: string[] | null,
|
|
15122
15122
|
|
|
15123
|
+
/**
|
|
15124
|
+
* PortOpen cgroup
|
|
15125
|
+
*/
|
|
15126
|
+
cgroup?: string | null,
|
|
15127
|
+
|
|
15123
15128
|
/**
|
|
15124
15129
|
* PortOpen pid
|
|
15125
15130
|
*/
|
|
15126
15131
|
pid?: number | null,
|
|
15132
|
+
|
|
15133
|
+
/**
|
|
15134
|
+
* PortOpen pidChain
|
|
15135
|
+
*/
|
|
15136
|
+
pidChain?: number[] | null,
|
|
15127
15137
|
|};
|
|
15128
15138
|
|
|
15129
15139
|
/**
|
|
@@ -15166,11 +15176,21 @@ declare class replit$goval$api$PortOpen {
|
|
|
15166
15176
|
*/
|
|
15167
15177
|
cmdline: string[];
|
|
15168
15178
|
|
|
15179
|
+
/**
|
|
15180
|
+
* PortOpen cgroup.
|
|
15181
|
+
*/
|
|
15182
|
+
cgroup: string;
|
|
15183
|
+
|
|
15169
15184
|
/**
|
|
15170
15185
|
* PortOpen pid.
|
|
15171
15186
|
*/
|
|
15172
15187
|
pid: number;
|
|
15173
15188
|
|
|
15189
|
+
/**
|
|
15190
|
+
* PortOpen pidChain.
|
|
15191
|
+
*/
|
|
15192
|
+
pidChain: number[];
|
|
15193
|
+
|
|
15174
15194
|
/**
|
|
15175
15195
|
* Creates a new PortOpen instance using the specified properties.
|
|
15176
15196
|
* @param [properties] Properties to set
|
|
@@ -18119,6 +18139,11 @@ declare type replit$goval$api$IReplspaceApiOpenMultipleFiles = {|
|
|
|
18119
18139
|
* ReplspaceApiOpenMultipleFiles files
|
|
18120
18140
|
*/
|
|
18121
18141
|
files?: string[] | null,
|
|
18142
|
+
|
|
18143
|
+
/**
|
|
18144
|
+
* ReplspaceApiOpenMultipleFiles urls
|
|
18145
|
+
*/
|
|
18146
|
+
urls?: string[] | null,
|
|
18122
18147
|
|};
|
|
18123
18148
|
|
|
18124
18149
|
/**
|
|
@@ -18138,6 +18163,11 @@ declare class replit$goval$api$ReplspaceApiOpenMultipleFiles {
|
|
|
18138
18163
|
*/
|
|
18139
18164
|
files: string[];
|
|
18140
18165
|
|
|
18166
|
+
/**
|
|
18167
|
+
* ReplspaceApiOpenMultipleFiles urls.
|
|
18168
|
+
*/
|
|
18169
|
+
urls: string[];
|
|
18170
|
+
|
|
18141
18171
|
/**
|
|
18142
18172
|
* Creates a new ReplspaceApiOpenMultipleFiles instance using the specified properties.
|
|
18143
18173
|
* @param [properties] Properties to set
|