@replit/protocol 0.2.94 → 0.2.96

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.
@@ -29133,6 +29133,14 @@ declare type replit$goval$api$IReplToken = {|
29133
29133
  features?:
29134
29134
  | (replit$goval$api$features$Feature | replit$goval$api$features$IFeature)[]
29135
29135
  | null,
29136
+
29137
+ /**
29138
+ * ReplToken buildInfo
29139
+ */
29140
+ buildInfo?:
29141
+ | replit$goval$api$repl$BuildInfo
29142
+ | replit$goval$api$repl$IBuildInfo
29143
+ | null,
29136
29144
  |};
29137
29145
 
29138
29146
  /**
@@ -29220,6 +29228,11 @@ declare class replit$goval$api$ReplToken {
29220
29228
  */
29221
29229
  features: replit$goval$api$features$Feature[];
29222
29230
 
29231
+ /**
29232
+ * ReplToken buildInfo.
29233
+ */
29234
+ buildInfo?: replit$goval$api$repl$BuildInfo | null;
29235
+
29223
29236
  /**
29224
29237
  * ReplToken metadata.
29225
29238
  */
@@ -33228,17 +33241,22 @@ declare class replit$goval$api$features$Feature {
33228
33241
  }
33229
33242
 
33230
33243
  declare var npm$namespace$replit$goval$api$repl: {|
33244
+ Environment: typeof replit$goval$api$repl$Environment,
33231
33245
  Persistence: typeof replit$goval$api$repl$Persistence,
33232
33246
  IBuckets: Class<replit$goval$api$repl$IBuckets>,
33233
33247
  IRepl: Class<replit$goval$api$repl$IRepl>,
33248
+ IUserId: Class<replit$goval$api$repl$IUserId>,
33234
33249
  IResourceLimits: Class<replit$goval$api$repl$IResourceLimits>,
33235
33250
  IPermissions: Class<replit$goval$api$repl$IPermissions>,
33236
33251
  IMetadata: Class<replit$goval$api$repl$IMetadata>,
33252
+ IBuildInfo: Class<replit$goval$api$repl$IBuildInfo>,
33237
33253
  Buckets: typeof replit$goval$api$repl$Buckets,
33238
33254
  Repl: typeof replit$goval$api$repl$Repl,
33255
+ UserId: typeof replit$goval$api$repl$UserId,
33239
33256
  ResourceLimits: typeof replit$goval$api$repl$ResourceLimits,
33240
33257
  Permissions: typeof replit$goval$api$repl$Permissions,
33241
33258
  Metadata: typeof replit$goval$api$repl$Metadata,
33259
+ BuildInfo: typeof replit$goval$api$repl$BuildInfo,
33242
33260
  |};
33243
33261
 
33244
33262
  /**
@@ -33417,6 +33435,11 @@ declare type replit$goval$api$repl$IRepl = {|
33417
33435
  | replit$goval$api$repl$Buckets
33418
33436
  | replit$goval$api$repl$IBuckets
33419
33437
  | null,
33438
+
33439
+ /**
33440
+ * Repl userId
33441
+ */
33442
+ userId?: replit$goval$api$repl$UserId | replit$goval$api$repl$IUserId | null,
33420
33443
  |};
33421
33444
 
33422
33445
  /**
@@ -33469,6 +33492,11 @@ declare class replit$goval$api$repl$Repl {
33469
33492
  */
33470
33493
  buckets?: replit$goval$api$repl$Buckets | null;
33471
33494
 
33495
+ /**
33496
+ * Repl userId.
33497
+ */
33498
+ userId?: replit$goval$api$repl$UserId | null;
33499
+
33472
33500
  /**
33473
33501
  * Creates a new Repl instance using the specified properties.
33474
33502
  * @param [properties] Properties to set
@@ -33564,6 +33592,145 @@ declare class replit$goval$api$repl$Repl {
33564
33592
  |};
33565
33593
  }
33566
33594
 
33595
+ /**
33596
+ * Environment enum.
33597
+ */
33598
+
33599
+ declare var replit$goval$api$repl$Environment: {|
33600
+ +DEVELOPMENT: 0, // 0
33601
+ +PRODUCTION: 1, // 1
33602
+ |};
33603
+
33604
+ /**
33605
+ * Properties of a UserId.
33606
+ */
33607
+ declare type replit$goval$api$repl$IUserId = {|
33608
+ /**
33609
+ * UserId id
33610
+ */
33611
+ id?: number | null,
33612
+
33613
+ /**
33614
+ * UserId environment
33615
+ */
33616
+ environment?: $Values<typeof replit$goval$api$repl$Environment> | null,
33617
+ |};
33618
+
33619
+ /**
33620
+ * Represents a UserId.
33621
+ */
33622
+ declare class replit$goval$api$repl$UserId {
33623
+ /**
33624
+ * Constructs a new UserId.
33625
+ * @param [properties] Properties to set
33626
+ */
33627
+ constructor(properties?: replit$goval$api$repl$IUserId): this;
33628
+
33629
+ /**
33630
+ * UserId id.
33631
+ */
33632
+ id: number;
33633
+
33634
+ /**
33635
+ * UserId environment.
33636
+ */
33637
+ environment: $Values<typeof replit$goval$api$repl$Environment>;
33638
+
33639
+ /**
33640
+ * Creates a new UserId instance using the specified properties.
33641
+ * @param [properties] Properties to set
33642
+ * @returns UserId instance
33643
+ */
33644
+ static create(
33645
+ properties?: replit$goval$api$repl$IUserId
33646
+ ): replit$goval$api$repl$UserId;
33647
+
33648
+ /**
33649
+ * [object Object],[object Object],[object Object]
33650
+ * @param message UserId message or plain object to encode
33651
+ * @param [writer] Writer to encode to
33652
+ * @returns Writer
33653
+ */
33654
+ static encode(
33655
+ message: replit$goval$api$repl$UserId,
33656
+ writer?: $protobuf.Writer
33657
+ ): $protobuf.Writer;
33658
+
33659
+ /**
33660
+ * [object Object],[object Object],[object Object]
33661
+ * @param message UserId message or plain object to encode
33662
+ * @param [writer] Writer to encode to
33663
+ * @returns Writer
33664
+ */
33665
+ static encodeDelimited(
33666
+ message: replit$goval$api$repl$UserId,
33667
+ writer?: $protobuf.Writer
33668
+ ): $protobuf.Writer;
33669
+
33670
+ /**
33671
+ * Decodes a UserId message from the specified reader or buffer.
33672
+ * @param reader Reader or buffer to decode from
33673
+ * @param [length] Message length if known beforehand
33674
+ * @returns UserId
33675
+ * @throws {Error} If the payload is not a reader or valid buffer
33676
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
33677
+ */
33678
+ static decode(
33679
+ reader: $protobuf.Reader | Uint8Array,
33680
+ length?: number
33681
+ ): replit$goval$api$repl$UserId;
33682
+
33683
+ /**
33684
+ * Decodes a UserId message from the specified reader or buffer, length delimited.
33685
+ * @param reader Reader or buffer to decode from
33686
+ * @returns UserId
33687
+ * @throws {Error} If the payload is not a reader or valid buffer
33688
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
33689
+ */
33690
+ static decodeDelimited(
33691
+ reader: $protobuf.Reader | Uint8Array
33692
+ ): replit$goval$api$repl$UserId;
33693
+
33694
+ /**
33695
+ * Verifies a UserId message.
33696
+ * @param message Plain object to verify
33697
+ * @returns `null` if valid, otherwise the reason why it is not
33698
+ */
33699
+ static verify(message: {|
33700
+ [k: string]: any,
33701
+ |}): string | null;
33702
+
33703
+ /**
33704
+ * Creates a UserId message from a plain object. Also converts values to their respective internal types.
33705
+ * @param object Plain object
33706
+ * @returns UserId
33707
+ */
33708
+ static fromObject(object: {|
33709
+ [k: string]: any,
33710
+ |}): replit$goval$api$repl$UserId;
33711
+
33712
+ /**
33713
+ * Creates a plain object from a UserId message. Also converts values to other types if specified.
33714
+ * @param message UserId
33715
+ * @param [options] Conversion options
33716
+ * @returns Plain object
33717
+ */
33718
+ static toObject(
33719
+ message: replit$goval$api$repl$UserId,
33720
+ options?: $protobuf.IConversionOptions
33721
+ ): {|
33722
+ [k: string]: any,
33723
+ |};
33724
+
33725
+ /**
33726
+ * Converts this UserId to JSON.
33727
+ * @returns JSON object
33728
+ */
33729
+ toJSON(): {|
33730
+ [k: string]: any,
33731
+ |};
33732
+ }
33733
+
33567
33734
  /**
33568
33735
  * Properties of a ResourceLimits.
33569
33736
  */
@@ -33947,6 +34114,14 @@ declare type replit$goval$api$repl$IMetadata = {|
33947
34114
  features?:
33948
34115
  | (replit$goval$api$features$Feature | replit$goval$api$features$IFeature)[]
33949
34116
  | null,
34117
+
34118
+ /**
34119
+ * Metadata buildInfo
34120
+ */
34121
+ buildInfo?:
34122
+ | replit$goval$api$repl$BuildInfo
34123
+ | replit$goval$api$repl$IBuildInfo
34124
+ | null,
33950
34125
  |};
33951
34126
 
33952
34127
  /**
@@ -33994,6 +34169,11 @@ declare class replit$goval$api$repl$Metadata {
33994
34169
  */
33995
34170
  features: replit$goval$api$features$Feature[];
33996
34171
 
34172
+ /**
34173
+ * Metadata buildInfo.
34174
+ */
34175
+ buildInfo?: replit$goval$api$repl$BuildInfo | null;
34176
+
33997
34177
  /**
33998
34178
  * Creates a new Metadata instance using the specified properties.
33999
34179
  * @param [properties] Properties to set
@@ -34088,6 +34268,136 @@ declare class replit$goval$api$repl$Metadata {
34088
34268
  [k: string]: any,
34089
34269
  |};
34090
34270
  }
34271
+
34272
+ /**
34273
+ * Properties of a BuildInfo.
34274
+ */
34275
+ declare type replit$goval$api$repl$IBuildInfo = {|
34276
+ /**
34277
+ * BuildInfo id
34278
+ */
34279
+ id?: string | null,
34280
+
34281
+ /**
34282
+ * BuildInfo url
34283
+ */
34284
+ url?: string | null,
34285
+ |};
34286
+
34287
+ /**
34288
+ * Represents a BuildInfo.
34289
+ */
34290
+ declare class replit$goval$api$repl$BuildInfo {
34291
+ /**
34292
+ * Constructs a new BuildInfo.
34293
+ * @param [properties] Properties to set
34294
+ */
34295
+ constructor(properties?: replit$goval$api$repl$IBuildInfo): this;
34296
+
34297
+ /**
34298
+ * BuildInfo id.
34299
+ */
34300
+ id: string;
34301
+
34302
+ /**
34303
+ * BuildInfo url.
34304
+ */
34305
+ url: string;
34306
+
34307
+ /**
34308
+ * Creates a new BuildInfo instance using the specified properties.
34309
+ * @param [properties] Properties to set
34310
+ * @returns BuildInfo instance
34311
+ */
34312
+ static create(
34313
+ properties?: replit$goval$api$repl$IBuildInfo
34314
+ ): replit$goval$api$repl$BuildInfo;
34315
+
34316
+ /**
34317
+ * [object Object],[object Object],[object Object]
34318
+ * @param message BuildInfo message or plain object to encode
34319
+ * @param [writer] Writer to encode to
34320
+ * @returns Writer
34321
+ */
34322
+ static encode(
34323
+ message: replit$goval$api$repl$BuildInfo,
34324
+ writer?: $protobuf.Writer
34325
+ ): $protobuf.Writer;
34326
+
34327
+ /**
34328
+ * [object Object],[object Object],[object Object]
34329
+ * @param message BuildInfo message or plain object to encode
34330
+ * @param [writer] Writer to encode to
34331
+ * @returns Writer
34332
+ */
34333
+ static encodeDelimited(
34334
+ message: replit$goval$api$repl$BuildInfo,
34335
+ writer?: $protobuf.Writer
34336
+ ): $protobuf.Writer;
34337
+
34338
+ /**
34339
+ * Decodes a BuildInfo message from the specified reader or buffer.
34340
+ * @param reader Reader or buffer to decode from
34341
+ * @param [length] Message length if known beforehand
34342
+ * @returns BuildInfo
34343
+ * @throws {Error} If the payload is not a reader or valid buffer
34344
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
34345
+ */
34346
+ static decode(
34347
+ reader: $protobuf.Reader | Uint8Array,
34348
+ length?: number
34349
+ ): replit$goval$api$repl$BuildInfo;
34350
+
34351
+ /**
34352
+ * Decodes a BuildInfo message from the specified reader or buffer, length delimited.
34353
+ * @param reader Reader or buffer to decode from
34354
+ * @returns BuildInfo
34355
+ * @throws {Error} If the payload is not a reader or valid buffer
34356
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
34357
+ */
34358
+ static decodeDelimited(
34359
+ reader: $protobuf.Reader | Uint8Array
34360
+ ): replit$goval$api$repl$BuildInfo;
34361
+
34362
+ /**
34363
+ * Verifies a BuildInfo message.
34364
+ * @param message Plain object to verify
34365
+ * @returns `null` if valid, otherwise the reason why it is not
34366
+ */
34367
+ static verify(message: {|
34368
+ [k: string]: any,
34369
+ |}): string | null;
34370
+
34371
+ /**
34372
+ * Creates a BuildInfo message from a plain object. Also converts values to their respective internal types.
34373
+ * @param object Plain object
34374
+ * @returns BuildInfo
34375
+ */
34376
+ static fromObject(object: {|
34377
+ [k: string]: any,
34378
+ |}): replit$goval$api$repl$BuildInfo;
34379
+
34380
+ /**
34381
+ * Creates a plain object from a BuildInfo message. Also converts values to other types if specified.
34382
+ * @param message BuildInfo
34383
+ * @param [options] Conversion options
34384
+ * @returns Plain object
34385
+ */
34386
+ static toObject(
34387
+ message: replit$goval$api$repl$BuildInfo,
34388
+ options?: $protobuf.IConversionOptions
34389
+ ): {|
34390
+ [k: string]: any,
34391
+ |};
34392
+
34393
+ /**
34394
+ * Converts this BuildInfo to JSON.
34395
+ * @returns JSON object
34396
+ */
34397
+ toJSON(): {|
34398
+ [k: string]: any,
34399
+ |};
34400
+ }
34091
34401
  export var google = npm$namespace$google;
34092
34402
 
34093
34403
  declare var npm$namespace$google: {|
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@replit/protocol",
3
- "version": "0.2.94",
3
+ "version": "0.2.96",
4
4
  "description": "JavaScript bindings for the Replit protocol",
5
5
  "main": "main/index.js",
6
6
  "repository": "https://github.com/replit/protocol",