@replit/protocol 0.5.0 → 0.6.1

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.
@@ -142,6 +142,14 @@ export interface Repl {
142
142
  * @generated from protobuf field: string connectors_host = 16
143
143
  */
144
144
  connectorsHost: string;
145
+ /**
146
+ * connectors_authorization is sent to connectors_host as
147
+ * Replit-Authorization. Only set for development sandbox endpoints; never
148
+ * exported to the repl.
149
+ *
150
+ * @generated from protobuf field: string connectors_authorization = 23
151
+ */
152
+ connectorsAuthorization: string;
145
153
  /**
146
154
  * Metadata that are passed into backer job as environment variables
147
155
  *
@@ -203,6 +203,7 @@ class Repl$Type extends MessageType {
203
203
  { no: 13, name: "log_fields", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
204
204
  { no: 15, name: "use_repl_shield", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
205
205
  { no: 16, name: "connectors_host", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
206
+ { no: 23, name: "connectors_authorization", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
206
207
  { no: 17, name: "backer_job_metadata", kind: "map", K: 9 /*ScalarType.STRING*/, V: { kind: "scalar", T: 9 /*ScalarType.STRING*/ } },
207
208
  { no: 18, name: "custom_skills_bucket", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
208
209
  { no: 19, name: "user_email", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
@@ -225,6 +226,7 @@ class Repl$Type extends MessageType {
225
226
  message.logFields = "";
226
227
  message.useReplShield = false;
227
228
  message.connectorsHost = "";
229
+ message.connectorsAuthorization = "";
228
230
  message.backerJobMetadata = {};
229
231
  message.customSkillsBucket = "";
230
232
  message.userEmail = "";
@@ -283,6 +285,9 @@ class Repl$Type extends MessageType {
283
285
  case /* string connectors_host */ 16:
284
286
  message.connectorsHost = reader.string();
285
287
  break;
288
+ case /* string connectors_authorization */ 23:
289
+ message.connectorsAuthorization = reader.string();
290
+ break;
286
291
  case /* map<string, string> backer_job_metadata */ 17:
287
292
  this.binaryReadMap17(message.backerJobMetadata, reader, options);
288
293
  break;
@@ -392,6 +397,9 @@ class Repl$Type extends MessageType {
392
397
  /* google.protobuf.Timestamp repl_shield_state_as_of = 22; */
393
398
  if (message.replShieldStateAsOf)
394
399
  Timestamp.internalBinaryWrite(message.replShieldStateAsOf, writer.tag(22, WireType.LengthDelimited).fork(), options).join();
400
+ /* string connectors_authorization = 23; */
401
+ if (message.connectorsAuthorization !== "")
402
+ writer.tag(23, WireType.LengthDelimited).string(message.connectorsAuthorization);
395
403
  let u = options.writeUnknownFields;
396
404
  if (u !== false)
397
405
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -147,6 +147,14 @@ export interface CertificateClaim {
147
147
  * @generated from protobuf field: google.protobuf.Timestamp repl_created_at = 9
148
148
  */
149
149
  replCreatedAt: Timestamp;
150
+ } | {
151
+ oneofKind: "originReplid";
152
+ /**
153
+ * This cert has the authority to assert this origin Repl ID.
154
+ *
155
+ * @generated from protobuf field: string origin_replid = 10
156
+ */
157
+ originReplid: string;
150
158
  } | {
151
159
  oneofKind: undefined;
152
160
  };
@@ -553,7 +561,13 @@ export declare enum FlagClaim {
553
561
  *
554
562
  * @generated from protobuf enum value: ANY_REPL_CREATED_AT = 13;
555
563
  */
556
- ANY_REPL_CREATED_AT = 13
564
+ ANY_REPL_CREATED_AT = 13,
565
+ /**
566
+ * Cert can authorize child certs for any origin Repl ID.
567
+ *
568
+ * @generated from protobuf enum value: ANY_ORIGIN_REPLID = 14;
569
+ */
570
+ ANY_ORIGIN_REPLID = 14
557
571
  }
558
572
  declare class GovalSigningAuthority$Type extends MessageType<GovalSigningAuthority> {
559
573
  constructor();
@@ -137,6 +137,12 @@ export var FlagClaim;
137
137
  * @generated from protobuf enum value: ANY_REPL_CREATED_AT = 13;
138
138
  */
139
139
  FlagClaim[FlagClaim["ANY_REPL_CREATED_AT"] = 13] = "ANY_REPL_CREATED_AT";
140
+ /**
141
+ * Cert can authorize child certs for any origin Repl ID.
142
+ *
143
+ * @generated from protobuf enum value: ANY_ORIGIN_REPLID = 14;
144
+ */
145
+ FlagClaim[FlagClaim["ANY_ORIGIN_REPLID"] = 14] = "ANY_ORIGIN_REPLID";
140
146
  })(FlagClaim || (FlagClaim = {}));
141
147
  // @generated message type with reflection information, may provide speed optimized methods
142
148
  class GovalSigningAuthority$Type extends MessageType {
@@ -226,7 +232,8 @@ class CertificateClaim$Type extends MessageType {
226
232
  { no: 5, name: "subcluster", kind: "scalar", oneof: "claim", T: 9 /*ScalarType.STRING*/ },
227
233
  { no: 6, name: "deployment", kind: "scalar", oneof: "claim", T: 8 /*ScalarType.BOOL*/ },
228
234
  { 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 }
235
+ { no: 9, name: "repl_created_at", kind: "message", oneof: "claim", T: () => Timestamp },
236
+ { no: 10, name: "origin_replid", kind: "scalar", oneof: "claim", T: 9 /*ScalarType.STRING*/ }
230
237
  ]);
231
238
  }
232
239
  create(value) {
@@ -295,6 +302,12 @@ class CertificateClaim$Type extends MessageType {
295
302
  replCreatedAt: Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.claim.replCreatedAt)
296
303
  };
297
304
  break;
305
+ case /* string origin_replid */ 10:
306
+ message.claim = {
307
+ oneofKind: "originReplid",
308
+ originReplid: reader.string()
309
+ };
310
+ break;
298
311
  default:
299
312
  let u = options.readUnknownField;
300
313
  if (u === "throw")
@@ -334,6 +347,9 @@ class CertificateClaim$Type extends MessageType {
334
347
  /* google.protobuf.Timestamp repl_created_at = 9; */
335
348
  if (message.claim.oneofKind === "replCreatedAt")
336
349
  Timestamp.internalBinaryWrite(message.claim.replCreatedAt, writer.tag(9, WireType.LengthDelimited).fork(), options).join();
350
+ /* string origin_replid = 10; */
351
+ if (message.claim.oneofKind === "originReplid")
352
+ writer.tag(10, WireType.LengthDelimited).string(message.claim.originReplid);
337
353
  let u = options.writeUnknownFields;
338
354
  if (u !== false)
339
355
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -1293,18 +1293,6 @@ export interface Command {
1293
1293
  * @generated from protobuf field: replit.goval.api.NixModuleConfigSetResponse nixModuleConfigSetResponse = 463
1294
1294
  */
1295
1295
  nixModuleConfigSetResponse: NixModuleConfigSetResponse;
1296
- } | {
1297
- oneofKind: "replspaceApiSSHTokenGetRequest";
1298
- /**
1299
- * @generated from protobuf field: replit.goval.api.ReplspaceApiSSHTokenGetRequest replspaceApiSSHTokenGetRequest = 464
1300
- */
1301
- replspaceApiSSHTokenGetRequest: ReplspaceApiSSHTokenGetRequest;
1302
- } | {
1303
- oneofKind: "replspaceApiSSHTokenGetResponse";
1304
- /**
1305
- * @generated from protobuf field: replit.goval.api.ReplspaceApiSSHTokenGetResponse replspaceApiSSHTokenGetResponse = 465
1306
- */
1307
- replspaceApiSSHTokenGetResponse: ReplspaceApiSSHTokenGetResponse;
1308
1296
  } | {
1309
1297
  oneofKind: "secretsGetRequest";
1310
1298
  /**
@@ -2728,6 +2716,15 @@ export interface ContainerState {
2728
2716
  * @generated from protobuf field: replit.goval.api.ContainerState.State state = 1
2729
2717
  */
2730
2718
  state: ContainerState_State;
2719
+ /**
2720
+ * The port monitor selected by pid1 before reporting READY. Older pid1
2721
+ * versions leave this unset; callers must treat that as SECCOMP.
2722
+ * 1 is seccomp and 2 is eBPF. Other values are invalid and must be
2723
+ * treated as seccomp by legacy consumers.
2724
+ *
2725
+ * @generated from protobuf field: uint32 port_monitor = 2
2726
+ */
2727
+ portMonitor: number;
2731
2728
  }
2732
2729
  /**
2733
2730
  * @generated from protobuf enum replit.goval.api.ContainerState.State
@@ -2786,8 +2783,9 @@ export interface PortOpen {
2786
2783
  */
2787
2784
  pid: number;
2788
2785
  /**
2789
- * PidChain is the list of process ids in the hierarchy of the process,
2790
- * starting with the current process id and ending with 1 (pid1).
2786
+ * PidChain lists available process IDs in child-to-parent order. The last
2787
+ * visible ancestor need not be PID 1 when its parent is outside the PID
2788
+ * namespace.
2791
2789
  *
2792
2790
  * @generated from protobuf field: repeated uint32 pid_chain = 9
2793
2791
  */
@@ -5459,46 +5457,6 @@ export interface NixModuleConfigValue {
5459
5457
  oneofKind: undefined;
5460
5458
  };
5461
5459
  }
5462
- /**
5463
- * ReplspaceApiSSHTokenGetRequest asks Workspace for a short expiration SSH
5464
- * token for accessing a specific Repl.
5465
- *
5466
- * @generated from protobuf message replit.goval.api.ReplspaceApiSSHTokenGetRequest
5467
- */
5468
- export interface ReplspaceApiSSHTokenGetRequest {
5469
- /**
5470
- * @generated from protobuf field: string nonce = 1
5471
- */
5472
- nonce: string;
5473
- /**
5474
- * @generated from protobuf field: string replid = 2
5475
- */
5476
- replid: string;
5477
- /**
5478
- * @generated from protobuf field: google.protobuf.Timestamp before = 3
5479
- */
5480
- before?: Timestamp;
5481
- }
5482
- /**
5483
- * ReplspaceApiSSHTokenGetResponse is Workspace sending back a short expiration
5484
- * SSH token for accessing a specific Repl.
5485
- *
5486
- * @generated from protobuf message replit.goval.api.ReplspaceApiSSHTokenGetResponse
5487
- */
5488
- export interface ReplspaceApiSSHTokenGetResponse {
5489
- /**
5490
- * @generated from protobuf field: string nonce = 1
5491
- */
5492
- nonce: string;
5493
- /**
5494
- * @generated from protobuf field: string token = 2
5495
- */
5496
- token: string;
5497
- /**
5498
- * @generated from protobuf field: string ssh_hostname = 3
5499
- */
5500
- sshHostname: string;
5501
- }
5502
5460
  /**
5503
5461
  * StringList represents an list (or array) of strings;
5504
5462
  * we need this only because we cannot use a
@@ -8292,26 +8250,6 @@ declare class NixModuleConfigValue$Type extends MessageType<NixModuleConfigValue
8292
8250
  * @generated MessageType for protobuf message replit.goval.api.NixModuleConfigValue
8293
8251
  */
8294
8252
  export declare const NixModuleConfigValue: NixModuleConfigValue$Type;
8295
- declare class ReplspaceApiSSHTokenGetRequest$Type extends MessageType<ReplspaceApiSSHTokenGetRequest> {
8296
- constructor();
8297
- create(value?: PartialMessage<ReplspaceApiSSHTokenGetRequest>): ReplspaceApiSSHTokenGetRequest;
8298
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ReplspaceApiSSHTokenGetRequest): ReplspaceApiSSHTokenGetRequest;
8299
- internalBinaryWrite(message: ReplspaceApiSSHTokenGetRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
8300
- }
8301
- /**
8302
- * @generated MessageType for protobuf message replit.goval.api.ReplspaceApiSSHTokenGetRequest
8303
- */
8304
- export declare const ReplspaceApiSSHTokenGetRequest: ReplspaceApiSSHTokenGetRequest$Type;
8305
- declare class ReplspaceApiSSHTokenGetResponse$Type extends MessageType<ReplspaceApiSSHTokenGetResponse> {
8306
- constructor();
8307
- create(value?: PartialMessage<ReplspaceApiSSHTokenGetResponse>): ReplspaceApiSSHTokenGetResponse;
8308
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ReplspaceApiSSHTokenGetResponse): ReplspaceApiSSHTokenGetResponse;
8309
- internalBinaryWrite(message: ReplspaceApiSSHTokenGetResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
8310
- }
8311
- /**
8312
- * @generated MessageType for protobuf message replit.goval.api.ReplspaceApiSSHTokenGetResponse
8313
- */
8314
- export declare const ReplspaceApiSSHTokenGetResponse: ReplspaceApiSSHTokenGetResponse$Type;
8315
8253
  declare class StringList$Type extends MessageType<StringList> {
8316
8254
  constructor();
8317
8255
  create(value?: PartialMessage<StringList>): StringList;
package/dist/api/types.js CHANGED
@@ -602,8 +602,6 @@ class Command$Type extends MessageType {
602
602
  { no: 461, name: "nixModuleConfigGetResponse", kind: "message", oneof: "body", T: () => NixModuleConfigGetResponse },
603
603
  { no: 462, name: "nixModuleConfigSetRequest", kind: "message", oneof: "body", T: () => NixModuleConfigSetRequest },
604
604
  { no: 463, name: "nixModuleConfigSetResponse", kind: "message", oneof: "body", T: () => NixModuleConfigSetResponse },
605
- { no: 464, name: "replspaceApiSSHTokenGetRequest", kind: "message", oneof: "body", T: () => ReplspaceApiSSHTokenGetRequest },
606
- { no: 465, name: "replspaceApiSSHTokenGetResponse", kind: "message", oneof: "body", T: () => ReplspaceApiSSHTokenGetResponse },
607
605
  { no: 466, name: "secretsGetRequest", kind: "message", oneof: "body", T: () => SecretsGetRequest },
608
606
  { no: 467, name: "secretsGetResponse", kind: "message", oneof: "body", T: () => SecretsGetResponse },
609
607
  { no: 468, name: "secretsSetRequest", kind: "message", oneof: "body", T: () => SecretsSetRequest },
@@ -1780,18 +1778,6 @@ class Command$Type extends MessageType {
1780
1778
  nixModuleConfigSetResponse: NixModuleConfigSetResponse.internalBinaryRead(reader, reader.uint32(), options, message.body.nixModuleConfigSetResponse)
1781
1779
  };
1782
1780
  break;
1783
- case /* replit.goval.api.ReplspaceApiSSHTokenGetRequest replspaceApiSSHTokenGetRequest */ 464:
1784
- message.body = {
1785
- oneofKind: "replspaceApiSSHTokenGetRequest",
1786
- replspaceApiSSHTokenGetRequest: ReplspaceApiSSHTokenGetRequest.internalBinaryRead(reader, reader.uint32(), options, message.body.replspaceApiSSHTokenGetRequest)
1787
- };
1788
- break;
1789
- case /* replit.goval.api.ReplspaceApiSSHTokenGetResponse replspaceApiSSHTokenGetResponse */ 465:
1790
- message.body = {
1791
- oneofKind: "replspaceApiSSHTokenGetResponse",
1792
- replspaceApiSSHTokenGetResponse: ReplspaceApiSSHTokenGetResponse.internalBinaryRead(reader, reader.uint32(), options, message.body.replspaceApiSSHTokenGetResponse)
1793
- };
1794
- break;
1795
1781
  case /* replit.goval.api.SecretsGetRequest secretsGetRequest */ 466:
1796
1782
  message.body = {
1797
1783
  oneofKind: "secretsGetRequest",
@@ -2447,12 +2433,6 @@ class Command$Type extends MessageType {
2447
2433
  /* replit.goval.api.NixModuleConfigSetResponse nixModuleConfigSetResponse = 463; */
2448
2434
  if (message.body.oneofKind === "nixModuleConfigSetResponse")
2449
2435
  NixModuleConfigSetResponse.internalBinaryWrite(message.body.nixModuleConfigSetResponse, writer.tag(463, WireType.LengthDelimited).fork(), options).join();
2450
- /* replit.goval.api.ReplspaceApiSSHTokenGetRequest replspaceApiSSHTokenGetRequest = 464; */
2451
- if (message.body.oneofKind === "replspaceApiSSHTokenGetRequest")
2452
- ReplspaceApiSSHTokenGetRequest.internalBinaryWrite(message.body.replspaceApiSSHTokenGetRequest, writer.tag(464, WireType.LengthDelimited).fork(), options).join();
2453
- /* replit.goval.api.ReplspaceApiSSHTokenGetResponse replspaceApiSSHTokenGetResponse = 465; */
2454
- if (message.body.oneofKind === "replspaceApiSSHTokenGetResponse")
2455
- ReplspaceApiSSHTokenGetResponse.internalBinaryWrite(message.body.replspaceApiSSHTokenGetResponse, writer.tag(465, WireType.LengthDelimited).fork(), options).join();
2456
2436
  /* replit.goval.api.SecretsGetRequest secretsGetRequest = 466; */
2457
2437
  if (message.body.oneofKind === "secretsGetRequest")
2458
2438
  SecretsGetRequest.internalBinaryWrite(message.body.secretsGetRequest, writer.tag(466, WireType.LengthDelimited).fork(), options).join();
@@ -6869,12 +6849,14 @@ export const CloseChannelRes = new CloseChannelRes$Type();
6869
6849
  class ContainerState$Type extends MessageType {
6870
6850
  constructor() {
6871
6851
  super("replit.goval.api.ContainerState", [
6872
- { no: 1, name: "state", kind: "enum", T: () => ["replit.goval.api.ContainerState.State", ContainerState_State] }
6852
+ { no: 1, name: "state", kind: "enum", T: () => ["replit.goval.api.ContainerState.State", ContainerState_State] },
6853
+ { no: 2, name: "port_monitor", kind: "scalar", T: 13 /*ScalarType.UINT32*/ }
6873
6854
  ]);
6874
6855
  }
6875
6856
  create(value) {
6876
6857
  const message = globalThis.Object.create((this.messagePrototype));
6877
6858
  message.state = 0;
6859
+ message.portMonitor = 0;
6878
6860
  if (value !== undefined)
6879
6861
  reflectionMergePartial(this, message, value);
6880
6862
  return message;
@@ -6887,6 +6869,9 @@ class ContainerState$Type extends MessageType {
6887
6869
  case /* replit.goval.api.ContainerState.State state */ 1:
6888
6870
  message.state = reader.int32();
6889
6871
  break;
6872
+ case /* uint32 port_monitor */ 2:
6873
+ message.portMonitor = reader.uint32();
6874
+ break;
6890
6875
  default:
6891
6876
  let u = options.readUnknownField;
6892
6877
  if (u === "throw")
@@ -6902,6 +6887,9 @@ class ContainerState$Type extends MessageType {
6902
6887
  /* replit.goval.api.ContainerState.State state = 1; */
6903
6888
  if (message.state !== 0)
6904
6889
  writer.tag(1, WireType.Varint).int32(message.state);
6890
+ /* uint32 port_monitor = 2; */
6891
+ if (message.portMonitor !== 0)
6892
+ writer.tag(2, WireType.Varint).uint32(message.portMonitor);
6905
6893
  let u = options.writeUnknownFields;
6906
6894
  if (u !== false)
6907
6895
  (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -14991,131 +14979,6 @@ class NixModuleConfigValue$Type extends MessageType {
14991
14979
  */
14992
14980
  export const NixModuleConfigValue = new NixModuleConfigValue$Type();
14993
14981
  // @generated message type with reflection information, may provide speed optimized methods
14994
- class ReplspaceApiSSHTokenGetRequest$Type extends MessageType {
14995
- constructor() {
14996
- super("replit.goval.api.ReplspaceApiSSHTokenGetRequest", [
14997
- { no: 1, name: "nonce", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
14998
- { no: 2, name: "replid", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
14999
- { no: 3, name: "before", kind: "message", T: () => Timestamp }
15000
- ]);
15001
- }
15002
- create(value) {
15003
- const message = globalThis.Object.create((this.messagePrototype));
15004
- message.nonce = "";
15005
- message.replid = "";
15006
- if (value !== undefined)
15007
- reflectionMergePartial(this, message, value);
15008
- return message;
15009
- }
15010
- internalBinaryRead(reader, length, options, target) {
15011
- let message = target ?? this.create(), end = reader.pos + length;
15012
- while (reader.pos < end) {
15013
- let [fieldNo, wireType] = reader.tag();
15014
- switch (fieldNo) {
15015
- case /* string nonce */ 1:
15016
- message.nonce = reader.string();
15017
- break;
15018
- case /* string replid */ 2:
15019
- message.replid = reader.string();
15020
- break;
15021
- case /* google.protobuf.Timestamp before */ 3:
15022
- message.before = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.before);
15023
- break;
15024
- default:
15025
- let u = options.readUnknownField;
15026
- if (u === "throw")
15027
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
15028
- let d = reader.skip(wireType);
15029
- if (u !== false)
15030
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
15031
- }
15032
- }
15033
- return message;
15034
- }
15035
- internalBinaryWrite(message, writer, options) {
15036
- /* string nonce = 1; */
15037
- if (message.nonce !== "")
15038
- writer.tag(1, WireType.LengthDelimited).string(message.nonce);
15039
- /* string replid = 2; */
15040
- if (message.replid !== "")
15041
- writer.tag(2, WireType.LengthDelimited).string(message.replid);
15042
- /* google.protobuf.Timestamp before = 3; */
15043
- if (message.before)
15044
- Timestamp.internalBinaryWrite(message.before, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
15045
- let u = options.writeUnknownFields;
15046
- if (u !== false)
15047
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
15048
- return writer;
15049
- }
15050
- }
15051
- /**
15052
- * @generated MessageType for protobuf message replit.goval.api.ReplspaceApiSSHTokenGetRequest
15053
- */
15054
- export const ReplspaceApiSSHTokenGetRequest = new ReplspaceApiSSHTokenGetRequest$Type();
15055
- // @generated message type with reflection information, may provide speed optimized methods
15056
- class ReplspaceApiSSHTokenGetResponse$Type extends MessageType {
15057
- constructor() {
15058
- super("replit.goval.api.ReplspaceApiSSHTokenGetResponse", [
15059
- { no: 1, name: "nonce", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
15060
- { no: 2, name: "token", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
15061
- { no: 3, name: "ssh_hostname", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
15062
- ]);
15063
- }
15064
- create(value) {
15065
- const message = globalThis.Object.create((this.messagePrototype));
15066
- message.nonce = "";
15067
- message.token = "";
15068
- message.sshHostname = "";
15069
- if (value !== undefined)
15070
- reflectionMergePartial(this, message, value);
15071
- return message;
15072
- }
15073
- internalBinaryRead(reader, length, options, target) {
15074
- let message = target ?? this.create(), end = reader.pos + length;
15075
- while (reader.pos < end) {
15076
- let [fieldNo, wireType] = reader.tag();
15077
- switch (fieldNo) {
15078
- case /* string nonce */ 1:
15079
- message.nonce = reader.string();
15080
- break;
15081
- case /* string token */ 2:
15082
- message.token = reader.string();
15083
- break;
15084
- case /* string ssh_hostname */ 3:
15085
- message.sshHostname = reader.string();
15086
- break;
15087
- default:
15088
- let u = options.readUnknownField;
15089
- if (u === "throw")
15090
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
15091
- let d = reader.skip(wireType);
15092
- if (u !== false)
15093
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
15094
- }
15095
- }
15096
- return message;
15097
- }
15098
- internalBinaryWrite(message, writer, options) {
15099
- /* string nonce = 1; */
15100
- if (message.nonce !== "")
15101
- writer.tag(1, WireType.LengthDelimited).string(message.nonce);
15102
- /* string token = 2; */
15103
- if (message.token !== "")
15104
- writer.tag(2, WireType.LengthDelimited).string(message.token);
15105
- /* string ssh_hostname = 3; */
15106
- if (message.sshHostname !== "")
15107
- writer.tag(3, WireType.LengthDelimited).string(message.sshHostname);
15108
- let u = options.writeUnknownFields;
15109
- if (u !== false)
15110
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
15111
- return writer;
15112
- }
15113
- }
15114
- /**
15115
- * @generated MessageType for protobuf message replit.goval.api.ReplspaceApiSSHTokenGetResponse
15116
- */
15117
- export const ReplspaceApiSSHTokenGetResponse = new ReplspaceApiSSHTokenGetResponse$Type();
15118
- // @generated message type with reflection information, may provide speed optimized methods
15119
14982
  class StringList$Type extends MessageType {
15120
14983
  constructor() {
15121
14984
  super("replit.goval.api.StringList", [