@replit/protocol 0.2.64 → 0.2.65

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 CHANGED
@@ -4028,6 +4028,9 @@ export namespace api {
4028
4028
 
4029
4029
  /** Properties of a Flush. */
4030
4030
  interface IFlush {
4031
+
4032
+ /** Flush consistency */
4033
+ consistency?: (api.Flush.Consistency|null);
4031
4034
  }
4032
4035
 
4033
4036
  /** Represents a Flush. */
@@ -4039,6 +4042,9 @@ export namespace api {
4039
4042
  */
4040
4043
  private constructor(properties?: api.IFlush);
4041
4044
 
4045
+ /** Flush consistency. */
4046
+ public consistency: api.Flush.Consistency;
4047
+
4042
4048
  /**
4043
4049
  * Creates a new Flush instance using the specified properties.
4044
4050
  * @param [properties] Properties to set
@@ -4110,6 +4116,15 @@ export namespace api {
4110
4116
  public toJSON(): { [k: string]: any };
4111
4117
  }
4112
4118
 
4119
+ namespace Flush {
4120
+
4121
+ /** Consistency enum. */
4122
+ enum Consistency {
4123
+ PermanentStorage = 0,
4124
+ Disk = 1
4125
+ }
4126
+ }
4127
+
4113
4128
  /** Properties of a OTLinkFile. */
4114
4129
  interface IOTLinkFile {
4115
4130
 
@@ -10658,6 +10673,15 @@ export namespace api {
10658
10673
 
10659
10674
  /** User teams */
10660
10675
  teams?: (string[]|null);
10676
+
10677
+ /** User bio */
10678
+ bio?: (string|null);
10679
+
10680
+ /** User url */
10681
+ url?: (string|null);
10682
+
10683
+ /** User profileImage */
10684
+ profileImage?: (string|null);
10661
10685
  }
10662
10686
 
10663
10687
  /** Represents a User. */
@@ -10684,6 +10708,15 @@ export namespace api {
10684
10708
  /** User teams. */
10685
10709
  public teams: string[];
10686
10710
 
10711
+ /** User bio. */
10712
+ public bio: string;
10713
+
10714
+ /** User url. */
10715
+ public url: string;
10716
+
10717
+ /** User profileImage. */
10718
+ public profileImage: string;
10719
+
10687
10720
  /**
10688
10721
  * Creates a new User instance using the specified properties.
10689
10722
  * @param [properties] Properties to set
package/main/index.js CHANGED
@@ -12548,6 +12548,7 @@
12548
12548
  * Properties of a Flush.
12549
12549
  * @memberof api
12550
12550
  * @interface IFlush
12551
+ * @property {api.Flush.Consistency|null} [consistency] Flush consistency
12551
12552
  */
12552
12553
 
12553
12554
  /**
@@ -12564,6 +12565,14 @@
12564
12565
  this[keys[i]] = properties[keys[i]];
12565
12566
  }
12566
12567
 
12568
+ /**
12569
+ * Flush consistency.
12570
+ * @member {api.Flush.Consistency} consistency
12571
+ * @memberof api.Flush
12572
+ * @instance
12573
+ */
12574
+ Flush.prototype.consistency = 0;
12575
+
12567
12576
  /**
12568
12577
  * Creates a new Flush instance using the specified properties.
12569
12578
  * @function create
@@ -12588,6 +12597,8 @@
12588
12597
  Flush.encode = function encode(message, writer) {
12589
12598
  if (!writer)
12590
12599
  writer = $Writer.create();
12600
+ if (message.consistency != null && Object.hasOwnProperty.call(message, "consistency"))
12601
+ writer.uint32(/* id 1, wireType 0 =*/8).int32(message.consistency);
12591
12602
  return writer;
12592
12603
  };
12593
12604
 
@@ -12622,6 +12633,9 @@
12622
12633
  while (reader.pos < end) {
12623
12634
  var tag = reader.uint32();
12624
12635
  switch (tag >>> 3) {
12636
+ case 1:
12637
+ message.consistency = reader.int32();
12638
+ break;
12625
12639
  default:
12626
12640
  reader.skipType(tag & 7);
12627
12641
  break;
@@ -12657,6 +12671,14 @@
12657
12671
  Flush.verify = function verify(message) {
12658
12672
  if (typeof message !== "object" || message === null)
12659
12673
  return "object expected";
12674
+ if (message.consistency != null && message.hasOwnProperty("consistency"))
12675
+ switch (message.consistency) {
12676
+ default:
12677
+ return "consistency: enum value expected";
12678
+ case 0:
12679
+ case 1:
12680
+ break;
12681
+ }
12660
12682
  return null;
12661
12683
  };
12662
12684
 
@@ -12671,7 +12693,18 @@
12671
12693
  Flush.fromObject = function fromObject(object) {
12672
12694
  if (object instanceof $root.api.Flush)
12673
12695
  return object;
12674
- return new $root.api.Flush();
12696
+ var message = new $root.api.Flush();
12697
+ switch (object.consistency) {
12698
+ case "PermanentStorage":
12699
+ case 0:
12700
+ message.consistency = 0;
12701
+ break;
12702
+ case "Disk":
12703
+ case 1:
12704
+ message.consistency = 1;
12705
+ break;
12706
+ }
12707
+ return message;
12675
12708
  };
12676
12709
 
12677
12710
  /**
@@ -12683,8 +12716,15 @@
12683
12716
  * @param {$protobuf.IConversionOptions} [options] Conversion options
12684
12717
  * @returns {Object.<string,*>} Plain object
12685
12718
  */
12686
- Flush.toObject = function toObject() {
12687
- return {};
12719
+ Flush.toObject = function toObject(message, options) {
12720
+ if (!options)
12721
+ options = {};
12722
+ var object = {};
12723
+ if (options.defaults)
12724
+ object.consistency = options.enums === String ? "PermanentStorage" : 0;
12725
+ if (message.consistency != null && message.hasOwnProperty("consistency"))
12726
+ object.consistency = options.enums === String ? $root.api.Flush.Consistency[message.consistency] : message.consistency;
12727
+ return object;
12688
12728
  };
12689
12729
 
12690
12730
  /**
@@ -12698,6 +12738,20 @@
12698
12738
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
12699
12739
  };
12700
12740
 
12741
+ /**
12742
+ * Consistency enum.
12743
+ * @name api.Flush.Consistency
12744
+ * @enum {number}
12745
+ * @property {number} PermanentStorage=0 PermanentStorage value
12746
+ * @property {number} Disk=1 Disk value
12747
+ */
12748
+ Flush.Consistency = (function() {
12749
+ var valuesById = {}, values = Object.create(valuesById);
12750
+ values[valuesById[0] = "PermanentStorage"] = 0;
12751
+ values[valuesById[1] = "Disk"] = 1;
12752
+ return values;
12753
+ })();
12754
+
12701
12755
  return Flush;
12702
12756
  })();
12703
12757
 
@@ -27425,6 +27479,9 @@
27425
27479
  * @property {Array.<string>|null} [roles] User roles
27426
27480
  * @property {number|null} [session] User session
27427
27481
  * @property {Array.<string>|null} [teams] User teams
27482
+ * @property {string|null} [bio] User bio
27483
+ * @property {string|null} [url] User url
27484
+ * @property {string|null} [profileImage] User profileImage
27428
27485
  */
27429
27486
 
27430
27487
  /**
@@ -27483,6 +27540,30 @@
27483
27540
  */
27484
27541
  User.prototype.teams = $util.emptyArray;
27485
27542
 
27543
+ /**
27544
+ * User bio.
27545
+ * @member {string} bio
27546
+ * @memberof api.User
27547
+ * @instance
27548
+ */
27549
+ User.prototype.bio = "";
27550
+
27551
+ /**
27552
+ * User url.
27553
+ * @member {string} url
27554
+ * @memberof api.User
27555
+ * @instance
27556
+ */
27557
+ User.prototype.url = "";
27558
+
27559
+ /**
27560
+ * User profileImage.
27561
+ * @member {string} profileImage
27562
+ * @memberof api.User
27563
+ * @instance
27564
+ */
27565
+ User.prototype.profileImage = "";
27566
+
27486
27567
  /**
27487
27568
  * Creates a new User instance using the specified properties.
27488
27569
  * @function create
@@ -27519,6 +27600,12 @@
27519
27600
  if (message.teams != null && message.teams.length)
27520
27601
  for (var i = 0; i < message.teams.length; ++i)
27521
27602
  writer.uint32(/* id 5, wireType 2 =*/42).string(message.teams[i]);
27603
+ if (message.bio != null && Object.hasOwnProperty.call(message, "bio"))
27604
+ writer.uint32(/* id 6, wireType 2 =*/50).string(message.bio);
27605
+ if (message.url != null && Object.hasOwnProperty.call(message, "url"))
27606
+ writer.uint32(/* id 7, wireType 2 =*/58).string(message.url);
27607
+ if (message.profileImage != null && Object.hasOwnProperty.call(message, "profileImage"))
27608
+ writer.uint32(/* id 8, wireType 2 =*/66).string(message.profileImage);
27522
27609
  return writer;
27523
27610
  };
27524
27611
 
@@ -27572,6 +27659,15 @@
27572
27659
  message.teams = [];
27573
27660
  message.teams.push(reader.string());
27574
27661
  break;
27662
+ case 6:
27663
+ message.bio = reader.string();
27664
+ break;
27665
+ case 7:
27666
+ message.url = reader.string();
27667
+ break;
27668
+ case 8:
27669
+ message.profileImage = reader.string();
27670
+ break;
27575
27671
  default:
27576
27672
  reader.skipType(tag & 7);
27577
27673
  break;
@@ -27630,6 +27726,15 @@
27630
27726
  if (!$util.isString(message.teams[i]))
27631
27727
  return "teams: string[] expected";
27632
27728
  }
27729
+ if (message.bio != null && message.hasOwnProperty("bio"))
27730
+ if (!$util.isString(message.bio))
27731
+ return "bio: string expected";
27732
+ if (message.url != null && message.hasOwnProperty("url"))
27733
+ if (!$util.isString(message.url))
27734
+ return "url: string expected";
27735
+ if (message.profileImage != null && message.hasOwnProperty("profileImage"))
27736
+ if (!$util.isString(message.profileImage))
27737
+ return "profileImage: string expected";
27633
27738
  return null;
27634
27739
  };
27635
27740
 
@@ -27665,6 +27770,12 @@
27665
27770
  for (var i = 0; i < object.teams.length; ++i)
27666
27771
  message.teams[i] = String(object.teams[i]);
27667
27772
  }
27773
+ if (object.bio != null)
27774
+ message.bio = String(object.bio);
27775
+ if (object.url != null)
27776
+ message.url = String(object.url);
27777
+ if (object.profileImage != null)
27778
+ message.profileImage = String(object.profileImage);
27668
27779
  return message;
27669
27780
  };
27670
27781
 
@@ -27689,6 +27800,9 @@
27689
27800
  object.id = 0;
27690
27801
  object.name = "";
27691
27802
  object.session = 0;
27803
+ object.bio = "";
27804
+ object.url = "";
27805
+ object.profileImage = "";
27692
27806
  }
27693
27807
  if (message.id != null && message.hasOwnProperty("id"))
27694
27808
  object.id = message.id;
@@ -27706,6 +27820,12 @@
27706
27820
  for (var j = 0; j < message.teams.length; ++j)
27707
27821
  object.teams[j] = message.teams[j];
27708
27822
  }
27823
+ if (message.bio != null && message.hasOwnProperty("bio"))
27824
+ object.bio = message.bio;
27825
+ if (message.url != null && message.hasOwnProperty("url"))
27826
+ object.url = message.url;
27827
+ if (message.profileImage != null && message.hasOwnProperty("profileImage"))
27828
+ object.profileImage = message.profileImage;
27709
27829
  return object;
27710
27830
  };
27711
27831
 
@@ -6308,7 +6308,12 @@ declare var api$FileEvent$Op: {|
6308
6308
  /**
6309
6309
  * Properties of a Flush.
6310
6310
  */
6311
- declare type api$IFlush = {||};
6311
+ declare type api$IFlush = {|
6312
+ /**
6313
+ * Flush consistency
6314
+ */
6315
+ consistency?: $Values<typeof api$Flush$Consistency> | null,
6316
+ |};
6312
6317
 
6313
6318
  /**
6314
6319
  * Represents a Flush.
@@ -6320,6 +6325,11 @@ declare class api$Flush {
6320
6325
  */
6321
6326
  constructor(properties?: api$IFlush): this;
6322
6327
 
6328
+ /**
6329
+ * Flush consistency.
6330
+ */
6331
+ consistency: $Values<typeof api$Flush$Consistency>;
6332
+
6323
6333
  /**
6324
6334
  * Creates a new Flush instance using the specified properties.
6325
6335
  * @param [properties] Properties to set
@@ -6409,8 +6419,18 @@ declare class api$Flush {
6409
6419
  toJSON(): {|
6410
6420
  [k: string]: any,
6411
6421
  |};
6422
+ static Consistency: typeof api$Flush$Consistency;
6412
6423
  }
6413
6424
 
6425
+ /**
6426
+ * Consistency enum.
6427
+ */
6428
+
6429
+ declare var api$Flush$Consistency: {|
6430
+ +PermanentStorage: 0, // 0
6431
+ +Disk: 1, // 1
6432
+ |};
6433
+
6414
6434
  /**
6415
6435
  * Properties of a OTLinkFile.
6416
6436
  */
@@ -15028,6 +15048,21 @@ declare type api$IUser = {|
15028
15048
  * User teams
15029
15049
  */
15030
15050
  teams?: string[] | null,
15051
+
15052
+ /**
15053
+ * User bio
15054
+ */
15055
+ bio?: string | null,
15056
+
15057
+ /**
15058
+ * User url
15059
+ */
15060
+ url?: string | null,
15061
+
15062
+ /**
15063
+ * User profileImage
15064
+ */
15065
+ profileImage?: string | null,
15031
15066
  |};
15032
15067
 
15033
15068
  /**
@@ -15065,6 +15100,21 @@ declare class api$User {
15065
15100
  */
15066
15101
  teams: string[];
15067
15102
 
15103
+ /**
15104
+ * User bio.
15105
+ */
15106
+ bio: string;
15107
+
15108
+ /**
15109
+ * User url.
15110
+ */
15111
+ url: string;
15112
+
15113
+ /**
15114
+ * User profileImage.
15115
+ */
15116
+ profileImage: string;
15117
+
15068
15118
  /**
15069
15119
  * Creates a new User instance using the specified properties.
15070
15120
  * @param [properties] Properties to set
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@replit/protocol",
3
- "version": "0.2.64",
3
+ "version": "0.2.65",
4
4
  "description": "JavaScript bindings for the Replit protocol",
5
5
  "main": "main/index.js",
6
6
  "repository": "https://github.com/replit/protocol",