@replit/protocol 0.4.18-luke-is-ent.0 → 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
@@ -28857,9 +28857,6 @@ export namespace replit {
28857
28857
 
28858
28858
  /** GovalReplIdentity org */
28859
28859
  org?: (replit.goval.api.repl.Org|replit.goval.api.repl.IOrg|null);
28860
-
28861
- /** GovalReplIdentity isEnterprise */
28862
- isEnterprise?: (boolean|null);
28863
28860
  }
28864
28861
 
28865
28862
  /** Represents a GovalReplIdentity. */
@@ -28913,9 +28910,6 @@ export namespace replit {
28913
28910
  /** GovalReplIdentity org. */
28914
28911
  public org?: (replit.goval.api.repl.Org|null);
28915
28912
 
28916
- /** GovalReplIdentity isEnterprise. */
28917
- public isEnterprise: boolean;
28918
-
28919
28913
  /** GovalReplIdentity runtime. */
28920
28914
  public runtime?: ("interactive"|"hosting"|"deployment");
28921
28915
 
@@ -29359,9 +29353,6 @@ export namespace replit {
29359
29353
 
29360
29354
  /** ReplToken before */
29361
29355
  before?: (google.protobuf.Timestamp|google.protobuf.ITimestamp|null);
29362
-
29363
- /** ReplToken chamberSecrets */
29364
- chamberSecrets?: ((replit.goval.api.chamber.ChamberSecretName|replit.goval.api.chamber.IChamberSecretName)[]|null);
29365
29356
  }
29366
29357
 
29367
29358
  /** Represents a ReplToken. */
@@ -29433,9 +29424,6 @@ export namespace replit {
29433
29424
  /** ReplToken before. */
29434
29425
  public before?: (google.protobuf.Timestamp|null);
29435
29426
 
29436
- /** ReplToken chamberSecrets. */
29437
- public chamberSecrets: replit.goval.api.chamber.ChamberSecretName[];
29438
-
29439
29427
  /** ReplToken metadata. */
29440
29428
  public metadata?: ("repl"|"id"|"classroom");
29441
29429
 
@@ -37963,219 +37951,6 @@ export namespace replit {
37963
37951
  */
37964
37952
  public static getTypeUrl(typeUrlPrefix?: string): string;
37965
37953
  }
37966
-
37967
- /** Namespace chamber. */
37968
- namespace chamber {
37969
-
37970
- /** Properties of an OrgSecret. */
37971
- interface IOrgSecret {
37972
-
37973
- /** OrgSecret orgId */
37974
- orgId?: (string|null);
37975
-
37976
- /** OrgSecret name */
37977
- name?: (string|null);
37978
-
37979
- /** OrgSecret version */
37980
- version?: (string|null);
37981
- }
37982
-
37983
- /** Represents an OrgSecret. */
37984
- class OrgSecret {
37985
-
37986
- /**
37987
- * Constructs a new OrgSecret.
37988
- * @param [properties] Properties to set
37989
- */
37990
- private constructor(properties?: replit.goval.api.chamber.IOrgSecret);
37991
-
37992
- /** OrgSecret orgId. */
37993
- public orgId: string;
37994
-
37995
- /** OrgSecret name. */
37996
- public name: string;
37997
-
37998
- /** OrgSecret version. */
37999
- public version: string;
38000
-
38001
- /**
38002
- * Creates a new OrgSecret instance using the specified properties.
38003
- * @param [properties] Properties to set
38004
- * @returns OrgSecret instance
38005
- */
38006
- public static create(properties?: replit.goval.api.chamber.IOrgSecret): replit.goval.api.chamber.OrgSecret;
38007
-
38008
- /**
38009
- * Encodes the specified OrgSecret message. Does not implicitly {@link replit.goval.api.chamber.OrgSecret.verify|verify} messages.
38010
- * @param message OrgSecret message or plain object to encode
38011
- * @param [writer] Writer to encode to
38012
- * @returns Writer
38013
- */
38014
- public static encode(message: replit.goval.api.chamber.OrgSecret, writer?: $protobuf.Writer): $protobuf.Writer;
38015
-
38016
- /**
38017
- * Encodes the specified OrgSecret message, length delimited. Does not implicitly {@link replit.goval.api.chamber.OrgSecret.verify|verify} messages.
38018
- * @param message OrgSecret message or plain object to encode
38019
- * @param [writer] Writer to encode to
38020
- * @returns Writer
38021
- */
38022
- public static encodeDelimited(message: replit.goval.api.chamber.OrgSecret, writer?: $protobuf.Writer): $protobuf.Writer;
38023
-
38024
- /**
38025
- * Decodes an OrgSecret message from the specified reader or buffer.
38026
- * @param reader Reader or buffer to decode from
38027
- * @param [length] Message length if known beforehand
38028
- * @returns OrgSecret
38029
- * @throws {Error} If the payload is not a reader or valid buffer
38030
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
38031
- */
38032
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): replit.goval.api.chamber.OrgSecret;
38033
-
38034
- /**
38035
- * Decodes an OrgSecret message from the specified reader or buffer, length delimited.
38036
- * @param reader Reader or buffer to decode from
38037
- * @returns OrgSecret
38038
- * @throws {Error} If the payload is not a reader or valid buffer
38039
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
38040
- */
38041
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): replit.goval.api.chamber.OrgSecret;
38042
-
38043
- /**
38044
- * Verifies an OrgSecret message.
38045
- * @param message Plain object to verify
38046
- * @returns `null` if valid, otherwise the reason why it is not
38047
- */
38048
- public static verify(message: { [k: string]: any }): (string|null);
38049
-
38050
- /**
38051
- * Creates an OrgSecret message from a plain object. Also converts values to their respective internal types.
38052
- * @param object Plain object
38053
- * @returns OrgSecret
38054
- */
38055
- public static fromObject(object: { [k: string]: any }): replit.goval.api.chamber.OrgSecret;
38056
-
38057
- /**
38058
- * Creates a plain object from an OrgSecret message. Also converts values to other types if specified.
38059
- * @param message OrgSecret
38060
- * @param [options] Conversion options
38061
- * @returns Plain object
38062
- */
38063
- public static toObject(message: replit.goval.api.chamber.OrgSecret, options?: $protobuf.IConversionOptions): { [k: string]: any };
38064
-
38065
- /**
38066
- * Converts this OrgSecret to JSON.
38067
- * @returns JSON object
38068
- */
38069
- public toJSON(): { [k: string]: any };
38070
-
38071
- /**
38072
- * Gets the default type url for OrgSecret
38073
- * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
38074
- * @returns The default type url
38075
- */
38076
- public static getTypeUrl(typeUrlPrefix?: string): string;
38077
- }
38078
-
38079
- /** Properties of a ChamberSecretName. */
38080
- interface IChamberSecretName {
38081
-
38082
- /** ChamberSecretName orgSecret */
38083
- orgSecret?: (replit.goval.api.chamber.OrgSecret|replit.goval.api.chamber.IOrgSecret|null);
38084
- }
38085
-
38086
- /** Represents a ChamberSecretName. */
38087
- class ChamberSecretName {
38088
-
38089
- /**
38090
- * Constructs a new ChamberSecretName.
38091
- * @param [properties] Properties to set
38092
- */
38093
- private constructor(properties?: replit.goval.api.chamber.IChamberSecretName);
38094
-
38095
- /** ChamberSecretName orgSecret. */
38096
- public orgSecret?: (replit.goval.api.chamber.OrgSecret|null);
38097
-
38098
- /** ChamberSecretName secretType. */
38099
- public secretType?: "orgSecret";
38100
-
38101
- /**
38102
- * Creates a new ChamberSecretName instance using the specified properties.
38103
- * @param [properties] Properties to set
38104
- * @returns ChamberSecretName instance
38105
- */
38106
- public static create(properties?: replit.goval.api.chamber.IChamberSecretName): replit.goval.api.chamber.ChamberSecretName;
38107
-
38108
- /**
38109
- * Encodes the specified ChamberSecretName message. Does not implicitly {@link replit.goval.api.chamber.ChamberSecretName.verify|verify} messages.
38110
- * @param message ChamberSecretName message or plain object to encode
38111
- * @param [writer] Writer to encode to
38112
- * @returns Writer
38113
- */
38114
- public static encode(message: replit.goval.api.chamber.ChamberSecretName, writer?: $protobuf.Writer): $protobuf.Writer;
38115
-
38116
- /**
38117
- * Encodes the specified ChamberSecretName message, length delimited. Does not implicitly {@link replit.goval.api.chamber.ChamberSecretName.verify|verify} messages.
38118
- * @param message ChamberSecretName message or plain object to encode
38119
- * @param [writer] Writer to encode to
38120
- * @returns Writer
38121
- */
38122
- public static encodeDelimited(message: replit.goval.api.chamber.ChamberSecretName, writer?: $protobuf.Writer): $protobuf.Writer;
38123
-
38124
- /**
38125
- * Decodes a ChamberSecretName message from the specified reader or buffer.
38126
- * @param reader Reader or buffer to decode from
38127
- * @param [length] Message length if known beforehand
38128
- * @returns ChamberSecretName
38129
- * @throws {Error} If the payload is not a reader or valid buffer
38130
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
38131
- */
38132
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): replit.goval.api.chamber.ChamberSecretName;
38133
-
38134
- /**
38135
- * Decodes a ChamberSecretName message from the specified reader or buffer, length delimited.
38136
- * @param reader Reader or buffer to decode from
38137
- * @returns ChamberSecretName
38138
- * @throws {Error} If the payload is not a reader or valid buffer
38139
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
38140
- */
38141
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): replit.goval.api.chamber.ChamberSecretName;
38142
-
38143
- /**
38144
- * Verifies a ChamberSecretName message.
38145
- * @param message Plain object to verify
38146
- * @returns `null` if valid, otherwise the reason why it is not
38147
- */
38148
- public static verify(message: { [k: string]: any }): (string|null);
38149
-
38150
- /**
38151
- * Creates a ChamberSecretName message from a plain object. Also converts values to their respective internal types.
38152
- * @param object Plain object
38153
- * @returns ChamberSecretName
38154
- */
38155
- public static fromObject(object: { [k: string]: any }): replit.goval.api.chamber.ChamberSecretName;
38156
-
38157
- /**
38158
- * Creates a plain object from a ChamberSecretName message. Also converts values to other types if specified.
38159
- * @param message ChamberSecretName
38160
- * @param [options] Conversion options
38161
- * @returns Plain object
38162
- */
38163
- public static toObject(message: replit.goval.api.chamber.ChamberSecretName, options?: $protobuf.IConversionOptions): { [k: string]: any };
38164
-
38165
- /**
38166
- * Converts this ChamberSecretName to JSON.
38167
- * @returns JSON object
38168
- */
38169
- public toJSON(): { [k: string]: any };
38170
-
38171
- /**
38172
- * Gets the default type url for ChamberSecretName
38173
- * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
38174
- * @returns The default type url
38175
- */
38176
- public static getTypeUrl(typeUrlPrefix?: string): string;
38177
- }
38178
- }
38179
37954
  }
38180
37955
  }
38181
37956
  }
package/main/index.js CHANGED
@@ -72898,7 +72898,6 @@
72898
72898
  * @property {replit.goval.api.ReplRuntimeHosting|replit.goval.api.IReplRuntimeHosting|null} [hosting] GovalReplIdentity hosting
72899
72899
  * @property {replit.goval.api.ReplRuntimeDeployment|replit.goval.api.IReplRuntimeDeployment|null} [deployment] GovalReplIdentity deployment
72900
72900
  * @property {replit.goval.api.repl.Org|replit.goval.api.repl.IOrg|null} [org] GovalReplIdentity org
72901
- * @property {boolean|null} [isEnterprise] GovalReplIdentity isEnterprise
72902
72901
  */
72903
72902
 
72904
72903
  /**
@@ -73028,14 +73027,6 @@
73028
73027
  */
73029
73028
  GovalReplIdentity.prototype.org = null;
73030
73029
 
73031
- /**
73032
- * GovalReplIdentity isEnterprise.
73033
- * @member {boolean} isEnterprise
73034
- * @memberof replit.goval.api.GovalReplIdentity
73035
- * @instance
73036
- */
73037
- GovalReplIdentity.prototype.isEnterprise = false;
73038
-
73039
73030
  // OneOf field names bound to virtual getters and setters
73040
73031
  var $oneOfFields;
73041
73032
 
@@ -73103,8 +73094,6 @@
73103
73094
  $root.replit.goval.api.ReplRuntimeHosting.encode(message.hosting, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim();
73104
73095
  if (message.org != null && Object.hasOwnProperty.call(message, "org"))
73105
73096
  $root.replit.goval.api.repl.Org.encode(message.org, writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim();
73106
- if (message.isEnterprise != null && Object.hasOwnProperty.call(message, "isEnterprise"))
73107
- writer.uint32(/* id 15, wireType 0 =*/120).bool(message.isEnterprise);
73108
73097
  return writer;
73109
73098
  };
73110
73099
 
@@ -73197,10 +73186,6 @@
73197
73186
  message.org = $root.replit.goval.api.repl.Org.decode(reader, reader.uint32());
73198
73187
  break;
73199
73188
  }
73200
- case 15: {
73201
- message.isEnterprise = reader.bool();
73202
- break;
73203
- }
73204
73189
  default:
73205
73190
  reader.skipType(tag & 7);
73206
73191
  break;
@@ -73306,9 +73291,6 @@
73306
73291
  if (error)
73307
73292
  return "org." + error;
73308
73293
  }
73309
- if (message.isEnterprise != null && message.hasOwnProperty("isEnterprise"))
73310
- if (typeof message.isEnterprise !== "boolean")
73311
- return "isEnterprise: boolean expected";
73312
73294
  return null;
73313
73295
  };
73314
73296
 
@@ -73379,8 +73361,6 @@
73379
73361
  throw TypeError(".replit.goval.api.GovalReplIdentity.org: object expected");
73380
73362
  message.org = $root.replit.goval.api.repl.Org.fromObject(object.org);
73381
73363
  }
73382
- if (object.isEnterprise != null)
73383
- message.isEnterprise = Boolean(object.isEnterprise);
73384
73364
  return message;
73385
73365
  };
73386
73366
 
@@ -73414,7 +73394,6 @@
73414
73394
  object.buildInfo = null;
73415
73395
  object.isTeam = false;
73416
73396
  object.org = null;
73417
- object.isEnterprise = false;
73418
73397
  }
73419
73398
  if (message.replid != null && message.hasOwnProperty("replid"))
73420
73399
  object.replid = message.replid;
@@ -73459,8 +73438,6 @@
73459
73438
  }
73460
73439
  if (message.org != null && message.hasOwnProperty("org"))
73461
73440
  object.org = $root.replit.goval.api.repl.Org.toObject(message.org, options);
73462
- if (message.isEnterprise != null && message.hasOwnProperty("isEnterprise"))
73463
- object.isEnterprise = message.isEnterprise;
73464
73441
  return object;
73465
73442
  };
73466
73443
 
@@ -74154,7 +74131,6 @@
74154
74131
  * @property {boolean|null} [replexec] ReplToken replexec
74155
74132
  * @property {Array.<replit.goval.api.token.ReplToken.ExternalSecret|replit.goval.api.token.ReplToken.IExternalSecret>|null} [externalSecrets] ReplToken externalSecrets
74156
74133
  * @property {google.protobuf.Timestamp|google.protobuf.ITimestamp|null} [before] ReplToken before
74157
- * @property {Array.<replit.goval.api.chamber.ChamberSecretName|replit.goval.api.chamber.IChamberSecretName>|null} [chamberSecrets] ReplToken chamberSecrets
74158
74134
  */
74159
74135
 
74160
74136
  /**
@@ -74168,7 +74144,6 @@
74168
74144
  this.flags = [];
74169
74145
  this.features = [];
74170
74146
  this.externalSecrets = [];
74171
- this.chamberSecrets = [];
74172
74147
  if (properties)
74173
74148
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
74174
74149
  if (properties[keys[i]] != null)
@@ -74335,14 +74310,6 @@
74335
74310
  */
74336
74311
  ReplToken.prototype.before = null;
74337
74312
 
74338
- /**
74339
- * ReplToken chamberSecrets.
74340
- * @member {Array.<replit.goval.api.chamber.ChamberSecretName>} chamberSecrets
74341
- * @memberof replit.goval.api.token.ReplToken
74342
- * @instance
74343
- */
74344
- ReplToken.prototype.chamberSecrets = $util.emptyArray;
74345
-
74346
74313
  // OneOf field names bound to virtual getters and setters
74347
74314
  var $oneOfFields;
74348
74315
 
@@ -74424,9 +74391,6 @@
74424
74391
  $root.replit.goval.api.token.ReplToken.ExternalSecret.encode(message.externalSecrets[i], writer.uint32(/* id 22, wireType 2 =*/178).fork()).ldelim();
74425
74392
  if (message.before != null && Object.hasOwnProperty.call(message, "before"))
74426
74393
  $root.google.protobuf.Timestamp.encode(message.before, writer.uint32(/* id 23, wireType 2 =*/186).fork()).ldelim();
74427
- if (message.chamberSecrets != null && message.chamberSecrets.length)
74428
- for (var i = 0; i < message.chamberSecrets.length; ++i)
74429
- $root.replit.goval.api.chamber.ChamberSecretName.encode(message.chamberSecrets[i], writer.uint32(/* id 24, wireType 2 =*/194).fork()).ldelim();
74430
74394
  return writer;
74431
74395
  };
74432
74396
 
@@ -74547,12 +74511,6 @@
74547
74511
  message.before = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
74548
74512
  break;
74549
74513
  }
74550
- case 24: {
74551
- if (!(message.chamberSecrets && message.chamberSecrets.length))
74552
- message.chamberSecrets = [];
74553
- message.chamberSecrets.push($root.replit.goval.api.chamber.ChamberSecretName.decode(reader, reader.uint32()));
74554
- break;
74555
- }
74556
74514
  default:
74557
74515
  reader.skipType(tag & 7);
74558
74516
  break;
@@ -74714,15 +74672,6 @@
74714
74672
  if (error)
74715
74673
  return "before." + error;
74716
74674
  }
74717
- if (message.chamberSecrets != null && message.hasOwnProperty("chamberSecrets")) {
74718
- if (!Array.isArray(message.chamberSecrets))
74719
- return "chamberSecrets: array expected";
74720
- for (var i = 0; i < message.chamberSecrets.length; ++i) {
74721
- var error = $root.replit.goval.api.chamber.ChamberSecretName.verify(message.chamberSecrets[i]);
74722
- if (error)
74723
- return "chamberSecrets." + error;
74724
- }
74725
- }
74726
74675
  return null;
74727
74676
  };
74728
74677
 
@@ -74876,16 +74825,6 @@
74876
74825
  throw TypeError(".replit.goval.api.token.ReplToken.before: object expected");
74877
74826
  message.before = $root.google.protobuf.Timestamp.fromObject(object.before);
74878
74827
  }
74879
- if (object.chamberSecrets) {
74880
- if (!Array.isArray(object.chamberSecrets))
74881
- throw TypeError(".replit.goval.api.token.ReplToken.chamberSecrets: array expected");
74882
- message.chamberSecrets = [];
74883
- for (var i = 0; i < object.chamberSecrets.length; ++i) {
74884
- if (typeof object.chamberSecrets[i] !== "object")
74885
- throw TypeError(".replit.goval.api.token.ReplToken.chamberSecrets: object expected");
74886
- message.chamberSecrets[i] = $root.replit.goval.api.chamber.ChamberSecretName.fromObject(object.chamberSecrets[i]);
74887
- }
74888
- }
74889
74828
  return message;
74890
74829
  };
74891
74830
 
@@ -74906,7 +74845,6 @@
74906
74845
  object.flags = [];
74907
74846
  object.features = [];
74908
74847
  object.externalSecrets = [];
74909
- object.chamberSecrets = [];
74910
74848
  }
74911
74849
  if (options.defaults) {
74912
74850
  object.iat = null;
@@ -74982,11 +74920,6 @@
74982
74920
  }
74983
74921
  if (message.before != null && message.hasOwnProperty("before"))
74984
74922
  object.before = $root.google.protobuf.Timestamp.toObject(message.before, options);
74985
- if (message.chamberSecrets && message.chamberSecrets.length) {
74986
- object.chamberSecrets = [];
74987
- for (var j = 0; j < message.chamberSecrets.length; ++j)
74988
- object.chamberSecrets[j] = $root.replit.goval.api.chamber.ChamberSecretName.toObject(message.chamberSecrets[j], options);
74989
- }
74990
74923
  return object;
74991
74924
  };
74992
74925
 
@@ -94537,493 +94470,6 @@
94537
94470
  return UserPowerUps;
94538
94471
  })();
94539
94472
 
94540
- api.chamber = (function() {
94541
-
94542
- /**
94543
- * Namespace chamber.
94544
- * @memberof replit.goval.api
94545
- * @namespace
94546
- */
94547
- var chamber = {};
94548
-
94549
- chamber.OrgSecret = (function() {
94550
-
94551
- /**
94552
- * Properties of an OrgSecret.
94553
- * @memberof replit.goval.api.chamber
94554
- * @interface IOrgSecret
94555
- * @property {string|null} [orgId] OrgSecret orgId
94556
- * @property {string|null} [name] OrgSecret name
94557
- * @property {string|null} [version] OrgSecret version
94558
- */
94559
-
94560
- /**
94561
- * Constructs a new OrgSecret.
94562
- * @memberof replit.goval.api.chamber
94563
- * @classdesc Represents an OrgSecret.
94564
- * @constructor
94565
- * @param {replit.goval.api.chamber.IOrgSecret=} [properties] Properties to set
94566
- */
94567
- function OrgSecret(properties) {
94568
- if (properties)
94569
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
94570
- if (properties[keys[i]] != null)
94571
- this[keys[i]] = properties[keys[i]];
94572
- }
94573
-
94574
- /**
94575
- * OrgSecret orgId.
94576
- * @member {string} orgId
94577
- * @memberof replit.goval.api.chamber.OrgSecret
94578
- * @instance
94579
- */
94580
- OrgSecret.prototype.orgId = "";
94581
-
94582
- /**
94583
- * OrgSecret name.
94584
- * @member {string} name
94585
- * @memberof replit.goval.api.chamber.OrgSecret
94586
- * @instance
94587
- */
94588
- OrgSecret.prototype.name = "";
94589
-
94590
- /**
94591
- * OrgSecret version.
94592
- * @member {string} version
94593
- * @memberof replit.goval.api.chamber.OrgSecret
94594
- * @instance
94595
- */
94596
- OrgSecret.prototype.version = "";
94597
-
94598
- /**
94599
- * Creates a new OrgSecret instance using the specified properties.
94600
- * @function create
94601
- * @memberof replit.goval.api.chamber.OrgSecret
94602
- * @static
94603
- * @param {replit.goval.api.chamber.IOrgSecret=} [properties] Properties to set
94604
- * @returns {replit.goval.api.chamber.OrgSecret} OrgSecret instance
94605
- */
94606
- OrgSecret.create = function create(properties) {
94607
- return OrgSecret.fromObject(properties);
94608
- };
94609
-
94610
- /**
94611
- * Encodes the specified OrgSecret message. Does not implicitly {@link replit.goval.api.chamber.OrgSecret.verify|verify} messages.
94612
- * @function encode
94613
- * @memberof replit.goval.api.chamber.OrgSecret
94614
- * @static
94615
- * @param {replit.goval.api.chamber.OrgSecret} message OrgSecret message or plain object to encode
94616
- * @param {$protobuf.Writer} [writer] Writer to encode to
94617
- * @returns {$protobuf.Writer} Writer
94618
- */
94619
- OrgSecret.encode = function encode(message, writer) {
94620
- if (!writer)
94621
- writer = $Writer.create();
94622
- if (message.orgId != null && Object.hasOwnProperty.call(message, "orgId"))
94623
- writer.uint32(/* id 1, wireType 2 =*/10).string(message.orgId);
94624
- if (message.name != null && Object.hasOwnProperty.call(message, "name"))
94625
- writer.uint32(/* id 2, wireType 2 =*/18).string(message.name);
94626
- if (message.version != null && Object.hasOwnProperty.call(message, "version"))
94627
- writer.uint32(/* id 3, wireType 2 =*/26).string(message.version);
94628
- return writer;
94629
- };
94630
-
94631
- /**
94632
- * Encodes the specified OrgSecret message, length delimited. Does not implicitly {@link replit.goval.api.chamber.OrgSecret.verify|verify} messages.
94633
- * @function encodeDelimited
94634
- * @memberof replit.goval.api.chamber.OrgSecret
94635
- * @static
94636
- * @param {replit.goval.api.chamber.OrgSecret} message OrgSecret message or plain object to encode
94637
- * @param {$protobuf.Writer} [writer] Writer to encode to
94638
- * @returns {$protobuf.Writer} Writer
94639
- */
94640
- OrgSecret.encodeDelimited = function encodeDelimited(message, writer) {
94641
- return this.encode(message, writer).ldelim();
94642
- };
94643
-
94644
- /**
94645
- * Decodes an OrgSecret message from the specified reader or buffer.
94646
- * @function decode
94647
- * @memberof replit.goval.api.chamber.OrgSecret
94648
- * @static
94649
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
94650
- * @param {number} [length] Message length if known beforehand
94651
- * @returns {replit.goval.api.chamber.OrgSecret} OrgSecret
94652
- * @throws {Error} If the payload is not a reader or valid buffer
94653
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
94654
- */
94655
- OrgSecret.decode = function decode(reader, length) {
94656
- if (!(reader instanceof $Reader))
94657
- reader = $Reader.create(reader);
94658
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.chamber.OrgSecret();
94659
- while (reader.pos < end) {
94660
- var tag = reader.uint32();
94661
- switch (tag >>> 3) {
94662
- case 1: {
94663
- message.orgId = reader.string();
94664
- break;
94665
- }
94666
- case 2: {
94667
- message.name = reader.string();
94668
- break;
94669
- }
94670
- case 3: {
94671
- message.version = reader.string();
94672
- break;
94673
- }
94674
- default:
94675
- reader.skipType(tag & 7);
94676
- break;
94677
- }
94678
- }
94679
- return message;
94680
- };
94681
-
94682
- /**
94683
- * Decodes an OrgSecret message from the specified reader or buffer, length delimited.
94684
- * @function decodeDelimited
94685
- * @memberof replit.goval.api.chamber.OrgSecret
94686
- * @static
94687
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
94688
- * @returns {replit.goval.api.chamber.OrgSecret} OrgSecret
94689
- * @throws {Error} If the payload is not a reader or valid buffer
94690
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
94691
- */
94692
- OrgSecret.decodeDelimited = function decodeDelimited(reader) {
94693
- if (!(reader instanceof $Reader))
94694
- reader = new $Reader(reader);
94695
- return this.decode(reader, reader.uint32());
94696
- };
94697
-
94698
- /**
94699
- * Verifies an OrgSecret message.
94700
- * @function verify
94701
- * @memberof replit.goval.api.chamber.OrgSecret
94702
- * @static
94703
- * @param {Object.<string,*>} message Plain object to verify
94704
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
94705
- */
94706
- OrgSecret.verify = function verify(message) {
94707
- if (typeof message !== "object" || message === null)
94708
- return "object expected";
94709
- if (message.orgId != null && message.hasOwnProperty("orgId"))
94710
- if (!$util.isString(message.orgId))
94711
- return "orgId: string expected";
94712
- if (message.name != null && message.hasOwnProperty("name"))
94713
- if (!$util.isString(message.name))
94714
- return "name: string expected";
94715
- if (message.version != null && message.hasOwnProperty("version"))
94716
- if (!$util.isString(message.version))
94717
- return "version: string expected";
94718
- return null;
94719
- };
94720
-
94721
- /**
94722
- * Creates an OrgSecret message from a plain object. Also converts values to their respective internal types.
94723
- * @function fromObject
94724
- * @memberof replit.goval.api.chamber.OrgSecret
94725
- * @static
94726
- * @param {Object.<string,*>} object Plain object
94727
- * @returns {replit.goval.api.chamber.OrgSecret} OrgSecret
94728
- */
94729
- OrgSecret.fromObject = function fromObject(object) {
94730
- if (object instanceof $root.replit.goval.api.chamber.OrgSecret)
94731
- return object;
94732
- var message = new $root.replit.goval.api.chamber.OrgSecret();
94733
- if (object.orgId != null)
94734
- message.orgId = String(object.orgId);
94735
- if (object.name != null)
94736
- message.name = String(object.name);
94737
- if (object.version != null)
94738
- message.version = String(object.version);
94739
- return message;
94740
- };
94741
-
94742
- /**
94743
- * Creates a plain object from an OrgSecret message. Also converts values to other types if specified.
94744
- * @function toObject
94745
- * @memberof replit.goval.api.chamber.OrgSecret
94746
- * @static
94747
- * @param {replit.goval.api.chamber.OrgSecret} message OrgSecret
94748
- * @param {$protobuf.IConversionOptions} [options] Conversion options
94749
- * @returns {Object.<string,*>} Plain object
94750
- */
94751
- OrgSecret.toObject = function toObject(message, options) {
94752
- if (!options)
94753
- options = {};
94754
- var object = {};
94755
- if (options.defaults) {
94756
- object.orgId = "";
94757
- object.name = "";
94758
- object.version = "";
94759
- }
94760
- if (message.orgId != null && message.hasOwnProperty("orgId"))
94761
- object.orgId = message.orgId;
94762
- if (message.name != null && message.hasOwnProperty("name"))
94763
- object.name = message.name;
94764
- if (message.version != null && message.hasOwnProperty("version"))
94765
- object.version = message.version;
94766
- return object;
94767
- };
94768
-
94769
- /**
94770
- * Converts this OrgSecret to JSON.
94771
- * @function toJSON
94772
- * @memberof replit.goval.api.chamber.OrgSecret
94773
- * @instance
94774
- * @returns {Object.<string,*>} JSON object
94775
- */
94776
- OrgSecret.prototype.toJSON = function toJSON() {
94777
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
94778
- };
94779
-
94780
- /**
94781
- * Gets the default type url for OrgSecret
94782
- * @function getTypeUrl
94783
- * @memberof replit.goval.api.chamber.OrgSecret
94784
- * @static
94785
- * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
94786
- * @returns {string} The default type url
94787
- */
94788
- OrgSecret.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
94789
- if (typeUrlPrefix === undefined) {
94790
- typeUrlPrefix = "type.googleapis.com";
94791
- }
94792
- return typeUrlPrefix + "/replit.goval.api.chamber.OrgSecret";
94793
- };
94794
-
94795
- return OrgSecret;
94796
- })();
94797
-
94798
- chamber.ChamberSecretName = (function() {
94799
-
94800
- /**
94801
- * Properties of a ChamberSecretName.
94802
- * @memberof replit.goval.api.chamber
94803
- * @interface IChamberSecretName
94804
- * @property {replit.goval.api.chamber.OrgSecret|replit.goval.api.chamber.IOrgSecret|null} [orgSecret] ChamberSecretName orgSecret
94805
- */
94806
-
94807
- /**
94808
- * Constructs a new ChamberSecretName.
94809
- * @memberof replit.goval.api.chamber
94810
- * @classdesc Represents a ChamberSecretName.
94811
- * @constructor
94812
- * @param {replit.goval.api.chamber.IChamberSecretName=} [properties] Properties to set
94813
- */
94814
- function ChamberSecretName(properties) {
94815
- if (properties)
94816
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
94817
- if (properties[keys[i]] != null)
94818
- this[keys[i]] = properties[keys[i]];
94819
- }
94820
-
94821
- /**
94822
- * ChamberSecretName orgSecret.
94823
- * @member {replit.goval.api.chamber.OrgSecret|null|undefined} orgSecret
94824
- * @memberof replit.goval.api.chamber.ChamberSecretName
94825
- * @instance
94826
- */
94827
- ChamberSecretName.prototype.orgSecret = null;
94828
-
94829
- // OneOf field names bound to virtual getters and setters
94830
- var $oneOfFields;
94831
-
94832
- /**
94833
- * ChamberSecretName secretType.
94834
- * @member {"orgSecret"|undefined} secretType
94835
- * @memberof replit.goval.api.chamber.ChamberSecretName
94836
- * @instance
94837
- */
94838
- Object.defineProperty(ChamberSecretName.prototype, "secretType", {
94839
- get: $util.oneOfGetter($oneOfFields = ["orgSecret"]),
94840
- set: $util.oneOfSetter($oneOfFields)
94841
- });
94842
-
94843
- /**
94844
- * Creates a new ChamberSecretName instance using the specified properties.
94845
- * @function create
94846
- * @memberof replit.goval.api.chamber.ChamberSecretName
94847
- * @static
94848
- * @param {replit.goval.api.chamber.IChamberSecretName=} [properties] Properties to set
94849
- * @returns {replit.goval.api.chamber.ChamberSecretName} ChamberSecretName instance
94850
- */
94851
- ChamberSecretName.create = function create(properties) {
94852
- return ChamberSecretName.fromObject(properties);
94853
- };
94854
-
94855
- /**
94856
- * Encodes the specified ChamberSecretName message. Does not implicitly {@link replit.goval.api.chamber.ChamberSecretName.verify|verify} messages.
94857
- * @function encode
94858
- * @memberof replit.goval.api.chamber.ChamberSecretName
94859
- * @static
94860
- * @param {replit.goval.api.chamber.ChamberSecretName} message ChamberSecretName message or plain object to encode
94861
- * @param {$protobuf.Writer} [writer] Writer to encode to
94862
- * @returns {$protobuf.Writer} Writer
94863
- */
94864
- ChamberSecretName.encode = function encode(message, writer) {
94865
- if (!writer)
94866
- writer = $Writer.create();
94867
- if (message.orgSecret != null && Object.hasOwnProperty.call(message, "orgSecret"))
94868
- $root.replit.goval.api.chamber.OrgSecret.encode(message.orgSecret, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
94869
- return writer;
94870
- };
94871
-
94872
- /**
94873
- * Encodes the specified ChamberSecretName message, length delimited. Does not implicitly {@link replit.goval.api.chamber.ChamberSecretName.verify|verify} messages.
94874
- * @function encodeDelimited
94875
- * @memberof replit.goval.api.chamber.ChamberSecretName
94876
- * @static
94877
- * @param {replit.goval.api.chamber.ChamberSecretName} message ChamberSecretName message or plain object to encode
94878
- * @param {$protobuf.Writer} [writer] Writer to encode to
94879
- * @returns {$protobuf.Writer} Writer
94880
- */
94881
- ChamberSecretName.encodeDelimited = function encodeDelimited(message, writer) {
94882
- return this.encode(message, writer).ldelim();
94883
- };
94884
-
94885
- /**
94886
- * Decodes a ChamberSecretName message from the specified reader or buffer.
94887
- * @function decode
94888
- * @memberof replit.goval.api.chamber.ChamberSecretName
94889
- * @static
94890
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
94891
- * @param {number} [length] Message length if known beforehand
94892
- * @returns {replit.goval.api.chamber.ChamberSecretName} ChamberSecretName
94893
- * @throws {Error} If the payload is not a reader or valid buffer
94894
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
94895
- */
94896
- ChamberSecretName.decode = function decode(reader, length) {
94897
- if (!(reader instanceof $Reader))
94898
- reader = $Reader.create(reader);
94899
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.chamber.ChamberSecretName();
94900
- while (reader.pos < end) {
94901
- var tag = reader.uint32();
94902
- switch (tag >>> 3) {
94903
- case 1: {
94904
- message.orgSecret = $root.replit.goval.api.chamber.OrgSecret.decode(reader, reader.uint32());
94905
- break;
94906
- }
94907
- default:
94908
- reader.skipType(tag & 7);
94909
- break;
94910
- }
94911
- }
94912
- return message;
94913
- };
94914
-
94915
- /**
94916
- * Decodes a ChamberSecretName message from the specified reader or buffer, length delimited.
94917
- * @function decodeDelimited
94918
- * @memberof replit.goval.api.chamber.ChamberSecretName
94919
- * @static
94920
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
94921
- * @returns {replit.goval.api.chamber.ChamberSecretName} ChamberSecretName
94922
- * @throws {Error} If the payload is not a reader or valid buffer
94923
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
94924
- */
94925
- ChamberSecretName.decodeDelimited = function decodeDelimited(reader) {
94926
- if (!(reader instanceof $Reader))
94927
- reader = new $Reader(reader);
94928
- return this.decode(reader, reader.uint32());
94929
- };
94930
-
94931
- /**
94932
- * Verifies a ChamberSecretName message.
94933
- * @function verify
94934
- * @memberof replit.goval.api.chamber.ChamberSecretName
94935
- * @static
94936
- * @param {Object.<string,*>} message Plain object to verify
94937
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
94938
- */
94939
- ChamberSecretName.verify = function verify(message) {
94940
- if (typeof message !== "object" || message === null)
94941
- return "object expected";
94942
- var properties = {};
94943
- if (message.orgSecret != null && message.hasOwnProperty("orgSecret")) {
94944
- properties.secretType = 1;
94945
- {
94946
- var error = $root.replit.goval.api.chamber.OrgSecret.verify(message.orgSecret);
94947
- if (error)
94948
- return "orgSecret." + error;
94949
- }
94950
- }
94951
- return null;
94952
- };
94953
-
94954
- /**
94955
- * Creates a ChamberSecretName message from a plain object. Also converts values to their respective internal types.
94956
- * @function fromObject
94957
- * @memberof replit.goval.api.chamber.ChamberSecretName
94958
- * @static
94959
- * @param {Object.<string,*>} object Plain object
94960
- * @returns {replit.goval.api.chamber.ChamberSecretName} ChamberSecretName
94961
- */
94962
- ChamberSecretName.fromObject = function fromObject(object) {
94963
- if (object instanceof $root.replit.goval.api.chamber.ChamberSecretName)
94964
- return object;
94965
- var message = new $root.replit.goval.api.chamber.ChamberSecretName();
94966
- if (object.orgSecret != null) {
94967
- if (typeof object.orgSecret !== "object")
94968
- throw TypeError(".replit.goval.api.chamber.ChamberSecretName.orgSecret: object expected");
94969
- message.orgSecret = $root.replit.goval.api.chamber.OrgSecret.fromObject(object.orgSecret);
94970
- }
94971
- return message;
94972
- };
94973
-
94974
- /**
94975
- * Creates a plain object from a ChamberSecretName message. Also converts values to other types if specified.
94976
- * @function toObject
94977
- * @memberof replit.goval.api.chamber.ChamberSecretName
94978
- * @static
94979
- * @param {replit.goval.api.chamber.ChamberSecretName} message ChamberSecretName
94980
- * @param {$protobuf.IConversionOptions} [options] Conversion options
94981
- * @returns {Object.<string,*>} Plain object
94982
- */
94983
- ChamberSecretName.toObject = function toObject(message, options) {
94984
- if (!options)
94985
- options = {};
94986
- var object = {};
94987
- if (message.orgSecret != null && message.hasOwnProperty("orgSecret")) {
94988
- object.orgSecret = $root.replit.goval.api.chamber.OrgSecret.toObject(message.orgSecret, options);
94989
- if (options.oneofs)
94990
- object.secretType = "orgSecret";
94991
- }
94992
- return object;
94993
- };
94994
-
94995
- /**
94996
- * Converts this ChamberSecretName to JSON.
94997
- * @function toJSON
94998
- * @memberof replit.goval.api.chamber.ChamberSecretName
94999
- * @instance
95000
- * @returns {Object.<string,*>} JSON object
95001
- */
95002
- ChamberSecretName.prototype.toJSON = function toJSON() {
95003
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
95004
- };
95005
-
95006
- /**
95007
- * Gets the default type url for ChamberSecretName
95008
- * @function getTypeUrl
95009
- * @memberof replit.goval.api.chamber.ChamberSecretName
95010
- * @static
95011
- * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
95012
- * @returns {string} The default type url
95013
- */
95014
- ChamberSecretName.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
95015
- if (typeUrlPrefix === undefined) {
95016
- typeUrlPrefix = "type.googleapis.com";
95017
- }
95018
- return typeUrlPrefix + "/replit.goval.api.chamber.ChamberSecretName";
95019
- };
95020
-
95021
- return ChamberSecretName;
95022
- })();
95023
-
95024
- return chamber;
95025
- })();
95026
-
95027
94473
  return api;
95028
94474
  })();
95029
94475
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@replit/protocol",
3
- "version": "0.4.18-luke-is-ent.0",
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"