@replit/protocol 0.2.94 → 0.2.95

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
@@ -20405,6 +20405,9 @@ export namespace replit {
20405
20405
 
20406
20406
  /** ReplToken features */
20407
20407
  features?: ((replit.goval.api.features.Feature|replit.goval.api.features.IFeature)[]|null);
20408
+
20409
+ /** ReplToken buildInfo */
20410
+ buildInfo?: (replit.goval.api.BuildInfo|replit.goval.api.IBuildInfo|null);
20408
20411
  }
20409
20412
 
20410
20413
  /** Represents a ReplToken. */
@@ -20461,6 +20464,9 @@ export namespace replit {
20461
20464
  /** ReplToken features. */
20462
20465
  public features: replit.goval.api.features.Feature[];
20463
20466
 
20467
+ /** ReplToken buildInfo. */
20468
+ public buildInfo?: (replit.goval.api.BuildInfo|null);
20469
+
20464
20470
  /** ReplToken metadata. */
20465
20471
  public metadata?: ("repl"|"id"|"classroom");
20466
20472
 
@@ -20832,6 +20838,102 @@ export namespace replit {
20832
20838
  }
20833
20839
  }
20834
20840
 
20841
+ /** Properties of a BuildInfo. */
20842
+ interface IBuildInfo {
20843
+
20844
+ /** BuildInfo id */
20845
+ id?: (string|null);
20846
+
20847
+ /** BuildInfo url */
20848
+ url?: (string|null);
20849
+ }
20850
+
20851
+ /** Represents a BuildInfo. */
20852
+ class BuildInfo {
20853
+
20854
+ /**
20855
+ * Constructs a new BuildInfo.
20856
+ * @param [properties] Properties to set
20857
+ */
20858
+ private constructor(properties?: replit.goval.api.IBuildInfo);
20859
+
20860
+ /** BuildInfo id. */
20861
+ public id: string;
20862
+
20863
+ /** BuildInfo url. */
20864
+ public url: string;
20865
+
20866
+ /**
20867
+ * Creates a new BuildInfo instance using the specified properties.
20868
+ * @param [properties] Properties to set
20869
+ * @returns BuildInfo instance
20870
+ */
20871
+ public static create(properties?: replit.goval.api.IBuildInfo): replit.goval.api.BuildInfo;
20872
+
20873
+ /**
20874
+ * Encodes the specified BuildInfo message. Does not implicitly {@link replit.goval.api.BuildInfo.verify|verify} messages.
20875
+ * @param message BuildInfo message or plain object to encode
20876
+ * @param [writer] Writer to encode to
20877
+ * @returns Writer
20878
+ */
20879
+ public static encode(message: replit.goval.api.BuildInfo, writer?: $protobuf.Writer): $protobuf.Writer;
20880
+
20881
+ /**
20882
+ * Encodes the specified BuildInfo message, length delimited. Does not implicitly {@link replit.goval.api.BuildInfo.verify|verify} messages.
20883
+ * @param message BuildInfo message or plain object to encode
20884
+ * @param [writer] Writer to encode to
20885
+ * @returns Writer
20886
+ */
20887
+ public static encodeDelimited(message: replit.goval.api.BuildInfo, writer?: $protobuf.Writer): $protobuf.Writer;
20888
+
20889
+ /**
20890
+ * Decodes a BuildInfo message from the specified reader or buffer.
20891
+ * @param reader Reader or buffer to decode from
20892
+ * @param [length] Message length if known beforehand
20893
+ * @returns BuildInfo
20894
+ * @throws {Error} If the payload is not a reader or valid buffer
20895
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
20896
+ */
20897
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): replit.goval.api.BuildInfo;
20898
+
20899
+ /**
20900
+ * Decodes a BuildInfo message from the specified reader or buffer, length delimited.
20901
+ * @param reader Reader or buffer to decode from
20902
+ * @returns BuildInfo
20903
+ * @throws {Error} If the payload is not a reader or valid buffer
20904
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
20905
+ */
20906
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): replit.goval.api.BuildInfo;
20907
+
20908
+ /**
20909
+ * Verifies a BuildInfo message.
20910
+ * @param message Plain object to verify
20911
+ * @returns `null` if valid, otherwise the reason why it is not
20912
+ */
20913
+ public static verify(message: { [k: string]: any }): (string|null);
20914
+
20915
+ /**
20916
+ * Creates a BuildInfo message from a plain object. Also converts values to their respective internal types.
20917
+ * @param object Plain object
20918
+ * @returns BuildInfo
20919
+ */
20920
+ public static fromObject(object: { [k: string]: any }): replit.goval.api.BuildInfo;
20921
+
20922
+ /**
20923
+ * Creates a plain object from a BuildInfo message. Also converts values to other types if specified.
20924
+ * @param message BuildInfo
20925
+ * @param [options] Conversion options
20926
+ * @returns Plain object
20927
+ */
20928
+ public static toObject(message: replit.goval.api.BuildInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
20929
+
20930
+ /**
20931
+ * Converts this BuildInfo to JSON.
20932
+ * @returns JSON object
20933
+ */
20934
+ public toJSON(): { [k: string]: any };
20935
+ }
20936
+
20835
20937
  /** Properties of a TLSCertificate. */
20836
20938
  interface ITLSCertificate {
20837
20939
 
@@ -23453,6 +23555,9 @@ export namespace replit {
23453
23555
 
23454
23556
  /** Repl buckets */
23455
23557
  buckets?: (replit.goval.api.repl.Buckets|replit.goval.api.repl.IBuckets|null);
23558
+
23559
+ /** Repl userId */
23560
+ userId?: (replit.goval.api.repl.UserId|replit.goval.api.repl.IUserId|null);
23456
23561
  }
23457
23562
 
23458
23563
  /** Represents a Repl. */
@@ -23488,6 +23593,9 @@ export namespace replit {
23488
23593
  /** Repl buckets. */
23489
23594
  public buckets?: (replit.goval.api.repl.Buckets|null);
23490
23595
 
23596
+ /** Repl userId. */
23597
+ public userId?: (replit.goval.api.repl.UserId|null);
23598
+
23491
23599
  /**
23492
23600
  * Creates a new Repl instance using the specified properties.
23493
23601
  * @param [properties] Properties to set
@@ -23559,6 +23667,108 @@ export namespace replit {
23559
23667
  public toJSON(): { [k: string]: any };
23560
23668
  }
23561
23669
 
23670
+ /** Environment enum. */
23671
+ enum Environment {
23672
+ DEVELOPMENT = 0,
23673
+ PRODUCTION = 1
23674
+ }
23675
+
23676
+ /** Properties of a UserId. */
23677
+ interface IUserId {
23678
+
23679
+ /** UserId id */
23680
+ id?: (number|null);
23681
+
23682
+ /** UserId environment */
23683
+ environment?: (replit.goval.api.repl.Environment|null);
23684
+ }
23685
+
23686
+ /** Represents a UserId. */
23687
+ class UserId {
23688
+
23689
+ /**
23690
+ * Constructs a new UserId.
23691
+ * @param [properties] Properties to set
23692
+ */
23693
+ private constructor(properties?: replit.goval.api.repl.IUserId);
23694
+
23695
+ /** UserId id. */
23696
+ public id: number;
23697
+
23698
+ /** UserId environment. */
23699
+ public environment: replit.goval.api.repl.Environment;
23700
+
23701
+ /**
23702
+ * Creates a new UserId instance using the specified properties.
23703
+ * @param [properties] Properties to set
23704
+ * @returns UserId instance
23705
+ */
23706
+ public static create(properties?: replit.goval.api.repl.IUserId): replit.goval.api.repl.UserId;
23707
+
23708
+ /**
23709
+ * Encodes the specified UserId message. Does not implicitly {@link replit.goval.api.repl.UserId.verify|verify} messages.
23710
+ * @param message UserId message or plain object to encode
23711
+ * @param [writer] Writer to encode to
23712
+ * @returns Writer
23713
+ */
23714
+ public static encode(message: replit.goval.api.repl.UserId, writer?: $protobuf.Writer): $protobuf.Writer;
23715
+
23716
+ /**
23717
+ * Encodes the specified UserId message, length delimited. Does not implicitly {@link replit.goval.api.repl.UserId.verify|verify} messages.
23718
+ * @param message UserId message or plain object to encode
23719
+ * @param [writer] Writer to encode to
23720
+ * @returns Writer
23721
+ */
23722
+ public static encodeDelimited(message: replit.goval.api.repl.UserId, writer?: $protobuf.Writer): $protobuf.Writer;
23723
+
23724
+ /**
23725
+ * Decodes a UserId message from the specified reader or buffer.
23726
+ * @param reader Reader or buffer to decode from
23727
+ * @param [length] Message length if known beforehand
23728
+ * @returns UserId
23729
+ * @throws {Error} If the payload is not a reader or valid buffer
23730
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
23731
+ */
23732
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): replit.goval.api.repl.UserId;
23733
+
23734
+ /**
23735
+ * Decodes a UserId message from the specified reader or buffer, length delimited.
23736
+ * @param reader Reader or buffer to decode from
23737
+ * @returns UserId
23738
+ * @throws {Error} If the payload is not a reader or valid buffer
23739
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
23740
+ */
23741
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): replit.goval.api.repl.UserId;
23742
+
23743
+ /**
23744
+ * Verifies a UserId message.
23745
+ * @param message Plain object to verify
23746
+ * @returns `null` if valid, otherwise the reason why it is not
23747
+ */
23748
+ public static verify(message: { [k: string]: any }): (string|null);
23749
+
23750
+ /**
23751
+ * Creates a UserId message from a plain object. Also converts values to their respective internal types.
23752
+ * @param object Plain object
23753
+ * @returns UserId
23754
+ */
23755
+ public static fromObject(object: { [k: string]: any }): replit.goval.api.repl.UserId;
23756
+
23757
+ /**
23758
+ * Creates a plain object from a UserId message. Also converts values to other types if specified.
23759
+ * @param message UserId
23760
+ * @param [options] Conversion options
23761
+ * @returns Plain object
23762
+ */
23763
+ public static toObject(message: replit.goval.api.repl.UserId, options?: $protobuf.IConversionOptions): { [k: string]: any };
23764
+
23765
+ /**
23766
+ * Converts this UserId to JSON.
23767
+ * @returns JSON object
23768
+ */
23769
+ public toJSON(): { [k: string]: any };
23770
+ }
23771
+
23562
23772
  /** Properties of a ResourceLimits. */
23563
23773
  interface IResourceLimits {
23564
23774
 
package/main/index.js CHANGED
@@ -50713,6 +50713,7 @@
50713
50713
  * @property {Array.<string>|null} [flags] ReplToken flags
50714
50714
  * @property {replit.goval.api.repl.Permissions|replit.goval.api.repl.IPermissions|null} [permissions] ReplToken permissions
50715
50715
  * @property {Array.<replit.goval.api.features.Feature|replit.goval.api.features.IFeature>|null} [features] ReplToken features
50716
+ * @property {replit.goval.api.BuildInfo|replit.goval.api.IBuildInfo|null} [buildInfo] ReplToken buildInfo
50716
50717
  */
50717
50718
 
50718
50719
  /**
@@ -50851,6 +50852,14 @@
50851
50852
  */
50852
50853
  ReplToken.prototype.features = $util.emptyArray;
50853
50854
 
50855
+ /**
50856
+ * ReplToken buildInfo.
50857
+ * @member {replit.goval.api.BuildInfo|null|undefined} buildInfo
50858
+ * @memberof replit.goval.api.ReplToken
50859
+ * @instance
50860
+ */
50861
+ ReplToken.prototype.buildInfo = null;
50862
+
50854
50863
  // OneOf field names bound to virtual getters and setters
50855
50864
  var $oneOfFields;
50856
50865
 
@@ -50921,6 +50930,8 @@
50921
50930
  $root.replit.goval.api.features.Feature.encode(message.features[i], writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim();
50922
50931
  if (message.interactiveResourceLimits != null && Object.hasOwnProperty.call(message, "interactiveResourceLimits"))
50923
50932
  $root.replit.goval.api.repl.ResourceLimits.encode(message.interactiveResourceLimits, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim();
50933
+ if (message.buildInfo != null && Object.hasOwnProperty.call(message, "buildInfo"))
50934
+ $root.replit.goval.api.BuildInfo.encode(message.buildInfo, writer.uint32(/* id 18, wireType 2 =*/146).fork()).ldelim();
50924
50935
  return writer;
50925
50936
  };
50926
50937
 
@@ -51004,6 +51015,9 @@
51004
51015
  message.features = [];
51005
51016
  message.features.push($root.replit.goval.api.features.Feature.decode(reader, reader.uint32()));
51006
51017
  break;
51018
+ case 18:
51019
+ message.buildInfo = $root.replit.goval.api.BuildInfo.decode(reader, reader.uint32());
51020
+ break;
51007
51021
  default:
51008
51022
  reader.skipType(tag & 7);
51009
51023
  break;
@@ -51138,6 +51152,11 @@
51138
51152
  return "features." + error;
51139
51153
  }
51140
51154
  }
51155
+ if (message.buildInfo != null && message.hasOwnProperty("buildInfo")) {
51156
+ var error = $root.replit.goval.api.BuildInfo.verify(message.buildInfo);
51157
+ if (error)
51158
+ return "buildInfo." + error;
51159
+ }
51141
51160
  return null;
51142
51161
  };
51143
51162
 
@@ -51247,6 +51266,11 @@
51247
51266
  message.features[i] = $root.replit.goval.api.features.Feature.fromObject(object.features[i]);
51248
51267
  }
51249
51268
  }
51269
+ if (object.buildInfo != null) {
51270
+ if (typeof object.buildInfo !== "object")
51271
+ throw TypeError(".replit.goval.api.ReplToken.buildInfo: object expected");
51272
+ message.buildInfo = $root.replit.goval.api.BuildInfo.fromObject(object.buildInfo);
51273
+ }
51250
51274
  return message;
51251
51275
  };
51252
51276
 
@@ -51278,6 +51302,7 @@
51278
51302
  object.presenced = null;
51279
51303
  object.permissions = null;
51280
51304
  object.interactiveResourceLimits = null;
51305
+ object.buildInfo = null;
51281
51306
  }
51282
51307
  if (message.iat != null && message.hasOwnProperty("iat"))
51283
51308
  object.iat = $root.google.protobuf.Timestamp.toObject(message.iat, options);
@@ -51324,6 +51349,8 @@
51324
51349
  }
51325
51350
  if (message.interactiveResourceLimits != null && message.hasOwnProperty("interactiveResourceLimits"))
51326
51351
  object.interactiveResourceLimits = $root.replit.goval.api.repl.ResourceLimits.toObject(message.interactiveResourceLimits, options);
51352
+ if (message.buildInfo != null && message.hasOwnProperty("buildInfo"))
51353
+ object.buildInfo = $root.replit.goval.api.BuildInfo.toObject(message.buildInfo, options);
51327
51354
  return object;
51328
51355
  };
51329
51356
 
@@ -51982,6 +52009,215 @@
51982
52009
  return ReplToken;
51983
52010
  })();
51984
52011
 
52012
+ api.BuildInfo = (function() {
52013
+
52014
+ /**
52015
+ * Properties of a BuildInfo.
52016
+ * @memberof replit.goval.api
52017
+ * @interface IBuildInfo
52018
+ * @property {string|null} [id] BuildInfo id
52019
+ * @property {string|null} [url] BuildInfo url
52020
+ */
52021
+
52022
+ /**
52023
+ * Constructs a new BuildInfo.
52024
+ * @memberof replit.goval.api
52025
+ * @classdesc Represents a BuildInfo.
52026
+ * @constructor
52027
+ * @param {replit.goval.api.IBuildInfo=} [properties] Properties to set
52028
+ */
52029
+ function BuildInfo(properties) {
52030
+ if (properties)
52031
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
52032
+ if (properties[keys[i]] != null)
52033
+ this[keys[i]] = properties[keys[i]];
52034
+ }
52035
+
52036
+ /**
52037
+ * BuildInfo id.
52038
+ * @member {string} id
52039
+ * @memberof replit.goval.api.BuildInfo
52040
+ * @instance
52041
+ */
52042
+ BuildInfo.prototype.id = "";
52043
+
52044
+ /**
52045
+ * BuildInfo url.
52046
+ * @member {string} url
52047
+ * @memberof replit.goval.api.BuildInfo
52048
+ * @instance
52049
+ */
52050
+ BuildInfo.prototype.url = "";
52051
+
52052
+ /**
52053
+ * Creates a new BuildInfo instance using the specified properties.
52054
+ * @function create
52055
+ * @memberof replit.goval.api.BuildInfo
52056
+ * @static
52057
+ * @param {replit.goval.api.IBuildInfo=} [properties] Properties to set
52058
+ * @returns {replit.goval.api.BuildInfo} BuildInfo instance
52059
+ */
52060
+ BuildInfo.create = function create(properties) {
52061
+ return BuildInfo.fromObject(properties);
52062
+ };
52063
+
52064
+ /**
52065
+ * Encodes the specified BuildInfo message. Does not implicitly {@link replit.goval.api.BuildInfo.verify|verify} messages.
52066
+ * @function encode
52067
+ * @memberof replit.goval.api.BuildInfo
52068
+ * @static
52069
+ * @param {replit.goval.api.BuildInfo} message BuildInfo message or plain object to encode
52070
+ * @param {$protobuf.Writer} [writer] Writer to encode to
52071
+ * @returns {$protobuf.Writer} Writer
52072
+ */
52073
+ BuildInfo.encode = function encode(message, writer) {
52074
+ if (!writer)
52075
+ writer = $Writer.create();
52076
+ if (message.id != null && Object.hasOwnProperty.call(message, "id"))
52077
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.id);
52078
+ if (message.url != null && Object.hasOwnProperty.call(message, "url"))
52079
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.url);
52080
+ return writer;
52081
+ };
52082
+
52083
+ /**
52084
+ * Encodes the specified BuildInfo message, length delimited. Does not implicitly {@link replit.goval.api.BuildInfo.verify|verify} messages.
52085
+ * @function encodeDelimited
52086
+ * @memberof replit.goval.api.BuildInfo
52087
+ * @static
52088
+ * @param {replit.goval.api.BuildInfo} message BuildInfo message or plain object to encode
52089
+ * @param {$protobuf.Writer} [writer] Writer to encode to
52090
+ * @returns {$protobuf.Writer} Writer
52091
+ */
52092
+ BuildInfo.encodeDelimited = function encodeDelimited(message, writer) {
52093
+ return this.encode(message, writer).ldelim();
52094
+ };
52095
+
52096
+ /**
52097
+ * Decodes a BuildInfo message from the specified reader or buffer.
52098
+ * @function decode
52099
+ * @memberof replit.goval.api.BuildInfo
52100
+ * @static
52101
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
52102
+ * @param {number} [length] Message length if known beforehand
52103
+ * @returns {replit.goval.api.BuildInfo} BuildInfo
52104
+ * @throws {Error} If the payload is not a reader or valid buffer
52105
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
52106
+ */
52107
+ BuildInfo.decode = function decode(reader, length) {
52108
+ if (!(reader instanceof $Reader))
52109
+ reader = $Reader.create(reader);
52110
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.BuildInfo();
52111
+ while (reader.pos < end) {
52112
+ var tag = reader.uint32();
52113
+ switch (tag >>> 3) {
52114
+ case 1:
52115
+ message.id = reader.string();
52116
+ break;
52117
+ case 2:
52118
+ message.url = reader.string();
52119
+ break;
52120
+ default:
52121
+ reader.skipType(tag & 7);
52122
+ break;
52123
+ }
52124
+ }
52125
+ return message;
52126
+ };
52127
+
52128
+ /**
52129
+ * Decodes a BuildInfo message from the specified reader or buffer, length delimited.
52130
+ * @function decodeDelimited
52131
+ * @memberof replit.goval.api.BuildInfo
52132
+ * @static
52133
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
52134
+ * @returns {replit.goval.api.BuildInfo} BuildInfo
52135
+ * @throws {Error} If the payload is not a reader or valid buffer
52136
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
52137
+ */
52138
+ BuildInfo.decodeDelimited = function decodeDelimited(reader) {
52139
+ if (!(reader instanceof $Reader))
52140
+ reader = new $Reader(reader);
52141
+ return this.decode(reader, reader.uint32());
52142
+ };
52143
+
52144
+ /**
52145
+ * Verifies a BuildInfo message.
52146
+ * @function verify
52147
+ * @memberof replit.goval.api.BuildInfo
52148
+ * @static
52149
+ * @param {Object.<string,*>} message Plain object to verify
52150
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
52151
+ */
52152
+ BuildInfo.verify = function verify(message) {
52153
+ if (typeof message !== "object" || message === null)
52154
+ return "object expected";
52155
+ if (message.id != null && message.hasOwnProperty("id"))
52156
+ if (!$util.isString(message.id))
52157
+ return "id: string expected";
52158
+ if (message.url != null && message.hasOwnProperty("url"))
52159
+ if (!$util.isString(message.url))
52160
+ return "url: string expected";
52161
+ return null;
52162
+ };
52163
+
52164
+ /**
52165
+ * Creates a BuildInfo message from a plain object. Also converts values to their respective internal types.
52166
+ * @function fromObject
52167
+ * @memberof replit.goval.api.BuildInfo
52168
+ * @static
52169
+ * @param {Object.<string,*>} object Plain object
52170
+ * @returns {replit.goval.api.BuildInfo} BuildInfo
52171
+ */
52172
+ BuildInfo.fromObject = function fromObject(object) {
52173
+ if (object instanceof $root.replit.goval.api.BuildInfo)
52174
+ return object;
52175
+ var message = new $root.replit.goval.api.BuildInfo();
52176
+ if (object.id != null)
52177
+ message.id = String(object.id);
52178
+ if (object.url != null)
52179
+ message.url = String(object.url);
52180
+ return message;
52181
+ };
52182
+
52183
+ /**
52184
+ * Creates a plain object from a BuildInfo message. Also converts values to other types if specified.
52185
+ * @function toObject
52186
+ * @memberof replit.goval.api.BuildInfo
52187
+ * @static
52188
+ * @param {replit.goval.api.BuildInfo} message BuildInfo
52189
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
52190
+ * @returns {Object.<string,*>} Plain object
52191
+ */
52192
+ BuildInfo.toObject = function toObject(message, options) {
52193
+ if (!options)
52194
+ options = {};
52195
+ var object = {};
52196
+ if (options.defaults) {
52197
+ object.id = "";
52198
+ object.url = "";
52199
+ }
52200
+ if (message.id != null && message.hasOwnProperty("id"))
52201
+ object.id = message.id;
52202
+ if (message.url != null && message.hasOwnProperty("url"))
52203
+ object.url = message.url;
52204
+ return object;
52205
+ };
52206
+
52207
+ /**
52208
+ * Converts this BuildInfo to JSON.
52209
+ * @function toJSON
52210
+ * @memberof replit.goval.api.BuildInfo
52211
+ * @instance
52212
+ * @returns {Object.<string,*>} JSON object
52213
+ */
52214
+ BuildInfo.prototype.toJSON = function toJSON() {
52215
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
52216
+ };
52217
+
52218
+ return BuildInfo;
52219
+ })();
52220
+
51985
52221
  api.TLSCertificate = (function() {
51986
52222
 
51987
52223
  /**
@@ -58349,6 +58585,7 @@
58349
58585
  * @property {string|null} [sourceRepl] Repl sourceRepl
58350
58586
  * @property {string|null} [database] Repl database
58351
58587
  * @property {replit.goval.api.repl.Buckets|replit.goval.api.repl.IBuckets|null} [buckets] Repl buckets
58588
+ * @property {replit.goval.api.repl.UserId|replit.goval.api.repl.IUserId|null} [userId] Repl userId
58352
58589
  */
58353
58590
 
58354
58591
  /**
@@ -58429,6 +58666,14 @@
58429
58666
  */
58430
58667
  Repl.prototype.buckets = null;
58431
58668
 
58669
+ /**
58670
+ * Repl userId.
58671
+ * @member {replit.goval.api.repl.UserId|null|undefined} userId
58672
+ * @memberof replit.goval.api.repl.Repl
58673
+ * @instance
58674
+ */
58675
+ Repl.prototype.userId = null;
58676
+
58432
58677
  /**
58433
58678
  * Creates a new Repl instance using the specified properties.
58434
58679
  * @function create
@@ -58469,6 +58714,8 @@
58469
58714
  writer.uint32(/* id 7, wireType 2 =*/58).string(message.database);
58470
58715
  if (message.buckets != null && Object.hasOwnProperty.call(message, "buckets"))
58471
58716
  $root.replit.goval.api.repl.Buckets.encode(message.buckets, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
58717
+ if (message.userId != null && Object.hasOwnProperty.call(message, "userId"))
58718
+ $root.replit.goval.api.repl.UserId.encode(message.userId, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim();
58472
58719
  return writer;
58473
58720
  };
58474
58721
 
@@ -58527,6 +58774,9 @@
58527
58774
  case 8:
58528
58775
  message.buckets = $root.replit.goval.api.repl.Buckets.decode(reader, reader.uint32());
58529
58776
  break;
58777
+ case 9:
58778
+ message.userId = $root.replit.goval.api.repl.UserId.decode(reader, reader.uint32());
58779
+ break;
58530
58780
  default:
58531
58781
  reader.skipType(tag & 7);
58532
58782
  break;
@@ -58588,6 +58838,11 @@
58588
58838
  if (error)
58589
58839
  return "buckets." + error;
58590
58840
  }
58841
+ if (message.userId != null && message.hasOwnProperty("userId")) {
58842
+ var error = $root.replit.goval.api.repl.UserId.verify(message.userId);
58843
+ if (error)
58844
+ return "userId." + error;
58845
+ }
58591
58846
  return null;
58592
58847
  };
58593
58848
 
@@ -58622,6 +58877,11 @@
58622
58877
  throw TypeError(".replit.goval.api.repl.Repl.buckets: object expected");
58623
58878
  message.buckets = $root.replit.goval.api.repl.Buckets.fromObject(object.buckets);
58624
58879
  }
58880
+ if (object.userId != null) {
58881
+ if (typeof object.userId !== "object")
58882
+ throw TypeError(".replit.goval.api.repl.Repl.userId: object expected");
58883
+ message.userId = $root.replit.goval.api.repl.UserId.fromObject(object.userId);
58884
+ }
58625
58885
  return message;
58626
58886
  };
58627
58887
 
@@ -58647,6 +58907,7 @@
58647
58907
  object.sourceRepl = "";
58648
58908
  object.database = "";
58649
58909
  object.buckets = null;
58910
+ object.userId = null;
58650
58911
  }
58651
58912
  if (message.id != null && message.hasOwnProperty("id"))
58652
58913
  object.id = message.id;
@@ -58664,6 +58925,8 @@
58664
58925
  object.database = message.database;
58665
58926
  if (message.buckets != null && message.hasOwnProperty("buckets"))
58666
58927
  object.buckets = $root.replit.goval.api.repl.Buckets.toObject(message.buckets, options);
58928
+ if (message.userId != null && message.hasOwnProperty("userId"))
58929
+ object.userId = $root.replit.goval.api.repl.UserId.toObject(message.userId, options);
58667
58930
  return object;
58668
58931
  };
58669
58932
 
@@ -58681,6 +58944,256 @@
58681
58944
  return Repl;
58682
58945
  })();
58683
58946
 
58947
+ /**
58948
+ * Environment enum.
58949
+ * @name replit.goval.api.repl.Environment
58950
+ * @enum {number}
58951
+ * @property {number} DEVELOPMENT=0 DEVELOPMENT value
58952
+ * @property {number} PRODUCTION=1 PRODUCTION value
58953
+ */
58954
+ repl.Environment = (function() {
58955
+ var valuesById = {}, values = Object.create(valuesById);
58956
+ values[valuesById[0] = "DEVELOPMENT"] = 0;
58957
+ values[valuesById[1] = "PRODUCTION"] = 1;
58958
+ return values;
58959
+ })();
58960
+
58961
+ repl.UserId = (function() {
58962
+
58963
+ /**
58964
+ * Properties of a UserId.
58965
+ * @memberof replit.goval.api.repl
58966
+ * @interface IUserId
58967
+ * @property {number|null} [id] UserId id
58968
+ * @property {replit.goval.api.repl.Environment|null} [environment] UserId environment
58969
+ */
58970
+
58971
+ /**
58972
+ * Constructs a new UserId.
58973
+ * @memberof replit.goval.api.repl
58974
+ * @classdesc Represents a UserId.
58975
+ * @constructor
58976
+ * @param {replit.goval.api.repl.IUserId=} [properties] Properties to set
58977
+ */
58978
+ function UserId(properties) {
58979
+ if (properties)
58980
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
58981
+ if (properties[keys[i]] != null)
58982
+ this[keys[i]] = properties[keys[i]];
58983
+ }
58984
+
58985
+ /**
58986
+ * UserId id.
58987
+ * @member {number} id
58988
+ * @memberof replit.goval.api.repl.UserId
58989
+ * @instance
58990
+ */
58991
+ UserId.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
58992
+
58993
+ /**
58994
+ * UserId environment.
58995
+ * @member {replit.goval.api.repl.Environment} environment
58996
+ * @memberof replit.goval.api.repl.UserId
58997
+ * @instance
58998
+ */
58999
+ UserId.prototype.environment = 0;
59000
+
59001
+ /**
59002
+ * Creates a new UserId instance using the specified properties.
59003
+ * @function create
59004
+ * @memberof replit.goval.api.repl.UserId
59005
+ * @static
59006
+ * @param {replit.goval.api.repl.IUserId=} [properties] Properties to set
59007
+ * @returns {replit.goval.api.repl.UserId} UserId instance
59008
+ */
59009
+ UserId.create = function create(properties) {
59010
+ return UserId.fromObject(properties);
59011
+ };
59012
+
59013
+ /**
59014
+ * Encodes the specified UserId message. Does not implicitly {@link replit.goval.api.repl.UserId.verify|verify} messages.
59015
+ * @function encode
59016
+ * @memberof replit.goval.api.repl.UserId
59017
+ * @static
59018
+ * @param {replit.goval.api.repl.UserId} message UserId message or plain object to encode
59019
+ * @param {$protobuf.Writer} [writer] Writer to encode to
59020
+ * @returns {$protobuf.Writer} Writer
59021
+ */
59022
+ UserId.encode = function encode(message, writer) {
59023
+ if (!writer)
59024
+ writer = $Writer.create();
59025
+ if (message.id != null && Object.hasOwnProperty.call(message, "id"))
59026
+ writer.uint32(/* id 1, wireType 0 =*/8).int64(message.id);
59027
+ if (message.environment != null && Object.hasOwnProperty.call(message, "environment"))
59028
+ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.environment);
59029
+ return writer;
59030
+ };
59031
+
59032
+ /**
59033
+ * Encodes the specified UserId message, length delimited. Does not implicitly {@link replit.goval.api.repl.UserId.verify|verify} messages.
59034
+ * @function encodeDelimited
59035
+ * @memberof replit.goval.api.repl.UserId
59036
+ * @static
59037
+ * @param {replit.goval.api.repl.UserId} message UserId message or plain object to encode
59038
+ * @param {$protobuf.Writer} [writer] Writer to encode to
59039
+ * @returns {$protobuf.Writer} Writer
59040
+ */
59041
+ UserId.encodeDelimited = function encodeDelimited(message, writer) {
59042
+ return this.encode(message, writer).ldelim();
59043
+ };
59044
+
59045
+ /**
59046
+ * Decodes a UserId message from the specified reader or buffer.
59047
+ * @function decode
59048
+ * @memberof replit.goval.api.repl.UserId
59049
+ * @static
59050
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
59051
+ * @param {number} [length] Message length if known beforehand
59052
+ * @returns {replit.goval.api.repl.UserId} UserId
59053
+ * @throws {Error} If the payload is not a reader or valid buffer
59054
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
59055
+ */
59056
+ UserId.decode = function decode(reader, length) {
59057
+ if (!(reader instanceof $Reader))
59058
+ reader = $Reader.create(reader);
59059
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.repl.UserId();
59060
+ while (reader.pos < end) {
59061
+ var tag = reader.uint32();
59062
+ switch (tag >>> 3) {
59063
+ case 1:
59064
+ message.id = reader.int64();
59065
+ break;
59066
+ case 2:
59067
+ message.environment = reader.int32();
59068
+ break;
59069
+ default:
59070
+ reader.skipType(tag & 7);
59071
+ break;
59072
+ }
59073
+ }
59074
+ return message;
59075
+ };
59076
+
59077
+ /**
59078
+ * Decodes a UserId message from the specified reader or buffer, length delimited.
59079
+ * @function decodeDelimited
59080
+ * @memberof replit.goval.api.repl.UserId
59081
+ * @static
59082
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
59083
+ * @returns {replit.goval.api.repl.UserId} UserId
59084
+ * @throws {Error} If the payload is not a reader or valid buffer
59085
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
59086
+ */
59087
+ UserId.decodeDelimited = function decodeDelimited(reader) {
59088
+ if (!(reader instanceof $Reader))
59089
+ reader = new $Reader(reader);
59090
+ return this.decode(reader, reader.uint32());
59091
+ };
59092
+
59093
+ /**
59094
+ * Verifies a UserId message.
59095
+ * @function verify
59096
+ * @memberof replit.goval.api.repl.UserId
59097
+ * @static
59098
+ * @param {Object.<string,*>} message Plain object to verify
59099
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
59100
+ */
59101
+ UserId.verify = function verify(message) {
59102
+ if (typeof message !== "object" || message === null)
59103
+ return "object expected";
59104
+ if (message.id != null && message.hasOwnProperty("id"))
59105
+ if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high)))
59106
+ return "id: integer|Long expected";
59107
+ if (message.environment != null && message.hasOwnProperty("environment"))
59108
+ switch (message.environment) {
59109
+ default:
59110
+ return "environment: enum value expected";
59111
+ case 0:
59112
+ case 1:
59113
+ break;
59114
+ }
59115
+ return null;
59116
+ };
59117
+
59118
+ /**
59119
+ * Creates a UserId message from a plain object. Also converts values to their respective internal types.
59120
+ * @function fromObject
59121
+ * @memberof replit.goval.api.repl.UserId
59122
+ * @static
59123
+ * @param {Object.<string,*>} object Plain object
59124
+ * @returns {replit.goval.api.repl.UserId} UserId
59125
+ */
59126
+ UserId.fromObject = function fromObject(object) {
59127
+ if (object instanceof $root.replit.goval.api.repl.UserId)
59128
+ return object;
59129
+ var message = new $root.replit.goval.api.repl.UserId();
59130
+ if (object.id != null)
59131
+ if ($util.Long)
59132
+ (message.id = $util.Long.fromValue(object.id)).unsigned = false;
59133
+ else if (typeof object.id === "string")
59134
+ message.id = parseInt(object.id, 10);
59135
+ else if (typeof object.id === "number")
59136
+ message.id = object.id;
59137
+ else if (typeof object.id === "object")
59138
+ message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber();
59139
+ switch (object.environment) {
59140
+ case "DEVELOPMENT":
59141
+ case 0:
59142
+ message.environment = 0;
59143
+ break;
59144
+ case "PRODUCTION":
59145
+ case 1:
59146
+ message.environment = 1;
59147
+ break;
59148
+ }
59149
+ return message;
59150
+ };
59151
+
59152
+ /**
59153
+ * Creates a plain object from a UserId message. Also converts values to other types if specified.
59154
+ * @function toObject
59155
+ * @memberof replit.goval.api.repl.UserId
59156
+ * @static
59157
+ * @param {replit.goval.api.repl.UserId} message UserId
59158
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
59159
+ * @returns {Object.<string,*>} Plain object
59160
+ */
59161
+ UserId.toObject = function toObject(message, options) {
59162
+ if (!options)
59163
+ options = {};
59164
+ var object = {};
59165
+ if (options.defaults) {
59166
+ if ($util.Long) {
59167
+ var long = new $util.Long(0, 0, false);
59168
+ object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
59169
+ } else
59170
+ object.id = options.longs === String ? "0" : 0;
59171
+ object.environment = options.enums === String ? "DEVELOPMENT" : 0;
59172
+ }
59173
+ if (message.id != null && message.hasOwnProperty("id"))
59174
+ if (typeof message.id === "number")
59175
+ object.id = options.longs === String ? String(message.id) : message.id;
59176
+ else
59177
+ object.id = options.longs === String ? $util.Long.prototype.toString.call(message.id) : options.longs === Number ? new $util.LongBits(message.id.low >>> 0, message.id.high >>> 0).toNumber() : message.id;
59178
+ if (message.environment != null && message.hasOwnProperty("environment"))
59179
+ object.environment = options.enums === String ? $root.replit.goval.api.repl.Environment[message.environment] : message.environment;
59180
+ return object;
59181
+ };
59182
+
59183
+ /**
59184
+ * Converts this UserId to JSON.
59185
+ * @function toJSON
59186
+ * @memberof replit.goval.api.repl.UserId
59187
+ * @instance
59188
+ * @returns {Object.<string,*>} JSON object
59189
+ */
59190
+ UserId.prototype.toJSON = function toJSON() {
59191
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
59192
+ };
59193
+
59194
+ return UserId;
59195
+ })();
59196
+
58684
59197
  repl.ResourceLimits = (function() {
58685
59198
 
58686
59199
  /**
@@ -217,6 +217,7 @@ declare var npm$namespace$replit$goval$api: {|
217
217
  IFileTypeAttrs: Class<replit$goval$api$IFileTypeAttrs>,
218
218
  IPackagerOption: Class<replit$goval$api$IPackagerOption>,
219
219
  IReplToken: Class<replit$goval$api$IReplToken>,
220
+ IBuildInfo: Class<replit$goval$api$IBuildInfo>,
220
221
  ITLSCertificate: Class<replit$goval$api$ITLSCertificate>,
221
222
  IReplTransfer: Class<replit$goval$api$IReplTransfer>,
222
223
  IAllowReplRequest: Class<replit$goval$api$IAllowReplRequest>,
@@ -434,6 +435,7 @@ declare var npm$namespace$replit$goval$api: {|
434
435
  FileTypeAttrs: typeof replit$goval$api$FileTypeAttrs,
435
436
  PackagerOption: typeof replit$goval$api$PackagerOption,
436
437
  ReplToken: typeof replit$goval$api$ReplToken,
438
+ BuildInfo: typeof replit$goval$api$BuildInfo,
437
439
  TLSCertificate: typeof replit$goval$api$TLSCertificate,
438
440
  ReplTransfer: typeof replit$goval$api$ReplTransfer,
439
441
  AllowReplRequest: typeof replit$goval$api$AllowReplRequest,
@@ -29133,6 +29135,11 @@ declare type replit$goval$api$IReplToken = {|
29133
29135
  features?:
29134
29136
  | (replit$goval$api$features$Feature | replit$goval$api$features$IFeature)[]
29135
29137
  | null,
29138
+
29139
+ /**
29140
+ * ReplToken buildInfo
29141
+ */
29142
+ buildInfo?: replit$goval$api$BuildInfo | replit$goval$api$IBuildInfo | null,
29136
29143
  |};
29137
29144
 
29138
29145
  /**
@@ -29220,6 +29227,11 @@ declare class replit$goval$api$ReplToken {
29220
29227
  */
29221
29228
  features: replit$goval$api$features$Feature[];
29222
29229
 
29230
+ /**
29231
+ * ReplToken buildInfo.
29232
+ */
29233
+ buildInfo?: replit$goval$api$BuildInfo | null;
29234
+
29223
29235
  /**
29224
29236
  * ReplToken metadata.
29225
29237
  */
@@ -29726,6 +29738,136 @@ declare class replit$goval$api$ReplToken$Presenced {
29726
29738
  |};
29727
29739
  }
29728
29740
 
29741
+ /**
29742
+ * Properties of a BuildInfo.
29743
+ */
29744
+ declare type replit$goval$api$IBuildInfo = {|
29745
+ /**
29746
+ * BuildInfo id
29747
+ */
29748
+ id?: string | null,
29749
+
29750
+ /**
29751
+ * BuildInfo url
29752
+ */
29753
+ url?: string | null,
29754
+ |};
29755
+
29756
+ /**
29757
+ * Represents a BuildInfo.
29758
+ */
29759
+ declare class replit$goval$api$BuildInfo {
29760
+ /**
29761
+ * Constructs a new BuildInfo.
29762
+ * @param [properties] Properties to set
29763
+ */
29764
+ constructor(properties?: replit$goval$api$IBuildInfo): this;
29765
+
29766
+ /**
29767
+ * BuildInfo id.
29768
+ */
29769
+ id: string;
29770
+
29771
+ /**
29772
+ * BuildInfo url.
29773
+ */
29774
+ url: string;
29775
+
29776
+ /**
29777
+ * Creates a new BuildInfo instance using the specified properties.
29778
+ * @param [properties] Properties to set
29779
+ * @returns BuildInfo instance
29780
+ */
29781
+ static create(
29782
+ properties?: replit$goval$api$IBuildInfo
29783
+ ): replit$goval$api$BuildInfo;
29784
+
29785
+ /**
29786
+ * [object Object],[object Object],[object Object]
29787
+ * @param message BuildInfo message or plain object to encode
29788
+ * @param [writer] Writer to encode to
29789
+ * @returns Writer
29790
+ */
29791
+ static encode(
29792
+ message: replit$goval$api$BuildInfo,
29793
+ writer?: $protobuf.Writer
29794
+ ): $protobuf.Writer;
29795
+
29796
+ /**
29797
+ * [object Object],[object Object],[object Object]
29798
+ * @param message BuildInfo message or plain object to encode
29799
+ * @param [writer] Writer to encode to
29800
+ * @returns Writer
29801
+ */
29802
+ static encodeDelimited(
29803
+ message: replit$goval$api$BuildInfo,
29804
+ writer?: $protobuf.Writer
29805
+ ): $protobuf.Writer;
29806
+
29807
+ /**
29808
+ * Decodes a BuildInfo message from the specified reader or buffer.
29809
+ * @param reader Reader or buffer to decode from
29810
+ * @param [length] Message length if known beforehand
29811
+ * @returns BuildInfo
29812
+ * @throws {Error} If the payload is not a reader or valid buffer
29813
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
29814
+ */
29815
+ static decode(
29816
+ reader: $protobuf.Reader | Uint8Array,
29817
+ length?: number
29818
+ ): replit$goval$api$BuildInfo;
29819
+
29820
+ /**
29821
+ * Decodes a BuildInfo message from the specified reader or buffer, length delimited.
29822
+ * @param reader Reader or buffer to decode from
29823
+ * @returns BuildInfo
29824
+ * @throws {Error} If the payload is not a reader or valid buffer
29825
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
29826
+ */
29827
+ static decodeDelimited(
29828
+ reader: $protobuf.Reader | Uint8Array
29829
+ ): replit$goval$api$BuildInfo;
29830
+
29831
+ /**
29832
+ * Verifies a BuildInfo message.
29833
+ * @param message Plain object to verify
29834
+ * @returns `null` if valid, otherwise the reason why it is not
29835
+ */
29836
+ static verify(message: {|
29837
+ [k: string]: any,
29838
+ |}): string | null;
29839
+
29840
+ /**
29841
+ * Creates a BuildInfo message from a plain object. Also converts values to their respective internal types.
29842
+ * @param object Plain object
29843
+ * @returns BuildInfo
29844
+ */
29845
+ static fromObject(object: {|
29846
+ [k: string]: any,
29847
+ |}): replit$goval$api$BuildInfo;
29848
+
29849
+ /**
29850
+ * Creates a plain object from a BuildInfo message. Also converts values to other types if specified.
29851
+ * @param message BuildInfo
29852
+ * @param [options] Conversion options
29853
+ * @returns Plain object
29854
+ */
29855
+ static toObject(
29856
+ message: replit$goval$api$BuildInfo,
29857
+ options?: $protobuf.IConversionOptions
29858
+ ): {|
29859
+ [k: string]: any,
29860
+ |};
29861
+
29862
+ /**
29863
+ * Converts this BuildInfo to JSON.
29864
+ * @returns JSON object
29865
+ */
29866
+ toJSON(): {|
29867
+ [k: string]: any,
29868
+ |};
29869
+ }
29870
+
29729
29871
  /**
29730
29872
  * Properties of a TLSCertificate.
29731
29873
  */
@@ -33228,14 +33370,17 @@ declare class replit$goval$api$features$Feature {
33228
33370
  }
33229
33371
 
33230
33372
  declare var npm$namespace$replit$goval$api$repl: {|
33373
+ Environment: typeof replit$goval$api$repl$Environment,
33231
33374
  Persistence: typeof replit$goval$api$repl$Persistence,
33232
33375
  IBuckets: Class<replit$goval$api$repl$IBuckets>,
33233
33376
  IRepl: Class<replit$goval$api$repl$IRepl>,
33377
+ IUserId: Class<replit$goval$api$repl$IUserId>,
33234
33378
  IResourceLimits: Class<replit$goval$api$repl$IResourceLimits>,
33235
33379
  IPermissions: Class<replit$goval$api$repl$IPermissions>,
33236
33380
  IMetadata: Class<replit$goval$api$repl$IMetadata>,
33237
33381
  Buckets: typeof replit$goval$api$repl$Buckets,
33238
33382
  Repl: typeof replit$goval$api$repl$Repl,
33383
+ UserId: typeof replit$goval$api$repl$UserId,
33239
33384
  ResourceLimits: typeof replit$goval$api$repl$ResourceLimits,
33240
33385
  Permissions: typeof replit$goval$api$repl$Permissions,
33241
33386
  Metadata: typeof replit$goval$api$repl$Metadata,
@@ -33417,6 +33562,11 @@ declare type replit$goval$api$repl$IRepl = {|
33417
33562
  | replit$goval$api$repl$Buckets
33418
33563
  | replit$goval$api$repl$IBuckets
33419
33564
  | null,
33565
+
33566
+ /**
33567
+ * Repl userId
33568
+ */
33569
+ userId?: replit$goval$api$repl$UserId | replit$goval$api$repl$IUserId | null,
33420
33570
  |};
33421
33571
 
33422
33572
  /**
@@ -33469,6 +33619,11 @@ declare class replit$goval$api$repl$Repl {
33469
33619
  */
33470
33620
  buckets?: replit$goval$api$repl$Buckets | null;
33471
33621
 
33622
+ /**
33623
+ * Repl userId.
33624
+ */
33625
+ userId?: replit$goval$api$repl$UserId | null;
33626
+
33472
33627
  /**
33473
33628
  * Creates a new Repl instance using the specified properties.
33474
33629
  * @param [properties] Properties to set
@@ -33564,6 +33719,145 @@ declare class replit$goval$api$repl$Repl {
33564
33719
  |};
33565
33720
  }
33566
33721
 
33722
+ /**
33723
+ * Environment enum.
33724
+ */
33725
+
33726
+ declare var replit$goval$api$repl$Environment: {|
33727
+ +DEVELOPMENT: 0, // 0
33728
+ +PRODUCTION: 1, // 1
33729
+ |};
33730
+
33731
+ /**
33732
+ * Properties of a UserId.
33733
+ */
33734
+ declare type replit$goval$api$repl$IUserId = {|
33735
+ /**
33736
+ * UserId id
33737
+ */
33738
+ id?: number | null,
33739
+
33740
+ /**
33741
+ * UserId environment
33742
+ */
33743
+ environment?: $Values<typeof replit$goval$api$repl$Environment> | null,
33744
+ |};
33745
+
33746
+ /**
33747
+ * Represents a UserId.
33748
+ */
33749
+ declare class replit$goval$api$repl$UserId {
33750
+ /**
33751
+ * Constructs a new UserId.
33752
+ * @param [properties] Properties to set
33753
+ */
33754
+ constructor(properties?: replit$goval$api$repl$IUserId): this;
33755
+
33756
+ /**
33757
+ * UserId id.
33758
+ */
33759
+ id: number;
33760
+
33761
+ /**
33762
+ * UserId environment.
33763
+ */
33764
+ environment: $Values<typeof replit$goval$api$repl$Environment>;
33765
+
33766
+ /**
33767
+ * Creates a new UserId instance using the specified properties.
33768
+ * @param [properties] Properties to set
33769
+ * @returns UserId instance
33770
+ */
33771
+ static create(
33772
+ properties?: replit$goval$api$repl$IUserId
33773
+ ): replit$goval$api$repl$UserId;
33774
+
33775
+ /**
33776
+ * [object Object],[object Object],[object Object]
33777
+ * @param message UserId message or plain object to encode
33778
+ * @param [writer] Writer to encode to
33779
+ * @returns Writer
33780
+ */
33781
+ static encode(
33782
+ message: replit$goval$api$repl$UserId,
33783
+ writer?: $protobuf.Writer
33784
+ ): $protobuf.Writer;
33785
+
33786
+ /**
33787
+ * [object Object],[object Object],[object Object]
33788
+ * @param message UserId message or plain object to encode
33789
+ * @param [writer] Writer to encode to
33790
+ * @returns Writer
33791
+ */
33792
+ static encodeDelimited(
33793
+ message: replit$goval$api$repl$UserId,
33794
+ writer?: $protobuf.Writer
33795
+ ): $protobuf.Writer;
33796
+
33797
+ /**
33798
+ * Decodes a UserId message from the specified reader or buffer.
33799
+ * @param reader Reader or buffer to decode from
33800
+ * @param [length] Message length if known beforehand
33801
+ * @returns UserId
33802
+ * @throws {Error} If the payload is not a reader or valid buffer
33803
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
33804
+ */
33805
+ static decode(
33806
+ reader: $protobuf.Reader | Uint8Array,
33807
+ length?: number
33808
+ ): replit$goval$api$repl$UserId;
33809
+
33810
+ /**
33811
+ * Decodes a UserId message from the specified reader or buffer, length delimited.
33812
+ * @param reader Reader or buffer to decode from
33813
+ * @returns UserId
33814
+ * @throws {Error} If the payload is not a reader or valid buffer
33815
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
33816
+ */
33817
+ static decodeDelimited(
33818
+ reader: $protobuf.Reader | Uint8Array
33819
+ ): replit$goval$api$repl$UserId;
33820
+
33821
+ /**
33822
+ * Verifies a UserId message.
33823
+ * @param message Plain object to verify
33824
+ * @returns `null` if valid, otherwise the reason why it is not
33825
+ */
33826
+ static verify(message: {|
33827
+ [k: string]: any,
33828
+ |}): string | null;
33829
+
33830
+ /**
33831
+ * Creates a UserId message from a plain object. Also converts values to their respective internal types.
33832
+ * @param object Plain object
33833
+ * @returns UserId
33834
+ */
33835
+ static fromObject(object: {|
33836
+ [k: string]: any,
33837
+ |}): replit$goval$api$repl$UserId;
33838
+
33839
+ /**
33840
+ * Creates a plain object from a UserId message. Also converts values to other types if specified.
33841
+ * @param message UserId
33842
+ * @param [options] Conversion options
33843
+ * @returns Plain object
33844
+ */
33845
+ static toObject(
33846
+ message: replit$goval$api$repl$UserId,
33847
+ options?: $protobuf.IConversionOptions
33848
+ ): {|
33849
+ [k: string]: any,
33850
+ |};
33851
+
33852
+ /**
33853
+ * Converts this UserId to JSON.
33854
+ * @returns JSON object
33855
+ */
33856
+ toJSON(): {|
33857
+ [k: string]: any,
33858
+ |};
33859
+ }
33860
+
33567
33861
  /**
33568
33862
  * Properties of a ResourceLimits.
33569
33863
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@replit/protocol",
3
- "version": "0.2.94",
3
+ "version": "0.2.95",
4
4
  "description": "JavaScript bindings for the Replit protocol",
5
5
  "main": "main/index.js",
6
6
  "repository": "https://github.com/replit/protocol",