@replit/protocol 0.2.44 → 0.2.47

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.
@@ -889,6 +889,9 @@ export namespace api {
889
889
 
890
890
  /** MatchMatchOptions expected */
891
891
  expected?: (string|null);
892
+
893
+ /** MatchMatchOptions ignoreTrailingWhitespace */
894
+ ignoreTrailingWhitespace?: (boolean|null);
892
895
  }
893
896
 
894
897
  /** Represents a MatchMatchOptions. */
@@ -903,6 +906,9 @@ export namespace api {
903
906
  /** MatchMatchOptions expected. */
904
907
  public expected: string;
905
908
 
909
+ /** MatchMatchOptions ignoreTrailingWhitespace. */
910
+ public ignoreTrailingWhitespace: boolean;
911
+
906
912
  /**
907
913
  * Creates a new MatchMatchOptions instance using the specified properties.
908
914
  * @param [properties] Properties to set
package/iotester/index.js CHANGED
@@ -2164,6 +2164,7 @@
2164
2164
  * @memberof api
2165
2165
  * @interface IMatchMatchOptions
2166
2166
  * @property {string|null} [expected] MatchMatchOptions expected
2167
+ * @property {boolean|null} [ignoreTrailingWhitespace] MatchMatchOptions ignoreTrailingWhitespace
2167
2168
  */
2168
2169
 
2169
2170
  /**
@@ -2188,6 +2189,14 @@
2188
2189
  */
2189
2190
  MatchMatchOptions.prototype.expected = "";
2190
2191
 
2192
+ /**
2193
+ * MatchMatchOptions ignoreTrailingWhitespace.
2194
+ * @member {boolean} ignoreTrailingWhitespace
2195
+ * @memberof api.MatchMatchOptions
2196
+ * @instance
2197
+ */
2198
+ MatchMatchOptions.prototype.ignoreTrailingWhitespace = false;
2199
+
2191
2200
  /**
2192
2201
  * Creates a new MatchMatchOptions instance using the specified properties.
2193
2202
  * @function create
@@ -2214,6 +2223,8 @@
2214
2223
  writer = $Writer.create();
2215
2224
  if (message.expected != null && Object.hasOwnProperty.call(message, "expected"))
2216
2225
  writer.uint32(/* id 1, wireType 2 =*/10).string(message.expected);
2226
+ if (message.ignoreTrailingWhitespace != null && Object.hasOwnProperty.call(message, "ignoreTrailingWhitespace"))
2227
+ writer.uint32(/* id 2, wireType 0 =*/16).bool(message.ignoreTrailingWhitespace);
2217
2228
  return writer;
2218
2229
  };
2219
2230
 
@@ -2251,6 +2262,9 @@
2251
2262
  case 1:
2252
2263
  message.expected = reader.string();
2253
2264
  break;
2265
+ case 2:
2266
+ message.ignoreTrailingWhitespace = reader.bool();
2267
+ break;
2254
2268
  default:
2255
2269
  reader.skipType(tag & 7);
2256
2270
  break;
@@ -2289,6 +2303,9 @@
2289
2303
  if (message.expected != null && message.hasOwnProperty("expected"))
2290
2304
  if (!$util.isString(message.expected))
2291
2305
  return "expected: string expected";
2306
+ if (message.ignoreTrailingWhitespace != null && message.hasOwnProperty("ignoreTrailingWhitespace"))
2307
+ if (typeof message.ignoreTrailingWhitespace !== "boolean")
2308
+ return "ignoreTrailingWhitespace: boolean expected";
2292
2309
  return null;
2293
2310
  };
2294
2311
 
@@ -2306,6 +2323,8 @@
2306
2323
  var message = new $root.api.MatchMatchOptions();
2307
2324
  if (object.expected != null)
2308
2325
  message.expected = String(object.expected);
2326
+ if (object.ignoreTrailingWhitespace != null)
2327
+ message.ignoreTrailingWhitespace = Boolean(object.ignoreTrailingWhitespace);
2309
2328
  return message;
2310
2329
  };
2311
2330
 
@@ -2322,10 +2341,14 @@
2322
2341
  if (!options)
2323
2342
  options = {};
2324
2343
  var object = {};
2325
- if (options.defaults)
2344
+ if (options.defaults) {
2326
2345
  object.expected = "";
2346
+ object.ignoreTrailingWhitespace = false;
2347
+ }
2327
2348
  if (message.expected != null && message.hasOwnProperty("expected"))
2328
2349
  object.expected = message.expected;
2350
+ if (message.ignoreTrailingWhitespace != null && message.hasOwnProperty("ignoreTrailingWhitespace"))
2351
+ object.ignoreTrailingWhitespace = message.ignoreTrailingWhitespace;
2329
2352
  return object;
2330
2353
  };
2331
2354
 
@@ -1228,6 +1228,11 @@ declare type api$IMatchMatchOptions = {|
1228
1228
  * MatchMatchOptions expected
1229
1229
  */
1230
1230
  expected?: string | null,
1231
+
1232
+ /**
1233
+ * MatchMatchOptions ignoreTrailingWhitespace
1234
+ */
1235
+ ignoreTrailingWhitespace?: boolean | null,
1231
1236
  |};
1232
1237
 
1233
1238
  /**
@@ -1245,6 +1250,11 @@ declare class api$MatchMatchOptions {
1245
1250
  */
1246
1251
  expected: string;
1247
1252
 
1253
+ /**
1254
+ * MatchMatchOptions ignoreTrailingWhitespace.
1255
+ */
1256
+ ignoreTrailingWhitespace: boolean;
1257
+
1248
1258
  /**
1249
1259
  * Creates a new MatchMatchOptions instance using the specified properties.
1250
1260
  * @param [properties] Properties to set
package/main/index.d.ts CHANGED
@@ -445,6 +445,9 @@ export namespace api {
445
445
 
446
446
  /** Command ref */
447
447
  ref?: (string|null);
448
+
449
+ /** Command traceInfo */
450
+ traceInfo?: ({ [k: string]: string }|null);
448
451
  }
449
452
 
450
453
  /** Represents a Command. */
@@ -897,6 +900,9 @@ export namespace api {
897
900
  /** Command ref. */
898
901
  public ref: string;
899
902
 
903
+ /** Command traceInfo. */
904
+ public traceInfo: { [k: string]: string };
905
+
900
906
  /** Command body. */
901
907
  public body?: ("openChan"|"openChanRes"|"closeChan"|"closeChanRes"|"containerState"|"portOpen"|"toast"|"protocolError"|"redirect"|"alwaysOn"|"runMain"|"clear"|"eval"|"result"|"input"|"output"|"error"|"stderr"|"log"|"saneTerm"|"resizeTerm"|"state"|"ok"|"persist"|"persistMirror"|"write"|"remove"|"move"|"tryRemove"|"mkdir"|"stat"|"statRes"|"transferStart"|"transferChunk"|"transferComplete"|"transferCancel"|"transfer"|"read"|"readdir"|"files"|"file"|"checkChanges"|"changedFiles"|"lintResults"|"runContainedTest"|"testResult"|"debuggerStart"|"debuggerStep"|"debuggerStatus"|"ensurePackages"|"ping"|"pong"|"hello"|"goodbye"|"hint"|"connect"|"send"|"recv"|"disconnect"|"fileAuthReq"|"fileAuthRes"|"mutliFileAuthRes"|"listObjects"|"listObjectsResp"|"ot"|"otstatus"|"otLinkFile"|"otLinkFileResponse"|"otNewCursor"|"otDeleteCursor"|"otFetchRequest"|"otFetchResponse"|"otTransformSelectionRequest"|"otTransformSelectionResponse"|"flush"|"debug"|"startVCR"|"readVCR"|"VCRLog"|"auth"|"execInfo"|"subscribeFile"|"fileEvent"|"roster"|"join"|"part"|"openFile"|"fileOpened"|"followUser"|"unfollowUser"|"updateSessionTimestamp"|"sessionTimestampUpdated"|"exec"|"packageSearch"|"packageSearchResp"|"packageInfo"|"packageInfoResp"|"packageAdd"|"packageRemove"|"packageInstall"|"packageListSpecfile"|"packageListSpecfileResp"|"packageCacheSave"|"chatMessage"|"chatTyping"|"chatScrollback"|"fsSnapshot"|"fsSnapshotEvent"|"fsTakeLock"|"fsReleaseLock"|"hasCap"|"snapshotEvent"|"NoninteractiveFSChangeEvent"|"pid1Config"|"metrics"|"bootStatus"|"readMetaRequest"|"readMetaResponse"|"writeMetaRequest"|"writeMetaResponse"|"appendMetaRequest"|"appendMetaResponse"|"audio"|"pprofRequest"|"pprofResponse"|"audio2"|"PTYConfig"|"debugMain"|"debugState"|"debugMainReply"|"debugInput"|"debugOutput"|"debugStop"|"debugLeave"|"debugSessions"|"debugAddBreakpointRequest"|"debugUpdateBreakpointRequest"|"debugRemoveBreakpointRequest"|"debugBreakpointEvent"|"dotReplitGetRequest"|"dotReplitGetResponse"|"runConfigGetRequest"|"runConfigGetResponse"|"startLSP");
902
908
 
@@ -9257,6 +9263,9 @@ export namespace api {
9257
9263
 
9258
9264
  /** User session */
9259
9265
  session?: (number|null);
9266
+
9267
+ /** User teams */
9268
+ teams?: (string[]|null);
9260
9269
  }
9261
9270
 
9262
9271
  /** Represents a User. */
@@ -9280,6 +9289,9 @@ export namespace api {
9280
9289
  /** User session. */
9281
9290
  public session: number;
9282
9291
 
9292
+ /** User teams. */
9293
+ public teams: string[];
9294
+
9283
9295
  /**
9284
9296
  * Creates a new User instance using the specified properties.
9285
9297
  * @param [properties] Properties to set
@@ -10827,6 +10839,9 @@ export namespace api {
10827
10839
 
10828
10840
  /** Properties of a PackageInstall. */
10829
10841
  interface IPackageInstall {
10842
+
10843
+ /** PackageInstall fromHosting */
10844
+ fromHosting?: (boolean|null);
10830
10845
  }
10831
10846
 
10832
10847
  /** Represents a PackageInstall. */
@@ -10838,6 +10853,9 @@ export namespace api {
10838
10853
  */
10839
10854
  private constructor(properties?: api.IPackageInstall);
10840
10855
 
10856
+ /** PackageInstall fromHosting. */
10857
+ public fromHosting: boolean;
10858
+
10841
10859
  /**
10842
10860
  * Creates a new PackageInstall instance using the specified properties.
10843
10861
  * @param [properties] Properties to set
@@ -14225,6 +14243,12 @@ export namespace api {
14225
14243
 
14226
14244
  /** LanguageServerConfig startCommand */
14227
14245
  startCommand?: (api.Exec|api.IExec|null);
14246
+
14247
+ /** LanguageServerConfig configurationJson */
14248
+ configurationJson?: (string|null);
14249
+
14250
+ /** LanguageServerConfig initializationOptionsJson */
14251
+ initializationOptionsJson?: (string|null);
14228
14252
  }
14229
14253
 
14230
14254
  /** Represents a LanguageServerConfig. */
@@ -14239,6 +14263,12 @@ export namespace api {
14239
14263
  /** LanguageServerConfig startCommand. */
14240
14264
  public startCommand?: (api.Exec|null);
14241
14265
 
14266
+ /** LanguageServerConfig configurationJson. */
14267
+ public configurationJson: string;
14268
+
14269
+ /** LanguageServerConfig initializationOptionsJson. */
14270
+ public initializationOptionsJson: string;
14271
+
14242
14272
  /**
14243
14273
  * Creates a new LanguageServerConfig instance using the specified properties.
14244
14274
  * @param [properties] Properties to set
@@ -14846,6 +14876,9 @@ export namespace api {
14846
14876
 
14847
14877
  /** ResourceLimits cache */
14848
14878
  cache?: (api.ResourceLimits.Cachability|null);
14879
+
14880
+ /** ResourceLimits restrictNetwork */
14881
+ restrictNetwork?: (boolean|null);
14849
14882
  }
14850
14883
 
14851
14884
  /** Represents a ResourceLimits. */
@@ -14875,6 +14908,9 @@ export namespace api {
14875
14908
  /** ResourceLimits cache. */
14876
14909
  public cache: api.ResourceLimits.Cachability;
14877
14910
 
14911
+ /** ResourceLimits restrictNetwork. */
14912
+ public restrictNetwork: boolean;
14913
+
14878
14914
  /**
14879
14915
  * Creates a new ResourceLimits instance using the specified properties.
14880
14916
  * @param [properties] Properties to set
@@ -15833,14 +15869,8 @@ export namespace api {
15833
15869
  /** ClusterMetadata gurl */
15834
15870
  gurl?: (string|null);
15835
15871
 
15836
- /** ClusterMetadata proxyHost */
15837
- proxyHost?: (string|null);
15838
-
15839
15872
  /** ClusterMetadata proxy */
15840
15873
  proxy?: (string|null);
15841
-
15842
- /** ClusterMetadata proxyIP */
15843
- proxyIP?: (string|null);
15844
15874
  }
15845
15875
 
15846
15876
  /** Represents a ClusterMetadata. */
@@ -15861,15 +15891,9 @@ export namespace api {
15861
15891
  /** ClusterMetadata gurl. */
15862
15892
  public gurl: string;
15863
15893
 
15864
- /** ClusterMetadata proxyHost. */
15865
- public proxyHost: string;
15866
-
15867
15894
  /** ClusterMetadata proxy. */
15868
15895
  public proxy: string;
15869
15896
 
15870
- /** ClusterMetadata proxyIP. */
15871
- public proxyIP: string;
15872
-
15873
15897
  /**
15874
15898
  * Creates a new ClusterMetadata instance using the specified properties.
15875
15899
  * @param [properties] Properties to set
package/main/index.js CHANGED
@@ -178,6 +178,7 @@
178
178
  * @property {api.RunConfigGetResponse|api.IRunConfigGetResponse|null} [runConfigGetResponse] Command runConfigGetResponse
179
179
  * @property {api.StartLSP|api.IStartLSP|null} [startLSP] Command startLSP
180
180
  * @property {string|null} [ref] Command ref
181
+ * @property {Object.<string,string>|null} [traceInfo] Command traceInfo
181
182
  */
182
183
 
183
184
  /**
@@ -188,6 +189,7 @@
188
189
  * @param {api.ICommand=} [properties] Properties to set
189
190
  */
190
191
  function Command(properties) {
192
+ this.traceInfo = {};
191
193
  if (properties)
192
194
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
193
195
  if (properties[keys[i]] != null)
@@ -1370,6 +1372,14 @@
1370
1372
  */
1371
1373
  Command.prototype.ref = "";
1372
1374
 
1375
+ /**
1376
+ * Command traceInfo.
1377
+ * @member {Object.<string,string>} traceInfo
1378
+ * @memberof api.Command
1379
+ * @instance
1380
+ */
1381
+ Command.prototype.traceInfo = $util.emptyObject;
1382
+
1373
1383
  // OneOf field names bound to virtual getters and setters
1374
1384
  var $oneOfFields;
1375
1385
 
@@ -1702,6 +1712,9 @@
1702
1712
  writer.uint32(/* id 392, wireType 0 =*/3136).bool(message.NoninteractiveFSChangeEvent);
1703
1713
  if (message.ref != null && Object.hasOwnProperty.call(message, "ref"))
1704
1714
  writer.uint32(/* id 1000, wireType 2 =*/8002).string(message.ref);
1715
+ if (message.traceInfo != null && Object.hasOwnProperty.call(message, "traceInfo"))
1716
+ for (var keys = Object.keys(message.traceInfo), i = 0; i < keys.length; ++i)
1717
+ writer.uint32(/* id 1001, wireType 2 =*/8010).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.traceInfo[keys[i]]).ldelim();
1705
1718
  return writer;
1706
1719
  };
1707
1720
 
@@ -1732,7 +1745,7 @@
1732
1745
  Command.decode = function decode(reader, length) {
1733
1746
  if (!(reader instanceof $Reader))
1734
1747
  reader = $Reader.create(reader);
1735
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.api.Command();
1748
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.api.Command(), key, value;
1736
1749
  while (reader.pos < end) {
1737
1750
  var tag = reader.uint32();
1738
1751
  switch (tag >>> 3) {
@@ -2177,6 +2190,28 @@
2177
2190
  case 1000:
2178
2191
  message.ref = reader.string();
2179
2192
  break;
2193
+ case 1001:
2194
+ if (message.traceInfo === $util.emptyObject)
2195
+ message.traceInfo = {};
2196
+ var end2 = reader.uint32() + reader.pos;
2197
+ key = "";
2198
+ value = "";
2199
+ while (reader.pos < end2) {
2200
+ var tag2 = reader.uint32();
2201
+ switch (tag2 >>> 3) {
2202
+ case 1:
2203
+ key = reader.string();
2204
+ break;
2205
+ case 2:
2206
+ value = reader.string();
2207
+ break;
2208
+ default:
2209
+ reader.skipType(tag2 & 7);
2210
+ break;
2211
+ }
2212
+ }
2213
+ message.traceInfo[key] = value;
2214
+ break;
2180
2215
  default:
2181
2216
  reader.skipType(tag & 7);
2182
2217
  break;
@@ -3632,6 +3667,14 @@
3632
3667
  if (message.ref != null && message.hasOwnProperty("ref"))
3633
3668
  if (!$util.isString(message.ref))
3634
3669
  return "ref: string expected";
3670
+ if (message.traceInfo != null && message.hasOwnProperty("traceInfo")) {
3671
+ if (!$util.isObject(message.traceInfo))
3672
+ return "traceInfo: object expected";
3673
+ var key = Object.keys(message.traceInfo);
3674
+ for (var i = 0; i < key.length; ++i)
3675
+ if (!$util.isString(message.traceInfo[key[i]]))
3676
+ return "traceInfo: string{k:string} expected";
3677
+ }
3635
3678
  return null;
3636
3679
  };
3637
3680
 
@@ -4348,6 +4391,13 @@
4348
4391
  }
4349
4392
  if (object.ref != null)
4350
4393
  message.ref = String(object.ref);
4394
+ if (object.traceInfo) {
4395
+ if (typeof object.traceInfo !== "object")
4396
+ throw TypeError(".api.Command.traceInfo: object expected");
4397
+ message.traceInfo = {};
4398
+ for (var keys = Object.keys(object.traceInfo), i = 0; i < keys.length; ++i)
4399
+ message.traceInfo[keys[i]] = String(object.traceInfo[keys[i]]);
4400
+ }
4351
4401
  return message;
4352
4402
  };
4353
4403
 
@@ -4364,6 +4414,8 @@
4364
4414
  if (!options)
4365
4415
  options = {};
4366
4416
  var object = {};
4417
+ if (options.objects || options.defaults)
4418
+ object.traceInfo = {};
4367
4419
  if (options.defaults) {
4368
4420
  object.channel = 0;
4369
4421
  object.session = 0;
@@ -5095,6 +5147,12 @@
5095
5147
  }
5096
5148
  if (message.ref != null && message.hasOwnProperty("ref"))
5097
5149
  object.ref = message.ref;
5150
+ var keys2;
5151
+ if (message.traceInfo && (keys2 = Object.keys(message.traceInfo)).length) {
5152
+ object.traceInfo = {};
5153
+ for (var j = 0; j < keys2.length; ++j)
5154
+ object.traceInfo[keys2[j]] = message.traceInfo[keys2[j]];
5155
+ }
5098
5156
  return object;
5099
5157
  };
5100
5158
 
@@ -23956,6 +24014,7 @@
23956
24014
  * @property {string|null} [name] User name
23957
24015
  * @property {Array.<string>|null} [roles] User roles
23958
24016
  * @property {number|null} [session] User session
24017
+ * @property {Array.<string>|null} [teams] User teams
23959
24018
  */
23960
24019
 
23961
24020
  /**
@@ -23967,6 +24026,7 @@
23967
24026
  */
23968
24027
  function User(properties) {
23969
24028
  this.roles = [];
24029
+ this.teams = [];
23970
24030
  if (properties)
23971
24031
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
23972
24032
  if (properties[keys[i]] != null)
@@ -24005,6 +24065,14 @@
24005
24065
  */
24006
24066
  User.prototype.session = 0;
24007
24067
 
24068
+ /**
24069
+ * User teams.
24070
+ * @member {Array.<string>} teams
24071
+ * @memberof api.User
24072
+ * @instance
24073
+ */
24074
+ User.prototype.teams = $util.emptyArray;
24075
+
24008
24076
  /**
24009
24077
  * Creates a new User instance using the specified properties.
24010
24078
  * @function create
@@ -24038,6 +24106,9 @@
24038
24106
  writer.uint32(/* id 3, wireType 2 =*/26).string(message.roles[i]);
24039
24107
  if (message.session != null && Object.hasOwnProperty.call(message, "session"))
24040
24108
  writer.uint32(/* id 4, wireType 0 =*/32).int32(message.session);
24109
+ if (message.teams != null && message.teams.length)
24110
+ for (var i = 0; i < message.teams.length; ++i)
24111
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.teams[i]);
24041
24112
  return writer;
24042
24113
  };
24043
24114
 
@@ -24086,6 +24157,11 @@
24086
24157
  case 4:
24087
24158
  message.session = reader.int32();
24088
24159
  break;
24160
+ case 5:
24161
+ if (!(message.teams && message.teams.length))
24162
+ message.teams = [];
24163
+ message.teams.push(reader.string());
24164
+ break;
24089
24165
  default:
24090
24166
  reader.skipType(tag & 7);
24091
24167
  break;
@@ -24137,6 +24213,13 @@
24137
24213
  if (message.session != null && message.hasOwnProperty("session"))
24138
24214
  if (!$util.isInteger(message.session))
24139
24215
  return "session: integer expected";
24216
+ if (message.teams != null && message.hasOwnProperty("teams")) {
24217
+ if (!Array.isArray(message.teams))
24218
+ return "teams: array expected";
24219
+ for (var i = 0; i < message.teams.length; ++i)
24220
+ if (!$util.isString(message.teams[i]))
24221
+ return "teams: string[] expected";
24222
+ }
24140
24223
  return null;
24141
24224
  };
24142
24225
 
@@ -24165,6 +24248,13 @@
24165
24248
  }
24166
24249
  if (object.session != null)
24167
24250
  message.session = object.session | 0;
24251
+ if (object.teams) {
24252
+ if (!Array.isArray(object.teams))
24253
+ throw TypeError(".api.User.teams: array expected");
24254
+ message.teams = [];
24255
+ for (var i = 0; i < object.teams.length; ++i)
24256
+ message.teams[i] = String(object.teams[i]);
24257
+ }
24168
24258
  return message;
24169
24259
  };
24170
24260
 
@@ -24181,8 +24271,10 @@
24181
24271
  if (!options)
24182
24272
  options = {};
24183
24273
  var object = {};
24184
- if (options.arrays || options.defaults)
24274
+ if (options.arrays || options.defaults) {
24185
24275
  object.roles = [];
24276
+ object.teams = [];
24277
+ }
24186
24278
  if (options.defaults) {
24187
24279
  object.id = 0;
24188
24280
  object.name = "";
@@ -24199,6 +24291,11 @@
24199
24291
  }
24200
24292
  if (message.session != null && message.hasOwnProperty("session"))
24201
24293
  object.session = message.session;
24294
+ if (message.teams && message.teams.length) {
24295
+ object.teams = [];
24296
+ for (var j = 0; j < message.teams.length; ++j)
24297
+ object.teams[j] = message.teams[j];
24298
+ }
24202
24299
  return object;
24203
24300
  };
24204
24301
 
@@ -27664,6 +27761,7 @@
27664
27761
  * Properties of a PackageInstall.
27665
27762
  * @memberof api
27666
27763
  * @interface IPackageInstall
27764
+ * @property {boolean|null} [fromHosting] PackageInstall fromHosting
27667
27765
  */
27668
27766
 
27669
27767
  /**
@@ -27680,6 +27778,14 @@
27680
27778
  this[keys[i]] = properties[keys[i]];
27681
27779
  }
27682
27780
 
27781
+ /**
27782
+ * PackageInstall fromHosting.
27783
+ * @member {boolean} fromHosting
27784
+ * @memberof api.PackageInstall
27785
+ * @instance
27786
+ */
27787
+ PackageInstall.prototype.fromHosting = false;
27788
+
27683
27789
  /**
27684
27790
  * Creates a new PackageInstall instance using the specified properties.
27685
27791
  * @function create
@@ -27704,6 +27810,8 @@
27704
27810
  PackageInstall.encode = function encode(message, writer) {
27705
27811
  if (!writer)
27706
27812
  writer = $Writer.create();
27813
+ if (message.fromHosting != null && Object.hasOwnProperty.call(message, "fromHosting"))
27814
+ writer.uint32(/* id 1, wireType 0 =*/8).bool(message.fromHosting);
27707
27815
  return writer;
27708
27816
  };
27709
27817
 
@@ -27738,6 +27846,9 @@
27738
27846
  while (reader.pos < end) {
27739
27847
  var tag = reader.uint32();
27740
27848
  switch (tag >>> 3) {
27849
+ case 1:
27850
+ message.fromHosting = reader.bool();
27851
+ break;
27741
27852
  default:
27742
27853
  reader.skipType(tag & 7);
27743
27854
  break;
@@ -27773,6 +27884,9 @@
27773
27884
  PackageInstall.verify = function verify(message) {
27774
27885
  if (typeof message !== "object" || message === null)
27775
27886
  return "object expected";
27887
+ if (message.fromHosting != null && message.hasOwnProperty("fromHosting"))
27888
+ if (typeof message.fromHosting !== "boolean")
27889
+ return "fromHosting: boolean expected";
27776
27890
  return null;
27777
27891
  };
27778
27892
 
@@ -27787,7 +27901,10 @@
27787
27901
  PackageInstall.fromObject = function fromObject(object) {
27788
27902
  if (object instanceof $root.api.PackageInstall)
27789
27903
  return object;
27790
- return new $root.api.PackageInstall();
27904
+ var message = new $root.api.PackageInstall();
27905
+ if (object.fromHosting != null)
27906
+ message.fromHosting = Boolean(object.fromHosting);
27907
+ return message;
27791
27908
  };
27792
27909
 
27793
27910
  /**
@@ -27799,8 +27916,15 @@
27799
27916
  * @param {$protobuf.IConversionOptions} [options] Conversion options
27800
27917
  * @returns {Object.<string,*>} Plain object
27801
27918
  */
27802
- PackageInstall.toObject = function toObject() {
27803
- return {};
27919
+ PackageInstall.toObject = function toObject(message, options) {
27920
+ if (!options)
27921
+ options = {};
27922
+ var object = {};
27923
+ if (options.defaults)
27924
+ object.fromHosting = false;
27925
+ if (message.fromHosting != null && message.hasOwnProperty("fromHosting"))
27926
+ object.fromHosting = message.fromHosting;
27927
+ return object;
27804
27928
  };
27805
27929
 
27806
27930
  /**
@@ -35453,6 +35577,8 @@
35453
35577
  * @memberof api
35454
35578
  * @interface ILanguageServerConfig
35455
35579
  * @property {api.Exec|api.IExec|null} [startCommand] LanguageServerConfig startCommand
35580
+ * @property {string|null} [configurationJson] LanguageServerConfig configurationJson
35581
+ * @property {string|null} [initializationOptionsJson] LanguageServerConfig initializationOptionsJson
35456
35582
  */
35457
35583
 
35458
35584
  /**
@@ -35477,6 +35603,22 @@
35477
35603
  */
35478
35604
  LanguageServerConfig.prototype.startCommand = null;
35479
35605
 
35606
+ /**
35607
+ * LanguageServerConfig configurationJson.
35608
+ * @member {string} configurationJson
35609
+ * @memberof api.LanguageServerConfig
35610
+ * @instance
35611
+ */
35612
+ LanguageServerConfig.prototype.configurationJson = "";
35613
+
35614
+ /**
35615
+ * LanguageServerConfig initializationOptionsJson.
35616
+ * @member {string} initializationOptionsJson
35617
+ * @memberof api.LanguageServerConfig
35618
+ * @instance
35619
+ */
35620
+ LanguageServerConfig.prototype.initializationOptionsJson = "";
35621
+
35480
35622
  /**
35481
35623
  * Creates a new LanguageServerConfig instance using the specified properties.
35482
35624
  * @function create
@@ -35503,6 +35645,10 @@
35503
35645
  writer = $Writer.create();
35504
35646
  if (message.startCommand != null && Object.hasOwnProperty.call(message, "startCommand"))
35505
35647
  $root.api.Exec.encode(message.startCommand, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
35648
+ if (message.configurationJson != null && Object.hasOwnProperty.call(message, "configurationJson"))
35649
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.configurationJson);
35650
+ if (message.initializationOptionsJson != null && Object.hasOwnProperty.call(message, "initializationOptionsJson"))
35651
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.initializationOptionsJson);
35506
35652
  return writer;
35507
35653
  };
35508
35654
 
@@ -35540,6 +35686,12 @@
35540
35686
  case 1:
35541
35687
  message.startCommand = $root.api.Exec.decode(reader, reader.uint32());
35542
35688
  break;
35689
+ case 2:
35690
+ message.configurationJson = reader.string();
35691
+ break;
35692
+ case 3:
35693
+ message.initializationOptionsJson = reader.string();
35694
+ break;
35543
35695
  default:
35544
35696
  reader.skipType(tag & 7);
35545
35697
  break;
@@ -35580,6 +35732,12 @@
35580
35732
  if (error)
35581
35733
  return "startCommand." + error;
35582
35734
  }
35735
+ if (message.configurationJson != null && message.hasOwnProperty("configurationJson"))
35736
+ if (!$util.isString(message.configurationJson))
35737
+ return "configurationJson: string expected";
35738
+ if (message.initializationOptionsJson != null && message.hasOwnProperty("initializationOptionsJson"))
35739
+ if (!$util.isString(message.initializationOptionsJson))
35740
+ return "initializationOptionsJson: string expected";
35583
35741
  return null;
35584
35742
  };
35585
35743
 
@@ -35600,6 +35758,10 @@
35600
35758
  throw TypeError(".api.LanguageServerConfig.startCommand: object expected");
35601
35759
  message.startCommand = $root.api.Exec.fromObject(object.startCommand);
35602
35760
  }
35761
+ if (object.configurationJson != null)
35762
+ message.configurationJson = String(object.configurationJson);
35763
+ if (object.initializationOptionsJson != null)
35764
+ message.initializationOptionsJson = String(object.initializationOptionsJson);
35603
35765
  return message;
35604
35766
  };
35605
35767
 
@@ -35616,10 +35778,17 @@
35616
35778
  if (!options)
35617
35779
  options = {};
35618
35780
  var object = {};
35619
- if (options.defaults)
35781
+ if (options.defaults) {
35620
35782
  object.startCommand = null;
35783
+ object.configurationJson = "";
35784
+ object.initializationOptionsJson = "";
35785
+ }
35621
35786
  if (message.startCommand != null && message.hasOwnProperty("startCommand"))
35622
35787
  object.startCommand = $root.api.Exec.toObject(message.startCommand, options);
35788
+ if (message.configurationJson != null && message.hasOwnProperty("configurationJson"))
35789
+ object.configurationJson = message.configurationJson;
35790
+ if (message.initializationOptionsJson != null && message.hasOwnProperty("initializationOptionsJson"))
35791
+ object.initializationOptionsJson = message.initializationOptionsJson;
35623
35792
  return object;
35624
35793
  };
35625
35794
 
@@ -36904,6 +37073,7 @@
36904
37073
  * @property {number|null} [shares] ResourceLimits shares
36905
37074
  * @property {number|null} [disk] ResourceLimits disk
36906
37075
  * @property {api.ResourceLimits.Cachability|null} [cache] ResourceLimits cache
37076
+ * @property {boolean|null} [restrictNetwork] ResourceLimits restrictNetwork
36907
37077
  */
36908
37078
 
36909
37079
  /**
@@ -36968,6 +37138,14 @@
36968
37138
  */
36969
37139
  ResourceLimits.prototype.cache = 0;
36970
37140
 
37141
+ /**
37142
+ * ResourceLimits restrictNetwork.
37143
+ * @member {boolean} restrictNetwork
37144
+ * @memberof api.ResourceLimits
37145
+ * @instance
37146
+ */
37147
+ ResourceLimits.prototype.restrictNetwork = false;
37148
+
36971
37149
  /**
36972
37150
  * Creates a new ResourceLimits instance using the specified properties.
36973
37151
  * @function create
@@ -37004,6 +37182,8 @@
37004
37182
  writer.uint32(/* id 5, wireType 0 =*/40).int64(message.disk);
37005
37183
  if (message.cache != null && Object.hasOwnProperty.call(message, "cache"))
37006
37184
  writer.uint32(/* id 6, wireType 0 =*/48).int32(message.cache);
37185
+ if (message.restrictNetwork != null && Object.hasOwnProperty.call(message, "restrictNetwork"))
37186
+ writer.uint32(/* id 7, wireType 0 =*/56).bool(message.restrictNetwork);
37007
37187
  return writer;
37008
37188
  };
37009
37189
 
@@ -37056,6 +37236,9 @@
37056
37236
  case 6:
37057
37237
  message.cache = reader.int32();
37058
37238
  break;
37239
+ case 7:
37240
+ message.restrictNetwork = reader.bool();
37241
+ break;
37059
37242
  default:
37060
37243
  reader.skipType(tag & 7);
37061
37244
  break;
@@ -37115,6 +37298,9 @@
37115
37298
  case 2:
37116
37299
  break;
37117
37300
  }
37301
+ if (message.restrictNetwork != null && message.hasOwnProperty("restrictNetwork"))
37302
+ if (typeof message.restrictNetwork !== "boolean")
37303
+ return "restrictNetwork: boolean expected";
37118
37304
  return null;
37119
37305
  };
37120
37306
 
@@ -37168,6 +37354,8 @@
37168
37354
  message.cache = 2;
37169
37355
  break;
37170
37356
  }
37357
+ if (object.restrictNetwork != null)
37358
+ message.restrictNetwork = Boolean(object.restrictNetwork);
37171
37359
  return message;
37172
37360
  };
37173
37361
 
@@ -37199,6 +37387,7 @@
37199
37387
  } else
37200
37388
  object.disk = options.longs === String ? "0" : 0;
37201
37389
  object.cache = options.enums === String ? "NONE" : 0;
37390
+ object.restrictNetwork = false;
37202
37391
  }
37203
37392
  if (message.net != null && message.hasOwnProperty("net"))
37204
37393
  object.net = message.net;
@@ -37218,6 +37407,8 @@
37218
37407
  object.disk = options.longs === String ? $util.Long.prototype.toString.call(message.disk) : options.longs === Number ? new $util.LongBits(message.disk.low >>> 0, message.disk.high >>> 0).toNumber() : message.disk;
37219
37408
  if (message.cache != null && message.hasOwnProperty("cache"))
37220
37409
  object.cache = options.enums === String ? $root.api.ResourceLimits.Cachability[message.cache] : message.cache;
37410
+ if (message.restrictNetwork != null && message.hasOwnProperty("restrictNetwork"))
37411
+ object.restrictNetwork = message.restrictNetwork;
37221
37412
  return object;
37222
37413
  };
37223
37414
 
@@ -39452,9 +39643,7 @@
39452
39643
  * @property {string|null} [id] ClusterMetadata id
39453
39644
  * @property {string|null} [conmanURL] ClusterMetadata conmanURL
39454
39645
  * @property {string|null} [gurl] ClusterMetadata gurl
39455
- * @property {string|null} [proxyHost] ClusterMetadata proxyHost
39456
39646
  * @property {string|null} [proxy] ClusterMetadata proxy
39457
- * @property {string|null} [proxyIP] ClusterMetadata proxyIP
39458
39647
  */
39459
39648
 
39460
39649
  /**
@@ -39495,14 +39684,6 @@
39495
39684
  */
39496
39685
  ClusterMetadata.prototype.gurl = "";
39497
39686
 
39498
- /**
39499
- * ClusterMetadata proxyHost.
39500
- * @member {string} proxyHost
39501
- * @memberof api.ClusterMetadata
39502
- * @instance
39503
- */
39504
- ClusterMetadata.prototype.proxyHost = "";
39505
-
39506
39687
  /**
39507
39688
  * ClusterMetadata proxy.
39508
39689
  * @member {string} proxy
@@ -39511,14 +39692,6 @@
39511
39692
  */
39512
39693
  ClusterMetadata.prototype.proxy = "";
39513
39694
 
39514
- /**
39515
- * ClusterMetadata proxyIP.
39516
- * @member {string} proxyIP
39517
- * @memberof api.ClusterMetadata
39518
- * @instance
39519
- */
39520
- ClusterMetadata.prototype.proxyIP = "";
39521
-
39522
39695
  /**
39523
39696
  * Creates a new ClusterMetadata instance using the specified properties.
39524
39697
  * @function create
@@ -39549,12 +39722,8 @@
39549
39722
  writer.uint32(/* id 2, wireType 2 =*/18).string(message.conmanURL);
39550
39723
  if (message.gurl != null && Object.hasOwnProperty.call(message, "gurl"))
39551
39724
  writer.uint32(/* id 3, wireType 2 =*/26).string(message.gurl);
39552
- if (message.proxyHost != null && Object.hasOwnProperty.call(message, "proxyHost"))
39553
- writer.uint32(/* id 4, wireType 2 =*/34).string(message.proxyHost);
39554
39725
  if (message.proxy != null && Object.hasOwnProperty.call(message, "proxy"))
39555
39726
  writer.uint32(/* id 5, wireType 2 =*/42).string(message.proxy);
39556
- if (message.proxyIP != null && Object.hasOwnProperty.call(message, "proxyIP"))
39557
- writer.uint32(/* id 6, wireType 2 =*/50).string(message.proxyIP);
39558
39727
  return writer;
39559
39728
  };
39560
39729
 
@@ -39598,15 +39767,9 @@
39598
39767
  case 3:
39599
39768
  message.gurl = reader.string();
39600
39769
  break;
39601
- case 4:
39602
- message.proxyHost = reader.string();
39603
- break;
39604
39770
  case 5:
39605
39771
  message.proxy = reader.string();
39606
39772
  break;
39607
- case 6:
39608
- message.proxyIP = reader.string();
39609
- break;
39610
39773
  default:
39611
39774
  reader.skipType(tag & 7);
39612
39775
  break;
@@ -39651,15 +39814,9 @@
39651
39814
  if (message.gurl != null && message.hasOwnProperty("gurl"))
39652
39815
  if (!$util.isString(message.gurl))
39653
39816
  return "gurl: string expected";
39654
- if (message.proxyHost != null && message.hasOwnProperty("proxyHost"))
39655
- if (!$util.isString(message.proxyHost))
39656
- return "proxyHost: string expected";
39657
39817
  if (message.proxy != null && message.hasOwnProperty("proxy"))
39658
39818
  if (!$util.isString(message.proxy))
39659
39819
  return "proxy: string expected";
39660
- if (message.proxyIP != null && message.hasOwnProperty("proxyIP"))
39661
- if (!$util.isString(message.proxyIP))
39662
- return "proxyIP: string expected";
39663
39820
  return null;
39664
39821
  };
39665
39822
 
@@ -39681,12 +39838,8 @@
39681
39838
  message.conmanURL = String(object.conmanURL);
39682
39839
  if (object.gurl != null)
39683
39840
  message.gurl = String(object.gurl);
39684
- if (object.proxyHost != null)
39685
- message.proxyHost = String(object.proxyHost);
39686
39841
  if (object.proxy != null)
39687
39842
  message.proxy = String(object.proxy);
39688
- if (object.proxyIP != null)
39689
- message.proxyIP = String(object.proxyIP);
39690
39843
  return message;
39691
39844
  };
39692
39845
 
@@ -39707,9 +39860,7 @@
39707
39860
  object.id = "";
39708
39861
  object.conmanURL = "";
39709
39862
  object.gurl = "";
39710
- object.proxyHost = "";
39711
39863
  object.proxy = "";
39712
- object.proxyIP = "";
39713
39864
  }
39714
39865
  if (message.id != null && message.hasOwnProperty("id"))
39715
39866
  object.id = message.id;
@@ -39717,12 +39868,8 @@
39717
39868
  object.conmanURL = message.conmanURL;
39718
39869
  if (message.gurl != null && message.hasOwnProperty("gurl"))
39719
39870
  object.gurl = message.gurl;
39720
- if (message.proxyHost != null && message.hasOwnProperty("proxyHost"))
39721
- object.proxyHost = message.proxyHost;
39722
39871
  if (message.proxy != null && message.hasOwnProperty("proxy"))
39723
39872
  object.proxy = message.proxy;
39724
- if (message.proxyIP != null && message.hasOwnProperty("proxyIP"))
39725
- object.proxyIP = message.proxyIP;
39726
39873
  return object;
39727
39874
  };
39728
39875
 
@@ -1105,6 +1105,13 @@ declare type api$ICommand = {|
1105
1105
  * Command ref
1106
1106
  */
1107
1107
  ref?: string | null,
1108
+
1109
+ /**
1110
+ * Command traceInfo
1111
+ */
1112
+ traceInfo?: {|
1113
+ [k: string]: string,
1114
+ |} | null,
1108
1115
  |};
1109
1116
 
1110
1117
  /**
@@ -1852,6 +1859,13 @@ declare class api$Command {
1852
1859
  */
1853
1860
  ref: string;
1854
1861
 
1862
+ /**
1863
+ * Command traceInfo.
1864
+ */
1865
+ traceInfo: {|
1866
+ [k: string]: string,
1867
+ |};
1868
+
1855
1869
  /**
1856
1870
  * Command body.
1857
1871
  */
@@ -13003,6 +13017,11 @@ declare type api$IUser = {|
13003
13017
  * User session
13004
13018
  */
13005
13019
  session?: number | null,
13020
+
13021
+ /**
13022
+ * User teams
13023
+ */
13024
+ teams?: string[] | null,
13006
13025
  |};
13007
13026
 
13008
13027
  /**
@@ -13035,6 +13054,11 @@ declare class api$User {
13035
13054
  */
13036
13055
  session: number;
13037
13056
 
13057
+ /**
13058
+ * User teams.
13059
+ */
13060
+ teams: string[];
13061
+
13038
13062
  /**
13039
13063
  * Creates a new User instance using the specified properties.
13040
13064
  * @param [properties] Properties to set
@@ -15088,7 +15112,12 @@ declare class api$PackageRemove {
15088
15112
  /**
15089
15113
  * Properties of a PackageInstall.
15090
15114
  */
15091
- declare type api$IPackageInstall = {||};
15115
+ declare type api$IPackageInstall = {|
15116
+ /**
15117
+ * PackageInstall fromHosting
15118
+ */
15119
+ fromHosting?: boolean | null,
15120
+ |};
15092
15121
 
15093
15122
  /**
15094
15123
  * Represents a PackageInstall.
@@ -15100,6 +15129,11 @@ declare class api$PackageInstall {
15100
15129
  */
15101
15130
  constructor(properties?: api$IPackageInstall): this;
15102
15131
 
15132
+ /**
15133
+ * PackageInstall fromHosting.
15134
+ */
15135
+ fromHosting: boolean;
15136
+
15103
15137
  /**
15104
15138
  * Creates a new PackageInstall instance using the specified properties.
15105
15139
  * @param [properties] Properties to set
@@ -19662,6 +19696,16 @@ declare type api$ILanguageServerConfig = {|
19662
19696
  * LanguageServerConfig startCommand
19663
19697
  */
19664
19698
  startCommand?: api$Exec | api$IExec | null,
19699
+
19700
+ /**
19701
+ * LanguageServerConfig configurationJson
19702
+ */
19703
+ configurationJson?: string | null,
19704
+
19705
+ /**
19706
+ * LanguageServerConfig initializationOptionsJson
19707
+ */
19708
+ initializationOptionsJson?: string | null,
19665
19709
  |};
19666
19710
 
19667
19711
  /**
@@ -19679,6 +19723,16 @@ declare class api$LanguageServerConfig {
19679
19723
  */
19680
19724
  startCommand?: api$Exec | null;
19681
19725
 
19726
+ /**
19727
+ * LanguageServerConfig configurationJson.
19728
+ */
19729
+ configurationJson: string;
19730
+
19731
+ /**
19732
+ * LanguageServerConfig initializationOptionsJson.
19733
+ */
19734
+ initializationOptionsJson: string;
19735
+
19682
19736
  /**
19683
19737
  * Creates a new LanguageServerConfig instance using the specified properties.
19684
19738
  * @param [properties] Properties to set
@@ -20511,6 +20565,11 @@ declare type api$IResourceLimits = {|
20511
20565
  * ResourceLimits cache
20512
20566
  */
20513
20567
  cache?: $Values<typeof api$ResourceLimits$Cachability> | null,
20568
+
20569
+ /**
20570
+ * ResourceLimits restrictNetwork
20571
+ */
20572
+ restrictNetwork?: boolean | null,
20514
20573
  |};
20515
20574
 
20516
20575
  /**
@@ -20553,6 +20612,11 @@ declare class api$ResourceLimits {
20553
20612
  */
20554
20613
  cache: $Values<typeof api$ResourceLimits$Cachability>;
20555
20614
 
20615
+ /**
20616
+ * ResourceLimits restrictNetwork.
20617
+ */
20618
+ restrictNetwork: boolean;
20619
+
20556
20620
  /**
20557
20621
  * Creates a new ResourceLimits instance using the specified properties.
20558
20622
  * @param [properties] Properties to set
@@ -21865,20 +21929,10 @@ declare type api$IClusterMetadata = {|
21865
21929
  */
21866
21930
  gurl?: string | null,
21867
21931
 
21868
- /**
21869
- * ClusterMetadata proxyHost
21870
- */
21871
- proxyHost?: string | null,
21872
-
21873
21932
  /**
21874
21933
  * ClusterMetadata proxy
21875
21934
  */
21876
21935
  proxy?: string | null,
21877
-
21878
- /**
21879
- * ClusterMetadata proxyIP
21880
- */
21881
- proxyIP?: string | null,
21882
21936
  |};
21883
21937
 
21884
21938
  /**
@@ -21906,21 +21960,11 @@ declare class api$ClusterMetadata {
21906
21960
  */
21907
21961
  gurl: string;
21908
21962
 
21909
- /**
21910
- * ClusterMetadata proxyHost.
21911
- */
21912
- proxyHost: string;
21913
-
21914
21963
  /**
21915
21964
  * ClusterMetadata proxy.
21916
21965
  */
21917
21966
  proxy: string;
21918
21967
 
21919
- /**
21920
- * ClusterMetadata proxyIP.
21921
- */
21922
- proxyIP: string;
21923
-
21924
21968
  /**
21925
21969
  * Creates a new ClusterMetadata instance using the specified properties.
21926
21970
  * @param [properties] Properties to set
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@replit/protocol",
3
- "version": "0.2.44",
3
+ "version": "0.2.47",
4
4
  "description": "JavaScript bindings for the Replit protocol",
5
5
  "main": "main/index.js",
6
6
  "repository": "https://github.com/replit/protocol",