jr-common-micro 1.1.119 → 1.1.121
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.
|
@@ -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;
|
|
@@ -431,6 +441,7 @@ export interface AdminRiskQueueRequest {
|
|
|
431
441
|
export interface AdminRiskQueueResponse {
|
|
432
442
|
status: ResponseStatus | undefined;
|
|
433
443
|
data: AdminRiskFlag[];
|
|
444
|
+
stats: AdminRiskSignalStat[];
|
|
434
445
|
}
|
|
435
446
|
export interface AdminCreditSource {
|
|
436
447
|
from_user_id: string;
|
|
@@ -517,6 +528,7 @@ export interface AdminGiftPreviewResponse {
|
|
|
517
528
|
}
|
|
518
529
|
export interface AdminGiftConfirmRequest {
|
|
519
530
|
token: string;
|
|
531
|
+
code: string;
|
|
520
532
|
}
|
|
521
533
|
export interface AdminGift {
|
|
522
534
|
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;
|
|
@@ -860,6 +878,7 @@ export declare class AdminRiskQueueRequest extends Message<AdminRiskQueueRequest
|
|
|
860
878
|
export declare class AdminRiskQueueResponse extends Message<AdminRiskQueueResponse> {
|
|
861
879
|
status?: ResponseStatus;
|
|
862
880
|
data: AdminRiskFlag[];
|
|
881
|
+
stats: AdminRiskSignalStat[];
|
|
863
882
|
constructor(data?: PartialMessage<AdminRiskQueueResponse>);
|
|
864
883
|
static readonly runtime: typeof proto3;
|
|
865
884
|
static readonly typeName = "micro.v1.mining.AdminRiskQueueResponse";
|
|
@@ -1018,6 +1037,7 @@ export declare class AdminGiftPreviewResponse extends Message<AdminGiftPreviewRe
|
|
|
1018
1037
|
}
|
|
1019
1038
|
export declare class AdminGiftConfirmRequest extends Message<AdminGiftConfirmRequest> {
|
|
1020
1039
|
token: string;
|
|
1040
|
+
code: string;
|
|
1021
1041
|
constructor(data?: PartialMessage<AdminGiftConfirmRequest>);
|
|
1022
1042
|
static readonly runtime: typeof proto3;
|
|
1023
1043
|
static readonly typeName = "micro.v1.mining.AdminGiftConfirmRequest";
|
|
@@ -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.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;
|
|
@@ -1877,6 +1916,7 @@ exports.AdminRiskQueueRequest = AdminRiskQueueRequest;
|
|
|
1877
1916
|
class AdminRiskQueueResponse extends protobuf_1.Message {
|
|
1878
1917
|
status;
|
|
1879
1918
|
data = [];
|
|
1919
|
+
stats = [];
|
|
1880
1920
|
constructor(data) {
|
|
1881
1921
|
super();
|
|
1882
1922
|
protobuf_1.proto3.util.initPartial(data, this);
|
|
@@ -1886,6 +1926,7 @@ class AdminRiskQueueResponse extends protobuf_1.Message {
|
|
|
1886
1926
|
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
1887
1927
|
{ no: 1, name: "status", kind: "message", T: general_pb_js_1.ResponseStatus },
|
|
1888
1928
|
{ no: 2, name: "data", kind: "message", T: AdminRiskFlag, repeated: true },
|
|
1929
|
+
{ no: 3, name: "stats", kind: "message", T: AdminRiskSignalStat, repeated: true },
|
|
1889
1930
|
]);
|
|
1890
1931
|
static fromBinary(bytes, options) {
|
|
1891
1932
|
return new AdminRiskQueueResponse().fromBinary(bytes, options);
|
|
@@ -2216,6 +2257,7 @@ class AdminGiftPreviewResponse extends protobuf_1.Message {
|
|
|
2216
2257
|
exports.AdminGiftPreviewResponse = AdminGiftPreviewResponse;
|
|
2217
2258
|
class AdminGiftConfirmRequest extends protobuf_1.Message {
|
|
2218
2259
|
token = "";
|
|
2260
|
+
code = "";
|
|
2219
2261
|
constructor(data) {
|
|
2220
2262
|
super();
|
|
2221
2263
|
protobuf_1.proto3.util.initPartial(data, this);
|
|
@@ -2224,6 +2266,7 @@ class AdminGiftConfirmRequest extends protobuf_1.Message {
|
|
|
2224
2266
|
static typeName = "micro.v1.mining.AdminGiftConfirmRequest";
|
|
2225
2267
|
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
2226
2268
|
{ no: 1, name: "token", kind: "scalar", T: 9 },
|
|
2269
|
+
{ no: 2, name: "code", kind: "scalar", T: 9 },
|
|
2227
2270
|
]);
|
|
2228
2271
|
static fromBinary(bytes, options) {
|
|
2229
2272
|
return new AdminGiftConfirmRequest().fromBinary(bytes, options);
|
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
|
|
@@ -610,7 +629,7 @@ message AdminRiskFlag {
|
|
|
610
629
|
}
|
|
611
630
|
|
|
612
631
|
message AdminRiskQueueRequest {
|
|
613
|
-
// open (default) | cleared | actioned | all
|
|
632
|
+
// open (default) | silent | cleared | actioned | all
|
|
614
633
|
string status = 1;
|
|
615
634
|
int32 limit = 2;
|
|
616
635
|
}
|
|
@@ -618,6 +637,7 @@ message AdminRiskQueueRequest {
|
|
|
618
637
|
message AdminRiskQueueResponse {
|
|
619
638
|
ResponseStatus status = 1;
|
|
620
639
|
repeated AdminRiskFlag data = 2;
|
|
640
|
+
repeated AdminRiskSignalStat stats = 3;
|
|
621
641
|
}
|
|
622
642
|
|
|
623
643
|
message AdminCreditSource {
|
|
@@ -742,6 +762,8 @@ message AdminGiftPreviewResponse {
|
|
|
742
762
|
|
|
743
763
|
message AdminGiftConfirmRequest {
|
|
744
764
|
string token = 1;
|
|
765
|
+
// The approval code only the owner knows (GIFT_ADMIN_CODE).
|
|
766
|
+
string code = 2;
|
|
745
767
|
}
|
|
746
768
|
|
|
747
769
|
message AdminGift {
|