@chaty-app/proto 0.1.63 → 0.1.65
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/dist/node/service/v1/channels.d.ts +17 -0
- package/dist/node/service/v1/channels.d.ts.map +1 -1
- package/dist/node/service/v1/channels.js +153 -0
- package/dist/node/service/v1/channels.js.map +1 -1
- package/dist/node/service/v1/config.d.ts +102 -0
- package/dist/node/service/v1/config.d.ts.map +1 -0
- package/dist/node/service/v1/config.js +702 -0
- package/dist/node/service/v1/config.js.map +1 -0
- package/dist/node/service/v1/index.d.ts +1 -0
- package/dist/node/service/v1/index.d.ts.map +1 -1
- package/dist/node/service/v1/index.js +1 -0
- package/dist/node/service/v1/index.js.map +1 -1
- package/dist/web/service/v1/channels_pb.d.ts +52 -0
- package/dist/web/service/v1/channels_pb.d.ts.map +1 -1
- package/dist/web/service/v1/channels_pb.js +13 -3
- package/dist/web/service/v1/channels_pb.js.map +1 -1
- package/dist/web/service/v1/config_pb.d.ts +249 -0
- package/dist/web/service/v1/config_pb.d.ts.map +1 -0
- package/dist/web/service/v1/config_pb.js +44 -0
- package/dist/web/service/v1/config_pb.js.map +1 -0
- package/dist/web/service/v1/index.d.ts +1 -0
- package/dist/web/service/v1/index.d.ts.map +1 -1
- package/dist/web/service/v1/index.js +1 -0
- package/dist/web/service/v1/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,702 @@
|
|
|
1
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
|
+
// versions:
|
|
3
|
+
// protoc-gen-ts_proto v2.10.0
|
|
4
|
+
// protoc unknown
|
|
5
|
+
// source: service/v1/config.proto
|
|
6
|
+
/* eslint-disable */
|
|
7
|
+
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
8
|
+
export const protobufPackage = "service.v1";
|
|
9
|
+
function createBaseChatyConfig() {
|
|
10
|
+
return { chatyVersion: "", features: undefined, ws: "", app: "", vapid: "", build: undefined };
|
|
11
|
+
}
|
|
12
|
+
export const ChatyConfig = {
|
|
13
|
+
encode(message, writer = new BinaryWriter()) {
|
|
14
|
+
if (message.chatyVersion !== "") {
|
|
15
|
+
writer.uint32(10).string(message.chatyVersion);
|
|
16
|
+
}
|
|
17
|
+
if (message.features !== undefined) {
|
|
18
|
+
ChatyFeatures.encode(message.features, writer.uint32(18).fork()).join();
|
|
19
|
+
}
|
|
20
|
+
if (message.ws !== "") {
|
|
21
|
+
writer.uint32(26).string(message.ws);
|
|
22
|
+
}
|
|
23
|
+
if (message.app !== "") {
|
|
24
|
+
writer.uint32(34).string(message.app);
|
|
25
|
+
}
|
|
26
|
+
if (message.vapid !== "") {
|
|
27
|
+
writer.uint32(42).string(message.vapid);
|
|
28
|
+
}
|
|
29
|
+
if (message.build !== undefined) {
|
|
30
|
+
BuildInformation.encode(message.build, writer.uint32(50).fork()).join();
|
|
31
|
+
}
|
|
32
|
+
return writer;
|
|
33
|
+
},
|
|
34
|
+
decode(input, length) {
|
|
35
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
36
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
37
|
+
const message = createBaseChatyConfig();
|
|
38
|
+
while (reader.pos < end) {
|
|
39
|
+
const tag = reader.uint32();
|
|
40
|
+
switch (tag >>> 3) {
|
|
41
|
+
case 1: {
|
|
42
|
+
if (tag !== 10) {
|
|
43
|
+
break;
|
|
44
|
+
}
|
|
45
|
+
message.chatyVersion = reader.string();
|
|
46
|
+
continue;
|
|
47
|
+
}
|
|
48
|
+
case 2: {
|
|
49
|
+
if (tag !== 18) {
|
|
50
|
+
break;
|
|
51
|
+
}
|
|
52
|
+
message.features = ChatyFeatures.decode(reader, reader.uint32());
|
|
53
|
+
continue;
|
|
54
|
+
}
|
|
55
|
+
case 3: {
|
|
56
|
+
if (tag !== 26) {
|
|
57
|
+
break;
|
|
58
|
+
}
|
|
59
|
+
message.ws = reader.string();
|
|
60
|
+
continue;
|
|
61
|
+
}
|
|
62
|
+
case 4: {
|
|
63
|
+
if (tag !== 34) {
|
|
64
|
+
break;
|
|
65
|
+
}
|
|
66
|
+
message.app = reader.string();
|
|
67
|
+
continue;
|
|
68
|
+
}
|
|
69
|
+
case 5: {
|
|
70
|
+
if (tag !== 42) {
|
|
71
|
+
break;
|
|
72
|
+
}
|
|
73
|
+
message.vapid = reader.string();
|
|
74
|
+
continue;
|
|
75
|
+
}
|
|
76
|
+
case 6: {
|
|
77
|
+
if (tag !== 50) {
|
|
78
|
+
break;
|
|
79
|
+
}
|
|
80
|
+
message.build = BuildInformation.decode(reader, reader.uint32());
|
|
81
|
+
continue;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
85
|
+
break;
|
|
86
|
+
}
|
|
87
|
+
reader.skip(tag & 7);
|
|
88
|
+
}
|
|
89
|
+
return message;
|
|
90
|
+
},
|
|
91
|
+
fromJSON(object) {
|
|
92
|
+
return {
|
|
93
|
+
chatyVersion: isSet(object.chatyVersion) ? globalThis.String(object.chatyVersion) : "",
|
|
94
|
+
features: isSet(object.features) ? ChatyFeatures.fromJSON(object.features) : undefined,
|
|
95
|
+
ws: isSet(object.ws) ? globalThis.String(object.ws) : "",
|
|
96
|
+
app: isSet(object.app) ? globalThis.String(object.app) : "",
|
|
97
|
+
vapid: isSet(object.vapid) ? globalThis.String(object.vapid) : "",
|
|
98
|
+
build: isSet(object.build) ? BuildInformation.fromJSON(object.build) : undefined,
|
|
99
|
+
};
|
|
100
|
+
},
|
|
101
|
+
toJSON(message) {
|
|
102
|
+
const obj = {};
|
|
103
|
+
if (message.chatyVersion !== "") {
|
|
104
|
+
obj.chatyVersion = message.chatyVersion;
|
|
105
|
+
}
|
|
106
|
+
if (message.features !== undefined) {
|
|
107
|
+
obj.features = ChatyFeatures.toJSON(message.features);
|
|
108
|
+
}
|
|
109
|
+
if (message.ws !== "") {
|
|
110
|
+
obj.ws = message.ws;
|
|
111
|
+
}
|
|
112
|
+
if (message.app !== "") {
|
|
113
|
+
obj.app = message.app;
|
|
114
|
+
}
|
|
115
|
+
if (message.vapid !== "") {
|
|
116
|
+
obj.vapid = message.vapid;
|
|
117
|
+
}
|
|
118
|
+
if (message.build !== undefined) {
|
|
119
|
+
obj.build = BuildInformation.toJSON(message.build);
|
|
120
|
+
}
|
|
121
|
+
return obj;
|
|
122
|
+
},
|
|
123
|
+
create(base) {
|
|
124
|
+
return ChatyConfig.fromPartial(base ?? {});
|
|
125
|
+
},
|
|
126
|
+
fromPartial(object) {
|
|
127
|
+
const message = createBaseChatyConfig();
|
|
128
|
+
message.chatyVersion = object.chatyVersion ?? "";
|
|
129
|
+
message.features = (object.features !== undefined && object.features !== null)
|
|
130
|
+
? ChatyFeatures.fromPartial(object.features)
|
|
131
|
+
: undefined;
|
|
132
|
+
message.ws = object.ws ?? "";
|
|
133
|
+
message.app = object.app ?? "";
|
|
134
|
+
message.vapid = object.vapid ?? "";
|
|
135
|
+
message.build = (object.build !== undefined && object.build !== null)
|
|
136
|
+
? BuildInformation.fromPartial(object.build)
|
|
137
|
+
: undefined;
|
|
138
|
+
return message;
|
|
139
|
+
},
|
|
140
|
+
};
|
|
141
|
+
function createBaseChatyFeatures() {
|
|
142
|
+
return {
|
|
143
|
+
captcha: undefined,
|
|
144
|
+
email: false,
|
|
145
|
+
inviteOnly: false,
|
|
146
|
+
files: undefined,
|
|
147
|
+
proxy: undefined,
|
|
148
|
+
livekit: undefined,
|
|
149
|
+
};
|
|
150
|
+
}
|
|
151
|
+
export const ChatyFeatures = {
|
|
152
|
+
encode(message, writer = new BinaryWriter()) {
|
|
153
|
+
if (message.captcha !== undefined) {
|
|
154
|
+
CaptchaFeature.encode(message.captcha, writer.uint32(10).fork()).join();
|
|
155
|
+
}
|
|
156
|
+
if (message.email !== false) {
|
|
157
|
+
writer.uint32(16).bool(message.email);
|
|
158
|
+
}
|
|
159
|
+
if (message.inviteOnly !== false) {
|
|
160
|
+
writer.uint32(24).bool(message.inviteOnly);
|
|
161
|
+
}
|
|
162
|
+
if (message.files !== undefined) {
|
|
163
|
+
Feature.encode(message.files, writer.uint32(34).fork()).join();
|
|
164
|
+
}
|
|
165
|
+
if (message.proxy !== undefined) {
|
|
166
|
+
Feature.encode(message.proxy, writer.uint32(42).fork()).join();
|
|
167
|
+
}
|
|
168
|
+
if (message.livekit !== undefined) {
|
|
169
|
+
VoiceFeature.encode(message.livekit, writer.uint32(50).fork()).join();
|
|
170
|
+
}
|
|
171
|
+
return writer;
|
|
172
|
+
},
|
|
173
|
+
decode(input, length) {
|
|
174
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
175
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
176
|
+
const message = createBaseChatyFeatures();
|
|
177
|
+
while (reader.pos < end) {
|
|
178
|
+
const tag = reader.uint32();
|
|
179
|
+
switch (tag >>> 3) {
|
|
180
|
+
case 1: {
|
|
181
|
+
if (tag !== 10) {
|
|
182
|
+
break;
|
|
183
|
+
}
|
|
184
|
+
message.captcha = CaptchaFeature.decode(reader, reader.uint32());
|
|
185
|
+
continue;
|
|
186
|
+
}
|
|
187
|
+
case 2: {
|
|
188
|
+
if (tag !== 16) {
|
|
189
|
+
break;
|
|
190
|
+
}
|
|
191
|
+
message.email = reader.bool();
|
|
192
|
+
continue;
|
|
193
|
+
}
|
|
194
|
+
case 3: {
|
|
195
|
+
if (tag !== 24) {
|
|
196
|
+
break;
|
|
197
|
+
}
|
|
198
|
+
message.inviteOnly = reader.bool();
|
|
199
|
+
continue;
|
|
200
|
+
}
|
|
201
|
+
case 4: {
|
|
202
|
+
if (tag !== 34) {
|
|
203
|
+
break;
|
|
204
|
+
}
|
|
205
|
+
message.files = Feature.decode(reader, reader.uint32());
|
|
206
|
+
continue;
|
|
207
|
+
}
|
|
208
|
+
case 5: {
|
|
209
|
+
if (tag !== 42) {
|
|
210
|
+
break;
|
|
211
|
+
}
|
|
212
|
+
message.proxy = Feature.decode(reader, reader.uint32());
|
|
213
|
+
continue;
|
|
214
|
+
}
|
|
215
|
+
case 6: {
|
|
216
|
+
if (tag !== 50) {
|
|
217
|
+
break;
|
|
218
|
+
}
|
|
219
|
+
message.livekit = VoiceFeature.decode(reader, reader.uint32());
|
|
220
|
+
continue;
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
224
|
+
break;
|
|
225
|
+
}
|
|
226
|
+
reader.skip(tag & 7);
|
|
227
|
+
}
|
|
228
|
+
return message;
|
|
229
|
+
},
|
|
230
|
+
fromJSON(object) {
|
|
231
|
+
return {
|
|
232
|
+
captcha: isSet(object.captcha) ? CaptchaFeature.fromJSON(object.captcha) : undefined,
|
|
233
|
+
email: isSet(object.email) ? globalThis.Boolean(object.email) : false,
|
|
234
|
+
inviteOnly: isSet(object.inviteOnly) ? globalThis.Boolean(object.inviteOnly) : false,
|
|
235
|
+
files: isSet(object.files) ? Feature.fromJSON(object.files) : undefined,
|
|
236
|
+
proxy: isSet(object.proxy) ? Feature.fromJSON(object.proxy) : undefined,
|
|
237
|
+
livekit: isSet(object.livekit) ? VoiceFeature.fromJSON(object.livekit) : undefined,
|
|
238
|
+
};
|
|
239
|
+
},
|
|
240
|
+
toJSON(message) {
|
|
241
|
+
const obj = {};
|
|
242
|
+
if (message.captcha !== undefined) {
|
|
243
|
+
obj.captcha = CaptchaFeature.toJSON(message.captcha);
|
|
244
|
+
}
|
|
245
|
+
if (message.email !== false) {
|
|
246
|
+
obj.email = message.email;
|
|
247
|
+
}
|
|
248
|
+
if (message.inviteOnly !== false) {
|
|
249
|
+
obj.inviteOnly = message.inviteOnly;
|
|
250
|
+
}
|
|
251
|
+
if (message.files !== undefined) {
|
|
252
|
+
obj.files = Feature.toJSON(message.files);
|
|
253
|
+
}
|
|
254
|
+
if (message.proxy !== undefined) {
|
|
255
|
+
obj.proxy = Feature.toJSON(message.proxy);
|
|
256
|
+
}
|
|
257
|
+
if (message.livekit !== undefined) {
|
|
258
|
+
obj.livekit = VoiceFeature.toJSON(message.livekit);
|
|
259
|
+
}
|
|
260
|
+
return obj;
|
|
261
|
+
},
|
|
262
|
+
create(base) {
|
|
263
|
+
return ChatyFeatures.fromPartial(base ?? {});
|
|
264
|
+
},
|
|
265
|
+
fromPartial(object) {
|
|
266
|
+
const message = createBaseChatyFeatures();
|
|
267
|
+
message.captcha = (object.captcha !== undefined && object.captcha !== null)
|
|
268
|
+
? CaptchaFeature.fromPartial(object.captcha)
|
|
269
|
+
: undefined;
|
|
270
|
+
message.email = object.email ?? false;
|
|
271
|
+
message.inviteOnly = object.inviteOnly ?? false;
|
|
272
|
+
message.files = (object.files !== undefined && object.files !== null)
|
|
273
|
+
? Feature.fromPartial(object.files)
|
|
274
|
+
: undefined;
|
|
275
|
+
message.proxy = (object.proxy !== undefined && object.proxy !== null)
|
|
276
|
+
? Feature.fromPartial(object.proxy)
|
|
277
|
+
: undefined;
|
|
278
|
+
message.livekit = (object.livekit !== undefined && object.livekit !== null)
|
|
279
|
+
? VoiceFeature.fromPartial(object.livekit)
|
|
280
|
+
: undefined;
|
|
281
|
+
return message;
|
|
282
|
+
},
|
|
283
|
+
};
|
|
284
|
+
function createBaseCaptchaFeature() {
|
|
285
|
+
return { enabled: false, key: "" };
|
|
286
|
+
}
|
|
287
|
+
export const CaptchaFeature = {
|
|
288
|
+
encode(message, writer = new BinaryWriter()) {
|
|
289
|
+
if (message.enabled !== false) {
|
|
290
|
+
writer.uint32(8).bool(message.enabled);
|
|
291
|
+
}
|
|
292
|
+
if (message.key !== "") {
|
|
293
|
+
writer.uint32(18).string(message.key);
|
|
294
|
+
}
|
|
295
|
+
return writer;
|
|
296
|
+
},
|
|
297
|
+
decode(input, length) {
|
|
298
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
299
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
300
|
+
const message = createBaseCaptchaFeature();
|
|
301
|
+
while (reader.pos < end) {
|
|
302
|
+
const tag = reader.uint32();
|
|
303
|
+
switch (tag >>> 3) {
|
|
304
|
+
case 1: {
|
|
305
|
+
if (tag !== 8) {
|
|
306
|
+
break;
|
|
307
|
+
}
|
|
308
|
+
message.enabled = reader.bool();
|
|
309
|
+
continue;
|
|
310
|
+
}
|
|
311
|
+
case 2: {
|
|
312
|
+
if (tag !== 18) {
|
|
313
|
+
break;
|
|
314
|
+
}
|
|
315
|
+
message.key = reader.string();
|
|
316
|
+
continue;
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
320
|
+
break;
|
|
321
|
+
}
|
|
322
|
+
reader.skip(tag & 7);
|
|
323
|
+
}
|
|
324
|
+
return message;
|
|
325
|
+
},
|
|
326
|
+
fromJSON(object) {
|
|
327
|
+
return {
|
|
328
|
+
enabled: isSet(object.enabled) ? globalThis.Boolean(object.enabled) : false,
|
|
329
|
+
key: isSet(object.key) ? globalThis.String(object.key) : "",
|
|
330
|
+
};
|
|
331
|
+
},
|
|
332
|
+
toJSON(message) {
|
|
333
|
+
const obj = {};
|
|
334
|
+
if (message.enabled !== false) {
|
|
335
|
+
obj.enabled = message.enabled;
|
|
336
|
+
}
|
|
337
|
+
if (message.key !== "") {
|
|
338
|
+
obj.key = message.key;
|
|
339
|
+
}
|
|
340
|
+
return obj;
|
|
341
|
+
},
|
|
342
|
+
create(base) {
|
|
343
|
+
return CaptchaFeature.fromPartial(base ?? {});
|
|
344
|
+
},
|
|
345
|
+
fromPartial(object) {
|
|
346
|
+
const message = createBaseCaptchaFeature();
|
|
347
|
+
message.enabled = object.enabled ?? false;
|
|
348
|
+
message.key = object.key ?? "";
|
|
349
|
+
return message;
|
|
350
|
+
},
|
|
351
|
+
};
|
|
352
|
+
function createBaseFeature() {
|
|
353
|
+
return { enabled: false, url: "" };
|
|
354
|
+
}
|
|
355
|
+
export const Feature = {
|
|
356
|
+
encode(message, writer = new BinaryWriter()) {
|
|
357
|
+
if (message.enabled !== false) {
|
|
358
|
+
writer.uint32(8).bool(message.enabled);
|
|
359
|
+
}
|
|
360
|
+
if (message.url !== "") {
|
|
361
|
+
writer.uint32(18).string(message.url);
|
|
362
|
+
}
|
|
363
|
+
return writer;
|
|
364
|
+
},
|
|
365
|
+
decode(input, length) {
|
|
366
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
367
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
368
|
+
const message = createBaseFeature();
|
|
369
|
+
while (reader.pos < end) {
|
|
370
|
+
const tag = reader.uint32();
|
|
371
|
+
switch (tag >>> 3) {
|
|
372
|
+
case 1: {
|
|
373
|
+
if (tag !== 8) {
|
|
374
|
+
break;
|
|
375
|
+
}
|
|
376
|
+
message.enabled = reader.bool();
|
|
377
|
+
continue;
|
|
378
|
+
}
|
|
379
|
+
case 2: {
|
|
380
|
+
if (tag !== 18) {
|
|
381
|
+
break;
|
|
382
|
+
}
|
|
383
|
+
message.url = reader.string();
|
|
384
|
+
continue;
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
388
|
+
break;
|
|
389
|
+
}
|
|
390
|
+
reader.skip(tag & 7);
|
|
391
|
+
}
|
|
392
|
+
return message;
|
|
393
|
+
},
|
|
394
|
+
fromJSON(object) {
|
|
395
|
+
return {
|
|
396
|
+
enabled: isSet(object.enabled) ? globalThis.Boolean(object.enabled) : false,
|
|
397
|
+
url: isSet(object.url) ? globalThis.String(object.url) : "",
|
|
398
|
+
};
|
|
399
|
+
},
|
|
400
|
+
toJSON(message) {
|
|
401
|
+
const obj = {};
|
|
402
|
+
if (message.enabled !== false) {
|
|
403
|
+
obj.enabled = message.enabled;
|
|
404
|
+
}
|
|
405
|
+
if (message.url !== "") {
|
|
406
|
+
obj.url = message.url;
|
|
407
|
+
}
|
|
408
|
+
return obj;
|
|
409
|
+
},
|
|
410
|
+
create(base) {
|
|
411
|
+
return Feature.fromPartial(base ?? {});
|
|
412
|
+
},
|
|
413
|
+
fromPartial(object) {
|
|
414
|
+
const message = createBaseFeature();
|
|
415
|
+
message.enabled = object.enabled ?? false;
|
|
416
|
+
message.url = object.url ?? "";
|
|
417
|
+
return message;
|
|
418
|
+
},
|
|
419
|
+
};
|
|
420
|
+
function createBaseVoiceFeature() {
|
|
421
|
+
return { enabled: false, nodes: [] };
|
|
422
|
+
}
|
|
423
|
+
export const VoiceFeature = {
|
|
424
|
+
encode(message, writer = new BinaryWriter()) {
|
|
425
|
+
if (message.enabled !== false) {
|
|
426
|
+
writer.uint32(8).bool(message.enabled);
|
|
427
|
+
}
|
|
428
|
+
for (const v of message.nodes) {
|
|
429
|
+
VoiceNode.encode(v, writer.uint32(18).fork()).join();
|
|
430
|
+
}
|
|
431
|
+
return writer;
|
|
432
|
+
},
|
|
433
|
+
decode(input, length) {
|
|
434
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
435
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
436
|
+
const message = createBaseVoiceFeature();
|
|
437
|
+
while (reader.pos < end) {
|
|
438
|
+
const tag = reader.uint32();
|
|
439
|
+
switch (tag >>> 3) {
|
|
440
|
+
case 1: {
|
|
441
|
+
if (tag !== 8) {
|
|
442
|
+
break;
|
|
443
|
+
}
|
|
444
|
+
message.enabled = reader.bool();
|
|
445
|
+
continue;
|
|
446
|
+
}
|
|
447
|
+
case 2: {
|
|
448
|
+
if (tag !== 18) {
|
|
449
|
+
break;
|
|
450
|
+
}
|
|
451
|
+
message.nodes.push(VoiceNode.decode(reader, reader.uint32()));
|
|
452
|
+
continue;
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
456
|
+
break;
|
|
457
|
+
}
|
|
458
|
+
reader.skip(tag & 7);
|
|
459
|
+
}
|
|
460
|
+
return message;
|
|
461
|
+
},
|
|
462
|
+
fromJSON(object) {
|
|
463
|
+
return {
|
|
464
|
+
enabled: isSet(object.enabled) ? globalThis.Boolean(object.enabled) : false,
|
|
465
|
+
nodes: globalThis.Array.isArray(object?.nodes) ? object.nodes.map((e) => VoiceNode.fromJSON(e)) : [],
|
|
466
|
+
};
|
|
467
|
+
},
|
|
468
|
+
toJSON(message) {
|
|
469
|
+
const obj = {};
|
|
470
|
+
if (message.enabled !== false) {
|
|
471
|
+
obj.enabled = message.enabled;
|
|
472
|
+
}
|
|
473
|
+
if (message.nodes?.length) {
|
|
474
|
+
obj.nodes = message.nodes.map((e) => VoiceNode.toJSON(e));
|
|
475
|
+
}
|
|
476
|
+
return obj;
|
|
477
|
+
},
|
|
478
|
+
create(base) {
|
|
479
|
+
return VoiceFeature.fromPartial(base ?? {});
|
|
480
|
+
},
|
|
481
|
+
fromPartial(object) {
|
|
482
|
+
const message = createBaseVoiceFeature();
|
|
483
|
+
message.enabled = object.enabled ?? false;
|
|
484
|
+
message.nodes = object.nodes?.map((e) => VoiceNode.fromPartial(e)) || [];
|
|
485
|
+
return message;
|
|
486
|
+
},
|
|
487
|
+
};
|
|
488
|
+
function createBaseVoiceNode() {
|
|
489
|
+
return { name: "", lat: 0, lon: 0, publicUrl: "" };
|
|
490
|
+
}
|
|
491
|
+
export const VoiceNode = {
|
|
492
|
+
encode(message, writer = new BinaryWriter()) {
|
|
493
|
+
if (message.name !== "") {
|
|
494
|
+
writer.uint32(10).string(message.name);
|
|
495
|
+
}
|
|
496
|
+
if (message.lat !== 0) {
|
|
497
|
+
writer.uint32(17).double(message.lat);
|
|
498
|
+
}
|
|
499
|
+
if (message.lon !== 0) {
|
|
500
|
+
writer.uint32(25).double(message.lon);
|
|
501
|
+
}
|
|
502
|
+
if (message.publicUrl !== "") {
|
|
503
|
+
writer.uint32(34).string(message.publicUrl);
|
|
504
|
+
}
|
|
505
|
+
return writer;
|
|
506
|
+
},
|
|
507
|
+
decode(input, length) {
|
|
508
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
509
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
510
|
+
const message = createBaseVoiceNode();
|
|
511
|
+
while (reader.pos < end) {
|
|
512
|
+
const tag = reader.uint32();
|
|
513
|
+
switch (tag >>> 3) {
|
|
514
|
+
case 1: {
|
|
515
|
+
if (tag !== 10) {
|
|
516
|
+
break;
|
|
517
|
+
}
|
|
518
|
+
message.name = reader.string();
|
|
519
|
+
continue;
|
|
520
|
+
}
|
|
521
|
+
case 2: {
|
|
522
|
+
if (tag !== 17) {
|
|
523
|
+
break;
|
|
524
|
+
}
|
|
525
|
+
message.lat = reader.double();
|
|
526
|
+
continue;
|
|
527
|
+
}
|
|
528
|
+
case 3: {
|
|
529
|
+
if (tag !== 25) {
|
|
530
|
+
break;
|
|
531
|
+
}
|
|
532
|
+
message.lon = reader.double();
|
|
533
|
+
continue;
|
|
534
|
+
}
|
|
535
|
+
case 4: {
|
|
536
|
+
if (tag !== 34) {
|
|
537
|
+
break;
|
|
538
|
+
}
|
|
539
|
+
message.publicUrl = reader.string();
|
|
540
|
+
continue;
|
|
541
|
+
}
|
|
542
|
+
}
|
|
543
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
544
|
+
break;
|
|
545
|
+
}
|
|
546
|
+
reader.skip(tag & 7);
|
|
547
|
+
}
|
|
548
|
+
return message;
|
|
549
|
+
},
|
|
550
|
+
fromJSON(object) {
|
|
551
|
+
return {
|
|
552
|
+
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
553
|
+
lat: isSet(object.lat) ? globalThis.Number(object.lat) : 0,
|
|
554
|
+
lon: isSet(object.lon) ? globalThis.Number(object.lon) : 0,
|
|
555
|
+
publicUrl: isSet(object.publicUrl) ? globalThis.String(object.publicUrl) : "",
|
|
556
|
+
};
|
|
557
|
+
},
|
|
558
|
+
toJSON(message) {
|
|
559
|
+
const obj = {};
|
|
560
|
+
if (message.name !== "") {
|
|
561
|
+
obj.name = message.name;
|
|
562
|
+
}
|
|
563
|
+
if (message.lat !== 0) {
|
|
564
|
+
obj.lat = message.lat;
|
|
565
|
+
}
|
|
566
|
+
if (message.lon !== 0) {
|
|
567
|
+
obj.lon = message.lon;
|
|
568
|
+
}
|
|
569
|
+
if (message.publicUrl !== "") {
|
|
570
|
+
obj.publicUrl = message.publicUrl;
|
|
571
|
+
}
|
|
572
|
+
return obj;
|
|
573
|
+
},
|
|
574
|
+
create(base) {
|
|
575
|
+
return VoiceNode.fromPartial(base ?? {});
|
|
576
|
+
},
|
|
577
|
+
fromPartial(object) {
|
|
578
|
+
const message = createBaseVoiceNode();
|
|
579
|
+
message.name = object.name ?? "";
|
|
580
|
+
message.lat = object.lat ?? 0;
|
|
581
|
+
message.lon = object.lon ?? 0;
|
|
582
|
+
message.publicUrl = object.publicUrl ?? "";
|
|
583
|
+
return message;
|
|
584
|
+
},
|
|
585
|
+
};
|
|
586
|
+
function createBaseBuildInformation() {
|
|
587
|
+
return { commitSha: "", commitTimestamp: "", semver: "", originUrl: "", timestamp: "" };
|
|
588
|
+
}
|
|
589
|
+
export const BuildInformation = {
|
|
590
|
+
encode(message, writer = new BinaryWriter()) {
|
|
591
|
+
if (message.commitSha !== "") {
|
|
592
|
+
writer.uint32(10).string(message.commitSha);
|
|
593
|
+
}
|
|
594
|
+
if (message.commitTimestamp !== "") {
|
|
595
|
+
writer.uint32(18).string(message.commitTimestamp);
|
|
596
|
+
}
|
|
597
|
+
if (message.semver !== "") {
|
|
598
|
+
writer.uint32(26).string(message.semver);
|
|
599
|
+
}
|
|
600
|
+
if (message.originUrl !== "") {
|
|
601
|
+
writer.uint32(34).string(message.originUrl);
|
|
602
|
+
}
|
|
603
|
+
if (message.timestamp !== "") {
|
|
604
|
+
writer.uint32(42).string(message.timestamp);
|
|
605
|
+
}
|
|
606
|
+
return writer;
|
|
607
|
+
},
|
|
608
|
+
decode(input, length) {
|
|
609
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
610
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
611
|
+
const message = createBaseBuildInformation();
|
|
612
|
+
while (reader.pos < end) {
|
|
613
|
+
const tag = reader.uint32();
|
|
614
|
+
switch (tag >>> 3) {
|
|
615
|
+
case 1: {
|
|
616
|
+
if (tag !== 10) {
|
|
617
|
+
break;
|
|
618
|
+
}
|
|
619
|
+
message.commitSha = reader.string();
|
|
620
|
+
continue;
|
|
621
|
+
}
|
|
622
|
+
case 2: {
|
|
623
|
+
if (tag !== 18) {
|
|
624
|
+
break;
|
|
625
|
+
}
|
|
626
|
+
message.commitTimestamp = reader.string();
|
|
627
|
+
continue;
|
|
628
|
+
}
|
|
629
|
+
case 3: {
|
|
630
|
+
if (tag !== 26) {
|
|
631
|
+
break;
|
|
632
|
+
}
|
|
633
|
+
message.semver = reader.string();
|
|
634
|
+
continue;
|
|
635
|
+
}
|
|
636
|
+
case 4: {
|
|
637
|
+
if (tag !== 34) {
|
|
638
|
+
break;
|
|
639
|
+
}
|
|
640
|
+
message.originUrl = reader.string();
|
|
641
|
+
continue;
|
|
642
|
+
}
|
|
643
|
+
case 5: {
|
|
644
|
+
if (tag !== 42) {
|
|
645
|
+
break;
|
|
646
|
+
}
|
|
647
|
+
message.timestamp = reader.string();
|
|
648
|
+
continue;
|
|
649
|
+
}
|
|
650
|
+
}
|
|
651
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
652
|
+
break;
|
|
653
|
+
}
|
|
654
|
+
reader.skip(tag & 7);
|
|
655
|
+
}
|
|
656
|
+
return message;
|
|
657
|
+
},
|
|
658
|
+
fromJSON(object) {
|
|
659
|
+
return {
|
|
660
|
+
commitSha: isSet(object.commitSha) ? globalThis.String(object.commitSha) : "",
|
|
661
|
+
commitTimestamp: isSet(object.commitTimestamp) ? globalThis.String(object.commitTimestamp) : "",
|
|
662
|
+
semver: isSet(object.semver) ? globalThis.String(object.semver) : "",
|
|
663
|
+
originUrl: isSet(object.originUrl) ? globalThis.String(object.originUrl) : "",
|
|
664
|
+
timestamp: isSet(object.timestamp) ? globalThis.String(object.timestamp) : "",
|
|
665
|
+
};
|
|
666
|
+
},
|
|
667
|
+
toJSON(message) {
|
|
668
|
+
const obj = {};
|
|
669
|
+
if (message.commitSha !== "") {
|
|
670
|
+
obj.commitSha = message.commitSha;
|
|
671
|
+
}
|
|
672
|
+
if (message.commitTimestamp !== "") {
|
|
673
|
+
obj.commitTimestamp = message.commitTimestamp;
|
|
674
|
+
}
|
|
675
|
+
if (message.semver !== "") {
|
|
676
|
+
obj.semver = message.semver;
|
|
677
|
+
}
|
|
678
|
+
if (message.originUrl !== "") {
|
|
679
|
+
obj.originUrl = message.originUrl;
|
|
680
|
+
}
|
|
681
|
+
if (message.timestamp !== "") {
|
|
682
|
+
obj.timestamp = message.timestamp;
|
|
683
|
+
}
|
|
684
|
+
return obj;
|
|
685
|
+
},
|
|
686
|
+
create(base) {
|
|
687
|
+
return BuildInformation.fromPartial(base ?? {});
|
|
688
|
+
},
|
|
689
|
+
fromPartial(object) {
|
|
690
|
+
const message = createBaseBuildInformation();
|
|
691
|
+
message.commitSha = object.commitSha ?? "";
|
|
692
|
+
message.commitTimestamp = object.commitTimestamp ?? "";
|
|
693
|
+
message.semver = object.semver ?? "";
|
|
694
|
+
message.originUrl = object.originUrl ?? "";
|
|
695
|
+
message.timestamp = object.timestamp ?? "";
|
|
696
|
+
return message;
|
|
697
|
+
},
|
|
698
|
+
};
|
|
699
|
+
function isSet(value) {
|
|
700
|
+
return value !== null && value !== undefined;
|
|
701
|
+
}
|
|
702
|
+
//# sourceMappingURL=config.js.map
|