jr-common-micro 1.1.100 → 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.
@@ -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;
@@ -320,6 +322,82 @@ export interface AdminTasksResponse {
320
322
  status: ResponseStatus | undefined;
321
323
  data: AdminTaskItem[];
322
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
+ }
323
401
  export interface AdminSetTaskRequest {
324
402
  id: string;
325
403
  multiplier: string;
@@ -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";
@@ -665,6 +667,154 @@ export declare class AdminTasksResponse extends Message<AdminTasksResponse> {
665
667
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AdminTasksResponse;
666
668
  static equals(a: AdminTasksResponse | PlainMessage<AdminTasksResponse> | undefined, b: AdminTasksResponse | PlainMessage<AdminTasksResponse> | undefined): boolean;
667
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
+ }
668
818
  export declare class AdminSetTaskRequest extends Message<AdminSetTaskRequest> {
669
819
  id: string;
670
820
  multiplier: string;
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AdminSetTaskRequest = 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;
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);
@@ -1460,6 +1465,329 @@ class AdminTasksResponse extends protobuf_1.Message {
1460
1465
  }
1461
1466
  }
1462
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;
1463
1791
  class AdminSetTaskRequest extends protobuf_1.Message {
1464
1792
  id = "";
1465
1793
  multiplier = "";
@@ -1,5 +1,5 @@
1
1
  import { ByIdRequest, EmptyRequest, EmptyResponse } from "../general_pb.js";
2
- import { AdminOverviewRequest, AdminOverviewResponse, AdminSetTaskRequest, AdminTasksResponse, 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";
@@ -124,6 +124,30 @@ export declare const PMiningService: {
124
124
  readonly O: typeof AdminTasksResponse;
125
125
  readonly kind: MethodKind.ServerStreaming;
126
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
+ };
127
151
  readonly removeUserData: {
128
152
  readonly name: "RemoveUserData";
129
153
  readonly I: typeof ByIdRequest;
@@ -127,6 +127,30 @@ exports.PMiningService = {
127
127
  O: mining_messages_pb_js_1.AdminTasksResponse,
128
128
  kind: protobuf_1.MethodKind.ServerStreaming,
129
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
+ },
130
154
  removeUserData: {
131
155
  name: "RemoveUserData",
132
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, AdminSetTaskRequest, AdminTasksResponse, 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 {
@@ -25,6 +25,10 @@ export interface PMiningServiceClient {
25
25
  adminSetParameter(request: SetParameterRequest, metadata?: Metadata): Observable<ParametersResponse>;
26
26
  adminTasks(request: EmptyRequest, metadata?: Metadata): Observable<AdminTasksResponse>;
27
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>;
28
32
  removeUserData(request: ByIdRequest, metadata?: Metadata): Observable<EmptyResponse>;
29
33
  }
30
34
  export interface PMiningServiceController {
@@ -48,6 +52,10 @@ export interface PMiningServiceController {
48
52
  adminSetParameter(request: SetParameterRequest, metadata?: Metadata): Observable<ParametersResponse>;
49
53
  adminTasks(request: EmptyRequest, metadata?: Metadata): Observable<AdminTasksResponse>;
50
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>;
51
59
  removeUserData(request: ByIdRequest, metadata?: Metadata): Observable<EmptyResponse>;
52
60
  }
53
61
  export declare function PMiningServiceControllerMethods(): (constructor: Function) => void;
@@ -28,6 +28,10 @@ function PMiningServiceControllerMethods() {
28
28
  "adminSetParameter",
29
29
  "adminTasks",
30
30
  "adminSetTask",
31
+ "adminUsers",
32
+ "adminUser",
33
+ "adminModerate",
34
+ "adminDeviceClusters",
31
35
  "removeUserData",
32
36
  ];
33
37
  for (const method of grpcMethods) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jr-common-micro",
3
- "version": "1.1.100",
3
+ "version": "1.1.101",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "private": false,
@@ -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 {
@@ -453,6 +458,112 @@ message AdminTasksResponse {
453
458
  repeated AdminTaskItem data = 2;
454
459
  }
455
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
+
456
567
  // Only the editable fields; empty strings / unset leave a field as it is.
457
568
  // A new multiplier applies to completions from now on; one already in
458
569
  // force keeps the value it was done at.
@@ -43,6 +43,14 @@ service PMiningService {
43
43
  rpc AdminSetParameter(SetParameterRequest) returns(stream ParametersResponse) {}
44
44
  rpc AdminTasks(EmptyRequest) returns(stream AdminTasksResponse) {}
45
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) {}
46
54
 
47
55
  // Account deletion parity with every other micro.
48
56
  rpc RemoveUserData(ByIdRequest) returns(stream EmptyResponse) {}