@replit/protocol 0.4.31 → 0.5.0

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.
@@ -5,6 +5,7 @@ import type { IBinaryReader } from "@protobuf-ts/runtime";
5
5
  import type { PartialMessage } from "@protobuf-ts/runtime";
6
6
  import { MessageType } from "@protobuf-ts/runtime";
7
7
  import { Feature } from "../features/features.js";
8
+ import { Timestamp } from "../../google/protobuf/timestamp.js";
8
9
  /**
9
10
  * @generated from protobuf message replit.goval.api.repl.Buckets
10
11
  */
@@ -169,6 +170,19 @@ export interface Repl {
169
170
  * @generated from protobuf field: bool inject_chatgpt_link_override = 20
170
171
  */
171
172
  injectChatgptLinkOverride: boolean;
173
+ /**
174
+ * The creation time of the source Repl in Replit web.
175
+ *
176
+ * @generated from protobuf field: google.protobuf.Timestamp repl_created_at = 21
177
+ */
178
+ replCreatedAt?: Timestamp;
179
+ /**
180
+ * Versions use_repl_shield: the Replit web row snapshot time read with the
181
+ * flag. PatchSandbox uses it to order live CR updates against boot state.
182
+ *
183
+ * @generated from protobuf field: google.protobuf.Timestamp repl_shield_state_as_of = 22
184
+ */
185
+ replShieldStateAsOf?: Timestamp;
172
186
  }
173
187
  /**
174
188
  * autocontainer needs to know if we are in a teams org
@@ -206,6 +220,15 @@ export interface Org {
206
220
  * @generated from protobuf field: string customer_id = 5
207
221
  */
208
222
  customerId: string;
223
+ /**
224
+ * Customer VPN domain (e.g. "replit.corp.example.com") when this org's
225
+ * customer forces access through its VPN. Private deployments of the org
226
+ * send ReplShield logins to this host instead of replit.com and only accept
227
+ * ReplShield tokens minted there. Empty when the customer is not forced.
228
+ *
229
+ * @generated from protobuf field: string customer_vpn_domain = 6
230
+ */
231
+ customerVpnDomain: string;
209
232
  }
210
233
  /**
211
234
  * Organization type. There are legacy types, but we are not
@@ -301,6 +324,13 @@ export interface ResourceLimits {
301
324
  * @generated from protobuf field: bool restrictNetwork = 7
302
325
  */
303
326
  restrictNetwork: boolean;
327
+ /**
328
+ * The authorized user-facing Helium PostgreSQL quota in bytes. Zero means
329
+ * the legacy standard quota.
330
+ *
331
+ * @generated from protobuf field: uint64 helium_user_quota_bytes = 11
332
+ */
333
+ heliumUserQuotaBytes: bigint;
304
334
  }
305
335
  /**
306
336
  * Whether these limits are cachable, and if they are, by what facet of the
@@ -3,6 +3,7 @@ import { UnknownFieldHandler } from "@protobuf-ts/runtime";
3
3
  import { reflectionMergePartial } from "@protobuf-ts/runtime";
4
4
  import { MessageType } from "@protobuf-ts/runtime";
5
5
  import { Feature } from "../features/features.js";
6
+ import { Timestamp } from "../../google/protobuf/timestamp.js";
6
7
  /**
7
8
  * Organization type. There are legacy types, but we are not
8
9
  * supporting them, and they should not be getting passed.
@@ -205,7 +206,9 @@ class Repl$Type extends MessageType {
205
206
  { no: 17, name: "backer_job_metadata", kind: "map", K: 9 /*ScalarType.STRING*/, V: { kind: "scalar", T: 9 /*ScalarType.STRING*/ } },
206
207
  { no: 18, name: "custom_skills_bucket", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
207
208
  { no: 19, name: "user_email", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
208
- { no: 20, name: "inject_chatgpt_link_override", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
209
+ { no: 20, name: "inject_chatgpt_link_override", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
210
+ { no: 21, name: "repl_created_at", kind: "message", T: () => Timestamp },
211
+ { no: 22, name: "repl_shield_state_as_of", kind: "message", T: () => Timestamp }
209
212
  ]);
210
213
  }
211
214
  create(value) {
@@ -292,6 +295,12 @@ class Repl$Type extends MessageType {
292
295
  case /* bool inject_chatgpt_link_override */ 20:
293
296
  message.injectChatgptLinkOverride = reader.bool();
294
297
  break;
298
+ case /* google.protobuf.Timestamp repl_created_at */ 21:
299
+ message.replCreatedAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.replCreatedAt);
300
+ break;
301
+ case /* google.protobuf.Timestamp repl_shield_state_as_of */ 22:
302
+ message.replShieldStateAsOf = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.replShieldStateAsOf);
303
+ break;
295
304
  default:
296
305
  let u = options.readUnknownField;
297
306
  if (u === "throw")
@@ -377,6 +386,12 @@ class Repl$Type extends MessageType {
377
386
  /* bool inject_chatgpt_link_override = 20; */
378
387
  if (message.injectChatgptLinkOverride !== false)
379
388
  writer.tag(20, WireType.Varint).bool(message.injectChatgptLinkOverride);
389
+ /* google.protobuf.Timestamp repl_created_at = 21; */
390
+ if (message.replCreatedAt)
391
+ Timestamp.internalBinaryWrite(message.replCreatedAt, writer.tag(21, WireType.LengthDelimited).fork(), options).join();
392
+ /* google.protobuf.Timestamp repl_shield_state_as_of = 22; */
393
+ if (message.replShieldStateAsOf)
394
+ Timestamp.internalBinaryWrite(message.replShieldStateAsOf, writer.tag(22, WireType.LengthDelimited).fork(), options).join();
380
395
  let u = options.writeUnknownFields;
381
396
  if (u !== false)
382
397
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -395,7 +410,8 @@ class Org$Type extends MessageType {
395
410
  { no: 2, name: "type", kind: "enum", T: () => ["replit.goval.api.repl.Org.OrgType", Org_OrgType] },
396
411
  { no: 3, name: "slug", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
397
412
  { no: 4, name: "is_enterprise", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
398
- { no: 5, name: "customer_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
413
+ { no: 5, name: "customer_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
414
+ { no: 6, name: "customer_vpn_domain", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
399
415
  ]);
400
416
  }
401
417
  create(value) {
@@ -405,6 +421,7 @@ class Org$Type extends MessageType {
405
421
  message.slug = "";
406
422
  message.isEnterprise = false;
407
423
  message.customerId = "";
424
+ message.customerVpnDomain = "";
408
425
  if (value !== undefined)
409
426
  reflectionMergePartial(this, message, value);
410
427
  return message;
@@ -429,6 +446,9 @@ class Org$Type extends MessageType {
429
446
  case /* string customer_id */ 5:
430
447
  message.customerId = reader.string();
431
448
  break;
449
+ case /* string customer_vpn_domain */ 6:
450
+ message.customerVpnDomain = reader.string();
451
+ break;
432
452
  default:
433
453
  let u = options.readUnknownField;
434
454
  if (u === "throw")
@@ -456,6 +476,9 @@ class Org$Type extends MessageType {
456
476
  /* string customer_id = 5; */
457
477
  if (message.customerId !== "")
458
478
  writer.tag(5, WireType.LengthDelimited).string(message.customerId);
479
+ /* string customer_vpn_domain = 6; */
480
+ if (message.customerVpnDomain !== "")
481
+ writer.tag(6, WireType.LengthDelimited).string(message.customerVpnDomain);
459
482
  let u = options.writeUnknownFields;
460
483
  if (u !== false)
461
484
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -533,7 +556,8 @@ class ResourceLimits$Type extends MessageType {
533
556
  { no: 10, name: "minimum_disk", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
534
557
  { no: 9, name: "scratch_disk", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
535
558
  { no: 6, name: "cache", kind: "enum", T: () => ["replit.goval.api.repl.ResourceLimits.Cachability", ResourceLimits_Cachability] },
536
- { no: 7, name: "restrictNetwork", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
559
+ { no: 7, name: "restrictNetwork", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
560
+ { no: 11, name: "helium_user_quota_bytes", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ }
537
561
  ]);
538
562
  }
539
563
  create(value) {
@@ -547,6 +571,7 @@ class ResourceLimits$Type extends MessageType {
547
571
  message.scratchDisk = 0n;
548
572
  message.cache = 0;
549
573
  message.restrictNetwork = false;
574
+ message.heliumUserQuotaBytes = 0n;
550
575
  if (value !== undefined)
551
576
  reflectionMergePartial(this, message, value);
552
577
  return message;
@@ -583,6 +608,9 @@ class ResourceLimits$Type extends MessageType {
583
608
  case /* bool restrictNetwork */ 7:
584
609
  message.restrictNetwork = reader.bool();
585
610
  break;
611
+ case /* uint64 helium_user_quota_bytes */ 11:
612
+ message.heliumUserQuotaBytes = reader.uint64().toBigInt();
613
+ break;
586
614
  default:
587
615
  let u = options.readUnknownField;
588
616
  if (u === "throw")
@@ -622,6 +650,9 @@ class ResourceLimits$Type extends MessageType {
622
650
  /* int64 minimum_disk = 10; */
623
651
  if (message.minimumDisk !== 0n)
624
652
  writer.tag(10, WireType.Varint).int64(message.minimumDisk);
653
+ /* uint64 helium_user_quota_bytes = 11; */
654
+ if (message.heliumUserQuotaBytes !== 0n)
655
+ writer.tag(11, WireType.Varint).uint64(message.heliumUserQuotaBytes);
625
656
  let u = options.writeUnknownFields;
626
657
  if (u !== false)
627
658
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -139,6 +139,14 @@ export interface CertificateClaim {
139
139
  * @generated from protobuf field: replit.goval.api.FlagClaim flag = 3
140
140
  */
141
141
  flag: FlagClaim;
142
+ } | {
143
+ oneofKind: "replCreatedAt";
144
+ /**
145
+ * This cert has the authority to assert this Repl creation timestamp.
146
+ *
147
+ * @generated from protobuf field: google.protobuf.Timestamp repl_created_at = 9
148
+ */
149
+ replCreatedAt: Timestamp;
142
150
  } | {
143
151
  oneofKind: undefined;
144
152
  };
@@ -371,6 +379,12 @@ export interface GovalReplIdentity {
371
379
  * @generated from protobuf field: replit.goval.api.repl.Org org = 14
372
380
  */
373
381
  org?: Org;
382
+ /**
383
+ * The creation time of the source Repl in Replit web.
384
+ *
385
+ * @generated from protobuf field: google.protobuf.Timestamp repl_created_at = 15
386
+ */
387
+ replCreatedAt?: Timestamp;
374
388
  }
375
389
  /**
376
390
  * @generated from protobuf message replit.goval.api.ReplRuntimeInteractive
@@ -533,7 +547,13 @@ export declare enum FlagClaim {
533
547
  *
534
548
  * @generated from protobuf enum value: ANY_SUBCLUSTER = 9;
535
549
  */
536
- ANY_SUBCLUSTER = 9
550
+ ANY_SUBCLUSTER = 9,
551
+ /**
552
+ * Cert can authorize child certs for any Repl creation timestamp.
553
+ *
554
+ * @generated from protobuf enum value: ANY_REPL_CREATED_AT = 13;
555
+ */
556
+ ANY_REPL_CREATED_AT = 13
537
557
  }
538
558
  declare class GovalSigningAuthority$Type extends MessageType<GovalSigningAuthority> {
539
559
  constructor();
@@ -131,6 +131,12 @@ export var FlagClaim;
131
131
  * @generated from protobuf enum value: ANY_SUBCLUSTER = 9;
132
132
  */
133
133
  FlagClaim[FlagClaim["ANY_SUBCLUSTER"] = 9] = "ANY_SUBCLUSTER";
134
+ /**
135
+ * Cert can authorize child certs for any Repl creation timestamp.
136
+ *
137
+ * @generated from protobuf enum value: ANY_REPL_CREATED_AT = 13;
138
+ */
139
+ FlagClaim[FlagClaim["ANY_REPL_CREATED_AT"] = 13] = "ANY_REPL_CREATED_AT";
134
140
  })(FlagClaim || (FlagClaim = {}));
135
141
  // @generated message type with reflection information, may provide speed optimized methods
136
142
  class GovalSigningAuthority$Type extends MessageType {
@@ -219,7 +225,8 @@ class CertificateClaim$Type extends MessageType {
219
225
  { no: 4, name: "cluster", kind: "scalar", oneof: "claim", T: 9 /*ScalarType.STRING*/ },
220
226
  { no: 5, name: "subcluster", kind: "scalar", oneof: "claim", T: 9 /*ScalarType.STRING*/ },
221
227
  { no: 6, name: "deployment", kind: "scalar", oneof: "claim", T: 8 /*ScalarType.BOOL*/ },
222
- { no: 3, name: "flag", kind: "enum", oneof: "claim", T: () => ["replit.goval.api.FlagClaim", FlagClaim] }
228
+ { no: 3, name: "flag", kind: "enum", oneof: "claim", T: () => ["replit.goval.api.FlagClaim", FlagClaim] },
229
+ { no: 9, name: "repl_created_at", kind: "message", oneof: "claim", T: () => Timestamp }
223
230
  ]);
224
231
  }
225
232
  create(value) {
@@ -282,6 +289,12 @@ class CertificateClaim$Type extends MessageType {
282
289
  flag: reader.int32()
283
290
  };
284
291
  break;
292
+ case /* google.protobuf.Timestamp repl_created_at */ 9:
293
+ message.claim = {
294
+ oneofKind: "replCreatedAt",
295
+ replCreatedAt: Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.claim.replCreatedAt)
296
+ };
297
+ break;
285
298
  default:
286
299
  let u = options.readUnknownField;
287
300
  if (u === "throw")
@@ -318,6 +331,9 @@ class CertificateClaim$Type extends MessageType {
318
331
  /* replit.goval.api.repl.Org org = 8; */
319
332
  if (message.claim.oneofKind === "org")
320
333
  Org.internalBinaryWrite(message.claim.org, writer.tag(8, WireType.LengthDelimited).fork(), options).join();
334
+ /* google.protobuf.Timestamp repl_created_at = 9; */
335
+ if (message.claim.oneofKind === "replCreatedAt")
336
+ Timestamp.internalBinaryWrite(message.claim.replCreatedAt, writer.tag(9, WireType.LengthDelimited).fork(), options).join();
321
337
  let u = options.writeUnknownFields;
322
338
  if (u !== false)
323
339
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -496,7 +512,8 @@ class GovalReplIdentity$Type extends MessageType {
496
512
  { no: 11, name: "interactive", kind: "message", oneof: "runtime", T: () => ReplRuntimeInteractive },
497
513
  { no: 13, name: "hosting", kind: "message", oneof: "runtime", T: () => ReplRuntimeHosting },
498
514
  { no: 12, name: "deployment", kind: "message", oneof: "runtime", T: () => ReplRuntimeDeployment },
499
- { no: 14, name: "org", kind: "message", T: () => Org }
515
+ { no: 14, name: "org", kind: "message", T: () => Org },
516
+ { no: 15, name: "repl_created_at", kind: "message", T: () => Timestamp }
500
517
  ]);
501
518
  }
502
519
  create(value) {
@@ -571,6 +588,9 @@ class GovalReplIdentity$Type extends MessageType {
571
588
  case /* replit.goval.api.repl.Org org */ 14:
572
589
  message.org = Org.internalBinaryRead(reader, reader.uint32(), options, message.org);
573
590
  break;
591
+ case /* google.protobuf.Timestamp repl_created_at */ 15:
592
+ message.replCreatedAt = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.replCreatedAt);
593
+ break;
574
594
  default:
575
595
  let u = options.readUnknownField;
576
596
  if (u === "throw")
@@ -625,6 +645,9 @@ class GovalReplIdentity$Type extends MessageType {
625
645
  /* replit.goval.api.repl.Org org = 14; */
626
646
  if (message.org)
627
647
  Org.internalBinaryWrite(message.org, writer.tag(14, WireType.LengthDelimited).fork(), options).join();
648
+ /* google.protobuf.Timestamp repl_created_at = 15; */
649
+ if (message.replCreatedAt)
650
+ Timestamp.internalBinaryWrite(message.replCreatedAt, writer.tag(15, WireType.LengthDelimited).fork(), options).join();
628
651
  let u = options.writeUnknownFields;
629
652
  if (u !== false)
630
653
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -172,10 +172,10 @@ export interface ReplToken {
172
172
  */
173
173
  replexec: boolean;
174
174
  /**
175
- * ExternalSecrets contains the information goval needs to access external
176
- * secrets.
175
+ * Deprecated: replvisor fetches external secrets through web RPC.
177
176
  *
178
- * @generated from protobuf field: repeated replit.goval.api.token.ReplToken.ExternalSecret external_secrets = 22
177
+ * @deprecated
178
+ * @generated from protobuf field: repeated replit.goval.api.token.ReplToken.ExternalSecret external_secrets = 22 [deprecated = true]
179
179
  */
180
180
  externalSecrets: ReplToken_ExternalSecret[];
181
181
  /**
@@ -188,9 +188,9 @@ export interface ReplToken {
188
188
  before?: Timestamp;
189
189
  /**
190
190
  * Resource tier selects the Goval 3 resource size. Current values are
191
- * "small", "medium", and "large". Goval 3 combines this with `paid` to
192
- * select a ReplPool tier such as "free-small", "paid-medium", or
193
- * "paid-large".
191
+ * "small", "medium", "large", and "xlarge". Goval 3 combines this with `paid`
192
+ * to select a ReplPool tier such as "free-small", "paid-medium", or
193
+ * "paid-xlarge".
194
194
  *
195
195
  * @generated from protobuf field: string resource_tier = 25
196
196
  */
@@ -182,7 +182,7 @@ class ReplToken$Type extends MessageType {
182
182
  case /* bool replexec */ 21:
183
183
  message.replexec = reader.bool();
184
184
  break;
185
- case /* repeated replit.goval.api.token.ReplToken.ExternalSecret external_secrets */ 22:
185
+ case /* repeated replit.goval.api.token.ReplToken.ExternalSecret external_secrets = 22 [deprecated = true] */ 22:
186
186
  message.externalSecrets.push(ReplToken_ExternalSecret.internalBinaryRead(reader, reader.uint32(), options));
187
187
  break;
188
188
  case /* google.protobuf.Timestamp before */ 23:
@@ -269,7 +269,7 @@ class ReplToken$Type extends MessageType {
269
269
  /* bool replexec = 21; */
270
270
  if (message.replexec !== false)
271
271
  writer.tag(21, WireType.Varint).bool(message.replexec);
272
- /* repeated replit.goval.api.token.ReplToken.ExternalSecret external_secrets = 22; */
272
+ /* repeated replit.goval.api.token.ReplToken.ExternalSecret external_secrets = 22 [deprecated = true]; */
273
273
  for (let i = 0; i < message.externalSecrets.length; i++)
274
274
  ReplToken_ExternalSecret.internalBinaryWrite(message.externalSecrets[i], writer.tag(22, WireType.LengthDelimited).fork(), options).join();
275
275
  /* google.protobuf.Timestamp before = 23; */