@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,982 @@
|
|
|
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 { FieldMask } from "../../google/protobuf/field_mask.js";
|
|
6
|
+
import { Metadata } from "../repl/repl.js";
|
|
7
|
+
import { ReplLocation } from "./service.js";
|
|
8
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
9
|
+
class LoreCommand$Type extends MessageType {
|
|
10
|
+
constructor() {
|
|
11
|
+
super("replit.goval.api.lore.LoreCommand", [
|
|
12
|
+
{ no: 1, name: "cluster_transfer", kind: "message", oneof: "command", T: () => ClusterTransfer },
|
|
13
|
+
{ no: 2, name: "soft_takedown", kind: "message", oneof: "command", T: () => SoftTakedown },
|
|
14
|
+
{ no: 6, name: "takedown", kind: "message", oneof: "command", T: () => Takedown },
|
|
15
|
+
{ no: 3, name: "goval_command", kind: "message", oneof: "command", T: () => GovalCommand },
|
|
16
|
+
{ no: 5, name: "multi_goval_command", kind: "message", oneof: "command", T: () => MultiGovalCommand },
|
|
17
|
+
{ no: 4, name: "restore", kind: "message", oneof: "command", T: () => Restore }
|
|
18
|
+
]);
|
|
19
|
+
}
|
|
20
|
+
create(value) {
|
|
21
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
22
|
+
message.command = { oneofKind: undefined };
|
|
23
|
+
if (value !== undefined)
|
|
24
|
+
reflectionMergePartial(this, message, value);
|
|
25
|
+
return message;
|
|
26
|
+
}
|
|
27
|
+
internalBinaryRead(reader, length, options, target) {
|
|
28
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
29
|
+
while (reader.pos < end) {
|
|
30
|
+
let [fieldNo, wireType] = reader.tag();
|
|
31
|
+
switch (fieldNo) {
|
|
32
|
+
case /* replit.goval.api.lore.ClusterTransfer cluster_transfer */ 1:
|
|
33
|
+
message.command = {
|
|
34
|
+
oneofKind: "clusterTransfer",
|
|
35
|
+
clusterTransfer: ClusterTransfer.internalBinaryRead(reader, reader.uint32(), options, message.command.clusterTransfer)
|
|
36
|
+
};
|
|
37
|
+
break;
|
|
38
|
+
case /* replit.goval.api.lore.SoftTakedown soft_takedown */ 2:
|
|
39
|
+
message.command = {
|
|
40
|
+
oneofKind: "softTakedown",
|
|
41
|
+
softTakedown: SoftTakedown.internalBinaryRead(reader, reader.uint32(), options, message.command.softTakedown)
|
|
42
|
+
};
|
|
43
|
+
break;
|
|
44
|
+
case /* replit.goval.api.lore.Takedown takedown */ 6:
|
|
45
|
+
message.command = {
|
|
46
|
+
oneofKind: "takedown",
|
|
47
|
+
takedown: Takedown.internalBinaryRead(reader, reader.uint32(), options, message.command.takedown)
|
|
48
|
+
};
|
|
49
|
+
break;
|
|
50
|
+
case /* replit.goval.api.lore.GovalCommand goval_command */ 3:
|
|
51
|
+
message.command = {
|
|
52
|
+
oneofKind: "govalCommand",
|
|
53
|
+
govalCommand: GovalCommand.internalBinaryRead(reader, reader.uint32(), options, message.command.govalCommand)
|
|
54
|
+
};
|
|
55
|
+
break;
|
|
56
|
+
case /* replit.goval.api.lore.MultiGovalCommand multi_goval_command */ 5:
|
|
57
|
+
message.command = {
|
|
58
|
+
oneofKind: "multiGovalCommand",
|
|
59
|
+
multiGovalCommand: MultiGovalCommand.internalBinaryRead(reader, reader.uint32(), options, message.command.multiGovalCommand)
|
|
60
|
+
};
|
|
61
|
+
break;
|
|
62
|
+
case /* replit.goval.api.lore.Restore restore */ 4:
|
|
63
|
+
message.command = {
|
|
64
|
+
oneofKind: "restore",
|
|
65
|
+
restore: Restore.internalBinaryRead(reader, reader.uint32(), options, message.command.restore)
|
|
66
|
+
};
|
|
67
|
+
break;
|
|
68
|
+
default:
|
|
69
|
+
let u = options.readUnknownField;
|
|
70
|
+
if (u === "throw")
|
|
71
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
72
|
+
let d = reader.skip(wireType);
|
|
73
|
+
if (u !== false)
|
|
74
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
return message;
|
|
78
|
+
}
|
|
79
|
+
internalBinaryWrite(message, writer, options) {
|
|
80
|
+
/* replit.goval.api.lore.ClusterTransfer cluster_transfer = 1; */
|
|
81
|
+
if (message.command.oneofKind === "clusterTransfer")
|
|
82
|
+
ClusterTransfer.internalBinaryWrite(message.command.clusterTransfer, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
83
|
+
/* replit.goval.api.lore.SoftTakedown soft_takedown = 2; */
|
|
84
|
+
if (message.command.oneofKind === "softTakedown")
|
|
85
|
+
SoftTakedown.internalBinaryWrite(message.command.softTakedown, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
86
|
+
/* replit.goval.api.lore.GovalCommand goval_command = 3; */
|
|
87
|
+
if (message.command.oneofKind === "govalCommand")
|
|
88
|
+
GovalCommand.internalBinaryWrite(message.command.govalCommand, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
89
|
+
/* replit.goval.api.lore.Restore restore = 4; */
|
|
90
|
+
if (message.command.oneofKind === "restore")
|
|
91
|
+
Restore.internalBinaryWrite(message.command.restore, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
92
|
+
/* replit.goval.api.lore.MultiGovalCommand multi_goval_command = 5; */
|
|
93
|
+
if (message.command.oneofKind === "multiGovalCommand")
|
|
94
|
+
MultiGovalCommand.internalBinaryWrite(message.command.multiGovalCommand, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
|
95
|
+
/* replit.goval.api.lore.Takedown takedown = 6; */
|
|
96
|
+
if (message.command.oneofKind === "takedown")
|
|
97
|
+
Takedown.internalBinaryWrite(message.command.takedown, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
|
98
|
+
let u = options.writeUnknownFields;
|
|
99
|
+
if (u !== false)
|
|
100
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
101
|
+
return writer;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* @generated MessageType for protobuf message replit.goval.api.lore.LoreCommand
|
|
106
|
+
*/
|
|
107
|
+
export const LoreCommand = new LoreCommand$Type();
|
|
108
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
109
|
+
class ClusterTransfer$Type extends MessageType {
|
|
110
|
+
constructor() {
|
|
111
|
+
super("replit.goval.api.lore.ClusterTransfer", [
|
|
112
|
+
{ no: 1, name: "repl_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
113
|
+
{ no: 2, name: "user", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
114
|
+
{ no: 3, name: "new_cluster_id", kind: "scalar", oneof: "location", T: 9 /*ScalarType.STRING*/ },
|
|
115
|
+
{ no: 5, name: "new_continent_id", kind: "scalar", oneof: "location", T: 9 /*ScalarType.STRING*/ },
|
|
116
|
+
{ no: 6, name: "replLocation", kind: "message", T: () => ReplLocation },
|
|
117
|
+
{ no: 4, name: "transfer_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
118
|
+
]);
|
|
119
|
+
}
|
|
120
|
+
create(value) {
|
|
121
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
122
|
+
message.replId = "";
|
|
123
|
+
message.user = "";
|
|
124
|
+
message.location = { oneofKind: undefined };
|
|
125
|
+
message.transferId = "";
|
|
126
|
+
if (value !== undefined)
|
|
127
|
+
reflectionMergePartial(this, message, value);
|
|
128
|
+
return message;
|
|
129
|
+
}
|
|
130
|
+
internalBinaryRead(reader, length, options, target) {
|
|
131
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
132
|
+
while (reader.pos < end) {
|
|
133
|
+
let [fieldNo, wireType] = reader.tag();
|
|
134
|
+
switch (fieldNo) {
|
|
135
|
+
case /* string repl_id */ 1:
|
|
136
|
+
message.replId = reader.string();
|
|
137
|
+
break;
|
|
138
|
+
case /* string user */ 2:
|
|
139
|
+
message.user = reader.string();
|
|
140
|
+
break;
|
|
141
|
+
case /* string new_cluster_id = 3 [deprecated = true] */ 3:
|
|
142
|
+
message.location = {
|
|
143
|
+
oneofKind: "newClusterId",
|
|
144
|
+
newClusterId: reader.string()
|
|
145
|
+
};
|
|
146
|
+
break;
|
|
147
|
+
case /* string new_continent_id = 5 [deprecated = true] */ 5:
|
|
148
|
+
message.location = {
|
|
149
|
+
oneofKind: "newContinentId",
|
|
150
|
+
newContinentId: reader.string()
|
|
151
|
+
};
|
|
152
|
+
break;
|
|
153
|
+
case /* replit.goval.api.lore.ReplLocation replLocation */ 6:
|
|
154
|
+
message.replLocation = ReplLocation.internalBinaryRead(reader, reader.uint32(), options, message.replLocation);
|
|
155
|
+
break;
|
|
156
|
+
case /* string transfer_id */ 4:
|
|
157
|
+
message.transferId = reader.string();
|
|
158
|
+
break;
|
|
159
|
+
default:
|
|
160
|
+
let u = options.readUnknownField;
|
|
161
|
+
if (u === "throw")
|
|
162
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
163
|
+
let d = reader.skip(wireType);
|
|
164
|
+
if (u !== false)
|
|
165
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
return message;
|
|
169
|
+
}
|
|
170
|
+
internalBinaryWrite(message, writer, options) {
|
|
171
|
+
/* string repl_id = 1; */
|
|
172
|
+
if (message.replId !== "")
|
|
173
|
+
writer.tag(1, WireType.LengthDelimited).string(message.replId);
|
|
174
|
+
/* string user = 2; */
|
|
175
|
+
if (message.user !== "")
|
|
176
|
+
writer.tag(2, WireType.LengthDelimited).string(message.user);
|
|
177
|
+
/* string new_cluster_id = 3 [deprecated = true]; */
|
|
178
|
+
if (message.location.oneofKind === "newClusterId")
|
|
179
|
+
writer.tag(3, WireType.LengthDelimited).string(message.location.newClusterId);
|
|
180
|
+
/* string transfer_id = 4; */
|
|
181
|
+
if (message.transferId !== "")
|
|
182
|
+
writer.tag(4, WireType.LengthDelimited).string(message.transferId);
|
|
183
|
+
/* string new_continent_id = 5 [deprecated = true]; */
|
|
184
|
+
if (message.location.oneofKind === "newContinentId")
|
|
185
|
+
writer.tag(5, WireType.LengthDelimited).string(message.location.newContinentId);
|
|
186
|
+
/* replit.goval.api.lore.ReplLocation replLocation = 6; */
|
|
187
|
+
if (message.replLocation)
|
|
188
|
+
ReplLocation.internalBinaryWrite(message.replLocation, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
|
189
|
+
let u = options.writeUnknownFields;
|
|
190
|
+
if (u !== false)
|
|
191
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
192
|
+
return writer;
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
/**
|
|
196
|
+
* @generated MessageType for protobuf message replit.goval.api.lore.ClusterTransfer
|
|
197
|
+
*/
|
|
198
|
+
export const ClusterTransfer = new ClusterTransfer$Type();
|
|
199
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
200
|
+
class SoftTakedown$Type extends MessageType {
|
|
201
|
+
constructor() {
|
|
202
|
+
super("replit.goval.api.lore.SoftTakedown", [
|
|
203
|
+
{ no: 1, name: "repl_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
204
|
+
{ no: 2, name: "soft_takedown_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
205
|
+
]);
|
|
206
|
+
}
|
|
207
|
+
create(value) {
|
|
208
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
209
|
+
message.replId = "";
|
|
210
|
+
message.softTakedownId = "";
|
|
211
|
+
if (value !== undefined)
|
|
212
|
+
reflectionMergePartial(this, message, value);
|
|
213
|
+
return message;
|
|
214
|
+
}
|
|
215
|
+
internalBinaryRead(reader, length, options, target) {
|
|
216
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
217
|
+
while (reader.pos < end) {
|
|
218
|
+
let [fieldNo, wireType] = reader.tag();
|
|
219
|
+
switch (fieldNo) {
|
|
220
|
+
case /* string repl_id */ 1:
|
|
221
|
+
message.replId = reader.string();
|
|
222
|
+
break;
|
|
223
|
+
case /* string soft_takedown_id */ 2:
|
|
224
|
+
message.softTakedownId = reader.string();
|
|
225
|
+
break;
|
|
226
|
+
default:
|
|
227
|
+
let u = options.readUnknownField;
|
|
228
|
+
if (u === "throw")
|
|
229
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
230
|
+
let d = reader.skip(wireType);
|
|
231
|
+
if (u !== false)
|
|
232
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
return message;
|
|
236
|
+
}
|
|
237
|
+
internalBinaryWrite(message, writer, options) {
|
|
238
|
+
/* string repl_id = 1; */
|
|
239
|
+
if (message.replId !== "")
|
|
240
|
+
writer.tag(1, WireType.LengthDelimited).string(message.replId);
|
|
241
|
+
/* string soft_takedown_id = 2; */
|
|
242
|
+
if (message.softTakedownId !== "")
|
|
243
|
+
writer.tag(2, WireType.LengthDelimited).string(message.softTakedownId);
|
|
244
|
+
let u = options.writeUnknownFields;
|
|
245
|
+
if (u !== false)
|
|
246
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
247
|
+
return writer;
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
/**
|
|
251
|
+
* @generated MessageType for protobuf message replit.goval.api.lore.SoftTakedown
|
|
252
|
+
*/
|
|
253
|
+
export const SoftTakedown = new SoftTakedown$Type();
|
|
254
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
255
|
+
class Takedown$Type extends MessageType {
|
|
256
|
+
constructor() {
|
|
257
|
+
super("replit.goval.api.lore.Takedown", [
|
|
258
|
+
{ no: 1, name: "repl_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
259
|
+
]);
|
|
260
|
+
}
|
|
261
|
+
create(value) {
|
|
262
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
263
|
+
message.replId = "";
|
|
264
|
+
if (value !== undefined)
|
|
265
|
+
reflectionMergePartial(this, message, value);
|
|
266
|
+
return message;
|
|
267
|
+
}
|
|
268
|
+
internalBinaryRead(reader, length, options, target) {
|
|
269
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
270
|
+
while (reader.pos < end) {
|
|
271
|
+
let [fieldNo, wireType] = reader.tag();
|
|
272
|
+
switch (fieldNo) {
|
|
273
|
+
case /* string repl_id */ 1:
|
|
274
|
+
message.replId = reader.string();
|
|
275
|
+
break;
|
|
276
|
+
default:
|
|
277
|
+
let u = options.readUnknownField;
|
|
278
|
+
if (u === "throw")
|
|
279
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
280
|
+
let d = reader.skip(wireType);
|
|
281
|
+
if (u !== false)
|
|
282
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
return message;
|
|
286
|
+
}
|
|
287
|
+
internalBinaryWrite(message, writer, options) {
|
|
288
|
+
/* string repl_id = 1; */
|
|
289
|
+
if (message.replId !== "")
|
|
290
|
+
writer.tag(1, WireType.LengthDelimited).string(message.replId);
|
|
291
|
+
let u = options.writeUnknownFields;
|
|
292
|
+
if (u !== false)
|
|
293
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
294
|
+
return writer;
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
/**
|
|
298
|
+
* @generated MessageType for protobuf message replit.goval.api.lore.Takedown
|
|
299
|
+
*/
|
|
300
|
+
export const Takedown = new Takedown$Type();
|
|
301
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
302
|
+
class StartViktor$Type extends MessageType {
|
|
303
|
+
constructor() {
|
|
304
|
+
super("replit.goval.api.lore.StartViktor", [
|
|
305
|
+
{ no: 1, name: "repl_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
306
|
+
]);
|
|
307
|
+
}
|
|
308
|
+
create(value) {
|
|
309
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
310
|
+
message.replId = "";
|
|
311
|
+
if (value !== undefined)
|
|
312
|
+
reflectionMergePartial(this, message, value);
|
|
313
|
+
return message;
|
|
314
|
+
}
|
|
315
|
+
internalBinaryRead(reader, length, options, target) {
|
|
316
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
317
|
+
while (reader.pos < end) {
|
|
318
|
+
let [fieldNo, wireType] = reader.tag();
|
|
319
|
+
switch (fieldNo) {
|
|
320
|
+
case /* string repl_id */ 1:
|
|
321
|
+
message.replId = reader.string();
|
|
322
|
+
break;
|
|
323
|
+
default:
|
|
324
|
+
let u = options.readUnknownField;
|
|
325
|
+
if (u === "throw")
|
|
326
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
327
|
+
let d = reader.skip(wireType);
|
|
328
|
+
if (u !== false)
|
|
329
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
return message;
|
|
333
|
+
}
|
|
334
|
+
internalBinaryWrite(message, writer, options) {
|
|
335
|
+
/* string repl_id = 1; */
|
|
336
|
+
if (message.replId !== "")
|
|
337
|
+
writer.tag(1, WireType.LengthDelimited).string(message.replId);
|
|
338
|
+
let u = options.writeUnknownFields;
|
|
339
|
+
if (u !== false)
|
|
340
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
341
|
+
return writer;
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
/**
|
|
345
|
+
* @generated MessageType for protobuf message replit.goval.api.lore.StartViktor
|
|
346
|
+
*/
|
|
347
|
+
export const StartViktor = new StartViktor$Type();
|
|
348
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
349
|
+
class GovalCommand$Type extends MessageType {
|
|
350
|
+
constructor() {
|
|
351
|
+
super("replit.goval.api.lore.GovalCommand", [
|
|
352
|
+
{ no: 1, name: "update_metadata", kind: "message", oneof: "command", T: () => Metadata },
|
|
353
|
+
{ no: 2, name: "partial_update_metadata", kind: "message", oneof: "command", T: () => PartialUpdateMetadata },
|
|
354
|
+
{ no: 3, name: "kill_repl", kind: "message", oneof: "command", T: () => KillRepl },
|
|
355
|
+
{ no: 4, name: "update_source_repl", kind: "message", oneof: "command", T: () => UpdateSourceRepl },
|
|
356
|
+
{ no: 5, name: "update_repl_flags", kind: "message", oneof: "command", T: () => UpdateReplFlags },
|
|
357
|
+
{ no: 6, name: "soft_takedown", kind: "message", oneof: "command", T: () => SoftTakedown },
|
|
358
|
+
{ no: 7, name: "takedown", kind: "message", oneof: "command", T: () => Takedown },
|
|
359
|
+
{ no: 9, name: "start_viktor", kind: "message", oneof: "command", T: () => StartViktor },
|
|
360
|
+
{ no: 10, name: "add_token_to_repl_shield_allow_list", kind: "message", oneof: "command", T: () => AddTokenToReplShieldAllowList },
|
|
361
|
+
{ no: 11, name: "revoke_user_repl_shield_tokens", kind: "message", oneof: "command", T: () => RevokeUserReplShieldTokens },
|
|
362
|
+
{ no: 12, name: "set_replit_badge", kind: "message", oneof: "command", T: () => SetReplitBadge }
|
|
363
|
+
]);
|
|
364
|
+
}
|
|
365
|
+
create(value) {
|
|
366
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
367
|
+
message.command = { oneofKind: undefined };
|
|
368
|
+
if (value !== undefined)
|
|
369
|
+
reflectionMergePartial(this, message, value);
|
|
370
|
+
return message;
|
|
371
|
+
}
|
|
372
|
+
internalBinaryRead(reader, length, options, target) {
|
|
373
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
374
|
+
while (reader.pos < end) {
|
|
375
|
+
let [fieldNo, wireType] = reader.tag();
|
|
376
|
+
switch (fieldNo) {
|
|
377
|
+
case /* replit.goval.api.repl.Metadata update_metadata */ 1:
|
|
378
|
+
message.command = {
|
|
379
|
+
oneofKind: "updateMetadata",
|
|
380
|
+
updateMetadata: Metadata.internalBinaryRead(reader, reader.uint32(), options, message.command.updateMetadata)
|
|
381
|
+
};
|
|
382
|
+
break;
|
|
383
|
+
case /* replit.goval.api.lore.PartialUpdateMetadata partial_update_metadata */ 2:
|
|
384
|
+
message.command = {
|
|
385
|
+
oneofKind: "partialUpdateMetadata",
|
|
386
|
+
partialUpdateMetadata: PartialUpdateMetadata.internalBinaryRead(reader, reader.uint32(), options, message.command.partialUpdateMetadata)
|
|
387
|
+
};
|
|
388
|
+
break;
|
|
389
|
+
case /* replit.goval.api.lore.KillRepl kill_repl */ 3:
|
|
390
|
+
message.command = {
|
|
391
|
+
oneofKind: "killRepl",
|
|
392
|
+
killRepl: KillRepl.internalBinaryRead(reader, reader.uint32(), options, message.command.killRepl)
|
|
393
|
+
};
|
|
394
|
+
break;
|
|
395
|
+
case /* replit.goval.api.lore.UpdateSourceRepl update_source_repl */ 4:
|
|
396
|
+
message.command = {
|
|
397
|
+
oneofKind: "updateSourceRepl",
|
|
398
|
+
updateSourceRepl: UpdateSourceRepl.internalBinaryRead(reader, reader.uint32(), options, message.command.updateSourceRepl)
|
|
399
|
+
};
|
|
400
|
+
break;
|
|
401
|
+
case /* replit.goval.api.lore.UpdateReplFlags update_repl_flags = 5 [deprecated = true] */ 5:
|
|
402
|
+
message.command = {
|
|
403
|
+
oneofKind: "updateReplFlags",
|
|
404
|
+
updateReplFlags: UpdateReplFlags.internalBinaryRead(reader, reader.uint32(), options, message.command.updateReplFlags)
|
|
405
|
+
};
|
|
406
|
+
break;
|
|
407
|
+
case /* replit.goval.api.lore.SoftTakedown soft_takedown */ 6:
|
|
408
|
+
message.command = {
|
|
409
|
+
oneofKind: "softTakedown",
|
|
410
|
+
softTakedown: SoftTakedown.internalBinaryRead(reader, reader.uint32(), options, message.command.softTakedown)
|
|
411
|
+
};
|
|
412
|
+
break;
|
|
413
|
+
case /* replit.goval.api.lore.Takedown takedown */ 7:
|
|
414
|
+
message.command = {
|
|
415
|
+
oneofKind: "takedown",
|
|
416
|
+
takedown: Takedown.internalBinaryRead(reader, reader.uint32(), options, message.command.takedown)
|
|
417
|
+
};
|
|
418
|
+
break;
|
|
419
|
+
case /* replit.goval.api.lore.StartViktor start_viktor */ 9:
|
|
420
|
+
message.command = {
|
|
421
|
+
oneofKind: "startViktor",
|
|
422
|
+
startViktor: StartViktor.internalBinaryRead(reader, reader.uint32(), options, message.command.startViktor)
|
|
423
|
+
};
|
|
424
|
+
break;
|
|
425
|
+
case /* replit.goval.api.lore.AddTokenToReplShieldAllowList add_token_to_repl_shield_allow_list */ 10:
|
|
426
|
+
message.command = {
|
|
427
|
+
oneofKind: "addTokenToReplShieldAllowList",
|
|
428
|
+
addTokenToReplShieldAllowList: AddTokenToReplShieldAllowList.internalBinaryRead(reader, reader.uint32(), options, message.command.addTokenToReplShieldAllowList)
|
|
429
|
+
};
|
|
430
|
+
break;
|
|
431
|
+
case /* replit.goval.api.lore.RevokeUserReplShieldTokens revoke_user_repl_shield_tokens */ 11:
|
|
432
|
+
message.command = {
|
|
433
|
+
oneofKind: "revokeUserReplShieldTokens",
|
|
434
|
+
revokeUserReplShieldTokens: RevokeUserReplShieldTokens.internalBinaryRead(reader, reader.uint32(), options, message.command.revokeUserReplShieldTokens)
|
|
435
|
+
};
|
|
436
|
+
break;
|
|
437
|
+
case /* replit.goval.api.lore.SetReplitBadge set_replit_badge */ 12:
|
|
438
|
+
message.command = {
|
|
439
|
+
oneofKind: "setReplitBadge",
|
|
440
|
+
setReplitBadge: SetReplitBadge.internalBinaryRead(reader, reader.uint32(), options, message.command.setReplitBadge)
|
|
441
|
+
};
|
|
442
|
+
break;
|
|
443
|
+
default:
|
|
444
|
+
let u = options.readUnknownField;
|
|
445
|
+
if (u === "throw")
|
|
446
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
447
|
+
let d = reader.skip(wireType);
|
|
448
|
+
if (u !== false)
|
|
449
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
450
|
+
}
|
|
451
|
+
}
|
|
452
|
+
return message;
|
|
453
|
+
}
|
|
454
|
+
internalBinaryWrite(message, writer, options) {
|
|
455
|
+
/* replit.goval.api.repl.Metadata update_metadata = 1; */
|
|
456
|
+
if (message.command.oneofKind === "updateMetadata")
|
|
457
|
+
Metadata.internalBinaryWrite(message.command.updateMetadata, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
458
|
+
/* replit.goval.api.lore.PartialUpdateMetadata partial_update_metadata = 2; */
|
|
459
|
+
if (message.command.oneofKind === "partialUpdateMetadata")
|
|
460
|
+
PartialUpdateMetadata.internalBinaryWrite(message.command.partialUpdateMetadata, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
461
|
+
/* replit.goval.api.lore.KillRepl kill_repl = 3; */
|
|
462
|
+
if (message.command.oneofKind === "killRepl")
|
|
463
|
+
KillRepl.internalBinaryWrite(message.command.killRepl, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
464
|
+
/* replit.goval.api.lore.UpdateSourceRepl update_source_repl = 4; */
|
|
465
|
+
if (message.command.oneofKind === "updateSourceRepl")
|
|
466
|
+
UpdateSourceRepl.internalBinaryWrite(message.command.updateSourceRepl, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
467
|
+
/* replit.goval.api.lore.UpdateReplFlags update_repl_flags = 5 [deprecated = true]; */
|
|
468
|
+
if (message.command.oneofKind === "updateReplFlags")
|
|
469
|
+
UpdateReplFlags.internalBinaryWrite(message.command.updateReplFlags, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
|
470
|
+
/* replit.goval.api.lore.SoftTakedown soft_takedown = 6; */
|
|
471
|
+
if (message.command.oneofKind === "softTakedown")
|
|
472
|
+
SoftTakedown.internalBinaryWrite(message.command.softTakedown, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
|
473
|
+
/* replit.goval.api.lore.Takedown takedown = 7; */
|
|
474
|
+
if (message.command.oneofKind === "takedown")
|
|
475
|
+
Takedown.internalBinaryWrite(message.command.takedown, writer.tag(7, WireType.LengthDelimited).fork(), options).join();
|
|
476
|
+
/* replit.goval.api.lore.StartViktor start_viktor = 9; */
|
|
477
|
+
if (message.command.oneofKind === "startViktor")
|
|
478
|
+
StartViktor.internalBinaryWrite(message.command.startViktor, writer.tag(9, WireType.LengthDelimited).fork(), options).join();
|
|
479
|
+
/* replit.goval.api.lore.AddTokenToReplShieldAllowList add_token_to_repl_shield_allow_list = 10; */
|
|
480
|
+
if (message.command.oneofKind === "addTokenToReplShieldAllowList")
|
|
481
|
+
AddTokenToReplShieldAllowList.internalBinaryWrite(message.command.addTokenToReplShieldAllowList, writer.tag(10, WireType.LengthDelimited).fork(), options).join();
|
|
482
|
+
/* replit.goval.api.lore.RevokeUserReplShieldTokens revoke_user_repl_shield_tokens = 11; */
|
|
483
|
+
if (message.command.oneofKind === "revokeUserReplShieldTokens")
|
|
484
|
+
RevokeUserReplShieldTokens.internalBinaryWrite(message.command.revokeUserReplShieldTokens, writer.tag(11, WireType.LengthDelimited).fork(), options).join();
|
|
485
|
+
/* replit.goval.api.lore.SetReplitBadge set_replit_badge = 12; */
|
|
486
|
+
if (message.command.oneofKind === "setReplitBadge")
|
|
487
|
+
SetReplitBadge.internalBinaryWrite(message.command.setReplitBadge, writer.tag(12, WireType.LengthDelimited).fork(), options).join();
|
|
488
|
+
let u = options.writeUnknownFields;
|
|
489
|
+
if (u !== false)
|
|
490
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
491
|
+
return writer;
|
|
492
|
+
}
|
|
493
|
+
}
|
|
494
|
+
/**
|
|
495
|
+
* @generated MessageType for protobuf message replit.goval.api.lore.GovalCommand
|
|
496
|
+
*/
|
|
497
|
+
export const GovalCommand = new GovalCommand$Type();
|
|
498
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
499
|
+
class PartialUpdateMetadata$Type extends MessageType {
|
|
500
|
+
constructor() {
|
|
501
|
+
super("replit.goval.api.lore.PartialUpdateMetadata", [
|
|
502
|
+
{ no: 1, name: "field_mask", kind: "message", T: () => FieldMask },
|
|
503
|
+
{ no: 2, name: "update_metadata", kind: "message", T: () => Metadata }
|
|
504
|
+
]);
|
|
505
|
+
}
|
|
506
|
+
create(value) {
|
|
507
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
508
|
+
if (value !== undefined)
|
|
509
|
+
reflectionMergePartial(this, message, value);
|
|
510
|
+
return message;
|
|
511
|
+
}
|
|
512
|
+
internalBinaryRead(reader, length, options, target) {
|
|
513
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
514
|
+
while (reader.pos < end) {
|
|
515
|
+
let [fieldNo, wireType] = reader.tag();
|
|
516
|
+
switch (fieldNo) {
|
|
517
|
+
case /* google.protobuf.FieldMask field_mask */ 1:
|
|
518
|
+
message.fieldMask = FieldMask.internalBinaryRead(reader, reader.uint32(), options, message.fieldMask);
|
|
519
|
+
break;
|
|
520
|
+
case /* replit.goval.api.repl.Metadata update_metadata */ 2:
|
|
521
|
+
message.updateMetadata = Metadata.internalBinaryRead(reader, reader.uint32(), options, message.updateMetadata);
|
|
522
|
+
break;
|
|
523
|
+
default:
|
|
524
|
+
let u = options.readUnknownField;
|
|
525
|
+
if (u === "throw")
|
|
526
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
527
|
+
let d = reader.skip(wireType);
|
|
528
|
+
if (u !== false)
|
|
529
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
530
|
+
}
|
|
531
|
+
}
|
|
532
|
+
return message;
|
|
533
|
+
}
|
|
534
|
+
internalBinaryWrite(message, writer, options) {
|
|
535
|
+
/* google.protobuf.FieldMask field_mask = 1; */
|
|
536
|
+
if (message.fieldMask)
|
|
537
|
+
FieldMask.internalBinaryWrite(message.fieldMask, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
538
|
+
/* replit.goval.api.repl.Metadata update_metadata = 2; */
|
|
539
|
+
if (message.updateMetadata)
|
|
540
|
+
Metadata.internalBinaryWrite(message.updateMetadata, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
541
|
+
let u = options.writeUnknownFields;
|
|
542
|
+
if (u !== false)
|
|
543
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
544
|
+
return writer;
|
|
545
|
+
}
|
|
546
|
+
}
|
|
547
|
+
/**
|
|
548
|
+
* @generated MessageType for protobuf message replit.goval.api.lore.PartialUpdateMetadata
|
|
549
|
+
*/
|
|
550
|
+
export const PartialUpdateMetadata = new PartialUpdateMetadata$Type();
|
|
551
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
552
|
+
class MultiGovalCommand$Type extends MessageType {
|
|
553
|
+
constructor() {
|
|
554
|
+
super("replit.goval.api.lore.MultiGovalCommand", [
|
|
555
|
+
{ no: 1, name: "repl_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
556
|
+
{ no: 2, name: "goval_commands", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => GovalCommand }
|
|
557
|
+
]);
|
|
558
|
+
}
|
|
559
|
+
create(value) {
|
|
560
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
561
|
+
message.replId = "";
|
|
562
|
+
message.govalCommands = [];
|
|
563
|
+
if (value !== undefined)
|
|
564
|
+
reflectionMergePartial(this, message, value);
|
|
565
|
+
return message;
|
|
566
|
+
}
|
|
567
|
+
internalBinaryRead(reader, length, options, target) {
|
|
568
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
569
|
+
while (reader.pos < end) {
|
|
570
|
+
let [fieldNo, wireType] = reader.tag();
|
|
571
|
+
switch (fieldNo) {
|
|
572
|
+
case /* string repl_id */ 1:
|
|
573
|
+
message.replId = reader.string();
|
|
574
|
+
break;
|
|
575
|
+
case /* repeated replit.goval.api.lore.GovalCommand goval_commands */ 2:
|
|
576
|
+
message.govalCommands.push(GovalCommand.internalBinaryRead(reader, reader.uint32(), options));
|
|
577
|
+
break;
|
|
578
|
+
default:
|
|
579
|
+
let u = options.readUnknownField;
|
|
580
|
+
if (u === "throw")
|
|
581
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
582
|
+
let d = reader.skip(wireType);
|
|
583
|
+
if (u !== false)
|
|
584
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
585
|
+
}
|
|
586
|
+
}
|
|
587
|
+
return message;
|
|
588
|
+
}
|
|
589
|
+
internalBinaryWrite(message, writer, options) {
|
|
590
|
+
/* string repl_id = 1; */
|
|
591
|
+
if (message.replId !== "")
|
|
592
|
+
writer.tag(1, WireType.LengthDelimited).string(message.replId);
|
|
593
|
+
/* repeated replit.goval.api.lore.GovalCommand goval_commands = 2; */
|
|
594
|
+
for (let i = 0; i < message.govalCommands.length; i++)
|
|
595
|
+
GovalCommand.internalBinaryWrite(message.govalCommands[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
596
|
+
let u = options.writeUnknownFields;
|
|
597
|
+
if (u !== false)
|
|
598
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
599
|
+
return writer;
|
|
600
|
+
}
|
|
601
|
+
}
|
|
602
|
+
/**
|
|
603
|
+
* @generated MessageType for protobuf message replit.goval.api.lore.MultiGovalCommand
|
|
604
|
+
*/
|
|
605
|
+
export const MultiGovalCommand = new MultiGovalCommand$Type();
|
|
606
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
607
|
+
class KillRepl$Type extends MessageType {
|
|
608
|
+
constructor() {
|
|
609
|
+
super("replit.goval.api.lore.KillRepl", [
|
|
610
|
+
{ no: 1, name: "repl_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
611
|
+
]);
|
|
612
|
+
}
|
|
613
|
+
create(value) {
|
|
614
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
615
|
+
message.replId = "";
|
|
616
|
+
if (value !== undefined)
|
|
617
|
+
reflectionMergePartial(this, message, value);
|
|
618
|
+
return message;
|
|
619
|
+
}
|
|
620
|
+
internalBinaryRead(reader, length, options, target) {
|
|
621
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
622
|
+
while (reader.pos < end) {
|
|
623
|
+
let [fieldNo, wireType] = reader.tag();
|
|
624
|
+
switch (fieldNo) {
|
|
625
|
+
case /* string repl_id */ 1:
|
|
626
|
+
message.replId = reader.string();
|
|
627
|
+
break;
|
|
628
|
+
default:
|
|
629
|
+
let u = options.readUnknownField;
|
|
630
|
+
if (u === "throw")
|
|
631
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
632
|
+
let d = reader.skip(wireType);
|
|
633
|
+
if (u !== false)
|
|
634
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
635
|
+
}
|
|
636
|
+
}
|
|
637
|
+
return message;
|
|
638
|
+
}
|
|
639
|
+
internalBinaryWrite(message, writer, options) {
|
|
640
|
+
/* string repl_id = 1; */
|
|
641
|
+
if (message.replId !== "")
|
|
642
|
+
writer.tag(1, WireType.LengthDelimited).string(message.replId);
|
|
643
|
+
let u = options.writeUnknownFields;
|
|
644
|
+
if (u !== false)
|
|
645
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
646
|
+
return writer;
|
|
647
|
+
}
|
|
648
|
+
}
|
|
649
|
+
/**
|
|
650
|
+
* @generated MessageType for protobuf message replit.goval.api.lore.KillRepl
|
|
651
|
+
*/
|
|
652
|
+
export const KillRepl = new KillRepl$Type();
|
|
653
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
654
|
+
class Restore$Type extends MessageType {
|
|
655
|
+
constructor() {
|
|
656
|
+
super("replit.goval.api.lore.Restore", [
|
|
657
|
+
{ no: 1, name: "repl_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
658
|
+
]);
|
|
659
|
+
}
|
|
660
|
+
create(value) {
|
|
661
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
662
|
+
message.replId = "";
|
|
663
|
+
if (value !== undefined)
|
|
664
|
+
reflectionMergePartial(this, message, value);
|
|
665
|
+
return message;
|
|
666
|
+
}
|
|
667
|
+
internalBinaryRead(reader, length, options, target) {
|
|
668
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
669
|
+
while (reader.pos < end) {
|
|
670
|
+
let [fieldNo, wireType] = reader.tag();
|
|
671
|
+
switch (fieldNo) {
|
|
672
|
+
case /* string repl_id */ 1:
|
|
673
|
+
message.replId = reader.string();
|
|
674
|
+
break;
|
|
675
|
+
default:
|
|
676
|
+
let u = options.readUnknownField;
|
|
677
|
+
if (u === "throw")
|
|
678
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
679
|
+
let d = reader.skip(wireType);
|
|
680
|
+
if (u !== false)
|
|
681
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
682
|
+
}
|
|
683
|
+
}
|
|
684
|
+
return message;
|
|
685
|
+
}
|
|
686
|
+
internalBinaryWrite(message, writer, options) {
|
|
687
|
+
/* string repl_id = 1; */
|
|
688
|
+
if (message.replId !== "")
|
|
689
|
+
writer.tag(1, WireType.LengthDelimited).string(message.replId);
|
|
690
|
+
let u = options.writeUnknownFields;
|
|
691
|
+
if (u !== false)
|
|
692
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
693
|
+
return writer;
|
|
694
|
+
}
|
|
695
|
+
}
|
|
696
|
+
/**
|
|
697
|
+
* @generated MessageType for protobuf message replit.goval.api.lore.Restore
|
|
698
|
+
*/
|
|
699
|
+
export const Restore = new Restore$Type();
|
|
700
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
701
|
+
class UpdateSourceRepl$Type extends MessageType {
|
|
702
|
+
constructor() {
|
|
703
|
+
super("replit.goval.api.lore.UpdateSourceRepl", [
|
|
704
|
+
{ no: 1, name: "repl_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
705
|
+
{ no: 2, name: "source_repl_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
706
|
+
]);
|
|
707
|
+
}
|
|
708
|
+
create(value) {
|
|
709
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
710
|
+
message.replId = "";
|
|
711
|
+
message.sourceReplId = "";
|
|
712
|
+
if (value !== undefined)
|
|
713
|
+
reflectionMergePartial(this, message, value);
|
|
714
|
+
return message;
|
|
715
|
+
}
|
|
716
|
+
internalBinaryRead(reader, length, options, target) {
|
|
717
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
718
|
+
while (reader.pos < end) {
|
|
719
|
+
let [fieldNo, wireType] = reader.tag();
|
|
720
|
+
switch (fieldNo) {
|
|
721
|
+
case /* string repl_id */ 1:
|
|
722
|
+
message.replId = reader.string();
|
|
723
|
+
break;
|
|
724
|
+
case /* string source_repl_id */ 2:
|
|
725
|
+
message.sourceReplId = reader.string();
|
|
726
|
+
break;
|
|
727
|
+
default:
|
|
728
|
+
let u = options.readUnknownField;
|
|
729
|
+
if (u === "throw")
|
|
730
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
731
|
+
let d = reader.skip(wireType);
|
|
732
|
+
if (u !== false)
|
|
733
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
734
|
+
}
|
|
735
|
+
}
|
|
736
|
+
return message;
|
|
737
|
+
}
|
|
738
|
+
internalBinaryWrite(message, writer, options) {
|
|
739
|
+
/* string repl_id = 1; */
|
|
740
|
+
if (message.replId !== "")
|
|
741
|
+
writer.tag(1, WireType.LengthDelimited).string(message.replId);
|
|
742
|
+
/* string source_repl_id = 2; */
|
|
743
|
+
if (message.sourceReplId !== "")
|
|
744
|
+
writer.tag(2, WireType.LengthDelimited).string(message.sourceReplId);
|
|
745
|
+
let u = options.writeUnknownFields;
|
|
746
|
+
if (u !== false)
|
|
747
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
748
|
+
return writer;
|
|
749
|
+
}
|
|
750
|
+
}
|
|
751
|
+
/**
|
|
752
|
+
* @generated MessageType for protobuf message replit.goval.api.lore.UpdateSourceRepl
|
|
753
|
+
*/
|
|
754
|
+
export const UpdateSourceRepl = new UpdateSourceRepl$Type();
|
|
755
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
756
|
+
class UpdateReplFlags$Type extends MessageType {
|
|
757
|
+
constructor() {
|
|
758
|
+
super("replit.goval.api.lore.UpdateReplFlags", [
|
|
759
|
+
{ no: 1, name: "repl_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
760
|
+
{ no: 2, name: "flags", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }
|
|
761
|
+
]);
|
|
762
|
+
}
|
|
763
|
+
create(value) {
|
|
764
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
765
|
+
message.replId = "";
|
|
766
|
+
message.flags = [];
|
|
767
|
+
if (value !== undefined)
|
|
768
|
+
reflectionMergePartial(this, message, value);
|
|
769
|
+
return message;
|
|
770
|
+
}
|
|
771
|
+
internalBinaryRead(reader, length, options, target) {
|
|
772
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
773
|
+
while (reader.pos < end) {
|
|
774
|
+
let [fieldNo, wireType] = reader.tag();
|
|
775
|
+
switch (fieldNo) {
|
|
776
|
+
case /* string repl_id */ 1:
|
|
777
|
+
message.replId = reader.string();
|
|
778
|
+
break;
|
|
779
|
+
case /* repeated string flags */ 2:
|
|
780
|
+
message.flags.push(reader.string());
|
|
781
|
+
break;
|
|
782
|
+
default:
|
|
783
|
+
let u = options.readUnknownField;
|
|
784
|
+
if (u === "throw")
|
|
785
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
786
|
+
let d = reader.skip(wireType);
|
|
787
|
+
if (u !== false)
|
|
788
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
789
|
+
}
|
|
790
|
+
}
|
|
791
|
+
return message;
|
|
792
|
+
}
|
|
793
|
+
internalBinaryWrite(message, writer, options) {
|
|
794
|
+
/* string repl_id = 1; */
|
|
795
|
+
if (message.replId !== "")
|
|
796
|
+
writer.tag(1, WireType.LengthDelimited).string(message.replId);
|
|
797
|
+
/* repeated string flags = 2; */
|
|
798
|
+
for (let i = 0; i < message.flags.length; i++)
|
|
799
|
+
writer.tag(2, WireType.LengthDelimited).string(message.flags[i]);
|
|
800
|
+
let u = options.writeUnknownFields;
|
|
801
|
+
if (u !== false)
|
|
802
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
803
|
+
return writer;
|
|
804
|
+
}
|
|
805
|
+
}
|
|
806
|
+
/**
|
|
807
|
+
* @generated MessageType for protobuf message replit.goval.api.lore.UpdateReplFlags
|
|
808
|
+
*/
|
|
809
|
+
export const UpdateReplFlags = new UpdateReplFlags$Type();
|
|
810
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
811
|
+
class AddTokenToReplShieldAllowList$Type extends MessageType {
|
|
812
|
+
constructor() {
|
|
813
|
+
super("replit.goval.api.lore.AddTokenToReplShieldAllowList", [
|
|
814
|
+
{ no: 1, name: "repl_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
815
|
+
{ no: 2, name: "token", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
816
|
+
]);
|
|
817
|
+
}
|
|
818
|
+
create(value) {
|
|
819
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
820
|
+
message.replId = "";
|
|
821
|
+
message.token = "";
|
|
822
|
+
if (value !== undefined)
|
|
823
|
+
reflectionMergePartial(this, message, value);
|
|
824
|
+
return message;
|
|
825
|
+
}
|
|
826
|
+
internalBinaryRead(reader, length, options, target) {
|
|
827
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
828
|
+
while (reader.pos < end) {
|
|
829
|
+
let [fieldNo, wireType] = reader.tag();
|
|
830
|
+
switch (fieldNo) {
|
|
831
|
+
case /* string repl_id */ 1:
|
|
832
|
+
message.replId = reader.string();
|
|
833
|
+
break;
|
|
834
|
+
case /* string token */ 2:
|
|
835
|
+
message.token = reader.string();
|
|
836
|
+
break;
|
|
837
|
+
default:
|
|
838
|
+
let u = options.readUnknownField;
|
|
839
|
+
if (u === "throw")
|
|
840
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
841
|
+
let d = reader.skip(wireType);
|
|
842
|
+
if (u !== false)
|
|
843
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
844
|
+
}
|
|
845
|
+
}
|
|
846
|
+
return message;
|
|
847
|
+
}
|
|
848
|
+
internalBinaryWrite(message, writer, options) {
|
|
849
|
+
/* string repl_id = 1; */
|
|
850
|
+
if (message.replId !== "")
|
|
851
|
+
writer.tag(1, WireType.LengthDelimited).string(message.replId);
|
|
852
|
+
/* string token = 2; */
|
|
853
|
+
if (message.token !== "")
|
|
854
|
+
writer.tag(2, WireType.LengthDelimited).string(message.token);
|
|
855
|
+
let u = options.writeUnknownFields;
|
|
856
|
+
if (u !== false)
|
|
857
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
858
|
+
return writer;
|
|
859
|
+
}
|
|
860
|
+
}
|
|
861
|
+
/**
|
|
862
|
+
* @generated MessageType for protobuf message replit.goval.api.lore.AddTokenToReplShieldAllowList
|
|
863
|
+
*/
|
|
864
|
+
export const AddTokenToReplShieldAllowList = new AddTokenToReplShieldAllowList$Type();
|
|
865
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
866
|
+
class RevokeUserReplShieldTokens$Type extends MessageType {
|
|
867
|
+
constructor() {
|
|
868
|
+
super("replit.goval.api.lore.RevokeUserReplShieldTokens", [
|
|
869
|
+
{ no: 1, name: "user_id", kind: "scalar", T: 13 /*ScalarType.UINT32*/ },
|
|
870
|
+
{ no: 2, name: "token", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
871
|
+
]);
|
|
872
|
+
}
|
|
873
|
+
create(value) {
|
|
874
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
875
|
+
message.userId = 0;
|
|
876
|
+
message.token = "";
|
|
877
|
+
if (value !== undefined)
|
|
878
|
+
reflectionMergePartial(this, message, value);
|
|
879
|
+
return message;
|
|
880
|
+
}
|
|
881
|
+
internalBinaryRead(reader, length, options, target) {
|
|
882
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
883
|
+
while (reader.pos < end) {
|
|
884
|
+
let [fieldNo, wireType] = reader.tag();
|
|
885
|
+
switch (fieldNo) {
|
|
886
|
+
case /* uint32 user_id */ 1:
|
|
887
|
+
message.userId = reader.uint32();
|
|
888
|
+
break;
|
|
889
|
+
case /* string token */ 2:
|
|
890
|
+
message.token = reader.string();
|
|
891
|
+
break;
|
|
892
|
+
default:
|
|
893
|
+
let u = options.readUnknownField;
|
|
894
|
+
if (u === "throw")
|
|
895
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
896
|
+
let d = reader.skip(wireType);
|
|
897
|
+
if (u !== false)
|
|
898
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
899
|
+
}
|
|
900
|
+
}
|
|
901
|
+
return message;
|
|
902
|
+
}
|
|
903
|
+
internalBinaryWrite(message, writer, options) {
|
|
904
|
+
/* uint32 user_id = 1; */
|
|
905
|
+
if (message.userId !== 0)
|
|
906
|
+
writer.tag(1, WireType.Varint).uint32(message.userId);
|
|
907
|
+
/* string token = 2; */
|
|
908
|
+
if (message.token !== "")
|
|
909
|
+
writer.tag(2, WireType.LengthDelimited).string(message.token);
|
|
910
|
+
let u = options.writeUnknownFields;
|
|
911
|
+
if (u !== false)
|
|
912
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
913
|
+
return writer;
|
|
914
|
+
}
|
|
915
|
+
}
|
|
916
|
+
/**
|
|
917
|
+
* @generated MessageType for protobuf message replit.goval.api.lore.RevokeUserReplShieldTokens
|
|
918
|
+
*/
|
|
919
|
+
export const RevokeUserReplShieldTokens = new RevokeUserReplShieldTokens$Type();
|
|
920
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
921
|
+
class SetReplitBadge$Type extends MessageType {
|
|
922
|
+
constructor() {
|
|
923
|
+
super("replit.goval.api.lore.SetReplitBadge", [
|
|
924
|
+
{ no: 1, name: "repl_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
925
|
+
{ no: 2, name: "enable", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
926
|
+
{ no: 3, name: "referral_code", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
927
|
+
]);
|
|
928
|
+
}
|
|
929
|
+
create(value) {
|
|
930
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
931
|
+
message.replId = "";
|
|
932
|
+
message.enable = false;
|
|
933
|
+
message.referralCode = "";
|
|
934
|
+
if (value !== undefined)
|
|
935
|
+
reflectionMergePartial(this, message, value);
|
|
936
|
+
return message;
|
|
937
|
+
}
|
|
938
|
+
internalBinaryRead(reader, length, options, target) {
|
|
939
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
940
|
+
while (reader.pos < end) {
|
|
941
|
+
let [fieldNo, wireType] = reader.tag();
|
|
942
|
+
switch (fieldNo) {
|
|
943
|
+
case /* string repl_id */ 1:
|
|
944
|
+
message.replId = reader.string();
|
|
945
|
+
break;
|
|
946
|
+
case /* bool enable */ 2:
|
|
947
|
+
message.enable = reader.bool();
|
|
948
|
+
break;
|
|
949
|
+
case /* string referral_code */ 3:
|
|
950
|
+
message.referralCode = reader.string();
|
|
951
|
+
break;
|
|
952
|
+
default:
|
|
953
|
+
let u = options.readUnknownField;
|
|
954
|
+
if (u === "throw")
|
|
955
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
956
|
+
let d = reader.skip(wireType);
|
|
957
|
+
if (u !== false)
|
|
958
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
959
|
+
}
|
|
960
|
+
}
|
|
961
|
+
return message;
|
|
962
|
+
}
|
|
963
|
+
internalBinaryWrite(message, writer, options) {
|
|
964
|
+
/* string repl_id = 1; */
|
|
965
|
+
if (message.replId !== "")
|
|
966
|
+
writer.tag(1, WireType.LengthDelimited).string(message.replId);
|
|
967
|
+
/* bool enable = 2; */
|
|
968
|
+
if (message.enable !== false)
|
|
969
|
+
writer.tag(2, WireType.Varint).bool(message.enable);
|
|
970
|
+
/* string referral_code = 3; */
|
|
971
|
+
if (message.referralCode !== "")
|
|
972
|
+
writer.tag(3, WireType.LengthDelimited).string(message.referralCode);
|
|
973
|
+
let u = options.writeUnknownFields;
|
|
974
|
+
if (u !== false)
|
|
975
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
976
|
+
return writer;
|
|
977
|
+
}
|
|
978
|
+
}
|
|
979
|
+
/**
|
|
980
|
+
* @generated MessageType for protobuf message replit.goval.api.lore.SetReplitBadge
|
|
981
|
+
*/
|
|
982
|
+
export const SetReplitBadge = new SetReplitBadge$Type();
|