jr-common-micro 1.1.120 → 1.1.122
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 +29 -0
- package/dist/proto/micro/v1/mining/mining_messages_pb.d.ts +53 -0
- package/dist/proto/micro/v1/mining/mining_messages_pb.js +116 -1
- package/dist/proto/micro/v1/mining/services_connect.d.ts +7 -1
- package/dist/proto/micro/v1/mining/services_connect.js +6 -0
- package/dist/proto/micro/v1/mining/services_nest.d.ts +3 -1
- package/dist/proto/micro/v1/mining/services_nest.js +1 -0
- package/package.json +1 -1
- package/proto/micro/v1/mining/mining_messages.proto +50 -1
- package/proto/micro/v1/mining/services.proto +2 -0
|
@@ -414,6 +414,16 @@ export interface AdminRiskSignal {
|
|
|
414
414
|
count: number;
|
|
415
415
|
points: number;
|
|
416
416
|
detail: string;
|
|
417
|
+
shadow: boolean;
|
|
418
|
+
}
|
|
419
|
+
export interface AdminRiskSignalStat {
|
|
420
|
+
key: string;
|
|
421
|
+
total: number;
|
|
422
|
+
open: number;
|
|
423
|
+
silent: number;
|
|
424
|
+
cleared: number;
|
|
425
|
+
actioned: number;
|
|
426
|
+
shadow: boolean;
|
|
417
427
|
}
|
|
418
428
|
export interface AdminRiskFlag {
|
|
419
429
|
user_id: string;
|
|
@@ -424,6 +434,24 @@ export interface AdminRiskFlag {
|
|
|
424
434
|
updated_at: string;
|
|
425
435
|
profile?: AdminUserItem | undefined;
|
|
426
436
|
}
|
|
437
|
+
export interface AdminInviteTreeNode {
|
|
438
|
+
user_id: string;
|
|
439
|
+
parent_id: string;
|
|
440
|
+
depth: number;
|
|
441
|
+
username: string;
|
|
442
|
+
status: string;
|
|
443
|
+
sessions_completed: number;
|
|
444
|
+
risk_score: number;
|
|
445
|
+
same_device: boolean;
|
|
446
|
+
activated: boolean;
|
|
447
|
+
last_seen_at: string;
|
|
448
|
+
}
|
|
449
|
+
export interface AdminInviteTreeResponse {
|
|
450
|
+
status: ResponseStatus | undefined;
|
|
451
|
+
path: AdminInviteTreeNode[];
|
|
452
|
+
nodes: AdminInviteTreeNode[];
|
|
453
|
+
truncated: boolean;
|
|
454
|
+
}
|
|
427
455
|
export interface AdminRiskQueueRequest {
|
|
428
456
|
status: string;
|
|
429
457
|
limit: number;
|
|
@@ -431,6 +459,7 @@ export interface AdminRiskQueueRequest {
|
|
|
431
459
|
export interface AdminRiskQueueResponse {
|
|
432
460
|
status: ResponseStatus | undefined;
|
|
433
461
|
data: AdminRiskFlag[];
|
|
462
|
+
stats: AdminRiskSignalStat[];
|
|
434
463
|
}
|
|
435
464
|
export interface AdminCreditSource {
|
|
436
465
|
from_user_id: string;
|
|
@@ -819,6 +819,7 @@ export declare class AdminRiskSignal extends Message<AdminRiskSignal> {
|
|
|
819
819
|
count: number;
|
|
820
820
|
points: number;
|
|
821
821
|
detail: string;
|
|
822
|
+
shadow: boolean;
|
|
822
823
|
constructor(data?: PartialMessage<AdminRiskSignal>);
|
|
823
824
|
static readonly runtime: typeof proto3;
|
|
824
825
|
static readonly typeName = "micro.v1.mining.AdminRiskSignal";
|
|
@@ -828,6 +829,23 @@ export declare class AdminRiskSignal extends Message<AdminRiskSignal> {
|
|
|
828
829
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AdminRiskSignal;
|
|
829
830
|
static equals(a: AdminRiskSignal | PlainMessage<AdminRiskSignal> | undefined, b: AdminRiskSignal | PlainMessage<AdminRiskSignal> | undefined): boolean;
|
|
830
831
|
}
|
|
832
|
+
export declare class AdminRiskSignalStat extends Message<AdminRiskSignalStat> {
|
|
833
|
+
key: string;
|
|
834
|
+
total: number;
|
|
835
|
+
open: number;
|
|
836
|
+
silent: number;
|
|
837
|
+
cleared: number;
|
|
838
|
+
actioned: number;
|
|
839
|
+
shadow: boolean;
|
|
840
|
+
constructor(data?: PartialMessage<AdminRiskSignalStat>);
|
|
841
|
+
static readonly runtime: typeof proto3;
|
|
842
|
+
static readonly typeName = "micro.v1.mining.AdminRiskSignalStat";
|
|
843
|
+
static readonly fields: FieldList;
|
|
844
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AdminRiskSignalStat;
|
|
845
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AdminRiskSignalStat;
|
|
846
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AdminRiskSignalStat;
|
|
847
|
+
static equals(a: AdminRiskSignalStat | PlainMessage<AdminRiskSignalStat> | undefined, b: AdminRiskSignalStat | PlainMessage<AdminRiskSignalStat> | undefined): boolean;
|
|
848
|
+
}
|
|
831
849
|
export declare class AdminRiskFlag extends Message<AdminRiskFlag> {
|
|
832
850
|
userId: string;
|
|
833
851
|
score: number;
|
|
@@ -845,6 +863,40 @@ export declare class AdminRiskFlag extends Message<AdminRiskFlag> {
|
|
|
845
863
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AdminRiskFlag;
|
|
846
864
|
static equals(a: AdminRiskFlag | PlainMessage<AdminRiskFlag> | undefined, b: AdminRiskFlag | PlainMessage<AdminRiskFlag> | undefined): boolean;
|
|
847
865
|
}
|
|
866
|
+
export declare class AdminInviteTreeNode extends Message<AdminInviteTreeNode> {
|
|
867
|
+
userId: string;
|
|
868
|
+
parentId: string;
|
|
869
|
+
depth: number;
|
|
870
|
+
username: string;
|
|
871
|
+
status: string;
|
|
872
|
+
sessionsCompleted: number;
|
|
873
|
+
riskScore: number;
|
|
874
|
+
sameDevice: boolean;
|
|
875
|
+
activated: boolean;
|
|
876
|
+
lastSeenAt: string;
|
|
877
|
+
constructor(data?: PartialMessage<AdminInviteTreeNode>);
|
|
878
|
+
static readonly runtime: typeof proto3;
|
|
879
|
+
static readonly typeName = "micro.v1.mining.AdminInviteTreeNode";
|
|
880
|
+
static readonly fields: FieldList;
|
|
881
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AdminInviteTreeNode;
|
|
882
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AdminInviteTreeNode;
|
|
883
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AdminInviteTreeNode;
|
|
884
|
+
static equals(a: AdminInviteTreeNode | PlainMessage<AdminInviteTreeNode> | undefined, b: AdminInviteTreeNode | PlainMessage<AdminInviteTreeNode> | undefined): boolean;
|
|
885
|
+
}
|
|
886
|
+
export declare class AdminInviteTreeResponse extends Message<AdminInviteTreeResponse> {
|
|
887
|
+
status?: ResponseStatus;
|
|
888
|
+
path: AdminInviteTreeNode[];
|
|
889
|
+
nodes: AdminInviteTreeNode[];
|
|
890
|
+
truncated: boolean;
|
|
891
|
+
constructor(data?: PartialMessage<AdminInviteTreeResponse>);
|
|
892
|
+
static readonly runtime: typeof proto3;
|
|
893
|
+
static readonly typeName = "micro.v1.mining.AdminInviteTreeResponse";
|
|
894
|
+
static readonly fields: FieldList;
|
|
895
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AdminInviteTreeResponse;
|
|
896
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AdminInviteTreeResponse;
|
|
897
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AdminInviteTreeResponse;
|
|
898
|
+
static equals(a: AdminInviteTreeResponse | PlainMessage<AdminInviteTreeResponse> | undefined, b: AdminInviteTreeResponse | PlainMessage<AdminInviteTreeResponse> | undefined): boolean;
|
|
899
|
+
}
|
|
848
900
|
export declare class AdminRiskQueueRequest extends Message<AdminRiskQueueRequest> {
|
|
849
901
|
status: string;
|
|
850
902
|
limit: number;
|
|
@@ -860,6 +912,7 @@ export declare class AdminRiskQueueRequest extends Message<AdminRiskQueueRequest
|
|
|
860
912
|
export declare class AdminRiskQueueResponse extends Message<AdminRiskQueueResponse> {
|
|
861
913
|
status?: ResponseStatus;
|
|
862
914
|
data: AdminRiskFlag[];
|
|
915
|
+
stats: AdminRiskSignalStat[];
|
|
863
916
|
constructor(data?: PartialMessage<AdminRiskQueueResponse>);
|
|
864
917
|
static readonly runtime: typeof proto3;
|
|
865
918
|
static readonly typeName = "micro.v1.mining.AdminRiskQueueResponse";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.AdminUserResponse = exports.AdminActionItem = exports.AdminUsersResponse = exports.AdminUserItem = exports.AdminUsersRequest = exports.AdminTasksResponse = exports.AdminTaskItem = exports.SetParameterRequest = exports.ParametersResponse = exports.ParameterItem = exports.AdminOverviewResponse = exports.AdminTopReferrersResponse = exports.AdminTopReferrersRequest = 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.AdminGiftsResponse = exports.AdminGiftsRequest = exports.AdminGiftResponse = exports.AdminGift = exports.AdminGiftConfirmRequest = exports.AdminGiftPreviewResponse = exports.AdminGiftRecipient = exports.AdminGiftPreviewRequest = exports.AdminSetTaskRequest = exports.AdminDeviceClustersResponse = exports.AdminDeviceCluster = exports.AdminDeviceClustersRequest = exports.AdminModerateRequest = exports.AdminCreditSource = exports.AdminRiskQueueResponse = exports.AdminRiskQueueRequest = exports.AdminRiskFlag = exports.AdminRiskSignal = exports.AdminTeamSeat = void 0;
|
|
4
|
+
exports.AdminGiftsResponse = exports.AdminGiftsRequest = exports.AdminGiftResponse = exports.AdminGift = exports.AdminGiftConfirmRequest = exports.AdminGiftPreviewResponse = exports.AdminGiftRecipient = exports.AdminGiftPreviewRequest = exports.AdminSetTaskRequest = exports.AdminDeviceClustersResponse = exports.AdminDeviceCluster = exports.AdminDeviceClustersRequest = exports.AdminModerateRequest = exports.AdminCreditSource = exports.AdminRiskQueueResponse = exports.AdminRiskQueueRequest = exports.AdminInviteTreeResponse = exports.AdminInviteTreeNode = exports.AdminRiskFlag = exports.AdminRiskSignalStat = exports.AdminRiskSignal = exports.AdminTeamSeat = void 0;
|
|
5
5
|
const protobuf_1 = require("@bufbuild/protobuf");
|
|
6
6
|
const general_pb_js_1 = require("../general_pb.js");
|
|
7
7
|
class SessionInfo extends protobuf_1.Message {
|
|
@@ -1784,6 +1784,7 @@ class AdminRiskSignal extends protobuf_1.Message {
|
|
|
1784
1784
|
count = 0;
|
|
1785
1785
|
points = 0;
|
|
1786
1786
|
detail = "";
|
|
1787
|
+
shadow = false;
|
|
1787
1788
|
constructor(data) {
|
|
1788
1789
|
super();
|
|
1789
1790
|
protobuf_1.proto3.util.initPartial(data, this);
|
|
@@ -1795,6 +1796,7 @@ class AdminRiskSignal extends protobuf_1.Message {
|
|
|
1795
1796
|
{ no: 2, name: "count", kind: "scalar", T: 5 },
|
|
1796
1797
|
{ no: 3, name: "points", kind: "scalar", T: 5 },
|
|
1797
1798
|
{ no: 4, name: "detail", kind: "scalar", T: 9 },
|
|
1799
|
+
{ no: 5, name: "shadow", kind: "scalar", T: 8 },
|
|
1798
1800
|
]);
|
|
1799
1801
|
static fromBinary(bytes, options) {
|
|
1800
1802
|
return new AdminRiskSignal().fromBinary(bytes, options);
|
|
@@ -1810,6 +1812,43 @@ class AdminRiskSignal extends protobuf_1.Message {
|
|
|
1810
1812
|
}
|
|
1811
1813
|
}
|
|
1812
1814
|
exports.AdminRiskSignal = AdminRiskSignal;
|
|
1815
|
+
class AdminRiskSignalStat extends protobuf_1.Message {
|
|
1816
|
+
key = "";
|
|
1817
|
+
total = 0;
|
|
1818
|
+
open = 0;
|
|
1819
|
+
silent = 0;
|
|
1820
|
+
cleared = 0;
|
|
1821
|
+
actioned = 0;
|
|
1822
|
+
shadow = false;
|
|
1823
|
+
constructor(data) {
|
|
1824
|
+
super();
|
|
1825
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
1826
|
+
}
|
|
1827
|
+
static runtime = protobuf_1.proto3;
|
|
1828
|
+
static typeName = "micro.v1.mining.AdminRiskSignalStat";
|
|
1829
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
1830
|
+
{ no: 1, name: "key", kind: "scalar", T: 9 },
|
|
1831
|
+
{ no: 2, name: "total", kind: "scalar", T: 5 },
|
|
1832
|
+
{ no: 3, name: "open", kind: "scalar", T: 5 },
|
|
1833
|
+
{ no: 4, name: "silent", kind: "scalar", T: 5 },
|
|
1834
|
+
{ no: 5, name: "cleared", kind: "scalar", T: 5 },
|
|
1835
|
+
{ no: 6, name: "actioned", kind: "scalar", T: 5 },
|
|
1836
|
+
{ no: 7, name: "shadow", kind: "scalar", T: 8 },
|
|
1837
|
+
]);
|
|
1838
|
+
static fromBinary(bytes, options) {
|
|
1839
|
+
return new AdminRiskSignalStat().fromBinary(bytes, options);
|
|
1840
|
+
}
|
|
1841
|
+
static fromJson(jsonValue, options) {
|
|
1842
|
+
return new AdminRiskSignalStat().fromJson(jsonValue, options);
|
|
1843
|
+
}
|
|
1844
|
+
static fromJsonString(jsonString, options) {
|
|
1845
|
+
return new AdminRiskSignalStat().fromJsonString(jsonString, options);
|
|
1846
|
+
}
|
|
1847
|
+
static equals(a, b) {
|
|
1848
|
+
return protobuf_1.proto3.util.equals(AdminRiskSignalStat, a, b);
|
|
1849
|
+
}
|
|
1850
|
+
}
|
|
1851
|
+
exports.AdminRiskSignalStat = AdminRiskSignalStat;
|
|
1813
1852
|
class AdminRiskFlag extends protobuf_1.Message {
|
|
1814
1853
|
userId = "";
|
|
1815
1854
|
score = 0;
|
|
@@ -1847,6 +1886,80 @@ class AdminRiskFlag extends protobuf_1.Message {
|
|
|
1847
1886
|
}
|
|
1848
1887
|
}
|
|
1849
1888
|
exports.AdminRiskFlag = AdminRiskFlag;
|
|
1889
|
+
class AdminInviteTreeNode extends protobuf_1.Message {
|
|
1890
|
+
userId = "";
|
|
1891
|
+
parentId = "";
|
|
1892
|
+
depth = 0;
|
|
1893
|
+
username = "";
|
|
1894
|
+
status = "";
|
|
1895
|
+
sessionsCompleted = 0;
|
|
1896
|
+
riskScore = 0;
|
|
1897
|
+
sameDevice = false;
|
|
1898
|
+
activated = false;
|
|
1899
|
+
lastSeenAt = "";
|
|
1900
|
+
constructor(data) {
|
|
1901
|
+
super();
|
|
1902
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
1903
|
+
}
|
|
1904
|
+
static runtime = protobuf_1.proto3;
|
|
1905
|
+
static typeName = "micro.v1.mining.AdminInviteTreeNode";
|
|
1906
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
1907
|
+
{ no: 1, name: "user_id", kind: "scalar", T: 9 },
|
|
1908
|
+
{ no: 2, name: "parent_id", kind: "scalar", T: 9 },
|
|
1909
|
+
{ no: 3, name: "depth", kind: "scalar", T: 5 },
|
|
1910
|
+
{ no: 4, name: "username", kind: "scalar", T: 9 },
|
|
1911
|
+
{ no: 5, name: "status", kind: "scalar", T: 9 },
|
|
1912
|
+
{ no: 6, name: "sessions_completed", kind: "scalar", T: 5 },
|
|
1913
|
+
{ no: 7, name: "risk_score", kind: "scalar", T: 5 },
|
|
1914
|
+
{ no: 8, name: "same_device", kind: "scalar", T: 8 },
|
|
1915
|
+
{ no: 9, name: "activated", kind: "scalar", T: 8 },
|
|
1916
|
+
{ no: 10, name: "last_seen_at", kind: "scalar", T: 9 },
|
|
1917
|
+
]);
|
|
1918
|
+
static fromBinary(bytes, options) {
|
|
1919
|
+
return new AdminInviteTreeNode().fromBinary(bytes, options);
|
|
1920
|
+
}
|
|
1921
|
+
static fromJson(jsonValue, options) {
|
|
1922
|
+
return new AdminInviteTreeNode().fromJson(jsonValue, options);
|
|
1923
|
+
}
|
|
1924
|
+
static fromJsonString(jsonString, options) {
|
|
1925
|
+
return new AdminInviteTreeNode().fromJsonString(jsonString, options);
|
|
1926
|
+
}
|
|
1927
|
+
static equals(a, b) {
|
|
1928
|
+
return protobuf_1.proto3.util.equals(AdminInviteTreeNode, a, b);
|
|
1929
|
+
}
|
|
1930
|
+
}
|
|
1931
|
+
exports.AdminInviteTreeNode = AdminInviteTreeNode;
|
|
1932
|
+
class AdminInviteTreeResponse extends protobuf_1.Message {
|
|
1933
|
+
status;
|
|
1934
|
+
path = [];
|
|
1935
|
+
nodes = [];
|
|
1936
|
+
truncated = false;
|
|
1937
|
+
constructor(data) {
|
|
1938
|
+
super();
|
|
1939
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
1940
|
+
}
|
|
1941
|
+
static runtime = protobuf_1.proto3;
|
|
1942
|
+
static typeName = "micro.v1.mining.AdminInviteTreeResponse";
|
|
1943
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
1944
|
+
{ no: 1, name: "status", kind: "message", T: general_pb_js_1.ResponseStatus },
|
|
1945
|
+
{ no: 2, name: "path", kind: "message", T: AdminInviteTreeNode, repeated: true },
|
|
1946
|
+
{ no: 3, name: "nodes", kind: "message", T: AdminInviteTreeNode, repeated: true },
|
|
1947
|
+
{ no: 4, name: "truncated", kind: "scalar", T: 8 },
|
|
1948
|
+
]);
|
|
1949
|
+
static fromBinary(bytes, options) {
|
|
1950
|
+
return new AdminInviteTreeResponse().fromBinary(bytes, options);
|
|
1951
|
+
}
|
|
1952
|
+
static fromJson(jsonValue, options) {
|
|
1953
|
+
return new AdminInviteTreeResponse().fromJson(jsonValue, options);
|
|
1954
|
+
}
|
|
1955
|
+
static fromJsonString(jsonString, options) {
|
|
1956
|
+
return new AdminInviteTreeResponse().fromJsonString(jsonString, options);
|
|
1957
|
+
}
|
|
1958
|
+
static equals(a, b) {
|
|
1959
|
+
return protobuf_1.proto3.util.equals(AdminInviteTreeResponse, a, b);
|
|
1960
|
+
}
|
|
1961
|
+
}
|
|
1962
|
+
exports.AdminInviteTreeResponse = AdminInviteTreeResponse;
|
|
1850
1963
|
class AdminRiskQueueRequest extends protobuf_1.Message {
|
|
1851
1964
|
status = "";
|
|
1852
1965
|
limit = 0;
|
|
@@ -1877,6 +1990,7 @@ exports.AdminRiskQueueRequest = AdminRiskQueueRequest;
|
|
|
1877
1990
|
class AdminRiskQueueResponse extends protobuf_1.Message {
|
|
1878
1991
|
status;
|
|
1879
1992
|
data = [];
|
|
1993
|
+
stats = [];
|
|
1880
1994
|
constructor(data) {
|
|
1881
1995
|
super();
|
|
1882
1996
|
protobuf_1.proto3.util.initPartial(data, this);
|
|
@@ -1886,6 +2000,7 @@ class AdminRiskQueueResponse extends protobuf_1.Message {
|
|
|
1886
2000
|
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
1887
2001
|
{ no: 1, name: "status", kind: "message", T: general_pb_js_1.ResponseStatus },
|
|
1888
2002
|
{ no: 2, name: "data", kind: "message", T: AdminRiskFlag, repeated: true },
|
|
2003
|
+
{ no: 3, name: "stats", kind: "message", T: AdminRiskSignalStat, repeated: true },
|
|
1889
2004
|
]);
|
|
1890
2005
|
static fromBinary(bytes, options) {
|
|
1891
2006
|
return new AdminRiskQueueResponse().fromBinary(bytes, options);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ByIdRequest, EmptyRequest, EmptyResponse } from "../general_pb.js";
|
|
2
|
-
import { AdminDeviceClustersRequest, AdminDeviceClustersResponse, AdminGiftConfirmRequest, AdminGiftPreviewRequest, AdminGiftPreviewResponse, AdminGiftResponse, AdminGiftsRequest, AdminGiftsResponse, AdminModerateRequest, AdminOverviewRequest, AdminOverviewResponse, AdminRiskQueueRequest, AdminRiskQueueResponse, AdminSetTaskRequest, AdminTasksResponse, AdminTopReferrersRequest, AdminTopReferrersResponse, 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";
|
|
2
|
+
import { AdminDeviceClustersRequest, AdminDeviceClustersResponse, AdminGiftConfirmRequest, AdminGiftPreviewRequest, AdminGiftPreviewResponse, AdminGiftResponse, AdminGiftsRequest, AdminGiftsResponse, AdminInviteTreeResponse, AdminModerateRequest, AdminOverviewRequest, AdminOverviewResponse, AdminRiskQueueRequest, AdminRiskQueueResponse, AdminSetTaskRequest, AdminTasksResponse, AdminTopReferrersRequest, AdminTopReferrersResponse, 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";
|
|
@@ -142,6 +142,12 @@ export declare const PMiningService: {
|
|
|
142
142
|
readonly O: typeof AdminUserResponse;
|
|
143
143
|
readonly kind: MethodKind.ServerStreaming;
|
|
144
144
|
};
|
|
145
|
+
readonly adminInviteTree: {
|
|
146
|
+
readonly name: "AdminInviteTree";
|
|
147
|
+
readonly I: typeof ByIdRequest;
|
|
148
|
+
readonly O: typeof AdminInviteTreeResponse;
|
|
149
|
+
readonly kind: MethodKind.ServerStreaming;
|
|
150
|
+
};
|
|
145
151
|
readonly adminModerate: {
|
|
146
152
|
readonly name: "AdminModerate";
|
|
147
153
|
readonly I: typeof AdminModerateRequest;
|
|
@@ -145,6 +145,12 @@ exports.PMiningService = {
|
|
|
145
145
|
O: mining_messages_pb_js_1.AdminUserResponse,
|
|
146
146
|
kind: protobuf_1.MethodKind.ServerStreaming,
|
|
147
147
|
},
|
|
148
|
+
adminInviteTree: {
|
|
149
|
+
name: "AdminInviteTree",
|
|
150
|
+
I: general_pb_js_1.ByIdRequest,
|
|
151
|
+
O: mining_messages_pb_js_1.AdminInviteTreeResponse,
|
|
152
|
+
kind: protobuf_1.MethodKind.ServerStreaming,
|
|
153
|
+
},
|
|
148
154
|
adminModerate: {
|
|
149
155
|
name: "AdminModerate",
|
|
150
156
|
I: mining_messages_pb_js_1.AdminModerateRequest,
|
|
@@ -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 { AdminDeviceClustersRequest, AdminDeviceClustersResponse, AdminGiftConfirmRequest, AdminGiftPreviewRequest, AdminGiftPreviewResponse, AdminGiftResponse, AdminGiftsRequest, AdminGiftsResponse, AdminModerateRequest, AdminOverviewRequest, AdminOverviewResponse, AdminRiskQueueRequest, AdminRiskQueueResponse, AdminSetTaskRequest, AdminTasksResponse, AdminTopReferrersRequest, AdminTopReferrersResponse, 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";
|
|
4
|
+
import { AdminDeviceClustersRequest, AdminDeviceClustersResponse, AdminGiftConfirmRequest, AdminGiftPreviewRequest, AdminGiftPreviewResponse, AdminGiftResponse, AdminGiftsRequest, AdminGiftsResponse, AdminInviteTreeResponse, AdminModerateRequest, AdminOverviewRequest, AdminOverviewResponse, AdminRiskQueueRequest, AdminRiskQueueResponse, AdminSetTaskRequest, AdminTasksResponse, AdminTopReferrersRequest, AdminTopReferrersResponse, 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 {
|
|
@@ -28,6 +28,7 @@ export interface PMiningServiceClient {
|
|
|
28
28
|
adminSetTask(request: AdminSetTaskRequest, metadata?: Metadata): Observable<AdminTasksResponse>;
|
|
29
29
|
adminUsers(request: AdminUsersRequest, metadata?: Metadata): Observable<AdminUsersResponse>;
|
|
30
30
|
adminUser(request: ByIdRequest, metadata?: Metadata): Observable<AdminUserResponse>;
|
|
31
|
+
adminInviteTree(request: ByIdRequest, metadata?: Metadata): Observable<AdminInviteTreeResponse>;
|
|
31
32
|
adminModerate(request: AdminModerateRequest, metadata?: Metadata): Observable<AdminUserResponse>;
|
|
32
33
|
adminDeviceClusters(request: AdminDeviceClustersRequest, metadata?: Metadata): Observable<AdminDeviceClustersResponse>;
|
|
33
34
|
adminRiskQueue(request: AdminRiskQueueRequest, metadata?: Metadata): Observable<AdminRiskQueueResponse>;
|
|
@@ -60,6 +61,7 @@ export interface PMiningServiceController {
|
|
|
60
61
|
adminSetTask(request: AdminSetTaskRequest, metadata?: Metadata): Observable<AdminTasksResponse>;
|
|
61
62
|
adminUsers(request: AdminUsersRequest, metadata?: Metadata): Observable<AdminUsersResponse>;
|
|
62
63
|
adminUser(request: ByIdRequest, metadata?: Metadata): Observable<AdminUserResponse>;
|
|
64
|
+
adminInviteTree(request: ByIdRequest, metadata?: Metadata): Observable<AdminInviteTreeResponse>;
|
|
63
65
|
adminModerate(request: AdminModerateRequest, metadata?: Metadata): Observable<AdminUserResponse>;
|
|
64
66
|
adminDeviceClusters(request: AdminDeviceClustersRequest, metadata?: Metadata): Observable<AdminDeviceClustersResponse>;
|
|
65
67
|
adminRiskQueue(request: AdminRiskQueueRequest, metadata?: Metadata): Observable<AdminRiskQueueResponse>;
|
package/package.json
CHANGED
|
@@ -589,11 +589,30 @@ message AdminTeamSeat {
|
|
|
589
589
|
// One signal of the nightly scorer, with its evidence.
|
|
590
590
|
message AdminRiskSignal {
|
|
591
591
|
// same_device | session_sync | gift_and_gone | no_tasks | invite_velocity
|
|
592
|
+
// | banned_device | shared_device | invitee_sync | tree_cluster
|
|
592
593
|
string key = 1;
|
|
593
594
|
int32 count = 2;
|
|
594
595
|
int32 points = 3;
|
|
595
596
|
// JSON evidence (user ids, days) behind the count.
|
|
596
597
|
string detail = 4;
|
|
598
|
+
// Being measured: recorded with no points until its false alarms are known.
|
|
599
|
+
bool shadow = 5;
|
|
600
|
+
}
|
|
601
|
+
|
|
602
|
+
// How one signal has done so far, for judging its weight.
|
|
603
|
+
message AdminRiskSignalStat {
|
|
604
|
+
string key = 1;
|
|
605
|
+
// People who carry it.
|
|
606
|
+
int32 total = 2;
|
|
607
|
+
// In the queue now.
|
|
608
|
+
int32 open = 3;
|
|
609
|
+
// Below the threshold, not in the queue.
|
|
610
|
+
int32 silent = 4;
|
|
611
|
+
// Judged harmless by an admin.
|
|
612
|
+
int32 cleared = 5;
|
|
613
|
+
// An admin took action.
|
|
614
|
+
int32 actioned = 6;
|
|
615
|
+
bool shadow = 7;
|
|
597
616
|
}
|
|
598
617
|
|
|
599
618
|
// A person the scorer flagged. `cleared` by an admin stays cleared for
|
|
@@ -609,8 +628,37 @@ message AdminRiskFlag {
|
|
|
609
628
|
optional AdminUserItem profile = 7;
|
|
610
629
|
}
|
|
611
630
|
|
|
631
|
+
// One person in an invite tree on the review desk.
|
|
632
|
+
message AdminInviteTreeNode {
|
|
633
|
+
string user_id = 1;
|
|
634
|
+
// Who brought them; empty for the top of the path.
|
|
635
|
+
string parent_id = 2;
|
|
636
|
+
// Levels below the person asked about (the path above them is 0).
|
|
637
|
+
int32 depth = 3;
|
|
638
|
+
string username = 4;
|
|
639
|
+
// normal | restricted | banned
|
|
640
|
+
string status = 5;
|
|
641
|
+
int32 sessions_completed = 6;
|
|
642
|
+
// Only while a flag is in the queue; 0 otherwise.
|
|
643
|
+
int32 risk_score = 7;
|
|
644
|
+
// Shares a device with someone else in this tree or path.
|
|
645
|
+
bool same_device = 8;
|
|
646
|
+
bool activated = 9;
|
|
647
|
+
string last_seen_at = 10;
|
|
648
|
+
}
|
|
649
|
+
|
|
650
|
+
message AdminInviteTreeResponse {
|
|
651
|
+
ResponseStatus status = 1;
|
|
652
|
+
// Who brought this person, and who brought them: the top first.
|
|
653
|
+
repeated AdminInviteTreeNode path = 2;
|
|
654
|
+
// Everyone under this person, parents before their invitees.
|
|
655
|
+
repeated AdminInviteTreeNode nodes = 3;
|
|
656
|
+
// More exists than was read (too many people or too many levels).
|
|
657
|
+
bool truncated = 4;
|
|
658
|
+
}
|
|
659
|
+
|
|
612
660
|
message AdminRiskQueueRequest {
|
|
613
|
-
// open (default) | cleared | actioned | all
|
|
661
|
+
// open (default) | silent | cleared | actioned | all
|
|
614
662
|
string status = 1;
|
|
615
663
|
int32 limit = 2;
|
|
616
664
|
}
|
|
@@ -618,6 +666,7 @@ message AdminRiskQueueRequest {
|
|
|
618
666
|
message AdminRiskQueueResponse {
|
|
619
667
|
ResponseStatus status = 1;
|
|
620
668
|
repeated AdminRiskFlag data = 2;
|
|
669
|
+
repeated AdminRiskSignalStat stats = 3;
|
|
621
670
|
}
|
|
622
671
|
|
|
623
672
|
message AdminCreditSource {
|
|
@@ -50,6 +50,8 @@ service PMiningService {
|
|
|
50
50
|
// ban, unban) with the JR that came from fraud taken back.
|
|
51
51
|
rpc AdminUsers(AdminUsersRequest) returns(stream AdminUsersResponse) {}
|
|
52
52
|
rpc AdminUser(ByIdRequest) returns(stream AdminUserResponse) {}
|
|
53
|
+
// Everyone under a person and the path above them.
|
|
54
|
+
rpc AdminInviteTree(ByIdRequest) returns(stream AdminInviteTreeResponse) {}
|
|
53
55
|
rpc AdminModerate(AdminModerateRequest) returns(stream AdminUserResponse) {}
|
|
54
56
|
// Accounts that share an install (the first review signal).
|
|
55
57
|
rpc AdminDeviceClusters(AdminDeviceClustersRequest) returns(stream AdminDeviceClustersResponse) {}
|