jr-common-micro 1.1.95 → 1.1.97

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 (38) hide show
  1. package/dist/proto/micro/v1/index.d.ts +2 -0
  2. package/dist/proto/micro/v1/index.js +3 -1
  3. package/dist/proto/micro/v1/mining/index.d.ts +3 -0
  4. package/dist/proto/micro/v1/mining/index.js +7 -0
  5. package/dist/proto/micro/v1/mining/mining_messages_nest.d.ts +270 -0
  6. package/dist/proto/micro/v1/mining/mining_messages_nest.js +5 -0
  7. package/dist/proto/micro/v1/mining/mining_messages_pb.d.ts +582 -0
  8. package/dist/proto/micro/v1/mining/mining_messages_pb.js +1280 -0
  9. package/dist/proto/micro/v1/mining/services_connect.d.ts +116 -0
  10. package/dist/proto/micro/v1/mining/services_connect.js +119 -0
  11. package/dist/proto/micro/v1/mining/services_nest.d.ts +48 -0
  12. package/dist/proto/micro/v1/mining/services_nest.js +41 -0
  13. package/dist/proto/micro/v1/notification/notification_messages_nest.d.ts +18 -0
  14. package/dist/proto/micro/v1/notification/notification_messages_pb.d.ts +22 -0
  15. package/dist/proto/micro/v1/notification/notification_messages_pb.js +44 -1
  16. package/dist/proto/micro/v1/notification/services_connect.d.ts +7 -1
  17. package/dist/proto/micro/v1/notification/services_connect.js +6 -0
  18. package/dist/proto/micro/v1/notification/services_nest.d.ts +3 -1
  19. package/dist/proto/micro/v1/notification/services_nest.js +1 -0
  20. package/dist/proto/micro/v1/support/index.d.ts +3 -0
  21. package/dist/proto/micro/v1/support/index.js +7 -0
  22. package/dist/proto/micro/v1/support/services_connect.d.ts +56 -0
  23. package/dist/proto/micro/v1/support/services_connect.js +59 -0
  24. package/dist/proto/micro/v1/support/services_nest.d.ts +28 -0
  25. package/dist/proto/micro/v1/support/services_nest.js +31 -0
  26. package/dist/proto/micro/v1/support/support_messages_nest.d.ts +70 -0
  27. package/dist/proto/micro/v1/support/support_messages_nest.js +5 -0
  28. package/dist/proto/micro/v1/support/support_messages_pb.d.ts +142 -0
  29. package/dist/proto/micro/v1/support/support_messages_pb.js +310 -0
  30. package/dist/utils/constants.d.ts +2 -0
  31. package/dist/utils/constants.js +3 -1
  32. package/package.json +1 -1
  33. package/proto/micro/v1/mining/mining_messages.proto +366 -0
  34. package/proto/micro/v1/mining/services.proto +45 -0
  35. package/proto/micro/v1/notification/notification_messages.proto +19 -0
  36. package/proto/micro/v1/notification/services.proto +3 -0
  37. package/proto/micro/v1/support/services.proto +24 -0
  38. package/proto/micro/v1/support/support_messages.proto +96 -0
@@ -0,0 +1,1280 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SetParameterRequest = exports.ParametersResponse = exports.ParameterItem = exports.AdminOverviewResponse = exports.AdminTopReferrer = exports.AdminTaskStat = exports.AdminSeries = exports.AdminSeriesPoint = exports.AdminMetric = exports.AdminOverviewRequest = exports.ResolveCodeResponse = exports.ResolveCodeRequest = exports.EnrollResponse = exports.EnrollRequest = exports.UpdateSettingsRequest = exports.HistoryResponse = exports.HistoryDay = exports.HistoryItem = exports.HistoryRequest = exports.TeamResponse = exports.SetTeamRequest = exports.ClaimResponse = exports.ReferralListResponse = exports.ReferralListRequest = exports.ReferralItem = exports.TaskEventResponse = exports.TaskEventRequest = exports.TasksResponse = exports.MiningMeResponse = exports.MiningState = exports.MiningSettings = exports.TasksSummary = exports.TaskInfo = exports.TeamInfo = exports.TeamMember = exports.ReferralInfo = exports.HalvingInfo = exports.RateInfo = exports.SessionInfo = void 0;
4
+ const protobuf_1 = require("@bufbuild/protobuf");
5
+ const general_pb_js_1 = require("../general_pb.js");
6
+ class SessionInfo extends protobuf_1.Message {
7
+ id = "";
8
+ startedAt = "";
9
+ endsAt = "";
10
+ closedAt = "";
11
+ earned = "";
12
+ settledAt = "";
13
+ projected = "";
14
+ open = false;
15
+ constructor(data) {
16
+ super();
17
+ protobuf_1.proto3.util.initPartial(data, this);
18
+ }
19
+ static runtime = protobuf_1.proto3;
20
+ static typeName = "micro.v1.mining.SessionInfo";
21
+ static fields = protobuf_1.proto3.util.newFieldList(() => [
22
+ { no: 1, name: "id", kind: "scalar", T: 9 },
23
+ { no: 2, name: "started_at", kind: "scalar", T: 9 },
24
+ { no: 3, name: "ends_at", kind: "scalar", T: 9 },
25
+ { no: 4, name: "closed_at", kind: "scalar", T: 9 },
26
+ { no: 5, name: "earned", kind: "scalar", T: 9 },
27
+ { no: 6, name: "settled_at", kind: "scalar", T: 9 },
28
+ { no: 7, name: "projected", kind: "scalar", T: 9 },
29
+ { no: 8, name: "open", kind: "scalar", T: 8 },
30
+ ]);
31
+ static fromBinary(bytes, options) {
32
+ return new SessionInfo().fromBinary(bytes, options);
33
+ }
34
+ static fromJson(jsonValue, options) {
35
+ return new SessionInfo().fromJson(jsonValue, options);
36
+ }
37
+ static fromJsonString(jsonString, options) {
38
+ return new SessionInfo().fromJsonString(jsonString, options);
39
+ }
40
+ static equals(a, b) {
41
+ return protobuf_1.proto3.util.equals(SessionInfo, a, b);
42
+ }
43
+ }
44
+ exports.SessionInfo = SessionInfo;
45
+ class RateInfo extends protobuf_1.Message {
46
+ base = "";
47
+ badge = "";
48
+ badgeBase = "";
49
+ ownTasks = "";
50
+ teamShare = "";
51
+ fullTeam = "";
52
+ fullTeamReady = 0;
53
+ fullTeamSize = 0;
54
+ multiplier = "";
55
+ cap = "";
56
+ hourly = "";
57
+ constructor(data) {
58
+ super();
59
+ protobuf_1.proto3.util.initPartial(data, this);
60
+ }
61
+ static runtime = protobuf_1.proto3;
62
+ static typeName = "micro.v1.mining.RateInfo";
63
+ static fields = protobuf_1.proto3.util.newFieldList(() => [
64
+ { no: 1, name: "base", kind: "scalar", T: 9 },
65
+ { no: 2, name: "badge", kind: "scalar", T: 9 },
66
+ { no: 3, name: "badge_base", kind: "scalar", T: 9 },
67
+ { no: 4, name: "own_tasks", kind: "scalar", T: 9 },
68
+ { no: 5, name: "team_share", kind: "scalar", T: 9 },
69
+ { no: 6, name: "full_team", kind: "scalar", T: 9 },
70
+ { no: 7, name: "full_team_ready", kind: "scalar", T: 5 },
71
+ { no: 8, name: "full_team_size", kind: "scalar", T: 5 },
72
+ { no: 9, name: "multiplier", kind: "scalar", T: 9 },
73
+ { no: 10, name: "cap", kind: "scalar", T: 9 },
74
+ { no: 11, name: "hourly", kind: "scalar", T: 9 },
75
+ ]);
76
+ static fromBinary(bytes, options) {
77
+ return new RateInfo().fromBinary(bytes, options);
78
+ }
79
+ static fromJson(jsonValue, options) {
80
+ return new RateInfo().fromJson(jsonValue, options);
81
+ }
82
+ static fromJsonString(jsonString, options) {
83
+ return new RateInfo().fromJsonString(jsonString, options);
84
+ }
85
+ static equals(a, b) {
86
+ return protobuf_1.proto3.util.equals(RateInfo, a, b);
87
+ }
88
+ }
89
+ exports.RateInfo = RateInfo;
90
+ class HalvingInfo extends protobuf_1.Message {
91
+ users = 0;
92
+ nextThreshold = 0;
93
+ nextBase = "";
94
+ halvings = 0;
95
+ constructor(data) {
96
+ super();
97
+ protobuf_1.proto3.util.initPartial(data, this);
98
+ }
99
+ static runtime = protobuf_1.proto3;
100
+ static typeName = "micro.v1.mining.HalvingInfo";
101
+ static fields = protobuf_1.proto3.util.newFieldList(() => [
102
+ { no: 1, name: "users", kind: "scalar", T: 5 },
103
+ { no: 2, name: "next_threshold", kind: "scalar", T: 5 },
104
+ { no: 3, name: "next_base", kind: "scalar", T: 9 },
105
+ { no: 4, name: "halvings", kind: "scalar", T: 5 },
106
+ ]);
107
+ static fromBinary(bytes, options) {
108
+ return new HalvingInfo().fromBinary(bytes, options);
109
+ }
110
+ static fromJson(jsonValue, options) {
111
+ return new HalvingInfo().fromJson(jsonValue, options);
112
+ }
113
+ static fromJsonString(jsonString, options) {
114
+ return new HalvingInfo().fromJsonString(jsonString, options);
115
+ }
116
+ static equals(a, b) {
117
+ return protobuf_1.proto3.util.equals(HalvingInfo, a, b);
118
+ }
119
+ }
120
+ exports.HalvingInfo = HalvingInfo;
121
+ class ReferralInfo extends protobuf_1.Message {
122
+ code = "";
123
+ link = "";
124
+ pending = "";
125
+ pendingHourly = "";
126
+ l1Share = "";
127
+ l2Share = "";
128
+ l1Count = 0;
129
+ l1Mining = 0;
130
+ l2Count = 0;
131
+ l2Mining = 0;
132
+ earnedL1 = "";
133
+ earnedL2 = "";
134
+ earnedGifts = "";
135
+ earnedTotal = "";
136
+ referredByUsername = "";
137
+ constructor(data) {
138
+ super();
139
+ protobuf_1.proto3.util.initPartial(data, this);
140
+ }
141
+ static runtime = protobuf_1.proto3;
142
+ static typeName = "micro.v1.mining.ReferralInfo";
143
+ static fields = protobuf_1.proto3.util.newFieldList(() => [
144
+ { no: 1, name: "code", kind: "scalar", T: 9 },
145
+ { no: 2, name: "link", kind: "scalar", T: 9 },
146
+ { no: 3, name: "pending", kind: "scalar", T: 9 },
147
+ { no: 4, name: "pending_hourly", kind: "scalar", T: 9 },
148
+ { no: 5, name: "l1_share", kind: "scalar", T: 9 },
149
+ { no: 6, name: "l2_share", kind: "scalar", T: 9 },
150
+ { no: 7, name: "l1_count", kind: "scalar", T: 5 },
151
+ { no: 8, name: "l1_mining", kind: "scalar", T: 5 },
152
+ { no: 9, name: "l2_count", kind: "scalar", T: 5 },
153
+ { no: 10, name: "l2_mining", kind: "scalar", T: 5 },
154
+ { no: 11, name: "earned_l1", kind: "scalar", T: 9 },
155
+ { no: 12, name: "earned_l2", kind: "scalar", T: 9 },
156
+ { no: 13, name: "earned_gifts", kind: "scalar", T: 9 },
157
+ { no: 14, name: "earned_total", kind: "scalar", T: 9 },
158
+ { no: 15, name: "referred_by_username", kind: "scalar", T: 9 },
159
+ ]);
160
+ static fromBinary(bytes, options) {
161
+ return new ReferralInfo().fromBinary(bytes, options);
162
+ }
163
+ static fromJson(jsonValue, options) {
164
+ return new ReferralInfo().fromJson(jsonValue, options);
165
+ }
166
+ static fromJsonString(jsonString, options) {
167
+ return new ReferralInfo().fromJsonString(jsonString, options);
168
+ }
169
+ static equals(a, b) {
170
+ return protobuf_1.proto3.util.equals(ReferralInfo, a, b);
171
+ }
172
+ }
173
+ exports.ReferralInfo = ReferralInfo;
174
+ class TeamMember extends protobuf_1.Message {
175
+ userId = "";
176
+ username = "";
177
+ avatarUrl = "";
178
+ tasksToday = 0;
179
+ taskMultiplier = "";
180
+ contribution = "";
181
+ mining = false;
182
+ fullTeamReady = false;
183
+ activeFrom = "";
184
+ activeUntil = "";
185
+ nudgeAvailableAt = "";
186
+ constructor(data) {
187
+ super();
188
+ protobuf_1.proto3.util.initPartial(data, this);
189
+ }
190
+ static runtime = protobuf_1.proto3;
191
+ static typeName = "micro.v1.mining.TeamMember";
192
+ static fields = protobuf_1.proto3.util.newFieldList(() => [
193
+ { no: 1, name: "user_id", kind: "scalar", T: 9 },
194
+ { no: 2, name: "username", kind: "scalar", T: 9 },
195
+ { no: 3, name: "avatar_url", kind: "scalar", T: 9 },
196
+ { no: 4, name: "tasks_today", kind: "scalar", T: 5 },
197
+ { no: 5, name: "task_multiplier", kind: "scalar", T: 9 },
198
+ { no: 6, name: "contribution", kind: "scalar", T: 9 },
199
+ { no: 7, name: "mining", kind: "scalar", T: 8 },
200
+ { no: 8, name: "full_team_ready", kind: "scalar", T: 8 },
201
+ { no: 9, name: "active_from", kind: "scalar", T: 9 },
202
+ { no: 10, name: "active_until", kind: "scalar", T: 9 },
203
+ { no: 11, name: "nudge_available_at", kind: "scalar", T: 9 },
204
+ ]);
205
+ static fromBinary(bytes, options) {
206
+ return new TeamMember().fromBinary(bytes, options);
207
+ }
208
+ static fromJson(jsonValue, options) {
209
+ return new TeamMember().fromJson(jsonValue, options);
210
+ }
211
+ static fromJsonString(jsonString, options) {
212
+ return new TeamMember().fromJsonString(jsonString, options);
213
+ }
214
+ static equals(a, b) {
215
+ return protobuf_1.proto3.util.equals(TeamMember, a, b);
216
+ }
217
+ }
218
+ exports.TeamMember = TeamMember;
219
+ class TeamInfo extends protobuf_1.Message {
220
+ members = [];
221
+ size = 0;
222
+ locked = false;
223
+ lockedUntil = "";
224
+ share = "";
225
+ fullTeamBonus = "";
226
+ fullTeamMinTasks = 0;
227
+ constructor(data) {
228
+ super();
229
+ protobuf_1.proto3.util.initPartial(data, this);
230
+ }
231
+ static runtime = protobuf_1.proto3;
232
+ static typeName = "micro.v1.mining.TeamInfo";
233
+ static fields = protobuf_1.proto3.util.newFieldList(() => [
234
+ { no: 1, name: "members", kind: "message", T: TeamMember, repeated: true },
235
+ { no: 2, name: "size", kind: "scalar", T: 5 },
236
+ { no: 3, name: "locked", kind: "scalar", T: 8 },
237
+ { no: 4, name: "locked_until", kind: "scalar", T: 9 },
238
+ { no: 5, name: "share", kind: "scalar", T: 9 },
239
+ { no: 6, name: "full_team_bonus", kind: "scalar", T: 9 },
240
+ { no: 7, name: "full_team_min_tasks", kind: "scalar", T: 5 },
241
+ ]);
242
+ static fromBinary(bytes, options) {
243
+ return new TeamInfo().fromBinary(bytes, options);
244
+ }
245
+ static fromJson(jsonValue, options) {
246
+ return new TeamInfo().fromJson(jsonValue, options);
247
+ }
248
+ static fromJsonString(jsonString, options) {
249
+ return new TeamInfo().fromJsonString(jsonString, options);
250
+ }
251
+ static equals(a, b) {
252
+ return protobuf_1.proto3.util.equals(TeamInfo, a, b);
253
+ }
254
+ }
255
+ exports.TeamInfo = TeamInfo;
256
+ class TaskInfo extends protobuf_1.Message {
257
+ id = "";
258
+ kind = "";
259
+ title = "";
260
+ multiplier = "";
261
+ maxCount = 0;
262
+ doneCount = 0;
263
+ done = false;
264
+ expiresAt = "";
265
+ event = "";
266
+ standardOnly = false;
267
+ constructor(data) {
268
+ super();
269
+ protobuf_1.proto3.util.initPartial(data, this);
270
+ }
271
+ static runtime = protobuf_1.proto3;
272
+ static typeName = "micro.v1.mining.TaskInfo";
273
+ static fields = protobuf_1.proto3.util.newFieldList(() => [
274
+ { no: 1, name: "id", kind: "scalar", T: 9 },
275
+ { no: 2, name: "kind", kind: "scalar", T: 9 },
276
+ { no: 3, name: "title", kind: "scalar", T: 9 },
277
+ { no: 4, name: "multiplier", kind: "scalar", T: 9 },
278
+ { no: 5, name: "max_count", kind: "scalar", T: 5 },
279
+ { no: 6, name: "done_count", kind: "scalar", T: 5 },
280
+ { no: 7, name: "done", kind: "scalar", T: 8 },
281
+ { no: 8, name: "expires_at", kind: "scalar", T: 9 },
282
+ { no: 9, name: "event", kind: "scalar", T: 9 },
283
+ { no: 10, name: "standard_only", kind: "scalar", T: 8 },
284
+ ]);
285
+ static fromBinary(bytes, options) {
286
+ return new TaskInfo().fromBinary(bytes, options);
287
+ }
288
+ static fromJson(jsonValue, options) {
289
+ return new TaskInfo().fromJson(jsonValue, options);
290
+ }
291
+ static fromJsonString(jsonString, options) {
292
+ return new TaskInfo().fromJsonString(jsonString, options);
293
+ }
294
+ static equals(a, b) {
295
+ return protobuf_1.proto3.util.equals(TaskInfo, a, b);
296
+ }
297
+ }
298
+ exports.TaskInfo = TaskInfo;
299
+ class TasksSummary extends protobuf_1.Message {
300
+ done = 0;
301
+ total = 0;
302
+ nextId = "";
303
+ nextTitle = "";
304
+ nextMultiplier = "";
305
+ potentialMultiplier = "";
306
+ constructor(data) {
307
+ super();
308
+ protobuf_1.proto3.util.initPartial(data, this);
309
+ }
310
+ static runtime = protobuf_1.proto3;
311
+ static typeName = "micro.v1.mining.TasksSummary";
312
+ static fields = protobuf_1.proto3.util.newFieldList(() => [
313
+ { no: 1, name: "done", kind: "scalar", T: 5 },
314
+ { no: 2, name: "total", kind: "scalar", T: 5 },
315
+ { no: 3, name: "next_id", kind: "scalar", T: 9 },
316
+ { no: 4, name: "next_title", kind: "scalar", T: 9 },
317
+ { no: 5, name: "next_multiplier", kind: "scalar", T: 9 },
318
+ { no: 6, name: "potential_multiplier", kind: "scalar", T: 9 },
319
+ ]);
320
+ static fromBinary(bytes, options) {
321
+ return new TasksSummary().fromBinary(bytes, options);
322
+ }
323
+ static fromJson(jsonValue, options) {
324
+ return new TasksSummary().fromJson(jsonValue, options);
325
+ }
326
+ static fromJsonString(jsonString, options) {
327
+ return new TasksSummary().fromJsonString(jsonString, options);
328
+ }
329
+ static equals(a, b) {
330
+ return protobuf_1.proto3.util.equals(TasksSummary, a, b);
331
+ }
332
+ }
333
+ exports.TasksSummary = TasksSummary;
334
+ class MiningSettings extends protobuf_1.Message {
335
+ notifySessionEnd = false;
336
+ constructor(data) {
337
+ super();
338
+ protobuf_1.proto3.util.initPartial(data, this);
339
+ }
340
+ static runtime = protobuf_1.proto3;
341
+ static typeName = "micro.v1.mining.MiningSettings";
342
+ static fields = protobuf_1.proto3.util.newFieldList(() => [
343
+ { no: 1, name: "notify_session_end", kind: "scalar", T: 8 },
344
+ ]);
345
+ static fromBinary(bytes, options) {
346
+ return new MiningSettings().fromBinary(bytes, options);
347
+ }
348
+ static fromJson(jsonValue, options) {
349
+ return new MiningSettings().fromJson(jsonValue, options);
350
+ }
351
+ static fromJsonString(jsonString, options) {
352
+ return new MiningSettings().fromJsonString(jsonString, options);
353
+ }
354
+ static equals(a, b) {
355
+ return protobuf_1.proto3.util.equals(MiningSettings, a, b);
356
+ }
357
+ }
358
+ exports.MiningSettings = MiningSettings;
359
+ class MiningState extends protobuf_1.Message {
360
+ userId = "";
361
+ balance = "";
362
+ totalMined = "";
363
+ totalClaimed = "";
364
+ session;
365
+ rate;
366
+ halving;
367
+ referral;
368
+ team;
369
+ tasks;
370
+ settings;
371
+ serverTime = "";
372
+ welcomePending = false;
373
+ endedSession;
374
+ sessionsCompleted = 0;
375
+ streakDays = 0;
376
+ inactive = false;
377
+ constructor(data) {
378
+ super();
379
+ protobuf_1.proto3.util.initPartial(data, this);
380
+ }
381
+ static runtime = protobuf_1.proto3;
382
+ static typeName = "micro.v1.mining.MiningState";
383
+ static fields = protobuf_1.proto3.util.newFieldList(() => [
384
+ { no: 1, name: "user_id", kind: "scalar", T: 9 },
385
+ { no: 2, name: "balance", kind: "scalar", T: 9 },
386
+ { no: 3, name: "total_mined", kind: "scalar", T: 9 },
387
+ { no: 4, name: "total_claimed", kind: "scalar", T: 9 },
388
+ { no: 5, name: "session", kind: "message", T: SessionInfo, opt: true },
389
+ { no: 6, name: "rate", kind: "message", T: RateInfo },
390
+ { no: 7, name: "halving", kind: "message", T: HalvingInfo },
391
+ { no: 8, name: "referral", kind: "message", T: ReferralInfo },
392
+ { no: 9, name: "team", kind: "message", T: TeamInfo },
393
+ { no: 10, name: "tasks", kind: "message", T: TasksSummary },
394
+ { no: 11, name: "settings", kind: "message", T: MiningSettings },
395
+ { no: 12, name: "server_time", kind: "scalar", T: 9 },
396
+ { no: 13, name: "welcome_pending", kind: "scalar", T: 8 },
397
+ { no: 14, name: "ended_session", kind: "message", T: SessionInfo, opt: true },
398
+ { no: 15, name: "sessions_completed", kind: "scalar", T: 5 },
399
+ { no: 16, name: "streak_days", kind: "scalar", T: 5 },
400
+ { no: 17, name: "inactive", kind: "scalar", T: 8 },
401
+ ]);
402
+ static fromBinary(bytes, options) {
403
+ return new MiningState().fromBinary(bytes, options);
404
+ }
405
+ static fromJson(jsonValue, options) {
406
+ return new MiningState().fromJson(jsonValue, options);
407
+ }
408
+ static fromJsonString(jsonString, options) {
409
+ return new MiningState().fromJsonString(jsonString, options);
410
+ }
411
+ static equals(a, b) {
412
+ return protobuf_1.proto3.util.equals(MiningState, a, b);
413
+ }
414
+ }
415
+ exports.MiningState = MiningState;
416
+ class MiningMeResponse extends protobuf_1.Message {
417
+ status;
418
+ data;
419
+ constructor(data) {
420
+ super();
421
+ protobuf_1.proto3.util.initPartial(data, this);
422
+ }
423
+ static runtime = protobuf_1.proto3;
424
+ static typeName = "micro.v1.mining.MiningMeResponse";
425
+ static fields = protobuf_1.proto3.util.newFieldList(() => [
426
+ { no: 1, name: "status", kind: "message", T: general_pb_js_1.ResponseStatus },
427
+ { no: 2, name: "data", kind: "message", T: MiningState, opt: true },
428
+ ]);
429
+ static fromBinary(bytes, options) {
430
+ return new MiningMeResponse().fromBinary(bytes, options);
431
+ }
432
+ static fromJson(jsonValue, options) {
433
+ return new MiningMeResponse().fromJson(jsonValue, options);
434
+ }
435
+ static fromJsonString(jsonString, options) {
436
+ return new MiningMeResponse().fromJsonString(jsonString, options);
437
+ }
438
+ static equals(a, b) {
439
+ return protobuf_1.proto3.util.equals(MiningMeResponse, a, b);
440
+ }
441
+ }
442
+ exports.MiningMeResponse = MiningMeResponse;
443
+ class TasksResponse extends protobuf_1.Message {
444
+ status;
445
+ daily = [];
446
+ weekly = [];
447
+ once = [];
448
+ summary;
449
+ rate;
450
+ constructor(data) {
451
+ super();
452
+ protobuf_1.proto3.util.initPartial(data, this);
453
+ }
454
+ static runtime = protobuf_1.proto3;
455
+ static typeName = "micro.v1.mining.TasksResponse";
456
+ static fields = protobuf_1.proto3.util.newFieldList(() => [
457
+ { no: 1, name: "status", kind: "message", T: general_pb_js_1.ResponseStatus },
458
+ { no: 2, name: "daily", kind: "message", T: TaskInfo, repeated: true },
459
+ { no: 3, name: "weekly", kind: "message", T: TaskInfo, repeated: true },
460
+ { no: 4, name: "once", kind: "message", T: TaskInfo, repeated: true },
461
+ { no: 5, name: "summary", kind: "message", T: TasksSummary, opt: true },
462
+ { no: 6, name: "rate", kind: "message", T: RateInfo, opt: true },
463
+ ]);
464
+ static fromBinary(bytes, options) {
465
+ return new TasksResponse().fromBinary(bytes, options);
466
+ }
467
+ static fromJson(jsonValue, options) {
468
+ return new TasksResponse().fromJson(jsonValue, options);
469
+ }
470
+ static fromJsonString(jsonString, options) {
471
+ return new TasksResponse().fromJsonString(jsonString, options);
472
+ }
473
+ static equals(a, b) {
474
+ return protobuf_1.proto3.util.equals(TasksResponse, a, b);
475
+ }
476
+ }
477
+ exports.TasksResponse = TasksResponse;
478
+ class TaskEventRequest extends protobuf_1.Message {
479
+ event = "";
480
+ payload = "";
481
+ constructor(data) {
482
+ super();
483
+ protobuf_1.proto3.util.initPartial(data, this);
484
+ }
485
+ static runtime = protobuf_1.proto3;
486
+ static typeName = "micro.v1.mining.TaskEventRequest";
487
+ static fields = protobuf_1.proto3.util.newFieldList(() => [
488
+ { no: 1, name: "event", kind: "scalar", T: 9 },
489
+ { no: 2, name: "payload", kind: "scalar", T: 9 },
490
+ ]);
491
+ static fromBinary(bytes, options) {
492
+ return new TaskEventRequest().fromBinary(bytes, options);
493
+ }
494
+ static fromJson(jsonValue, options) {
495
+ return new TaskEventRequest().fromJson(jsonValue, options);
496
+ }
497
+ static fromJsonString(jsonString, options) {
498
+ return new TaskEventRequest().fromJsonString(jsonString, options);
499
+ }
500
+ static equals(a, b) {
501
+ return protobuf_1.proto3.util.equals(TaskEventRequest, a, b);
502
+ }
503
+ }
504
+ exports.TaskEventRequest = TaskEventRequest;
505
+ class TaskEventResponse extends protobuf_1.Message {
506
+ status;
507
+ completedTaskId = "";
508
+ data;
509
+ constructor(data) {
510
+ super();
511
+ protobuf_1.proto3.util.initPartial(data, this);
512
+ }
513
+ static runtime = protobuf_1.proto3;
514
+ static typeName = "micro.v1.mining.TaskEventResponse";
515
+ static fields = protobuf_1.proto3.util.newFieldList(() => [
516
+ { no: 1, name: "status", kind: "message", T: general_pb_js_1.ResponseStatus },
517
+ { no: 2, name: "completed_task_id", kind: "scalar", T: 9 },
518
+ { no: 3, name: "data", kind: "message", T: MiningState, opt: true },
519
+ ]);
520
+ static fromBinary(bytes, options) {
521
+ return new TaskEventResponse().fromBinary(bytes, options);
522
+ }
523
+ static fromJson(jsonValue, options) {
524
+ return new TaskEventResponse().fromJson(jsonValue, options);
525
+ }
526
+ static fromJsonString(jsonString, options) {
527
+ return new TaskEventResponse().fromJsonString(jsonString, options);
528
+ }
529
+ static equals(a, b) {
530
+ return protobuf_1.proto3.util.equals(TaskEventResponse, a, b);
531
+ }
532
+ }
533
+ exports.TaskEventResponse = TaskEventResponse;
534
+ class ReferralItem extends protobuf_1.Message {
535
+ userId = "";
536
+ username = "";
537
+ avatarUrl = "";
538
+ level = 0;
539
+ verified = false;
540
+ mining = false;
541
+ sessionsCompleted = 0;
542
+ giftStatus = "";
543
+ referralCount = 0;
544
+ hourlyContribution = "";
545
+ inTeam = false;
546
+ teamEligible = false;
547
+ joinedAt = "";
548
+ constructor(data) {
549
+ super();
550
+ protobuf_1.proto3.util.initPartial(data, this);
551
+ }
552
+ static runtime = protobuf_1.proto3;
553
+ static typeName = "micro.v1.mining.ReferralItem";
554
+ static fields = protobuf_1.proto3.util.newFieldList(() => [
555
+ { no: 1, name: "user_id", kind: "scalar", T: 9 },
556
+ { no: 2, name: "username", kind: "scalar", T: 9 },
557
+ { no: 3, name: "avatar_url", kind: "scalar", T: 9 },
558
+ { no: 4, name: "level", kind: "scalar", T: 5 },
559
+ { no: 5, name: "verified", kind: "scalar", T: 8 },
560
+ { no: 6, name: "mining", kind: "scalar", T: 8 },
561
+ { no: 7, name: "sessions_completed", kind: "scalar", T: 5 },
562
+ { no: 8, name: "gift_status", kind: "scalar", T: 9 },
563
+ { no: 9, name: "referral_count", kind: "scalar", T: 5 },
564
+ { no: 10, name: "hourly_contribution", kind: "scalar", T: 9 },
565
+ { no: 11, name: "in_team", kind: "scalar", T: 8 },
566
+ { no: 12, name: "team_eligible", kind: "scalar", T: 8 },
567
+ { no: 13, name: "joined_at", kind: "scalar", T: 9 },
568
+ ]);
569
+ static fromBinary(bytes, options) {
570
+ return new ReferralItem().fromBinary(bytes, options);
571
+ }
572
+ static fromJson(jsonValue, options) {
573
+ return new ReferralItem().fromJson(jsonValue, options);
574
+ }
575
+ static fromJsonString(jsonString, options) {
576
+ return new ReferralItem().fromJsonString(jsonString, options);
577
+ }
578
+ static equals(a, b) {
579
+ return protobuf_1.proto3.util.equals(ReferralItem, a, b);
580
+ }
581
+ }
582
+ exports.ReferralItem = ReferralItem;
583
+ class ReferralListRequest extends protobuf_1.Message {
584
+ page = 0;
585
+ perPage = 0;
586
+ filter = "";
587
+ search = "";
588
+ level = 0;
589
+ constructor(data) {
590
+ super();
591
+ protobuf_1.proto3.util.initPartial(data, this);
592
+ }
593
+ static runtime = protobuf_1.proto3;
594
+ static typeName = "micro.v1.mining.ReferralListRequest";
595
+ static fields = protobuf_1.proto3.util.newFieldList(() => [
596
+ { no: 1, name: "page", kind: "scalar", T: 5 },
597
+ { no: 2, name: "per_page", kind: "scalar", T: 5 },
598
+ { no: 3, name: "filter", kind: "scalar", T: 9 },
599
+ { no: 4, name: "search", kind: "scalar", T: 9 },
600
+ { no: 5, name: "level", kind: "scalar", T: 5 },
601
+ ]);
602
+ static fromBinary(bytes, options) {
603
+ return new ReferralListRequest().fromBinary(bytes, options);
604
+ }
605
+ static fromJson(jsonValue, options) {
606
+ return new ReferralListRequest().fromJson(jsonValue, options);
607
+ }
608
+ static fromJsonString(jsonString, options) {
609
+ return new ReferralListRequest().fromJsonString(jsonString, options);
610
+ }
611
+ static equals(a, b) {
612
+ return protobuf_1.proto3.util.equals(ReferralListRequest, a, b);
613
+ }
614
+ }
615
+ exports.ReferralListRequest = ReferralListRequest;
616
+ class ReferralListResponse extends protobuf_1.Message {
617
+ status;
618
+ data = [];
619
+ pagination;
620
+ constructor(data) {
621
+ super();
622
+ protobuf_1.proto3.util.initPartial(data, this);
623
+ }
624
+ static runtime = protobuf_1.proto3;
625
+ static typeName = "micro.v1.mining.ReferralListResponse";
626
+ static fields = protobuf_1.proto3.util.newFieldList(() => [
627
+ { no: 1, name: "status", kind: "message", T: general_pb_js_1.ResponseStatus },
628
+ { no: 2, name: "data", kind: "message", T: ReferralItem, repeated: true },
629
+ { no: 3, name: "pagination", kind: "message", T: general_pb_js_1.PaginationMetaResult, opt: true },
630
+ ]);
631
+ static fromBinary(bytes, options) {
632
+ return new ReferralListResponse().fromBinary(bytes, options);
633
+ }
634
+ static fromJson(jsonValue, options) {
635
+ return new ReferralListResponse().fromJson(jsonValue, options);
636
+ }
637
+ static fromJsonString(jsonString, options) {
638
+ return new ReferralListResponse().fromJsonString(jsonString, options);
639
+ }
640
+ static equals(a, b) {
641
+ return protobuf_1.proto3.util.equals(ReferralListResponse, a, b);
642
+ }
643
+ }
644
+ exports.ReferralListResponse = ReferralListResponse;
645
+ class ClaimResponse extends protobuf_1.Message {
646
+ status;
647
+ claimed = "";
648
+ data;
649
+ constructor(data) {
650
+ super();
651
+ protobuf_1.proto3.util.initPartial(data, this);
652
+ }
653
+ static runtime = protobuf_1.proto3;
654
+ static typeName = "micro.v1.mining.ClaimResponse";
655
+ static fields = protobuf_1.proto3.util.newFieldList(() => [
656
+ { no: 1, name: "status", kind: "message", T: general_pb_js_1.ResponseStatus },
657
+ { no: 2, name: "claimed", kind: "scalar", T: 9 },
658
+ { no: 3, name: "data", kind: "message", T: MiningState, opt: true },
659
+ ]);
660
+ static fromBinary(bytes, options) {
661
+ return new ClaimResponse().fromBinary(bytes, options);
662
+ }
663
+ static fromJson(jsonValue, options) {
664
+ return new ClaimResponse().fromJson(jsonValue, options);
665
+ }
666
+ static fromJsonString(jsonString, options) {
667
+ return new ClaimResponse().fromJsonString(jsonString, options);
668
+ }
669
+ static equals(a, b) {
670
+ return protobuf_1.proto3.util.equals(ClaimResponse, a, b);
671
+ }
672
+ }
673
+ exports.ClaimResponse = ClaimResponse;
674
+ class SetTeamRequest extends protobuf_1.Message {
675
+ userIds = [];
676
+ constructor(data) {
677
+ super();
678
+ protobuf_1.proto3.util.initPartial(data, this);
679
+ }
680
+ static runtime = protobuf_1.proto3;
681
+ static typeName = "micro.v1.mining.SetTeamRequest";
682
+ static fields = protobuf_1.proto3.util.newFieldList(() => [
683
+ { no: 1, name: "user_ids", kind: "scalar", T: 9, repeated: true },
684
+ ]);
685
+ static fromBinary(bytes, options) {
686
+ return new SetTeamRequest().fromBinary(bytes, options);
687
+ }
688
+ static fromJson(jsonValue, options) {
689
+ return new SetTeamRequest().fromJson(jsonValue, options);
690
+ }
691
+ static fromJsonString(jsonString, options) {
692
+ return new SetTeamRequest().fromJsonString(jsonString, options);
693
+ }
694
+ static equals(a, b) {
695
+ return protobuf_1.proto3.util.equals(SetTeamRequest, a, b);
696
+ }
697
+ }
698
+ exports.SetTeamRequest = SetTeamRequest;
699
+ class TeamResponse extends protobuf_1.Message {
700
+ status;
701
+ data;
702
+ rate;
703
+ constructor(data) {
704
+ super();
705
+ protobuf_1.proto3.util.initPartial(data, this);
706
+ }
707
+ static runtime = protobuf_1.proto3;
708
+ static typeName = "micro.v1.mining.TeamResponse";
709
+ static fields = protobuf_1.proto3.util.newFieldList(() => [
710
+ { no: 1, name: "status", kind: "message", T: general_pb_js_1.ResponseStatus },
711
+ { no: 2, name: "data", kind: "message", T: TeamInfo, opt: true },
712
+ { no: 3, name: "rate", kind: "message", T: RateInfo, opt: true },
713
+ ]);
714
+ static fromBinary(bytes, options) {
715
+ return new TeamResponse().fromBinary(bytes, options);
716
+ }
717
+ static fromJson(jsonValue, options) {
718
+ return new TeamResponse().fromJson(jsonValue, options);
719
+ }
720
+ static fromJsonString(jsonString, options) {
721
+ return new TeamResponse().fromJsonString(jsonString, options);
722
+ }
723
+ static equals(a, b) {
724
+ return protobuf_1.proto3.util.equals(TeamResponse, a, b);
725
+ }
726
+ }
727
+ exports.TeamResponse = TeamResponse;
728
+ class HistoryRequest extends protobuf_1.Message {
729
+ page = 0;
730
+ perPage = 0;
731
+ filter = "";
732
+ constructor(data) {
733
+ super();
734
+ protobuf_1.proto3.util.initPartial(data, this);
735
+ }
736
+ static runtime = protobuf_1.proto3;
737
+ static typeName = "micro.v1.mining.HistoryRequest";
738
+ static fields = protobuf_1.proto3.util.newFieldList(() => [
739
+ { no: 1, name: "page", kind: "scalar", T: 5 },
740
+ { no: 2, name: "per_page", kind: "scalar", T: 5 },
741
+ { no: 3, name: "filter", kind: "scalar", T: 9 },
742
+ ]);
743
+ static fromBinary(bytes, options) {
744
+ return new HistoryRequest().fromBinary(bytes, options);
745
+ }
746
+ static fromJson(jsonValue, options) {
747
+ return new HistoryRequest().fromJson(jsonValue, options);
748
+ }
749
+ static fromJsonString(jsonString, options) {
750
+ return new HistoryRequest().fromJsonString(jsonString, options);
751
+ }
752
+ static equals(a, b) {
753
+ return protobuf_1.proto3.util.equals(HistoryRequest, a, b);
754
+ }
755
+ }
756
+ exports.HistoryRequest = HistoryRequest;
757
+ class HistoryItem extends protobuf_1.Message {
758
+ id = "";
759
+ kind = "";
760
+ amount = "";
761
+ createdAt = "";
762
+ detail = "";
763
+ constructor(data) {
764
+ super();
765
+ protobuf_1.proto3.util.initPartial(data, this);
766
+ }
767
+ static runtime = protobuf_1.proto3;
768
+ static typeName = "micro.v1.mining.HistoryItem";
769
+ static fields = protobuf_1.proto3.util.newFieldList(() => [
770
+ { no: 1, name: "id", kind: "scalar", T: 9 },
771
+ { no: 2, name: "kind", kind: "scalar", T: 9 },
772
+ { no: 3, name: "amount", kind: "scalar", T: 9 },
773
+ { no: 4, name: "created_at", kind: "scalar", T: 9 },
774
+ { no: 5, name: "detail", kind: "scalar", T: 9 },
775
+ ]);
776
+ static fromBinary(bytes, options) {
777
+ return new HistoryItem().fromBinary(bytes, options);
778
+ }
779
+ static fromJson(jsonValue, options) {
780
+ return new HistoryItem().fromJson(jsonValue, options);
781
+ }
782
+ static fromJsonString(jsonString, options) {
783
+ return new HistoryItem().fromJsonString(jsonString, options);
784
+ }
785
+ static equals(a, b) {
786
+ return protobuf_1.proto3.util.equals(HistoryItem, a, b);
787
+ }
788
+ }
789
+ exports.HistoryItem = HistoryItem;
790
+ class HistoryDay extends protobuf_1.Message {
791
+ date = "";
792
+ amount = "";
793
+ constructor(data) {
794
+ super();
795
+ protobuf_1.proto3.util.initPartial(data, this);
796
+ }
797
+ static runtime = protobuf_1.proto3;
798
+ static typeName = "micro.v1.mining.HistoryDay";
799
+ static fields = protobuf_1.proto3.util.newFieldList(() => [
800
+ { no: 1, name: "date", kind: "scalar", T: 9 },
801
+ { no: 2, name: "amount", kind: "scalar", T: 9 },
802
+ ]);
803
+ static fromBinary(bytes, options) {
804
+ return new HistoryDay().fromBinary(bytes, options);
805
+ }
806
+ static fromJson(jsonValue, options) {
807
+ return new HistoryDay().fromJson(jsonValue, options);
808
+ }
809
+ static fromJsonString(jsonString, options) {
810
+ return new HistoryDay().fromJsonString(jsonString, options);
811
+ }
812
+ static equals(a, b) {
813
+ return protobuf_1.proto3.util.equals(HistoryDay, a, b);
814
+ }
815
+ }
816
+ exports.HistoryDay = HistoryDay;
817
+ class HistoryResponse extends protobuf_1.Message {
818
+ status;
819
+ data = [];
820
+ pagination;
821
+ week = [];
822
+ constructor(data) {
823
+ super();
824
+ protobuf_1.proto3.util.initPartial(data, this);
825
+ }
826
+ static runtime = protobuf_1.proto3;
827
+ static typeName = "micro.v1.mining.HistoryResponse";
828
+ static fields = protobuf_1.proto3.util.newFieldList(() => [
829
+ { no: 1, name: "status", kind: "message", T: general_pb_js_1.ResponseStatus },
830
+ { no: 2, name: "data", kind: "message", T: HistoryItem, repeated: true },
831
+ { no: 3, name: "pagination", kind: "message", T: general_pb_js_1.PaginationMetaResult, opt: true },
832
+ { no: 4, name: "week", kind: "message", T: HistoryDay, repeated: true },
833
+ ]);
834
+ static fromBinary(bytes, options) {
835
+ return new HistoryResponse().fromBinary(bytes, options);
836
+ }
837
+ static fromJson(jsonValue, options) {
838
+ return new HistoryResponse().fromJson(jsonValue, options);
839
+ }
840
+ static fromJsonString(jsonString, options) {
841
+ return new HistoryResponse().fromJsonString(jsonString, options);
842
+ }
843
+ static equals(a, b) {
844
+ return protobuf_1.proto3.util.equals(HistoryResponse, a, b);
845
+ }
846
+ }
847
+ exports.HistoryResponse = HistoryResponse;
848
+ class UpdateSettingsRequest extends protobuf_1.Message {
849
+ settings;
850
+ constructor(data) {
851
+ super();
852
+ protobuf_1.proto3.util.initPartial(data, this);
853
+ }
854
+ static runtime = protobuf_1.proto3;
855
+ static typeName = "micro.v1.mining.UpdateSettingsRequest";
856
+ static fields = protobuf_1.proto3.util.newFieldList(() => [
857
+ { no: 1, name: "settings", kind: "message", T: MiningSettings },
858
+ ]);
859
+ static fromBinary(bytes, options) {
860
+ return new UpdateSettingsRequest().fromBinary(bytes, options);
861
+ }
862
+ static fromJson(jsonValue, options) {
863
+ return new UpdateSettingsRequest().fromJson(jsonValue, options);
864
+ }
865
+ static fromJsonString(jsonString, options) {
866
+ return new UpdateSettingsRequest().fromJsonString(jsonString, options);
867
+ }
868
+ static equals(a, b) {
869
+ return protobuf_1.proto3.util.equals(UpdateSettingsRequest, a, b);
870
+ }
871
+ }
872
+ exports.UpdateSettingsRequest = UpdateSettingsRequest;
873
+ class EnrollRequest extends protobuf_1.Message {
874
+ userId = "";
875
+ referralCode = "";
876
+ deviceHash = "";
877
+ constructor(data) {
878
+ super();
879
+ protobuf_1.proto3.util.initPartial(data, this);
880
+ }
881
+ static runtime = protobuf_1.proto3;
882
+ static typeName = "micro.v1.mining.EnrollRequest";
883
+ static fields = protobuf_1.proto3.util.newFieldList(() => [
884
+ { no: 1, name: "user_id", kind: "scalar", T: 9 },
885
+ { no: 2, name: "referral_code", kind: "scalar", T: 9 },
886
+ { no: 3, name: "device_hash", kind: "scalar", T: 9 },
887
+ ]);
888
+ static fromBinary(bytes, options) {
889
+ return new EnrollRequest().fromBinary(bytes, options);
890
+ }
891
+ static fromJson(jsonValue, options) {
892
+ return new EnrollRequest().fromJson(jsonValue, options);
893
+ }
894
+ static fromJsonString(jsonString, options) {
895
+ return new EnrollRequest().fromJsonString(jsonString, options);
896
+ }
897
+ static equals(a, b) {
898
+ return protobuf_1.proto3.util.equals(EnrollRequest, a, b);
899
+ }
900
+ }
901
+ exports.EnrollRequest = EnrollRequest;
902
+ class EnrollResponse extends protobuf_1.Message {
903
+ status;
904
+ referralAttached = false;
905
+ reason = "";
906
+ constructor(data) {
907
+ super();
908
+ protobuf_1.proto3.util.initPartial(data, this);
909
+ }
910
+ static runtime = protobuf_1.proto3;
911
+ static typeName = "micro.v1.mining.EnrollResponse";
912
+ static fields = protobuf_1.proto3.util.newFieldList(() => [
913
+ { no: 1, name: "status", kind: "message", T: general_pb_js_1.ResponseStatus },
914
+ { no: 2, name: "referral_attached", kind: "scalar", T: 8 },
915
+ { no: 3, name: "reason", kind: "scalar", T: 9 },
916
+ ]);
917
+ static fromBinary(bytes, options) {
918
+ return new EnrollResponse().fromBinary(bytes, options);
919
+ }
920
+ static fromJson(jsonValue, options) {
921
+ return new EnrollResponse().fromJson(jsonValue, options);
922
+ }
923
+ static fromJsonString(jsonString, options) {
924
+ return new EnrollResponse().fromJsonString(jsonString, options);
925
+ }
926
+ static equals(a, b) {
927
+ return protobuf_1.proto3.util.equals(EnrollResponse, a, b);
928
+ }
929
+ }
930
+ exports.EnrollResponse = EnrollResponse;
931
+ class ResolveCodeRequest extends protobuf_1.Message {
932
+ code = "";
933
+ constructor(data) {
934
+ super();
935
+ protobuf_1.proto3.util.initPartial(data, this);
936
+ }
937
+ static runtime = protobuf_1.proto3;
938
+ static typeName = "micro.v1.mining.ResolveCodeRequest";
939
+ static fields = protobuf_1.proto3.util.newFieldList(() => [
940
+ { no: 1, name: "code", kind: "scalar", T: 9 },
941
+ ]);
942
+ static fromBinary(bytes, options) {
943
+ return new ResolveCodeRequest().fromBinary(bytes, options);
944
+ }
945
+ static fromJson(jsonValue, options) {
946
+ return new ResolveCodeRequest().fromJson(jsonValue, options);
947
+ }
948
+ static fromJsonString(jsonString, options) {
949
+ return new ResolveCodeRequest().fromJsonString(jsonString, options);
950
+ }
951
+ static equals(a, b) {
952
+ return protobuf_1.proto3.util.equals(ResolveCodeRequest, a, b);
953
+ }
954
+ }
955
+ exports.ResolveCodeRequest = ResolveCodeRequest;
956
+ class ResolveCodeResponse extends protobuf_1.Message {
957
+ status;
958
+ valid = false;
959
+ username = "";
960
+ avatarUrl = "";
961
+ gift = "";
962
+ constructor(data) {
963
+ super();
964
+ protobuf_1.proto3.util.initPartial(data, this);
965
+ }
966
+ static runtime = protobuf_1.proto3;
967
+ static typeName = "micro.v1.mining.ResolveCodeResponse";
968
+ static fields = protobuf_1.proto3.util.newFieldList(() => [
969
+ { no: 1, name: "status", kind: "message", T: general_pb_js_1.ResponseStatus },
970
+ { no: 2, name: "valid", kind: "scalar", T: 8 },
971
+ { no: 3, name: "username", kind: "scalar", T: 9 },
972
+ { no: 4, name: "avatar_url", kind: "scalar", T: 9 },
973
+ { no: 5, name: "gift", kind: "scalar", T: 9 },
974
+ ]);
975
+ static fromBinary(bytes, options) {
976
+ return new ResolveCodeResponse().fromBinary(bytes, options);
977
+ }
978
+ static fromJson(jsonValue, options) {
979
+ return new ResolveCodeResponse().fromJson(jsonValue, options);
980
+ }
981
+ static fromJsonString(jsonString, options) {
982
+ return new ResolveCodeResponse().fromJsonString(jsonString, options);
983
+ }
984
+ static equals(a, b) {
985
+ return protobuf_1.proto3.util.equals(ResolveCodeResponse, a, b);
986
+ }
987
+ }
988
+ exports.ResolveCodeResponse = ResolveCodeResponse;
989
+ class AdminOverviewRequest extends protobuf_1.Message {
990
+ period = "";
991
+ constructor(data) {
992
+ super();
993
+ protobuf_1.proto3.util.initPartial(data, this);
994
+ }
995
+ static runtime = protobuf_1.proto3;
996
+ static typeName = "micro.v1.mining.AdminOverviewRequest";
997
+ static fields = protobuf_1.proto3.util.newFieldList(() => [
998
+ { no: 1, name: "period", kind: "scalar", T: 9 },
999
+ ]);
1000
+ static fromBinary(bytes, options) {
1001
+ return new AdminOverviewRequest().fromBinary(bytes, options);
1002
+ }
1003
+ static fromJson(jsonValue, options) {
1004
+ return new AdminOverviewRequest().fromJson(jsonValue, options);
1005
+ }
1006
+ static fromJsonString(jsonString, options) {
1007
+ return new AdminOverviewRequest().fromJsonString(jsonString, options);
1008
+ }
1009
+ static equals(a, b) {
1010
+ return protobuf_1.proto3.util.equals(AdminOverviewRequest, a, b);
1011
+ }
1012
+ }
1013
+ exports.AdminOverviewRequest = AdminOverviewRequest;
1014
+ class AdminMetric extends protobuf_1.Message {
1015
+ key = "";
1016
+ value = "";
1017
+ change = "";
1018
+ constructor(data) {
1019
+ super();
1020
+ protobuf_1.proto3.util.initPartial(data, this);
1021
+ }
1022
+ static runtime = protobuf_1.proto3;
1023
+ static typeName = "micro.v1.mining.AdminMetric";
1024
+ static fields = protobuf_1.proto3.util.newFieldList(() => [
1025
+ { no: 1, name: "key", kind: "scalar", T: 9 },
1026
+ { no: 2, name: "value", kind: "scalar", T: 9 },
1027
+ { no: 3, name: "change", kind: "scalar", T: 9 },
1028
+ ]);
1029
+ static fromBinary(bytes, options) {
1030
+ return new AdminMetric().fromBinary(bytes, options);
1031
+ }
1032
+ static fromJson(jsonValue, options) {
1033
+ return new AdminMetric().fromJson(jsonValue, options);
1034
+ }
1035
+ static fromJsonString(jsonString, options) {
1036
+ return new AdminMetric().fromJsonString(jsonString, options);
1037
+ }
1038
+ static equals(a, b) {
1039
+ return protobuf_1.proto3.util.equals(AdminMetric, a, b);
1040
+ }
1041
+ }
1042
+ exports.AdminMetric = AdminMetric;
1043
+ class AdminSeriesPoint extends protobuf_1.Message {
1044
+ date = "";
1045
+ value = "";
1046
+ constructor(data) {
1047
+ super();
1048
+ protobuf_1.proto3.util.initPartial(data, this);
1049
+ }
1050
+ static runtime = protobuf_1.proto3;
1051
+ static typeName = "micro.v1.mining.AdminSeriesPoint";
1052
+ static fields = protobuf_1.proto3.util.newFieldList(() => [
1053
+ { no: 1, name: "date", kind: "scalar", T: 9 },
1054
+ { no: 2, name: "value", kind: "scalar", T: 9 },
1055
+ ]);
1056
+ static fromBinary(bytes, options) {
1057
+ return new AdminSeriesPoint().fromBinary(bytes, options);
1058
+ }
1059
+ static fromJson(jsonValue, options) {
1060
+ return new AdminSeriesPoint().fromJson(jsonValue, options);
1061
+ }
1062
+ static fromJsonString(jsonString, options) {
1063
+ return new AdminSeriesPoint().fromJsonString(jsonString, options);
1064
+ }
1065
+ static equals(a, b) {
1066
+ return protobuf_1.proto3.util.equals(AdminSeriesPoint, a, b);
1067
+ }
1068
+ }
1069
+ exports.AdminSeriesPoint = AdminSeriesPoint;
1070
+ class AdminSeries extends protobuf_1.Message {
1071
+ key = "";
1072
+ points = [];
1073
+ constructor(data) {
1074
+ super();
1075
+ protobuf_1.proto3.util.initPartial(data, this);
1076
+ }
1077
+ static runtime = protobuf_1.proto3;
1078
+ static typeName = "micro.v1.mining.AdminSeries";
1079
+ static fields = protobuf_1.proto3.util.newFieldList(() => [
1080
+ { no: 1, name: "key", kind: "scalar", T: 9 },
1081
+ { no: 2, name: "points", kind: "message", T: AdminSeriesPoint, repeated: true },
1082
+ ]);
1083
+ static fromBinary(bytes, options) {
1084
+ return new AdminSeries().fromBinary(bytes, options);
1085
+ }
1086
+ static fromJson(jsonValue, options) {
1087
+ return new AdminSeries().fromJson(jsonValue, options);
1088
+ }
1089
+ static fromJsonString(jsonString, options) {
1090
+ return new AdminSeries().fromJsonString(jsonString, options);
1091
+ }
1092
+ static equals(a, b) {
1093
+ return protobuf_1.proto3.util.equals(AdminSeries, a, b);
1094
+ }
1095
+ }
1096
+ exports.AdminSeries = AdminSeries;
1097
+ class AdminTaskStat extends protobuf_1.Message {
1098
+ taskId = "";
1099
+ title = "";
1100
+ completionRate = "";
1101
+ change = "";
1102
+ constructor(data) {
1103
+ super();
1104
+ protobuf_1.proto3.util.initPartial(data, this);
1105
+ }
1106
+ static runtime = protobuf_1.proto3;
1107
+ static typeName = "micro.v1.mining.AdminTaskStat";
1108
+ static fields = protobuf_1.proto3.util.newFieldList(() => [
1109
+ { no: 1, name: "task_id", kind: "scalar", T: 9 },
1110
+ { no: 2, name: "title", kind: "scalar", T: 9 },
1111
+ { no: 3, name: "completion_rate", kind: "scalar", T: 9 },
1112
+ { no: 4, name: "change", kind: "scalar", T: 9 },
1113
+ ]);
1114
+ static fromBinary(bytes, options) {
1115
+ return new AdminTaskStat().fromBinary(bytes, options);
1116
+ }
1117
+ static fromJson(jsonValue, options) {
1118
+ return new AdminTaskStat().fromJson(jsonValue, options);
1119
+ }
1120
+ static fromJsonString(jsonString, options) {
1121
+ return new AdminTaskStat().fromJsonString(jsonString, options);
1122
+ }
1123
+ static equals(a, b) {
1124
+ return protobuf_1.proto3.util.equals(AdminTaskStat, a, b);
1125
+ }
1126
+ }
1127
+ exports.AdminTaskStat = AdminTaskStat;
1128
+ class AdminTopReferrer extends protobuf_1.Message {
1129
+ userId = "";
1130
+ username = "";
1131
+ referrals = 0;
1132
+ activeRate = "";
1133
+ earned = "";
1134
+ constructor(data) {
1135
+ super();
1136
+ protobuf_1.proto3.util.initPartial(data, this);
1137
+ }
1138
+ static runtime = protobuf_1.proto3;
1139
+ static typeName = "micro.v1.mining.AdminTopReferrer";
1140
+ static fields = protobuf_1.proto3.util.newFieldList(() => [
1141
+ { no: 1, name: "user_id", kind: "scalar", T: 9 },
1142
+ { no: 2, name: "username", kind: "scalar", T: 9 },
1143
+ { no: 3, name: "referrals", kind: "scalar", T: 5 },
1144
+ { no: 4, name: "active_rate", kind: "scalar", T: 9 },
1145
+ { no: 5, name: "earned", kind: "scalar", T: 9 },
1146
+ ]);
1147
+ static fromBinary(bytes, options) {
1148
+ return new AdminTopReferrer().fromBinary(bytes, options);
1149
+ }
1150
+ static fromJson(jsonValue, options) {
1151
+ return new AdminTopReferrer().fromJson(jsonValue, options);
1152
+ }
1153
+ static fromJsonString(jsonString, options) {
1154
+ return new AdminTopReferrer().fromJsonString(jsonString, options);
1155
+ }
1156
+ static equals(a, b) {
1157
+ return protobuf_1.proto3.util.equals(AdminTopReferrer, a, b);
1158
+ }
1159
+ }
1160
+ exports.AdminTopReferrer = AdminTopReferrer;
1161
+ class AdminOverviewResponse extends protobuf_1.Message {
1162
+ status;
1163
+ metrics = [];
1164
+ series = [];
1165
+ tasks = [];
1166
+ topReferrers = [];
1167
+ suspiciousAccounts = 0;
1168
+ constructor(data) {
1169
+ super();
1170
+ protobuf_1.proto3.util.initPartial(data, this);
1171
+ }
1172
+ static runtime = protobuf_1.proto3;
1173
+ static typeName = "micro.v1.mining.AdminOverviewResponse";
1174
+ static fields = protobuf_1.proto3.util.newFieldList(() => [
1175
+ { no: 1, name: "status", kind: "message", T: general_pb_js_1.ResponseStatus },
1176
+ { no: 2, name: "metrics", kind: "message", T: AdminMetric, repeated: true },
1177
+ { no: 3, name: "series", kind: "message", T: AdminSeries, repeated: true },
1178
+ { no: 4, name: "tasks", kind: "message", T: AdminTaskStat, repeated: true },
1179
+ { no: 5, name: "top_referrers", kind: "message", T: AdminTopReferrer, repeated: true },
1180
+ { no: 6, name: "suspicious_accounts", kind: "scalar", T: 5 },
1181
+ ]);
1182
+ static fromBinary(bytes, options) {
1183
+ return new AdminOverviewResponse().fromBinary(bytes, options);
1184
+ }
1185
+ static fromJson(jsonValue, options) {
1186
+ return new AdminOverviewResponse().fromJson(jsonValue, options);
1187
+ }
1188
+ static fromJsonString(jsonString, options) {
1189
+ return new AdminOverviewResponse().fromJsonString(jsonString, options);
1190
+ }
1191
+ static equals(a, b) {
1192
+ return protobuf_1.proto3.util.equals(AdminOverviewResponse, a, b);
1193
+ }
1194
+ }
1195
+ exports.AdminOverviewResponse = AdminOverviewResponse;
1196
+ class ParameterItem extends protobuf_1.Message {
1197
+ key = "";
1198
+ value = "";
1199
+ updatedAt = "";
1200
+ updatedBy = "";
1201
+ constructor(data) {
1202
+ super();
1203
+ protobuf_1.proto3.util.initPartial(data, this);
1204
+ }
1205
+ static runtime = protobuf_1.proto3;
1206
+ static typeName = "micro.v1.mining.ParameterItem";
1207
+ static fields = protobuf_1.proto3.util.newFieldList(() => [
1208
+ { no: 1, name: "key", kind: "scalar", T: 9 },
1209
+ { no: 2, name: "value", kind: "scalar", T: 9 },
1210
+ { no: 3, name: "updated_at", kind: "scalar", T: 9 },
1211
+ { no: 4, name: "updated_by", kind: "scalar", T: 9 },
1212
+ ]);
1213
+ static fromBinary(bytes, options) {
1214
+ return new ParameterItem().fromBinary(bytes, options);
1215
+ }
1216
+ static fromJson(jsonValue, options) {
1217
+ return new ParameterItem().fromJson(jsonValue, options);
1218
+ }
1219
+ static fromJsonString(jsonString, options) {
1220
+ return new ParameterItem().fromJsonString(jsonString, options);
1221
+ }
1222
+ static equals(a, b) {
1223
+ return protobuf_1.proto3.util.equals(ParameterItem, a, b);
1224
+ }
1225
+ }
1226
+ exports.ParameterItem = ParameterItem;
1227
+ class ParametersResponse extends protobuf_1.Message {
1228
+ status;
1229
+ data = [];
1230
+ constructor(data) {
1231
+ super();
1232
+ protobuf_1.proto3.util.initPartial(data, this);
1233
+ }
1234
+ static runtime = protobuf_1.proto3;
1235
+ static typeName = "micro.v1.mining.ParametersResponse";
1236
+ static fields = protobuf_1.proto3.util.newFieldList(() => [
1237
+ { no: 1, name: "status", kind: "message", T: general_pb_js_1.ResponseStatus },
1238
+ { no: 2, name: "data", kind: "message", T: ParameterItem, repeated: true },
1239
+ ]);
1240
+ static fromBinary(bytes, options) {
1241
+ return new ParametersResponse().fromBinary(bytes, options);
1242
+ }
1243
+ static fromJson(jsonValue, options) {
1244
+ return new ParametersResponse().fromJson(jsonValue, options);
1245
+ }
1246
+ static fromJsonString(jsonString, options) {
1247
+ return new ParametersResponse().fromJsonString(jsonString, options);
1248
+ }
1249
+ static equals(a, b) {
1250
+ return protobuf_1.proto3.util.equals(ParametersResponse, a, b);
1251
+ }
1252
+ }
1253
+ exports.ParametersResponse = ParametersResponse;
1254
+ class SetParameterRequest extends protobuf_1.Message {
1255
+ key = "";
1256
+ value = "";
1257
+ constructor(data) {
1258
+ super();
1259
+ protobuf_1.proto3.util.initPartial(data, this);
1260
+ }
1261
+ static runtime = protobuf_1.proto3;
1262
+ static typeName = "micro.v1.mining.SetParameterRequest";
1263
+ static fields = protobuf_1.proto3.util.newFieldList(() => [
1264
+ { no: 1, name: "key", kind: "scalar", T: 9 },
1265
+ { no: 2, name: "value", kind: "scalar", T: 9 },
1266
+ ]);
1267
+ static fromBinary(bytes, options) {
1268
+ return new SetParameterRequest().fromBinary(bytes, options);
1269
+ }
1270
+ static fromJson(jsonValue, options) {
1271
+ return new SetParameterRequest().fromJson(jsonValue, options);
1272
+ }
1273
+ static fromJsonString(jsonString, options) {
1274
+ return new SetParameterRequest().fromJsonString(jsonString, options);
1275
+ }
1276
+ static equals(a, b) {
1277
+ return protobuf_1.proto3.util.equals(SetParameterRequest, a, b);
1278
+ }
1279
+ }
1280
+ exports.SetParameterRequest = SetParameterRequest;