@replit/protocol 0.4.21 → 0.4.22
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.
- package/README.md +54 -0
- package/dist/api/client.d.ts +202 -0
- package/dist/api/client.d.ts.map +1 -0
- package/dist/api/client.js +394 -0
- package/dist/api/features/features.d.ts +112 -0
- package/dist/api/features/features.d.ts.map +1 -0
- package/dist/api/features/features.js +199 -0
- package/dist/api/lore/lore.d.ts +543 -0
- package/dist/api/lore/lore.d.ts.map +1 -0
- package/dist/api/lore/lore.js +982 -0
- package/dist/api/lore/service.client.d.ts +283 -0
- package/dist/api/lore/service.client.d.ts.map +1 -0
- package/dist/api/lore/service.client.js +172 -0
- package/dist/api/lore/service.d.ts +1100 -0
- package/dist/api/lore/service.d.ts.map +1 -0
- package/dist/api/lore/service.js +2279 -0
- package/dist/api/powerup.d.ts +147 -0
- package/dist/api/powerup.d.ts.map +1 -0
- package/dist/api/powerup.js +286 -0
- package/dist/api/repl/repl.d.ts +552 -0
- package/dist/api/repl/repl.d.ts.map +1 -0
- package/dist/api/repl/repl.js +787 -0
- package/dist/api/signing.d.ts +618 -0
- package/dist/api/signing.d.ts.map +1 -0
- package/dist/api/signing.js +785 -0
- package/dist/api/token/token.d.ts +335 -0
- package/dist/api/token/token.d.ts.map +1 -0
- package/dist/api/token/token.js +463 -0
- package/dist/api/types.d.ts +8629 -0
- package/dist/api/types.d.ts.map +1 -0
- package/dist/api/types.js +17225 -0
- package/dist/google/protobuf/empty.d.ts +31 -0
- package/dist/google/protobuf/empty.d.ts.map +1 -0
- package/dist/google/protobuf/empty.js +41 -0
- package/dist/google/protobuf/field_mask.d.ts +239 -0
- package/dist/google/protobuf/field_mask.d.ts.map +1 -0
- package/dist/google/protobuf/field_mask.js +83 -0
- package/dist/google/protobuf/struct.d.ts +186 -0
- package/dist/google/protobuf/struct.d.ts.map +1 -0
- package/dist/google/protobuf/struct.js +337 -0
- package/dist/google/protobuf/timestamp.d.ts +156 -0
- package/dist/google/protobuf/timestamp.d.ts.map +1 -0
- package/dist/google/protobuf/timestamp.js +132 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +16 -0
- package/dist/package.json +3 -0
- package/iotester/index.d.ts +6 -6
- package/iotester/index.js +25 -12
- package/main/index.d.ts +6 -6
- package/main/index.js +25 -12
- package/package.json +43 -4
- package/gen.sh +0 -51
- package/jsdoc.js +0 -171
- package/pnpm-workspace.yaml +0 -6
|
@@ -0,0 +1,785 @@
|
|
|
1
|
+
import { WireType } from "@protobuf-ts/runtime";
|
|
2
|
+
import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
3
|
+
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
4
|
+
import { MessageType } from "@protobuf-ts/runtime";
|
|
5
|
+
import { BuildInfo } from "./repl/repl.js";
|
|
6
|
+
import { ReplToken } from "./token/token.js";
|
|
7
|
+
import { Timestamp } from "../google/protobuf/timestamp.js";
|
|
8
|
+
import { Org } from "./repl/repl.js";
|
|
9
|
+
/**
|
|
10
|
+
* @generated from protobuf enum replit.goval.api.TokenVersion
|
|
11
|
+
*/
|
|
12
|
+
export var TokenVersion;
|
|
13
|
+
(function (TokenVersion) {
|
|
14
|
+
/**
|
|
15
|
+
* Body contains are bare ReplToken and must be decoded explicitly
|
|
16
|
+
*
|
|
17
|
+
* @generated from protobuf enum value: BARE_REPL_TOKEN = 0;
|
|
18
|
+
*/
|
|
19
|
+
TokenVersion[TokenVersion["BARE_REPL_TOKEN"] = 0] = "BARE_REPL_TOKEN";
|
|
20
|
+
/**
|
|
21
|
+
* Body contains a GovalToken and can be interrogated about the type of its
|
|
22
|
+
* own message
|
|
23
|
+
*
|
|
24
|
+
* @generated from protobuf enum value: TYPE_AWARE_TOKEN = 1;
|
|
25
|
+
*/
|
|
26
|
+
TokenVersion[TokenVersion["TYPE_AWARE_TOKEN"] = 1] = "TYPE_AWARE_TOKEN";
|
|
27
|
+
})(TokenVersion || (TokenVersion = {}));
|
|
28
|
+
/**
|
|
29
|
+
* @generated from protobuf enum replit.goval.api.FlagClaim
|
|
30
|
+
*/
|
|
31
|
+
export var FlagClaim;
|
|
32
|
+
(function (FlagClaim) {
|
|
33
|
+
/**
|
|
34
|
+
* Cert has the authority to sign ReplToken messages that can be validated
|
|
35
|
+
* by goval
|
|
36
|
+
*
|
|
37
|
+
* @generated from protobuf enum value: MINT_GOVAL_TOKEN = 0;
|
|
38
|
+
*/
|
|
39
|
+
FlagClaim[FlagClaim["MINT_GOVAL_TOKEN"] = 0] = "MINT_GOVAL_TOKEN";
|
|
40
|
+
/**
|
|
41
|
+
* Cert has the authority to sign additional intermediate certs. (The claims
|
|
42
|
+
* on intermediate certs signed by this cert are still enforced.)
|
|
43
|
+
*
|
|
44
|
+
* @generated from protobuf enum value: SIGN_INTERMEDIATE_CERT = 1;
|
|
45
|
+
*/
|
|
46
|
+
FlagClaim[FlagClaim["SIGN_INTERMEDIATE_CERT"] = 1] = "SIGN_INTERMEDIATE_CERT";
|
|
47
|
+
/**
|
|
48
|
+
* Cert has the authority to sign GovalToken messages that can prove identity.
|
|
49
|
+
*
|
|
50
|
+
* @generated from protobuf enum value: IDENTITY = 5;
|
|
51
|
+
*/
|
|
52
|
+
FlagClaim[FlagClaim["IDENTITY"] = 5] = "IDENTITY";
|
|
53
|
+
/**
|
|
54
|
+
* Cert has the authority to sign GovalToken messages that authorizes the
|
|
55
|
+
* bearer to use Ghostwriter.
|
|
56
|
+
*
|
|
57
|
+
* @generated from protobuf enum value: GHOSTWRITER = 6;
|
|
58
|
+
*/
|
|
59
|
+
FlagClaim[FlagClaim["GHOSTWRITER"] = 6] = "GHOSTWRITER";
|
|
60
|
+
/**
|
|
61
|
+
* Cert has ability to mint Repl Identity tokens
|
|
62
|
+
*
|
|
63
|
+
* @generated from protobuf enum value: RENEW_IDENTITY = 7;
|
|
64
|
+
*/
|
|
65
|
+
FlagClaim[FlagClaim["RENEW_IDENTITY"] = 7] = "RENEW_IDENTITY";
|
|
66
|
+
/**
|
|
67
|
+
* Cert has abilit to mint Repl KV tokens
|
|
68
|
+
*
|
|
69
|
+
* @generated from protobuf enum value: RENEW_KV = 8;
|
|
70
|
+
*/
|
|
71
|
+
FlagClaim[FlagClaim["RENEW_KV"] = 8] = "RENEW_KV";
|
|
72
|
+
/**
|
|
73
|
+
* Cert has the authority to sign ReplToken messages that claim to come from
|
|
74
|
+
* Deployments. If this claim is not set, the cert will only be able to emit
|
|
75
|
+
* tokens only for interactive Repls.
|
|
76
|
+
*
|
|
77
|
+
* @generated from protobuf enum value: DEPLOYMENTS = 10;
|
|
78
|
+
*/
|
|
79
|
+
FlagClaim[FlagClaim["DEPLOYMENTS"] = 10] = "DEPLOYMENTS";
|
|
80
|
+
/**
|
|
81
|
+
* Cert has the authority to sign ReplToken messages for any ReplID. If this
|
|
82
|
+
* claim is not set, the cert will only be able to emit tokens only for the
|
|
83
|
+
* list explicitly enumerated by the other claims. If that list is empty, the
|
|
84
|
+
* cert has no ability to sign any tokens.
|
|
85
|
+
*
|
|
86
|
+
* @generated from protobuf enum value: ANY_REPLID = 2;
|
|
87
|
+
*/
|
|
88
|
+
FlagClaim[FlagClaim["ANY_REPLID"] = 2] = "ANY_REPLID";
|
|
89
|
+
/**
|
|
90
|
+
* Cert has the authority to sign ReplToken messages for any user. If this
|
|
91
|
+
* claim is not set, the cert will only be able to emit tokens only for the
|
|
92
|
+
* list explicitly enumerated by the other claims. If that list is empty, the
|
|
93
|
+
* cert has no ability to sign any tokens.
|
|
94
|
+
*
|
|
95
|
+
* @generated from protobuf enum value: ANY_USER = 3;
|
|
96
|
+
*/
|
|
97
|
+
FlagClaim[FlagClaim["ANY_USER"] = 3] = "ANY_USER";
|
|
98
|
+
/**
|
|
99
|
+
* Cert has the authority to sign ReplToken messages for any user id. If this
|
|
100
|
+
* claim is not set, the cert will only be able to emit tokens only for the
|
|
101
|
+
* list explicitly enumerated by the other claims. If that list is empty, the
|
|
102
|
+
* cert has no ability to sign any tokens that have a user id.
|
|
103
|
+
*
|
|
104
|
+
* @generated from protobuf enum value: ANY_USER_ID = 11;
|
|
105
|
+
*/
|
|
106
|
+
FlagClaim[FlagClaim["ANY_USER_ID"] = 11] = "ANY_USER_ID";
|
|
107
|
+
/**
|
|
108
|
+
* Cert has the authority to sign ReplToken messages for any org. If this
|
|
109
|
+
* claim is not set, the cert will only be able to emit tokens only for the
|
|
110
|
+
* list explicitly enumerated by the other claims. If that list is empty, the
|
|
111
|
+
* cert has no ability to sign any tokens that have an org.
|
|
112
|
+
*
|
|
113
|
+
* @generated from protobuf enum value: ANY_ORG = 12;
|
|
114
|
+
*/
|
|
115
|
+
FlagClaim[FlagClaim["ANY_ORG"] = 12] = "ANY_ORG";
|
|
116
|
+
/**
|
|
117
|
+
* Cert has the authority to sign ReplToken messages for any cluster. If this
|
|
118
|
+
* claim is not set, the cert will only be able to emit tokens only for the
|
|
119
|
+
* list explicitly enumerated by the other claims. If that list is empty, the
|
|
120
|
+
* cert has no ability to sign any tokens.
|
|
121
|
+
*
|
|
122
|
+
* @generated from protobuf enum value: ANY_CLUSTER = 4;
|
|
123
|
+
*/
|
|
124
|
+
FlagClaim[FlagClaim["ANY_CLUSTER"] = 4] = "ANY_CLUSTER";
|
|
125
|
+
/**
|
|
126
|
+
* Cert has the authority to sign ReplToken messages for any subcluster. If
|
|
127
|
+
* this claim is not set, the cert will only be able to emit tokens only for
|
|
128
|
+
* the list explicitly enumerated by the other claims. If that list is empty,
|
|
129
|
+
* the cert has no ability to sign any tokens that have a subcluster.
|
|
130
|
+
*
|
|
131
|
+
* @generated from protobuf enum value: ANY_SUBCLUSTER = 9;
|
|
132
|
+
*/
|
|
133
|
+
FlagClaim[FlagClaim["ANY_SUBCLUSTER"] = 9] = "ANY_SUBCLUSTER";
|
|
134
|
+
})(FlagClaim || (FlagClaim = {}));
|
|
135
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
136
|
+
class GovalSigningAuthority$Type extends MessageType {
|
|
137
|
+
constructor() {
|
|
138
|
+
super("replit.goval.api.GovalSigningAuthority", [
|
|
139
|
+
{ no: 1, name: "key_id", kind: "scalar", oneof: "cert", T: 9 /*ScalarType.STRING*/ },
|
|
140
|
+
{ no: 2, name: "signed_cert", kind: "scalar", oneof: "cert", T: 9 /*ScalarType.STRING*/ },
|
|
141
|
+
{ no: 3, name: "version", kind: "enum", T: () => ["replit.goval.api.TokenVersion", TokenVersion] },
|
|
142
|
+
{ no: 4, name: "issuer", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
143
|
+
]);
|
|
144
|
+
}
|
|
145
|
+
create(value) {
|
|
146
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
147
|
+
message.cert = { oneofKind: undefined };
|
|
148
|
+
message.version = 0;
|
|
149
|
+
message.issuer = "";
|
|
150
|
+
if (value !== undefined)
|
|
151
|
+
reflectionMergePartial(this, message, value);
|
|
152
|
+
return message;
|
|
153
|
+
}
|
|
154
|
+
internalBinaryRead(reader, length, options, target) {
|
|
155
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
156
|
+
while (reader.pos < end) {
|
|
157
|
+
let [fieldNo, wireType] = reader.tag();
|
|
158
|
+
switch (fieldNo) {
|
|
159
|
+
case /* string key_id */ 1:
|
|
160
|
+
message.cert = {
|
|
161
|
+
oneofKind: "keyId",
|
|
162
|
+
keyId: reader.string()
|
|
163
|
+
};
|
|
164
|
+
break;
|
|
165
|
+
case /* string signed_cert */ 2:
|
|
166
|
+
message.cert = {
|
|
167
|
+
oneofKind: "signedCert",
|
|
168
|
+
signedCert: reader.string()
|
|
169
|
+
};
|
|
170
|
+
break;
|
|
171
|
+
case /* replit.goval.api.TokenVersion version */ 3:
|
|
172
|
+
message.version = reader.int32();
|
|
173
|
+
break;
|
|
174
|
+
case /* string issuer */ 4:
|
|
175
|
+
message.issuer = reader.string();
|
|
176
|
+
break;
|
|
177
|
+
default:
|
|
178
|
+
let u = options.readUnknownField;
|
|
179
|
+
if (u === "throw")
|
|
180
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
181
|
+
let d = reader.skip(wireType);
|
|
182
|
+
if (u !== false)
|
|
183
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
return message;
|
|
187
|
+
}
|
|
188
|
+
internalBinaryWrite(message, writer, options) {
|
|
189
|
+
/* string key_id = 1; */
|
|
190
|
+
if (message.cert.oneofKind === "keyId")
|
|
191
|
+
writer.tag(1, WireType.LengthDelimited).string(message.cert.keyId);
|
|
192
|
+
/* string signed_cert = 2; */
|
|
193
|
+
if (message.cert.oneofKind === "signedCert")
|
|
194
|
+
writer.tag(2, WireType.LengthDelimited).string(message.cert.signedCert);
|
|
195
|
+
/* replit.goval.api.TokenVersion version = 3; */
|
|
196
|
+
if (message.version !== 0)
|
|
197
|
+
writer.tag(3, WireType.Varint).int32(message.version);
|
|
198
|
+
/* string issuer = 4; */
|
|
199
|
+
if (message.issuer !== "")
|
|
200
|
+
writer.tag(4, WireType.LengthDelimited).string(message.issuer);
|
|
201
|
+
let u = options.writeUnknownFields;
|
|
202
|
+
if (u !== false)
|
|
203
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
204
|
+
return writer;
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
/**
|
|
208
|
+
* @generated MessageType for protobuf message replit.goval.api.GovalSigningAuthority
|
|
209
|
+
*/
|
|
210
|
+
export const GovalSigningAuthority = new GovalSigningAuthority$Type();
|
|
211
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
212
|
+
class CertificateClaim$Type extends MessageType {
|
|
213
|
+
constructor() {
|
|
214
|
+
super("replit.goval.api.CertificateClaim", [
|
|
215
|
+
{ no: 1, name: "replid", kind: "scalar", oneof: "claim", T: 9 /*ScalarType.STRING*/ },
|
|
216
|
+
{ no: 2, name: "user", kind: "scalar", oneof: "claim", T: 9 /*ScalarType.STRING*/ },
|
|
217
|
+
{ no: 7, name: "user_id", kind: "scalar", oneof: "claim", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
218
|
+
{ no: 8, name: "org", kind: "message", oneof: "claim", T: () => Org },
|
|
219
|
+
{ no: 4, name: "cluster", kind: "scalar", oneof: "claim", T: 9 /*ScalarType.STRING*/ },
|
|
220
|
+
{ no: 5, name: "subcluster", kind: "scalar", oneof: "claim", T: 9 /*ScalarType.STRING*/ },
|
|
221
|
+
{ 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] }
|
|
223
|
+
]);
|
|
224
|
+
}
|
|
225
|
+
create(value) {
|
|
226
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
227
|
+
message.claim = { oneofKind: undefined };
|
|
228
|
+
if (value !== undefined)
|
|
229
|
+
reflectionMergePartial(this, message, value);
|
|
230
|
+
return message;
|
|
231
|
+
}
|
|
232
|
+
internalBinaryRead(reader, length, options, target) {
|
|
233
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
234
|
+
while (reader.pos < end) {
|
|
235
|
+
let [fieldNo, wireType] = reader.tag();
|
|
236
|
+
switch (fieldNo) {
|
|
237
|
+
case /* string replid */ 1:
|
|
238
|
+
message.claim = {
|
|
239
|
+
oneofKind: "replid",
|
|
240
|
+
replid: reader.string()
|
|
241
|
+
};
|
|
242
|
+
break;
|
|
243
|
+
case /* string user */ 2:
|
|
244
|
+
message.claim = {
|
|
245
|
+
oneofKind: "user",
|
|
246
|
+
user: reader.string()
|
|
247
|
+
};
|
|
248
|
+
break;
|
|
249
|
+
case /* int64 user_id */ 7:
|
|
250
|
+
message.claim = {
|
|
251
|
+
oneofKind: "userId",
|
|
252
|
+
userId: reader.int64().toBigInt()
|
|
253
|
+
};
|
|
254
|
+
break;
|
|
255
|
+
case /* replit.goval.api.repl.Org org */ 8:
|
|
256
|
+
message.claim = {
|
|
257
|
+
oneofKind: "org",
|
|
258
|
+
org: Org.internalBinaryRead(reader, reader.uint32(), options, message.claim.org)
|
|
259
|
+
};
|
|
260
|
+
break;
|
|
261
|
+
case /* string cluster */ 4:
|
|
262
|
+
message.claim = {
|
|
263
|
+
oneofKind: "cluster",
|
|
264
|
+
cluster: reader.string()
|
|
265
|
+
};
|
|
266
|
+
break;
|
|
267
|
+
case /* string subcluster */ 5:
|
|
268
|
+
message.claim = {
|
|
269
|
+
oneofKind: "subcluster",
|
|
270
|
+
subcluster: reader.string()
|
|
271
|
+
};
|
|
272
|
+
break;
|
|
273
|
+
case /* bool deployment */ 6:
|
|
274
|
+
message.claim = {
|
|
275
|
+
oneofKind: "deployment",
|
|
276
|
+
deployment: reader.bool()
|
|
277
|
+
};
|
|
278
|
+
break;
|
|
279
|
+
case /* replit.goval.api.FlagClaim flag */ 3:
|
|
280
|
+
message.claim = {
|
|
281
|
+
oneofKind: "flag",
|
|
282
|
+
flag: reader.int32()
|
|
283
|
+
};
|
|
284
|
+
break;
|
|
285
|
+
default:
|
|
286
|
+
let u = options.readUnknownField;
|
|
287
|
+
if (u === "throw")
|
|
288
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
289
|
+
let d = reader.skip(wireType);
|
|
290
|
+
if (u !== false)
|
|
291
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
return message;
|
|
295
|
+
}
|
|
296
|
+
internalBinaryWrite(message, writer, options) {
|
|
297
|
+
/* string replid = 1; */
|
|
298
|
+
if (message.claim.oneofKind === "replid")
|
|
299
|
+
writer.tag(1, WireType.LengthDelimited).string(message.claim.replid);
|
|
300
|
+
/* string user = 2; */
|
|
301
|
+
if (message.claim.oneofKind === "user")
|
|
302
|
+
writer.tag(2, WireType.LengthDelimited).string(message.claim.user);
|
|
303
|
+
/* replit.goval.api.FlagClaim flag = 3; */
|
|
304
|
+
if (message.claim.oneofKind === "flag")
|
|
305
|
+
writer.tag(3, WireType.Varint).int32(message.claim.flag);
|
|
306
|
+
/* string cluster = 4; */
|
|
307
|
+
if (message.claim.oneofKind === "cluster")
|
|
308
|
+
writer.tag(4, WireType.LengthDelimited).string(message.claim.cluster);
|
|
309
|
+
/* string subcluster = 5; */
|
|
310
|
+
if (message.claim.oneofKind === "subcluster")
|
|
311
|
+
writer.tag(5, WireType.LengthDelimited).string(message.claim.subcluster);
|
|
312
|
+
/* bool deployment = 6; */
|
|
313
|
+
if (message.claim.oneofKind === "deployment")
|
|
314
|
+
writer.tag(6, WireType.Varint).bool(message.claim.deployment);
|
|
315
|
+
/* int64 user_id = 7; */
|
|
316
|
+
if (message.claim.oneofKind === "userId")
|
|
317
|
+
writer.tag(7, WireType.Varint).int64(message.claim.userId);
|
|
318
|
+
/* replit.goval.api.repl.Org org = 8; */
|
|
319
|
+
if (message.claim.oneofKind === "org")
|
|
320
|
+
Org.internalBinaryWrite(message.claim.org, writer.tag(8, WireType.LengthDelimited).fork(), options).join();
|
|
321
|
+
let u = options.writeUnknownFields;
|
|
322
|
+
if (u !== false)
|
|
323
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
324
|
+
return writer;
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
/**
|
|
328
|
+
* @generated MessageType for protobuf message replit.goval.api.CertificateClaim
|
|
329
|
+
*/
|
|
330
|
+
export const CertificateClaim = new CertificateClaim$Type();
|
|
331
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
332
|
+
class GovalCert$Type extends MessageType {
|
|
333
|
+
constructor() {
|
|
334
|
+
super("replit.goval.api.GovalCert", [
|
|
335
|
+
{ no: 1, name: "iat", kind: "message", T: () => Timestamp },
|
|
336
|
+
{ no: 2, name: "exp", kind: "message", T: () => Timestamp },
|
|
337
|
+
{ no: 3, name: "claims", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => CertificateClaim },
|
|
338
|
+
{ no: 4, name: "publicKey", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
339
|
+
]);
|
|
340
|
+
}
|
|
341
|
+
create(value) {
|
|
342
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
343
|
+
message.claims = [];
|
|
344
|
+
message.publicKey = "";
|
|
345
|
+
if (value !== undefined)
|
|
346
|
+
reflectionMergePartial(this, message, value);
|
|
347
|
+
return message;
|
|
348
|
+
}
|
|
349
|
+
internalBinaryRead(reader, length, options, target) {
|
|
350
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
351
|
+
while (reader.pos < end) {
|
|
352
|
+
let [fieldNo, wireType] = reader.tag();
|
|
353
|
+
switch (fieldNo) {
|
|
354
|
+
case /* google.protobuf.Timestamp iat */ 1:
|
|
355
|
+
message.iat = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.iat);
|
|
356
|
+
break;
|
|
357
|
+
case /* google.protobuf.Timestamp exp */ 2:
|
|
358
|
+
message.exp = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.exp);
|
|
359
|
+
break;
|
|
360
|
+
case /* repeated replit.goval.api.CertificateClaim claims */ 3:
|
|
361
|
+
message.claims.push(CertificateClaim.internalBinaryRead(reader, reader.uint32(), options));
|
|
362
|
+
break;
|
|
363
|
+
case /* string publicKey */ 4:
|
|
364
|
+
message.publicKey = reader.string();
|
|
365
|
+
break;
|
|
366
|
+
default:
|
|
367
|
+
let u = options.readUnknownField;
|
|
368
|
+
if (u === "throw")
|
|
369
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
370
|
+
let d = reader.skip(wireType);
|
|
371
|
+
if (u !== false)
|
|
372
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
return message;
|
|
376
|
+
}
|
|
377
|
+
internalBinaryWrite(message, writer, options) {
|
|
378
|
+
/* google.protobuf.Timestamp iat = 1; */
|
|
379
|
+
if (message.iat)
|
|
380
|
+
Timestamp.internalBinaryWrite(message.iat, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
381
|
+
/* google.protobuf.Timestamp exp = 2; */
|
|
382
|
+
if (message.exp)
|
|
383
|
+
Timestamp.internalBinaryWrite(message.exp, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
384
|
+
/* repeated replit.goval.api.CertificateClaim claims = 3; */
|
|
385
|
+
for (let i = 0; i < message.claims.length; i++)
|
|
386
|
+
CertificateClaim.internalBinaryWrite(message.claims[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
387
|
+
/* string publicKey = 4; */
|
|
388
|
+
if (message.publicKey !== "")
|
|
389
|
+
writer.tag(4, WireType.LengthDelimited).string(message.publicKey);
|
|
390
|
+
let u = options.writeUnknownFields;
|
|
391
|
+
if (u !== false)
|
|
392
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
393
|
+
return writer;
|
|
394
|
+
}
|
|
395
|
+
}
|
|
396
|
+
/**
|
|
397
|
+
* @generated MessageType for protobuf message replit.goval.api.GovalCert
|
|
398
|
+
*/
|
|
399
|
+
export const GovalCert = new GovalCert$Type();
|
|
400
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
401
|
+
class GovalToken$Type extends MessageType {
|
|
402
|
+
constructor() {
|
|
403
|
+
super("replit.goval.api.GovalToken", [
|
|
404
|
+
{ no: 1, name: "iat", kind: "message", T: () => Timestamp },
|
|
405
|
+
{ no: 2, name: "exp", kind: "message", T: () => Timestamp },
|
|
406
|
+
{ no: 3, name: "replid", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
407
|
+
{ no: 4, name: "repl_token", kind: "message", oneof: "token", T: () => ReplToken },
|
|
408
|
+
{ no: 5, name: "repl_identity", kind: "message", oneof: "token", T: () => GovalReplIdentity }
|
|
409
|
+
]);
|
|
410
|
+
}
|
|
411
|
+
create(value) {
|
|
412
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
413
|
+
message.replid = "";
|
|
414
|
+
message.token = { oneofKind: undefined };
|
|
415
|
+
if (value !== undefined)
|
|
416
|
+
reflectionMergePartial(this, message, value);
|
|
417
|
+
return message;
|
|
418
|
+
}
|
|
419
|
+
internalBinaryRead(reader, length, options, target) {
|
|
420
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
421
|
+
while (reader.pos < end) {
|
|
422
|
+
let [fieldNo, wireType] = reader.tag();
|
|
423
|
+
switch (fieldNo) {
|
|
424
|
+
case /* google.protobuf.Timestamp iat */ 1:
|
|
425
|
+
message.iat = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.iat);
|
|
426
|
+
break;
|
|
427
|
+
case /* google.protobuf.Timestamp exp */ 2:
|
|
428
|
+
message.exp = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.exp);
|
|
429
|
+
break;
|
|
430
|
+
case /* string replid */ 3:
|
|
431
|
+
message.replid = reader.string();
|
|
432
|
+
break;
|
|
433
|
+
case /* replit.goval.api.token.ReplToken repl_token */ 4:
|
|
434
|
+
message.token = {
|
|
435
|
+
oneofKind: "replToken",
|
|
436
|
+
replToken: ReplToken.internalBinaryRead(reader, reader.uint32(), options, message.token.replToken)
|
|
437
|
+
};
|
|
438
|
+
break;
|
|
439
|
+
case /* replit.goval.api.GovalReplIdentity repl_identity */ 5:
|
|
440
|
+
message.token = {
|
|
441
|
+
oneofKind: "replIdentity",
|
|
442
|
+
replIdentity: GovalReplIdentity.internalBinaryRead(reader, reader.uint32(), options, message.token.replIdentity)
|
|
443
|
+
};
|
|
444
|
+
break;
|
|
445
|
+
default:
|
|
446
|
+
let u = options.readUnknownField;
|
|
447
|
+
if (u === "throw")
|
|
448
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
449
|
+
let d = reader.skip(wireType);
|
|
450
|
+
if (u !== false)
|
|
451
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
452
|
+
}
|
|
453
|
+
}
|
|
454
|
+
return message;
|
|
455
|
+
}
|
|
456
|
+
internalBinaryWrite(message, writer, options) {
|
|
457
|
+
/* google.protobuf.Timestamp iat = 1; */
|
|
458
|
+
if (message.iat)
|
|
459
|
+
Timestamp.internalBinaryWrite(message.iat, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
460
|
+
/* google.protobuf.Timestamp exp = 2; */
|
|
461
|
+
if (message.exp)
|
|
462
|
+
Timestamp.internalBinaryWrite(message.exp, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
463
|
+
/* string replid = 3; */
|
|
464
|
+
if (message.replid !== "")
|
|
465
|
+
writer.tag(3, WireType.LengthDelimited).string(message.replid);
|
|
466
|
+
/* replit.goval.api.token.ReplToken repl_token = 4; */
|
|
467
|
+
if (message.token.oneofKind === "replToken")
|
|
468
|
+
ReplToken.internalBinaryWrite(message.token.replToken, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
469
|
+
/* replit.goval.api.GovalReplIdentity repl_identity = 5; */
|
|
470
|
+
if (message.token.oneofKind === "replIdentity")
|
|
471
|
+
GovalReplIdentity.internalBinaryWrite(message.token.replIdentity, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
|
472
|
+
let u = options.writeUnknownFields;
|
|
473
|
+
if (u !== false)
|
|
474
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
475
|
+
return writer;
|
|
476
|
+
}
|
|
477
|
+
}
|
|
478
|
+
/**
|
|
479
|
+
* @generated MessageType for protobuf message replit.goval.api.GovalToken
|
|
480
|
+
*/
|
|
481
|
+
export const GovalToken = new GovalToken$Type();
|
|
482
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
483
|
+
class GovalReplIdentity$Type extends MessageType {
|
|
484
|
+
constructor() {
|
|
485
|
+
super("replit.goval.api.GovalReplIdentity", [
|
|
486
|
+
{ no: 1, name: "replid", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
487
|
+
{ no: 2, name: "user", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
488
|
+
{ no: 3, name: "slug", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
489
|
+
{ no: 4, name: "aud", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
490
|
+
{ no: 5, name: "ephemeral", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
491
|
+
{ no: 6, name: "originReplid", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
492
|
+
{ no: 7, name: "user_id", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
493
|
+
{ no: 8, name: "build_info", kind: "message", T: () => BuildInfo },
|
|
494
|
+
{ no: 9, name: "is_team", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
495
|
+
{ no: 10, name: "roles", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
|
496
|
+
{ no: 11, name: "interactive", kind: "message", oneof: "runtime", T: () => ReplRuntimeInteractive },
|
|
497
|
+
{ no: 13, name: "hosting", kind: "message", oneof: "runtime", T: () => ReplRuntimeHosting },
|
|
498
|
+
{ no: 12, name: "deployment", kind: "message", oneof: "runtime", T: () => ReplRuntimeDeployment },
|
|
499
|
+
{ no: 14, name: "org", kind: "message", T: () => Org }
|
|
500
|
+
]);
|
|
501
|
+
}
|
|
502
|
+
create(value) {
|
|
503
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
504
|
+
message.replid = "";
|
|
505
|
+
message.user = "";
|
|
506
|
+
message.slug = "";
|
|
507
|
+
message.aud = "";
|
|
508
|
+
message.ephemeral = false;
|
|
509
|
+
message.originReplid = "";
|
|
510
|
+
message.userId = 0n;
|
|
511
|
+
message.isTeam = false;
|
|
512
|
+
message.roles = [];
|
|
513
|
+
message.runtime = { oneofKind: undefined };
|
|
514
|
+
if (value !== undefined)
|
|
515
|
+
reflectionMergePartial(this, message, value);
|
|
516
|
+
return message;
|
|
517
|
+
}
|
|
518
|
+
internalBinaryRead(reader, length, options, target) {
|
|
519
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
520
|
+
while (reader.pos < end) {
|
|
521
|
+
let [fieldNo, wireType] = reader.tag();
|
|
522
|
+
switch (fieldNo) {
|
|
523
|
+
case /* string replid */ 1:
|
|
524
|
+
message.replid = reader.string();
|
|
525
|
+
break;
|
|
526
|
+
case /* string user */ 2:
|
|
527
|
+
message.user = reader.string();
|
|
528
|
+
break;
|
|
529
|
+
case /* string slug */ 3:
|
|
530
|
+
message.slug = reader.string();
|
|
531
|
+
break;
|
|
532
|
+
case /* string aud */ 4:
|
|
533
|
+
message.aud = reader.string();
|
|
534
|
+
break;
|
|
535
|
+
case /* bool ephemeral */ 5:
|
|
536
|
+
message.ephemeral = reader.bool();
|
|
537
|
+
break;
|
|
538
|
+
case /* string originReplid */ 6:
|
|
539
|
+
message.originReplid = reader.string();
|
|
540
|
+
break;
|
|
541
|
+
case /* int64 user_id */ 7:
|
|
542
|
+
message.userId = reader.int64().toBigInt();
|
|
543
|
+
break;
|
|
544
|
+
case /* replit.goval.api.repl.BuildInfo build_info */ 8:
|
|
545
|
+
message.buildInfo = BuildInfo.internalBinaryRead(reader, reader.uint32(), options, message.buildInfo);
|
|
546
|
+
break;
|
|
547
|
+
case /* bool is_team */ 9:
|
|
548
|
+
message.isTeam = reader.bool();
|
|
549
|
+
break;
|
|
550
|
+
case /* repeated string roles */ 10:
|
|
551
|
+
message.roles.push(reader.string());
|
|
552
|
+
break;
|
|
553
|
+
case /* replit.goval.api.ReplRuntimeInteractive interactive */ 11:
|
|
554
|
+
message.runtime = {
|
|
555
|
+
oneofKind: "interactive",
|
|
556
|
+
interactive: ReplRuntimeInteractive.internalBinaryRead(reader, reader.uint32(), options, message.runtime.interactive)
|
|
557
|
+
};
|
|
558
|
+
break;
|
|
559
|
+
case /* replit.goval.api.ReplRuntimeHosting hosting */ 13:
|
|
560
|
+
message.runtime = {
|
|
561
|
+
oneofKind: "hosting",
|
|
562
|
+
hosting: ReplRuntimeHosting.internalBinaryRead(reader, reader.uint32(), options, message.runtime.hosting)
|
|
563
|
+
};
|
|
564
|
+
break;
|
|
565
|
+
case /* replit.goval.api.ReplRuntimeDeployment deployment */ 12:
|
|
566
|
+
message.runtime = {
|
|
567
|
+
oneofKind: "deployment",
|
|
568
|
+
deployment: ReplRuntimeDeployment.internalBinaryRead(reader, reader.uint32(), options, message.runtime.deployment)
|
|
569
|
+
};
|
|
570
|
+
break;
|
|
571
|
+
case /* replit.goval.api.repl.Org org */ 14:
|
|
572
|
+
message.org = Org.internalBinaryRead(reader, reader.uint32(), options, message.org);
|
|
573
|
+
break;
|
|
574
|
+
default:
|
|
575
|
+
let u = options.readUnknownField;
|
|
576
|
+
if (u === "throw")
|
|
577
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
578
|
+
let d = reader.skip(wireType);
|
|
579
|
+
if (u !== false)
|
|
580
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
581
|
+
}
|
|
582
|
+
}
|
|
583
|
+
return message;
|
|
584
|
+
}
|
|
585
|
+
internalBinaryWrite(message, writer, options) {
|
|
586
|
+
/* string replid = 1; */
|
|
587
|
+
if (message.replid !== "")
|
|
588
|
+
writer.tag(1, WireType.LengthDelimited).string(message.replid);
|
|
589
|
+
/* string user = 2; */
|
|
590
|
+
if (message.user !== "")
|
|
591
|
+
writer.tag(2, WireType.LengthDelimited).string(message.user);
|
|
592
|
+
/* string slug = 3; */
|
|
593
|
+
if (message.slug !== "")
|
|
594
|
+
writer.tag(3, WireType.LengthDelimited).string(message.slug);
|
|
595
|
+
/* string aud = 4; */
|
|
596
|
+
if (message.aud !== "")
|
|
597
|
+
writer.tag(4, WireType.LengthDelimited).string(message.aud);
|
|
598
|
+
/* bool ephemeral = 5; */
|
|
599
|
+
if (message.ephemeral !== false)
|
|
600
|
+
writer.tag(5, WireType.Varint).bool(message.ephemeral);
|
|
601
|
+
/* string originReplid = 6; */
|
|
602
|
+
if (message.originReplid !== "")
|
|
603
|
+
writer.tag(6, WireType.LengthDelimited).string(message.originReplid);
|
|
604
|
+
/* int64 user_id = 7; */
|
|
605
|
+
if (message.userId !== 0n)
|
|
606
|
+
writer.tag(7, WireType.Varint).int64(message.userId);
|
|
607
|
+
/* replit.goval.api.repl.BuildInfo build_info = 8; */
|
|
608
|
+
if (message.buildInfo)
|
|
609
|
+
BuildInfo.internalBinaryWrite(message.buildInfo, writer.tag(8, WireType.LengthDelimited).fork(), options).join();
|
|
610
|
+
/* bool is_team = 9; */
|
|
611
|
+
if (message.isTeam !== false)
|
|
612
|
+
writer.tag(9, WireType.Varint).bool(message.isTeam);
|
|
613
|
+
/* repeated string roles = 10; */
|
|
614
|
+
for (let i = 0; i < message.roles.length; i++)
|
|
615
|
+
writer.tag(10, WireType.LengthDelimited).string(message.roles[i]);
|
|
616
|
+
/* replit.goval.api.ReplRuntimeInteractive interactive = 11; */
|
|
617
|
+
if (message.runtime.oneofKind === "interactive")
|
|
618
|
+
ReplRuntimeInteractive.internalBinaryWrite(message.runtime.interactive, writer.tag(11, WireType.LengthDelimited).fork(), options).join();
|
|
619
|
+
/* replit.goval.api.ReplRuntimeDeployment deployment = 12; */
|
|
620
|
+
if (message.runtime.oneofKind === "deployment")
|
|
621
|
+
ReplRuntimeDeployment.internalBinaryWrite(message.runtime.deployment, writer.tag(12, WireType.LengthDelimited).fork(), options).join();
|
|
622
|
+
/* replit.goval.api.ReplRuntimeHosting hosting = 13; */
|
|
623
|
+
if (message.runtime.oneofKind === "hosting")
|
|
624
|
+
ReplRuntimeHosting.internalBinaryWrite(message.runtime.hosting, writer.tag(13, WireType.LengthDelimited).fork(), options).join();
|
|
625
|
+
/* replit.goval.api.repl.Org org = 14; */
|
|
626
|
+
if (message.org)
|
|
627
|
+
Org.internalBinaryWrite(message.org, writer.tag(14, WireType.LengthDelimited).fork(), options).join();
|
|
628
|
+
let u = options.writeUnknownFields;
|
|
629
|
+
if (u !== false)
|
|
630
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
631
|
+
return writer;
|
|
632
|
+
}
|
|
633
|
+
}
|
|
634
|
+
/**
|
|
635
|
+
* @generated MessageType for protobuf message replit.goval.api.GovalReplIdentity
|
|
636
|
+
*/
|
|
637
|
+
export const GovalReplIdentity = new GovalReplIdentity$Type();
|
|
638
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
639
|
+
class ReplRuntimeInteractive$Type extends MessageType {
|
|
640
|
+
constructor() {
|
|
641
|
+
super("replit.goval.api.ReplRuntimeInteractive", [
|
|
642
|
+
{ no: 1, name: "cluster", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
643
|
+
{ no: 2, name: "subcluster", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
644
|
+
]);
|
|
645
|
+
}
|
|
646
|
+
create(value) {
|
|
647
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
648
|
+
message.cluster = "";
|
|
649
|
+
message.subcluster = "";
|
|
650
|
+
if (value !== undefined)
|
|
651
|
+
reflectionMergePartial(this, message, value);
|
|
652
|
+
return message;
|
|
653
|
+
}
|
|
654
|
+
internalBinaryRead(reader, length, options, target) {
|
|
655
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
656
|
+
while (reader.pos < end) {
|
|
657
|
+
let [fieldNo, wireType] = reader.tag();
|
|
658
|
+
switch (fieldNo) {
|
|
659
|
+
case /* string cluster */ 1:
|
|
660
|
+
message.cluster = reader.string();
|
|
661
|
+
break;
|
|
662
|
+
case /* string subcluster */ 2:
|
|
663
|
+
message.subcluster = reader.string();
|
|
664
|
+
break;
|
|
665
|
+
default:
|
|
666
|
+
let u = options.readUnknownField;
|
|
667
|
+
if (u === "throw")
|
|
668
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
669
|
+
let d = reader.skip(wireType);
|
|
670
|
+
if (u !== false)
|
|
671
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
672
|
+
}
|
|
673
|
+
}
|
|
674
|
+
return message;
|
|
675
|
+
}
|
|
676
|
+
internalBinaryWrite(message, writer, options) {
|
|
677
|
+
/* string cluster = 1; */
|
|
678
|
+
if (message.cluster !== "")
|
|
679
|
+
writer.tag(1, WireType.LengthDelimited).string(message.cluster);
|
|
680
|
+
/* string subcluster = 2; */
|
|
681
|
+
if (message.subcluster !== "")
|
|
682
|
+
writer.tag(2, WireType.LengthDelimited).string(message.subcluster);
|
|
683
|
+
let u = options.writeUnknownFields;
|
|
684
|
+
if (u !== false)
|
|
685
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
686
|
+
return writer;
|
|
687
|
+
}
|
|
688
|
+
}
|
|
689
|
+
/**
|
|
690
|
+
* @generated MessageType for protobuf message replit.goval.api.ReplRuntimeInteractive
|
|
691
|
+
*/
|
|
692
|
+
export const ReplRuntimeInteractive = new ReplRuntimeInteractive$Type();
|
|
693
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
694
|
+
class ReplRuntimeHosting$Type extends MessageType {
|
|
695
|
+
constructor() {
|
|
696
|
+
super("replit.goval.api.ReplRuntimeHosting", [
|
|
697
|
+
{ no: 1, name: "cluster", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
698
|
+
{ no: 2, name: "subcluster", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
699
|
+
]);
|
|
700
|
+
}
|
|
701
|
+
create(value) {
|
|
702
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
703
|
+
message.cluster = "";
|
|
704
|
+
message.subcluster = "";
|
|
705
|
+
if (value !== undefined)
|
|
706
|
+
reflectionMergePartial(this, message, value);
|
|
707
|
+
return message;
|
|
708
|
+
}
|
|
709
|
+
internalBinaryRead(reader, length, options, target) {
|
|
710
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
711
|
+
while (reader.pos < end) {
|
|
712
|
+
let [fieldNo, wireType] = reader.tag();
|
|
713
|
+
switch (fieldNo) {
|
|
714
|
+
case /* string cluster */ 1:
|
|
715
|
+
message.cluster = reader.string();
|
|
716
|
+
break;
|
|
717
|
+
case /* string subcluster */ 2:
|
|
718
|
+
message.subcluster = reader.string();
|
|
719
|
+
break;
|
|
720
|
+
default:
|
|
721
|
+
let u = options.readUnknownField;
|
|
722
|
+
if (u === "throw")
|
|
723
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
724
|
+
let d = reader.skip(wireType);
|
|
725
|
+
if (u !== false)
|
|
726
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
727
|
+
}
|
|
728
|
+
}
|
|
729
|
+
return message;
|
|
730
|
+
}
|
|
731
|
+
internalBinaryWrite(message, writer, options) {
|
|
732
|
+
/* string cluster = 1; */
|
|
733
|
+
if (message.cluster !== "")
|
|
734
|
+
writer.tag(1, WireType.LengthDelimited).string(message.cluster);
|
|
735
|
+
/* string subcluster = 2; */
|
|
736
|
+
if (message.subcluster !== "")
|
|
737
|
+
writer.tag(2, WireType.LengthDelimited).string(message.subcluster);
|
|
738
|
+
let u = options.writeUnknownFields;
|
|
739
|
+
if (u !== false)
|
|
740
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
741
|
+
return writer;
|
|
742
|
+
}
|
|
743
|
+
}
|
|
744
|
+
/**
|
|
745
|
+
* @generated MessageType for protobuf message replit.goval.api.ReplRuntimeHosting
|
|
746
|
+
*/
|
|
747
|
+
export const ReplRuntimeHosting = new ReplRuntimeHosting$Type();
|
|
748
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
749
|
+
class ReplRuntimeDeployment$Type extends MessageType {
|
|
750
|
+
constructor() {
|
|
751
|
+
super("replit.goval.api.ReplRuntimeDeployment", []);
|
|
752
|
+
}
|
|
753
|
+
create(value) {
|
|
754
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
755
|
+
if (value !== undefined)
|
|
756
|
+
reflectionMergePartial(this, message, value);
|
|
757
|
+
return message;
|
|
758
|
+
}
|
|
759
|
+
internalBinaryRead(reader, length, options, target) {
|
|
760
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
761
|
+
while (reader.pos < end) {
|
|
762
|
+
let [fieldNo, wireType] = reader.tag();
|
|
763
|
+
switch (fieldNo) {
|
|
764
|
+
default:
|
|
765
|
+
let u = options.readUnknownField;
|
|
766
|
+
if (u === "throw")
|
|
767
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
768
|
+
let d = reader.skip(wireType);
|
|
769
|
+
if (u !== false)
|
|
770
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
771
|
+
}
|
|
772
|
+
}
|
|
773
|
+
return message;
|
|
774
|
+
}
|
|
775
|
+
internalBinaryWrite(message, writer, options) {
|
|
776
|
+
let u = options.writeUnknownFields;
|
|
777
|
+
if (u !== false)
|
|
778
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
779
|
+
return writer;
|
|
780
|
+
}
|
|
781
|
+
}
|
|
782
|
+
/**
|
|
783
|
+
* @generated MessageType for protobuf message replit.goval.api.ReplRuntimeDeployment
|
|
784
|
+
*/
|
|
785
|
+
export const ReplRuntimeDeployment = new ReplRuntimeDeployment$Type();
|