@replit/protocol 0.6.1 → 0.6.2

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.
@@ -191,6 +191,13 @@ export interface Repl {
191
191
  * @generated from protobuf field: google.protobuf.Timestamp repl_shield_state_as_of = 22
192
192
  */
193
193
  replShieldStateAsOf?: Timestamp;
194
+ /**
195
+ * (Optional) The chat that owns this conversation sandbox. Empty for
196
+ * repls.
197
+ *
198
+ * @generated from protobuf field: string conversation_id = 24
199
+ */
200
+ conversationId: string;
194
201
  }
195
202
  /**
196
203
  * autocontainer needs to know if we are in a teams org
@@ -209,7 +209,8 @@ class Repl$Type extends MessageType {
209
209
  { no: 19, name: "user_email", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
210
210
  { no: 20, name: "inject_chatgpt_link_override", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
211
211
  { no: 21, name: "repl_created_at", kind: "message", T: () => Timestamp },
212
- { no: 22, name: "repl_shield_state_as_of", kind: "message", T: () => Timestamp }
212
+ { no: 22, name: "repl_shield_state_as_of", kind: "message", T: () => Timestamp },
213
+ { no: 24, name: "conversation_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
213
214
  ]);
214
215
  }
215
216
  create(value) {
@@ -231,6 +232,7 @@ class Repl$Type extends MessageType {
231
232
  message.customSkillsBucket = "";
232
233
  message.userEmail = "";
233
234
  message.injectChatgptLinkOverride = false;
235
+ message.conversationId = "";
234
236
  if (value !== undefined)
235
237
  reflectionMergePartial(this, message, value);
236
238
  return message;
@@ -306,6 +308,9 @@ class Repl$Type extends MessageType {
306
308
  case /* google.protobuf.Timestamp repl_shield_state_as_of */ 22:
307
309
  message.replShieldStateAsOf = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.replShieldStateAsOf);
308
310
  break;
311
+ case /* string conversation_id */ 24:
312
+ message.conversationId = reader.string();
313
+ break;
309
314
  default:
310
315
  let u = options.readUnknownField;
311
316
  if (u === "throw")
@@ -400,6 +405,9 @@ class Repl$Type extends MessageType {
400
405
  /* string connectors_authorization = 23; */
401
406
  if (message.connectorsAuthorization !== "")
402
407
  writer.tag(23, WireType.LengthDelimited).string(message.connectorsAuthorization);
408
+ /* string conversation_id = 24; */
409
+ if (message.conversationId !== "")
410
+ writer.tag(24, WireType.LengthDelimited).string(message.conversationId);
403
411
  let u = options.writeUnknownFields;
404
412
  if (u !== false)
405
413
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -27589,6 +27589,9 @@ export namespace replit {
27589
27589
 
27590
27590
  /** Repl replShieldStateAsOf */
27591
27591
  replShieldStateAsOf?: (google.protobuf.Timestamp|google.protobuf.ITimestamp|null);
27592
+
27593
+ /** Repl conversationId */
27594
+ conversationId?: (string|null);
27592
27595
  }
27593
27596
 
27594
27597
  /** Represents a Repl. */
@@ -27666,6 +27669,9 @@ export namespace replit {
27666
27669
  /** Repl replShieldStateAsOf. */
27667
27670
  public replShieldStateAsOf?: (google.protobuf.Timestamp|null);
27668
27671
 
27672
+ /** Repl conversationId. */
27673
+ public conversationId: string;
27674
+
27669
27675
  /**
27670
27676
  * Creates a new Repl instance using the specified properties.
27671
27677
  * @param [properties] Properties to set
package/iotester/index.js CHANGED
@@ -75254,6 +75254,7 @@
75254
75254
  * @property {boolean|null} [injectChatgptLinkOverride] Repl injectChatgptLinkOverride
75255
75255
  * @property {google.protobuf.Timestamp|google.protobuf.ITimestamp|null} [replCreatedAt] Repl replCreatedAt
75256
75256
  * @property {google.protobuf.Timestamp|google.protobuf.ITimestamp|null} [replShieldStateAsOf] Repl replShieldStateAsOf
75257
+ * @property {string|null} [conversationId] Repl conversationId
75257
75258
  */
75258
75259
 
75259
75260
  /**
@@ -75448,6 +75449,14 @@
75448
75449
  */
75449
75450
  Repl.prototype.replShieldStateAsOf = null;
75450
75451
 
75452
+ /**
75453
+ * Repl conversationId.
75454
+ * @member {string} conversationId
75455
+ * @memberof replit.goval.api.repl.Repl
75456
+ * @instance
75457
+ */
75458
+ Repl.prototype.conversationId = "";
75459
+
75451
75460
  /**
75452
75461
  * Creates a new Repl instance using the specified properties.
75453
75462
  * @function create
@@ -75522,6 +75531,8 @@
75522
75531
  $root.google.protobuf.Timestamp.encode(message.replShieldStateAsOf, writer.uint32(/* id 22, wireType 2 =*/178).fork(), q + 1).ldelim();
75523
75532
  if (message.connectorsAuthorization != null && Object.hasOwnProperty.call(message, "connectorsAuthorization"))
75524
75533
  writer.uint32(/* id 23, wireType 2 =*/186).string(message.connectorsAuthorization);
75534
+ if (message.conversationId != null && Object.hasOwnProperty.call(message, "conversationId"))
75535
+ writer.uint32(/* id 24, wireType 2 =*/194).string(message.conversationId);
75525
75536
  return writer;
75526
75537
  };
75527
75538
 
@@ -75673,6 +75684,10 @@
75673
75684
  message.replShieldStateAsOf = $root.google.protobuf.Timestamp.decode(reader, reader.uint32(), undefined, long + 1);
75674
75685
  break;
75675
75686
  }
75687
+ case 24: {
75688
+ message.conversationId = reader.string();
75689
+ break;
75690
+ }
75676
75691
  default:
75677
75692
  reader.skipType(tag & 7, long);
75678
75693
  break;
@@ -75797,6 +75812,9 @@
75797
75812
  if (error)
75798
75813
  return "replShieldStateAsOf." + error;
75799
75814
  }
75815
+ if (message.conversationId != null && Object.hasOwnProperty.call(message, "conversationId"))
75816
+ if (!$util.isString(message.conversationId))
75817
+ return "conversationId: string expected";
75800
75818
  return null;
75801
75819
  };
75802
75820
 
@@ -75890,6 +75908,8 @@
75890
75908
  throw TypeError(".replit.goval.api.repl.Repl.replShieldStateAsOf: object expected");
75891
75909
  message.replShieldStateAsOf = $root.google.protobuf.Timestamp.fromObject(object.replShieldStateAsOf, long + 1);
75892
75910
  }
75911
+ if (object.conversationId != null)
75912
+ message.conversationId = String(object.conversationId);
75893
75913
  return message;
75894
75914
  };
75895
75915
 
@@ -75935,6 +75955,7 @@
75935
75955
  object.replCreatedAt = null;
75936
75956
  object.replShieldStateAsOf = null;
75937
75957
  object.connectorsAuthorization = "";
75958
+ object.conversationId = "";
75938
75959
  }
75939
75960
  if (message.id != null && Object.hasOwnProperty.call(message, "id"))
75940
75961
  object.id = message.id;
@@ -75990,6 +76011,8 @@
75990
76011
  object.replShieldStateAsOf = $root.google.protobuf.Timestamp.toObject(message.replShieldStateAsOf, options, q + 1);
75991
76012
  if (message.connectorsAuthorization != null && Object.hasOwnProperty.call(message, "connectorsAuthorization"))
75992
76013
  object.connectorsAuthorization = message.connectorsAuthorization;
76014
+ if (message.conversationId != null && Object.hasOwnProperty.call(message, "conversationId"))
76015
+ object.conversationId = message.conversationId;
75993
76016
  return object;
75994
76017
  };
75995
76018
 
package/main/index.d.ts CHANGED
@@ -27589,6 +27589,9 @@ export namespace replit {
27589
27589
 
27590
27590
  /** Repl replShieldStateAsOf */
27591
27591
  replShieldStateAsOf?: (google.protobuf.Timestamp|google.protobuf.ITimestamp|null);
27592
+
27593
+ /** Repl conversationId */
27594
+ conversationId?: (string|null);
27592
27595
  }
27593
27596
 
27594
27597
  /** Represents a Repl. */
@@ -27666,6 +27669,9 @@ export namespace replit {
27666
27669
  /** Repl replShieldStateAsOf. */
27667
27670
  public replShieldStateAsOf?: (google.protobuf.Timestamp|null);
27668
27671
 
27672
+ /** Repl conversationId. */
27673
+ public conversationId: string;
27674
+
27669
27675
  /**
27670
27676
  * Creates a new Repl instance using the specified properties.
27671
27677
  * @param [properties] Properties to set
package/main/index.js CHANGED
@@ -75254,6 +75254,7 @@
75254
75254
  * @property {boolean|null} [injectChatgptLinkOverride] Repl injectChatgptLinkOverride
75255
75255
  * @property {google.protobuf.Timestamp|google.protobuf.ITimestamp|null} [replCreatedAt] Repl replCreatedAt
75256
75256
  * @property {google.protobuf.Timestamp|google.protobuf.ITimestamp|null} [replShieldStateAsOf] Repl replShieldStateAsOf
75257
+ * @property {string|null} [conversationId] Repl conversationId
75257
75258
  */
75258
75259
 
75259
75260
  /**
@@ -75448,6 +75449,14 @@
75448
75449
  */
75449
75450
  Repl.prototype.replShieldStateAsOf = null;
75450
75451
 
75452
+ /**
75453
+ * Repl conversationId.
75454
+ * @member {string} conversationId
75455
+ * @memberof replit.goval.api.repl.Repl
75456
+ * @instance
75457
+ */
75458
+ Repl.prototype.conversationId = "";
75459
+
75451
75460
  /**
75452
75461
  * Creates a new Repl instance using the specified properties.
75453
75462
  * @function create
@@ -75522,6 +75531,8 @@
75522
75531
  $root.google.protobuf.Timestamp.encode(message.replShieldStateAsOf, writer.uint32(/* id 22, wireType 2 =*/178).fork(), q + 1).ldelim();
75523
75532
  if (message.connectorsAuthorization != null && Object.hasOwnProperty.call(message, "connectorsAuthorization"))
75524
75533
  writer.uint32(/* id 23, wireType 2 =*/186).string(message.connectorsAuthorization);
75534
+ if (message.conversationId != null && Object.hasOwnProperty.call(message, "conversationId"))
75535
+ writer.uint32(/* id 24, wireType 2 =*/194).string(message.conversationId);
75525
75536
  return writer;
75526
75537
  };
75527
75538
 
@@ -75673,6 +75684,10 @@
75673
75684
  message.replShieldStateAsOf = $root.google.protobuf.Timestamp.decode(reader, reader.uint32(), undefined, long + 1);
75674
75685
  break;
75675
75686
  }
75687
+ case 24: {
75688
+ message.conversationId = reader.string();
75689
+ break;
75690
+ }
75676
75691
  default:
75677
75692
  reader.skipType(tag & 7, long);
75678
75693
  break;
@@ -75797,6 +75812,9 @@
75797
75812
  if (error)
75798
75813
  return "replShieldStateAsOf." + error;
75799
75814
  }
75815
+ if (message.conversationId != null && Object.hasOwnProperty.call(message, "conversationId"))
75816
+ if (!$util.isString(message.conversationId))
75817
+ return "conversationId: string expected";
75800
75818
  return null;
75801
75819
  };
75802
75820
 
@@ -75890,6 +75908,8 @@
75890
75908
  throw TypeError(".replit.goval.api.repl.Repl.replShieldStateAsOf: object expected");
75891
75909
  message.replShieldStateAsOf = $root.google.protobuf.Timestamp.fromObject(object.replShieldStateAsOf, long + 1);
75892
75910
  }
75911
+ if (object.conversationId != null)
75912
+ message.conversationId = String(object.conversationId);
75893
75913
  return message;
75894
75914
  };
75895
75915
 
@@ -75935,6 +75955,7 @@
75935
75955
  object.replCreatedAt = null;
75936
75956
  object.replShieldStateAsOf = null;
75937
75957
  object.connectorsAuthorization = "";
75958
+ object.conversationId = "";
75938
75959
  }
75939
75960
  if (message.id != null && Object.hasOwnProperty.call(message, "id"))
75940
75961
  object.id = message.id;
@@ -75990,6 +76011,8 @@
75990
76011
  object.replShieldStateAsOf = $root.google.protobuf.Timestamp.toObject(message.replShieldStateAsOf, options, q + 1);
75991
76012
  if (message.connectorsAuthorization != null && Object.hasOwnProperty.call(message, "connectorsAuthorization"))
75992
76013
  object.connectorsAuthorization = message.connectorsAuthorization;
76014
+ if (message.conversationId != null && Object.hasOwnProperty.call(message, "conversationId"))
76015
+ object.conversationId = message.conversationId;
75993
76016
  return object;
75994
76017
  };
75995
76018
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@replit/protocol",
3
- "version": "0.6.1",
3
+ "version": "0.6.2",
4
4
  "description": "JavaScript bindings for the Replit protocol",
5
5
  "main": "main/index.js",
6
6
  "types": "main/index.d.ts",