@replit/protocol 0.6.0 → 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.
@@ -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
  *
@@ -183,6 +191,13 @@ export interface Repl {
183
191
  * @generated from protobuf field: google.protobuf.Timestamp repl_shield_state_as_of = 22
184
192
  */
185
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;
186
201
  }
187
202
  /**
188
203
  * autocontainer needs to know if we are in a teams org
@@ -203,12 +203,14 @@ 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*/ },
209
210
  { no: 20, name: "inject_chatgpt_link_override", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
210
211
  { no: 21, name: "repl_created_at", kind: "message", T: () => Timestamp },
211
- { 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*/ }
212
214
  ]);
213
215
  }
214
216
  create(value) {
@@ -225,10 +227,12 @@ class Repl$Type extends MessageType {
225
227
  message.logFields = "";
226
228
  message.useReplShield = false;
227
229
  message.connectorsHost = "";
230
+ message.connectorsAuthorization = "";
228
231
  message.backerJobMetadata = {};
229
232
  message.customSkillsBucket = "";
230
233
  message.userEmail = "";
231
234
  message.injectChatgptLinkOverride = false;
235
+ message.conversationId = "";
232
236
  if (value !== undefined)
233
237
  reflectionMergePartial(this, message, value);
234
238
  return message;
@@ -283,6 +287,9 @@ class Repl$Type extends MessageType {
283
287
  case /* string connectors_host */ 16:
284
288
  message.connectorsHost = reader.string();
285
289
  break;
290
+ case /* string connectors_authorization */ 23:
291
+ message.connectorsAuthorization = reader.string();
292
+ break;
286
293
  case /* map<string, string> backer_job_metadata */ 17:
287
294
  this.binaryReadMap17(message.backerJobMetadata, reader, options);
288
295
  break;
@@ -301,6 +308,9 @@ class Repl$Type extends MessageType {
301
308
  case /* google.protobuf.Timestamp repl_shield_state_as_of */ 22:
302
309
  message.replShieldStateAsOf = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.replShieldStateAsOf);
303
310
  break;
311
+ case /* string conversation_id */ 24:
312
+ message.conversationId = reader.string();
313
+ break;
304
314
  default:
305
315
  let u = options.readUnknownField;
306
316
  if (u === "throw")
@@ -392,6 +402,12 @@ class Repl$Type extends MessageType {
392
402
  /* google.protobuf.Timestamp repl_shield_state_as_of = 22; */
393
403
  if (message.replShieldStateAsOf)
394
404
  Timestamp.internalBinaryWrite(message.replShieldStateAsOf, writer.tag(22, WireType.LengthDelimited).fork(), options).join();
405
+ /* string connectors_authorization = 23; */
406
+ if (message.connectorsAuthorization !== "")
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);
395
411
  let u = options.writeUnknownFields;
396
412
  if (u !== false)
397
413
  (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", [
@@ -12,73 +12,129 @@ import { MessageType } from "@protobuf-ts/runtime";
12
12
  * `Any` contains an arbitrary serialized protocol buffer message along with a
13
13
  * URL that describes the type of the serialized message.
14
14
  *
15
- * In its binary encoding, an `Any` is an ordinary message; but in other wire
16
- * forms like JSON, it has a special encoding. The format of the type URL is
17
- * described on the `type_url` field.
18
- *
19
- * Protobuf APIs provide utilities to interact with `Any` values:
20
- *
21
- * - A 'pack' operation accepts a message and constructs a generic `Any` wrapper
22
- * around it.
23
- * - An 'unpack' operation reads the content of an `Any` message, either into an
24
- * existing message or a new one. Unpack operations must check the type of the
25
- * value they unpack against the declared `type_url`.
26
- * - An 'is' operation decides whether an `Any` contains a message of the given
27
- * type, i.e. whether it can 'unpack' that type.
28
- *
29
- * The JSON format representation of an `Any` follows one of these cases:
30
- *
31
- * - For types without special-cased JSON encodings, the JSON format
32
- * representation of the `Any` is the same as that of the message, with an
33
- * additional `@type` field which contains the type URL.
34
- * - For types with special-cased JSON encodings (typically called 'well-known'
35
- * types, listed in https://protobuf.dev/programming-guides/json/#any), the
36
- * JSON format representation has a key `@type` which contains the type URL
37
- * and a key `value` which contains the JSON-serialized value.
38
- *
39
- * The text format representation of an `Any` is like a message with one field
40
- * whose name is the type URL in brackets. For example, an `Any` containing a
41
- * `foo.Bar` message may be written `[type.googleapis.com/foo.Bar] { a: 2 }`.
15
+ * Protobuf library provides support to pack/unpack Any values in the form
16
+ * of utility functions or additional generated methods of the Any type.
17
+ *
18
+ * Example 1: Pack and unpack a message in C++.
19
+ *
20
+ * Foo foo = ...;
21
+ * Any any;
22
+ * any.PackFrom(foo);
23
+ * ...
24
+ * if (any.UnpackTo(&foo)) {
25
+ * ...
26
+ * }
27
+ *
28
+ * Example 2: Pack and unpack a message in Java.
29
+ *
30
+ * Foo foo = ...;
31
+ * Any any = Any.pack(foo);
32
+ * ...
33
+ * if (any.is(Foo.class)) {
34
+ * foo = any.unpack(Foo.class);
35
+ * }
36
+ * // or ...
37
+ * if (any.isSameTypeAs(Foo.getDefaultInstance())) {
38
+ * foo = any.unpack(Foo.getDefaultInstance());
39
+ * }
40
+ *
41
+ * Example 3: Pack and unpack a message in Python.
42
+ *
43
+ * foo = Foo(...)
44
+ * any = Any()
45
+ * any.Pack(foo)
46
+ * ...
47
+ * if any.Is(Foo.DESCRIPTOR):
48
+ * any.Unpack(foo)
49
+ * ...
50
+ *
51
+ * Example 4: Pack and unpack a message in Go
52
+ *
53
+ * foo := &pb.Foo{...}
54
+ * any, err := anypb.New(foo)
55
+ * if err != nil {
56
+ * ...
57
+ * }
58
+ * ...
59
+ * foo := &pb.Foo{}
60
+ * if err := any.UnmarshalTo(foo); err != nil {
61
+ * ...
62
+ * }
63
+ *
64
+ * The pack methods provided by protobuf library will by default use
65
+ * 'type.googleapis.com/full.type.name' as the type URL and the unpack
66
+ * methods only use the fully qualified type name after the last '/'
67
+ * in the type URL, for example "foo.bar.com/x/y.z" will yield type
68
+ * name "y.z".
69
+ *
70
+ * JSON
71
+ * ====
72
+ * The JSON representation of an `Any` value uses the regular
73
+ * representation of the deserialized, embedded message, with an
74
+ * additional field `@type` which contains the type URL. Example:
75
+ *
76
+ * package google.profile;
77
+ * message Person {
78
+ * string first_name = 1;
79
+ * string last_name = 2;
80
+ * }
81
+ *
82
+ * {
83
+ * "@type": "type.googleapis.com/google.profile.Person",
84
+ * "firstName": <string>,
85
+ * "lastName": <string>
86
+ * }
87
+ *
88
+ * If the embedded message type is well-known and has a custom JSON
89
+ * representation, that representation will be embedded adding a field
90
+ * `value` which holds the custom JSON in addition to the `@type`
91
+ * field. Example (for message [google.protobuf.Duration][]):
92
+ *
93
+ * {
94
+ * "@type": "type.googleapis.com/google.protobuf.Duration",
95
+ * "value": "1.212s"
96
+ * }
97
+ *
42
98
  *
43
99
  * @generated from protobuf message google.protobuf.Any
44
100
  */
45
101
  export interface Any {
46
102
  /**
47
- * Identifies the type of the serialized Protobuf message with a URI reference
48
- * consisting of a prefix ending in a slash and the fully-qualified type name.
103
+ * A URL/resource name that uniquely identifies the type of the serialized
104
+ * protocol buffer message. This string must contain at least
105
+ * one "/" character. The last segment of the URL's path must represent
106
+ * the fully qualified name of the type (as in
107
+ * `path/google.protobuf.Duration`). The name should be in a canonical form
108
+ * (e.g., leading "." is not accepted).
49
109
  *
50
- * Example: type.googleapis.com/google.protobuf.StringValue
110
+ * In practice, teams usually precompile into the binary all types that they
111
+ * expect it to use in the context of Any. However, for URLs which use the
112
+ * scheme `http`, `https`, or no scheme, one can optionally set up a type
113
+ * server that maps type URLs to message definitions as follows:
51
114
  *
52
- * This string must contain at least one `/` character, and the content after
53
- * the last `/` must be the fully-qualified name of the type in canonical
54
- * form, without a leading dot. Do not write a scheme on these URI references
55
- * so that clients do not attempt to contact them.
115
+ * * If no scheme is provided, `https` is assumed.
116
+ * * An HTTP GET on the URL must yield a [google.protobuf.Type][]
117
+ * value in binary format, or produce an error.
118
+ * * Applications are allowed to cache lookup results based on the
119
+ * URL, or have them precompiled into a binary to avoid any
120
+ * lookup. Therefore, binary compatibility needs to be preserved
121
+ * on changes to types. (Use versioned type names to manage
122
+ * breaking changes.)
56
123
  *
57
- * The prefix is arbitrary and Protobuf implementations are expected to
58
- * simply strip off everything up to and including the last `/` to identify
59
- * the type. `type.googleapis.com/` is a common default prefix that some
60
- * legacy implementations require. This prefix does not indicate the origin of
61
- * the type, and URIs containing it are not expected to respond to any
62
- * requests.
124
+ * Note: this functionality is not currently available in the official
125
+ * protobuf release, and it is not used for type URLs beginning with
126
+ * type.googleapis.com. As of May 2023, there are no widely used type server
127
+ * implementations and no plans to implement one.
63
128
  *
64
- * All type URL strings must be legal URI references with the additional
65
- * restriction (for the text format) that the content of the reference
66
- * must consist only of alphanumeric characters, percent-encoded escapes, and
67
- * characters in the following set (not including the outer backticks):
68
- * `/-.~_!$&()*+,;=`. Despite our allowing percent encodings, implementations
69
- * should not unescape them to prevent confusion with existing parsers. For
70
- * example, `type.googleapis.com%2FFoo` should be rejected.
129
+ * Schemes other than `http`, `https` (or the empty scheme) might be
130
+ * used with implementation specific semantics.
71
131
  *
72
- * In the original design of `Any`, the possibility of launching a type
73
- * resolution service at these type URLs was considered but Protobuf never
74
- * implemented one and considers contacting these URLs to be problematic and
75
- * a potential security issue. Do not attempt to contact type URLs.
76
132
  *
77
133
  * @generated from protobuf field: string type_url = 1
78
134
  */
79
135
  typeUrl: string;
80
136
  /**
81
- * Holds a Protobuf serialization of the type described by type_url.
137
+ * Must be a valid serialized protocol buffer of the above specified type.
82
138
  *
83
139
  * @generated from protobuf field: bytes value = 2
84
140
  */
@@ -120,22 +120,24 @@ import { MessageType } from "@protobuf-ts/runtime";
120
120
  * An implementation may provide options to override this default behavior for
121
121
  * repeated and message fields.
122
122
  *
123
- * Note that libraries which implement FieldMask resolution have various
124
- * different behaviors in the face of empty masks or the special "*" mask.
125
- * When implementing a service you should confirm these cases have the
126
- * appropriate behavior in the underlying FieldMask library that you desire,
127
- * and you may need to special case those cases in your application code if
128
- * the underlying field mask library behavior differs from your intended
129
- * service semantics.
130
- *
131
- * Update methods implementing https://google.aip.dev/134
132
- * - MUST support the special value * meaning "full replace"
133
- * - MUST treat an omitted field mask as "replace fields which are present".
134
- *
135
- * Other methods implementing https://google.aip.dev/157
136
- * - SHOULD support the special value "*" to mean "get all".
137
- * - MUST treat an omitted field mask to mean "get all", unless otherwise
138
- * documented.
123
+ * In order to reset a field's value to the default, the field must
124
+ * be in the mask and set to the default value in the provided resource.
125
+ * Hence, in order to reset all fields of a resource, provide a default
126
+ * instance of the resource and set all fields in the mask, or do
127
+ * not provide a mask as described below.
128
+ *
129
+ * If a field mask is not present on update, the operation applies to
130
+ * all fields (as if a field mask of all fields has been specified).
131
+ * Note that in the presence of schema evolution, this may mean that
132
+ * fields the client does not know and has therefore not filled into
133
+ * the request will be reset to their default. If this is unwanted
134
+ * behavior, a specific service may require a client to always specify
135
+ * a field mask, producing an error if not.
136
+ *
137
+ * As with get operations, the location of the resource which
138
+ * describes the updated values in the request message depends on the
139
+ * operation kind. In any case, the effect of the field mask is
140
+ * required to be honored by the API.
139
141
  *
140
142
  * ## Considerations for HTTP REST
141
143
  *