@replit/protocol 0.2.45 → 0.2.46
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/main/index.d.ts +24 -0
- package/main/index.js +116 -5
- package/main/index.js.flow +41 -1
- package/package.json +1 -1
package/main/index.d.ts
CHANGED
|
@@ -9257,6 +9257,9 @@ export namespace api {
|
|
|
9257
9257
|
|
|
9258
9258
|
/** User session */
|
|
9259
9259
|
session?: (number|null);
|
|
9260
|
+
|
|
9261
|
+
/** User teams */
|
|
9262
|
+
teams?: (string[]|null);
|
|
9260
9263
|
}
|
|
9261
9264
|
|
|
9262
9265
|
/** Represents a User. */
|
|
@@ -9280,6 +9283,9 @@ export namespace api {
|
|
|
9280
9283
|
/** User session. */
|
|
9281
9284
|
public session: number;
|
|
9282
9285
|
|
|
9286
|
+
/** User teams. */
|
|
9287
|
+
public teams: string[];
|
|
9288
|
+
|
|
9283
9289
|
/**
|
|
9284
9290
|
* Creates a new User instance using the specified properties.
|
|
9285
9291
|
* @param [properties] Properties to set
|
|
@@ -10827,6 +10833,9 @@ export namespace api {
|
|
|
10827
10833
|
|
|
10828
10834
|
/** Properties of a PackageInstall. */
|
|
10829
10835
|
interface IPackageInstall {
|
|
10836
|
+
|
|
10837
|
+
/** PackageInstall fromHosting */
|
|
10838
|
+
fromHosting?: (boolean|null);
|
|
10830
10839
|
}
|
|
10831
10840
|
|
|
10832
10841
|
/** Represents a PackageInstall. */
|
|
@@ -10838,6 +10847,9 @@ export namespace api {
|
|
|
10838
10847
|
*/
|
|
10839
10848
|
private constructor(properties?: api.IPackageInstall);
|
|
10840
10849
|
|
|
10850
|
+
/** PackageInstall fromHosting. */
|
|
10851
|
+
public fromHosting: boolean;
|
|
10852
|
+
|
|
10841
10853
|
/**
|
|
10842
10854
|
* Creates a new PackageInstall instance using the specified properties.
|
|
10843
10855
|
* @param [properties] Properties to set
|
|
@@ -14225,6 +14237,12 @@ export namespace api {
|
|
|
14225
14237
|
|
|
14226
14238
|
/** LanguageServerConfig startCommand */
|
|
14227
14239
|
startCommand?: (api.Exec|api.IExec|null);
|
|
14240
|
+
|
|
14241
|
+
/** LanguageServerConfig configurationJson */
|
|
14242
|
+
configurationJson?: (string|null);
|
|
14243
|
+
|
|
14244
|
+
/** LanguageServerConfig initializationOptionsJson */
|
|
14245
|
+
initializationOptionsJson?: (string|null);
|
|
14228
14246
|
}
|
|
14229
14247
|
|
|
14230
14248
|
/** Represents a LanguageServerConfig. */
|
|
@@ -14239,6 +14257,12 @@ export namespace api {
|
|
|
14239
14257
|
/** LanguageServerConfig startCommand. */
|
|
14240
14258
|
public startCommand?: (api.Exec|null);
|
|
14241
14259
|
|
|
14260
|
+
/** LanguageServerConfig configurationJson. */
|
|
14261
|
+
public configurationJson: string;
|
|
14262
|
+
|
|
14263
|
+
/** LanguageServerConfig initializationOptionsJson. */
|
|
14264
|
+
public initializationOptionsJson: string;
|
|
14265
|
+
|
|
14242
14266
|
/**
|
|
14243
14267
|
* Creates a new LanguageServerConfig instance using the specified properties.
|
|
14244
14268
|
* @param [properties] Properties to set
|
package/main/index.js
CHANGED
|
@@ -23956,6 +23956,7 @@
|
|
|
23956
23956
|
* @property {string|null} [name] User name
|
|
23957
23957
|
* @property {Array.<string>|null} [roles] User roles
|
|
23958
23958
|
* @property {number|null} [session] User session
|
|
23959
|
+
* @property {Array.<string>|null} [teams] User teams
|
|
23959
23960
|
*/
|
|
23960
23961
|
|
|
23961
23962
|
/**
|
|
@@ -23967,6 +23968,7 @@
|
|
|
23967
23968
|
*/
|
|
23968
23969
|
function User(properties) {
|
|
23969
23970
|
this.roles = [];
|
|
23971
|
+
this.teams = [];
|
|
23970
23972
|
if (properties)
|
|
23971
23973
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
23972
23974
|
if (properties[keys[i]] != null)
|
|
@@ -24005,6 +24007,14 @@
|
|
|
24005
24007
|
*/
|
|
24006
24008
|
User.prototype.session = 0;
|
|
24007
24009
|
|
|
24010
|
+
/**
|
|
24011
|
+
* User teams.
|
|
24012
|
+
* @member {Array.<string>} teams
|
|
24013
|
+
* @memberof api.User
|
|
24014
|
+
* @instance
|
|
24015
|
+
*/
|
|
24016
|
+
User.prototype.teams = $util.emptyArray;
|
|
24017
|
+
|
|
24008
24018
|
/**
|
|
24009
24019
|
* Creates a new User instance using the specified properties.
|
|
24010
24020
|
* @function create
|
|
@@ -24038,6 +24048,9 @@
|
|
|
24038
24048
|
writer.uint32(/* id 3, wireType 2 =*/26).string(message.roles[i]);
|
|
24039
24049
|
if (message.session != null && Object.hasOwnProperty.call(message, "session"))
|
|
24040
24050
|
writer.uint32(/* id 4, wireType 0 =*/32).int32(message.session);
|
|
24051
|
+
if (message.teams != null && message.teams.length)
|
|
24052
|
+
for (var i = 0; i < message.teams.length; ++i)
|
|
24053
|
+
writer.uint32(/* id 5, wireType 2 =*/42).string(message.teams[i]);
|
|
24041
24054
|
return writer;
|
|
24042
24055
|
};
|
|
24043
24056
|
|
|
@@ -24086,6 +24099,11 @@
|
|
|
24086
24099
|
case 4:
|
|
24087
24100
|
message.session = reader.int32();
|
|
24088
24101
|
break;
|
|
24102
|
+
case 5:
|
|
24103
|
+
if (!(message.teams && message.teams.length))
|
|
24104
|
+
message.teams = [];
|
|
24105
|
+
message.teams.push(reader.string());
|
|
24106
|
+
break;
|
|
24089
24107
|
default:
|
|
24090
24108
|
reader.skipType(tag & 7);
|
|
24091
24109
|
break;
|
|
@@ -24137,6 +24155,13 @@
|
|
|
24137
24155
|
if (message.session != null && message.hasOwnProperty("session"))
|
|
24138
24156
|
if (!$util.isInteger(message.session))
|
|
24139
24157
|
return "session: integer expected";
|
|
24158
|
+
if (message.teams != null && message.hasOwnProperty("teams")) {
|
|
24159
|
+
if (!Array.isArray(message.teams))
|
|
24160
|
+
return "teams: array expected";
|
|
24161
|
+
for (var i = 0; i < message.teams.length; ++i)
|
|
24162
|
+
if (!$util.isString(message.teams[i]))
|
|
24163
|
+
return "teams: string[] expected";
|
|
24164
|
+
}
|
|
24140
24165
|
return null;
|
|
24141
24166
|
};
|
|
24142
24167
|
|
|
@@ -24165,6 +24190,13 @@
|
|
|
24165
24190
|
}
|
|
24166
24191
|
if (object.session != null)
|
|
24167
24192
|
message.session = object.session | 0;
|
|
24193
|
+
if (object.teams) {
|
|
24194
|
+
if (!Array.isArray(object.teams))
|
|
24195
|
+
throw TypeError(".api.User.teams: array expected");
|
|
24196
|
+
message.teams = [];
|
|
24197
|
+
for (var i = 0; i < object.teams.length; ++i)
|
|
24198
|
+
message.teams[i] = String(object.teams[i]);
|
|
24199
|
+
}
|
|
24168
24200
|
return message;
|
|
24169
24201
|
};
|
|
24170
24202
|
|
|
@@ -24181,8 +24213,10 @@
|
|
|
24181
24213
|
if (!options)
|
|
24182
24214
|
options = {};
|
|
24183
24215
|
var object = {};
|
|
24184
|
-
if (options.arrays || options.defaults)
|
|
24216
|
+
if (options.arrays || options.defaults) {
|
|
24185
24217
|
object.roles = [];
|
|
24218
|
+
object.teams = [];
|
|
24219
|
+
}
|
|
24186
24220
|
if (options.defaults) {
|
|
24187
24221
|
object.id = 0;
|
|
24188
24222
|
object.name = "";
|
|
@@ -24199,6 +24233,11 @@
|
|
|
24199
24233
|
}
|
|
24200
24234
|
if (message.session != null && message.hasOwnProperty("session"))
|
|
24201
24235
|
object.session = message.session;
|
|
24236
|
+
if (message.teams && message.teams.length) {
|
|
24237
|
+
object.teams = [];
|
|
24238
|
+
for (var j = 0; j < message.teams.length; ++j)
|
|
24239
|
+
object.teams[j] = message.teams[j];
|
|
24240
|
+
}
|
|
24202
24241
|
return object;
|
|
24203
24242
|
};
|
|
24204
24243
|
|
|
@@ -27664,6 +27703,7 @@
|
|
|
27664
27703
|
* Properties of a PackageInstall.
|
|
27665
27704
|
* @memberof api
|
|
27666
27705
|
* @interface IPackageInstall
|
|
27706
|
+
* @property {boolean|null} [fromHosting] PackageInstall fromHosting
|
|
27667
27707
|
*/
|
|
27668
27708
|
|
|
27669
27709
|
/**
|
|
@@ -27680,6 +27720,14 @@
|
|
|
27680
27720
|
this[keys[i]] = properties[keys[i]];
|
|
27681
27721
|
}
|
|
27682
27722
|
|
|
27723
|
+
/**
|
|
27724
|
+
* PackageInstall fromHosting.
|
|
27725
|
+
* @member {boolean} fromHosting
|
|
27726
|
+
* @memberof api.PackageInstall
|
|
27727
|
+
* @instance
|
|
27728
|
+
*/
|
|
27729
|
+
PackageInstall.prototype.fromHosting = false;
|
|
27730
|
+
|
|
27683
27731
|
/**
|
|
27684
27732
|
* Creates a new PackageInstall instance using the specified properties.
|
|
27685
27733
|
* @function create
|
|
@@ -27704,6 +27752,8 @@
|
|
|
27704
27752
|
PackageInstall.encode = function encode(message, writer) {
|
|
27705
27753
|
if (!writer)
|
|
27706
27754
|
writer = $Writer.create();
|
|
27755
|
+
if (message.fromHosting != null && Object.hasOwnProperty.call(message, "fromHosting"))
|
|
27756
|
+
writer.uint32(/* id 1, wireType 0 =*/8).bool(message.fromHosting);
|
|
27707
27757
|
return writer;
|
|
27708
27758
|
};
|
|
27709
27759
|
|
|
@@ -27738,6 +27788,9 @@
|
|
|
27738
27788
|
while (reader.pos < end) {
|
|
27739
27789
|
var tag = reader.uint32();
|
|
27740
27790
|
switch (tag >>> 3) {
|
|
27791
|
+
case 1:
|
|
27792
|
+
message.fromHosting = reader.bool();
|
|
27793
|
+
break;
|
|
27741
27794
|
default:
|
|
27742
27795
|
reader.skipType(tag & 7);
|
|
27743
27796
|
break;
|
|
@@ -27773,6 +27826,9 @@
|
|
|
27773
27826
|
PackageInstall.verify = function verify(message) {
|
|
27774
27827
|
if (typeof message !== "object" || message === null)
|
|
27775
27828
|
return "object expected";
|
|
27829
|
+
if (message.fromHosting != null && message.hasOwnProperty("fromHosting"))
|
|
27830
|
+
if (typeof message.fromHosting !== "boolean")
|
|
27831
|
+
return "fromHosting: boolean expected";
|
|
27776
27832
|
return null;
|
|
27777
27833
|
};
|
|
27778
27834
|
|
|
@@ -27787,7 +27843,10 @@
|
|
|
27787
27843
|
PackageInstall.fromObject = function fromObject(object) {
|
|
27788
27844
|
if (object instanceof $root.api.PackageInstall)
|
|
27789
27845
|
return object;
|
|
27790
|
-
|
|
27846
|
+
var message = new $root.api.PackageInstall();
|
|
27847
|
+
if (object.fromHosting != null)
|
|
27848
|
+
message.fromHosting = Boolean(object.fromHosting);
|
|
27849
|
+
return message;
|
|
27791
27850
|
};
|
|
27792
27851
|
|
|
27793
27852
|
/**
|
|
@@ -27799,8 +27858,15 @@
|
|
|
27799
27858
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
27800
27859
|
* @returns {Object.<string,*>} Plain object
|
|
27801
27860
|
*/
|
|
27802
|
-
PackageInstall.toObject = function toObject() {
|
|
27803
|
-
|
|
27861
|
+
PackageInstall.toObject = function toObject(message, options) {
|
|
27862
|
+
if (!options)
|
|
27863
|
+
options = {};
|
|
27864
|
+
var object = {};
|
|
27865
|
+
if (options.defaults)
|
|
27866
|
+
object.fromHosting = false;
|
|
27867
|
+
if (message.fromHosting != null && message.hasOwnProperty("fromHosting"))
|
|
27868
|
+
object.fromHosting = message.fromHosting;
|
|
27869
|
+
return object;
|
|
27804
27870
|
};
|
|
27805
27871
|
|
|
27806
27872
|
/**
|
|
@@ -35453,6 +35519,8 @@
|
|
|
35453
35519
|
* @memberof api
|
|
35454
35520
|
* @interface ILanguageServerConfig
|
|
35455
35521
|
* @property {api.Exec|api.IExec|null} [startCommand] LanguageServerConfig startCommand
|
|
35522
|
+
* @property {string|null} [configurationJson] LanguageServerConfig configurationJson
|
|
35523
|
+
* @property {string|null} [initializationOptionsJson] LanguageServerConfig initializationOptionsJson
|
|
35456
35524
|
*/
|
|
35457
35525
|
|
|
35458
35526
|
/**
|
|
@@ -35477,6 +35545,22 @@
|
|
|
35477
35545
|
*/
|
|
35478
35546
|
LanguageServerConfig.prototype.startCommand = null;
|
|
35479
35547
|
|
|
35548
|
+
/**
|
|
35549
|
+
* LanguageServerConfig configurationJson.
|
|
35550
|
+
* @member {string} configurationJson
|
|
35551
|
+
* @memberof api.LanguageServerConfig
|
|
35552
|
+
* @instance
|
|
35553
|
+
*/
|
|
35554
|
+
LanguageServerConfig.prototype.configurationJson = "";
|
|
35555
|
+
|
|
35556
|
+
/**
|
|
35557
|
+
* LanguageServerConfig initializationOptionsJson.
|
|
35558
|
+
* @member {string} initializationOptionsJson
|
|
35559
|
+
* @memberof api.LanguageServerConfig
|
|
35560
|
+
* @instance
|
|
35561
|
+
*/
|
|
35562
|
+
LanguageServerConfig.prototype.initializationOptionsJson = "";
|
|
35563
|
+
|
|
35480
35564
|
/**
|
|
35481
35565
|
* Creates a new LanguageServerConfig instance using the specified properties.
|
|
35482
35566
|
* @function create
|
|
@@ -35503,6 +35587,10 @@
|
|
|
35503
35587
|
writer = $Writer.create();
|
|
35504
35588
|
if (message.startCommand != null && Object.hasOwnProperty.call(message, "startCommand"))
|
|
35505
35589
|
$root.api.Exec.encode(message.startCommand, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
35590
|
+
if (message.configurationJson != null && Object.hasOwnProperty.call(message, "configurationJson"))
|
|
35591
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.configurationJson);
|
|
35592
|
+
if (message.initializationOptionsJson != null && Object.hasOwnProperty.call(message, "initializationOptionsJson"))
|
|
35593
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.initializationOptionsJson);
|
|
35506
35594
|
return writer;
|
|
35507
35595
|
};
|
|
35508
35596
|
|
|
@@ -35540,6 +35628,12 @@
|
|
|
35540
35628
|
case 1:
|
|
35541
35629
|
message.startCommand = $root.api.Exec.decode(reader, reader.uint32());
|
|
35542
35630
|
break;
|
|
35631
|
+
case 2:
|
|
35632
|
+
message.configurationJson = reader.string();
|
|
35633
|
+
break;
|
|
35634
|
+
case 3:
|
|
35635
|
+
message.initializationOptionsJson = reader.string();
|
|
35636
|
+
break;
|
|
35543
35637
|
default:
|
|
35544
35638
|
reader.skipType(tag & 7);
|
|
35545
35639
|
break;
|
|
@@ -35580,6 +35674,12 @@
|
|
|
35580
35674
|
if (error)
|
|
35581
35675
|
return "startCommand." + error;
|
|
35582
35676
|
}
|
|
35677
|
+
if (message.configurationJson != null && message.hasOwnProperty("configurationJson"))
|
|
35678
|
+
if (!$util.isString(message.configurationJson))
|
|
35679
|
+
return "configurationJson: string expected";
|
|
35680
|
+
if (message.initializationOptionsJson != null && message.hasOwnProperty("initializationOptionsJson"))
|
|
35681
|
+
if (!$util.isString(message.initializationOptionsJson))
|
|
35682
|
+
return "initializationOptionsJson: string expected";
|
|
35583
35683
|
return null;
|
|
35584
35684
|
};
|
|
35585
35685
|
|
|
@@ -35600,6 +35700,10 @@
|
|
|
35600
35700
|
throw TypeError(".api.LanguageServerConfig.startCommand: object expected");
|
|
35601
35701
|
message.startCommand = $root.api.Exec.fromObject(object.startCommand);
|
|
35602
35702
|
}
|
|
35703
|
+
if (object.configurationJson != null)
|
|
35704
|
+
message.configurationJson = String(object.configurationJson);
|
|
35705
|
+
if (object.initializationOptionsJson != null)
|
|
35706
|
+
message.initializationOptionsJson = String(object.initializationOptionsJson);
|
|
35603
35707
|
return message;
|
|
35604
35708
|
};
|
|
35605
35709
|
|
|
@@ -35616,10 +35720,17 @@
|
|
|
35616
35720
|
if (!options)
|
|
35617
35721
|
options = {};
|
|
35618
35722
|
var object = {};
|
|
35619
|
-
if (options.defaults)
|
|
35723
|
+
if (options.defaults) {
|
|
35620
35724
|
object.startCommand = null;
|
|
35725
|
+
object.configurationJson = "";
|
|
35726
|
+
object.initializationOptionsJson = "";
|
|
35727
|
+
}
|
|
35621
35728
|
if (message.startCommand != null && message.hasOwnProperty("startCommand"))
|
|
35622
35729
|
object.startCommand = $root.api.Exec.toObject(message.startCommand, options);
|
|
35730
|
+
if (message.configurationJson != null && message.hasOwnProperty("configurationJson"))
|
|
35731
|
+
object.configurationJson = message.configurationJson;
|
|
35732
|
+
if (message.initializationOptionsJson != null && message.hasOwnProperty("initializationOptionsJson"))
|
|
35733
|
+
object.initializationOptionsJson = message.initializationOptionsJson;
|
|
35623
35734
|
return object;
|
|
35624
35735
|
};
|
|
35625
35736
|
|
package/main/index.js.flow
CHANGED
|
@@ -13003,6 +13003,11 @@ declare type api$IUser = {|
|
|
|
13003
13003
|
* User session
|
|
13004
13004
|
*/
|
|
13005
13005
|
session?: number | null,
|
|
13006
|
+
|
|
13007
|
+
/**
|
|
13008
|
+
* User teams
|
|
13009
|
+
*/
|
|
13010
|
+
teams?: string[] | null,
|
|
13006
13011
|
|};
|
|
13007
13012
|
|
|
13008
13013
|
/**
|
|
@@ -13035,6 +13040,11 @@ declare class api$User {
|
|
|
13035
13040
|
*/
|
|
13036
13041
|
session: number;
|
|
13037
13042
|
|
|
13043
|
+
/**
|
|
13044
|
+
* User teams.
|
|
13045
|
+
*/
|
|
13046
|
+
teams: string[];
|
|
13047
|
+
|
|
13038
13048
|
/**
|
|
13039
13049
|
* Creates a new User instance using the specified properties.
|
|
13040
13050
|
* @param [properties] Properties to set
|
|
@@ -15088,7 +15098,12 @@ declare class api$PackageRemove {
|
|
|
15088
15098
|
/**
|
|
15089
15099
|
* Properties of a PackageInstall.
|
|
15090
15100
|
*/
|
|
15091
|
-
declare type api$IPackageInstall = {
|
|
15101
|
+
declare type api$IPackageInstall = {|
|
|
15102
|
+
/**
|
|
15103
|
+
* PackageInstall fromHosting
|
|
15104
|
+
*/
|
|
15105
|
+
fromHosting?: boolean | null,
|
|
15106
|
+
|};
|
|
15092
15107
|
|
|
15093
15108
|
/**
|
|
15094
15109
|
* Represents a PackageInstall.
|
|
@@ -15100,6 +15115,11 @@ declare class api$PackageInstall {
|
|
|
15100
15115
|
*/
|
|
15101
15116
|
constructor(properties?: api$IPackageInstall): this;
|
|
15102
15117
|
|
|
15118
|
+
/**
|
|
15119
|
+
* PackageInstall fromHosting.
|
|
15120
|
+
*/
|
|
15121
|
+
fromHosting: boolean;
|
|
15122
|
+
|
|
15103
15123
|
/**
|
|
15104
15124
|
* Creates a new PackageInstall instance using the specified properties.
|
|
15105
15125
|
* @param [properties] Properties to set
|
|
@@ -19662,6 +19682,16 @@ declare type api$ILanguageServerConfig = {|
|
|
|
19662
19682
|
* LanguageServerConfig startCommand
|
|
19663
19683
|
*/
|
|
19664
19684
|
startCommand?: api$Exec | api$IExec | null,
|
|
19685
|
+
|
|
19686
|
+
/**
|
|
19687
|
+
* LanguageServerConfig configurationJson
|
|
19688
|
+
*/
|
|
19689
|
+
configurationJson?: string | null,
|
|
19690
|
+
|
|
19691
|
+
/**
|
|
19692
|
+
* LanguageServerConfig initializationOptionsJson
|
|
19693
|
+
*/
|
|
19694
|
+
initializationOptionsJson?: string | null,
|
|
19665
19695
|
|};
|
|
19666
19696
|
|
|
19667
19697
|
/**
|
|
@@ -19679,6 +19709,16 @@ declare class api$LanguageServerConfig {
|
|
|
19679
19709
|
*/
|
|
19680
19710
|
startCommand?: api$Exec | null;
|
|
19681
19711
|
|
|
19712
|
+
/**
|
|
19713
|
+
* LanguageServerConfig configurationJson.
|
|
19714
|
+
*/
|
|
19715
|
+
configurationJson: string;
|
|
19716
|
+
|
|
19717
|
+
/**
|
|
19718
|
+
* LanguageServerConfig initializationOptionsJson.
|
|
19719
|
+
*/
|
|
19720
|
+
initializationOptionsJson: string;
|
|
19721
|
+
|
|
19682
19722
|
/**
|
|
19683
19723
|
* Creates a new LanguageServerConfig instance using the specified properties.
|
|
19684
19724
|
* @param [properties] Properties to set
|