@replit/protocol 0.4.17 → 0.4.18

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
@@ -29353,9 +29353,6 @@ export namespace replit {
29353
29353
 
29354
29354
  /** ReplToken before */
29355
29355
  before?: (google.protobuf.Timestamp|google.protobuf.ITimestamp|null);
29356
-
29357
- /** ReplToken chamberSecrets */
29358
- chamberSecrets?: ((replit.goval.api.chamber.ChamberSecretName|replit.goval.api.chamber.IChamberSecretName)[]|null);
29359
29356
  }
29360
29357
 
29361
29358
  /** Represents a ReplToken. */
@@ -29427,9 +29424,6 @@ export namespace replit {
29427
29424
  /** ReplToken before. */
29428
29425
  public before?: (google.protobuf.Timestamp|null);
29429
29426
 
29430
- /** ReplToken chamberSecrets. */
29431
- public chamberSecrets: replit.goval.api.chamber.ChamberSecretName[];
29432
-
29433
29427
  /** ReplToken metadata. */
29434
29428
  public metadata?: ("repl"|"id"|"classroom");
29435
29429
 
@@ -36708,6 +36702,9 @@ export namespace replit {
36708
36702
 
36709
36703
  /** Org slug */
36710
36704
  slug?: (string|null);
36705
+
36706
+ /** Org isEnterprise */
36707
+ isEnterprise?: (boolean|null);
36711
36708
  }
36712
36709
 
36713
36710
  /** Represents an Org. */
@@ -36728,6 +36725,9 @@ export namespace replit {
36728
36725
  /** Org slug. */
36729
36726
  public slug: string;
36730
36727
 
36728
+ /** Org isEnterprise. */
36729
+ public isEnterprise: boolean;
36730
+
36731
36731
  /**
36732
36732
  * Creates a new Org instance using the specified properties.
36733
36733
  * @param [properties] Properties to set
@@ -37951,219 +37951,6 @@ export namespace replit {
37951
37951
  */
37952
37952
  public static getTypeUrl(typeUrlPrefix?: string): string;
37953
37953
  }
37954
-
37955
- /** Namespace chamber. */
37956
- namespace chamber {
37957
-
37958
- /** Properties of an OrgSecret. */
37959
- interface IOrgSecret {
37960
-
37961
- /** OrgSecret orgId */
37962
- orgId?: (string|null);
37963
-
37964
- /** OrgSecret name */
37965
- name?: (string|null);
37966
-
37967
- /** OrgSecret version */
37968
- version?: (string|null);
37969
- }
37970
-
37971
- /** Represents an OrgSecret. */
37972
- class OrgSecret {
37973
-
37974
- /**
37975
- * Constructs a new OrgSecret.
37976
- * @param [properties] Properties to set
37977
- */
37978
- private constructor(properties?: replit.goval.api.chamber.IOrgSecret);
37979
-
37980
- /** OrgSecret orgId. */
37981
- public orgId: string;
37982
-
37983
- /** OrgSecret name. */
37984
- public name: string;
37985
-
37986
- /** OrgSecret version. */
37987
- public version: string;
37988
-
37989
- /**
37990
- * Creates a new OrgSecret instance using the specified properties.
37991
- * @param [properties] Properties to set
37992
- * @returns OrgSecret instance
37993
- */
37994
- public static create(properties?: replit.goval.api.chamber.IOrgSecret): replit.goval.api.chamber.OrgSecret;
37995
-
37996
- /**
37997
- * Encodes the specified OrgSecret message. Does not implicitly {@link replit.goval.api.chamber.OrgSecret.verify|verify} messages.
37998
- * @param message OrgSecret message or plain object to encode
37999
- * @param [writer] Writer to encode to
38000
- * @returns Writer
38001
- */
38002
- public static encode(message: replit.goval.api.chamber.OrgSecret, writer?: $protobuf.Writer): $protobuf.Writer;
38003
-
38004
- /**
38005
- * Encodes the specified OrgSecret message, length delimited. Does not implicitly {@link replit.goval.api.chamber.OrgSecret.verify|verify} messages.
38006
- * @param message OrgSecret message or plain object to encode
38007
- * @param [writer] Writer to encode to
38008
- * @returns Writer
38009
- */
38010
- public static encodeDelimited(message: replit.goval.api.chamber.OrgSecret, writer?: $protobuf.Writer): $protobuf.Writer;
38011
-
38012
- /**
38013
- * Decodes an OrgSecret message from the specified reader or buffer.
38014
- * @param reader Reader or buffer to decode from
38015
- * @param [length] Message length if known beforehand
38016
- * @returns OrgSecret
38017
- * @throws {Error} If the payload is not a reader or valid buffer
38018
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
38019
- */
38020
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): replit.goval.api.chamber.OrgSecret;
38021
-
38022
- /**
38023
- * Decodes an OrgSecret message from the specified reader or buffer, length delimited.
38024
- * @param reader Reader or buffer to decode from
38025
- * @returns OrgSecret
38026
- * @throws {Error} If the payload is not a reader or valid buffer
38027
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
38028
- */
38029
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): replit.goval.api.chamber.OrgSecret;
38030
-
38031
- /**
38032
- * Verifies an OrgSecret message.
38033
- * @param message Plain object to verify
38034
- * @returns `null` if valid, otherwise the reason why it is not
38035
- */
38036
- public static verify(message: { [k: string]: any }): (string|null);
38037
-
38038
- /**
38039
- * Creates an OrgSecret message from a plain object. Also converts values to their respective internal types.
38040
- * @param object Plain object
38041
- * @returns OrgSecret
38042
- */
38043
- public static fromObject(object: { [k: string]: any }): replit.goval.api.chamber.OrgSecret;
38044
-
38045
- /**
38046
- * Creates a plain object from an OrgSecret message. Also converts values to other types if specified.
38047
- * @param message OrgSecret
38048
- * @param [options] Conversion options
38049
- * @returns Plain object
38050
- */
38051
- public static toObject(message: replit.goval.api.chamber.OrgSecret, options?: $protobuf.IConversionOptions): { [k: string]: any };
38052
-
38053
- /**
38054
- * Converts this OrgSecret to JSON.
38055
- * @returns JSON object
38056
- */
38057
- public toJSON(): { [k: string]: any };
38058
-
38059
- /**
38060
- * Gets the default type url for OrgSecret
38061
- * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
38062
- * @returns The default type url
38063
- */
38064
- public static getTypeUrl(typeUrlPrefix?: string): string;
38065
- }
38066
-
38067
- /** Properties of a ChamberSecretName. */
38068
- interface IChamberSecretName {
38069
-
38070
- /** ChamberSecretName orgSecret */
38071
- orgSecret?: (replit.goval.api.chamber.OrgSecret|replit.goval.api.chamber.IOrgSecret|null);
38072
- }
38073
-
38074
- /** Represents a ChamberSecretName. */
38075
- class ChamberSecretName {
38076
-
38077
- /**
38078
- * Constructs a new ChamberSecretName.
38079
- * @param [properties] Properties to set
38080
- */
38081
- private constructor(properties?: replit.goval.api.chamber.IChamberSecretName);
38082
-
38083
- /** ChamberSecretName orgSecret. */
38084
- public orgSecret?: (replit.goval.api.chamber.OrgSecret|null);
38085
-
38086
- /** ChamberSecretName secretType. */
38087
- public secretType?: "orgSecret";
38088
-
38089
- /**
38090
- * Creates a new ChamberSecretName instance using the specified properties.
38091
- * @param [properties] Properties to set
38092
- * @returns ChamberSecretName instance
38093
- */
38094
- public static create(properties?: replit.goval.api.chamber.IChamberSecretName): replit.goval.api.chamber.ChamberSecretName;
38095
-
38096
- /**
38097
- * Encodes the specified ChamberSecretName message. Does not implicitly {@link replit.goval.api.chamber.ChamberSecretName.verify|verify} messages.
38098
- * @param message ChamberSecretName message or plain object to encode
38099
- * @param [writer] Writer to encode to
38100
- * @returns Writer
38101
- */
38102
- public static encode(message: replit.goval.api.chamber.ChamberSecretName, writer?: $protobuf.Writer): $protobuf.Writer;
38103
-
38104
- /**
38105
- * Encodes the specified ChamberSecretName message, length delimited. Does not implicitly {@link replit.goval.api.chamber.ChamberSecretName.verify|verify} messages.
38106
- * @param message ChamberSecretName message or plain object to encode
38107
- * @param [writer] Writer to encode to
38108
- * @returns Writer
38109
- */
38110
- public static encodeDelimited(message: replit.goval.api.chamber.ChamberSecretName, writer?: $protobuf.Writer): $protobuf.Writer;
38111
-
38112
- /**
38113
- * Decodes a ChamberSecretName message from the specified reader or buffer.
38114
- * @param reader Reader or buffer to decode from
38115
- * @param [length] Message length if known beforehand
38116
- * @returns ChamberSecretName
38117
- * @throws {Error} If the payload is not a reader or valid buffer
38118
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
38119
- */
38120
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): replit.goval.api.chamber.ChamberSecretName;
38121
-
38122
- /**
38123
- * Decodes a ChamberSecretName message from the specified reader or buffer, length delimited.
38124
- * @param reader Reader or buffer to decode from
38125
- * @returns ChamberSecretName
38126
- * @throws {Error} If the payload is not a reader or valid buffer
38127
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
38128
- */
38129
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): replit.goval.api.chamber.ChamberSecretName;
38130
-
38131
- /**
38132
- * Verifies a ChamberSecretName message.
38133
- * @param message Plain object to verify
38134
- * @returns `null` if valid, otherwise the reason why it is not
38135
- */
38136
- public static verify(message: { [k: string]: any }): (string|null);
38137
-
38138
- /**
38139
- * Creates a ChamberSecretName message from a plain object. Also converts values to their respective internal types.
38140
- * @param object Plain object
38141
- * @returns ChamberSecretName
38142
- */
38143
- public static fromObject(object: { [k: string]: any }): replit.goval.api.chamber.ChamberSecretName;
38144
-
38145
- /**
38146
- * Creates a plain object from a ChamberSecretName message. Also converts values to other types if specified.
38147
- * @param message ChamberSecretName
38148
- * @param [options] Conversion options
38149
- * @returns Plain object
38150
- */
38151
- public static toObject(message: replit.goval.api.chamber.ChamberSecretName, options?: $protobuf.IConversionOptions): { [k: string]: any };
38152
-
38153
- /**
38154
- * Converts this ChamberSecretName to JSON.
38155
- * @returns JSON object
38156
- */
38157
- public toJSON(): { [k: string]: any };
38158
-
38159
- /**
38160
- * Gets the default type url for ChamberSecretName
38161
- * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
38162
- * @returns The default type url
38163
- */
38164
- public static getTypeUrl(typeUrlPrefix?: string): string;
38165
- }
38166
- }
38167
37954
  }
38168
37955
  }
38169
37956
  }
package/main/index.js CHANGED
@@ -74131,7 +74131,6 @@
74131
74131
  * @property {boolean|null} [replexec] ReplToken replexec
74132
74132
  * @property {Array.<replit.goval.api.token.ReplToken.ExternalSecret|replit.goval.api.token.ReplToken.IExternalSecret>|null} [externalSecrets] ReplToken externalSecrets
74133
74133
  * @property {google.protobuf.Timestamp|google.protobuf.ITimestamp|null} [before] ReplToken before
74134
- * @property {Array.<replit.goval.api.chamber.ChamberSecretName|replit.goval.api.chamber.IChamberSecretName>|null} [chamberSecrets] ReplToken chamberSecrets
74135
74134
  */
74136
74135
 
74137
74136
  /**
@@ -74145,7 +74144,6 @@
74145
74144
  this.flags = [];
74146
74145
  this.features = [];
74147
74146
  this.externalSecrets = [];
74148
- this.chamberSecrets = [];
74149
74147
  if (properties)
74150
74148
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
74151
74149
  if (properties[keys[i]] != null)
@@ -74312,14 +74310,6 @@
74312
74310
  */
74313
74311
  ReplToken.prototype.before = null;
74314
74312
 
74315
- /**
74316
- * ReplToken chamberSecrets.
74317
- * @member {Array.<replit.goval.api.chamber.ChamberSecretName>} chamberSecrets
74318
- * @memberof replit.goval.api.token.ReplToken
74319
- * @instance
74320
- */
74321
- ReplToken.prototype.chamberSecrets = $util.emptyArray;
74322
-
74323
74313
  // OneOf field names bound to virtual getters and setters
74324
74314
  var $oneOfFields;
74325
74315
 
@@ -74401,9 +74391,6 @@
74401
74391
  $root.replit.goval.api.token.ReplToken.ExternalSecret.encode(message.externalSecrets[i], writer.uint32(/* id 22, wireType 2 =*/178).fork()).ldelim();
74402
74392
  if (message.before != null && Object.hasOwnProperty.call(message, "before"))
74403
74393
  $root.google.protobuf.Timestamp.encode(message.before, writer.uint32(/* id 23, wireType 2 =*/186).fork()).ldelim();
74404
- if (message.chamberSecrets != null && message.chamberSecrets.length)
74405
- for (var i = 0; i < message.chamberSecrets.length; ++i)
74406
- $root.replit.goval.api.chamber.ChamberSecretName.encode(message.chamberSecrets[i], writer.uint32(/* id 24, wireType 2 =*/194).fork()).ldelim();
74407
74394
  return writer;
74408
74395
  };
74409
74396
 
@@ -74524,12 +74511,6 @@
74524
74511
  message.before = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
74525
74512
  break;
74526
74513
  }
74527
- case 24: {
74528
- if (!(message.chamberSecrets && message.chamberSecrets.length))
74529
- message.chamberSecrets = [];
74530
- message.chamberSecrets.push($root.replit.goval.api.chamber.ChamberSecretName.decode(reader, reader.uint32()));
74531
- break;
74532
- }
74533
74514
  default:
74534
74515
  reader.skipType(tag & 7);
74535
74516
  break;
@@ -74691,15 +74672,6 @@
74691
74672
  if (error)
74692
74673
  return "before." + error;
74693
74674
  }
74694
- if (message.chamberSecrets != null && message.hasOwnProperty("chamberSecrets")) {
74695
- if (!Array.isArray(message.chamberSecrets))
74696
- return "chamberSecrets: array expected";
74697
- for (var i = 0; i < message.chamberSecrets.length; ++i) {
74698
- var error = $root.replit.goval.api.chamber.ChamberSecretName.verify(message.chamberSecrets[i]);
74699
- if (error)
74700
- return "chamberSecrets." + error;
74701
- }
74702
- }
74703
74675
  return null;
74704
74676
  };
74705
74677
 
@@ -74853,16 +74825,6 @@
74853
74825
  throw TypeError(".replit.goval.api.token.ReplToken.before: object expected");
74854
74826
  message.before = $root.google.protobuf.Timestamp.fromObject(object.before);
74855
74827
  }
74856
- if (object.chamberSecrets) {
74857
- if (!Array.isArray(object.chamberSecrets))
74858
- throw TypeError(".replit.goval.api.token.ReplToken.chamberSecrets: array expected");
74859
- message.chamberSecrets = [];
74860
- for (var i = 0; i < object.chamberSecrets.length; ++i) {
74861
- if (typeof object.chamberSecrets[i] !== "object")
74862
- throw TypeError(".replit.goval.api.token.ReplToken.chamberSecrets: object expected");
74863
- message.chamberSecrets[i] = $root.replit.goval.api.chamber.ChamberSecretName.fromObject(object.chamberSecrets[i]);
74864
- }
74865
- }
74866
74828
  return message;
74867
74829
  };
74868
74830
 
@@ -74883,7 +74845,6 @@
74883
74845
  object.flags = [];
74884
74846
  object.features = [];
74885
74847
  object.externalSecrets = [];
74886
- object.chamberSecrets = [];
74887
74848
  }
74888
74849
  if (options.defaults) {
74889
74850
  object.iat = null;
@@ -74959,11 +74920,6 @@
74959
74920
  }
74960
74921
  if (message.before != null && message.hasOwnProperty("before"))
74961
74922
  object.before = $root.google.protobuf.Timestamp.toObject(message.before, options);
74962
- if (message.chamberSecrets && message.chamberSecrets.length) {
74963
- object.chamberSecrets = [];
74964
- for (var j = 0; j < message.chamberSecrets.length; ++j)
74965
- object.chamberSecrets[j] = $root.replit.goval.api.chamber.ChamberSecretName.toObject(message.chamberSecrets[j], options);
74966
- }
74967
74923
  return object;
74968
74924
  };
74969
74925
 
@@ -91329,6 +91285,7 @@
91329
91285
  * @property {string|null} [id] Org id
91330
91286
  * @property {replit.goval.api.repl.Org.OrgType|null} [type] Org type
91331
91287
  * @property {string|null} [slug] Org slug
91288
+ * @property {boolean|null} [isEnterprise] Org isEnterprise
91332
91289
  */
91333
91290
 
91334
91291
  /**
@@ -91369,6 +91326,14 @@
91369
91326
  */
91370
91327
  Org.prototype.slug = "";
91371
91328
 
91329
+ /**
91330
+ * Org isEnterprise.
91331
+ * @member {boolean} isEnterprise
91332
+ * @memberof replit.goval.api.repl.Org
91333
+ * @instance
91334
+ */
91335
+ Org.prototype.isEnterprise = false;
91336
+
91372
91337
  /**
91373
91338
  * Creates a new Org instance using the specified properties.
91374
91339
  * @function create
@@ -91399,6 +91364,8 @@
91399
91364
  writer.uint32(/* id 2, wireType 0 =*/16).int32(message.type);
91400
91365
  if (message.slug != null && Object.hasOwnProperty.call(message, "slug"))
91401
91366
  writer.uint32(/* id 3, wireType 2 =*/26).string(message.slug);
91367
+ if (message.isEnterprise != null && Object.hasOwnProperty.call(message, "isEnterprise"))
91368
+ writer.uint32(/* id 4, wireType 0 =*/32).bool(message.isEnterprise);
91402
91369
  return writer;
91403
91370
  };
91404
91371
 
@@ -91445,6 +91412,10 @@
91445
91412
  message.slug = reader.string();
91446
91413
  break;
91447
91414
  }
91415
+ case 4: {
91416
+ message.isEnterprise = reader.bool();
91417
+ break;
91418
+ }
91448
91419
  default:
91449
91420
  reader.skipType(tag & 7);
91450
91421
  break;
@@ -91495,6 +91466,9 @@
91495
91466
  if (message.slug != null && message.hasOwnProperty("slug"))
91496
91467
  if (!$util.isString(message.slug))
91497
91468
  return "slug: string expected";
91469
+ if (message.isEnterprise != null && message.hasOwnProperty("isEnterprise"))
91470
+ if (typeof message.isEnterprise !== "boolean")
91471
+ return "isEnterprise: boolean expected";
91498
91472
  return null;
91499
91473
  };
91500
91474
 
@@ -91534,6 +91508,8 @@
91534
91508
  }
91535
91509
  if (object.slug != null)
91536
91510
  message.slug = String(object.slug);
91511
+ if (object.isEnterprise != null)
91512
+ message.isEnterprise = Boolean(object.isEnterprise);
91537
91513
  return message;
91538
91514
  };
91539
91515
 
@@ -91554,6 +91530,7 @@
91554
91530
  object.id = "";
91555
91531
  object.type = options.enums === String ? "TYPE_UNSPECIFIED" : 0;
91556
91532
  object.slug = "";
91533
+ object.isEnterprise = false;
91557
91534
  }
91558
91535
  if (message.id != null && message.hasOwnProperty("id"))
91559
91536
  object.id = message.id;
@@ -91561,6 +91538,8 @@
91561
91538
  object.type = options.enums === String ? $root.replit.goval.api.repl.Org.OrgType[message.type] === undefined ? message.type : $root.replit.goval.api.repl.Org.OrgType[message.type] : message.type;
91562
91539
  if (message.slug != null && message.hasOwnProperty("slug"))
91563
91540
  object.slug = message.slug;
91541
+ if (message.isEnterprise != null && message.hasOwnProperty("isEnterprise"))
91542
+ object.isEnterprise = message.isEnterprise;
91564
91543
  return object;
91565
91544
  };
91566
91545
 
@@ -94491,493 +94470,6 @@
94491
94470
  return UserPowerUps;
94492
94471
  })();
94493
94472
 
94494
- api.chamber = (function() {
94495
-
94496
- /**
94497
- * Namespace chamber.
94498
- * @memberof replit.goval.api
94499
- * @namespace
94500
- */
94501
- var chamber = {};
94502
-
94503
- chamber.OrgSecret = (function() {
94504
-
94505
- /**
94506
- * Properties of an OrgSecret.
94507
- * @memberof replit.goval.api.chamber
94508
- * @interface IOrgSecret
94509
- * @property {string|null} [orgId] OrgSecret orgId
94510
- * @property {string|null} [name] OrgSecret name
94511
- * @property {string|null} [version] OrgSecret version
94512
- */
94513
-
94514
- /**
94515
- * Constructs a new OrgSecret.
94516
- * @memberof replit.goval.api.chamber
94517
- * @classdesc Represents an OrgSecret.
94518
- * @constructor
94519
- * @param {replit.goval.api.chamber.IOrgSecret=} [properties] Properties to set
94520
- */
94521
- function OrgSecret(properties) {
94522
- if (properties)
94523
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
94524
- if (properties[keys[i]] != null)
94525
- this[keys[i]] = properties[keys[i]];
94526
- }
94527
-
94528
- /**
94529
- * OrgSecret orgId.
94530
- * @member {string} orgId
94531
- * @memberof replit.goval.api.chamber.OrgSecret
94532
- * @instance
94533
- */
94534
- OrgSecret.prototype.orgId = "";
94535
-
94536
- /**
94537
- * OrgSecret name.
94538
- * @member {string} name
94539
- * @memberof replit.goval.api.chamber.OrgSecret
94540
- * @instance
94541
- */
94542
- OrgSecret.prototype.name = "";
94543
-
94544
- /**
94545
- * OrgSecret version.
94546
- * @member {string} version
94547
- * @memberof replit.goval.api.chamber.OrgSecret
94548
- * @instance
94549
- */
94550
- OrgSecret.prototype.version = "";
94551
-
94552
- /**
94553
- * Creates a new OrgSecret instance using the specified properties.
94554
- * @function create
94555
- * @memberof replit.goval.api.chamber.OrgSecret
94556
- * @static
94557
- * @param {replit.goval.api.chamber.IOrgSecret=} [properties] Properties to set
94558
- * @returns {replit.goval.api.chamber.OrgSecret} OrgSecret instance
94559
- */
94560
- OrgSecret.create = function create(properties) {
94561
- return OrgSecret.fromObject(properties);
94562
- };
94563
-
94564
- /**
94565
- * Encodes the specified OrgSecret message. Does not implicitly {@link replit.goval.api.chamber.OrgSecret.verify|verify} messages.
94566
- * @function encode
94567
- * @memberof replit.goval.api.chamber.OrgSecret
94568
- * @static
94569
- * @param {replit.goval.api.chamber.OrgSecret} message OrgSecret message or plain object to encode
94570
- * @param {$protobuf.Writer} [writer] Writer to encode to
94571
- * @returns {$protobuf.Writer} Writer
94572
- */
94573
- OrgSecret.encode = function encode(message, writer) {
94574
- if (!writer)
94575
- writer = $Writer.create();
94576
- if (message.orgId != null && Object.hasOwnProperty.call(message, "orgId"))
94577
- writer.uint32(/* id 1, wireType 2 =*/10).string(message.orgId);
94578
- if (message.name != null && Object.hasOwnProperty.call(message, "name"))
94579
- writer.uint32(/* id 2, wireType 2 =*/18).string(message.name);
94580
- if (message.version != null && Object.hasOwnProperty.call(message, "version"))
94581
- writer.uint32(/* id 3, wireType 2 =*/26).string(message.version);
94582
- return writer;
94583
- };
94584
-
94585
- /**
94586
- * Encodes the specified OrgSecret message, length delimited. Does not implicitly {@link replit.goval.api.chamber.OrgSecret.verify|verify} messages.
94587
- * @function encodeDelimited
94588
- * @memberof replit.goval.api.chamber.OrgSecret
94589
- * @static
94590
- * @param {replit.goval.api.chamber.OrgSecret} message OrgSecret message or plain object to encode
94591
- * @param {$protobuf.Writer} [writer] Writer to encode to
94592
- * @returns {$protobuf.Writer} Writer
94593
- */
94594
- OrgSecret.encodeDelimited = function encodeDelimited(message, writer) {
94595
- return this.encode(message, writer).ldelim();
94596
- };
94597
-
94598
- /**
94599
- * Decodes an OrgSecret message from the specified reader or buffer.
94600
- * @function decode
94601
- * @memberof replit.goval.api.chamber.OrgSecret
94602
- * @static
94603
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
94604
- * @param {number} [length] Message length if known beforehand
94605
- * @returns {replit.goval.api.chamber.OrgSecret} OrgSecret
94606
- * @throws {Error} If the payload is not a reader or valid buffer
94607
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
94608
- */
94609
- OrgSecret.decode = function decode(reader, length) {
94610
- if (!(reader instanceof $Reader))
94611
- reader = $Reader.create(reader);
94612
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.chamber.OrgSecret();
94613
- while (reader.pos < end) {
94614
- var tag = reader.uint32();
94615
- switch (tag >>> 3) {
94616
- case 1: {
94617
- message.orgId = reader.string();
94618
- break;
94619
- }
94620
- case 2: {
94621
- message.name = reader.string();
94622
- break;
94623
- }
94624
- case 3: {
94625
- message.version = reader.string();
94626
- break;
94627
- }
94628
- default:
94629
- reader.skipType(tag & 7);
94630
- break;
94631
- }
94632
- }
94633
- return message;
94634
- };
94635
-
94636
- /**
94637
- * Decodes an OrgSecret message from the specified reader or buffer, length delimited.
94638
- * @function decodeDelimited
94639
- * @memberof replit.goval.api.chamber.OrgSecret
94640
- * @static
94641
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
94642
- * @returns {replit.goval.api.chamber.OrgSecret} OrgSecret
94643
- * @throws {Error} If the payload is not a reader or valid buffer
94644
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
94645
- */
94646
- OrgSecret.decodeDelimited = function decodeDelimited(reader) {
94647
- if (!(reader instanceof $Reader))
94648
- reader = new $Reader(reader);
94649
- return this.decode(reader, reader.uint32());
94650
- };
94651
-
94652
- /**
94653
- * Verifies an OrgSecret message.
94654
- * @function verify
94655
- * @memberof replit.goval.api.chamber.OrgSecret
94656
- * @static
94657
- * @param {Object.<string,*>} message Plain object to verify
94658
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
94659
- */
94660
- OrgSecret.verify = function verify(message) {
94661
- if (typeof message !== "object" || message === null)
94662
- return "object expected";
94663
- if (message.orgId != null && message.hasOwnProperty("orgId"))
94664
- if (!$util.isString(message.orgId))
94665
- return "orgId: string expected";
94666
- if (message.name != null && message.hasOwnProperty("name"))
94667
- if (!$util.isString(message.name))
94668
- return "name: string expected";
94669
- if (message.version != null && message.hasOwnProperty("version"))
94670
- if (!$util.isString(message.version))
94671
- return "version: string expected";
94672
- return null;
94673
- };
94674
-
94675
- /**
94676
- * Creates an OrgSecret message from a plain object. Also converts values to their respective internal types.
94677
- * @function fromObject
94678
- * @memberof replit.goval.api.chamber.OrgSecret
94679
- * @static
94680
- * @param {Object.<string,*>} object Plain object
94681
- * @returns {replit.goval.api.chamber.OrgSecret} OrgSecret
94682
- */
94683
- OrgSecret.fromObject = function fromObject(object) {
94684
- if (object instanceof $root.replit.goval.api.chamber.OrgSecret)
94685
- return object;
94686
- var message = new $root.replit.goval.api.chamber.OrgSecret();
94687
- if (object.orgId != null)
94688
- message.orgId = String(object.orgId);
94689
- if (object.name != null)
94690
- message.name = String(object.name);
94691
- if (object.version != null)
94692
- message.version = String(object.version);
94693
- return message;
94694
- };
94695
-
94696
- /**
94697
- * Creates a plain object from an OrgSecret message. Also converts values to other types if specified.
94698
- * @function toObject
94699
- * @memberof replit.goval.api.chamber.OrgSecret
94700
- * @static
94701
- * @param {replit.goval.api.chamber.OrgSecret} message OrgSecret
94702
- * @param {$protobuf.IConversionOptions} [options] Conversion options
94703
- * @returns {Object.<string,*>} Plain object
94704
- */
94705
- OrgSecret.toObject = function toObject(message, options) {
94706
- if (!options)
94707
- options = {};
94708
- var object = {};
94709
- if (options.defaults) {
94710
- object.orgId = "";
94711
- object.name = "";
94712
- object.version = "";
94713
- }
94714
- if (message.orgId != null && message.hasOwnProperty("orgId"))
94715
- object.orgId = message.orgId;
94716
- if (message.name != null && message.hasOwnProperty("name"))
94717
- object.name = message.name;
94718
- if (message.version != null && message.hasOwnProperty("version"))
94719
- object.version = message.version;
94720
- return object;
94721
- };
94722
-
94723
- /**
94724
- * Converts this OrgSecret to JSON.
94725
- * @function toJSON
94726
- * @memberof replit.goval.api.chamber.OrgSecret
94727
- * @instance
94728
- * @returns {Object.<string,*>} JSON object
94729
- */
94730
- OrgSecret.prototype.toJSON = function toJSON() {
94731
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
94732
- };
94733
-
94734
- /**
94735
- * Gets the default type url for OrgSecret
94736
- * @function getTypeUrl
94737
- * @memberof replit.goval.api.chamber.OrgSecret
94738
- * @static
94739
- * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
94740
- * @returns {string} The default type url
94741
- */
94742
- OrgSecret.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
94743
- if (typeUrlPrefix === undefined) {
94744
- typeUrlPrefix = "type.googleapis.com";
94745
- }
94746
- return typeUrlPrefix + "/replit.goval.api.chamber.OrgSecret";
94747
- };
94748
-
94749
- return OrgSecret;
94750
- })();
94751
-
94752
- chamber.ChamberSecretName = (function() {
94753
-
94754
- /**
94755
- * Properties of a ChamberSecretName.
94756
- * @memberof replit.goval.api.chamber
94757
- * @interface IChamberSecretName
94758
- * @property {replit.goval.api.chamber.OrgSecret|replit.goval.api.chamber.IOrgSecret|null} [orgSecret] ChamberSecretName orgSecret
94759
- */
94760
-
94761
- /**
94762
- * Constructs a new ChamberSecretName.
94763
- * @memberof replit.goval.api.chamber
94764
- * @classdesc Represents a ChamberSecretName.
94765
- * @constructor
94766
- * @param {replit.goval.api.chamber.IChamberSecretName=} [properties] Properties to set
94767
- */
94768
- function ChamberSecretName(properties) {
94769
- if (properties)
94770
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
94771
- if (properties[keys[i]] != null)
94772
- this[keys[i]] = properties[keys[i]];
94773
- }
94774
-
94775
- /**
94776
- * ChamberSecretName orgSecret.
94777
- * @member {replit.goval.api.chamber.OrgSecret|null|undefined} orgSecret
94778
- * @memberof replit.goval.api.chamber.ChamberSecretName
94779
- * @instance
94780
- */
94781
- ChamberSecretName.prototype.orgSecret = null;
94782
-
94783
- // OneOf field names bound to virtual getters and setters
94784
- var $oneOfFields;
94785
-
94786
- /**
94787
- * ChamberSecretName secretType.
94788
- * @member {"orgSecret"|undefined} secretType
94789
- * @memberof replit.goval.api.chamber.ChamberSecretName
94790
- * @instance
94791
- */
94792
- Object.defineProperty(ChamberSecretName.prototype, "secretType", {
94793
- get: $util.oneOfGetter($oneOfFields = ["orgSecret"]),
94794
- set: $util.oneOfSetter($oneOfFields)
94795
- });
94796
-
94797
- /**
94798
- * Creates a new ChamberSecretName instance using the specified properties.
94799
- * @function create
94800
- * @memberof replit.goval.api.chamber.ChamberSecretName
94801
- * @static
94802
- * @param {replit.goval.api.chamber.IChamberSecretName=} [properties] Properties to set
94803
- * @returns {replit.goval.api.chamber.ChamberSecretName} ChamberSecretName instance
94804
- */
94805
- ChamberSecretName.create = function create(properties) {
94806
- return ChamberSecretName.fromObject(properties);
94807
- };
94808
-
94809
- /**
94810
- * Encodes the specified ChamberSecretName message. Does not implicitly {@link replit.goval.api.chamber.ChamberSecretName.verify|verify} messages.
94811
- * @function encode
94812
- * @memberof replit.goval.api.chamber.ChamberSecretName
94813
- * @static
94814
- * @param {replit.goval.api.chamber.ChamberSecretName} message ChamberSecretName message or plain object to encode
94815
- * @param {$protobuf.Writer} [writer] Writer to encode to
94816
- * @returns {$protobuf.Writer} Writer
94817
- */
94818
- ChamberSecretName.encode = function encode(message, writer) {
94819
- if (!writer)
94820
- writer = $Writer.create();
94821
- if (message.orgSecret != null && Object.hasOwnProperty.call(message, "orgSecret"))
94822
- $root.replit.goval.api.chamber.OrgSecret.encode(message.orgSecret, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
94823
- return writer;
94824
- };
94825
-
94826
- /**
94827
- * Encodes the specified ChamberSecretName message, length delimited. Does not implicitly {@link replit.goval.api.chamber.ChamberSecretName.verify|verify} messages.
94828
- * @function encodeDelimited
94829
- * @memberof replit.goval.api.chamber.ChamberSecretName
94830
- * @static
94831
- * @param {replit.goval.api.chamber.ChamberSecretName} message ChamberSecretName message or plain object to encode
94832
- * @param {$protobuf.Writer} [writer] Writer to encode to
94833
- * @returns {$protobuf.Writer} Writer
94834
- */
94835
- ChamberSecretName.encodeDelimited = function encodeDelimited(message, writer) {
94836
- return this.encode(message, writer).ldelim();
94837
- };
94838
-
94839
- /**
94840
- * Decodes a ChamberSecretName message from the specified reader or buffer.
94841
- * @function decode
94842
- * @memberof replit.goval.api.chamber.ChamberSecretName
94843
- * @static
94844
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
94845
- * @param {number} [length] Message length if known beforehand
94846
- * @returns {replit.goval.api.chamber.ChamberSecretName} ChamberSecretName
94847
- * @throws {Error} If the payload is not a reader or valid buffer
94848
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
94849
- */
94850
- ChamberSecretName.decode = function decode(reader, length) {
94851
- if (!(reader instanceof $Reader))
94852
- reader = $Reader.create(reader);
94853
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.chamber.ChamberSecretName();
94854
- while (reader.pos < end) {
94855
- var tag = reader.uint32();
94856
- switch (tag >>> 3) {
94857
- case 1: {
94858
- message.orgSecret = $root.replit.goval.api.chamber.OrgSecret.decode(reader, reader.uint32());
94859
- break;
94860
- }
94861
- default:
94862
- reader.skipType(tag & 7);
94863
- break;
94864
- }
94865
- }
94866
- return message;
94867
- };
94868
-
94869
- /**
94870
- * Decodes a ChamberSecretName message from the specified reader or buffer, length delimited.
94871
- * @function decodeDelimited
94872
- * @memberof replit.goval.api.chamber.ChamberSecretName
94873
- * @static
94874
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
94875
- * @returns {replit.goval.api.chamber.ChamberSecretName} ChamberSecretName
94876
- * @throws {Error} If the payload is not a reader or valid buffer
94877
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
94878
- */
94879
- ChamberSecretName.decodeDelimited = function decodeDelimited(reader) {
94880
- if (!(reader instanceof $Reader))
94881
- reader = new $Reader(reader);
94882
- return this.decode(reader, reader.uint32());
94883
- };
94884
-
94885
- /**
94886
- * Verifies a ChamberSecretName message.
94887
- * @function verify
94888
- * @memberof replit.goval.api.chamber.ChamberSecretName
94889
- * @static
94890
- * @param {Object.<string,*>} message Plain object to verify
94891
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
94892
- */
94893
- ChamberSecretName.verify = function verify(message) {
94894
- if (typeof message !== "object" || message === null)
94895
- return "object expected";
94896
- var properties = {};
94897
- if (message.orgSecret != null && message.hasOwnProperty("orgSecret")) {
94898
- properties.secretType = 1;
94899
- {
94900
- var error = $root.replit.goval.api.chamber.OrgSecret.verify(message.orgSecret);
94901
- if (error)
94902
- return "orgSecret." + error;
94903
- }
94904
- }
94905
- return null;
94906
- };
94907
-
94908
- /**
94909
- * Creates a ChamberSecretName message from a plain object. Also converts values to their respective internal types.
94910
- * @function fromObject
94911
- * @memberof replit.goval.api.chamber.ChamberSecretName
94912
- * @static
94913
- * @param {Object.<string,*>} object Plain object
94914
- * @returns {replit.goval.api.chamber.ChamberSecretName} ChamberSecretName
94915
- */
94916
- ChamberSecretName.fromObject = function fromObject(object) {
94917
- if (object instanceof $root.replit.goval.api.chamber.ChamberSecretName)
94918
- return object;
94919
- var message = new $root.replit.goval.api.chamber.ChamberSecretName();
94920
- if (object.orgSecret != null) {
94921
- if (typeof object.orgSecret !== "object")
94922
- throw TypeError(".replit.goval.api.chamber.ChamberSecretName.orgSecret: object expected");
94923
- message.orgSecret = $root.replit.goval.api.chamber.OrgSecret.fromObject(object.orgSecret);
94924
- }
94925
- return message;
94926
- };
94927
-
94928
- /**
94929
- * Creates a plain object from a ChamberSecretName message. Also converts values to other types if specified.
94930
- * @function toObject
94931
- * @memberof replit.goval.api.chamber.ChamberSecretName
94932
- * @static
94933
- * @param {replit.goval.api.chamber.ChamberSecretName} message ChamberSecretName
94934
- * @param {$protobuf.IConversionOptions} [options] Conversion options
94935
- * @returns {Object.<string,*>} Plain object
94936
- */
94937
- ChamberSecretName.toObject = function toObject(message, options) {
94938
- if (!options)
94939
- options = {};
94940
- var object = {};
94941
- if (message.orgSecret != null && message.hasOwnProperty("orgSecret")) {
94942
- object.orgSecret = $root.replit.goval.api.chamber.OrgSecret.toObject(message.orgSecret, options);
94943
- if (options.oneofs)
94944
- object.secretType = "orgSecret";
94945
- }
94946
- return object;
94947
- };
94948
-
94949
- /**
94950
- * Converts this ChamberSecretName to JSON.
94951
- * @function toJSON
94952
- * @memberof replit.goval.api.chamber.ChamberSecretName
94953
- * @instance
94954
- * @returns {Object.<string,*>} JSON object
94955
- */
94956
- ChamberSecretName.prototype.toJSON = function toJSON() {
94957
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
94958
- };
94959
-
94960
- /**
94961
- * Gets the default type url for ChamberSecretName
94962
- * @function getTypeUrl
94963
- * @memberof replit.goval.api.chamber.ChamberSecretName
94964
- * @static
94965
- * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
94966
- * @returns {string} The default type url
94967
- */
94968
- ChamberSecretName.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
94969
- if (typeUrlPrefix === undefined) {
94970
- typeUrlPrefix = "type.googleapis.com";
94971
- }
94972
- return typeUrlPrefix + "/replit.goval.api.chamber.ChamberSecretName";
94973
- };
94974
-
94975
- return ChamberSecretName;
94976
- })();
94977
-
94978
- return chamber;
94979
- })();
94980
-
94981
94473
  return api;
94982
94474
  })();
94983
94475
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@replit/protocol",
3
- "version": "0.4.17",
3
+ "version": "0.4.18",
4
4
  "description": "JavaScript bindings for the Replit protocol",
5
5
  "main": "main/index.js",
6
6
  "author": "eng@replit.com",
@@ -8,7 +8,7 @@
8
8
  "prepublishOnly": "npm run build",
9
9
  "build": "npm run build:main && npm run build:iotester",
10
10
  "build:iotester": "TARGET='./iotester/index' ./gen.sh nofix ../../cmd/io-tester/lib/api/api.proto",
11
- "build:main": "TARGET='./main/index' ./gen.sh fix ../types.proto ../client.proto ../signing.proto ../token/token.proto ../lore/lore.proto ../lore/service.proto ../features/features.proto ../repl/repl.proto ../powerup.proto ../chamber/chamber.proto"
11
+ "build:main": "TARGET='./main/index' ./gen.sh fix ../types.proto ../client.proto ../signing.proto ../token/token.proto ../lore/lore.proto ../lore/service.proto ../features/features.proto ../repl/repl.proto ../powerup.proto"
12
12
  },
13
13
  "dependencies": {
14
14
  "protobufjs": "^7.2.5"