jr-common-micro 1.1.99 → 1.1.101
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/proto/micro/v1/mining/mining_messages_nest.d.ts +104 -0
- package/dist/proto/micro/v1/mining/mining_messages_pb.d.ts +200 -0
- package/dist/proto/micro/v1/mining/mining_messages_pb.js +438 -1
- package/dist/proto/micro/v1/mining/services_connect.d.ts +37 -1
- package/dist/proto/micro/v1/mining/services_connect.js +36 -0
- package/dist/proto/micro/v1/mining/services_nest.d.ts +13 -1
- package/dist/proto/micro/v1/mining/services_nest.js +6 -0
- package/package.json +1 -1
- package/proto/micro/v1/mining/mining_messages.proto +148 -0
- package/proto/micro/v1/mining/services.proto +10 -0
|
@@ -120,6 +120,8 @@ export interface MiningState {
|
|
|
120
120
|
sessions_completed: number;
|
|
121
121
|
streak_days: number;
|
|
122
122
|
inactive: boolean;
|
|
123
|
+
status: string;
|
|
124
|
+
status_reason: string;
|
|
123
125
|
}
|
|
124
126
|
export interface MiningMeResponse {
|
|
125
127
|
status: ResponseStatus | undefined;
|
|
@@ -303,4 +305,106 @@ export interface SetParameterRequest {
|
|
|
303
305
|
key: string;
|
|
304
306
|
value: string;
|
|
305
307
|
}
|
|
308
|
+
export interface AdminTaskItem {
|
|
309
|
+
id: string;
|
|
310
|
+
kind: string;
|
|
311
|
+
multiplier: string;
|
|
312
|
+
max_count: number;
|
|
313
|
+
event: string;
|
|
314
|
+
title_tr: string;
|
|
315
|
+
title_en: string;
|
|
316
|
+
standard_only: boolean;
|
|
317
|
+
active: boolean;
|
|
318
|
+
sort: number;
|
|
319
|
+
completions_7d: number;
|
|
320
|
+
}
|
|
321
|
+
export interface AdminTasksResponse {
|
|
322
|
+
status: ResponseStatus | undefined;
|
|
323
|
+
data: AdminTaskItem[];
|
|
324
|
+
}
|
|
325
|
+
export interface AdminUsersRequest {
|
|
326
|
+
query: string;
|
|
327
|
+
status: string;
|
|
328
|
+
page: number;
|
|
329
|
+
per_page: number;
|
|
330
|
+
}
|
|
331
|
+
export interface AdminUserItem {
|
|
332
|
+
user_id: string;
|
|
333
|
+
username: string;
|
|
334
|
+
badge: string;
|
|
335
|
+
status: string;
|
|
336
|
+
status_reason: string;
|
|
337
|
+
code: string;
|
|
338
|
+
created_at: string;
|
|
339
|
+
activated_at: string;
|
|
340
|
+
last_seen_at: string;
|
|
341
|
+
sessions_completed: number;
|
|
342
|
+
balance: string;
|
|
343
|
+
invitees: number;
|
|
344
|
+
invitees_active: number;
|
|
345
|
+
device: string;
|
|
346
|
+
same_device: boolean;
|
|
347
|
+
gift_paid: boolean;
|
|
348
|
+
device_siblings: number;
|
|
349
|
+
referred_by: string;
|
|
350
|
+
referred_by_username: string;
|
|
351
|
+
}
|
|
352
|
+
export interface AdminUsersResponse {
|
|
353
|
+
status: ResponseStatus | undefined;
|
|
354
|
+
data: AdminUserItem[];
|
|
355
|
+
pagination: PaginationMetaResult | undefined;
|
|
356
|
+
}
|
|
357
|
+
export interface AdminActionItem {
|
|
358
|
+
id: string;
|
|
359
|
+
action: string;
|
|
360
|
+
reason: string;
|
|
361
|
+
note: string;
|
|
362
|
+
by_user_id: string;
|
|
363
|
+
by_username: string;
|
|
364
|
+
reversed_total: string;
|
|
365
|
+
detail: string;
|
|
366
|
+
created_at: string;
|
|
367
|
+
}
|
|
368
|
+
export interface AdminUserResponse {
|
|
369
|
+
status: ResponseStatus | undefined;
|
|
370
|
+
profile?: AdminUserItem | undefined;
|
|
371
|
+
invitees: AdminUserItem[];
|
|
372
|
+
device_siblings: AdminUserItem[];
|
|
373
|
+
ledger: HistoryItem[];
|
|
374
|
+
actions: AdminActionItem[];
|
|
375
|
+
credits: AdminCreditSource[];
|
|
376
|
+
pending_total: string;
|
|
377
|
+
total_received_gifts: string;
|
|
378
|
+
}
|
|
379
|
+
export interface AdminCreditSource {
|
|
380
|
+
from_user_id: string;
|
|
381
|
+
from_username: string;
|
|
382
|
+
level1: string;
|
|
383
|
+
level2: string;
|
|
384
|
+
gifts: string;
|
|
385
|
+
}
|
|
386
|
+
export interface AdminModerateRequest {
|
|
387
|
+
user_id: string;
|
|
388
|
+
action: string;
|
|
389
|
+
reason: string;
|
|
390
|
+
note: string;
|
|
391
|
+
cascade_invitees: boolean;
|
|
392
|
+
}
|
|
393
|
+
export interface AdminDeviceCluster {
|
|
394
|
+
device: string;
|
|
395
|
+
users: AdminUserItem[];
|
|
396
|
+
}
|
|
397
|
+
export interface AdminDeviceClustersResponse {
|
|
398
|
+
status: ResponseStatus | undefined;
|
|
399
|
+
data: AdminDeviceCluster[];
|
|
400
|
+
}
|
|
401
|
+
export interface AdminSetTaskRequest {
|
|
402
|
+
id: string;
|
|
403
|
+
multiplier: string;
|
|
404
|
+
active?: boolean | undefined;
|
|
405
|
+
title_tr: string;
|
|
406
|
+
title_en: string;
|
|
407
|
+
max_count?: number | undefined;
|
|
408
|
+
sort?: number | undefined;
|
|
409
|
+
}
|
|
306
410
|
export declare const MICRO_V1_MINING_PACKAGE_NAME = "micro.v1.mining";
|
|
@@ -201,6 +201,8 @@ export declare class MiningState extends Message<MiningState> {
|
|
|
201
201
|
sessionsCompleted: number;
|
|
202
202
|
streakDays: number;
|
|
203
203
|
inactive: boolean;
|
|
204
|
+
status: string;
|
|
205
|
+
statusReason: string;
|
|
204
206
|
constructor(data?: PartialMessage<MiningState>);
|
|
205
207
|
static readonly runtime: typeof proto3;
|
|
206
208
|
static readonly typeName = "micro.v1.mining.MiningState";
|
|
@@ -632,3 +634,201 @@ export declare class SetParameterRequest extends Message<SetParameterRequest> {
|
|
|
632
634
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SetParameterRequest;
|
|
633
635
|
static equals(a: SetParameterRequest | PlainMessage<SetParameterRequest> | undefined, b: SetParameterRequest | PlainMessage<SetParameterRequest> | undefined): boolean;
|
|
634
636
|
}
|
|
637
|
+
export declare class AdminTaskItem extends Message<AdminTaskItem> {
|
|
638
|
+
id: string;
|
|
639
|
+
kind: string;
|
|
640
|
+
multiplier: string;
|
|
641
|
+
maxCount: number;
|
|
642
|
+
event: string;
|
|
643
|
+
titleTr: string;
|
|
644
|
+
titleEn: string;
|
|
645
|
+
standardOnly: boolean;
|
|
646
|
+
active: boolean;
|
|
647
|
+
sort: number;
|
|
648
|
+
completions7d: number;
|
|
649
|
+
constructor(data?: PartialMessage<AdminTaskItem>);
|
|
650
|
+
static readonly runtime: typeof proto3;
|
|
651
|
+
static readonly typeName = "micro.v1.mining.AdminTaskItem";
|
|
652
|
+
static readonly fields: FieldList;
|
|
653
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AdminTaskItem;
|
|
654
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AdminTaskItem;
|
|
655
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AdminTaskItem;
|
|
656
|
+
static equals(a: AdminTaskItem | PlainMessage<AdminTaskItem> | undefined, b: AdminTaskItem | PlainMessage<AdminTaskItem> | undefined): boolean;
|
|
657
|
+
}
|
|
658
|
+
export declare class AdminTasksResponse extends Message<AdminTasksResponse> {
|
|
659
|
+
status?: ResponseStatus;
|
|
660
|
+
data: AdminTaskItem[];
|
|
661
|
+
constructor(data?: PartialMessage<AdminTasksResponse>);
|
|
662
|
+
static readonly runtime: typeof proto3;
|
|
663
|
+
static readonly typeName = "micro.v1.mining.AdminTasksResponse";
|
|
664
|
+
static readonly fields: FieldList;
|
|
665
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AdminTasksResponse;
|
|
666
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AdminTasksResponse;
|
|
667
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AdminTasksResponse;
|
|
668
|
+
static equals(a: AdminTasksResponse | PlainMessage<AdminTasksResponse> | undefined, b: AdminTasksResponse | PlainMessage<AdminTasksResponse> | undefined): boolean;
|
|
669
|
+
}
|
|
670
|
+
export declare class AdminUsersRequest extends Message<AdminUsersRequest> {
|
|
671
|
+
query: string;
|
|
672
|
+
status: string;
|
|
673
|
+
page: number;
|
|
674
|
+
perPage: number;
|
|
675
|
+
constructor(data?: PartialMessage<AdminUsersRequest>);
|
|
676
|
+
static readonly runtime: typeof proto3;
|
|
677
|
+
static readonly typeName = "micro.v1.mining.AdminUsersRequest";
|
|
678
|
+
static readonly fields: FieldList;
|
|
679
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AdminUsersRequest;
|
|
680
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AdminUsersRequest;
|
|
681
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AdminUsersRequest;
|
|
682
|
+
static equals(a: AdminUsersRequest | PlainMessage<AdminUsersRequest> | undefined, b: AdminUsersRequest | PlainMessage<AdminUsersRequest> | undefined): boolean;
|
|
683
|
+
}
|
|
684
|
+
export declare class AdminUserItem extends Message<AdminUserItem> {
|
|
685
|
+
userId: string;
|
|
686
|
+
username: string;
|
|
687
|
+
badge: string;
|
|
688
|
+
status: string;
|
|
689
|
+
statusReason: string;
|
|
690
|
+
code: string;
|
|
691
|
+
createdAt: string;
|
|
692
|
+
activatedAt: string;
|
|
693
|
+
lastSeenAt: string;
|
|
694
|
+
sessionsCompleted: number;
|
|
695
|
+
balance: string;
|
|
696
|
+
invitees: number;
|
|
697
|
+
inviteesActive: number;
|
|
698
|
+
device: string;
|
|
699
|
+
sameDevice: boolean;
|
|
700
|
+
giftPaid: boolean;
|
|
701
|
+
deviceSiblings: number;
|
|
702
|
+
referredBy: string;
|
|
703
|
+
referredByUsername: string;
|
|
704
|
+
constructor(data?: PartialMessage<AdminUserItem>);
|
|
705
|
+
static readonly runtime: typeof proto3;
|
|
706
|
+
static readonly typeName = "micro.v1.mining.AdminUserItem";
|
|
707
|
+
static readonly fields: FieldList;
|
|
708
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AdminUserItem;
|
|
709
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AdminUserItem;
|
|
710
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AdminUserItem;
|
|
711
|
+
static equals(a: AdminUserItem | PlainMessage<AdminUserItem> | undefined, b: AdminUserItem | PlainMessage<AdminUserItem> | undefined): boolean;
|
|
712
|
+
}
|
|
713
|
+
export declare class AdminUsersResponse extends Message<AdminUsersResponse> {
|
|
714
|
+
status?: ResponseStatus;
|
|
715
|
+
data: AdminUserItem[];
|
|
716
|
+
pagination?: PaginationMetaResult;
|
|
717
|
+
constructor(data?: PartialMessage<AdminUsersResponse>);
|
|
718
|
+
static readonly runtime: typeof proto3;
|
|
719
|
+
static readonly typeName = "micro.v1.mining.AdminUsersResponse";
|
|
720
|
+
static readonly fields: FieldList;
|
|
721
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AdminUsersResponse;
|
|
722
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AdminUsersResponse;
|
|
723
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AdminUsersResponse;
|
|
724
|
+
static equals(a: AdminUsersResponse | PlainMessage<AdminUsersResponse> | undefined, b: AdminUsersResponse | PlainMessage<AdminUsersResponse> | undefined): boolean;
|
|
725
|
+
}
|
|
726
|
+
export declare class AdminActionItem extends Message<AdminActionItem> {
|
|
727
|
+
id: string;
|
|
728
|
+
action: string;
|
|
729
|
+
reason: string;
|
|
730
|
+
note: string;
|
|
731
|
+
byUserId: string;
|
|
732
|
+
byUsername: string;
|
|
733
|
+
reversedTotal: string;
|
|
734
|
+
detail: string;
|
|
735
|
+
createdAt: string;
|
|
736
|
+
constructor(data?: PartialMessage<AdminActionItem>);
|
|
737
|
+
static readonly runtime: typeof proto3;
|
|
738
|
+
static readonly typeName = "micro.v1.mining.AdminActionItem";
|
|
739
|
+
static readonly fields: FieldList;
|
|
740
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AdminActionItem;
|
|
741
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AdminActionItem;
|
|
742
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AdminActionItem;
|
|
743
|
+
static equals(a: AdminActionItem | PlainMessage<AdminActionItem> | undefined, b: AdminActionItem | PlainMessage<AdminActionItem> | undefined): boolean;
|
|
744
|
+
}
|
|
745
|
+
export declare class AdminUserResponse extends Message<AdminUserResponse> {
|
|
746
|
+
status?: ResponseStatus;
|
|
747
|
+
profile?: AdminUserItem;
|
|
748
|
+
invitees: AdminUserItem[];
|
|
749
|
+
deviceSiblings: AdminUserItem[];
|
|
750
|
+
ledger: HistoryItem[];
|
|
751
|
+
actions: AdminActionItem[];
|
|
752
|
+
credits: AdminCreditSource[];
|
|
753
|
+
pendingTotal: string;
|
|
754
|
+
totalReceivedGifts: string;
|
|
755
|
+
constructor(data?: PartialMessage<AdminUserResponse>);
|
|
756
|
+
static readonly runtime: typeof proto3;
|
|
757
|
+
static readonly typeName = "micro.v1.mining.AdminUserResponse";
|
|
758
|
+
static readonly fields: FieldList;
|
|
759
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AdminUserResponse;
|
|
760
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AdminUserResponse;
|
|
761
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AdminUserResponse;
|
|
762
|
+
static equals(a: AdminUserResponse | PlainMessage<AdminUserResponse> | undefined, b: AdminUserResponse | PlainMessage<AdminUserResponse> | undefined): boolean;
|
|
763
|
+
}
|
|
764
|
+
export declare class AdminCreditSource extends Message<AdminCreditSource> {
|
|
765
|
+
fromUserId: string;
|
|
766
|
+
fromUsername: string;
|
|
767
|
+
level1: string;
|
|
768
|
+
level2: string;
|
|
769
|
+
gifts: string;
|
|
770
|
+
constructor(data?: PartialMessage<AdminCreditSource>);
|
|
771
|
+
static readonly runtime: typeof proto3;
|
|
772
|
+
static readonly typeName = "micro.v1.mining.AdminCreditSource";
|
|
773
|
+
static readonly fields: FieldList;
|
|
774
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AdminCreditSource;
|
|
775
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AdminCreditSource;
|
|
776
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AdminCreditSource;
|
|
777
|
+
static equals(a: AdminCreditSource | PlainMessage<AdminCreditSource> | undefined, b: AdminCreditSource | PlainMessage<AdminCreditSource> | undefined): boolean;
|
|
778
|
+
}
|
|
779
|
+
export declare class AdminModerateRequest extends Message<AdminModerateRequest> {
|
|
780
|
+
userId: string;
|
|
781
|
+
action: string;
|
|
782
|
+
reason: string;
|
|
783
|
+
note: string;
|
|
784
|
+
cascadeInvitees: boolean;
|
|
785
|
+
constructor(data?: PartialMessage<AdminModerateRequest>);
|
|
786
|
+
static readonly runtime: typeof proto3;
|
|
787
|
+
static readonly typeName = "micro.v1.mining.AdminModerateRequest";
|
|
788
|
+
static readonly fields: FieldList;
|
|
789
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AdminModerateRequest;
|
|
790
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AdminModerateRequest;
|
|
791
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AdminModerateRequest;
|
|
792
|
+
static equals(a: AdminModerateRequest | PlainMessage<AdminModerateRequest> | undefined, b: AdminModerateRequest | PlainMessage<AdminModerateRequest> | undefined): boolean;
|
|
793
|
+
}
|
|
794
|
+
export declare class AdminDeviceCluster extends Message<AdminDeviceCluster> {
|
|
795
|
+
device: string;
|
|
796
|
+
users: AdminUserItem[];
|
|
797
|
+
constructor(data?: PartialMessage<AdminDeviceCluster>);
|
|
798
|
+
static readonly runtime: typeof proto3;
|
|
799
|
+
static readonly typeName = "micro.v1.mining.AdminDeviceCluster";
|
|
800
|
+
static readonly fields: FieldList;
|
|
801
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AdminDeviceCluster;
|
|
802
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AdminDeviceCluster;
|
|
803
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AdminDeviceCluster;
|
|
804
|
+
static equals(a: AdminDeviceCluster | PlainMessage<AdminDeviceCluster> | undefined, b: AdminDeviceCluster | PlainMessage<AdminDeviceCluster> | undefined): boolean;
|
|
805
|
+
}
|
|
806
|
+
export declare class AdminDeviceClustersResponse extends Message<AdminDeviceClustersResponse> {
|
|
807
|
+
status?: ResponseStatus;
|
|
808
|
+
data: AdminDeviceCluster[];
|
|
809
|
+
constructor(data?: PartialMessage<AdminDeviceClustersResponse>);
|
|
810
|
+
static readonly runtime: typeof proto3;
|
|
811
|
+
static readonly typeName = "micro.v1.mining.AdminDeviceClustersResponse";
|
|
812
|
+
static readonly fields: FieldList;
|
|
813
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AdminDeviceClustersResponse;
|
|
814
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AdminDeviceClustersResponse;
|
|
815
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AdminDeviceClustersResponse;
|
|
816
|
+
static equals(a: AdminDeviceClustersResponse | PlainMessage<AdminDeviceClustersResponse> | undefined, b: AdminDeviceClustersResponse | PlainMessage<AdminDeviceClustersResponse> | undefined): boolean;
|
|
817
|
+
}
|
|
818
|
+
export declare class AdminSetTaskRequest extends Message<AdminSetTaskRequest> {
|
|
819
|
+
id: string;
|
|
820
|
+
multiplier: string;
|
|
821
|
+
active?: boolean;
|
|
822
|
+
titleTr: string;
|
|
823
|
+
titleEn: string;
|
|
824
|
+
maxCount?: number;
|
|
825
|
+
sort?: number;
|
|
826
|
+
constructor(data?: PartialMessage<AdminSetTaskRequest>);
|
|
827
|
+
static readonly runtime: typeof proto3;
|
|
828
|
+
static readonly typeName = "micro.v1.mining.AdminSetTaskRequest";
|
|
829
|
+
static readonly fields: FieldList;
|
|
830
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AdminSetTaskRequest;
|
|
831
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AdminSetTaskRequest;
|
|
832
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AdminSetTaskRequest;
|
|
833
|
+
static equals(a: AdminSetTaskRequest | PlainMessage<AdminSetTaskRequest> | undefined, b: AdminSetTaskRequest | PlainMessage<AdminSetTaskRequest> | undefined): boolean;
|
|
834
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
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.ConfigResponse = 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.TeamWeek = exports.TeamMember = exports.ReferralInfo = exports.HalvingInfo = exports.RateInfo = exports.SessionInfo = void 0;
|
|
3
|
+
exports.AdminModerateRequest = exports.AdminCreditSource = exports.AdminUserResponse = exports.AdminActionItem = exports.AdminUsersResponse = exports.AdminUserItem = exports.AdminUsersRequest = exports.AdminTasksResponse = exports.AdminTaskItem = exports.SetParameterRequest = exports.ParametersResponse = exports.ParameterItem = exports.AdminOverviewResponse = exports.AdminTopReferrer = exports.AdminTaskStat = exports.AdminSeries = exports.AdminSeriesPoint = exports.AdminMetric = exports.AdminOverviewRequest = exports.ConfigResponse = 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.TeamWeek = exports.TeamMember = exports.ReferralInfo = exports.HalvingInfo = exports.RateInfo = exports.SessionInfo = void 0;
|
|
4
|
+
exports.AdminSetTaskRequest = exports.AdminDeviceClustersResponse = exports.AdminDeviceCluster = void 0;
|
|
4
5
|
const protobuf_1 = require("@bufbuild/protobuf");
|
|
5
6
|
const general_pb_js_1 = require("../general_pb.js");
|
|
6
7
|
class SessionInfo extends protobuf_1.Message {
|
|
@@ -415,6 +416,8 @@ class MiningState extends protobuf_1.Message {
|
|
|
415
416
|
sessionsCompleted = 0;
|
|
416
417
|
streakDays = 0;
|
|
417
418
|
inactive = false;
|
|
419
|
+
status = "";
|
|
420
|
+
statusReason = "";
|
|
418
421
|
constructor(data) {
|
|
419
422
|
super();
|
|
420
423
|
protobuf_1.proto3.util.initPartial(data, this);
|
|
@@ -439,6 +442,8 @@ class MiningState extends protobuf_1.Message {
|
|
|
439
442
|
{ no: 15, name: "sessions_completed", kind: "scalar", T: 5 },
|
|
440
443
|
{ no: 16, name: "streak_days", kind: "scalar", T: 5 },
|
|
441
444
|
{ no: 17, name: "inactive", kind: "scalar", T: 8 },
|
|
445
|
+
{ no: 18, name: "status", kind: "scalar", T: 9 },
|
|
446
|
+
{ no: 19, name: "status_reason", kind: "scalar", T: 9 },
|
|
442
447
|
]);
|
|
443
448
|
static fromBinary(bytes, options) {
|
|
444
449
|
return new MiningState().fromBinary(bytes, options);
|
|
@@ -1388,3 +1393,435 @@ class SetParameterRequest extends protobuf_1.Message {
|
|
|
1388
1393
|
}
|
|
1389
1394
|
}
|
|
1390
1395
|
exports.SetParameterRequest = SetParameterRequest;
|
|
1396
|
+
class AdminTaskItem extends protobuf_1.Message {
|
|
1397
|
+
id = "";
|
|
1398
|
+
kind = "";
|
|
1399
|
+
multiplier = "";
|
|
1400
|
+
maxCount = 0;
|
|
1401
|
+
event = "";
|
|
1402
|
+
titleTr = "";
|
|
1403
|
+
titleEn = "";
|
|
1404
|
+
standardOnly = false;
|
|
1405
|
+
active = false;
|
|
1406
|
+
sort = 0;
|
|
1407
|
+
completions7d = 0;
|
|
1408
|
+
constructor(data) {
|
|
1409
|
+
super();
|
|
1410
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
1411
|
+
}
|
|
1412
|
+
static runtime = protobuf_1.proto3;
|
|
1413
|
+
static typeName = "micro.v1.mining.AdminTaskItem";
|
|
1414
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
1415
|
+
{ no: 1, name: "id", kind: "scalar", T: 9 },
|
|
1416
|
+
{ no: 2, name: "kind", kind: "scalar", T: 9 },
|
|
1417
|
+
{ no: 3, name: "multiplier", kind: "scalar", T: 9 },
|
|
1418
|
+
{ no: 4, name: "max_count", kind: "scalar", T: 5 },
|
|
1419
|
+
{ no: 5, name: "event", kind: "scalar", T: 9 },
|
|
1420
|
+
{ no: 6, name: "title_tr", kind: "scalar", T: 9 },
|
|
1421
|
+
{ no: 7, name: "title_en", kind: "scalar", T: 9 },
|
|
1422
|
+
{ no: 8, name: "standard_only", kind: "scalar", T: 8 },
|
|
1423
|
+
{ no: 9, name: "active", kind: "scalar", T: 8 },
|
|
1424
|
+
{ no: 10, name: "sort", kind: "scalar", T: 5 },
|
|
1425
|
+
{ no: 11, name: "completions_7d", kind: "scalar", T: 5 },
|
|
1426
|
+
]);
|
|
1427
|
+
static fromBinary(bytes, options) {
|
|
1428
|
+
return new AdminTaskItem().fromBinary(bytes, options);
|
|
1429
|
+
}
|
|
1430
|
+
static fromJson(jsonValue, options) {
|
|
1431
|
+
return new AdminTaskItem().fromJson(jsonValue, options);
|
|
1432
|
+
}
|
|
1433
|
+
static fromJsonString(jsonString, options) {
|
|
1434
|
+
return new AdminTaskItem().fromJsonString(jsonString, options);
|
|
1435
|
+
}
|
|
1436
|
+
static equals(a, b) {
|
|
1437
|
+
return protobuf_1.proto3.util.equals(AdminTaskItem, a, b);
|
|
1438
|
+
}
|
|
1439
|
+
}
|
|
1440
|
+
exports.AdminTaskItem = AdminTaskItem;
|
|
1441
|
+
class AdminTasksResponse extends protobuf_1.Message {
|
|
1442
|
+
status;
|
|
1443
|
+
data = [];
|
|
1444
|
+
constructor(data) {
|
|
1445
|
+
super();
|
|
1446
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
1447
|
+
}
|
|
1448
|
+
static runtime = protobuf_1.proto3;
|
|
1449
|
+
static typeName = "micro.v1.mining.AdminTasksResponse";
|
|
1450
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
1451
|
+
{ no: 1, name: "status", kind: "message", T: general_pb_js_1.ResponseStatus },
|
|
1452
|
+
{ no: 2, name: "data", kind: "message", T: AdminTaskItem, repeated: true },
|
|
1453
|
+
]);
|
|
1454
|
+
static fromBinary(bytes, options) {
|
|
1455
|
+
return new AdminTasksResponse().fromBinary(bytes, options);
|
|
1456
|
+
}
|
|
1457
|
+
static fromJson(jsonValue, options) {
|
|
1458
|
+
return new AdminTasksResponse().fromJson(jsonValue, options);
|
|
1459
|
+
}
|
|
1460
|
+
static fromJsonString(jsonString, options) {
|
|
1461
|
+
return new AdminTasksResponse().fromJsonString(jsonString, options);
|
|
1462
|
+
}
|
|
1463
|
+
static equals(a, b) {
|
|
1464
|
+
return protobuf_1.proto3.util.equals(AdminTasksResponse, a, b);
|
|
1465
|
+
}
|
|
1466
|
+
}
|
|
1467
|
+
exports.AdminTasksResponse = AdminTasksResponse;
|
|
1468
|
+
class AdminUsersRequest extends protobuf_1.Message {
|
|
1469
|
+
query = "";
|
|
1470
|
+
status = "";
|
|
1471
|
+
page = 0;
|
|
1472
|
+
perPage = 0;
|
|
1473
|
+
constructor(data) {
|
|
1474
|
+
super();
|
|
1475
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
1476
|
+
}
|
|
1477
|
+
static runtime = protobuf_1.proto3;
|
|
1478
|
+
static typeName = "micro.v1.mining.AdminUsersRequest";
|
|
1479
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
1480
|
+
{ no: 1, name: "query", kind: "scalar", T: 9 },
|
|
1481
|
+
{ no: 2, name: "status", kind: "scalar", T: 9 },
|
|
1482
|
+
{ no: 3, name: "page", kind: "scalar", T: 5 },
|
|
1483
|
+
{ no: 4, name: "per_page", kind: "scalar", T: 5 },
|
|
1484
|
+
]);
|
|
1485
|
+
static fromBinary(bytes, options) {
|
|
1486
|
+
return new AdminUsersRequest().fromBinary(bytes, options);
|
|
1487
|
+
}
|
|
1488
|
+
static fromJson(jsonValue, options) {
|
|
1489
|
+
return new AdminUsersRequest().fromJson(jsonValue, options);
|
|
1490
|
+
}
|
|
1491
|
+
static fromJsonString(jsonString, options) {
|
|
1492
|
+
return new AdminUsersRequest().fromJsonString(jsonString, options);
|
|
1493
|
+
}
|
|
1494
|
+
static equals(a, b) {
|
|
1495
|
+
return protobuf_1.proto3.util.equals(AdminUsersRequest, a, b);
|
|
1496
|
+
}
|
|
1497
|
+
}
|
|
1498
|
+
exports.AdminUsersRequest = AdminUsersRequest;
|
|
1499
|
+
class AdminUserItem extends protobuf_1.Message {
|
|
1500
|
+
userId = "";
|
|
1501
|
+
username = "";
|
|
1502
|
+
badge = "";
|
|
1503
|
+
status = "";
|
|
1504
|
+
statusReason = "";
|
|
1505
|
+
code = "";
|
|
1506
|
+
createdAt = "";
|
|
1507
|
+
activatedAt = "";
|
|
1508
|
+
lastSeenAt = "";
|
|
1509
|
+
sessionsCompleted = 0;
|
|
1510
|
+
balance = "";
|
|
1511
|
+
invitees = 0;
|
|
1512
|
+
inviteesActive = 0;
|
|
1513
|
+
device = "";
|
|
1514
|
+
sameDevice = false;
|
|
1515
|
+
giftPaid = false;
|
|
1516
|
+
deviceSiblings = 0;
|
|
1517
|
+
referredBy = "";
|
|
1518
|
+
referredByUsername = "";
|
|
1519
|
+
constructor(data) {
|
|
1520
|
+
super();
|
|
1521
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
1522
|
+
}
|
|
1523
|
+
static runtime = protobuf_1.proto3;
|
|
1524
|
+
static typeName = "micro.v1.mining.AdminUserItem";
|
|
1525
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
1526
|
+
{ no: 1, name: "user_id", kind: "scalar", T: 9 },
|
|
1527
|
+
{ no: 2, name: "username", kind: "scalar", T: 9 },
|
|
1528
|
+
{ no: 3, name: "badge", kind: "scalar", T: 9 },
|
|
1529
|
+
{ no: 4, name: "status", kind: "scalar", T: 9 },
|
|
1530
|
+
{ no: 5, name: "status_reason", kind: "scalar", T: 9 },
|
|
1531
|
+
{ no: 6, name: "code", kind: "scalar", T: 9 },
|
|
1532
|
+
{ no: 7, name: "created_at", kind: "scalar", T: 9 },
|
|
1533
|
+
{ no: 8, name: "activated_at", kind: "scalar", T: 9 },
|
|
1534
|
+
{ no: 9, name: "last_seen_at", kind: "scalar", T: 9 },
|
|
1535
|
+
{ no: 10, name: "sessions_completed", kind: "scalar", T: 5 },
|
|
1536
|
+
{ no: 11, name: "balance", kind: "scalar", T: 9 },
|
|
1537
|
+
{ no: 12, name: "invitees", kind: "scalar", T: 5 },
|
|
1538
|
+
{ no: 13, name: "invitees_active", kind: "scalar", T: 5 },
|
|
1539
|
+
{ no: 14, name: "device", kind: "scalar", T: 9 },
|
|
1540
|
+
{ no: 15, name: "same_device", kind: "scalar", T: 8 },
|
|
1541
|
+
{ no: 16, name: "gift_paid", kind: "scalar", T: 8 },
|
|
1542
|
+
{ no: 17, name: "device_siblings", kind: "scalar", T: 5 },
|
|
1543
|
+
{ no: 18, name: "referred_by", kind: "scalar", T: 9 },
|
|
1544
|
+
{ no: 19, name: "referred_by_username", kind: "scalar", T: 9 },
|
|
1545
|
+
]);
|
|
1546
|
+
static fromBinary(bytes, options) {
|
|
1547
|
+
return new AdminUserItem().fromBinary(bytes, options);
|
|
1548
|
+
}
|
|
1549
|
+
static fromJson(jsonValue, options) {
|
|
1550
|
+
return new AdminUserItem().fromJson(jsonValue, options);
|
|
1551
|
+
}
|
|
1552
|
+
static fromJsonString(jsonString, options) {
|
|
1553
|
+
return new AdminUserItem().fromJsonString(jsonString, options);
|
|
1554
|
+
}
|
|
1555
|
+
static equals(a, b) {
|
|
1556
|
+
return protobuf_1.proto3.util.equals(AdminUserItem, a, b);
|
|
1557
|
+
}
|
|
1558
|
+
}
|
|
1559
|
+
exports.AdminUserItem = AdminUserItem;
|
|
1560
|
+
class AdminUsersResponse extends protobuf_1.Message {
|
|
1561
|
+
status;
|
|
1562
|
+
data = [];
|
|
1563
|
+
pagination;
|
|
1564
|
+
constructor(data) {
|
|
1565
|
+
super();
|
|
1566
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
1567
|
+
}
|
|
1568
|
+
static runtime = protobuf_1.proto3;
|
|
1569
|
+
static typeName = "micro.v1.mining.AdminUsersResponse";
|
|
1570
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
1571
|
+
{ no: 1, name: "status", kind: "message", T: general_pb_js_1.ResponseStatus },
|
|
1572
|
+
{ no: 2, name: "data", kind: "message", T: AdminUserItem, repeated: true },
|
|
1573
|
+
{ no: 3, name: "pagination", kind: "message", T: general_pb_js_1.PaginationMetaResult },
|
|
1574
|
+
]);
|
|
1575
|
+
static fromBinary(bytes, options) {
|
|
1576
|
+
return new AdminUsersResponse().fromBinary(bytes, options);
|
|
1577
|
+
}
|
|
1578
|
+
static fromJson(jsonValue, options) {
|
|
1579
|
+
return new AdminUsersResponse().fromJson(jsonValue, options);
|
|
1580
|
+
}
|
|
1581
|
+
static fromJsonString(jsonString, options) {
|
|
1582
|
+
return new AdminUsersResponse().fromJsonString(jsonString, options);
|
|
1583
|
+
}
|
|
1584
|
+
static equals(a, b) {
|
|
1585
|
+
return protobuf_1.proto3.util.equals(AdminUsersResponse, a, b);
|
|
1586
|
+
}
|
|
1587
|
+
}
|
|
1588
|
+
exports.AdminUsersResponse = AdminUsersResponse;
|
|
1589
|
+
class AdminActionItem extends protobuf_1.Message {
|
|
1590
|
+
id = "";
|
|
1591
|
+
action = "";
|
|
1592
|
+
reason = "";
|
|
1593
|
+
note = "";
|
|
1594
|
+
byUserId = "";
|
|
1595
|
+
byUsername = "";
|
|
1596
|
+
reversedTotal = "";
|
|
1597
|
+
detail = "";
|
|
1598
|
+
createdAt = "";
|
|
1599
|
+
constructor(data) {
|
|
1600
|
+
super();
|
|
1601
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
1602
|
+
}
|
|
1603
|
+
static runtime = protobuf_1.proto3;
|
|
1604
|
+
static typeName = "micro.v1.mining.AdminActionItem";
|
|
1605
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
1606
|
+
{ no: 1, name: "id", kind: "scalar", T: 9 },
|
|
1607
|
+
{ no: 2, name: "action", kind: "scalar", T: 9 },
|
|
1608
|
+
{ no: 3, name: "reason", kind: "scalar", T: 9 },
|
|
1609
|
+
{ no: 4, name: "note", kind: "scalar", T: 9 },
|
|
1610
|
+
{ no: 5, name: "by_user_id", kind: "scalar", T: 9 },
|
|
1611
|
+
{ no: 6, name: "by_username", kind: "scalar", T: 9 },
|
|
1612
|
+
{ no: 7, name: "reversed_total", kind: "scalar", T: 9 },
|
|
1613
|
+
{ no: 8, name: "detail", kind: "scalar", T: 9 },
|
|
1614
|
+
{ no: 9, name: "created_at", kind: "scalar", T: 9 },
|
|
1615
|
+
]);
|
|
1616
|
+
static fromBinary(bytes, options) {
|
|
1617
|
+
return new AdminActionItem().fromBinary(bytes, options);
|
|
1618
|
+
}
|
|
1619
|
+
static fromJson(jsonValue, options) {
|
|
1620
|
+
return new AdminActionItem().fromJson(jsonValue, options);
|
|
1621
|
+
}
|
|
1622
|
+
static fromJsonString(jsonString, options) {
|
|
1623
|
+
return new AdminActionItem().fromJsonString(jsonString, options);
|
|
1624
|
+
}
|
|
1625
|
+
static equals(a, b) {
|
|
1626
|
+
return protobuf_1.proto3.util.equals(AdminActionItem, a, b);
|
|
1627
|
+
}
|
|
1628
|
+
}
|
|
1629
|
+
exports.AdminActionItem = AdminActionItem;
|
|
1630
|
+
class AdminUserResponse extends protobuf_1.Message {
|
|
1631
|
+
status;
|
|
1632
|
+
profile;
|
|
1633
|
+
invitees = [];
|
|
1634
|
+
deviceSiblings = [];
|
|
1635
|
+
ledger = [];
|
|
1636
|
+
actions = [];
|
|
1637
|
+
credits = [];
|
|
1638
|
+
pendingTotal = "";
|
|
1639
|
+
totalReceivedGifts = "";
|
|
1640
|
+
constructor(data) {
|
|
1641
|
+
super();
|
|
1642
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
1643
|
+
}
|
|
1644
|
+
static runtime = protobuf_1.proto3;
|
|
1645
|
+
static typeName = "micro.v1.mining.AdminUserResponse";
|
|
1646
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
1647
|
+
{ no: 1, name: "status", kind: "message", T: general_pb_js_1.ResponseStatus },
|
|
1648
|
+
{ no: 2, name: "profile", kind: "message", T: AdminUserItem, opt: true },
|
|
1649
|
+
{ no: 3, name: "invitees", kind: "message", T: AdminUserItem, repeated: true },
|
|
1650
|
+
{ no: 4, name: "device_siblings", kind: "message", T: AdminUserItem, repeated: true },
|
|
1651
|
+
{ no: 5, name: "ledger", kind: "message", T: HistoryItem, repeated: true },
|
|
1652
|
+
{ no: 6, name: "actions", kind: "message", T: AdminActionItem, repeated: true },
|
|
1653
|
+
{ no: 7, name: "credits", kind: "message", T: AdminCreditSource, repeated: true },
|
|
1654
|
+
{ no: 8, name: "pending_total", kind: "scalar", T: 9 },
|
|
1655
|
+
{ no: 9, name: "total_received_gifts", kind: "scalar", T: 9 },
|
|
1656
|
+
]);
|
|
1657
|
+
static fromBinary(bytes, options) {
|
|
1658
|
+
return new AdminUserResponse().fromBinary(bytes, options);
|
|
1659
|
+
}
|
|
1660
|
+
static fromJson(jsonValue, options) {
|
|
1661
|
+
return new AdminUserResponse().fromJson(jsonValue, options);
|
|
1662
|
+
}
|
|
1663
|
+
static fromJsonString(jsonString, options) {
|
|
1664
|
+
return new AdminUserResponse().fromJsonString(jsonString, options);
|
|
1665
|
+
}
|
|
1666
|
+
static equals(a, b) {
|
|
1667
|
+
return protobuf_1.proto3.util.equals(AdminUserResponse, a, b);
|
|
1668
|
+
}
|
|
1669
|
+
}
|
|
1670
|
+
exports.AdminUserResponse = AdminUserResponse;
|
|
1671
|
+
class AdminCreditSource extends protobuf_1.Message {
|
|
1672
|
+
fromUserId = "";
|
|
1673
|
+
fromUsername = "";
|
|
1674
|
+
level1 = "";
|
|
1675
|
+
level2 = "";
|
|
1676
|
+
gifts = "";
|
|
1677
|
+
constructor(data) {
|
|
1678
|
+
super();
|
|
1679
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
1680
|
+
}
|
|
1681
|
+
static runtime = protobuf_1.proto3;
|
|
1682
|
+
static typeName = "micro.v1.mining.AdminCreditSource";
|
|
1683
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
1684
|
+
{ no: 1, name: "from_user_id", kind: "scalar", T: 9 },
|
|
1685
|
+
{ no: 2, name: "from_username", kind: "scalar", T: 9 },
|
|
1686
|
+
{ no: 3, name: "level1", kind: "scalar", T: 9 },
|
|
1687
|
+
{ no: 4, name: "level2", kind: "scalar", T: 9 },
|
|
1688
|
+
{ no: 5, name: "gifts", kind: "scalar", T: 9 },
|
|
1689
|
+
]);
|
|
1690
|
+
static fromBinary(bytes, options) {
|
|
1691
|
+
return new AdminCreditSource().fromBinary(bytes, options);
|
|
1692
|
+
}
|
|
1693
|
+
static fromJson(jsonValue, options) {
|
|
1694
|
+
return new AdminCreditSource().fromJson(jsonValue, options);
|
|
1695
|
+
}
|
|
1696
|
+
static fromJsonString(jsonString, options) {
|
|
1697
|
+
return new AdminCreditSource().fromJsonString(jsonString, options);
|
|
1698
|
+
}
|
|
1699
|
+
static equals(a, b) {
|
|
1700
|
+
return protobuf_1.proto3.util.equals(AdminCreditSource, a, b);
|
|
1701
|
+
}
|
|
1702
|
+
}
|
|
1703
|
+
exports.AdminCreditSource = AdminCreditSource;
|
|
1704
|
+
class AdminModerateRequest extends protobuf_1.Message {
|
|
1705
|
+
userId = "";
|
|
1706
|
+
action = "";
|
|
1707
|
+
reason = "";
|
|
1708
|
+
note = "";
|
|
1709
|
+
cascadeInvitees = false;
|
|
1710
|
+
constructor(data) {
|
|
1711
|
+
super();
|
|
1712
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
1713
|
+
}
|
|
1714
|
+
static runtime = protobuf_1.proto3;
|
|
1715
|
+
static typeName = "micro.v1.mining.AdminModerateRequest";
|
|
1716
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
1717
|
+
{ no: 1, name: "user_id", kind: "scalar", T: 9 },
|
|
1718
|
+
{ no: 2, name: "action", kind: "scalar", T: 9 },
|
|
1719
|
+
{ no: 3, name: "reason", kind: "scalar", T: 9 },
|
|
1720
|
+
{ no: 4, name: "note", kind: "scalar", T: 9 },
|
|
1721
|
+
{ no: 5, name: "cascade_invitees", kind: "scalar", T: 8 },
|
|
1722
|
+
]);
|
|
1723
|
+
static fromBinary(bytes, options) {
|
|
1724
|
+
return new AdminModerateRequest().fromBinary(bytes, options);
|
|
1725
|
+
}
|
|
1726
|
+
static fromJson(jsonValue, options) {
|
|
1727
|
+
return new AdminModerateRequest().fromJson(jsonValue, options);
|
|
1728
|
+
}
|
|
1729
|
+
static fromJsonString(jsonString, options) {
|
|
1730
|
+
return new AdminModerateRequest().fromJsonString(jsonString, options);
|
|
1731
|
+
}
|
|
1732
|
+
static equals(a, b) {
|
|
1733
|
+
return protobuf_1.proto3.util.equals(AdminModerateRequest, a, b);
|
|
1734
|
+
}
|
|
1735
|
+
}
|
|
1736
|
+
exports.AdminModerateRequest = AdminModerateRequest;
|
|
1737
|
+
class AdminDeviceCluster extends protobuf_1.Message {
|
|
1738
|
+
device = "";
|
|
1739
|
+
users = [];
|
|
1740
|
+
constructor(data) {
|
|
1741
|
+
super();
|
|
1742
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
1743
|
+
}
|
|
1744
|
+
static runtime = protobuf_1.proto3;
|
|
1745
|
+
static typeName = "micro.v1.mining.AdminDeviceCluster";
|
|
1746
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
1747
|
+
{ no: 1, name: "device", kind: "scalar", T: 9 },
|
|
1748
|
+
{ no: 2, name: "users", kind: "message", T: AdminUserItem, repeated: true },
|
|
1749
|
+
]);
|
|
1750
|
+
static fromBinary(bytes, options) {
|
|
1751
|
+
return new AdminDeviceCluster().fromBinary(bytes, options);
|
|
1752
|
+
}
|
|
1753
|
+
static fromJson(jsonValue, options) {
|
|
1754
|
+
return new AdminDeviceCluster().fromJson(jsonValue, options);
|
|
1755
|
+
}
|
|
1756
|
+
static fromJsonString(jsonString, options) {
|
|
1757
|
+
return new AdminDeviceCluster().fromJsonString(jsonString, options);
|
|
1758
|
+
}
|
|
1759
|
+
static equals(a, b) {
|
|
1760
|
+
return protobuf_1.proto3.util.equals(AdminDeviceCluster, a, b);
|
|
1761
|
+
}
|
|
1762
|
+
}
|
|
1763
|
+
exports.AdminDeviceCluster = AdminDeviceCluster;
|
|
1764
|
+
class AdminDeviceClustersResponse extends protobuf_1.Message {
|
|
1765
|
+
status;
|
|
1766
|
+
data = [];
|
|
1767
|
+
constructor(data) {
|
|
1768
|
+
super();
|
|
1769
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
1770
|
+
}
|
|
1771
|
+
static runtime = protobuf_1.proto3;
|
|
1772
|
+
static typeName = "micro.v1.mining.AdminDeviceClustersResponse";
|
|
1773
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
1774
|
+
{ no: 1, name: "status", kind: "message", T: general_pb_js_1.ResponseStatus },
|
|
1775
|
+
{ no: 2, name: "data", kind: "message", T: AdminDeviceCluster, repeated: true },
|
|
1776
|
+
]);
|
|
1777
|
+
static fromBinary(bytes, options) {
|
|
1778
|
+
return new AdminDeviceClustersResponse().fromBinary(bytes, options);
|
|
1779
|
+
}
|
|
1780
|
+
static fromJson(jsonValue, options) {
|
|
1781
|
+
return new AdminDeviceClustersResponse().fromJson(jsonValue, options);
|
|
1782
|
+
}
|
|
1783
|
+
static fromJsonString(jsonString, options) {
|
|
1784
|
+
return new AdminDeviceClustersResponse().fromJsonString(jsonString, options);
|
|
1785
|
+
}
|
|
1786
|
+
static equals(a, b) {
|
|
1787
|
+
return protobuf_1.proto3.util.equals(AdminDeviceClustersResponse, a, b);
|
|
1788
|
+
}
|
|
1789
|
+
}
|
|
1790
|
+
exports.AdminDeviceClustersResponse = AdminDeviceClustersResponse;
|
|
1791
|
+
class AdminSetTaskRequest extends protobuf_1.Message {
|
|
1792
|
+
id = "";
|
|
1793
|
+
multiplier = "";
|
|
1794
|
+
active;
|
|
1795
|
+
titleTr = "";
|
|
1796
|
+
titleEn = "";
|
|
1797
|
+
maxCount;
|
|
1798
|
+
sort;
|
|
1799
|
+
constructor(data) {
|
|
1800
|
+
super();
|
|
1801
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
1802
|
+
}
|
|
1803
|
+
static runtime = protobuf_1.proto3;
|
|
1804
|
+
static typeName = "micro.v1.mining.AdminSetTaskRequest";
|
|
1805
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
1806
|
+
{ no: 1, name: "id", kind: "scalar", T: 9 },
|
|
1807
|
+
{ no: 2, name: "multiplier", kind: "scalar", T: 9 },
|
|
1808
|
+
{ no: 3, name: "active", kind: "scalar", T: 8, opt: true },
|
|
1809
|
+
{ no: 4, name: "title_tr", kind: "scalar", T: 9 },
|
|
1810
|
+
{ no: 5, name: "title_en", kind: "scalar", T: 9 },
|
|
1811
|
+
{ no: 6, name: "max_count", kind: "scalar", T: 5, opt: true },
|
|
1812
|
+
{ no: 7, name: "sort", kind: "scalar", T: 5, opt: true },
|
|
1813
|
+
]);
|
|
1814
|
+
static fromBinary(bytes, options) {
|
|
1815
|
+
return new AdminSetTaskRequest().fromBinary(bytes, options);
|
|
1816
|
+
}
|
|
1817
|
+
static fromJson(jsonValue, options) {
|
|
1818
|
+
return new AdminSetTaskRequest().fromJson(jsonValue, options);
|
|
1819
|
+
}
|
|
1820
|
+
static fromJsonString(jsonString, options) {
|
|
1821
|
+
return new AdminSetTaskRequest().fromJsonString(jsonString, options);
|
|
1822
|
+
}
|
|
1823
|
+
static equals(a, b) {
|
|
1824
|
+
return protobuf_1.proto3.util.equals(AdminSetTaskRequest, a, b);
|
|
1825
|
+
}
|
|
1826
|
+
}
|
|
1827
|
+
exports.AdminSetTaskRequest = AdminSetTaskRequest;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ByIdRequest, EmptyRequest, EmptyResponse } from "../general_pb.js";
|
|
2
|
-
import { AdminOverviewRequest, AdminOverviewResponse, ClaimResponse, ConfigResponse, EnrollRequest, EnrollResponse, HistoryRequest, HistoryResponse, MiningMeResponse, ParametersResponse, ReferralListRequest, ReferralListResponse, ResolveCodeRequest, ResolveCodeResponse, SetParameterRequest, SetTeamRequest, TaskEventRequest, TaskEventResponse, TasksResponse, TeamResponse, UpdateSettingsRequest } from "./mining_messages_pb.js";
|
|
2
|
+
import { AdminDeviceClustersResponse, AdminModerateRequest, AdminOverviewRequest, AdminOverviewResponse, AdminSetTaskRequest, AdminTasksResponse, AdminUserResponse, AdminUsersRequest, AdminUsersResponse, ClaimResponse, ConfigResponse, EnrollRequest, EnrollResponse, HistoryRequest, HistoryResponse, MiningMeResponse, ParametersResponse, ReferralListRequest, ReferralListResponse, ResolveCodeRequest, ResolveCodeResponse, SetParameterRequest, SetTeamRequest, TaskEventRequest, TaskEventResponse, TasksResponse, TeamResponse, UpdateSettingsRequest } from "./mining_messages_pb.js";
|
|
3
3
|
import { MethodKind } from "@bufbuild/protobuf";
|
|
4
4
|
export declare const PMiningService: {
|
|
5
5
|
readonly typeName: "micro.v1.mining.PMiningService";
|
|
@@ -112,6 +112,42 @@ export declare const PMiningService: {
|
|
|
112
112
|
readonly O: typeof ParametersResponse;
|
|
113
113
|
readonly kind: MethodKind.ServerStreaming;
|
|
114
114
|
};
|
|
115
|
+
readonly adminTasks: {
|
|
116
|
+
readonly name: "AdminTasks";
|
|
117
|
+
readonly I: typeof EmptyRequest;
|
|
118
|
+
readonly O: typeof AdminTasksResponse;
|
|
119
|
+
readonly kind: MethodKind.ServerStreaming;
|
|
120
|
+
};
|
|
121
|
+
readonly adminSetTask: {
|
|
122
|
+
readonly name: "AdminSetTask";
|
|
123
|
+
readonly I: typeof AdminSetTaskRequest;
|
|
124
|
+
readonly O: typeof AdminTasksResponse;
|
|
125
|
+
readonly kind: MethodKind.ServerStreaming;
|
|
126
|
+
};
|
|
127
|
+
readonly adminUsers: {
|
|
128
|
+
readonly name: "AdminUsers";
|
|
129
|
+
readonly I: typeof AdminUsersRequest;
|
|
130
|
+
readonly O: typeof AdminUsersResponse;
|
|
131
|
+
readonly kind: MethodKind.ServerStreaming;
|
|
132
|
+
};
|
|
133
|
+
readonly adminUser: {
|
|
134
|
+
readonly name: "AdminUser";
|
|
135
|
+
readonly I: typeof ByIdRequest;
|
|
136
|
+
readonly O: typeof AdminUserResponse;
|
|
137
|
+
readonly kind: MethodKind.ServerStreaming;
|
|
138
|
+
};
|
|
139
|
+
readonly adminModerate: {
|
|
140
|
+
readonly name: "AdminModerate";
|
|
141
|
+
readonly I: typeof AdminModerateRequest;
|
|
142
|
+
readonly O: typeof AdminUserResponse;
|
|
143
|
+
readonly kind: MethodKind.ServerStreaming;
|
|
144
|
+
};
|
|
145
|
+
readonly adminDeviceClusters: {
|
|
146
|
+
readonly name: "AdminDeviceClusters";
|
|
147
|
+
readonly I: typeof EmptyRequest;
|
|
148
|
+
readonly O: typeof AdminDeviceClustersResponse;
|
|
149
|
+
readonly kind: MethodKind.ServerStreaming;
|
|
150
|
+
};
|
|
115
151
|
readonly removeUserData: {
|
|
116
152
|
readonly name: "RemoveUserData";
|
|
117
153
|
readonly I: typeof ByIdRequest;
|
|
@@ -115,6 +115,42 @@ exports.PMiningService = {
|
|
|
115
115
|
O: mining_messages_pb_js_1.ParametersResponse,
|
|
116
116
|
kind: protobuf_1.MethodKind.ServerStreaming,
|
|
117
117
|
},
|
|
118
|
+
adminTasks: {
|
|
119
|
+
name: "AdminTasks",
|
|
120
|
+
I: general_pb_js_1.EmptyRequest,
|
|
121
|
+
O: mining_messages_pb_js_1.AdminTasksResponse,
|
|
122
|
+
kind: protobuf_1.MethodKind.ServerStreaming,
|
|
123
|
+
},
|
|
124
|
+
adminSetTask: {
|
|
125
|
+
name: "AdminSetTask",
|
|
126
|
+
I: mining_messages_pb_js_1.AdminSetTaskRequest,
|
|
127
|
+
O: mining_messages_pb_js_1.AdminTasksResponse,
|
|
128
|
+
kind: protobuf_1.MethodKind.ServerStreaming,
|
|
129
|
+
},
|
|
130
|
+
adminUsers: {
|
|
131
|
+
name: "AdminUsers",
|
|
132
|
+
I: mining_messages_pb_js_1.AdminUsersRequest,
|
|
133
|
+
O: mining_messages_pb_js_1.AdminUsersResponse,
|
|
134
|
+
kind: protobuf_1.MethodKind.ServerStreaming,
|
|
135
|
+
},
|
|
136
|
+
adminUser: {
|
|
137
|
+
name: "AdminUser",
|
|
138
|
+
I: general_pb_js_1.ByIdRequest,
|
|
139
|
+
O: mining_messages_pb_js_1.AdminUserResponse,
|
|
140
|
+
kind: protobuf_1.MethodKind.ServerStreaming,
|
|
141
|
+
},
|
|
142
|
+
adminModerate: {
|
|
143
|
+
name: "AdminModerate",
|
|
144
|
+
I: mining_messages_pb_js_1.AdminModerateRequest,
|
|
145
|
+
O: mining_messages_pb_js_1.AdminUserResponse,
|
|
146
|
+
kind: protobuf_1.MethodKind.ServerStreaming,
|
|
147
|
+
},
|
|
148
|
+
adminDeviceClusters: {
|
|
149
|
+
name: "AdminDeviceClusters",
|
|
150
|
+
I: general_pb_js_1.EmptyRequest,
|
|
151
|
+
O: mining_messages_pb_js_1.AdminDeviceClustersResponse,
|
|
152
|
+
kind: protobuf_1.MethodKind.ServerStreaming,
|
|
153
|
+
},
|
|
118
154
|
removeUserData: {
|
|
119
155
|
name: "RemoveUserData",
|
|
120
156
|
I: general_pb_js_1.ByIdRequest,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Metadata } from "@grpc/grpc-js";
|
|
2
2
|
import { Observable } from "rxjs";
|
|
3
3
|
import { ByIdRequest, EmptyRequest, EmptyResponse } from "../general_nest";
|
|
4
|
-
import { AdminOverviewRequest, AdminOverviewResponse, ClaimResponse, ConfigResponse, EnrollRequest, EnrollResponse, HistoryRequest, HistoryResponse, MiningMeResponse, ParametersResponse, ReferralListRequest, ReferralListResponse, ResolveCodeRequest, ResolveCodeResponse, SetParameterRequest, SetTeamRequest, TaskEventRequest, TaskEventResponse, TasksResponse, TeamResponse, UpdateSettingsRequest } from "./mining_messages_nest";
|
|
4
|
+
import { AdminDeviceClustersResponse, AdminModerateRequest, AdminOverviewRequest, AdminOverviewResponse, AdminSetTaskRequest, AdminTasksResponse, AdminUserResponse, AdminUsersRequest, AdminUsersResponse, ClaimResponse, ConfigResponse, EnrollRequest, EnrollResponse, HistoryRequest, HistoryResponse, MiningMeResponse, ParametersResponse, ReferralListRequest, ReferralListResponse, ResolveCodeRequest, ResolveCodeResponse, SetParameterRequest, SetTeamRequest, TaskEventRequest, TaskEventResponse, TasksResponse, TeamResponse, UpdateSettingsRequest } from "./mining_messages_nest";
|
|
5
5
|
export declare const protobufPackage = "micro.v1.mining";
|
|
6
6
|
export declare const MICRO_V1_MINING_PACKAGE_NAME = "micro.v1.mining";
|
|
7
7
|
export interface PMiningServiceClient {
|
|
@@ -23,6 +23,12 @@ export interface PMiningServiceClient {
|
|
|
23
23
|
adminOverview(request: AdminOverviewRequest, metadata?: Metadata): Observable<AdminOverviewResponse>;
|
|
24
24
|
adminParameters(request: EmptyRequest, metadata?: Metadata): Observable<ParametersResponse>;
|
|
25
25
|
adminSetParameter(request: SetParameterRequest, metadata?: Metadata): Observable<ParametersResponse>;
|
|
26
|
+
adminTasks(request: EmptyRequest, metadata?: Metadata): Observable<AdminTasksResponse>;
|
|
27
|
+
adminSetTask(request: AdminSetTaskRequest, metadata?: Metadata): Observable<AdminTasksResponse>;
|
|
28
|
+
adminUsers(request: AdminUsersRequest, metadata?: Metadata): Observable<AdminUsersResponse>;
|
|
29
|
+
adminUser(request: ByIdRequest, metadata?: Metadata): Observable<AdminUserResponse>;
|
|
30
|
+
adminModerate(request: AdminModerateRequest, metadata?: Metadata): Observable<AdminUserResponse>;
|
|
31
|
+
adminDeviceClusters(request: EmptyRequest, metadata?: Metadata): Observable<AdminDeviceClustersResponse>;
|
|
26
32
|
removeUserData(request: ByIdRequest, metadata?: Metadata): Observable<EmptyResponse>;
|
|
27
33
|
}
|
|
28
34
|
export interface PMiningServiceController {
|
|
@@ -44,6 +50,12 @@ export interface PMiningServiceController {
|
|
|
44
50
|
adminOverview(request: AdminOverviewRequest, metadata?: Metadata): Observable<AdminOverviewResponse>;
|
|
45
51
|
adminParameters(request: EmptyRequest, metadata?: Metadata): Observable<ParametersResponse>;
|
|
46
52
|
adminSetParameter(request: SetParameterRequest, metadata?: Metadata): Observable<ParametersResponse>;
|
|
53
|
+
adminTasks(request: EmptyRequest, metadata?: Metadata): Observable<AdminTasksResponse>;
|
|
54
|
+
adminSetTask(request: AdminSetTaskRequest, metadata?: Metadata): Observable<AdminTasksResponse>;
|
|
55
|
+
adminUsers(request: AdminUsersRequest, metadata?: Metadata): Observable<AdminUsersResponse>;
|
|
56
|
+
adminUser(request: ByIdRequest, metadata?: Metadata): Observable<AdminUserResponse>;
|
|
57
|
+
adminModerate(request: AdminModerateRequest, metadata?: Metadata): Observable<AdminUserResponse>;
|
|
58
|
+
adminDeviceClusters(request: EmptyRequest, metadata?: Metadata): Observable<AdminDeviceClustersResponse>;
|
|
47
59
|
removeUserData(request: ByIdRequest, metadata?: Metadata): Observable<EmptyResponse>;
|
|
48
60
|
}
|
|
49
61
|
export declare function PMiningServiceControllerMethods(): (constructor: Function) => void;
|
|
@@ -26,6 +26,12 @@ function PMiningServiceControllerMethods() {
|
|
|
26
26
|
"adminOverview",
|
|
27
27
|
"adminParameters",
|
|
28
28
|
"adminSetParameter",
|
|
29
|
+
"adminTasks",
|
|
30
|
+
"adminSetTask",
|
|
31
|
+
"adminUsers",
|
|
32
|
+
"adminUser",
|
|
33
|
+
"adminModerate",
|
|
34
|
+
"adminDeviceClusters",
|
|
29
35
|
"removeUserData",
|
|
30
36
|
];
|
|
31
37
|
for (const method of grpcMethods) {
|
package/package.json
CHANGED
|
@@ -190,6 +190,11 @@ message MiningState {
|
|
|
190
190
|
int32 streak_days = 16;
|
|
191
191
|
// Email not verified yet: nothing runs until it is.
|
|
192
192
|
bool inactive = 17;
|
|
193
|
+
// normal | restricted | banned (a review decision; mining stops, the
|
|
194
|
+
// person is told and may appeal through support).
|
|
195
|
+
string status = 18;
|
|
196
|
+
// Reason code of the decision ('' while normal).
|
|
197
|
+
string status_reason = 19;
|
|
193
198
|
}
|
|
194
199
|
|
|
195
200
|
message MiningMeResponse {
|
|
@@ -428,3 +433,146 @@ message SetParameterRequest {
|
|
|
428
433
|
string key = 1;
|
|
429
434
|
string value = 2;
|
|
430
435
|
}
|
|
436
|
+
|
|
437
|
+
// Admin: a task definition as the panel edits it.
|
|
438
|
+
message AdminTaskItem {
|
|
439
|
+
string id = 1;
|
|
440
|
+
// daily | weekly | once
|
|
441
|
+
string kind = 2;
|
|
442
|
+
// Layer added while the completion is in force (decimal string).
|
|
443
|
+
string multiplier = 3;
|
|
444
|
+
int32 max_count = 4;
|
|
445
|
+
// The app event that completes it ('' = the server completes it).
|
|
446
|
+
string event = 5;
|
|
447
|
+
string title_tr = 6;
|
|
448
|
+
string title_en = 7;
|
|
449
|
+
bool standard_only = 8;
|
|
450
|
+
bool active = 9;
|
|
451
|
+
int32 sort = 10;
|
|
452
|
+
// Completions in the last 7 days (for the panel's context).
|
|
453
|
+
int32 completions_7d = 11;
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
message AdminTasksResponse {
|
|
457
|
+
ResponseStatus status = 1;
|
|
458
|
+
repeated AdminTaskItem data = 2;
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
// ---- admin review ---------------------------------------------------------
|
|
462
|
+
|
|
463
|
+
message AdminUsersRequest {
|
|
464
|
+
// Username, user id, invite code or device hash prefix; '' = newest.
|
|
465
|
+
string query = 1;
|
|
466
|
+
// all | normal | restricted | banned
|
|
467
|
+
string status = 2;
|
|
468
|
+
int32 page = 3;
|
|
469
|
+
int32 per_page = 4;
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
// One person in a list (search result, invitee, device sibling).
|
|
473
|
+
message AdminUserItem {
|
|
474
|
+
string user_id = 1;
|
|
475
|
+
string username = 2;
|
|
476
|
+
string badge = 3;
|
|
477
|
+
// normal | restricted | banned
|
|
478
|
+
string status = 4;
|
|
479
|
+
string status_reason = 5;
|
|
480
|
+
string code = 6;
|
|
481
|
+
string created_at = 7;
|
|
482
|
+
string activated_at = 8;
|
|
483
|
+
string last_seen_at = 9;
|
|
484
|
+
int32 sessions_completed = 10;
|
|
485
|
+
string balance = 11;
|
|
486
|
+
int32 invitees = 12;
|
|
487
|
+
// Of the invitees, how many are activated.
|
|
488
|
+
int32 invitees_active = 13;
|
|
489
|
+
// Hash of the install this account was first seen on (shortened).
|
|
490
|
+
string device = 14;
|
|
491
|
+
// In an invitee list: this invitee is on the same device as the referrer.
|
|
492
|
+
bool same_device = 15;
|
|
493
|
+
// In an invitee list: the referrer's gift for this invitee was paid.
|
|
494
|
+
bool gift_paid = 16;
|
|
495
|
+
// Other mining accounts on the same device.
|
|
496
|
+
int32 device_siblings = 17;
|
|
497
|
+
string referred_by = 18;
|
|
498
|
+
string referred_by_username = 19;
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
message AdminUsersResponse {
|
|
502
|
+
ResponseStatus status = 1;
|
|
503
|
+
repeated AdminUserItem data = 2;
|
|
504
|
+
PaginationMetaResult pagination = 3;
|
|
505
|
+
}
|
|
506
|
+
|
|
507
|
+
// A past review decision on a person.
|
|
508
|
+
message AdminActionItem {
|
|
509
|
+
string id = 1;
|
|
510
|
+
// clear | restrict | ban | unban
|
|
511
|
+
string action = 2;
|
|
512
|
+
string reason = 3;
|
|
513
|
+
string note = 4;
|
|
514
|
+
string by_user_id = 5;
|
|
515
|
+
string by_username = 6;
|
|
516
|
+
// JR taken back by this decision (sum over everyone it touched).
|
|
517
|
+
string reversed_total = 7;
|
|
518
|
+
// JSON: per reversal {user_id, kind, requested, taken, shortfall}.
|
|
519
|
+
string detail = 8;
|
|
520
|
+
string created_at = 9;
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
message AdminUserResponse {
|
|
524
|
+
ResponseStatus status = 1;
|
|
525
|
+
optional AdminUserItem profile = 2;
|
|
526
|
+
repeated AdminUserItem invitees = 3;
|
|
527
|
+
repeated AdminUserItem device_siblings = 4;
|
|
528
|
+
// Newest first, the last 50.
|
|
529
|
+
repeated HistoryItem ledger = 5;
|
|
530
|
+
repeated AdminActionItem actions = 6;
|
|
531
|
+
// Referral money this person received, by source (for the review).
|
|
532
|
+
repeated AdminCreditSource credits = 7;
|
|
533
|
+
string pending_total = 8;
|
|
534
|
+
string total_received_gifts = 9;
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
message AdminCreditSource {
|
|
538
|
+
string from_user_id = 1;
|
|
539
|
+
string from_username = 2;
|
|
540
|
+
string level1 = 3;
|
|
541
|
+
string level2 = 4;
|
|
542
|
+
string gifts = 5;
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
message AdminModerateRequest {
|
|
546
|
+
string user_id = 1;
|
|
547
|
+
// clear | restrict | ban | unban
|
|
548
|
+
string action = 2;
|
|
549
|
+
// fake_accounts | same_device | self_referral | farm | appeal_accepted | other
|
|
550
|
+
string reason = 3;
|
|
551
|
+
string note = 4;
|
|
552
|
+
// ban only: also ban this person's invitees that look like ghosts
|
|
553
|
+
// (never activated or on the same device), each with its own reversal.
|
|
554
|
+
bool cascade_invitees = 5;
|
|
555
|
+
}
|
|
556
|
+
|
|
557
|
+
message AdminDeviceCluster {
|
|
558
|
+
string device = 1;
|
|
559
|
+
repeated AdminUserItem users = 2;
|
|
560
|
+
}
|
|
561
|
+
|
|
562
|
+
message AdminDeviceClustersResponse {
|
|
563
|
+
ResponseStatus status = 1;
|
|
564
|
+
repeated AdminDeviceCluster data = 2;
|
|
565
|
+
}
|
|
566
|
+
|
|
567
|
+
// Only the editable fields; empty strings / unset leave a field as it is.
|
|
568
|
+
// A new multiplier applies to completions from now on; one already in
|
|
569
|
+
// force keeps the value it was done at.
|
|
570
|
+
message AdminSetTaskRequest {
|
|
571
|
+
string id = 1;
|
|
572
|
+
string multiplier = 2;
|
|
573
|
+
optional bool active = 3;
|
|
574
|
+
string title_tr = 4;
|
|
575
|
+
string title_en = 5;
|
|
576
|
+
optional int32 max_count = 6;
|
|
577
|
+
optional int32 sort = 7;
|
|
578
|
+
}
|
|
@@ -41,6 +41,16 @@ service PMiningService {
|
|
|
41
41
|
rpc AdminOverview(AdminOverviewRequest) returns(stream AdminOverviewResponse) {}
|
|
42
42
|
rpc AdminParameters(EmptyRequest) returns(stream ParametersResponse) {}
|
|
43
43
|
rpc AdminSetParameter(SetParameterRequest) returns(stream ParametersResponse) {}
|
|
44
|
+
rpc AdminTasks(EmptyRequest) returns(stream AdminTasksResponse) {}
|
|
45
|
+
rpc AdminSetTask(AdminSetTaskRequest) returns(stream AdminTasksResponse) {}
|
|
46
|
+
// Admin review (the "overwatch"): find people, see one person's invitees,
|
|
47
|
+
// device cluster, ledger and past decisions, and decide (clear, restrict,
|
|
48
|
+
// ban, unban) with the JR that came from fraud taken back.
|
|
49
|
+
rpc AdminUsers(AdminUsersRequest) returns(stream AdminUsersResponse) {}
|
|
50
|
+
rpc AdminUser(ByIdRequest) returns(stream AdminUserResponse) {}
|
|
51
|
+
rpc AdminModerate(AdminModerateRequest) returns(stream AdminUserResponse) {}
|
|
52
|
+
// Accounts that share an install (the first review signal).
|
|
53
|
+
rpc AdminDeviceClusters(EmptyRequest) returns(stream AdminDeviceClustersResponse) {}
|
|
44
54
|
|
|
45
55
|
// Account deletion parity with every other micro.
|
|
46
56
|
rpc RemoveUserData(ByIdRequest) returns(stream EmptyResponse) {}
|