gomtm 0.0.235 → 0.0.237

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.
Files changed (45) hide show
  1. package/dist/esm/components/MtmInstallScript.js +6 -7
  2. package/dist/esm/curd/mutationButton.d.ts +7 -0
  3. package/dist/esm/curd/mutationButton.js +14 -0
  4. package/dist/esm/gomtmpb/descriptions/mtm/sppb/git.d.ts +0 -0
  5. package/dist/esm/gomtmpb/descriptions/mtm/sppb/git.js +0 -0
  6. package/dist/esm/gomtmpb/descriptions/mtm/sppb/gitproject.d.ts +0 -0
  7. package/dist/esm/gomtmpb/descriptions/mtm/sppb/gitproject.js +0 -0
  8. package/dist/esm/gomtmpb/mtm/sppb/bot-BotService_connectquery.d.ts +41 -1
  9. package/dist/esm/gomtmpb/mtm/sppb/bot-BotService_connectquery.js +46 -2
  10. package/dist/esm/gomtmpb/mtm/sppb/bot_connect.d.ts +25 -1
  11. package/dist/esm/gomtmpb/mtm/sppb/bot_connect.js +45 -1
  12. package/dist/esm/gomtmpb/mtm/sppb/bot_pb.d.ts +105 -11
  13. package/dist/esm/gomtmpb/mtm/sppb/bot_pb.js +362 -36
  14. package/dist/esm/gomtmpb/mtm/sppb/conf-ConfService_connectquery.d.ts +53 -0
  15. package/dist/esm/gomtmpb/mtm/sppb/conf-ConfService_connectquery.js +60 -0
  16. package/dist/esm/gomtmpb/mtm/sppb/conf_connect.d.ts +38 -0
  17. package/dist/esm/gomtmpb/mtm/sppb/conf_connect.js +56 -0
  18. package/dist/esm/gomtmpb/mtm/sppb/conf_pb.d.ts +472 -0
  19. package/dist/esm/gomtmpb/mtm/sppb/conf_pb.js +2357 -0
  20. package/dist/esm/gomtmpb/mtm/sppb/git-GitService_connectquery.d.ts +63 -0
  21. package/dist/esm/gomtmpb/mtm/sppb/git-GitService_connectquery.js +71 -0
  22. package/dist/esm/gomtmpb/mtm/sppb/git_connect.d.ts +44 -0
  23. package/dist/esm/gomtmpb/mtm/sppb/git_connect.js +67 -0
  24. package/dist/esm/gomtmpb/mtm/sppb/git_pb.d.ts +108 -0
  25. package/dist/esm/gomtmpb/mtm/sppb/git_pb.js +311 -0
  26. package/dist/esm/gomtmpb/mtm/sppb/gitproject-GitProjectService_connectquery.d.ts +12 -0
  27. package/dist/esm/gomtmpb/mtm/sppb/gitproject-GitProjectService_connectquery.js +15 -0
  28. package/dist/esm/gomtmpb/mtm/sppb/gitproject_connect.d.ts +13 -0
  29. package/dist/esm/gomtmpb/mtm/sppb/gitproject_connect.js +19 -0
  30. package/dist/esm/gomtmpb/mtm/sppb/gitproject_pb.d.ts +23 -0
  31. package/dist/esm/gomtmpb/mtm/sppb/gitproject_pb.js +67 -0
  32. package/dist/esm/messageTypeRegistry.d.ts +1 -0
  33. package/dist/esm/messageTypeRegistry.js +3 -3
  34. package/dist/esm/providers/GomtmProvider.js +5 -1
  35. package/dist/esm/validations/spContentModi.d.ts +4 -4
  36. package/dist/esm/validations/spRoute.d.ts +8 -8
  37. package/dist/esm/validations/user.d.ts +6 -6
  38. package/dist/tsconfig.type.tsbuildinfo +1 -1
  39. package/package.json +3 -3
  40. package/dist/esm/store/ExampleStoreProvider.d.ts +0 -6
  41. package/dist/esm/store/ExampleStoreProvider.js +0 -43
  42. package/dist/esm/store/gomtm.atom.d.ts +0 -4
  43. package/dist/esm/store/gomtm.atom.js +0 -12
  44. /package/dist/esm/{mtmcore.d.ts → gomtmpb/descriptions/mtm/sppb/conf.d.ts} +0 -0
  45. /package/dist/esm/{mtmcore.js → gomtmpb/descriptions/mtm/sppb/conf.js} +0 -0
@@ -0,0 +1,2357 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3
+ var __publicField = (obj, key, value) => {
4
+ __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
5
+ return value;
6
+ };
7
+ import { Duration, Message, proto3 } from "@bufbuild/protobuf";
8
+ import { Paging } from "./mtm_pb";
9
+ const _Config = class _Config extends Message {
10
+ constructor(data) {
11
+ super();
12
+ /**
13
+ * @gotags: yaml:"secret,omitempty"
14
+ *
15
+ * @generated from field: string secret = 1;
16
+ */
17
+ __publicField(this, "secret", "");
18
+ /**
19
+ * @generated from field: bool disable_worker = 31;
20
+ */
21
+ __publicField(this, "disableWorker", false);
22
+ /**
23
+ * @generated from field: string profile = 32;
24
+ */
25
+ __publicField(this, "profile", "");
26
+ /**
27
+ * @gotags: yaml:"bootstraps,omitempty"
28
+ *
29
+ * @generated from field: repeated string bootstraps = 33;
30
+ */
31
+ __publicField(this, "bootstraps", []);
32
+ /**
33
+ * @generated from field: string main_domain = 34;
34
+ */
35
+ __publicField(this, "mainDomain", "");
36
+ /**
37
+ * @generated from field: string bot_type = 35;
38
+ */
39
+ __publicField(this, "botType", "");
40
+ /**
41
+ * @gotags: yaml:"mq,omitempty"
42
+ *
43
+ * @generated from field: sppb.ConfigMq mq = 2;
44
+ */
45
+ __publicField(this, "mq");
46
+ /**
47
+ * @gotags: yaml:"db,omitempty"
48
+ *
49
+ * @generated from field: sppb.ConfigDB db = 3;
50
+ */
51
+ __publicField(this, "db");
52
+ /**
53
+ * 应该过时了。
54
+ * ConfigBot bot = 4; // @gotags: yaml:"bot,omitempty"
55
+ *
56
+ * @gotags: yaml:"server,omitempty"
57
+ *
58
+ * @generated from field: sppb.ConfigServer server = 5;
59
+ */
60
+ __publicField(this, "server");
61
+ /**
62
+ * @gotags: yaml:"otel,omitempty"
63
+ *
64
+ * @generated from field: sppb.ConfigOtel otel = 6;
65
+ */
66
+ __publicField(this, "otel");
67
+ /**
68
+ * @gotags: yaml:"mtg,omitempty"
69
+ *
70
+ * @generated from field: sppb.ConfigMtg mtg = 7;
71
+ */
72
+ __publicField(this, "mtg");
73
+ /**
74
+ * @gotags: yaml:"github,omitempty"
75
+ *
76
+ * @generated from field: sppb.ConfigGithub github = 8;
77
+ */
78
+ __publicField(this, "github");
79
+ /**
80
+ * @gotags: yaml:"localStorage,omitempty"
81
+ *
82
+ * @generated from field: sppb.LocalStorage local_storage = 9;
83
+ */
84
+ __publicField(this, "localStorage");
85
+ /**
86
+ * @gotags: yaml:"site,omitempty"
87
+ *
88
+ * @generated from field: sppb.ConfigSite site = 12;
89
+ */
90
+ __publicField(this, "site");
91
+ /**
92
+ * @gotags: yaml:"cftConfig,omitempty"
93
+ *
94
+ * @generated from field: sppb.CftConfig cft_config = 16;
95
+ */
96
+ __publicField(this, "cftConfig");
97
+ /**
98
+ * @gotags: yaml:"tailscale,omitempty"
99
+ *
100
+ * @generated from field: sppb.ConfigTailscale tailscale = 17;
101
+ */
102
+ __publicField(this, "tailscale");
103
+ /**
104
+ * @gotags: yaml:"log,omitempty"
105
+ *
106
+ * @generated from field: sppb.ConfigLog log = 18;
107
+ */
108
+ __publicField(this, "log");
109
+ /**
110
+ * @gotags: yaml:"auth,omitempty"
111
+ *
112
+ * @generated from field: sppb.ConfigAuth auth = 19;
113
+ */
114
+ __publicField(this, "auth");
115
+ /**
116
+ * @gotags: yaml:"web,omitempty"
117
+ *
118
+ * @generated from field: sppb.ConfigWeb web = 21;
119
+ */
120
+ __publicField(this, "web");
121
+ /**
122
+ * @gotags: yaml:"mtkv,omitempty"
123
+ *
124
+ * @generated from field: sppb.ConfigMtkv mtkv = 22;
125
+ */
126
+ __publicField(this, "mtkv");
127
+ /**
128
+ * @gotags: yaml:"sshd,omitempty"
129
+ *
130
+ * @generated from field: sppb.ConfigSshd sshd = 23;
131
+ */
132
+ __publicField(this, "sshd");
133
+ /**
134
+ * @gotags: yaml:"p2p,omitempty"
135
+ *
136
+ * @generated from field: sppb.ConfigP2p p2p = 24;
137
+ */
138
+ __publicField(this, "p2p");
139
+ /**
140
+ * bool is_master = 25; // @gotags: yaml:"isMaster,omitempty"
141
+ *
142
+ * @gotags: yaml:"cronJob,omitempty"
143
+ *
144
+ * @generated from field: sppb.ConfigCronjob cron_job = 27;
145
+ */
146
+ __publicField(this, "cronJob");
147
+ /**
148
+ * @gotags: yaml:"lineslog,omitempty"
149
+ *
150
+ * @generated from field: sppb.ConfigLineslog lineslog = 28;
151
+ */
152
+ __publicField(this, "lineslog");
153
+ /**
154
+ * @gotags: yaml:"ps,omitempty"
155
+ *
156
+ * @generated from field: sppb.ConfigPs ps = 29;
157
+ */
158
+ __publicField(this, "ps");
159
+ /**
160
+ * @gotags: yaml:"web_app,omitempty"
161
+ *
162
+ * @generated from field: sppb.ConfigWebApp web_app = 30;
163
+ */
164
+ __publicField(this, "webApp");
165
+ proto3.util.initPartial(data, this);
166
+ }
167
+ static fromBinary(bytes, options) {
168
+ return new _Config().fromBinary(bytes, options);
169
+ }
170
+ static fromJson(jsonValue, options) {
171
+ return new _Config().fromJson(jsonValue, options);
172
+ }
173
+ static fromJsonString(jsonString, options) {
174
+ return new _Config().fromJsonString(jsonString, options);
175
+ }
176
+ static equals(a, b) {
177
+ return proto3.util.equals(_Config, a, b);
178
+ }
179
+ };
180
+ __publicField(_Config, "runtime", proto3);
181
+ __publicField(_Config, "typeName", "sppb.Config");
182
+ __publicField(_Config, "fields", proto3.util.newFieldList(() => [
183
+ {
184
+ no: 1,
185
+ name: "secret",
186
+ kind: "scalar",
187
+ T: 9
188
+ /* ScalarType.STRING */
189
+ },
190
+ {
191
+ no: 31,
192
+ name: "disable_worker",
193
+ kind: "scalar",
194
+ T: 8
195
+ /* ScalarType.BOOL */
196
+ },
197
+ {
198
+ no: 32,
199
+ name: "profile",
200
+ kind: "scalar",
201
+ T: 9
202
+ /* ScalarType.STRING */
203
+ },
204
+ { no: 33, name: "bootstraps", kind: "scalar", T: 9, repeated: true },
205
+ {
206
+ no: 34,
207
+ name: "main_domain",
208
+ kind: "scalar",
209
+ T: 9
210
+ /* ScalarType.STRING */
211
+ },
212
+ {
213
+ no: 35,
214
+ name: "bot_type",
215
+ kind: "scalar",
216
+ T: 9
217
+ /* ScalarType.STRING */
218
+ },
219
+ { no: 2, name: "mq", kind: "message", T: ConfigMq },
220
+ { no: 3, name: "db", kind: "message", T: ConfigDB },
221
+ { no: 5, name: "server", kind: "message", T: ConfigServer },
222
+ { no: 6, name: "otel", kind: "message", T: ConfigOtel },
223
+ { no: 7, name: "mtg", kind: "message", T: ConfigMtg },
224
+ { no: 8, name: "github", kind: "message", T: ConfigGithub },
225
+ { no: 9, name: "local_storage", kind: "message", T: LocalStorage },
226
+ { no: 12, name: "site", kind: "message", T: ConfigSite },
227
+ { no: 16, name: "cft_config", kind: "message", T: CftConfig },
228
+ { no: 17, name: "tailscale", kind: "message", T: ConfigTailscale },
229
+ { no: 18, name: "log", kind: "message", T: ConfigLog },
230
+ { no: 19, name: "auth", kind: "message", T: ConfigAuth },
231
+ { no: 21, name: "web", kind: "message", T: ConfigWeb },
232
+ { no: 22, name: "mtkv", kind: "message", T: ConfigMtkv },
233
+ { no: 23, name: "sshd", kind: "message", T: ConfigSshd },
234
+ { no: 24, name: "p2p", kind: "message", T: ConfigP2p },
235
+ { no: 27, name: "cron_job", kind: "message", T: ConfigCronjob },
236
+ { no: 28, name: "lineslog", kind: "message", T: ConfigLineslog },
237
+ { no: 29, name: "ps", kind: "message", T: ConfigPs },
238
+ { no: 30, name: "web_app", kind: "message", T: ConfigWebApp }
239
+ ]));
240
+ let Config = _Config;
241
+ const _ConfigWebApp = class _ConfigWebApp extends Message {
242
+ constructor(data) {
243
+ super();
244
+ /**
245
+ * @generated from field: string backend = 2;
246
+ */
247
+ __publicField(this, "backend", "");
248
+ /**
249
+ * @generated from field: string site_host = 3;
250
+ */
251
+ __publicField(this, "siteHost", "");
252
+ proto3.util.initPartial(data, this);
253
+ }
254
+ static fromBinary(bytes, options) {
255
+ return new _ConfigWebApp().fromBinary(bytes, options);
256
+ }
257
+ static fromJson(jsonValue, options) {
258
+ return new _ConfigWebApp().fromJson(jsonValue, options);
259
+ }
260
+ static fromJsonString(jsonString, options) {
261
+ return new _ConfigWebApp().fromJsonString(jsonString, options);
262
+ }
263
+ static equals(a, b) {
264
+ return proto3.util.equals(_ConfigWebApp, a, b);
265
+ }
266
+ };
267
+ __publicField(_ConfigWebApp, "runtime", proto3);
268
+ __publicField(_ConfigWebApp, "typeName", "sppb.ConfigWebApp");
269
+ __publicField(_ConfigWebApp, "fields", proto3.util.newFieldList(() => [
270
+ {
271
+ no: 2,
272
+ name: "backend",
273
+ kind: "scalar",
274
+ T: 9
275
+ /* ScalarType.STRING */
276
+ },
277
+ {
278
+ no: 3,
279
+ name: "site_host",
280
+ kind: "scalar",
281
+ T: 9
282
+ /* ScalarType.STRING */
283
+ }
284
+ ]));
285
+ let ConfigWebApp = _ConfigWebApp;
286
+ const _CftConfig = class _CftConfig extends Message {
287
+ constructor(data) {
288
+ super();
289
+ /**
290
+ * @gotags: yaml:"enabled,omitempty"
291
+ *
292
+ * @generated from field: bool enabled = 1;
293
+ */
294
+ __publicField(this, "enabled", false);
295
+ /**
296
+ * @gotags: yaml:"ingress,omitempty"
297
+ *
298
+ * @generated from field: repeated sppb.CftConfig.IngressItem ingress = 2;
299
+ */
300
+ __publicField(this, "ingress", []);
301
+ /**
302
+ * @gotags: yaml:"tunnelName,omitempty"
303
+ *
304
+ * @generated from field: string tunnel_name = 3;
305
+ */
306
+ __publicField(this, "tunnelName", "");
307
+ /**
308
+ * @gotags: yaml:"subDomainPrefix,omitempty"
309
+ *
310
+ * @generated from field: string subDomain_prefix = 4;
311
+ */
312
+ __publicField(this, "subDomainPrefix", "");
313
+ /**
314
+ * @gotags: yaml:"cfApiToken,omitempty"
315
+ *
316
+ * @generated from field: string cf_api_token = 5;
317
+ */
318
+ __publicField(this, "cfApiToken", "");
319
+ /**
320
+ * @gotags: yaml:"cfAccountId,omitempty"
321
+ *
322
+ * @generated from field: string cf_account_id = 6;
323
+ */
324
+ __publicField(this, "cfAccountId", "");
325
+ /**
326
+ * @gotags: yaml:"cfApiEmail,omitempty"
327
+ *
328
+ * @generated from field: string cf_api_email = 7;
329
+ */
330
+ __publicField(this, "cfApiEmail", "");
331
+ proto3.util.initPartial(data, this);
332
+ }
333
+ static fromBinary(bytes, options) {
334
+ return new _CftConfig().fromBinary(bytes, options);
335
+ }
336
+ static fromJson(jsonValue, options) {
337
+ return new _CftConfig().fromJson(jsonValue, options);
338
+ }
339
+ static fromJsonString(jsonString, options) {
340
+ return new _CftConfig().fromJsonString(jsonString, options);
341
+ }
342
+ static equals(a, b) {
343
+ return proto3.util.equals(_CftConfig, a, b);
344
+ }
345
+ };
346
+ __publicField(_CftConfig, "runtime", proto3);
347
+ __publicField(_CftConfig, "typeName", "sppb.CftConfig");
348
+ __publicField(_CftConfig, "fields", proto3.util.newFieldList(() => [
349
+ {
350
+ no: 1,
351
+ name: "enabled",
352
+ kind: "scalar",
353
+ T: 8
354
+ /* ScalarType.BOOL */
355
+ },
356
+ { no: 2, name: "ingress", kind: "message", T: CftConfig_IngressItem, repeated: true },
357
+ {
358
+ no: 3,
359
+ name: "tunnel_name",
360
+ kind: "scalar",
361
+ T: 9
362
+ /* ScalarType.STRING */
363
+ },
364
+ {
365
+ no: 4,
366
+ name: "subDomain_prefix",
367
+ kind: "scalar",
368
+ T: 9
369
+ /* ScalarType.STRING */
370
+ },
371
+ {
372
+ no: 5,
373
+ name: "cf_api_token",
374
+ kind: "scalar",
375
+ T: 9
376
+ /* ScalarType.STRING */
377
+ },
378
+ {
379
+ no: 6,
380
+ name: "cf_account_id",
381
+ kind: "scalar",
382
+ T: 9
383
+ /* ScalarType.STRING */
384
+ },
385
+ {
386
+ no: 7,
387
+ name: "cf_api_email",
388
+ kind: "scalar",
389
+ T: 9
390
+ /* ScalarType.STRING */
391
+ }
392
+ ]));
393
+ let CftConfig = _CftConfig;
394
+ const _CftConfig_IngressItem = class _CftConfig_IngressItem extends Message {
395
+ constructor(data) {
396
+ super();
397
+ /**
398
+ * @gotags: yaml:"hostname,omitempty"
399
+ *
400
+ * @generated from field: string hostname = 1;
401
+ */
402
+ __publicField(this, "hostname", "");
403
+ /**
404
+ * @gotags: yaml:"service,omitempty"
405
+ *
406
+ * @generated from field: string service = 2;
407
+ */
408
+ __publicField(this, "service", "");
409
+ /**
410
+ * @gotags: yaml:"originRequest,omitempty"
411
+ *
412
+ * @generated from field: sppb.CftConfig.OriginRequest origin_request = 3;
413
+ */
414
+ __publicField(this, "originRequest");
415
+ proto3.util.initPartial(data, this);
416
+ }
417
+ static fromBinary(bytes, options) {
418
+ return new _CftConfig_IngressItem().fromBinary(bytes, options);
419
+ }
420
+ static fromJson(jsonValue, options) {
421
+ return new _CftConfig_IngressItem().fromJson(jsonValue, options);
422
+ }
423
+ static fromJsonString(jsonString, options) {
424
+ return new _CftConfig_IngressItem().fromJsonString(jsonString, options);
425
+ }
426
+ static equals(a, b) {
427
+ return proto3.util.equals(_CftConfig_IngressItem, a, b);
428
+ }
429
+ };
430
+ __publicField(_CftConfig_IngressItem, "runtime", proto3);
431
+ __publicField(_CftConfig_IngressItem, "typeName", "sppb.CftConfig.IngressItem");
432
+ __publicField(_CftConfig_IngressItem, "fields", proto3.util.newFieldList(() => [
433
+ {
434
+ no: 1,
435
+ name: "hostname",
436
+ kind: "scalar",
437
+ T: 9
438
+ /* ScalarType.STRING */
439
+ },
440
+ {
441
+ no: 2,
442
+ name: "service",
443
+ kind: "scalar",
444
+ T: 9
445
+ /* ScalarType.STRING */
446
+ },
447
+ { no: 3, name: "origin_request", kind: "message", T: CftConfig_OriginRequest }
448
+ ]));
449
+ let CftConfig_IngressItem = _CftConfig_IngressItem;
450
+ const _CftConfig_OriginRequest = class _CftConfig_OriginRequest extends Message {
451
+ constructor(data) {
452
+ super();
453
+ /**
454
+ * e.g: 10s
455
+ *
456
+ * @gotags: yaml:"tlsTimeout,omitempty"
457
+ *
458
+ * @generated from field: string tls_timeout = 1;
459
+ */
460
+ __publicField(this, "tlsTimeout", "");
461
+ /**
462
+ * @gotags: yaml:"noTLSVerify,omitempty"
463
+ *
464
+ * @generated from field: bool noTLS_verify = 2;
465
+ */
466
+ __publicField(this, "noTLSVerify", false);
467
+ /**
468
+ * @gotags: yaml:"http2Origin,omitempty"
469
+ *
470
+ * @generated from field: bool http2_origin = 3;
471
+ */
472
+ __publicField(this, "http2Origin", false);
473
+ /**
474
+ * gotags: yaml:"disableChunkedEncoding,omitempty"
475
+ *
476
+ * @generated from field: bool disable_chunked_encoding = 4;
477
+ */
478
+ __publicField(this, "disableChunkedEncoding", false);
479
+ proto3.util.initPartial(data, this);
480
+ }
481
+ static fromBinary(bytes, options) {
482
+ return new _CftConfig_OriginRequest().fromBinary(bytes, options);
483
+ }
484
+ static fromJson(jsonValue, options) {
485
+ return new _CftConfig_OriginRequest().fromJson(jsonValue, options);
486
+ }
487
+ static fromJsonString(jsonString, options) {
488
+ return new _CftConfig_OriginRequest().fromJsonString(jsonString, options);
489
+ }
490
+ static equals(a, b) {
491
+ return proto3.util.equals(_CftConfig_OriginRequest, a, b);
492
+ }
493
+ };
494
+ __publicField(_CftConfig_OriginRequest, "runtime", proto3);
495
+ __publicField(_CftConfig_OriginRequest, "typeName", "sppb.CftConfig.OriginRequest");
496
+ __publicField(_CftConfig_OriginRequest, "fields", proto3.util.newFieldList(() => [
497
+ {
498
+ no: 1,
499
+ name: "tls_timeout",
500
+ kind: "scalar",
501
+ T: 9
502
+ /* ScalarType.STRING */
503
+ },
504
+ {
505
+ no: 2,
506
+ name: "noTLS_verify",
507
+ kind: "scalar",
508
+ T: 8
509
+ /* ScalarType.BOOL */
510
+ },
511
+ {
512
+ no: 3,
513
+ name: "http2_origin",
514
+ kind: "scalar",
515
+ T: 8
516
+ /* ScalarType.BOOL */
517
+ },
518
+ {
519
+ no: 4,
520
+ name: "disable_chunked_encoding",
521
+ kind: "scalar",
522
+ T: 8
523
+ /* ScalarType.BOOL */
524
+ }
525
+ ]));
526
+ let CftConfig_OriginRequest = _CftConfig_OriginRequest;
527
+ const _ConfigTailscale = class _ConfigTailscale extends Message {
528
+ constructor(data) {
529
+ super();
530
+ /**
531
+ * @gotags: yaml:"enabled,omitempty"
532
+ *
533
+ * @generated from field: bool enabled = 1;
534
+ */
535
+ __publicField(this, "enabled", false);
536
+ /**
537
+ * @gotags: yaml:"apiKey,omitempty"
538
+ *
539
+ * @generated from field: string api_key = 2;
540
+ */
541
+ __publicField(this, "apiKey", "");
542
+ /**
543
+ * @gotags: yaml:"authKey,omitempty"
544
+ *
545
+ * @generated from field: string auth_key = 3;
546
+ */
547
+ __publicField(this, "authKey", "");
548
+ /**
549
+ * @gotags: yaml:"hostName,omitempty"
550
+ *
551
+ * @generated from field: string host_name = 4;
552
+ */
553
+ __publicField(this, "hostName", "");
554
+ proto3.util.initPartial(data, this);
555
+ }
556
+ static fromBinary(bytes, options) {
557
+ return new _ConfigTailscale().fromBinary(bytes, options);
558
+ }
559
+ static fromJson(jsonValue, options) {
560
+ return new _ConfigTailscale().fromJson(jsonValue, options);
561
+ }
562
+ static fromJsonString(jsonString, options) {
563
+ return new _ConfigTailscale().fromJsonString(jsonString, options);
564
+ }
565
+ static equals(a, b) {
566
+ return proto3.util.equals(_ConfigTailscale, a, b);
567
+ }
568
+ };
569
+ __publicField(_ConfigTailscale, "runtime", proto3);
570
+ __publicField(_ConfigTailscale, "typeName", "sppb.ConfigTailscale");
571
+ __publicField(_ConfigTailscale, "fields", proto3.util.newFieldList(() => [
572
+ {
573
+ no: 1,
574
+ name: "enabled",
575
+ kind: "scalar",
576
+ T: 8
577
+ /* ScalarType.BOOL */
578
+ },
579
+ {
580
+ no: 2,
581
+ name: "api_key",
582
+ kind: "scalar",
583
+ T: 9
584
+ /* ScalarType.STRING */
585
+ },
586
+ {
587
+ no: 3,
588
+ name: "auth_key",
589
+ kind: "scalar",
590
+ T: 9
591
+ /* ScalarType.STRING */
592
+ },
593
+ {
594
+ no: 4,
595
+ name: "host_name",
596
+ kind: "scalar",
597
+ T: 9
598
+ /* ScalarType.STRING */
599
+ }
600
+ ]));
601
+ let ConfigTailscale = _ConfigTailscale;
602
+ const _ConfigServer = class _ConfigServer extends Message {
603
+ constructor(data) {
604
+ super();
605
+ /**
606
+ * @gotags: yaml:"enabled,omitempty"
607
+ *
608
+ * @generated from field: bool enabled = 1;
609
+ */
610
+ __publicField(this, "enabled", false);
611
+ /**
612
+ * @gotags: yaml:"http,omitempty"
613
+ *
614
+ * @generated from field: sppb.ConfigServer.Http http = 2;
615
+ */
616
+ __publicField(this, "http");
617
+ /**
618
+ * 主域名
619
+ *
620
+ * 子域名前缀
621
+ * string sub_domain_prefix = 4;
622
+ *
623
+ * @generated from field: string domain = 3;
624
+ */
625
+ __publicField(this, "domain", "");
626
+ proto3.util.initPartial(data, this);
627
+ }
628
+ static fromBinary(bytes, options) {
629
+ return new _ConfigServer().fromBinary(bytes, options);
630
+ }
631
+ static fromJson(jsonValue, options) {
632
+ return new _ConfigServer().fromJson(jsonValue, options);
633
+ }
634
+ static fromJsonString(jsonString, options) {
635
+ return new _ConfigServer().fromJsonString(jsonString, options);
636
+ }
637
+ static equals(a, b) {
638
+ return proto3.util.equals(_ConfigServer, a, b);
639
+ }
640
+ };
641
+ __publicField(_ConfigServer, "runtime", proto3);
642
+ __publicField(_ConfigServer, "typeName", "sppb.ConfigServer");
643
+ __publicField(_ConfigServer, "fields", proto3.util.newFieldList(() => [
644
+ {
645
+ no: 1,
646
+ name: "enabled",
647
+ kind: "scalar",
648
+ T: 8
649
+ /* ScalarType.BOOL */
650
+ },
651
+ { no: 2, name: "http", kind: "message", T: ConfigServer_Http },
652
+ {
653
+ no: 3,
654
+ name: "domain",
655
+ kind: "scalar",
656
+ T: 9
657
+ /* ScalarType.STRING */
658
+ }
659
+ ]));
660
+ let ConfigServer = _ConfigServer;
661
+ const _ConfigServer_Http = class _ConfigServer_Http extends Message {
662
+ constructor(data) {
663
+ super();
664
+ /**
665
+ * @gotags: yaml:"addr,omitempty"
666
+ *
667
+ * @generated from field: string addr = 1;
668
+ */
669
+ __publicField(this, "addr", "");
670
+ /**
671
+ * @gotags: yaml:"tls,omitempty"
672
+ *
673
+ * @generated from field: bool tls = 2;
674
+ */
675
+ __publicField(this, "tls", false);
676
+ /**
677
+ * @gotags: yaml:"timeout,omitempty"
678
+ *
679
+ * @generated from field: google.protobuf.Duration timeout = 3;
680
+ */
681
+ __publicField(this, "timeout");
682
+ /**
683
+ * @gotags: yaml:"apiPrefix,omitempty"
684
+ *
685
+ * @generated from field: string api_prefix = 4;
686
+ */
687
+ __publicField(this, "apiPrefix", "");
688
+ /**
689
+ * @gotags: yaml:"onion,omitempty"
690
+ *
691
+ * @generated from field: sppb.OnionConfig onion = 5;
692
+ */
693
+ __publicField(this, "onion");
694
+ proto3.util.initPartial(data, this);
695
+ }
696
+ static fromBinary(bytes, options) {
697
+ return new _ConfigServer_Http().fromBinary(bytes, options);
698
+ }
699
+ static fromJson(jsonValue, options) {
700
+ return new _ConfigServer_Http().fromJson(jsonValue, options);
701
+ }
702
+ static fromJsonString(jsonString, options) {
703
+ return new _ConfigServer_Http().fromJsonString(jsonString, options);
704
+ }
705
+ static equals(a, b) {
706
+ return proto3.util.equals(_ConfigServer_Http, a, b);
707
+ }
708
+ };
709
+ __publicField(_ConfigServer_Http, "runtime", proto3);
710
+ __publicField(_ConfigServer_Http, "typeName", "sppb.ConfigServer.Http");
711
+ __publicField(_ConfigServer_Http, "fields", proto3.util.newFieldList(() => [
712
+ {
713
+ no: 1,
714
+ name: "addr",
715
+ kind: "scalar",
716
+ T: 9
717
+ /* ScalarType.STRING */
718
+ },
719
+ {
720
+ no: 2,
721
+ name: "tls",
722
+ kind: "scalar",
723
+ T: 8
724
+ /* ScalarType.BOOL */
725
+ },
726
+ { no: 3, name: "timeout", kind: "message", T: Duration },
727
+ {
728
+ no: 4,
729
+ name: "api_prefix",
730
+ kind: "scalar",
731
+ T: 9
732
+ /* ScalarType.STRING */
733
+ },
734
+ { no: 5, name: "onion", kind: "message", T: OnionConfig }
735
+ ]));
736
+ let ConfigServer_Http = _ConfigServer_Http;
737
+ const _ConfigDB = class _ConfigDB extends Message {
738
+ constructor(data) {
739
+ super();
740
+ /**
741
+ * @gotags: yaml:"dbUrl,omitempty"
742
+ *
743
+ * @generated from field: string db_url = 1;
744
+ */
745
+ __publicField(this, "dbUrl", "");
746
+ /**
747
+ * @gotags: yaml:"dbUrl2,omitempty"
748
+ *
749
+ * @generated from field: string db_url2 = 2;
750
+ */
751
+ __publicField(this, "dbUrl2", "");
752
+ /**
753
+ * @gotags: yaml:"logLevel,omitempty"
754
+ *
755
+ * @generated from field: string log_level = 3;
756
+ */
757
+ __publicField(this, "logLevel", "");
758
+ /**
759
+ * @gotags: yaml:"authMigrate,omitempty"
760
+ *
761
+ * @generated from field: bool auto_migrate = 4;
762
+ */
763
+ __publicField(this, "autoMigrate", false);
764
+ /**
765
+ * @gotags: yaml:"productDbUrls,omitempty"
766
+ *
767
+ * @generated from field: repeated string product_db_urls = 5;
768
+ */
769
+ __publicField(this, "productDbUrls", []);
770
+ /**
771
+ * @gotags: yaml:"devlopmentDbUrls,omitempty"
772
+ *
773
+ * @generated from field: repeated string devlopment_db_urls = 6;
774
+ */
775
+ __publicField(this, "devlopmentDbUrls", []);
776
+ proto3.util.initPartial(data, this);
777
+ }
778
+ static fromBinary(bytes, options) {
779
+ return new _ConfigDB().fromBinary(bytes, options);
780
+ }
781
+ static fromJson(jsonValue, options) {
782
+ return new _ConfigDB().fromJson(jsonValue, options);
783
+ }
784
+ static fromJsonString(jsonString, options) {
785
+ return new _ConfigDB().fromJsonString(jsonString, options);
786
+ }
787
+ static equals(a, b) {
788
+ return proto3.util.equals(_ConfigDB, a, b);
789
+ }
790
+ };
791
+ __publicField(_ConfigDB, "runtime", proto3);
792
+ __publicField(_ConfigDB, "typeName", "sppb.ConfigDB");
793
+ __publicField(_ConfigDB, "fields", proto3.util.newFieldList(() => [
794
+ {
795
+ no: 1,
796
+ name: "db_url",
797
+ kind: "scalar",
798
+ T: 9
799
+ /* ScalarType.STRING */
800
+ },
801
+ {
802
+ no: 2,
803
+ name: "db_url2",
804
+ kind: "scalar",
805
+ T: 9
806
+ /* ScalarType.STRING */
807
+ },
808
+ {
809
+ no: 3,
810
+ name: "log_level",
811
+ kind: "scalar",
812
+ T: 9
813
+ /* ScalarType.STRING */
814
+ },
815
+ {
816
+ no: 4,
817
+ name: "auto_migrate",
818
+ kind: "scalar",
819
+ T: 8
820
+ /* ScalarType.BOOL */
821
+ },
822
+ { no: 5, name: "product_db_urls", kind: "scalar", T: 9, repeated: true },
823
+ { no: 6, name: "devlopment_db_urls", kind: "scalar", T: 9, repeated: true }
824
+ ]));
825
+ let ConfigDB = _ConfigDB;
826
+ const _ConfigMq = class _ConfigMq extends Message {
827
+ constructor(data) {
828
+ super();
829
+ /**
830
+ * @gotags: yaml:"group,omitempty"
831
+ *
832
+ * @generated from field: string group = 1;
833
+ */
834
+ __publicField(this, "group", "");
835
+ /**
836
+ * @gotags: yaml:"mqMain,omitempty"
837
+ *
838
+ * @generated from field: string amqp_url = 2;
839
+ */
840
+ __publicField(this, "amqpUrl", "");
841
+ /**
842
+ * @gotags: yaml:"queueNamePrefix,omitempty"
843
+ *
844
+ * @generated from field: string queue_name_prefix = 3;
845
+ */
846
+ __publicField(this, "queueNamePrefix", "");
847
+ /**
848
+ * @gotags: yaml:"nsqdAddr,omitempty"
849
+ *
850
+ * @generated from field: string nsqd_addr = 4;
851
+ */
852
+ __publicField(this, "nsqdAddr", "");
853
+ /**
854
+ * @gotags: yaml:"nsqdApiUrl,omitempty"
855
+ *
856
+ * @generated from field: string nsqd_api_url = 5;
857
+ */
858
+ __publicField(this, "nsqdApiUrl", "");
859
+ /**
860
+ * @gotags: yaml:"nsqdLookupUrl,omitempty"
861
+ *
862
+ * @generated from field: string nsqd_lookup_url = 6;
863
+ */
864
+ __publicField(this, "nsqdLookupUrl", "");
865
+ proto3.util.initPartial(data, this);
866
+ }
867
+ static fromBinary(bytes, options) {
868
+ return new _ConfigMq().fromBinary(bytes, options);
869
+ }
870
+ static fromJson(jsonValue, options) {
871
+ return new _ConfigMq().fromJson(jsonValue, options);
872
+ }
873
+ static fromJsonString(jsonString, options) {
874
+ return new _ConfigMq().fromJsonString(jsonString, options);
875
+ }
876
+ static equals(a, b) {
877
+ return proto3.util.equals(_ConfigMq, a, b);
878
+ }
879
+ };
880
+ __publicField(_ConfigMq, "runtime", proto3);
881
+ __publicField(_ConfigMq, "typeName", "sppb.ConfigMq");
882
+ __publicField(_ConfigMq, "fields", proto3.util.newFieldList(() => [
883
+ {
884
+ no: 1,
885
+ name: "group",
886
+ kind: "scalar",
887
+ T: 9
888
+ /* ScalarType.STRING */
889
+ },
890
+ {
891
+ no: 2,
892
+ name: "amqp_url",
893
+ kind: "scalar",
894
+ T: 9
895
+ /* ScalarType.STRING */
896
+ },
897
+ {
898
+ no: 3,
899
+ name: "queue_name_prefix",
900
+ kind: "scalar",
901
+ T: 9
902
+ /* ScalarType.STRING */
903
+ },
904
+ {
905
+ no: 4,
906
+ name: "nsqd_addr",
907
+ kind: "scalar",
908
+ T: 9
909
+ /* ScalarType.STRING */
910
+ },
911
+ {
912
+ no: 5,
913
+ name: "nsqd_api_url",
914
+ kind: "scalar",
915
+ T: 9
916
+ /* ScalarType.STRING */
917
+ },
918
+ {
919
+ no: 6,
920
+ name: "nsqd_lookup_url",
921
+ kind: "scalar",
922
+ T: 9
923
+ /* ScalarType.STRING */
924
+ }
925
+ ]));
926
+ let ConfigMq = _ConfigMq;
927
+ const _ConfigLog = class _ConfigLog extends Message {
928
+ constructor(data) {
929
+ super();
930
+ /**
931
+ * @gotags: yaml:"level,omitempty"
932
+ *
933
+ * @generated from field: string level = 1;
934
+ */
935
+ __publicField(this, "level", "");
936
+ /**
937
+ * 对应 promtail.yaml中的 client: url:, 用于向免费的 grafana.net 推送日志
938
+ *
939
+ * @gotags: yaml:"lokiPushUrl,omitempty"
940
+ *
941
+ * @generated from field: string loki_push_url = 2;
942
+ */
943
+ __publicField(this, "lokiPushUrl", "");
944
+ /**
945
+ * @gotags: yaml:fileLogEnabled",omitempty"
946
+ *
947
+ * @generated from field: bool file_log_enabled = 3;
948
+ */
949
+ __publicField(this, "fileLogEnabled", false);
950
+ /**
951
+ * @gotags: yaml:fileLogDir",omitempty"
952
+ *
953
+ * @generated from field: string file_log_dir = 4;
954
+ */
955
+ __publicField(this, "fileLogDir", "");
956
+ /**
957
+ * @gotags: yaml:withName",omitempty"
958
+ *
959
+ * @generated from field: optional string with_name = 5;
960
+ */
961
+ __publicField(this, "withName");
962
+ proto3.util.initPartial(data, this);
963
+ }
964
+ static fromBinary(bytes, options) {
965
+ return new _ConfigLog().fromBinary(bytes, options);
966
+ }
967
+ static fromJson(jsonValue, options) {
968
+ return new _ConfigLog().fromJson(jsonValue, options);
969
+ }
970
+ static fromJsonString(jsonString, options) {
971
+ return new _ConfigLog().fromJsonString(jsonString, options);
972
+ }
973
+ static equals(a, b) {
974
+ return proto3.util.equals(_ConfigLog, a, b);
975
+ }
976
+ };
977
+ __publicField(_ConfigLog, "runtime", proto3);
978
+ __publicField(_ConfigLog, "typeName", "sppb.ConfigLog");
979
+ __publicField(_ConfigLog, "fields", proto3.util.newFieldList(() => [
980
+ {
981
+ no: 1,
982
+ name: "level",
983
+ kind: "scalar",
984
+ T: 9
985
+ /* ScalarType.STRING */
986
+ },
987
+ {
988
+ no: 2,
989
+ name: "loki_push_url",
990
+ kind: "scalar",
991
+ T: 9
992
+ /* ScalarType.STRING */
993
+ },
994
+ {
995
+ no: 3,
996
+ name: "file_log_enabled",
997
+ kind: "scalar",
998
+ T: 8
999
+ /* ScalarType.BOOL */
1000
+ },
1001
+ {
1002
+ no: 4,
1003
+ name: "file_log_dir",
1004
+ kind: "scalar",
1005
+ T: 9
1006
+ /* ScalarType.STRING */
1007
+ },
1008
+ { no: 5, name: "with_name", kind: "scalar", T: 9, opt: true }
1009
+ ]));
1010
+ let ConfigLog = _ConfigLog;
1011
+ const _ConfigOtel = class _ConfigOtel extends Message {
1012
+ constructor(data) {
1013
+ super();
1014
+ /**
1015
+ * @gotags: yaml:"enabled,omitempty"
1016
+ *
1017
+ * @generated from field: bool enabled = 1;
1018
+ */
1019
+ __publicField(this, "enabled", false);
1020
+ /**
1021
+ * @gotags: yaml:"exporterOtlpProtocol,omitempty"
1022
+ *
1023
+ * @generated from field: string exporter_otlp_protocol = 2;
1024
+ */
1025
+ __publicField(this, "exporterOtlpProtocol", "");
1026
+ /**
1027
+ * @gotags: yaml:"exporterOtlpEndpoint,omitempty"
1028
+ *
1029
+ * @generated from field: string exporter_otlp_endpoint = 3;
1030
+ */
1031
+ __publicField(this, "exporterOtlpEndpoint", "");
1032
+ /**
1033
+ * @gotags: yaml:"exporterOtlpHeaders,omitempty"
1034
+ *
1035
+ * @generated from field: string exporter_otlp_headers = 4;
1036
+ */
1037
+ __publicField(this, "exporterOtlpHeaders", "");
1038
+ /**
1039
+ * @gotags: yaml:"svcName,omitempty"
1040
+ *
1041
+ * @generated from field: string svc_name = 5;
1042
+ */
1043
+ __publicField(this, "svcName", "");
1044
+ proto3.util.initPartial(data, this);
1045
+ }
1046
+ static fromBinary(bytes, options) {
1047
+ return new _ConfigOtel().fromBinary(bytes, options);
1048
+ }
1049
+ static fromJson(jsonValue, options) {
1050
+ return new _ConfigOtel().fromJson(jsonValue, options);
1051
+ }
1052
+ static fromJsonString(jsonString, options) {
1053
+ return new _ConfigOtel().fromJsonString(jsonString, options);
1054
+ }
1055
+ static equals(a, b) {
1056
+ return proto3.util.equals(_ConfigOtel, a, b);
1057
+ }
1058
+ };
1059
+ __publicField(_ConfigOtel, "runtime", proto3);
1060
+ __publicField(_ConfigOtel, "typeName", "sppb.ConfigOtel");
1061
+ __publicField(_ConfigOtel, "fields", proto3.util.newFieldList(() => [
1062
+ {
1063
+ no: 1,
1064
+ name: "enabled",
1065
+ kind: "scalar",
1066
+ T: 8
1067
+ /* ScalarType.BOOL */
1068
+ },
1069
+ {
1070
+ no: 2,
1071
+ name: "exporter_otlp_protocol",
1072
+ kind: "scalar",
1073
+ T: 9
1074
+ /* ScalarType.STRING */
1075
+ },
1076
+ {
1077
+ no: 3,
1078
+ name: "exporter_otlp_endpoint",
1079
+ kind: "scalar",
1080
+ T: 9
1081
+ /* ScalarType.STRING */
1082
+ },
1083
+ {
1084
+ no: 4,
1085
+ name: "exporter_otlp_headers",
1086
+ kind: "scalar",
1087
+ T: 9
1088
+ /* ScalarType.STRING */
1089
+ },
1090
+ {
1091
+ no: 5,
1092
+ name: "svc_name",
1093
+ kind: "scalar",
1094
+ T: 9
1095
+ /* ScalarType.STRING */
1096
+ }
1097
+ ]));
1098
+ let ConfigOtel = _ConfigOtel;
1099
+ const _ConfigMtg = class _ConfigMtg extends Message {
1100
+ constructor(data) {
1101
+ super();
1102
+ /**
1103
+ * @gotags: yaml:"httpProxyAddr,omitempty"
1104
+ *
1105
+ * @generated from field: string http_proxy_addr = 1;
1106
+ */
1107
+ __publicField(this, "httpProxyAddr", "");
1108
+ /**
1109
+ * @gotags: yaml:"httpProxyAddrTls,omitempty"
1110
+ *
1111
+ * @generated from field: string http_proxy_addr_tls = 2;
1112
+ */
1113
+ __publicField(this, "httpProxyAddrTls", "");
1114
+ proto3.util.initPartial(data, this);
1115
+ }
1116
+ static fromBinary(bytes, options) {
1117
+ return new _ConfigMtg().fromBinary(bytes, options);
1118
+ }
1119
+ static fromJson(jsonValue, options) {
1120
+ return new _ConfigMtg().fromJson(jsonValue, options);
1121
+ }
1122
+ static fromJsonString(jsonString, options) {
1123
+ return new _ConfigMtg().fromJsonString(jsonString, options);
1124
+ }
1125
+ static equals(a, b) {
1126
+ return proto3.util.equals(_ConfigMtg, a, b);
1127
+ }
1128
+ };
1129
+ __publicField(_ConfigMtg, "runtime", proto3);
1130
+ __publicField(_ConfigMtg, "typeName", "sppb.ConfigMtg");
1131
+ __publicField(_ConfigMtg, "fields", proto3.util.newFieldList(() => [
1132
+ {
1133
+ no: 1,
1134
+ name: "http_proxy_addr",
1135
+ kind: "scalar",
1136
+ T: 9
1137
+ /* ScalarType.STRING */
1138
+ },
1139
+ {
1140
+ no: 2,
1141
+ name: "http_proxy_addr_tls",
1142
+ kind: "scalar",
1143
+ T: 9
1144
+ /* ScalarType.STRING */
1145
+ }
1146
+ ]));
1147
+ let ConfigMtg = _ConfigMtg;
1148
+ const _ConfigGithub = class _ConfigGithub extends Message {
1149
+ constructor(data) {
1150
+ super();
1151
+ /**
1152
+ * @gotags: yaml:"ghToken,omitempty"
1153
+ *
1154
+ * @generated from field: string gh_token = 1;
1155
+ */
1156
+ __publicField(this, "ghToken", "");
1157
+ /**
1158
+ * @gotags: yaml:"ghUser,omitempty"
1159
+ *
1160
+ * @generated from field: string gh_user = 2;
1161
+ */
1162
+ __publicField(this, "ghUser", "");
1163
+ /**
1164
+ * @gotags: yaml:"ghMainRepo,omitempty"
1165
+ *
1166
+ * @generated from field: string gh_main_repo = 3;
1167
+ */
1168
+ __publicField(this, "ghMainRepo", "");
1169
+ /**
1170
+ * 自动化操作时,拉取源码存放的根目录
1171
+ *
1172
+ * @gotags: yaml:"workDir,omitempty"
1173
+ *
1174
+ * @generated from field: string work_dir = 4;
1175
+ */
1176
+ __publicField(this, "workDir", "");
1177
+ /**
1178
+ * @gotags: yaml:"ghAppId,omitempty"
1179
+ *
1180
+ * @generated from field: string gh_app_id = 5;
1181
+ */
1182
+ __publicField(this, "ghAppId", "");
1183
+ /**
1184
+ * @gotags: yaml:"ghClientId,omitempty"
1185
+ *
1186
+ * @generated from field: string gh_client_id = 6;
1187
+ */
1188
+ __publicField(this, "ghClientId", "");
1189
+ /**
1190
+ * @gotags: yaml:"ghClientSecret,omitempty"
1191
+ *
1192
+ * @generated from field: string gh_client_secret = 7;
1193
+ */
1194
+ __publicField(this, "ghClientSecret", "");
1195
+ proto3.util.initPartial(data, this);
1196
+ }
1197
+ static fromBinary(bytes, options) {
1198
+ return new _ConfigGithub().fromBinary(bytes, options);
1199
+ }
1200
+ static fromJson(jsonValue, options) {
1201
+ return new _ConfigGithub().fromJson(jsonValue, options);
1202
+ }
1203
+ static fromJsonString(jsonString, options) {
1204
+ return new _ConfigGithub().fromJsonString(jsonString, options);
1205
+ }
1206
+ static equals(a, b) {
1207
+ return proto3.util.equals(_ConfigGithub, a, b);
1208
+ }
1209
+ };
1210
+ __publicField(_ConfigGithub, "runtime", proto3);
1211
+ __publicField(_ConfigGithub, "typeName", "sppb.ConfigGithub");
1212
+ __publicField(_ConfigGithub, "fields", proto3.util.newFieldList(() => [
1213
+ {
1214
+ no: 1,
1215
+ name: "gh_token",
1216
+ kind: "scalar",
1217
+ T: 9
1218
+ /* ScalarType.STRING */
1219
+ },
1220
+ {
1221
+ no: 2,
1222
+ name: "gh_user",
1223
+ kind: "scalar",
1224
+ T: 9
1225
+ /* ScalarType.STRING */
1226
+ },
1227
+ {
1228
+ no: 3,
1229
+ name: "gh_main_repo",
1230
+ kind: "scalar",
1231
+ T: 9
1232
+ /* ScalarType.STRING */
1233
+ },
1234
+ {
1235
+ no: 4,
1236
+ name: "work_dir",
1237
+ kind: "scalar",
1238
+ T: 9
1239
+ /* ScalarType.STRING */
1240
+ },
1241
+ {
1242
+ no: 5,
1243
+ name: "gh_app_id",
1244
+ kind: "scalar",
1245
+ T: 9
1246
+ /* ScalarType.STRING */
1247
+ },
1248
+ {
1249
+ no: 6,
1250
+ name: "gh_client_id",
1251
+ kind: "scalar",
1252
+ T: 9
1253
+ /* ScalarType.STRING */
1254
+ },
1255
+ {
1256
+ no: 7,
1257
+ name: "gh_client_secret",
1258
+ kind: "scalar",
1259
+ T: 9
1260
+ /* ScalarType.STRING */
1261
+ }
1262
+ ]));
1263
+ let ConfigGithub = _ConfigGithub;
1264
+ const _ConfigSite = class _ConfigSite extends Message {
1265
+ constructor(data) {
1266
+ super();
1267
+ /**
1268
+ * @generated from field: string default_domain = 1;
1269
+ */
1270
+ __publicField(this, "defaultDomain", "");
1271
+ /**
1272
+ * @generated from field: uint32 default_site_id = 2;
1273
+ */
1274
+ __publicField(this, "defaultSiteId", 0);
1275
+ proto3.util.initPartial(data, this);
1276
+ }
1277
+ static fromBinary(bytes, options) {
1278
+ return new _ConfigSite().fromBinary(bytes, options);
1279
+ }
1280
+ static fromJson(jsonValue, options) {
1281
+ return new _ConfigSite().fromJson(jsonValue, options);
1282
+ }
1283
+ static fromJsonString(jsonString, options) {
1284
+ return new _ConfigSite().fromJsonString(jsonString, options);
1285
+ }
1286
+ static equals(a, b) {
1287
+ return proto3.util.equals(_ConfigSite, a, b);
1288
+ }
1289
+ };
1290
+ __publicField(_ConfigSite, "runtime", proto3);
1291
+ __publicField(_ConfigSite, "typeName", "sppb.ConfigSite");
1292
+ __publicField(_ConfigSite, "fields", proto3.util.newFieldList(() => [
1293
+ {
1294
+ no: 1,
1295
+ name: "default_domain",
1296
+ kind: "scalar",
1297
+ T: 9
1298
+ /* ScalarType.STRING */
1299
+ },
1300
+ {
1301
+ no: 2,
1302
+ name: "default_site_id",
1303
+ kind: "scalar",
1304
+ T: 13
1305
+ /* ScalarType.UINT32 */
1306
+ }
1307
+ ]));
1308
+ let ConfigSite = _ConfigSite;
1309
+ const _ConfigAuth = class _ConfigAuth extends Message {
1310
+ constructor(data) {
1311
+ super();
1312
+ /**
1313
+ * @gotags: yaml:"secret,omitempty"
1314
+ *
1315
+ * @generated from field: string secret = 1;
1316
+ */
1317
+ __publicField(this, "secret", "");
1318
+ proto3.util.initPartial(data, this);
1319
+ }
1320
+ static fromBinary(bytes, options) {
1321
+ return new _ConfigAuth().fromBinary(bytes, options);
1322
+ }
1323
+ static fromJson(jsonValue, options) {
1324
+ return new _ConfigAuth().fromJson(jsonValue, options);
1325
+ }
1326
+ static fromJsonString(jsonString, options) {
1327
+ return new _ConfigAuth().fromJsonString(jsonString, options);
1328
+ }
1329
+ static equals(a, b) {
1330
+ return proto3.util.equals(_ConfigAuth, a, b);
1331
+ }
1332
+ };
1333
+ __publicField(_ConfigAuth, "runtime", proto3);
1334
+ __publicField(_ConfigAuth, "typeName", "sppb.ConfigAuth");
1335
+ __publicField(_ConfigAuth, "fields", proto3.util.newFieldList(() => [
1336
+ {
1337
+ no: 1,
1338
+ name: "secret",
1339
+ kind: "scalar",
1340
+ T: 9
1341
+ /* ScalarType.STRING */
1342
+ }
1343
+ ]));
1344
+ let ConfigAuth = _ConfigAuth;
1345
+ const _ConfigWeb = class _ConfigWeb extends Message {
1346
+ constructor(data) {
1347
+ super();
1348
+ /**
1349
+ * @gotags: yaml:"endable,omitempty"
1350
+ *
1351
+ * @generated from field: bool enable = 1;
1352
+ */
1353
+ __publicField(this, "enable", false);
1354
+ /**
1355
+ * @gotags: yaml:"addr,omitempty"
1356
+ *
1357
+ * @generated from field: string addr = 2;
1358
+ */
1359
+ __publicField(this, "addr", "");
1360
+ /**
1361
+ * @gotags: yaml:"dir,omitempty"
1362
+ *
1363
+ * @generated from field: string dir = 3;
1364
+ */
1365
+ __publicField(this, "dir", "");
1366
+ /**
1367
+ * @gotags: yaml:"framework,omitempty"
1368
+ *
1369
+ * @generated from field: string framework = 4;
1370
+ */
1371
+ __publicField(this, "framework", "");
1372
+ /**
1373
+ * @gotags: yaml:"buildCommand,omitempty"
1374
+ *
1375
+ * @generated from field: string build_command = 5;
1376
+ */
1377
+ __publicField(this, "buildCommand", "");
1378
+ /**
1379
+ * @gotags: yaml:"runCommand,omitempty"
1380
+ *
1381
+ * @generated from field: string run_command = 6;
1382
+ */
1383
+ __publicField(this, "runCommand", "");
1384
+ proto3.util.initPartial(data, this);
1385
+ }
1386
+ static fromBinary(bytes, options) {
1387
+ return new _ConfigWeb().fromBinary(bytes, options);
1388
+ }
1389
+ static fromJson(jsonValue, options) {
1390
+ return new _ConfigWeb().fromJson(jsonValue, options);
1391
+ }
1392
+ static fromJsonString(jsonString, options) {
1393
+ return new _ConfigWeb().fromJsonString(jsonString, options);
1394
+ }
1395
+ static equals(a, b) {
1396
+ return proto3.util.equals(_ConfigWeb, a, b);
1397
+ }
1398
+ };
1399
+ __publicField(_ConfigWeb, "runtime", proto3);
1400
+ __publicField(_ConfigWeb, "typeName", "sppb.ConfigWeb");
1401
+ __publicField(_ConfigWeb, "fields", proto3.util.newFieldList(() => [
1402
+ {
1403
+ no: 1,
1404
+ name: "enable",
1405
+ kind: "scalar",
1406
+ T: 8
1407
+ /* ScalarType.BOOL */
1408
+ },
1409
+ {
1410
+ no: 2,
1411
+ name: "addr",
1412
+ kind: "scalar",
1413
+ T: 9
1414
+ /* ScalarType.STRING */
1415
+ },
1416
+ {
1417
+ no: 3,
1418
+ name: "dir",
1419
+ kind: "scalar",
1420
+ T: 9
1421
+ /* ScalarType.STRING */
1422
+ },
1423
+ {
1424
+ no: 4,
1425
+ name: "framework",
1426
+ kind: "scalar",
1427
+ T: 9
1428
+ /* ScalarType.STRING */
1429
+ },
1430
+ {
1431
+ no: 5,
1432
+ name: "build_command",
1433
+ kind: "scalar",
1434
+ T: 9
1435
+ /* ScalarType.STRING */
1436
+ },
1437
+ {
1438
+ no: 6,
1439
+ name: "run_command",
1440
+ kind: "scalar",
1441
+ T: 9
1442
+ /* ScalarType.STRING */
1443
+ }
1444
+ ]));
1445
+ let ConfigWeb = _ConfigWeb;
1446
+ const _ConfigMtkv = class _ConfigMtkv extends Message {
1447
+ constructor(data) {
1448
+ super();
1449
+ /**
1450
+ * @gotags: yaml:"forceMemory,omitempty"
1451
+ *
1452
+ * @generated from field: bool force_memory = 1;
1453
+ */
1454
+ __publicField(this, "forceMemory", false);
1455
+ proto3.util.initPartial(data, this);
1456
+ }
1457
+ static fromBinary(bytes, options) {
1458
+ return new _ConfigMtkv().fromBinary(bytes, options);
1459
+ }
1460
+ static fromJson(jsonValue, options) {
1461
+ return new _ConfigMtkv().fromJson(jsonValue, options);
1462
+ }
1463
+ static fromJsonString(jsonString, options) {
1464
+ return new _ConfigMtkv().fromJsonString(jsonString, options);
1465
+ }
1466
+ static equals(a, b) {
1467
+ return proto3.util.equals(_ConfigMtkv, a, b);
1468
+ }
1469
+ };
1470
+ __publicField(_ConfigMtkv, "runtime", proto3);
1471
+ __publicField(_ConfigMtkv, "typeName", "sppb.ConfigMtkv");
1472
+ __publicField(_ConfigMtkv, "fields", proto3.util.newFieldList(() => [
1473
+ {
1474
+ no: 1,
1475
+ name: "force_memory",
1476
+ kind: "scalar",
1477
+ T: 8
1478
+ /* ScalarType.BOOL */
1479
+ }
1480
+ ]));
1481
+ let ConfigMtkv = _ConfigMtkv;
1482
+ const _OnionConfig = class _OnionConfig extends Message {
1483
+ constructor(data) {
1484
+ super();
1485
+ /**
1486
+ * @gotags: yaml:"enabled,omitempty"
1487
+ *
1488
+ * @generated from field: bool enabled = 1;
1489
+ */
1490
+ __publicField(this, "enabled", false);
1491
+ /**
1492
+ * @gotags: yaml:"privateKey,omitempty"
1493
+ *
1494
+ * @generated from field: string private_key = 2;
1495
+ */
1496
+ __publicField(this, "privateKey", "");
1497
+ /**
1498
+ * @gotags: yaml:"onionId,omitempty"
1499
+ *
1500
+ * @generated from field: string onion_id = 3;
1501
+ */
1502
+ __publicField(this, "onionId", "");
1503
+ /**
1504
+ * @gotags: yaml:"listenAddr,omitempty"
1505
+ *
1506
+ * @generated from field: string listen_addr = 4;
1507
+ */
1508
+ __publicField(this, "listenAddr", "");
1509
+ proto3.util.initPartial(data, this);
1510
+ }
1511
+ static fromBinary(bytes, options) {
1512
+ return new _OnionConfig().fromBinary(bytes, options);
1513
+ }
1514
+ static fromJson(jsonValue, options) {
1515
+ return new _OnionConfig().fromJson(jsonValue, options);
1516
+ }
1517
+ static fromJsonString(jsonString, options) {
1518
+ return new _OnionConfig().fromJsonString(jsonString, options);
1519
+ }
1520
+ static equals(a, b) {
1521
+ return proto3.util.equals(_OnionConfig, a, b);
1522
+ }
1523
+ };
1524
+ __publicField(_OnionConfig, "runtime", proto3);
1525
+ __publicField(_OnionConfig, "typeName", "sppb.OnionConfig");
1526
+ __publicField(_OnionConfig, "fields", proto3.util.newFieldList(() => [
1527
+ {
1528
+ no: 1,
1529
+ name: "enabled",
1530
+ kind: "scalar",
1531
+ T: 8
1532
+ /* ScalarType.BOOL */
1533
+ },
1534
+ {
1535
+ no: 2,
1536
+ name: "private_key",
1537
+ kind: "scalar",
1538
+ T: 9
1539
+ /* ScalarType.STRING */
1540
+ },
1541
+ {
1542
+ no: 3,
1543
+ name: "onion_id",
1544
+ kind: "scalar",
1545
+ T: 9
1546
+ /* ScalarType.STRING */
1547
+ },
1548
+ {
1549
+ no: 4,
1550
+ name: "listen_addr",
1551
+ kind: "scalar",
1552
+ T: 9
1553
+ /* ScalarType.STRING */
1554
+ }
1555
+ ]));
1556
+ let OnionConfig = _OnionConfig;
1557
+ const _ConfigSshd = class _ConfigSshd extends Message {
1558
+ constructor(data) {
1559
+ super();
1560
+ /**
1561
+ * @gotags: yaml:"enabled,omitempty"
1562
+ *
1563
+ * @generated from field: bool enabled = 1;
1564
+ */
1565
+ __publicField(this, "enabled", false);
1566
+ /**
1567
+ * @gotags: yaml:"addr,omitempty"
1568
+ *
1569
+ * @generated from field: string addr = 2;
1570
+ */
1571
+ __publicField(this, "addr", "");
1572
+ /**
1573
+ * @gotags: yaml:"adminUserPassword,omitempty"
1574
+ *
1575
+ * @generated from field: string admin_user_password = 3;
1576
+ */
1577
+ __publicField(this, "adminUserPassword", "");
1578
+ /**
1579
+ * @gotags: yaml:"maxTimeout,omitempty"
1580
+ *
1581
+ * @generated from field: uint32 max_timeout = 4;
1582
+ */
1583
+ __publicField(this, "maxTimeout", 0);
1584
+ /**
1585
+ * @gotags: yaml:"idelTimeout,omitempty"
1586
+ *
1587
+ * @generated from field: uint32 idle_timeout = 5;
1588
+ */
1589
+ __publicField(this, "idleTimeout", 0);
1590
+ proto3.util.initPartial(data, this);
1591
+ }
1592
+ static fromBinary(bytes, options) {
1593
+ return new _ConfigSshd().fromBinary(bytes, options);
1594
+ }
1595
+ static fromJson(jsonValue, options) {
1596
+ return new _ConfigSshd().fromJson(jsonValue, options);
1597
+ }
1598
+ static fromJsonString(jsonString, options) {
1599
+ return new _ConfigSshd().fromJsonString(jsonString, options);
1600
+ }
1601
+ static equals(a, b) {
1602
+ return proto3.util.equals(_ConfigSshd, a, b);
1603
+ }
1604
+ };
1605
+ __publicField(_ConfigSshd, "runtime", proto3);
1606
+ __publicField(_ConfigSshd, "typeName", "sppb.ConfigSshd");
1607
+ __publicField(_ConfigSshd, "fields", proto3.util.newFieldList(() => [
1608
+ {
1609
+ no: 1,
1610
+ name: "enabled",
1611
+ kind: "scalar",
1612
+ T: 8
1613
+ /* ScalarType.BOOL */
1614
+ },
1615
+ {
1616
+ no: 2,
1617
+ name: "addr",
1618
+ kind: "scalar",
1619
+ T: 9
1620
+ /* ScalarType.STRING */
1621
+ },
1622
+ {
1623
+ no: 3,
1624
+ name: "admin_user_password",
1625
+ kind: "scalar",
1626
+ T: 9
1627
+ /* ScalarType.STRING */
1628
+ },
1629
+ {
1630
+ no: 4,
1631
+ name: "max_timeout",
1632
+ kind: "scalar",
1633
+ T: 13
1634
+ /* ScalarType.UINT32 */
1635
+ },
1636
+ {
1637
+ no: 5,
1638
+ name: "idle_timeout",
1639
+ kind: "scalar",
1640
+ T: 13
1641
+ /* ScalarType.UINT32 */
1642
+ }
1643
+ ]));
1644
+ let ConfigSshd = _ConfigSshd;
1645
+ const _ConfigP2p = class _ConfigP2p extends Message {
1646
+ constructor(data) {
1647
+ super();
1648
+ /**
1649
+ * @gotags: yaml:"enabled,omitempty"
1650
+ *
1651
+ * @generated from field: bool enabled = 1;
1652
+ */
1653
+ __publicField(this, "enabled", false);
1654
+ /**
1655
+ * @gotags: yaml:"privateKey,omitempty"
1656
+ *
1657
+ * @generated from field: string private_key = 2;
1658
+ */
1659
+ __publicField(this, "privateKey", "");
1660
+ /**
1661
+ * @gotags: yaml:"rendezvous,omitempty"
1662
+ *
1663
+ * @generated from field: string rendezvous = 3;
1664
+ */
1665
+ __publicField(this, "rendezvous", "");
1666
+ /**
1667
+ * @gotags: yaml:"enabledDht,omitempty"
1668
+ *
1669
+ * @generated from field: bool enabled_dht = 6;
1670
+ */
1671
+ __publicField(this, "enabledDht", false);
1672
+ proto3.util.initPartial(data, this);
1673
+ }
1674
+ static fromBinary(bytes, options) {
1675
+ return new _ConfigP2p().fromBinary(bytes, options);
1676
+ }
1677
+ static fromJson(jsonValue, options) {
1678
+ return new _ConfigP2p().fromJson(jsonValue, options);
1679
+ }
1680
+ static fromJsonString(jsonString, options) {
1681
+ return new _ConfigP2p().fromJsonString(jsonString, options);
1682
+ }
1683
+ static equals(a, b) {
1684
+ return proto3.util.equals(_ConfigP2p, a, b);
1685
+ }
1686
+ };
1687
+ __publicField(_ConfigP2p, "runtime", proto3);
1688
+ __publicField(_ConfigP2p, "typeName", "sppb.ConfigP2p");
1689
+ __publicField(_ConfigP2p, "fields", proto3.util.newFieldList(() => [
1690
+ {
1691
+ no: 1,
1692
+ name: "enabled",
1693
+ kind: "scalar",
1694
+ T: 8
1695
+ /* ScalarType.BOOL */
1696
+ },
1697
+ {
1698
+ no: 2,
1699
+ name: "private_key",
1700
+ kind: "scalar",
1701
+ T: 9
1702
+ /* ScalarType.STRING */
1703
+ },
1704
+ {
1705
+ no: 3,
1706
+ name: "rendezvous",
1707
+ kind: "scalar",
1708
+ T: 9
1709
+ /* ScalarType.STRING */
1710
+ },
1711
+ {
1712
+ no: 6,
1713
+ name: "enabled_dht",
1714
+ kind: "scalar",
1715
+ T: 8
1716
+ /* ScalarType.BOOL */
1717
+ }
1718
+ ]));
1719
+ let ConfigP2p = _ConfigP2p;
1720
+ const _ConfigCronjob = class _ConfigCronjob extends Message {
1721
+ constructor(data) {
1722
+ super();
1723
+ /**
1724
+ * @gotags: yaml:"enabled,omitempty"
1725
+ *
1726
+ * @generated from field: bool enabled = 1;
1727
+ */
1728
+ __publicField(this, "enabled", false);
1729
+ proto3.util.initPartial(data, this);
1730
+ }
1731
+ static fromBinary(bytes, options) {
1732
+ return new _ConfigCronjob().fromBinary(bytes, options);
1733
+ }
1734
+ static fromJson(jsonValue, options) {
1735
+ return new _ConfigCronjob().fromJson(jsonValue, options);
1736
+ }
1737
+ static fromJsonString(jsonString, options) {
1738
+ return new _ConfigCronjob().fromJsonString(jsonString, options);
1739
+ }
1740
+ static equals(a, b) {
1741
+ return proto3.util.equals(_ConfigCronjob, a, b);
1742
+ }
1743
+ };
1744
+ __publicField(_ConfigCronjob, "runtime", proto3);
1745
+ __publicField(_ConfigCronjob, "typeName", "sppb.ConfigCronjob");
1746
+ __publicField(_ConfigCronjob, "fields", proto3.util.newFieldList(() => [
1747
+ {
1748
+ no: 1,
1749
+ name: "enabled",
1750
+ kind: "scalar",
1751
+ T: 8
1752
+ /* ScalarType.BOOL */
1753
+ }
1754
+ ]));
1755
+ let ConfigCronjob = _ConfigCronjob;
1756
+ const _ConfigLineslog = class _ConfigLineslog extends Message {
1757
+ constructor(data) {
1758
+ super();
1759
+ /**
1760
+ * @gotags: yaml:"useMemory,omitempty"
1761
+ *
1762
+ * @generated from field: bool use_memory = 1;
1763
+ */
1764
+ __publicField(this, "useMemory", false);
1765
+ proto3.util.initPartial(data, this);
1766
+ }
1767
+ static fromBinary(bytes, options) {
1768
+ return new _ConfigLineslog().fromBinary(bytes, options);
1769
+ }
1770
+ static fromJson(jsonValue, options) {
1771
+ return new _ConfigLineslog().fromJson(jsonValue, options);
1772
+ }
1773
+ static fromJsonString(jsonString, options) {
1774
+ return new _ConfigLineslog().fromJsonString(jsonString, options);
1775
+ }
1776
+ static equals(a, b) {
1777
+ return proto3.util.equals(_ConfigLineslog, a, b);
1778
+ }
1779
+ };
1780
+ __publicField(_ConfigLineslog, "runtime", proto3);
1781
+ __publicField(_ConfigLineslog, "typeName", "sppb.ConfigLineslog");
1782
+ __publicField(_ConfigLineslog, "fields", proto3.util.newFieldList(() => [
1783
+ {
1784
+ no: 1,
1785
+ name: "use_memory",
1786
+ kind: "scalar",
1787
+ T: 8
1788
+ /* ScalarType.BOOL */
1789
+ }
1790
+ ]));
1791
+ let ConfigLineslog = _ConfigLineslog;
1792
+ const _LocalStorage = class _LocalStorage extends Message {
1793
+ constructor(data) {
1794
+ super();
1795
+ /**
1796
+ * @gotags: yaml:"dirBase,omitempty"
1797
+ *
1798
+ * @generated from field: string dir_base = 1;
1799
+ */
1800
+ __publicField(this, "dirBase", "");
1801
+ /**
1802
+ * @gotags: yaml:"dirBin,omitempty"
1803
+ *
1804
+ * @generated from field: string dir_bin = 2;
1805
+ */
1806
+ __publicField(this, "dirBin", "");
1807
+ proto3.util.initPartial(data, this);
1808
+ }
1809
+ static fromBinary(bytes, options) {
1810
+ return new _LocalStorage().fromBinary(bytes, options);
1811
+ }
1812
+ static fromJson(jsonValue, options) {
1813
+ return new _LocalStorage().fromJson(jsonValue, options);
1814
+ }
1815
+ static fromJsonString(jsonString, options) {
1816
+ return new _LocalStorage().fromJsonString(jsonString, options);
1817
+ }
1818
+ static equals(a, b) {
1819
+ return proto3.util.equals(_LocalStorage, a, b);
1820
+ }
1821
+ };
1822
+ __publicField(_LocalStorage, "runtime", proto3);
1823
+ __publicField(_LocalStorage, "typeName", "sppb.LocalStorage");
1824
+ __publicField(_LocalStorage, "fields", proto3.util.newFieldList(() => [
1825
+ {
1826
+ no: 1,
1827
+ name: "dir_base",
1828
+ kind: "scalar",
1829
+ T: 9
1830
+ /* ScalarType.STRING */
1831
+ },
1832
+ {
1833
+ no: 2,
1834
+ name: "dir_bin",
1835
+ kind: "scalar",
1836
+ T: 9
1837
+ /* ScalarType.STRING */
1838
+ }
1839
+ ]));
1840
+ let LocalStorage = _LocalStorage;
1841
+ const _ConfigPs = class _ConfigPs extends Message {
1842
+ constructor(data) {
1843
+ super();
1844
+ /**
1845
+ * @gotags: yaml:"cmdChannels,omitempty"
1846
+ *
1847
+ * @generated from field: repeated sppb.CmdChannel cmd_channels = 1;
1848
+ */
1849
+ __publicField(this, "cmdChannels", []);
1850
+ /**
1851
+ * @gotags: yaml:"eventsTopic,omitempty"
1852
+ *
1853
+ * @generated from field: string events_topic = 2;
1854
+ */
1855
+ __publicField(this, "eventsTopic", "");
1856
+ proto3.util.initPartial(data, this);
1857
+ }
1858
+ static fromBinary(bytes, options) {
1859
+ return new _ConfigPs().fromBinary(bytes, options);
1860
+ }
1861
+ static fromJson(jsonValue, options) {
1862
+ return new _ConfigPs().fromJson(jsonValue, options);
1863
+ }
1864
+ static fromJsonString(jsonString, options) {
1865
+ return new _ConfigPs().fromJsonString(jsonString, options);
1866
+ }
1867
+ static equals(a, b) {
1868
+ return proto3.util.equals(_ConfigPs, a, b);
1869
+ }
1870
+ };
1871
+ __publicField(_ConfigPs, "runtime", proto3);
1872
+ __publicField(_ConfigPs, "typeName", "sppb.ConfigPs");
1873
+ __publicField(_ConfigPs, "fields", proto3.util.newFieldList(() => [
1874
+ { no: 1, name: "cmd_channels", kind: "message", T: CmdChannel, repeated: true },
1875
+ {
1876
+ no: 2,
1877
+ name: "events_topic",
1878
+ kind: "scalar",
1879
+ T: 9
1880
+ /* ScalarType.STRING */
1881
+ }
1882
+ ]));
1883
+ let ConfigPs = _ConfigPs;
1884
+ const _CmdChannel = class _CmdChannel extends Message {
1885
+ constructor(data) {
1886
+ super();
1887
+ /**
1888
+ * @generated from field: string type = 1;
1889
+ */
1890
+ __publicField(this, "type", "");
1891
+ /**
1892
+ * @generated from field: string url = 2;
1893
+ */
1894
+ __publicField(this, "url", "");
1895
+ /**
1896
+ * @generated from field: string group = 3;
1897
+ */
1898
+ __publicField(this, "group", "");
1899
+ /**
1900
+ * @generated from field: string topic = 4;
1901
+ */
1902
+ __publicField(this, "topic", "");
1903
+ proto3.util.initPartial(data, this);
1904
+ }
1905
+ static fromBinary(bytes, options) {
1906
+ return new _CmdChannel().fromBinary(bytes, options);
1907
+ }
1908
+ static fromJson(jsonValue, options) {
1909
+ return new _CmdChannel().fromJson(jsonValue, options);
1910
+ }
1911
+ static fromJsonString(jsonString, options) {
1912
+ return new _CmdChannel().fromJsonString(jsonString, options);
1913
+ }
1914
+ static equals(a, b) {
1915
+ return proto3.util.equals(_CmdChannel, a, b);
1916
+ }
1917
+ };
1918
+ __publicField(_CmdChannel, "runtime", proto3);
1919
+ __publicField(_CmdChannel, "typeName", "sppb.CmdChannel");
1920
+ __publicField(_CmdChannel, "fields", proto3.util.newFieldList(() => [
1921
+ {
1922
+ no: 1,
1923
+ name: "type",
1924
+ kind: "scalar",
1925
+ T: 9
1926
+ /* ScalarType.STRING */
1927
+ },
1928
+ {
1929
+ no: 2,
1930
+ name: "url",
1931
+ kind: "scalar",
1932
+ T: 9
1933
+ /* ScalarType.STRING */
1934
+ },
1935
+ {
1936
+ no: 3,
1937
+ name: "group",
1938
+ kind: "scalar",
1939
+ T: 9
1940
+ /* ScalarType.STRING */
1941
+ },
1942
+ {
1943
+ no: 4,
1944
+ name: "topic",
1945
+ kind: "scalar",
1946
+ T: 9
1947
+ /* ScalarType.STRING */
1948
+ }
1949
+ ]));
1950
+ let CmdChannel = _CmdChannel;
1951
+ const _ConfGetReq = class _ConfGetReq extends Message {
1952
+ constructor(data) {
1953
+ super();
1954
+ /**
1955
+ * @generated from field: uint32 id = 1;
1956
+ */
1957
+ __publicField(this, "id", 0);
1958
+ /**
1959
+ * @generated from field: string profile = 2;
1960
+ */
1961
+ __publicField(this, "profile", "");
1962
+ /**
1963
+ * 本机唯一识别码
1964
+ *
1965
+ * @generated from field: string host_id = 3;
1966
+ */
1967
+ __publicField(this, "hostId", "");
1968
+ /**
1969
+ * 在profile 基础上细分
1970
+ *
1971
+ * @generated from field: string bot_type = 4;
1972
+ */
1973
+ __publicField(this, "botType", "");
1974
+ proto3.util.initPartial(data, this);
1975
+ }
1976
+ static fromBinary(bytes, options) {
1977
+ return new _ConfGetReq().fromBinary(bytes, options);
1978
+ }
1979
+ static fromJson(jsonValue, options) {
1980
+ return new _ConfGetReq().fromJson(jsonValue, options);
1981
+ }
1982
+ static fromJsonString(jsonString, options) {
1983
+ return new _ConfGetReq().fromJsonString(jsonString, options);
1984
+ }
1985
+ static equals(a, b) {
1986
+ return proto3.util.equals(_ConfGetReq, a, b);
1987
+ }
1988
+ };
1989
+ __publicField(_ConfGetReq, "runtime", proto3);
1990
+ __publicField(_ConfGetReq, "typeName", "sppb.ConfGetReq");
1991
+ __publicField(_ConfGetReq, "fields", proto3.util.newFieldList(() => [
1992
+ {
1993
+ no: 1,
1994
+ name: "id",
1995
+ kind: "scalar",
1996
+ T: 13
1997
+ /* ScalarType.UINT32 */
1998
+ },
1999
+ {
2000
+ no: 2,
2001
+ name: "profile",
2002
+ kind: "scalar",
2003
+ T: 9
2004
+ /* ScalarType.STRING */
2005
+ },
2006
+ {
2007
+ no: 3,
2008
+ name: "host_id",
2009
+ kind: "scalar",
2010
+ T: 9
2011
+ /* ScalarType.STRING */
2012
+ },
2013
+ {
2014
+ no: 4,
2015
+ name: "bot_type",
2016
+ kind: "scalar",
2017
+ T: 9
2018
+ /* ScalarType.STRING */
2019
+ }
2020
+ ]));
2021
+ let ConfGetReq = _ConfGetReq;
2022
+ const _ConfListReq = class _ConfListReq extends Message {
2023
+ constructor(data) {
2024
+ super();
2025
+ /**
2026
+ * @generated from field: sppb.Paging Pagination = 1;
2027
+ */
2028
+ __publicField(this, "Pagination");
2029
+ /**
2030
+ * @generated from field: string q = 2;
2031
+ */
2032
+ __publicField(this, "q", "");
2033
+ proto3.util.initPartial(data, this);
2034
+ }
2035
+ static fromBinary(bytes, options) {
2036
+ return new _ConfListReq().fromBinary(bytes, options);
2037
+ }
2038
+ static fromJson(jsonValue, options) {
2039
+ return new _ConfListReq().fromJson(jsonValue, options);
2040
+ }
2041
+ static fromJsonString(jsonString, options) {
2042
+ return new _ConfListReq().fromJsonString(jsonString, options);
2043
+ }
2044
+ static equals(a, b) {
2045
+ return proto3.util.equals(_ConfListReq, a, b);
2046
+ }
2047
+ };
2048
+ __publicField(_ConfListReq, "runtime", proto3);
2049
+ __publicField(_ConfListReq, "typeName", "sppb.ConfListReq");
2050
+ __publicField(_ConfListReq, "fields", proto3.util.newFieldList(() => [
2051
+ { no: 1, name: "Pagination", kind: "message", T: Paging },
2052
+ {
2053
+ no: 2,
2054
+ name: "q",
2055
+ kind: "scalar",
2056
+ T: 9
2057
+ /* ScalarType.STRING */
2058
+ }
2059
+ ]));
2060
+ let ConfListReq = _ConfListReq;
2061
+ const _ConfigItem = class _ConfigItem extends Message {
2062
+ constructor(data) {
2063
+ super();
2064
+ /**
2065
+ * @generated from field: uint32 id = 1;
2066
+ */
2067
+ __publicField(this, "id", 0);
2068
+ /**
2069
+ * @generated from field: string content = 2;
2070
+ */
2071
+ __publicField(this, "content", "");
2072
+ /**
2073
+ * @generated from field: bool enabled = 3;
2074
+ */
2075
+ __publicField(this, "enabled", false);
2076
+ proto3.util.initPartial(data, this);
2077
+ }
2078
+ static fromBinary(bytes, options) {
2079
+ return new _ConfigItem().fromBinary(bytes, options);
2080
+ }
2081
+ static fromJson(jsonValue, options) {
2082
+ return new _ConfigItem().fromJson(jsonValue, options);
2083
+ }
2084
+ static fromJsonString(jsonString, options) {
2085
+ return new _ConfigItem().fromJsonString(jsonString, options);
2086
+ }
2087
+ static equals(a, b) {
2088
+ return proto3.util.equals(_ConfigItem, a, b);
2089
+ }
2090
+ };
2091
+ __publicField(_ConfigItem, "runtime", proto3);
2092
+ __publicField(_ConfigItem, "typeName", "sppb.ConfigItem");
2093
+ __publicField(_ConfigItem, "fields", proto3.util.newFieldList(() => [
2094
+ {
2095
+ no: 1,
2096
+ name: "id",
2097
+ kind: "scalar",
2098
+ T: 13
2099
+ /* ScalarType.UINT32 */
2100
+ },
2101
+ {
2102
+ no: 2,
2103
+ name: "content",
2104
+ kind: "scalar",
2105
+ T: 9
2106
+ /* ScalarType.STRING */
2107
+ },
2108
+ {
2109
+ no: 3,
2110
+ name: "enabled",
2111
+ kind: "scalar",
2112
+ T: 8
2113
+ /* ScalarType.BOOL */
2114
+ }
2115
+ ]));
2116
+ let ConfigItem = _ConfigItem;
2117
+ const _ConfListRes = class _ConfListRes extends Message {
2118
+ constructor(data) {
2119
+ super();
2120
+ /**
2121
+ * @generated from field: sppb.Paging Pagination = 1;
2122
+ */
2123
+ __publicField(this, "Pagination");
2124
+ /**
2125
+ * @generated from field: int32 Total = 2;
2126
+ */
2127
+ __publicField(this, "Total", 0);
2128
+ /**
2129
+ * @generated from field: repeated sppb.ConfigItem items = 3;
2130
+ */
2131
+ __publicField(this, "items", []);
2132
+ proto3.util.initPartial(data, this);
2133
+ }
2134
+ static fromBinary(bytes, options) {
2135
+ return new _ConfListRes().fromBinary(bytes, options);
2136
+ }
2137
+ static fromJson(jsonValue, options) {
2138
+ return new _ConfListRes().fromJson(jsonValue, options);
2139
+ }
2140
+ static fromJsonString(jsonString, options) {
2141
+ return new _ConfListRes().fromJsonString(jsonString, options);
2142
+ }
2143
+ static equals(a, b) {
2144
+ return proto3.util.equals(_ConfListRes, a, b);
2145
+ }
2146
+ };
2147
+ __publicField(_ConfListRes, "runtime", proto3);
2148
+ __publicField(_ConfListRes, "typeName", "sppb.ConfListRes");
2149
+ __publicField(_ConfListRes, "fields", proto3.util.newFieldList(() => [
2150
+ { no: 1, name: "Pagination", kind: "message", T: Paging },
2151
+ {
2152
+ no: 2,
2153
+ name: "Total",
2154
+ kind: "scalar",
2155
+ T: 5
2156
+ /* ScalarType.INT32 */
2157
+ },
2158
+ { no: 3, name: "items", kind: "message", T: ConfigItem, repeated: true }
2159
+ ]));
2160
+ let ConfListRes = _ConfListRes;
2161
+ const _ConfCreateReq = class _ConfCreateReq extends Message {
2162
+ constructor(data) {
2163
+ super();
2164
+ /**
2165
+ * @generated from field: string id = 1;
2166
+ */
2167
+ __publicField(this, "id", "");
2168
+ /**
2169
+ * @generated from field: string content = 2;
2170
+ */
2171
+ __publicField(this, "content", "");
2172
+ proto3.util.initPartial(data, this);
2173
+ }
2174
+ static fromBinary(bytes, options) {
2175
+ return new _ConfCreateReq().fromBinary(bytes, options);
2176
+ }
2177
+ static fromJson(jsonValue, options) {
2178
+ return new _ConfCreateReq().fromJson(jsonValue, options);
2179
+ }
2180
+ static fromJsonString(jsonString, options) {
2181
+ return new _ConfCreateReq().fromJsonString(jsonString, options);
2182
+ }
2183
+ static equals(a, b) {
2184
+ return proto3.util.equals(_ConfCreateReq, a, b);
2185
+ }
2186
+ };
2187
+ __publicField(_ConfCreateReq, "runtime", proto3);
2188
+ __publicField(_ConfCreateReq, "typeName", "sppb.ConfCreateReq");
2189
+ __publicField(_ConfCreateReq, "fields", proto3.util.newFieldList(() => [
2190
+ {
2191
+ no: 1,
2192
+ name: "id",
2193
+ kind: "scalar",
2194
+ T: 9
2195
+ /* ScalarType.STRING */
2196
+ },
2197
+ {
2198
+ no: 2,
2199
+ name: "content",
2200
+ kind: "scalar",
2201
+ T: 9
2202
+ /* ScalarType.STRING */
2203
+ }
2204
+ ]));
2205
+ let ConfCreateReq = _ConfCreateReq;
2206
+ const _ConfUpdateReq = class _ConfUpdateReq extends Message {
2207
+ constructor(data) {
2208
+ super();
2209
+ /**
2210
+ * @generated from field: string id = 1;
2211
+ */
2212
+ __publicField(this, "id", "");
2213
+ /**
2214
+ * @generated from field: string content = 2;
2215
+ */
2216
+ __publicField(this, "content", "");
2217
+ /**
2218
+ * @generated from field: bool enabled = 3;
2219
+ */
2220
+ __publicField(this, "enabled", false);
2221
+ proto3.util.initPartial(data, this);
2222
+ }
2223
+ static fromBinary(bytes, options) {
2224
+ return new _ConfUpdateReq().fromBinary(bytes, options);
2225
+ }
2226
+ static fromJson(jsonValue, options) {
2227
+ return new _ConfUpdateReq().fromJson(jsonValue, options);
2228
+ }
2229
+ static fromJsonString(jsonString, options) {
2230
+ return new _ConfUpdateReq().fromJsonString(jsonString, options);
2231
+ }
2232
+ static equals(a, b) {
2233
+ return proto3.util.equals(_ConfUpdateReq, a, b);
2234
+ }
2235
+ };
2236
+ __publicField(_ConfUpdateReq, "runtime", proto3);
2237
+ __publicField(_ConfUpdateReq, "typeName", "sppb.ConfUpdateReq");
2238
+ __publicField(_ConfUpdateReq, "fields", proto3.util.newFieldList(() => [
2239
+ {
2240
+ no: 1,
2241
+ name: "id",
2242
+ kind: "scalar",
2243
+ T: 9
2244
+ /* ScalarType.STRING */
2245
+ },
2246
+ {
2247
+ no: 2,
2248
+ name: "content",
2249
+ kind: "scalar",
2250
+ T: 9
2251
+ /* ScalarType.STRING */
2252
+ },
2253
+ {
2254
+ no: 3,
2255
+ name: "enabled",
2256
+ kind: "scalar",
2257
+ T: 8
2258
+ /* ScalarType.BOOL */
2259
+ }
2260
+ ]));
2261
+ let ConfUpdateReq = _ConfUpdateReq;
2262
+ const _ConfGetRes = class _ConfGetRes extends Message {
2263
+ constructor(data) {
2264
+ super();
2265
+ /**
2266
+ * @generated from field: uint32 id = 1;
2267
+ */
2268
+ __publicField(this, "id", 0);
2269
+ /**
2270
+ * @generated from field: string content = 2;
2271
+ */
2272
+ __publicField(this, "content", "");
2273
+ /**
2274
+ * @generated from field: bool enabled = 3;
2275
+ */
2276
+ __publicField(this, "enabled", false);
2277
+ /**
2278
+ * @generated from field: sppb.Config config = 4;
2279
+ */
2280
+ __publicField(this, "config");
2281
+ proto3.util.initPartial(data, this);
2282
+ }
2283
+ static fromBinary(bytes, options) {
2284
+ return new _ConfGetRes().fromBinary(bytes, options);
2285
+ }
2286
+ static fromJson(jsonValue, options) {
2287
+ return new _ConfGetRes().fromJson(jsonValue, options);
2288
+ }
2289
+ static fromJsonString(jsonString, options) {
2290
+ return new _ConfGetRes().fromJsonString(jsonString, options);
2291
+ }
2292
+ static equals(a, b) {
2293
+ return proto3.util.equals(_ConfGetRes, a, b);
2294
+ }
2295
+ };
2296
+ __publicField(_ConfGetRes, "runtime", proto3);
2297
+ __publicField(_ConfGetRes, "typeName", "sppb.ConfGetRes");
2298
+ __publicField(_ConfGetRes, "fields", proto3.util.newFieldList(() => [
2299
+ {
2300
+ no: 1,
2301
+ name: "id",
2302
+ kind: "scalar",
2303
+ T: 13
2304
+ /* ScalarType.UINT32 */
2305
+ },
2306
+ {
2307
+ no: 2,
2308
+ name: "content",
2309
+ kind: "scalar",
2310
+ T: 9
2311
+ /* ScalarType.STRING */
2312
+ },
2313
+ {
2314
+ no: 3,
2315
+ name: "enabled",
2316
+ kind: "scalar",
2317
+ T: 8
2318
+ /* ScalarType.BOOL */
2319
+ },
2320
+ { no: 4, name: "config", kind: "message", T: Config }
2321
+ ]));
2322
+ let ConfGetRes = _ConfGetRes;
2323
+ export {
2324
+ CftConfig,
2325
+ CftConfig_IngressItem,
2326
+ CftConfig_OriginRequest,
2327
+ CmdChannel,
2328
+ ConfCreateReq,
2329
+ ConfGetReq,
2330
+ ConfGetRes,
2331
+ ConfListReq,
2332
+ ConfListRes,
2333
+ ConfUpdateReq,
2334
+ Config,
2335
+ ConfigAuth,
2336
+ ConfigCronjob,
2337
+ ConfigDB,
2338
+ ConfigGithub,
2339
+ ConfigItem,
2340
+ ConfigLineslog,
2341
+ ConfigLog,
2342
+ ConfigMq,
2343
+ ConfigMtg,
2344
+ ConfigMtkv,
2345
+ ConfigOtel,
2346
+ ConfigP2p,
2347
+ ConfigPs,
2348
+ ConfigServer,
2349
+ ConfigServer_Http,
2350
+ ConfigSite,
2351
+ ConfigSshd,
2352
+ ConfigTailscale,
2353
+ ConfigWeb,
2354
+ ConfigWebApp,
2355
+ LocalStorage,
2356
+ OnionConfig
2357
+ };