@replit/protocol 0.3.19 → 0.3.21
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.js.flow +1 -1
- package/main/index.d.ts +18 -0
- package/main/index.js +83 -0
- package/main/index.js.flow +31 -1
- package/package.json +1 -1
package/iotester/index.js.flow
CHANGED
package/main/index.d.ts
CHANGED
|
@@ -18540,6 +18540,9 @@ export namespace replit {
|
|
|
18540
18540
|
|
|
18541
18541
|
/** ExtensionConfig outputDirectory */
|
|
18542
18542
|
outputDirectory?: (string|null);
|
|
18543
|
+
|
|
18544
|
+
/** ExtensionConfig staticDirectory */
|
|
18545
|
+
staticDirectory?: (string|null);
|
|
18543
18546
|
}
|
|
18544
18547
|
|
|
18545
18548
|
/** Represents an ExtensionConfig. */
|
|
@@ -18563,6 +18566,9 @@ export namespace replit {
|
|
|
18563
18566
|
/** ExtensionConfig outputDirectory. */
|
|
18564
18567
|
public outputDirectory: string;
|
|
18565
18568
|
|
|
18569
|
+
/** ExtensionConfig staticDirectory. */
|
|
18570
|
+
public staticDirectory: string;
|
|
18571
|
+
|
|
18566
18572
|
/**
|
|
18567
18573
|
* Creates a new ExtensionConfig instance using the specified properties.
|
|
18568
18574
|
* @param [properties] Properties to set
|
|
@@ -26852,6 +26858,9 @@ export namespace replit {
|
|
|
26852
26858
|
|
|
26853
26859
|
/** Repl roles */
|
|
26854
26860
|
roles?: (string[]|null);
|
|
26861
|
+
|
|
26862
|
+
/** Repl logFields */
|
|
26863
|
+
logFields?: (string|null);
|
|
26855
26864
|
}
|
|
26856
26865
|
|
|
26857
26866
|
/** Represents a Repl. */
|
|
@@ -26896,6 +26905,9 @@ export namespace replit {
|
|
|
26896
26905
|
/** Repl roles. */
|
|
26897
26906
|
public roles: string[];
|
|
26898
26907
|
|
|
26908
|
+
/** Repl logFields. */
|
|
26909
|
+
public logFields: string;
|
|
26910
|
+
|
|
26899
26911
|
/**
|
|
26900
26912
|
* Creates a new Repl instance using the specified properties.
|
|
26901
26913
|
* @param [properties] Properties to set
|
|
@@ -27101,6 +27113,9 @@ export namespace replit {
|
|
|
27101
27113
|
/** ResourceLimits disk */
|
|
27102
27114
|
disk?: (number|null);
|
|
27103
27115
|
|
|
27116
|
+
/** ResourceLimits minimumDisk */
|
|
27117
|
+
minimumDisk?: (number|null);
|
|
27118
|
+
|
|
27104
27119
|
/** ResourceLimits scratchDisk */
|
|
27105
27120
|
scratchDisk?: (number|null);
|
|
27106
27121
|
|
|
@@ -27138,6 +27153,9 @@ export namespace replit {
|
|
|
27138
27153
|
/** ResourceLimits disk. */
|
|
27139
27154
|
public disk: number;
|
|
27140
27155
|
|
|
27156
|
+
/** ResourceLimits minimumDisk. */
|
|
27157
|
+
public minimumDisk: number;
|
|
27158
|
+
|
|
27141
27159
|
/** ResourceLimits scratchDisk. */
|
|
27142
27160
|
public scratchDisk: number;
|
|
27143
27161
|
|
package/main/index.js
CHANGED
|
@@ -46841,6 +46841,7 @@
|
|
|
46841
46841
|
* @property {string|null} [extensionID] ExtensionConfig extensionID
|
|
46842
46842
|
* @property {string|null} [buildCommand] ExtensionConfig buildCommand
|
|
46843
46843
|
* @property {string|null} [outputDirectory] ExtensionConfig outputDirectory
|
|
46844
|
+
* @property {string|null} [staticDirectory] ExtensionConfig staticDirectory
|
|
46844
46845
|
*/
|
|
46845
46846
|
|
|
46846
46847
|
/**
|
|
@@ -46889,6 +46890,14 @@
|
|
|
46889
46890
|
*/
|
|
46890
46891
|
ExtensionConfig.prototype.outputDirectory = "";
|
|
46891
46892
|
|
|
46893
|
+
/**
|
|
46894
|
+
* ExtensionConfig staticDirectory.
|
|
46895
|
+
* @member {string} staticDirectory
|
|
46896
|
+
* @memberof replit.goval.api.ExtensionConfig
|
|
46897
|
+
* @instance
|
|
46898
|
+
*/
|
|
46899
|
+
ExtensionConfig.prototype.staticDirectory = "";
|
|
46900
|
+
|
|
46892
46901
|
/**
|
|
46893
46902
|
* Creates a new ExtensionConfig instance using the specified properties.
|
|
46894
46903
|
* @function create
|
|
@@ -46921,6 +46930,8 @@
|
|
|
46921
46930
|
writer.uint32(/* id 3, wireType 2 =*/26).string(message.buildCommand);
|
|
46922
46931
|
if (message.outputDirectory != null && Object.hasOwnProperty.call(message, "outputDirectory"))
|
|
46923
46932
|
writer.uint32(/* id 4, wireType 2 =*/34).string(message.outputDirectory);
|
|
46933
|
+
if (message.staticDirectory != null && Object.hasOwnProperty.call(message, "staticDirectory"))
|
|
46934
|
+
writer.uint32(/* id 5, wireType 2 =*/42).string(message.staticDirectory);
|
|
46924
46935
|
return writer;
|
|
46925
46936
|
};
|
|
46926
46937
|
|
|
@@ -46971,6 +46982,10 @@
|
|
|
46971
46982
|
message.outputDirectory = reader.string();
|
|
46972
46983
|
break;
|
|
46973
46984
|
}
|
|
46985
|
+
case 5: {
|
|
46986
|
+
message.staticDirectory = reader.string();
|
|
46987
|
+
break;
|
|
46988
|
+
}
|
|
46974
46989
|
default:
|
|
46975
46990
|
reader.skipType(tag & 7);
|
|
46976
46991
|
break;
|
|
@@ -47018,6 +47033,9 @@
|
|
|
47018
47033
|
if (message.outputDirectory != null && message.hasOwnProperty("outputDirectory"))
|
|
47019
47034
|
if (!$util.isString(message.outputDirectory))
|
|
47020
47035
|
return "outputDirectory: string expected";
|
|
47036
|
+
if (message.staticDirectory != null && message.hasOwnProperty("staticDirectory"))
|
|
47037
|
+
if (!$util.isString(message.staticDirectory))
|
|
47038
|
+
return "staticDirectory: string expected";
|
|
47021
47039
|
return null;
|
|
47022
47040
|
};
|
|
47023
47041
|
|
|
@@ -47041,6 +47059,8 @@
|
|
|
47041
47059
|
message.buildCommand = String(object.buildCommand);
|
|
47042
47060
|
if (object.outputDirectory != null)
|
|
47043
47061
|
message.outputDirectory = String(object.outputDirectory);
|
|
47062
|
+
if (object.staticDirectory != null)
|
|
47063
|
+
message.staticDirectory = String(object.staticDirectory);
|
|
47044
47064
|
return message;
|
|
47045
47065
|
};
|
|
47046
47066
|
|
|
@@ -47062,6 +47082,7 @@
|
|
|
47062
47082
|
object.extensionID = "";
|
|
47063
47083
|
object.buildCommand = "";
|
|
47064
47084
|
object.outputDirectory = "";
|
|
47085
|
+
object.staticDirectory = "";
|
|
47065
47086
|
}
|
|
47066
47087
|
if (message.isExtension != null && message.hasOwnProperty("isExtension"))
|
|
47067
47088
|
object.isExtension = message.isExtension;
|
|
@@ -47071,6 +47092,8 @@
|
|
|
47071
47092
|
object.buildCommand = message.buildCommand;
|
|
47072
47093
|
if (message.outputDirectory != null && message.hasOwnProperty("outputDirectory"))
|
|
47073
47094
|
object.outputDirectory = message.outputDirectory;
|
|
47095
|
+
if (message.staticDirectory != null && message.hasOwnProperty("staticDirectory"))
|
|
47096
|
+
object.staticDirectory = message.staticDirectory;
|
|
47074
47097
|
return object;
|
|
47075
47098
|
};
|
|
47076
47099
|
|
|
@@ -67438,6 +67461,7 @@
|
|
|
67438
67461
|
* @property {replit.goval.api.repl.UserId|replit.goval.api.repl.IUserId|null} [userId] Repl userId
|
|
67439
67462
|
* @property {boolean|null} [isTeam] Repl isTeam
|
|
67440
67463
|
* @property {Array.<string>|null} [roles] Repl roles
|
|
67464
|
+
* @property {string|null} [logFields] Repl logFields
|
|
67441
67465
|
*/
|
|
67442
67466
|
|
|
67443
67467
|
/**
|
|
@@ -67543,6 +67567,14 @@
|
|
|
67543
67567
|
*/
|
|
67544
67568
|
Repl.prototype.roles = $util.emptyArray;
|
|
67545
67569
|
|
|
67570
|
+
/**
|
|
67571
|
+
* Repl logFields.
|
|
67572
|
+
* @member {string} logFields
|
|
67573
|
+
* @memberof replit.goval.api.repl.Repl
|
|
67574
|
+
* @instance
|
|
67575
|
+
*/
|
|
67576
|
+
Repl.prototype.logFields = "";
|
|
67577
|
+
|
|
67546
67578
|
/**
|
|
67547
67579
|
* Creates a new Repl instance using the specified properties.
|
|
67548
67580
|
* @function create
|
|
@@ -67590,6 +67622,8 @@
|
|
|
67590
67622
|
if (message.roles != null && message.roles.length)
|
|
67591
67623
|
for (var i = 0; i < message.roles.length; ++i)
|
|
67592
67624
|
writer.uint32(/* id 11, wireType 2 =*/90).string(message.roles[i]);
|
|
67625
|
+
if (message.logFields != null && Object.hasOwnProperty.call(message, "logFields"))
|
|
67626
|
+
writer.uint32(/* id 13, wireType 2 =*/106).string(message.logFields);
|
|
67593
67627
|
return writer;
|
|
67594
67628
|
};
|
|
67595
67629
|
|
|
@@ -67670,6 +67704,10 @@
|
|
|
67670
67704
|
message.roles.push(reader.string());
|
|
67671
67705
|
break;
|
|
67672
67706
|
}
|
|
67707
|
+
case 13: {
|
|
67708
|
+
message.logFields = reader.string();
|
|
67709
|
+
break;
|
|
67710
|
+
}
|
|
67673
67711
|
default:
|
|
67674
67712
|
reader.skipType(tag & 7);
|
|
67675
67713
|
break;
|
|
@@ -67746,6 +67784,9 @@
|
|
|
67746
67784
|
if (!$util.isString(message.roles[i]))
|
|
67747
67785
|
return "roles: string[] expected";
|
|
67748
67786
|
}
|
|
67787
|
+
if (message.logFields != null && message.hasOwnProperty("logFields"))
|
|
67788
|
+
if (!$util.isString(message.logFields))
|
|
67789
|
+
return "logFields: string expected";
|
|
67749
67790
|
return null;
|
|
67750
67791
|
};
|
|
67751
67792
|
|
|
@@ -67794,6 +67835,8 @@
|
|
|
67794
67835
|
for (var i = 0; i < object.roles.length; ++i)
|
|
67795
67836
|
message.roles[i] = String(object.roles[i]);
|
|
67796
67837
|
}
|
|
67838
|
+
if (object.logFields != null)
|
|
67839
|
+
message.logFields = String(object.logFields);
|
|
67797
67840
|
return message;
|
|
67798
67841
|
};
|
|
67799
67842
|
|
|
@@ -67823,6 +67866,7 @@
|
|
|
67823
67866
|
object.buckets = null;
|
|
67824
67867
|
object.userId = null;
|
|
67825
67868
|
object.isTeam = false;
|
|
67869
|
+
object.logFields = "";
|
|
67826
67870
|
}
|
|
67827
67871
|
if (message.id != null && message.hasOwnProperty("id"))
|
|
67828
67872
|
object.id = message.id;
|
|
@@ -67849,6 +67893,8 @@
|
|
|
67849
67893
|
for (var j = 0; j < message.roles.length; ++j)
|
|
67850
67894
|
object.roles[j] = message.roles[j];
|
|
67851
67895
|
}
|
|
67896
|
+
if (message.logFields != null && message.hasOwnProperty("logFields"))
|
|
67897
|
+
object.logFields = message.logFields;
|
|
67852
67898
|
return object;
|
|
67853
67899
|
};
|
|
67854
67900
|
|
|
@@ -68165,6 +68211,7 @@
|
|
|
68165
68211
|
* @property {number|null} [threads] ResourceLimits threads
|
|
68166
68212
|
* @property {number|null} [shares] ResourceLimits shares
|
|
68167
68213
|
* @property {number|null} [disk] ResourceLimits disk
|
|
68214
|
+
* @property {number|null} [minimumDisk] ResourceLimits minimumDisk
|
|
68168
68215
|
* @property {number|null} [scratchDisk] ResourceLimits scratchDisk
|
|
68169
68216
|
* @property {replit.goval.api.repl.ResourceLimits.Cachability|null} [cache] ResourceLimits cache
|
|
68170
68217
|
* @property {boolean|null} [restrictNetwork] ResourceLimits restrictNetwork
|
|
@@ -68225,6 +68272,14 @@
|
|
|
68225
68272
|
*/
|
|
68226
68273
|
ResourceLimits.prototype.disk = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
|
|
68227
68274
|
|
|
68275
|
+
/**
|
|
68276
|
+
* ResourceLimits minimumDisk.
|
|
68277
|
+
* @member {number} minimumDisk
|
|
68278
|
+
* @memberof replit.goval.api.repl.ResourceLimits
|
|
68279
|
+
* @instance
|
|
68280
|
+
*/
|
|
68281
|
+
ResourceLimits.prototype.minimumDisk = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
|
|
68282
|
+
|
|
68228
68283
|
/**
|
|
68229
68284
|
* ResourceLimits scratchDisk.
|
|
68230
68285
|
* @member {number} scratchDisk
|
|
@@ -68299,6 +68354,8 @@
|
|
|
68299
68354
|
writer.uint32(/* id 8, wireType 0 =*/64).bool(message.preventWakeup);
|
|
68300
68355
|
if (message.scratchDisk != null && Object.hasOwnProperty.call(message, "scratchDisk"))
|
|
68301
68356
|
writer.uint32(/* id 9, wireType 0 =*/72).int64(message.scratchDisk);
|
|
68357
|
+
if (message.minimumDisk != null && Object.hasOwnProperty.call(message, "minimumDisk"))
|
|
68358
|
+
writer.uint32(/* id 10, wireType 0 =*/80).int64(message.minimumDisk);
|
|
68302
68359
|
return writer;
|
|
68303
68360
|
};
|
|
68304
68361
|
|
|
@@ -68353,6 +68410,10 @@
|
|
|
68353
68410
|
message.disk = reader.int64();
|
|
68354
68411
|
break;
|
|
68355
68412
|
}
|
|
68413
|
+
case 10: {
|
|
68414
|
+
message.minimumDisk = reader.int64();
|
|
68415
|
+
break;
|
|
68416
|
+
}
|
|
68356
68417
|
case 9: {
|
|
68357
68418
|
message.scratchDisk = reader.int64();
|
|
68358
68419
|
break;
|
|
@@ -68419,6 +68480,9 @@
|
|
|
68419
68480
|
if (message.disk != null && message.hasOwnProperty("disk"))
|
|
68420
68481
|
if (!$util.isInteger(message.disk) && !(message.disk && $util.isInteger(message.disk.low) && $util.isInteger(message.disk.high)))
|
|
68421
68482
|
return "disk: integer|Long expected";
|
|
68483
|
+
if (message.minimumDisk != null && message.hasOwnProperty("minimumDisk"))
|
|
68484
|
+
if (!$util.isInteger(message.minimumDisk) && !(message.minimumDisk && $util.isInteger(message.minimumDisk.low) && $util.isInteger(message.minimumDisk.high)))
|
|
68485
|
+
return "minimumDisk: integer|Long expected";
|
|
68422
68486
|
if (message.scratchDisk != null && message.hasOwnProperty("scratchDisk"))
|
|
68423
68487
|
if (!$util.isInteger(message.scratchDisk) && !(message.scratchDisk && $util.isInteger(message.scratchDisk.low) && $util.isInteger(message.scratchDisk.high)))
|
|
68424
68488
|
return "scratchDisk: integer|Long expected";
|
|
@@ -68476,6 +68540,15 @@
|
|
|
68476
68540
|
message.disk = object.disk;
|
|
68477
68541
|
else if (typeof object.disk === "object")
|
|
68478
68542
|
message.disk = new $util.LongBits(object.disk.low >>> 0, object.disk.high >>> 0).toNumber();
|
|
68543
|
+
if (object.minimumDisk != null)
|
|
68544
|
+
if ($util.Long)
|
|
68545
|
+
(message.minimumDisk = $util.Long.fromValue(object.minimumDisk)).unsigned = false;
|
|
68546
|
+
else if (typeof object.minimumDisk === "string")
|
|
68547
|
+
message.minimumDisk = parseInt(object.minimumDisk, 10);
|
|
68548
|
+
else if (typeof object.minimumDisk === "number")
|
|
68549
|
+
message.minimumDisk = object.minimumDisk;
|
|
68550
|
+
else if (typeof object.minimumDisk === "object")
|
|
68551
|
+
message.minimumDisk = new $util.LongBits(object.minimumDisk.low >>> 0, object.minimumDisk.high >>> 0).toNumber();
|
|
68479
68552
|
if (object.scratchDisk != null)
|
|
68480
68553
|
if ($util.Long)
|
|
68481
68554
|
(message.scratchDisk = $util.Long.fromValue(object.scratchDisk)).unsigned = false;
|
|
@@ -68547,6 +68620,11 @@
|
|
|
68547
68620
|
object.scratchDisk = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
68548
68621
|
} else
|
|
68549
68622
|
object.scratchDisk = options.longs === String ? "0" : 0;
|
|
68623
|
+
if ($util.Long) {
|
|
68624
|
+
var long = new $util.Long(0, 0, false);
|
|
68625
|
+
object.minimumDisk = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
68626
|
+
} else
|
|
68627
|
+
object.minimumDisk = options.longs === String ? "0" : 0;
|
|
68550
68628
|
}
|
|
68551
68629
|
if (message.net != null && message.hasOwnProperty("net"))
|
|
68552
68630
|
object.net = message.net;
|
|
@@ -68575,6 +68653,11 @@
|
|
|
68575
68653
|
object.scratchDisk = options.longs === String ? String(message.scratchDisk) : message.scratchDisk;
|
|
68576
68654
|
else
|
|
68577
68655
|
object.scratchDisk = options.longs === String ? $util.Long.prototype.toString.call(message.scratchDisk) : options.longs === Number ? new $util.LongBits(message.scratchDisk.low >>> 0, message.scratchDisk.high >>> 0).toNumber() : message.scratchDisk;
|
|
68656
|
+
if (message.minimumDisk != null && message.hasOwnProperty("minimumDisk"))
|
|
68657
|
+
if (typeof message.minimumDisk === "number")
|
|
68658
|
+
object.minimumDisk = options.longs === String ? String(message.minimumDisk) : message.minimumDisk;
|
|
68659
|
+
else
|
|
68660
|
+
object.minimumDisk = options.longs === String ? $util.Long.prototype.toString.call(message.minimumDisk) : options.longs === Number ? new $util.LongBits(message.minimumDisk.low >>> 0, message.minimumDisk.high >>> 0).toNumber() : message.minimumDisk;
|
|
68578
68661
|
return object;
|
|
68579
68662
|
};
|
|
68580
68663
|
|
package/main/index.js.flow
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Flowtype definitions for index
|
|
3
3
|
* Generated by Flowgen from a Typescript Definition
|
|
4
|
-
* Flowgen v1.14.
|
|
4
|
+
* Flowgen v1.14.0
|
|
5
5
|
* @flow
|
|
6
6
|
*/
|
|
7
7
|
|
|
@@ -26120,6 +26120,11 @@ declare type replit$goval$api$IExtensionConfig = {|
|
|
|
26120
26120
|
* ExtensionConfig outputDirectory
|
|
26121
26121
|
*/
|
|
26122
26122
|
outputDirectory?: string | null,
|
|
26123
|
+
|
|
26124
|
+
/**
|
|
26125
|
+
* ExtensionConfig staticDirectory
|
|
26126
|
+
*/
|
|
26127
|
+
staticDirectory?: string | null,
|
|
26123
26128
|
|};
|
|
26124
26129
|
|
|
26125
26130
|
/**
|
|
@@ -26152,6 +26157,11 @@ declare class replit$goval$api$ExtensionConfig {
|
|
|
26152
26157
|
*/
|
|
26153
26158
|
outputDirectory: string;
|
|
26154
26159
|
|
|
26160
|
+
/**
|
|
26161
|
+
* ExtensionConfig staticDirectory.
|
|
26162
|
+
*/
|
|
26163
|
+
staticDirectory: string;
|
|
26164
|
+
|
|
26155
26165
|
/**
|
|
26156
26166
|
* Creates a new ExtensionConfig instance using the specified properties.
|
|
26157
26167
|
* @param [properties] Properties to set
|
|
@@ -37652,6 +37662,11 @@ declare type replit$goval$api$repl$IRepl = {|
|
|
|
37652
37662
|
* Repl roles
|
|
37653
37663
|
*/
|
|
37654
37664
|
roles?: string[] | null,
|
|
37665
|
+
|
|
37666
|
+
/**
|
|
37667
|
+
* Repl logFields
|
|
37668
|
+
*/
|
|
37669
|
+
logFields?: string | null,
|
|
37655
37670
|
|};
|
|
37656
37671
|
|
|
37657
37672
|
/**
|
|
@@ -37719,6 +37734,11 @@ declare class replit$goval$api$repl$Repl {
|
|
|
37719
37734
|
*/
|
|
37720
37735
|
roles: string[];
|
|
37721
37736
|
|
|
37737
|
+
/**
|
|
37738
|
+
* Repl logFields.
|
|
37739
|
+
*/
|
|
37740
|
+
logFields: string;
|
|
37741
|
+
|
|
37722
37742
|
/**
|
|
37723
37743
|
* Creates a new Repl instance using the specified properties.
|
|
37724
37744
|
* @param [properties] Properties to set
|
|
@@ -37996,6 +38016,11 @@ declare type replit$goval$api$repl$IResourceLimits = {|
|
|
|
37996
38016
|
*/
|
|
37997
38017
|
disk?: number | null,
|
|
37998
38018
|
|
|
38019
|
+
/**
|
|
38020
|
+
* ResourceLimits minimumDisk
|
|
38021
|
+
*/
|
|
38022
|
+
minimumDisk?: number | null,
|
|
38023
|
+
|
|
37999
38024
|
/**
|
|
38000
38025
|
* ResourceLimits scratchDisk
|
|
38001
38026
|
*/
|
|
@@ -38054,6 +38079,11 @@ declare class replit$goval$api$repl$ResourceLimits {
|
|
|
38054
38079
|
*/
|
|
38055
38080
|
disk: number;
|
|
38056
38081
|
|
|
38082
|
+
/**
|
|
38083
|
+
* ResourceLimits minimumDisk.
|
|
38084
|
+
*/
|
|
38085
|
+
minimumDisk: number;
|
|
38086
|
+
|
|
38057
38087
|
/**
|
|
38058
38088
|
* ResourceLimits scratchDisk.
|
|
38059
38089
|
*/
|