@replit/protocol 0.2.66 → 0.2.68

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.
@@ -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.1
4
+ * Flowgen v1.20.0
5
5
  * @flow
6
6
  */
7
7
 
package/main/index.d.ts CHANGED
@@ -15653,6 +15653,9 @@ export namespace api {
15653
15653
 
15654
15654
  /** DotReplit orderedEnv */
15655
15655
  orderedEnv?: ((api.DotReplitEnvVar|api.IDotReplitEnvVar)[]|null);
15656
+
15657
+ /** DotReplit refreshWebViewOnFileChange */
15658
+ refreshWebViewOnFileChange?: (string[]|null);
15656
15659
  }
15657
15660
 
15658
15661
  /** Represents a DotReplit. */
@@ -15724,6 +15727,9 @@ export namespace api {
15724
15727
  /** DotReplit orderedEnv. */
15725
15728
  public orderedEnv: api.DotReplitEnvVar[];
15726
15729
 
15730
+ /** DotReplit refreshWebViewOnFileChange. */
15731
+ public refreshWebViewOnFileChange: string[];
15732
+
15727
15733
  /**
15728
15734
  * Creates a new DotReplit instance using the specified properties.
15729
15735
  * @param [properties] Properties to set
@@ -17831,6 +17837,9 @@ export namespace api {
17831
17837
 
17832
17838
  /** Repl sourceRepl */
17833
17839
  sourceRepl?: (string|null);
17840
+
17841
+ /** Repl database */
17842
+ database?: (string|null);
17834
17843
  }
17835
17844
 
17836
17845
  /** Represents a Repl. */
@@ -17860,6 +17869,9 @@ export namespace api {
17860
17869
  /** Repl sourceRepl. */
17861
17870
  public sourceRepl: string;
17862
17871
 
17872
+ /** Repl database. */
17873
+ public database: string;
17874
+
17863
17875
  /**
17864
17876
  * Creates a new Repl instance using the specified properties.
17865
17877
  * @param [properties] Properties to set
@@ -17954,6 +17966,9 @@ export namespace api {
17954
17966
 
17955
17967
  /** ResourceLimits restrictNetwork */
17956
17968
  restrictNetwork?: (boolean|null);
17969
+
17970
+ /** ResourceLimits preventWakeup */
17971
+ preventWakeup?: (boolean|null);
17957
17972
  }
17958
17973
 
17959
17974
  /** Represents a ResourceLimits. */
@@ -17986,6 +18001,9 @@ export namespace api {
17986
18001
  /** ResourceLimits restrictNetwork. */
17987
18002
  public restrictNetwork: boolean;
17988
18003
 
18004
+ /** ResourceLimits preventWakeup. */
18005
+ public preventWakeup: boolean;
18006
+
17989
18007
  /**
17990
18008
  * Creates a new ResourceLimits instance using the specified properties.
17991
18009
  * @param [properties] Properties to set
@@ -19718,6 +19736,9 @@ export namespace api {
19718
19736
 
19719
19737
  /** GovalReplIdentity ephemeral */
19720
19738
  ephemeral?: (boolean|null);
19739
+
19740
+ /** GovalReplIdentity originReplid */
19741
+ originReplid?: (string|null);
19721
19742
  }
19722
19743
 
19723
19744
  /** Represents a GovalReplIdentity. */
@@ -19744,6 +19765,9 @@ export namespace api {
19744
19765
  /** GovalReplIdentity ephemeral. */
19745
19766
  public ephemeral: boolean;
19746
19767
 
19768
+ /** GovalReplIdentity originReplid. */
19769
+ public originReplid: string;
19770
+
19747
19771
  /**
19748
19772
  * Creates a new GovalReplIdentity instance using the specified properties.
19749
19773
  * @param [properties] Properties to set
package/main/index.js CHANGED
@@ -38762,6 +38762,7 @@
38762
38762
  * @property {Array.<api.DotReplitHint|api.IDotReplitHint>|null} [hintsList] DotReplit hintsList
38763
38763
  * @property {Array.<api.DotReplitPort|api.IDotReplitPort>|null} [ports] DotReplit ports
38764
38764
  * @property {Array.<api.DotReplitEnvVar|api.IDotReplitEnvVar>|null} [orderedEnv] DotReplit orderedEnv
38765
+ * @property {Array.<string>|null} [refreshWebViewOnFileChange] DotReplit refreshWebViewOnFileChange
38765
38766
  */
38766
38767
 
38767
38768
  /**
@@ -38778,6 +38779,7 @@
38778
38779
  this.hintsList = [];
38779
38780
  this.ports = [];
38780
38781
  this.orderedEnv = [];
38782
+ this.refreshWebViewOnFileChange = [];
38781
38783
  if (properties)
38782
38784
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
38783
38785
  if (properties[keys[i]] != null)
@@ -38944,6 +38946,14 @@
38944
38946
  */
38945
38947
  DotReplit.prototype.orderedEnv = $util.emptyArray;
38946
38948
 
38949
+ /**
38950
+ * DotReplit refreshWebViewOnFileChange.
38951
+ * @member {Array.<string>} refreshWebViewOnFileChange
38952
+ * @memberof api.DotReplit
38953
+ * @instance
38954
+ */
38955
+ DotReplit.prototype.refreshWebViewOnFileChange = $util.emptyArray;
38956
+
38947
38957
  /**
38948
38958
  * Creates a new DotReplit instance using the specified properties.
38949
38959
  * @function create
@@ -39016,6 +39026,9 @@
39016
39026
  if (message.orderedEnv != null && message.orderedEnv.length)
39017
39027
  for (var i = 0; i < message.orderedEnv.length; ++i)
39018
39028
  $root.api.DotReplitEnvVar.encode(message.orderedEnv[i], writer.uint32(/* id 20, wireType 2 =*/162).fork()).ldelim();
39029
+ if (message.refreshWebViewOnFileChange != null && message.refreshWebViewOnFileChange.length)
39030
+ for (var i = 0; i < message.refreshWebViewOnFileChange.length; ++i)
39031
+ writer.uint32(/* id 21, wireType 2 =*/170).string(message.refreshWebViewOnFileChange[i]);
39019
39032
  return writer;
39020
39033
  };
39021
39034
 
@@ -39156,6 +39169,11 @@
39156
39169
  message.orderedEnv = [];
39157
39170
  message.orderedEnv.push($root.api.DotReplitEnvVar.decode(reader, reader.uint32()));
39158
39171
  break;
39172
+ case 21:
39173
+ if (!(message.refreshWebViewOnFileChange && message.refreshWebViewOnFileChange.length))
39174
+ message.refreshWebViewOnFileChange = [];
39175
+ message.refreshWebViewOnFileChange.push(reader.string());
39176
+ break;
39159
39177
  default:
39160
39178
  reader.skipType(tag & 7);
39161
39179
  break;
@@ -39307,6 +39325,13 @@
39307
39325
  return "orderedEnv." + error;
39308
39326
  }
39309
39327
  }
39328
+ if (message.refreshWebViewOnFileChange != null && message.hasOwnProperty("refreshWebViewOnFileChange")) {
39329
+ if (!Array.isArray(message.refreshWebViewOnFileChange))
39330
+ return "refreshWebViewOnFileChange: array expected";
39331
+ for (var i = 0; i < message.refreshWebViewOnFileChange.length; ++i)
39332
+ if (!$util.isString(message.refreshWebViewOnFileChange[i]))
39333
+ return "refreshWebViewOnFileChange: string[] expected";
39334
+ }
39310
39335
  return null;
39311
39336
  };
39312
39337
 
@@ -39437,6 +39462,13 @@
39437
39462
  message.orderedEnv[i] = $root.api.DotReplitEnvVar.fromObject(object.orderedEnv[i]);
39438
39463
  }
39439
39464
  }
39465
+ if (object.refreshWebViewOnFileChange) {
39466
+ if (!Array.isArray(object.refreshWebViewOnFileChange))
39467
+ throw TypeError(".api.DotReplit.refreshWebViewOnFileChange: array expected");
39468
+ message.refreshWebViewOnFileChange = [];
39469
+ for (var i = 0; i < object.refreshWebViewOnFileChange.length; ++i)
39470
+ message.refreshWebViewOnFileChange[i] = String(object.refreshWebViewOnFileChange[i]);
39471
+ }
39440
39472
  return message;
39441
39473
  };
39442
39474
 
@@ -39458,6 +39490,7 @@
39458
39490
  object.hintsList = [];
39459
39491
  object.ports = [];
39460
39492
  object.orderedEnv = [];
39493
+ object.refreshWebViewOnFileChange = [];
39461
39494
  }
39462
39495
  if (options.objects || options.defaults) {
39463
39496
  object.languages = {};
@@ -39538,6 +39571,11 @@
39538
39571
  for (var j = 0; j < message.orderedEnv.length; ++j)
39539
39572
  object.orderedEnv[j] = $root.api.DotReplitEnvVar.toObject(message.orderedEnv[j], options);
39540
39573
  }
39574
+ if (message.refreshWebViewOnFileChange && message.refreshWebViewOnFileChange.length) {
39575
+ object.refreshWebViewOnFileChange = [];
39576
+ for (var j = 0; j < message.refreshWebViewOnFileChange.length; ++j)
39577
+ object.refreshWebViewOnFileChange[j] = message.refreshWebViewOnFileChange[j];
39578
+ }
39541
39579
  return object;
39542
39580
  };
39543
39581
 
@@ -44301,6 +44339,7 @@
44301
44339
  * @property {string|null} [slug] Repl slug
44302
44340
  * @property {string|null} [user] Repl user
44303
44341
  * @property {string|null} [sourceRepl] Repl sourceRepl
44342
+ * @property {string|null} [database] Repl database
44304
44343
  */
44305
44344
 
44306
44345
  /**
@@ -44365,6 +44404,14 @@
44365
44404
  */
44366
44405
  Repl.prototype.sourceRepl = "";
44367
44406
 
44407
+ /**
44408
+ * Repl database.
44409
+ * @member {string} database
44410
+ * @memberof api.Repl
44411
+ * @instance
44412
+ */
44413
+ Repl.prototype.database = "";
44414
+
44368
44415
  /**
44369
44416
  * Creates a new Repl instance using the specified properties.
44370
44417
  * @function create
@@ -44401,6 +44448,8 @@
44401
44448
  writer.uint32(/* id 5, wireType 2 =*/42).string(message.user);
44402
44449
  if (message.sourceRepl != null && Object.hasOwnProperty.call(message, "sourceRepl"))
44403
44450
  writer.uint32(/* id 6, wireType 2 =*/50).string(message.sourceRepl);
44451
+ if (message.database != null && Object.hasOwnProperty.call(message, "database"))
44452
+ writer.uint32(/* id 7, wireType 2 =*/58).string(message.database);
44404
44453
  return writer;
44405
44454
  };
44406
44455
 
@@ -44453,6 +44502,9 @@
44453
44502
  case 6:
44454
44503
  message.sourceRepl = reader.string();
44455
44504
  break;
44505
+ case 7:
44506
+ message.database = reader.string();
44507
+ break;
44456
44508
  default:
44457
44509
  reader.skipType(tag & 7);
44458
44510
  break;
@@ -44506,6 +44558,9 @@
44506
44558
  if (message.sourceRepl != null && message.hasOwnProperty("sourceRepl"))
44507
44559
  if (!$util.isString(message.sourceRepl))
44508
44560
  return "sourceRepl: string expected";
44561
+ if (message.database != null && message.hasOwnProperty("database"))
44562
+ if (!$util.isString(message.database))
44563
+ return "database: string expected";
44509
44564
  return null;
44510
44565
  };
44511
44566
 
@@ -44533,6 +44588,8 @@
44533
44588
  message.user = String(object.user);
44534
44589
  if (object.sourceRepl != null)
44535
44590
  message.sourceRepl = String(object.sourceRepl);
44591
+ if (object.database != null)
44592
+ message.database = String(object.database);
44536
44593
  return message;
44537
44594
  };
44538
44595
 
@@ -44556,6 +44613,7 @@
44556
44613
  object.slug = "";
44557
44614
  object.user = "";
44558
44615
  object.sourceRepl = "";
44616
+ object.database = "";
44559
44617
  }
44560
44618
  if (message.id != null && message.hasOwnProperty("id"))
44561
44619
  object.id = message.id;
@@ -44569,6 +44627,8 @@
44569
44627
  object.user = message.user;
44570
44628
  if (message.sourceRepl != null && message.hasOwnProperty("sourceRepl"))
44571
44629
  object.sourceRepl = message.sourceRepl;
44630
+ if (message.database != null && message.hasOwnProperty("database"))
44631
+ object.database = message.database;
44572
44632
  return object;
44573
44633
  };
44574
44634
 
@@ -44599,6 +44659,7 @@
44599
44659
  * @property {number|null} [disk] ResourceLimits disk
44600
44660
  * @property {api.ResourceLimits.Cachability|null} [cache] ResourceLimits cache
44601
44661
  * @property {boolean|null} [restrictNetwork] ResourceLimits restrictNetwork
44662
+ * @property {boolean|null} [preventWakeup] ResourceLimits preventWakeup
44602
44663
  */
44603
44664
 
44604
44665
  /**
@@ -44671,6 +44732,14 @@
44671
44732
  */
44672
44733
  ResourceLimits.prototype.restrictNetwork = false;
44673
44734
 
44735
+ /**
44736
+ * ResourceLimits preventWakeup.
44737
+ * @member {boolean} preventWakeup
44738
+ * @memberof api.ResourceLimits
44739
+ * @instance
44740
+ */
44741
+ ResourceLimits.prototype.preventWakeup = false;
44742
+
44674
44743
  /**
44675
44744
  * Creates a new ResourceLimits instance using the specified properties.
44676
44745
  * @function create
@@ -44709,6 +44778,8 @@
44709
44778
  writer.uint32(/* id 6, wireType 0 =*/48).int32(message.cache);
44710
44779
  if (message.restrictNetwork != null && Object.hasOwnProperty.call(message, "restrictNetwork"))
44711
44780
  writer.uint32(/* id 7, wireType 0 =*/56).bool(message.restrictNetwork);
44781
+ if (message.preventWakeup != null && Object.hasOwnProperty.call(message, "preventWakeup"))
44782
+ writer.uint32(/* id 8, wireType 0 =*/64).bool(message.preventWakeup);
44712
44783
  return writer;
44713
44784
  };
44714
44785
 
@@ -44764,6 +44835,9 @@
44764
44835
  case 7:
44765
44836
  message.restrictNetwork = reader.bool();
44766
44837
  break;
44838
+ case 8:
44839
+ message.preventWakeup = reader.bool();
44840
+ break;
44767
44841
  default:
44768
44842
  reader.skipType(tag & 7);
44769
44843
  break;
@@ -44826,6 +44900,9 @@
44826
44900
  if (message.restrictNetwork != null && message.hasOwnProperty("restrictNetwork"))
44827
44901
  if (typeof message.restrictNetwork !== "boolean")
44828
44902
  return "restrictNetwork: boolean expected";
44903
+ if (message.preventWakeup != null && message.hasOwnProperty("preventWakeup"))
44904
+ if (typeof message.preventWakeup !== "boolean")
44905
+ return "preventWakeup: boolean expected";
44829
44906
  return null;
44830
44907
  };
44831
44908
 
@@ -44881,6 +44958,8 @@
44881
44958
  }
44882
44959
  if (object.restrictNetwork != null)
44883
44960
  message.restrictNetwork = Boolean(object.restrictNetwork);
44961
+ if (object.preventWakeup != null)
44962
+ message.preventWakeup = Boolean(object.preventWakeup);
44884
44963
  return message;
44885
44964
  };
44886
44965
 
@@ -44913,6 +44992,7 @@
44913
44992
  object.disk = options.longs === String ? "0" : 0;
44914
44993
  object.cache = options.enums === String ? "NONE" : 0;
44915
44994
  object.restrictNetwork = false;
44995
+ object.preventWakeup = false;
44916
44996
  }
44917
44997
  if (message.net != null && message.hasOwnProperty("net"))
44918
44998
  object.net = message.net;
@@ -44934,6 +45014,8 @@
44934
45014
  object.cache = options.enums === String ? $root.api.ResourceLimits.Cachability[message.cache] : message.cache;
44935
45015
  if (message.restrictNetwork != null && message.hasOwnProperty("restrictNetwork"))
44936
45016
  object.restrictNetwork = message.restrictNetwork;
45017
+ if (message.preventWakeup != null && message.hasOwnProperty("preventWakeup"))
45018
+ object.preventWakeup = message.preventWakeup;
44937
45019
  return object;
44938
45020
  };
44939
45021
 
@@ -49127,6 +49209,7 @@
49127
49209
  * @property {string|null} [slug] GovalReplIdentity slug
49128
49210
  * @property {string|null} [aud] GovalReplIdentity aud
49129
49211
  * @property {boolean|null} [ephemeral] GovalReplIdentity ephemeral
49212
+ * @property {string|null} [originReplid] GovalReplIdentity originReplid
49130
49213
  */
49131
49214
 
49132
49215
  /**
@@ -49183,6 +49266,14 @@
49183
49266
  */
49184
49267
  GovalReplIdentity.prototype.ephemeral = false;
49185
49268
 
49269
+ /**
49270
+ * GovalReplIdentity originReplid.
49271
+ * @member {string} originReplid
49272
+ * @memberof api.GovalReplIdentity
49273
+ * @instance
49274
+ */
49275
+ GovalReplIdentity.prototype.originReplid = "";
49276
+
49186
49277
  /**
49187
49278
  * Creates a new GovalReplIdentity instance using the specified properties.
49188
49279
  * @function create
@@ -49217,6 +49308,8 @@
49217
49308
  writer.uint32(/* id 4, wireType 2 =*/34).string(message.aud);
49218
49309
  if (message.ephemeral != null && Object.hasOwnProperty.call(message, "ephemeral"))
49219
49310
  writer.uint32(/* id 5, wireType 0 =*/40).bool(message.ephemeral);
49311
+ if (message.originReplid != null && Object.hasOwnProperty.call(message, "originReplid"))
49312
+ writer.uint32(/* id 6, wireType 2 =*/50).string(message.originReplid);
49220
49313
  return writer;
49221
49314
  };
49222
49315
 
@@ -49266,6 +49359,9 @@
49266
49359
  case 5:
49267
49360
  message.ephemeral = reader.bool();
49268
49361
  break;
49362
+ case 6:
49363
+ message.originReplid = reader.string();
49364
+ break;
49269
49365
  default:
49270
49366
  reader.skipType(tag & 7);
49271
49367
  break;
@@ -49316,6 +49412,9 @@
49316
49412
  if (message.ephemeral != null && message.hasOwnProperty("ephemeral"))
49317
49413
  if (typeof message.ephemeral !== "boolean")
49318
49414
  return "ephemeral: boolean expected";
49415
+ if (message.originReplid != null && message.hasOwnProperty("originReplid"))
49416
+ if (!$util.isString(message.originReplid))
49417
+ return "originReplid: string expected";
49319
49418
  return null;
49320
49419
  };
49321
49420
 
@@ -49341,6 +49440,8 @@
49341
49440
  message.aud = String(object.aud);
49342
49441
  if (object.ephemeral != null)
49343
49442
  message.ephemeral = Boolean(object.ephemeral);
49443
+ if (object.originReplid != null)
49444
+ message.originReplid = String(object.originReplid);
49344
49445
  return message;
49345
49446
  };
49346
49447
 
@@ -49363,6 +49464,7 @@
49363
49464
  object.slug = "";
49364
49465
  object.aud = "";
49365
49466
  object.ephemeral = false;
49467
+ object.originReplid = "";
49366
49468
  }
49367
49469
  if (message.replid != null && message.hasOwnProperty("replid"))
49368
49470
  object.replid = message.replid;
@@ -49374,6 +49476,8 @@
49374
49476
  object.aud = message.aud;
49375
49477
  if (message.ephemeral != null && message.hasOwnProperty("ephemeral"))
49376
49478
  object.ephemeral = message.ephemeral;
49479
+ if (message.originReplid != null && message.hasOwnProperty("originReplid"))
49480
+ object.originReplid = message.originReplid;
49377
49481
  return object;
49378
49482
  };
49379
49483
 
@@ -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.1
4
+ * Flowgen v1.20.0
5
5
  * @flow
6
6
  */
7
7
 
@@ -21733,6 +21733,11 @@ declare type api$IDotReplit = {|
21733
21733
  * DotReplit orderedEnv
21734
21734
  */
21735
21735
  orderedEnv?: (api$DotReplitEnvVar | api$IDotReplitEnvVar)[] | null,
21736
+
21737
+ /**
21738
+ * DotReplit refreshWebViewOnFileChange
21739
+ */
21740
+ refreshWebViewOnFileChange?: string[] | null,
21736
21741
  |};
21737
21742
 
21738
21743
  /**
@@ -21849,6 +21854,11 @@ declare class api$DotReplit {
21849
21854
  */
21850
21855
  orderedEnv: api$DotReplitEnvVar[];
21851
21856
 
21857
+ /**
21858
+ * DotReplit refreshWebViewOnFileChange.
21859
+ */
21860
+ refreshWebViewOnFileChange: string[];
21861
+
21852
21862
  /**
21853
21863
  * Creates a new DotReplit instance using the specified properties.
21854
21864
  * @param [properties] Properties to set
@@ -24709,6 +24719,11 @@ declare type api$IRepl = {|
24709
24719
  * Repl sourceRepl
24710
24720
  */
24711
24721
  sourceRepl?: string | null,
24722
+
24723
+ /**
24724
+ * Repl database
24725
+ */
24726
+ database?: string | null,
24712
24727
  |};
24713
24728
 
24714
24729
  /**
@@ -24751,6 +24766,11 @@ declare class api$Repl {
24751
24766
  */
24752
24767
  sourceRepl: string;
24753
24768
 
24769
+ /**
24770
+ * Repl database.
24771
+ */
24772
+ database: string;
24773
+
24754
24774
  /**
24755
24775
  * Creates a new Repl instance using the specified properties.
24756
24776
  * @param [properties] Properties to set
@@ -24877,6 +24897,11 @@ declare type api$IResourceLimits = {|
24877
24897
  * ResourceLimits restrictNetwork
24878
24898
  */
24879
24899
  restrictNetwork?: boolean | null,
24900
+
24901
+ /**
24902
+ * ResourceLimits preventWakeup
24903
+ */
24904
+ preventWakeup?: boolean | null,
24880
24905
  |};
24881
24906
 
24882
24907
  /**
@@ -24924,6 +24949,11 @@ declare class api$ResourceLimits {
24924
24949
  */
24925
24950
  restrictNetwork: boolean;
24926
24951
 
24952
+ /**
24953
+ * ResourceLimits preventWakeup.
24954
+ */
24955
+ preventWakeup: boolean;
24956
+
24927
24957
  /**
24928
24958
  * Creates a new ResourceLimits instance using the specified properties.
24929
24959
  * @param [properties] Properties to set
@@ -27296,6 +27326,11 @@ declare type api$IGovalReplIdentity = {|
27296
27326
  * GovalReplIdentity ephemeral
27297
27327
  */
27298
27328
  ephemeral?: boolean | null,
27329
+
27330
+ /**
27331
+ * GovalReplIdentity originReplid
27332
+ */
27333
+ originReplid?: string | null,
27299
27334
  |};
27300
27335
 
27301
27336
  /**
@@ -27333,6 +27368,11 @@ declare class api$GovalReplIdentity {
27333
27368
  */
27334
27369
  ephemeral: boolean;
27335
27370
 
27371
+ /**
27372
+ * GovalReplIdentity originReplid.
27373
+ */
27374
+ originReplid: string;
27375
+
27336
27376
  /**
27337
27377
  * Creates a new GovalReplIdentity instance using the specified properties.
27338
27378
  * @param [properties] Properties to set
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@replit/protocol",
3
- "version": "0.2.66",
3
+ "version": "0.2.68",
4
4
  "description": "JavaScript bindings for the Replit protocol",
5
5
  "main": "main/index.js",
6
6
  "repository": "https://github.com/replit/protocol",