@replit/protocol 0.4.23-dev.2 → 0.4.23

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.
@@ -145,6 +145,13 @@ export interface CreateReplRequest {
145
145
  * @generated from protobuf field: bool copy_helium = 8
146
146
  */
147
147
  copyHelium: boolean;
148
+ /**
149
+ * whether to copy the gitsafe manifest from the source repl
150
+ * this just copies the manifest and keeps the pointers to the og blocks
151
+ *
152
+ * @generated from protobuf field: bool copy_gitsafe = 9
153
+ */
154
+ copyGitsafe: boolean;
148
155
  }
149
156
  /**
150
157
  * @generated from protobuf message replit.goval.api.lore.CreateReplRequest.Repl
@@ -212,13 +212,15 @@ class CreateReplRequest$Type extends MessageType {
212
212
  { no: 6, name: "continent", kind: "scalar", oneof: "location", T: 9 /*ScalarType.STRING*/ },
213
213
  { no: 7, name: "replLocation", kind: "message", T: () => ReplLocation },
214
214
  { no: 3, name: "source_repl", kind: "message", T: () => CreateReplRequest_SourceRepl },
215
- { no: 8, name: "copy_helium", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
215
+ { no: 8, name: "copy_helium", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
216
+ { no: 9, name: "copy_gitsafe", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
216
217
  ]);
217
218
  }
218
219
  create(value) {
219
220
  const message = globalThis.Object.create((this.messagePrototype));
220
221
  message.location = { oneofKind: undefined };
221
222
  message.copyHelium = false;
223
+ message.copyGitsafe = false;
222
224
  if (value !== undefined)
223
225
  reflectionMergePartial(this, message, value);
224
226
  return message;
@@ -252,6 +254,9 @@ class CreateReplRequest$Type extends MessageType {
252
254
  case /* bool copy_helium */ 8:
253
255
  message.copyHelium = reader.bool();
254
256
  break;
257
+ case /* bool copy_gitsafe */ 9:
258
+ message.copyGitsafe = reader.bool();
259
+ break;
255
260
  default:
256
261
  let u = options.readUnknownField;
257
262
  if (u === "throw")
@@ -282,6 +287,9 @@ class CreateReplRequest$Type extends MessageType {
282
287
  /* bool copy_helium = 8; */
283
288
  if (message.copyHelium !== false)
284
289
  writer.tag(8, WireType.Varint).bool(message.copyHelium);
290
+ /* bool copy_gitsafe = 9; */
291
+ if (message.copyGitsafe !== false)
292
+ writer.tag(9, WireType.Varint).bool(message.copyGitsafe);
285
293
  let u = options.writeUnknownFields;
286
294
  if (u !== false)
287
295
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -141,6 +141,14 @@ export interface Repl {
141
141
  * @generated from protobuf field: string connectors_host = 16
142
142
  */
143
143
  connectorsHost: string;
144
+ /**
145
+ * Metadata that are passed into backer job as environment variables
146
+ *
147
+ * @generated from protobuf field: map<string, string> backer_job_metadata = 17
148
+ */
149
+ backerJobMetadata: {
150
+ [key: string]: string;
151
+ };
144
152
  }
145
153
  /**
146
154
  * autocontainer needs to know if we are in a teams org
@@ -483,6 +491,7 @@ declare class Repl$Type extends MessageType<Repl> {
483
491
  constructor();
484
492
  create(value?: PartialMessage<Repl>): Repl;
485
493
  internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Repl): Repl;
494
+ private binaryReadMap17;
486
495
  internalBinaryWrite(message: Repl, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
487
496
  }
488
497
  /**
@@ -201,7 +201,8 @@ class Repl$Type extends MessageType {
201
201
  { no: 11, name: "roles", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
202
202
  { no: 13, name: "log_fields", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
203
203
  { no: 15, name: "use_repl_shield", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
204
- { no: 16, name: "connectors_host", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
204
+ { no: 16, name: "connectors_host", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
205
+ { no: 17, name: "backer_job_metadata", kind: "map", K: 9 /*ScalarType.STRING*/, V: { kind: "scalar", T: 9 /*ScalarType.STRING*/ } }
205
206
  ]);
206
207
  }
207
208
  create(value) {
@@ -218,6 +219,7 @@ class Repl$Type extends MessageType {
218
219
  message.logFields = "";
219
220
  message.useReplShield = false;
220
221
  message.connectorsHost = "";
222
+ message.backerJobMetadata = {};
221
223
  if (value !== undefined)
222
224
  reflectionMergePartial(this, message, value);
223
225
  return message;
@@ -272,6 +274,9 @@ class Repl$Type extends MessageType {
272
274
  case /* string connectors_host */ 16:
273
275
  message.connectorsHost = reader.string();
274
276
  break;
277
+ case /* map<string, string> backer_job_metadata */ 17:
278
+ this.binaryReadMap17(message.backerJobMetadata, reader, options);
279
+ break;
275
280
  default:
276
281
  let u = options.readUnknownField;
277
282
  if (u === "throw")
@@ -283,6 +288,22 @@ class Repl$Type extends MessageType {
283
288
  }
284
289
  return message;
285
290
  }
291
+ binaryReadMap17(map, reader, options) {
292
+ let len = reader.uint32(), end = reader.pos + len, key, val;
293
+ while (reader.pos < end) {
294
+ let [fieldNo, wireType] = reader.tag();
295
+ switch (fieldNo) {
296
+ case 1:
297
+ key = reader.string();
298
+ break;
299
+ case 2:
300
+ val = reader.string();
301
+ break;
302
+ default: throw new globalThis.Error("unknown map entry field for replit.goval.api.repl.Repl.backer_job_metadata");
303
+ }
304
+ }
305
+ map[key ?? ""] = val ?? "";
306
+ }
286
307
  internalBinaryWrite(message, writer, options) {
287
308
  /* string id = 1; */
288
309
  if (message.id !== "")
@@ -329,6 +350,9 @@ class Repl$Type extends MessageType {
329
350
  /* string connectors_host = 16; */
330
351
  if (message.connectorsHost !== "")
331
352
  writer.tag(16, WireType.LengthDelimited).string(message.connectorsHost);
353
+ /* map<string, string> backer_job_metadata = 17; */
354
+ for (let k of globalThis.Object.keys(message.backerJobMetadata))
355
+ writer.tag(17, WireType.LengthDelimited).fork().tag(1, WireType.LengthDelimited).string(k).tag(2, WireType.LengthDelimited).string(message.backerJobMetadata[k]).join();
332
356
  let u = options.writeUnknownFields;
333
357
  if (u !== false)
334
358
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -4527,11 +4527,7 @@ export declare enum DeploymentConfig_Target {
4527
4527
  /**
4528
4528
  * @generated from protobuf enum value: EXTENSION = 6;
4529
4529
  */
4530
- EXTENSION = 6,
4531
- /**
4532
- * @generated from protobuf enum value: DATABRICKS_APP = 7;
4533
- */
4534
- DATABRICKS_APP = 7
4530
+ EXTENSION = 6
4535
4531
  }
4536
4532
  /**
4537
4533
  * @generated from protobuf message replit.goval.api.ExtensionConfig
package/dist/api/types.js CHANGED
@@ -354,10 +354,6 @@ export var DeploymentConfig_Target;
354
354
  * @generated from protobuf enum value: EXTENSION = 6;
355
355
  */
356
356
  DeploymentConfig_Target[DeploymentConfig_Target["EXTENSION"] = 6] = "EXTENSION";
357
- /**
358
- * @generated from protobuf enum value: DATABRICKS_APP = 7;
359
- */
360
- DeploymentConfig_Target[DeploymentConfig_Target["DATABRICKS_APP"] = 7] = "DATABRICKS_APP";
361
357
  })(DeploymentConfig_Target || (DeploymentConfig_Target = {}));
362
358
  /**
363
359
  * @generated from protobuf enum replit.goval.api.NixModuleConfigSetResponse.Status
@@ -18753,8 +18753,7 @@ export namespace replit {
18753
18753
  VM = 3,
18754
18754
  AUTOSCALE = 4,
18755
18755
  SCHEDULED = 5,
18756
- EXTENSION = 6,
18757
- DATABRICKS_APP = 7
18756
+ EXTENSION = 6
18758
18757
  }
18759
18758
 
18760
18759
  /** Properties of a RewriteRule. */
@@ -27779,6 +27778,9 @@ export namespace replit {
27779
27778
 
27780
27779
  /** Repl connectorsHost */
27781
27780
  connectorsHost?: (string|null);
27781
+
27782
+ /** Repl backerJobMetadata */
27783
+ backerJobMetadata?: ({ [k: string]: string }|null);
27782
27784
  }
27783
27785
 
27784
27786
  /** Represents a Repl. */
@@ -27835,6 +27837,9 @@ export namespace replit {
27835
27837
  /** Repl connectorsHost. */
27836
27838
  public connectorsHost: string;
27837
27839
 
27840
+ /** Repl backerJobMetadata. */
27841
+ public backerJobMetadata: { [k: string]: string };
27842
+
27838
27843
  /**
27839
27844
  * Creates a new Repl instance using the specified properties.
27840
27845
  * @param [properties] Properties to set
@@ -33349,6 +33354,9 @@ export namespace replit {
33349
33354
 
33350
33355
  /** CreateReplRequest copyHelium */
33351
33356
  copyHelium?: (boolean|null);
33357
+
33358
+ /** CreateReplRequest copyGitsafe */
33359
+ copyGitsafe?: (boolean|null);
33352
33360
  }
33353
33361
 
33354
33362
  /** Represents a CreateReplRequest. */
@@ -33378,6 +33386,9 @@ export namespace replit {
33378
33386
  /** CreateReplRequest copyHelium. */
33379
33387
  public copyHelium: boolean;
33380
33388
 
33389
+ /** CreateReplRequest copyGitsafe. */
33390
+ public copyGitsafe: boolean;
33391
+
33381
33392
  /** CreateReplRequest location. */
33382
33393
  public location?: ("cluster"|"continent");
33383
33394
 
package/iotester/index.js CHANGED
@@ -48181,7 +48181,6 @@
48181
48181
  case 4:
48182
48182
  case 5:
48183
48183
  case 6:
48184
- case 7:
48185
48184
  break;
48186
48185
  }
48187
48186
  if (message.publicDir != null && message.hasOwnProperty("publicDir"))
@@ -48267,10 +48266,6 @@
48267
48266
  case 6:
48268
48267
  message.target = 6;
48269
48268
  break;
48270
- case "DATABRICKS_APP":
48271
- case 7:
48272
- message.target = 7;
48273
- break;
48274
48269
  }
48275
48270
  if (object.publicDir != null)
48276
48271
  message.publicDir = String(object.publicDir);
@@ -48381,7 +48376,6 @@
48381
48376
  * @property {number} AUTOSCALE=4 AUTOSCALE value
48382
48377
  * @property {number} SCHEDULED=5 SCHEDULED value
48383
48378
  * @property {number} EXTENSION=6 EXTENSION value
48384
- * @property {number} DATABRICKS_APP=7 DATABRICKS_APP value
48385
48379
  */
48386
48380
  DeploymentConfig.Target = (function() {
48387
48381
  var valuesById = {}, values = Object.create(valuesById);
@@ -48392,7 +48386,6 @@
48392
48386
  values[valuesById[4] = "AUTOSCALE"] = 4;
48393
48387
  values[valuesById[5] = "SCHEDULED"] = 5;
48394
48388
  values[valuesById[6] = "EXTENSION"] = 6;
48395
- values[valuesById[7] = "DATABRICKS_APP"] = 7;
48396
48389
  return values;
48397
48390
  })();
48398
48391
 
@@ -70488,6 +70481,7 @@
70488
70481
  * @property {string|null} [logFields] Repl logFields
70489
70482
  * @property {boolean|null} [useReplShield] Repl useReplShield
70490
70483
  * @property {string|null} [connectorsHost] Repl connectorsHost
70484
+ * @property {Object.<string,string>|null} [backerJobMetadata] Repl backerJobMetadata
70491
70485
  */
70492
70486
 
70493
70487
  /**
@@ -70499,6 +70493,7 @@
70499
70493
  */
70500
70494
  function Repl(properties) {
70501
70495
  this.roles = [];
70496
+ this.backerJobMetadata = {};
70502
70497
  if (properties)
70503
70498
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
70504
70499
  if (properties[keys[i]] != null)
@@ -70625,6 +70620,14 @@
70625
70620
  */
70626
70621
  Repl.prototype.connectorsHost = "";
70627
70622
 
70623
+ /**
70624
+ * Repl backerJobMetadata.
70625
+ * @member {Object.<string,string>} backerJobMetadata
70626
+ * @memberof replit.goval.api.repl.Repl
70627
+ * @instance
70628
+ */
70629
+ Repl.prototype.backerJobMetadata = $util.emptyObject;
70630
+
70628
70631
  /**
70629
70632
  * Creates a new Repl instance using the specified properties.
70630
70633
  * @function create
@@ -70680,6 +70683,9 @@
70680
70683
  writer.uint32(/* id 15, wireType 0 =*/120).bool(message.useReplShield);
70681
70684
  if (message.connectorsHost != null && Object.hasOwnProperty.call(message, "connectorsHost"))
70682
70685
  writer.uint32(/* id 16, wireType 2 =*/130).string(message.connectorsHost);
70686
+ if (message.backerJobMetadata != null && Object.hasOwnProperty.call(message, "backerJobMetadata"))
70687
+ for (var keys = Object.keys(message.backerJobMetadata), i = 0; i < keys.length; ++i)
70688
+ writer.uint32(/* id 17, wireType 2 =*/138).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.backerJobMetadata[keys[i]]).ldelim();
70683
70689
  return writer;
70684
70690
  };
70685
70691
 
@@ -70710,7 +70716,7 @@
70710
70716
  Repl.decode = function decode(reader, length, error) {
70711
70717
  if (!(reader instanceof $Reader))
70712
70718
  reader = $Reader.create(reader);
70713
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.repl.Repl();
70719
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.repl.Repl(), key, value;
70714
70720
  while (reader.pos < end) {
70715
70721
  var tag = reader.uint32();
70716
70722
  if (tag === error)
@@ -70778,6 +70784,29 @@
70778
70784
  message.connectorsHost = reader.string();
70779
70785
  break;
70780
70786
  }
70787
+ case 17: {
70788
+ if (message.backerJobMetadata === $util.emptyObject)
70789
+ message.backerJobMetadata = {};
70790
+ var end2 = reader.uint32() + reader.pos;
70791
+ key = "";
70792
+ value = "";
70793
+ while (reader.pos < end2) {
70794
+ var tag2 = reader.uint32();
70795
+ switch (tag2 >>> 3) {
70796
+ case 1:
70797
+ key = reader.string();
70798
+ break;
70799
+ case 2:
70800
+ value = reader.string();
70801
+ break;
70802
+ default:
70803
+ reader.skipType(tag2 & 7);
70804
+ break;
70805
+ }
70806
+ }
70807
+ message.backerJobMetadata[key] = value;
70808
+ break;
70809
+ }
70781
70810
  default:
70782
70811
  reader.skipType(tag & 7);
70783
70812
  break;
@@ -70868,6 +70897,14 @@
70868
70897
  if (message.connectorsHost != null && message.hasOwnProperty("connectorsHost"))
70869
70898
  if (!$util.isString(message.connectorsHost))
70870
70899
  return "connectorsHost: string expected";
70900
+ if (message.backerJobMetadata != null && message.hasOwnProperty("backerJobMetadata")) {
70901
+ if (!$util.isObject(message.backerJobMetadata))
70902
+ return "backerJobMetadata: object expected";
70903
+ var key = Object.keys(message.backerJobMetadata);
70904
+ for (var i = 0; i < key.length; ++i)
70905
+ if (!$util.isString(message.backerJobMetadata[key[i]]))
70906
+ return "backerJobMetadata: string{k:string} expected";
70907
+ }
70871
70908
  return null;
70872
70909
  };
70873
70910
 
@@ -70927,6 +70964,13 @@
70927
70964
  message.useReplShield = Boolean(object.useReplShield);
70928
70965
  if (object.connectorsHost != null)
70929
70966
  message.connectorsHost = String(object.connectorsHost);
70967
+ if (object.backerJobMetadata) {
70968
+ if (typeof object.backerJobMetadata !== "object")
70969
+ throw TypeError(".replit.goval.api.repl.Repl.backerJobMetadata: object expected");
70970
+ message.backerJobMetadata = {};
70971
+ for (var keys = Object.keys(object.backerJobMetadata), i = 0; i < keys.length; ++i)
70972
+ message.backerJobMetadata[keys[i]] = String(object.backerJobMetadata[keys[i]]);
70973
+ }
70930
70974
  return message;
70931
70975
  };
70932
70976
 
@@ -70945,6 +70989,8 @@
70945
70989
  var object = {};
70946
70990
  if (options.arrays || options.defaults)
70947
70991
  object.roles = [];
70992
+ if (options.objects || options.defaults)
70993
+ object.backerJobMetadata = {};
70948
70994
  if (options.defaults) {
70949
70995
  object.id = "";
70950
70996
  object.language = "";
@@ -70994,6 +71040,12 @@
70994
71040
  object.useReplShield = message.useReplShield;
70995
71041
  if (message.connectorsHost != null && message.hasOwnProperty("connectorsHost"))
70996
71042
  object.connectorsHost = message.connectorsHost;
71043
+ var keys2;
71044
+ if (message.backerJobMetadata && (keys2 = Object.keys(message.backerJobMetadata)).length) {
71045
+ object.backerJobMetadata = {};
71046
+ for (var j = 0; j < keys2.length; ++j)
71047
+ object.backerJobMetadata[keys2[j]] = message.backerJobMetadata[keys2[j]];
71048
+ }
70997
71049
  return object;
70998
71050
  };
70999
71051
 
@@ -84929,6 +84981,7 @@
84929
84981
  * @property {replit.goval.api.lore.ReplLocation|replit.goval.api.lore.IReplLocation|null} [replLocation] CreateReplRequest replLocation
84930
84982
  * @property {replit.goval.api.lore.CreateReplRequest.SourceRepl|replit.goval.api.lore.CreateReplRequest.ISourceRepl|null} [sourceRepl] CreateReplRequest sourceRepl
84931
84983
  * @property {boolean|null} [copyHelium] CreateReplRequest copyHelium
84984
+ * @property {boolean|null} [copyGitsafe] CreateReplRequest copyGitsafe
84932
84985
  */
84933
84986
 
84934
84987
  /**
@@ -84993,6 +85046,14 @@
84993
85046
  */
84994
85047
  CreateReplRequest.prototype.copyHelium = false;
84995
85048
 
85049
+ /**
85050
+ * CreateReplRequest copyGitsafe.
85051
+ * @member {boolean} copyGitsafe
85052
+ * @memberof replit.goval.api.lore.CreateReplRequest
85053
+ * @instance
85054
+ */
85055
+ CreateReplRequest.prototype.copyGitsafe = false;
85056
+
84996
85057
  // OneOf field names bound to virtual getters and setters
84997
85058
  var $oneOfFields;
84998
85059
 
@@ -85043,6 +85104,8 @@
85043
85104
  $root.replit.goval.api.lore.ReplLocation.encode(message.replLocation, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
85044
85105
  if (message.copyHelium != null && Object.hasOwnProperty.call(message, "copyHelium"))
85045
85106
  writer.uint32(/* id 8, wireType 0 =*/64).bool(message.copyHelium);
85107
+ if (message.copyGitsafe != null && Object.hasOwnProperty.call(message, "copyGitsafe"))
85108
+ writer.uint32(/* id 9, wireType 0 =*/72).bool(message.copyGitsafe);
85046
85109
  return writer;
85047
85110
  };
85048
85111
 
@@ -85103,6 +85166,10 @@
85103
85166
  message.copyHelium = reader.bool();
85104
85167
  break;
85105
85168
  }
85169
+ case 9: {
85170
+ message.copyGitsafe = reader.bool();
85171
+ break;
85172
+ }
85106
85173
  default:
85107
85174
  reader.skipType(tag & 7);
85108
85175
  break;
@@ -85169,6 +85236,9 @@
85169
85236
  if (message.copyHelium != null && message.hasOwnProperty("copyHelium"))
85170
85237
  if (typeof message.copyHelium !== "boolean")
85171
85238
  return "copyHelium: boolean expected";
85239
+ if (message.copyGitsafe != null && message.hasOwnProperty("copyGitsafe"))
85240
+ if (typeof message.copyGitsafe !== "boolean")
85241
+ return "copyGitsafe: boolean expected";
85172
85242
  return null;
85173
85243
  };
85174
85244
 
@@ -85205,6 +85275,8 @@
85205
85275
  }
85206
85276
  if (object.copyHelium != null)
85207
85277
  message.copyHelium = Boolean(object.copyHelium);
85278
+ if (object.copyGitsafe != null)
85279
+ message.copyGitsafe = Boolean(object.copyGitsafe);
85208
85280
  return message;
85209
85281
  };
85210
85282
 
@@ -85226,6 +85298,7 @@
85226
85298
  object.sourceRepl = null;
85227
85299
  object.replLocation = null;
85228
85300
  object.copyHelium = false;
85301
+ object.copyGitsafe = false;
85229
85302
  }
85230
85303
  if (message.repl != null && message.hasOwnProperty("repl"))
85231
85304
  object.repl = $root.replit.goval.api.lore.CreateReplRequest.Repl.toObject(message.repl, options);
@@ -85245,6 +85318,8 @@
85245
85318
  object.replLocation = $root.replit.goval.api.lore.ReplLocation.toObject(message.replLocation, options);
85246
85319
  if (message.copyHelium != null && message.hasOwnProperty("copyHelium"))
85247
85320
  object.copyHelium = message.copyHelium;
85321
+ if (message.copyGitsafe != null && message.hasOwnProperty("copyGitsafe"))
85322
+ object.copyGitsafe = message.copyGitsafe;
85248
85323
  return object;
85249
85324
  };
85250
85325
 
package/main/index.d.ts CHANGED
@@ -18753,8 +18753,7 @@ export namespace replit {
18753
18753
  VM = 3,
18754
18754
  AUTOSCALE = 4,
18755
18755
  SCHEDULED = 5,
18756
- EXTENSION = 6,
18757
- DATABRICKS_APP = 7
18756
+ EXTENSION = 6
18758
18757
  }
18759
18758
 
18760
18759
  /** Properties of a RewriteRule. */
@@ -27779,6 +27778,9 @@ export namespace replit {
27779
27778
 
27780
27779
  /** Repl connectorsHost */
27781
27780
  connectorsHost?: (string|null);
27781
+
27782
+ /** Repl backerJobMetadata */
27783
+ backerJobMetadata?: ({ [k: string]: string }|null);
27782
27784
  }
27783
27785
 
27784
27786
  /** Represents a Repl. */
@@ -27835,6 +27837,9 @@ export namespace replit {
27835
27837
  /** Repl connectorsHost. */
27836
27838
  public connectorsHost: string;
27837
27839
 
27840
+ /** Repl backerJobMetadata. */
27841
+ public backerJobMetadata: { [k: string]: string };
27842
+
27838
27843
  /**
27839
27844
  * Creates a new Repl instance using the specified properties.
27840
27845
  * @param [properties] Properties to set
@@ -33349,6 +33354,9 @@ export namespace replit {
33349
33354
 
33350
33355
  /** CreateReplRequest copyHelium */
33351
33356
  copyHelium?: (boolean|null);
33357
+
33358
+ /** CreateReplRequest copyGitsafe */
33359
+ copyGitsafe?: (boolean|null);
33352
33360
  }
33353
33361
 
33354
33362
  /** Represents a CreateReplRequest. */
@@ -33378,6 +33386,9 @@ export namespace replit {
33378
33386
  /** CreateReplRequest copyHelium. */
33379
33387
  public copyHelium: boolean;
33380
33388
 
33389
+ /** CreateReplRequest copyGitsafe. */
33390
+ public copyGitsafe: boolean;
33391
+
33381
33392
  /** CreateReplRequest location. */
33382
33393
  public location?: ("cluster"|"continent");
33383
33394
 
package/main/index.js CHANGED
@@ -48181,7 +48181,6 @@
48181
48181
  case 4:
48182
48182
  case 5:
48183
48183
  case 6:
48184
- case 7:
48185
48184
  break;
48186
48185
  }
48187
48186
  if (message.publicDir != null && message.hasOwnProperty("publicDir"))
@@ -48267,10 +48266,6 @@
48267
48266
  case 6:
48268
48267
  message.target = 6;
48269
48268
  break;
48270
- case "DATABRICKS_APP":
48271
- case 7:
48272
- message.target = 7;
48273
- break;
48274
48269
  }
48275
48270
  if (object.publicDir != null)
48276
48271
  message.publicDir = String(object.publicDir);
@@ -48381,7 +48376,6 @@
48381
48376
  * @property {number} AUTOSCALE=4 AUTOSCALE value
48382
48377
  * @property {number} SCHEDULED=5 SCHEDULED value
48383
48378
  * @property {number} EXTENSION=6 EXTENSION value
48384
- * @property {number} DATABRICKS_APP=7 DATABRICKS_APP value
48385
48379
  */
48386
48380
  DeploymentConfig.Target = (function() {
48387
48381
  var valuesById = {}, values = Object.create(valuesById);
@@ -48392,7 +48386,6 @@
48392
48386
  values[valuesById[4] = "AUTOSCALE"] = 4;
48393
48387
  values[valuesById[5] = "SCHEDULED"] = 5;
48394
48388
  values[valuesById[6] = "EXTENSION"] = 6;
48395
- values[valuesById[7] = "DATABRICKS_APP"] = 7;
48396
48389
  return values;
48397
48390
  })();
48398
48391
 
@@ -70488,6 +70481,7 @@
70488
70481
  * @property {string|null} [logFields] Repl logFields
70489
70482
  * @property {boolean|null} [useReplShield] Repl useReplShield
70490
70483
  * @property {string|null} [connectorsHost] Repl connectorsHost
70484
+ * @property {Object.<string,string>|null} [backerJobMetadata] Repl backerJobMetadata
70491
70485
  */
70492
70486
 
70493
70487
  /**
@@ -70499,6 +70493,7 @@
70499
70493
  */
70500
70494
  function Repl(properties) {
70501
70495
  this.roles = [];
70496
+ this.backerJobMetadata = {};
70502
70497
  if (properties)
70503
70498
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
70504
70499
  if (properties[keys[i]] != null)
@@ -70625,6 +70620,14 @@
70625
70620
  */
70626
70621
  Repl.prototype.connectorsHost = "";
70627
70622
 
70623
+ /**
70624
+ * Repl backerJobMetadata.
70625
+ * @member {Object.<string,string>} backerJobMetadata
70626
+ * @memberof replit.goval.api.repl.Repl
70627
+ * @instance
70628
+ */
70629
+ Repl.prototype.backerJobMetadata = $util.emptyObject;
70630
+
70628
70631
  /**
70629
70632
  * Creates a new Repl instance using the specified properties.
70630
70633
  * @function create
@@ -70680,6 +70683,9 @@
70680
70683
  writer.uint32(/* id 15, wireType 0 =*/120).bool(message.useReplShield);
70681
70684
  if (message.connectorsHost != null && Object.hasOwnProperty.call(message, "connectorsHost"))
70682
70685
  writer.uint32(/* id 16, wireType 2 =*/130).string(message.connectorsHost);
70686
+ if (message.backerJobMetadata != null && Object.hasOwnProperty.call(message, "backerJobMetadata"))
70687
+ for (var keys = Object.keys(message.backerJobMetadata), i = 0; i < keys.length; ++i)
70688
+ writer.uint32(/* id 17, wireType 2 =*/138).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.backerJobMetadata[keys[i]]).ldelim();
70683
70689
  return writer;
70684
70690
  };
70685
70691
 
@@ -70710,7 +70716,7 @@
70710
70716
  Repl.decode = function decode(reader, length, error) {
70711
70717
  if (!(reader instanceof $Reader))
70712
70718
  reader = $Reader.create(reader);
70713
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.repl.Repl();
70719
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.repl.Repl(), key, value;
70714
70720
  while (reader.pos < end) {
70715
70721
  var tag = reader.uint32();
70716
70722
  if (tag === error)
@@ -70778,6 +70784,29 @@
70778
70784
  message.connectorsHost = reader.string();
70779
70785
  break;
70780
70786
  }
70787
+ case 17: {
70788
+ if (message.backerJobMetadata === $util.emptyObject)
70789
+ message.backerJobMetadata = {};
70790
+ var end2 = reader.uint32() + reader.pos;
70791
+ key = "";
70792
+ value = "";
70793
+ while (reader.pos < end2) {
70794
+ var tag2 = reader.uint32();
70795
+ switch (tag2 >>> 3) {
70796
+ case 1:
70797
+ key = reader.string();
70798
+ break;
70799
+ case 2:
70800
+ value = reader.string();
70801
+ break;
70802
+ default:
70803
+ reader.skipType(tag2 & 7);
70804
+ break;
70805
+ }
70806
+ }
70807
+ message.backerJobMetadata[key] = value;
70808
+ break;
70809
+ }
70781
70810
  default:
70782
70811
  reader.skipType(tag & 7);
70783
70812
  break;
@@ -70868,6 +70897,14 @@
70868
70897
  if (message.connectorsHost != null && message.hasOwnProperty("connectorsHost"))
70869
70898
  if (!$util.isString(message.connectorsHost))
70870
70899
  return "connectorsHost: string expected";
70900
+ if (message.backerJobMetadata != null && message.hasOwnProperty("backerJobMetadata")) {
70901
+ if (!$util.isObject(message.backerJobMetadata))
70902
+ return "backerJobMetadata: object expected";
70903
+ var key = Object.keys(message.backerJobMetadata);
70904
+ for (var i = 0; i < key.length; ++i)
70905
+ if (!$util.isString(message.backerJobMetadata[key[i]]))
70906
+ return "backerJobMetadata: string{k:string} expected";
70907
+ }
70871
70908
  return null;
70872
70909
  };
70873
70910
 
@@ -70927,6 +70964,13 @@
70927
70964
  message.useReplShield = Boolean(object.useReplShield);
70928
70965
  if (object.connectorsHost != null)
70929
70966
  message.connectorsHost = String(object.connectorsHost);
70967
+ if (object.backerJobMetadata) {
70968
+ if (typeof object.backerJobMetadata !== "object")
70969
+ throw TypeError(".replit.goval.api.repl.Repl.backerJobMetadata: object expected");
70970
+ message.backerJobMetadata = {};
70971
+ for (var keys = Object.keys(object.backerJobMetadata), i = 0; i < keys.length; ++i)
70972
+ message.backerJobMetadata[keys[i]] = String(object.backerJobMetadata[keys[i]]);
70973
+ }
70930
70974
  return message;
70931
70975
  };
70932
70976
 
@@ -70945,6 +70989,8 @@
70945
70989
  var object = {};
70946
70990
  if (options.arrays || options.defaults)
70947
70991
  object.roles = [];
70992
+ if (options.objects || options.defaults)
70993
+ object.backerJobMetadata = {};
70948
70994
  if (options.defaults) {
70949
70995
  object.id = "";
70950
70996
  object.language = "";
@@ -70994,6 +71040,12 @@
70994
71040
  object.useReplShield = message.useReplShield;
70995
71041
  if (message.connectorsHost != null && message.hasOwnProperty("connectorsHost"))
70996
71042
  object.connectorsHost = message.connectorsHost;
71043
+ var keys2;
71044
+ if (message.backerJobMetadata && (keys2 = Object.keys(message.backerJobMetadata)).length) {
71045
+ object.backerJobMetadata = {};
71046
+ for (var j = 0; j < keys2.length; ++j)
71047
+ object.backerJobMetadata[keys2[j]] = message.backerJobMetadata[keys2[j]];
71048
+ }
70997
71049
  return object;
70998
71050
  };
70999
71051
 
@@ -84929,6 +84981,7 @@
84929
84981
  * @property {replit.goval.api.lore.ReplLocation|replit.goval.api.lore.IReplLocation|null} [replLocation] CreateReplRequest replLocation
84930
84982
  * @property {replit.goval.api.lore.CreateReplRequest.SourceRepl|replit.goval.api.lore.CreateReplRequest.ISourceRepl|null} [sourceRepl] CreateReplRequest sourceRepl
84931
84983
  * @property {boolean|null} [copyHelium] CreateReplRequest copyHelium
84984
+ * @property {boolean|null} [copyGitsafe] CreateReplRequest copyGitsafe
84932
84985
  */
84933
84986
 
84934
84987
  /**
@@ -84993,6 +85046,14 @@
84993
85046
  */
84994
85047
  CreateReplRequest.prototype.copyHelium = false;
84995
85048
 
85049
+ /**
85050
+ * CreateReplRequest copyGitsafe.
85051
+ * @member {boolean} copyGitsafe
85052
+ * @memberof replit.goval.api.lore.CreateReplRequest
85053
+ * @instance
85054
+ */
85055
+ CreateReplRequest.prototype.copyGitsafe = false;
85056
+
84996
85057
  // OneOf field names bound to virtual getters and setters
84997
85058
  var $oneOfFields;
84998
85059
 
@@ -85043,6 +85104,8 @@
85043
85104
  $root.replit.goval.api.lore.ReplLocation.encode(message.replLocation, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
85044
85105
  if (message.copyHelium != null && Object.hasOwnProperty.call(message, "copyHelium"))
85045
85106
  writer.uint32(/* id 8, wireType 0 =*/64).bool(message.copyHelium);
85107
+ if (message.copyGitsafe != null && Object.hasOwnProperty.call(message, "copyGitsafe"))
85108
+ writer.uint32(/* id 9, wireType 0 =*/72).bool(message.copyGitsafe);
85046
85109
  return writer;
85047
85110
  };
85048
85111
 
@@ -85103,6 +85166,10 @@
85103
85166
  message.copyHelium = reader.bool();
85104
85167
  break;
85105
85168
  }
85169
+ case 9: {
85170
+ message.copyGitsafe = reader.bool();
85171
+ break;
85172
+ }
85106
85173
  default:
85107
85174
  reader.skipType(tag & 7);
85108
85175
  break;
@@ -85169,6 +85236,9 @@
85169
85236
  if (message.copyHelium != null && message.hasOwnProperty("copyHelium"))
85170
85237
  if (typeof message.copyHelium !== "boolean")
85171
85238
  return "copyHelium: boolean expected";
85239
+ if (message.copyGitsafe != null && message.hasOwnProperty("copyGitsafe"))
85240
+ if (typeof message.copyGitsafe !== "boolean")
85241
+ return "copyGitsafe: boolean expected";
85172
85242
  return null;
85173
85243
  };
85174
85244
 
@@ -85205,6 +85275,8 @@
85205
85275
  }
85206
85276
  if (object.copyHelium != null)
85207
85277
  message.copyHelium = Boolean(object.copyHelium);
85278
+ if (object.copyGitsafe != null)
85279
+ message.copyGitsafe = Boolean(object.copyGitsafe);
85208
85280
  return message;
85209
85281
  };
85210
85282
 
@@ -85226,6 +85298,7 @@
85226
85298
  object.sourceRepl = null;
85227
85299
  object.replLocation = null;
85228
85300
  object.copyHelium = false;
85301
+ object.copyGitsafe = false;
85229
85302
  }
85230
85303
  if (message.repl != null && message.hasOwnProperty("repl"))
85231
85304
  object.repl = $root.replit.goval.api.lore.CreateReplRequest.Repl.toObject(message.repl, options);
@@ -85245,6 +85318,8 @@
85245
85318
  object.replLocation = $root.replit.goval.api.lore.ReplLocation.toObject(message.replLocation, options);
85246
85319
  if (message.copyHelium != null && message.hasOwnProperty("copyHelium"))
85247
85320
  object.copyHelium = message.copyHelium;
85321
+ if (message.copyGitsafe != null && message.hasOwnProperty("copyGitsafe"))
85322
+ object.copyGitsafe = message.copyGitsafe;
85248
85323
  return object;
85249
85324
  };
85250
85325
 
package/package.json CHANGED
@@ -1,18 +1,10 @@
1
1
  {
2
2
  "name": "@replit/protocol",
3
- "version": "0.4.23-dev.2",
3
+ "version": "0.4.23",
4
4
  "description": "JavaScript bindings for the Replit protocol",
5
5
  "main": "main/index.js",
6
6
  "types": "main/index.d.ts",
7
7
  "author": "eng@replit.com",
8
- "scripts": {
9
- "prepublishOnly": "pnpm run build",
10
- "build": "pnpm run build:legacy && pnpm run build:esm",
11
- "build:legacy": "pnpm run build:main && pnpm run build:iotester",
12
- "build:main": "TARGET='./main/index' ./gen.sh fix",
13
- "build:iotester": "TARGET='./iotester/index' ./gen.sh nofix ../../cmd/io-tester/lib/api/api.proto",
14
- "build:esm": "./gen-pbts.sh"
15
- },
16
8
  "exports": {
17
9
  ".": {
18
10
  "types": "./main/index.d.ts",
@@ -54,5 +46,12 @@
54
46
  "@protobuf-ts/protoc": "^2.11.1",
55
47
  "protobufjs-cli": "^1.1.2",
56
48
  "typescript": "^5.9.3"
49
+ },
50
+ "scripts": {
51
+ "build": "pnpm run build:legacy && pnpm run build:esm",
52
+ "build:legacy": "pnpm run build:main && pnpm run build:iotester",
53
+ "build:main": "TARGET='./main/index' ./gen.sh fix",
54
+ "build:iotester": "TARGET='./iotester/index' ./gen.sh nofix ../../cmd/io-tester/lib/api/api.proto",
55
+ "build:esm": "./gen-pbts.sh"
57
56
  }
58
- }
57
+ }