jr-common-micro 1.1.109 → 1.1.111
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 +56 -0
- package/dist/proto/micro/v1/mining/mining_messages_pb.d.ts +120 -0
- package/dist/proto/micro/v1/mining/mining_messages_pb.js +265 -1
- package/dist/proto/micro/v1/mining/services_connect.d.ts +19 -1
- package/dist/proto/micro/v1/mining/services_connect.js +18 -0
- package/dist/proto/micro/v1/mining/services_nest.d.ts +7 -1
- package/dist/proto/micro/v1/mining/services_nest.js +3 -0
- package/dist/proto/micro/v1/user/auth_messages_nest.d.ts +2 -0
- package/dist/proto/micro/v1/user/auth_messages_pb.d.ts +2 -0
- package/dist/proto/micro/v1/user/auth_messages_pb.js +4 -0
- package/dist/proto/micro/v1/user/profile_messages_nest.d.ts +11 -0
- package/dist/proto/micro/v1/user/profile_messages_pb.d.ts +35 -0
- package/dist/proto/micro/v1/user/profile_messages_pb.js +80 -1
- package/dist/proto/micro/v1/user/services_connect.d.ts +7 -1
- package/dist/proto/micro/v1/user/services_connect.js +6 -0
- package/dist/proto/micro/v1/user/services_nest.d.ts +3 -1
- package/dist/proto/micro/v1/user/services_nest.js +1 -0
- package/package.json +1 -1
- package/proto/micro/v1/mining/mining_messages.proto +78 -0
- package/proto/micro/v1/mining/services.proto +6 -0
- package/proto/micro/v1/user/auth_messages.proto +6 -0
- package/proto/micro/v1/user/profile_messages.proto +16 -0
- package/proto/micro/v1/user/services.proto +2 -0
|
@@ -457,4 +457,60 @@ export interface AdminSetTaskRequest {
|
|
|
457
457
|
max_count?: number | undefined;
|
|
458
458
|
sort?: number | undefined;
|
|
459
459
|
}
|
|
460
|
+
export interface AdminGiftPreviewRequest {
|
|
461
|
+
usernames: string[];
|
|
462
|
+
all_miners: boolean;
|
|
463
|
+
amount: string;
|
|
464
|
+
note: string;
|
|
465
|
+
}
|
|
466
|
+
export interface AdminGiftRecipient {
|
|
467
|
+
user_id: string;
|
|
468
|
+
username: string;
|
|
469
|
+
avatar_id: string;
|
|
470
|
+
amount: string;
|
|
471
|
+
state: string;
|
|
472
|
+
given_week: string;
|
|
473
|
+
}
|
|
474
|
+
export interface AdminGiftPreviewResponse {
|
|
475
|
+
status: ResponseStatus | undefined;
|
|
476
|
+
token: string;
|
|
477
|
+
expires_at: string;
|
|
478
|
+
amount: string;
|
|
479
|
+
recipients: AdminGiftRecipient[];
|
|
480
|
+
not_found: string[];
|
|
481
|
+
recipient_count: number;
|
|
482
|
+
skipped_count: number;
|
|
483
|
+
total: string;
|
|
484
|
+
weekly_limit: string;
|
|
485
|
+
}
|
|
486
|
+
export interface AdminGiftConfirmRequest {
|
|
487
|
+
token: string;
|
|
488
|
+
}
|
|
489
|
+
export interface AdminGift {
|
|
490
|
+
id: string;
|
|
491
|
+
by_user_id: string;
|
|
492
|
+
by_username: string;
|
|
493
|
+
note: string;
|
|
494
|
+
amount: string;
|
|
495
|
+
all_miners: boolean;
|
|
496
|
+
status: string;
|
|
497
|
+
recipient_count: number;
|
|
498
|
+
paid_count: number;
|
|
499
|
+
total_paid: string;
|
|
500
|
+
created_at: string;
|
|
501
|
+
finished_at: string;
|
|
502
|
+
}
|
|
503
|
+
export interface AdminGiftResponse {
|
|
504
|
+
status: ResponseStatus | undefined;
|
|
505
|
+
data: AdminGift | undefined;
|
|
506
|
+
}
|
|
507
|
+
export interface AdminGiftsRequest {
|
|
508
|
+
page: number;
|
|
509
|
+
per_page: number;
|
|
510
|
+
}
|
|
511
|
+
export interface AdminGiftsResponse {
|
|
512
|
+
status: ResponseStatus | undefined;
|
|
513
|
+
data: AdminGift[];
|
|
514
|
+
pagination: PaginationMetaResult | undefined;
|
|
515
|
+
}
|
|
460
516
|
export declare const MICRO_V1_MINING_PACKAGE_NAME = "micro.v1.mining";
|
|
@@ -930,3 +930,123 @@ export declare class AdminSetTaskRequest extends Message<AdminSetTaskRequest> {
|
|
|
930
930
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AdminSetTaskRequest;
|
|
931
931
|
static equals(a: AdminSetTaskRequest | PlainMessage<AdminSetTaskRequest> | undefined, b: AdminSetTaskRequest | PlainMessage<AdminSetTaskRequest> | undefined): boolean;
|
|
932
932
|
}
|
|
933
|
+
export declare class AdminGiftPreviewRequest extends Message<AdminGiftPreviewRequest> {
|
|
934
|
+
usernames: string[];
|
|
935
|
+
allMiners: boolean;
|
|
936
|
+
amount: string;
|
|
937
|
+
note: string;
|
|
938
|
+
constructor(data?: PartialMessage<AdminGiftPreviewRequest>);
|
|
939
|
+
static readonly runtime: typeof proto3;
|
|
940
|
+
static readonly typeName = "micro.v1.mining.AdminGiftPreviewRequest";
|
|
941
|
+
static readonly fields: FieldList;
|
|
942
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AdminGiftPreviewRequest;
|
|
943
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AdminGiftPreviewRequest;
|
|
944
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AdminGiftPreviewRequest;
|
|
945
|
+
static equals(a: AdminGiftPreviewRequest | PlainMessage<AdminGiftPreviewRequest> | undefined, b: AdminGiftPreviewRequest | PlainMessage<AdminGiftPreviewRequest> | undefined): boolean;
|
|
946
|
+
}
|
|
947
|
+
export declare class AdminGiftRecipient extends Message<AdminGiftRecipient> {
|
|
948
|
+
userId: string;
|
|
949
|
+
username: string;
|
|
950
|
+
avatarId: string;
|
|
951
|
+
amount: string;
|
|
952
|
+
state: string;
|
|
953
|
+
givenWeek: string;
|
|
954
|
+
constructor(data?: PartialMessage<AdminGiftRecipient>);
|
|
955
|
+
static readonly runtime: typeof proto3;
|
|
956
|
+
static readonly typeName = "micro.v1.mining.AdminGiftRecipient";
|
|
957
|
+
static readonly fields: FieldList;
|
|
958
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AdminGiftRecipient;
|
|
959
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AdminGiftRecipient;
|
|
960
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AdminGiftRecipient;
|
|
961
|
+
static equals(a: AdminGiftRecipient | PlainMessage<AdminGiftRecipient> | undefined, b: AdminGiftRecipient | PlainMessage<AdminGiftRecipient> | undefined): boolean;
|
|
962
|
+
}
|
|
963
|
+
export declare class AdminGiftPreviewResponse extends Message<AdminGiftPreviewResponse> {
|
|
964
|
+
status?: ResponseStatus;
|
|
965
|
+
token: string;
|
|
966
|
+
expiresAt: string;
|
|
967
|
+
amount: string;
|
|
968
|
+
recipients: AdminGiftRecipient[];
|
|
969
|
+
notFound: string[];
|
|
970
|
+
recipientCount: number;
|
|
971
|
+
skippedCount: number;
|
|
972
|
+
total: string;
|
|
973
|
+
weeklyLimit: string;
|
|
974
|
+
constructor(data?: PartialMessage<AdminGiftPreviewResponse>);
|
|
975
|
+
static readonly runtime: typeof proto3;
|
|
976
|
+
static readonly typeName = "micro.v1.mining.AdminGiftPreviewResponse";
|
|
977
|
+
static readonly fields: FieldList;
|
|
978
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AdminGiftPreviewResponse;
|
|
979
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AdminGiftPreviewResponse;
|
|
980
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AdminGiftPreviewResponse;
|
|
981
|
+
static equals(a: AdminGiftPreviewResponse | PlainMessage<AdminGiftPreviewResponse> | undefined, b: AdminGiftPreviewResponse | PlainMessage<AdminGiftPreviewResponse> | undefined): boolean;
|
|
982
|
+
}
|
|
983
|
+
export declare class AdminGiftConfirmRequest extends Message<AdminGiftConfirmRequest> {
|
|
984
|
+
token: string;
|
|
985
|
+
constructor(data?: PartialMessage<AdminGiftConfirmRequest>);
|
|
986
|
+
static readonly runtime: typeof proto3;
|
|
987
|
+
static readonly typeName = "micro.v1.mining.AdminGiftConfirmRequest";
|
|
988
|
+
static readonly fields: FieldList;
|
|
989
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AdminGiftConfirmRequest;
|
|
990
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AdminGiftConfirmRequest;
|
|
991
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AdminGiftConfirmRequest;
|
|
992
|
+
static equals(a: AdminGiftConfirmRequest | PlainMessage<AdminGiftConfirmRequest> | undefined, b: AdminGiftConfirmRequest | PlainMessage<AdminGiftConfirmRequest> | undefined): boolean;
|
|
993
|
+
}
|
|
994
|
+
export declare class AdminGift extends Message<AdminGift> {
|
|
995
|
+
id: string;
|
|
996
|
+
byUserId: string;
|
|
997
|
+
byUsername: string;
|
|
998
|
+
note: string;
|
|
999
|
+
amount: string;
|
|
1000
|
+
allMiners: boolean;
|
|
1001
|
+
status: string;
|
|
1002
|
+
recipientCount: number;
|
|
1003
|
+
paidCount: number;
|
|
1004
|
+
totalPaid: string;
|
|
1005
|
+
createdAt: string;
|
|
1006
|
+
finishedAt: string;
|
|
1007
|
+
constructor(data?: PartialMessage<AdminGift>);
|
|
1008
|
+
static readonly runtime: typeof proto3;
|
|
1009
|
+
static readonly typeName = "micro.v1.mining.AdminGift";
|
|
1010
|
+
static readonly fields: FieldList;
|
|
1011
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AdminGift;
|
|
1012
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AdminGift;
|
|
1013
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AdminGift;
|
|
1014
|
+
static equals(a: AdminGift | PlainMessage<AdminGift> | undefined, b: AdminGift | PlainMessage<AdminGift> | undefined): boolean;
|
|
1015
|
+
}
|
|
1016
|
+
export declare class AdminGiftResponse extends Message<AdminGiftResponse> {
|
|
1017
|
+
status?: ResponseStatus;
|
|
1018
|
+
data?: AdminGift;
|
|
1019
|
+
constructor(data?: PartialMessage<AdminGiftResponse>);
|
|
1020
|
+
static readonly runtime: typeof proto3;
|
|
1021
|
+
static readonly typeName = "micro.v1.mining.AdminGiftResponse";
|
|
1022
|
+
static readonly fields: FieldList;
|
|
1023
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AdminGiftResponse;
|
|
1024
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AdminGiftResponse;
|
|
1025
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AdminGiftResponse;
|
|
1026
|
+
static equals(a: AdminGiftResponse | PlainMessage<AdminGiftResponse> | undefined, b: AdminGiftResponse | PlainMessage<AdminGiftResponse> | undefined): boolean;
|
|
1027
|
+
}
|
|
1028
|
+
export declare class AdminGiftsRequest extends Message<AdminGiftsRequest> {
|
|
1029
|
+
page: number;
|
|
1030
|
+
perPage: number;
|
|
1031
|
+
constructor(data?: PartialMessage<AdminGiftsRequest>);
|
|
1032
|
+
static readonly runtime: typeof proto3;
|
|
1033
|
+
static readonly typeName = "micro.v1.mining.AdminGiftsRequest";
|
|
1034
|
+
static readonly fields: FieldList;
|
|
1035
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AdminGiftsRequest;
|
|
1036
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AdminGiftsRequest;
|
|
1037
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AdminGiftsRequest;
|
|
1038
|
+
static equals(a: AdminGiftsRequest | PlainMessage<AdminGiftsRequest> | undefined, b: AdminGiftsRequest | PlainMessage<AdminGiftsRequest> | undefined): boolean;
|
|
1039
|
+
}
|
|
1040
|
+
export declare class AdminGiftsResponse extends Message<AdminGiftsResponse> {
|
|
1041
|
+
status?: ResponseStatus;
|
|
1042
|
+
data: AdminGift[];
|
|
1043
|
+
pagination?: PaginationMetaResult;
|
|
1044
|
+
constructor(data?: PartialMessage<AdminGiftsResponse>);
|
|
1045
|
+
static readonly runtime: typeof proto3;
|
|
1046
|
+
static readonly typeName = "micro.v1.mining.AdminGiftsResponse";
|
|
1047
|
+
static readonly fields: FieldList;
|
|
1048
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AdminGiftsResponse;
|
|
1049
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AdminGiftsResponse;
|
|
1050
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AdminGiftsResponse;
|
|
1051
|
+
static equals(a: AdminGiftsResponse | PlainMessage<AdminGiftsResponse> | undefined, b: AdminGiftsResponse | PlainMessage<AdminGiftsResponse> | undefined): boolean;
|
|
1052
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.AdminRiskSignal = exports.AdminTeamSeat = 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 = exports.AdminDeviceClustersRequest = exports.AdminModerateRequest = exports.AdminCreditSource = exports.AdminRiskQueueResponse = exports.AdminRiskQueueRequest = exports.AdminRiskFlag = 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 = 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 {
|
|
@@ -2039,3 +2039,267 @@ class AdminSetTaskRequest extends protobuf_1.Message {
|
|
|
2039
2039
|
}
|
|
2040
2040
|
}
|
|
2041
2041
|
exports.AdminSetTaskRequest = AdminSetTaskRequest;
|
|
2042
|
+
class AdminGiftPreviewRequest extends protobuf_1.Message {
|
|
2043
|
+
usernames = [];
|
|
2044
|
+
allMiners = false;
|
|
2045
|
+
amount = "";
|
|
2046
|
+
note = "";
|
|
2047
|
+
constructor(data) {
|
|
2048
|
+
super();
|
|
2049
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
2050
|
+
}
|
|
2051
|
+
static runtime = protobuf_1.proto3;
|
|
2052
|
+
static typeName = "micro.v1.mining.AdminGiftPreviewRequest";
|
|
2053
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
2054
|
+
{ no: 1, name: "usernames", kind: "scalar", T: 9, repeated: true },
|
|
2055
|
+
{ no: 2, name: "all_miners", kind: "scalar", T: 8 },
|
|
2056
|
+
{ no: 3, name: "amount", kind: "scalar", T: 9 },
|
|
2057
|
+
{ no: 4, name: "note", kind: "scalar", T: 9 },
|
|
2058
|
+
]);
|
|
2059
|
+
static fromBinary(bytes, options) {
|
|
2060
|
+
return new AdminGiftPreviewRequest().fromBinary(bytes, options);
|
|
2061
|
+
}
|
|
2062
|
+
static fromJson(jsonValue, options) {
|
|
2063
|
+
return new AdminGiftPreviewRequest().fromJson(jsonValue, options);
|
|
2064
|
+
}
|
|
2065
|
+
static fromJsonString(jsonString, options) {
|
|
2066
|
+
return new AdminGiftPreviewRequest().fromJsonString(jsonString, options);
|
|
2067
|
+
}
|
|
2068
|
+
static equals(a, b) {
|
|
2069
|
+
return protobuf_1.proto3.util.equals(AdminGiftPreviewRequest, a, b);
|
|
2070
|
+
}
|
|
2071
|
+
}
|
|
2072
|
+
exports.AdminGiftPreviewRequest = AdminGiftPreviewRequest;
|
|
2073
|
+
class AdminGiftRecipient extends protobuf_1.Message {
|
|
2074
|
+
userId = "";
|
|
2075
|
+
username = "";
|
|
2076
|
+
avatarId = "";
|
|
2077
|
+
amount = "";
|
|
2078
|
+
state = "";
|
|
2079
|
+
givenWeek = "";
|
|
2080
|
+
constructor(data) {
|
|
2081
|
+
super();
|
|
2082
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
2083
|
+
}
|
|
2084
|
+
static runtime = protobuf_1.proto3;
|
|
2085
|
+
static typeName = "micro.v1.mining.AdminGiftRecipient";
|
|
2086
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
2087
|
+
{ no: 1, name: "user_id", kind: "scalar", T: 9 },
|
|
2088
|
+
{ no: 2, name: "username", kind: "scalar", T: 9 },
|
|
2089
|
+
{ no: 3, name: "avatar_id", kind: "scalar", T: 9 },
|
|
2090
|
+
{ no: 4, name: "amount", kind: "scalar", T: 9 },
|
|
2091
|
+
{ no: 5, name: "state", kind: "scalar", T: 9 },
|
|
2092
|
+
{ no: 6, name: "given_week", kind: "scalar", T: 9 },
|
|
2093
|
+
]);
|
|
2094
|
+
static fromBinary(bytes, options) {
|
|
2095
|
+
return new AdminGiftRecipient().fromBinary(bytes, options);
|
|
2096
|
+
}
|
|
2097
|
+
static fromJson(jsonValue, options) {
|
|
2098
|
+
return new AdminGiftRecipient().fromJson(jsonValue, options);
|
|
2099
|
+
}
|
|
2100
|
+
static fromJsonString(jsonString, options) {
|
|
2101
|
+
return new AdminGiftRecipient().fromJsonString(jsonString, options);
|
|
2102
|
+
}
|
|
2103
|
+
static equals(a, b) {
|
|
2104
|
+
return protobuf_1.proto3.util.equals(AdminGiftRecipient, a, b);
|
|
2105
|
+
}
|
|
2106
|
+
}
|
|
2107
|
+
exports.AdminGiftRecipient = AdminGiftRecipient;
|
|
2108
|
+
class AdminGiftPreviewResponse extends protobuf_1.Message {
|
|
2109
|
+
status;
|
|
2110
|
+
token = "";
|
|
2111
|
+
expiresAt = "";
|
|
2112
|
+
amount = "";
|
|
2113
|
+
recipients = [];
|
|
2114
|
+
notFound = [];
|
|
2115
|
+
recipientCount = 0;
|
|
2116
|
+
skippedCount = 0;
|
|
2117
|
+
total = "";
|
|
2118
|
+
weeklyLimit = "";
|
|
2119
|
+
constructor(data) {
|
|
2120
|
+
super();
|
|
2121
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
2122
|
+
}
|
|
2123
|
+
static runtime = protobuf_1.proto3;
|
|
2124
|
+
static typeName = "micro.v1.mining.AdminGiftPreviewResponse";
|
|
2125
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
2126
|
+
{ no: 1, name: "status", kind: "message", T: general_pb_js_1.ResponseStatus },
|
|
2127
|
+
{ no: 2, name: "token", kind: "scalar", T: 9 },
|
|
2128
|
+
{ no: 3, name: "expires_at", kind: "scalar", T: 9 },
|
|
2129
|
+
{ no: 4, name: "amount", kind: "scalar", T: 9 },
|
|
2130
|
+
{ no: 5, name: "recipients", kind: "message", T: AdminGiftRecipient, repeated: true },
|
|
2131
|
+
{ no: 6, name: "not_found", kind: "scalar", T: 9, repeated: true },
|
|
2132
|
+
{ no: 7, name: "recipient_count", kind: "scalar", T: 5 },
|
|
2133
|
+
{ no: 8, name: "skipped_count", kind: "scalar", T: 5 },
|
|
2134
|
+
{ no: 9, name: "total", kind: "scalar", T: 9 },
|
|
2135
|
+
{ no: 10, name: "weekly_limit", kind: "scalar", T: 9 },
|
|
2136
|
+
]);
|
|
2137
|
+
static fromBinary(bytes, options) {
|
|
2138
|
+
return new AdminGiftPreviewResponse().fromBinary(bytes, options);
|
|
2139
|
+
}
|
|
2140
|
+
static fromJson(jsonValue, options) {
|
|
2141
|
+
return new AdminGiftPreviewResponse().fromJson(jsonValue, options);
|
|
2142
|
+
}
|
|
2143
|
+
static fromJsonString(jsonString, options) {
|
|
2144
|
+
return new AdminGiftPreviewResponse().fromJsonString(jsonString, options);
|
|
2145
|
+
}
|
|
2146
|
+
static equals(a, b) {
|
|
2147
|
+
return protobuf_1.proto3.util.equals(AdminGiftPreviewResponse, a, b);
|
|
2148
|
+
}
|
|
2149
|
+
}
|
|
2150
|
+
exports.AdminGiftPreviewResponse = AdminGiftPreviewResponse;
|
|
2151
|
+
class AdminGiftConfirmRequest extends protobuf_1.Message {
|
|
2152
|
+
token = "";
|
|
2153
|
+
constructor(data) {
|
|
2154
|
+
super();
|
|
2155
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
2156
|
+
}
|
|
2157
|
+
static runtime = protobuf_1.proto3;
|
|
2158
|
+
static typeName = "micro.v1.mining.AdminGiftConfirmRequest";
|
|
2159
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
2160
|
+
{ no: 1, name: "token", kind: "scalar", T: 9 },
|
|
2161
|
+
]);
|
|
2162
|
+
static fromBinary(bytes, options) {
|
|
2163
|
+
return new AdminGiftConfirmRequest().fromBinary(bytes, options);
|
|
2164
|
+
}
|
|
2165
|
+
static fromJson(jsonValue, options) {
|
|
2166
|
+
return new AdminGiftConfirmRequest().fromJson(jsonValue, options);
|
|
2167
|
+
}
|
|
2168
|
+
static fromJsonString(jsonString, options) {
|
|
2169
|
+
return new AdminGiftConfirmRequest().fromJsonString(jsonString, options);
|
|
2170
|
+
}
|
|
2171
|
+
static equals(a, b) {
|
|
2172
|
+
return protobuf_1.proto3.util.equals(AdminGiftConfirmRequest, a, b);
|
|
2173
|
+
}
|
|
2174
|
+
}
|
|
2175
|
+
exports.AdminGiftConfirmRequest = AdminGiftConfirmRequest;
|
|
2176
|
+
class AdminGift extends protobuf_1.Message {
|
|
2177
|
+
id = "";
|
|
2178
|
+
byUserId = "";
|
|
2179
|
+
byUsername = "";
|
|
2180
|
+
note = "";
|
|
2181
|
+
amount = "";
|
|
2182
|
+
allMiners = false;
|
|
2183
|
+
status = "";
|
|
2184
|
+
recipientCount = 0;
|
|
2185
|
+
paidCount = 0;
|
|
2186
|
+
totalPaid = "";
|
|
2187
|
+
createdAt = "";
|
|
2188
|
+
finishedAt = "";
|
|
2189
|
+
constructor(data) {
|
|
2190
|
+
super();
|
|
2191
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
2192
|
+
}
|
|
2193
|
+
static runtime = protobuf_1.proto3;
|
|
2194
|
+
static typeName = "micro.v1.mining.AdminGift";
|
|
2195
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
2196
|
+
{ no: 1, name: "id", kind: "scalar", T: 9 },
|
|
2197
|
+
{ no: 2, name: "by_user_id", kind: "scalar", T: 9 },
|
|
2198
|
+
{ no: 3, name: "by_username", kind: "scalar", T: 9 },
|
|
2199
|
+
{ no: 4, name: "note", kind: "scalar", T: 9 },
|
|
2200
|
+
{ no: 5, name: "amount", kind: "scalar", T: 9 },
|
|
2201
|
+
{ no: 6, name: "all_miners", kind: "scalar", T: 8 },
|
|
2202
|
+
{ no: 7, name: "status", kind: "scalar", T: 9 },
|
|
2203
|
+
{ no: 8, name: "recipient_count", kind: "scalar", T: 5 },
|
|
2204
|
+
{ no: 9, name: "paid_count", kind: "scalar", T: 5 },
|
|
2205
|
+
{ no: 10, name: "total_paid", kind: "scalar", T: 9 },
|
|
2206
|
+
{ no: 11, name: "created_at", kind: "scalar", T: 9 },
|
|
2207
|
+
{ no: 12, name: "finished_at", kind: "scalar", T: 9 },
|
|
2208
|
+
]);
|
|
2209
|
+
static fromBinary(bytes, options) {
|
|
2210
|
+
return new AdminGift().fromBinary(bytes, options);
|
|
2211
|
+
}
|
|
2212
|
+
static fromJson(jsonValue, options) {
|
|
2213
|
+
return new AdminGift().fromJson(jsonValue, options);
|
|
2214
|
+
}
|
|
2215
|
+
static fromJsonString(jsonString, options) {
|
|
2216
|
+
return new AdminGift().fromJsonString(jsonString, options);
|
|
2217
|
+
}
|
|
2218
|
+
static equals(a, b) {
|
|
2219
|
+
return protobuf_1.proto3.util.equals(AdminGift, a, b);
|
|
2220
|
+
}
|
|
2221
|
+
}
|
|
2222
|
+
exports.AdminGift = AdminGift;
|
|
2223
|
+
class AdminGiftResponse extends protobuf_1.Message {
|
|
2224
|
+
status;
|
|
2225
|
+
data;
|
|
2226
|
+
constructor(data) {
|
|
2227
|
+
super();
|
|
2228
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
2229
|
+
}
|
|
2230
|
+
static runtime = protobuf_1.proto3;
|
|
2231
|
+
static typeName = "micro.v1.mining.AdminGiftResponse";
|
|
2232
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
2233
|
+
{ no: 1, name: "status", kind: "message", T: general_pb_js_1.ResponseStatus },
|
|
2234
|
+
{ no: 2, name: "data", kind: "message", T: AdminGift },
|
|
2235
|
+
]);
|
|
2236
|
+
static fromBinary(bytes, options) {
|
|
2237
|
+
return new AdminGiftResponse().fromBinary(bytes, options);
|
|
2238
|
+
}
|
|
2239
|
+
static fromJson(jsonValue, options) {
|
|
2240
|
+
return new AdminGiftResponse().fromJson(jsonValue, options);
|
|
2241
|
+
}
|
|
2242
|
+
static fromJsonString(jsonString, options) {
|
|
2243
|
+
return new AdminGiftResponse().fromJsonString(jsonString, options);
|
|
2244
|
+
}
|
|
2245
|
+
static equals(a, b) {
|
|
2246
|
+
return protobuf_1.proto3.util.equals(AdminGiftResponse, a, b);
|
|
2247
|
+
}
|
|
2248
|
+
}
|
|
2249
|
+
exports.AdminGiftResponse = AdminGiftResponse;
|
|
2250
|
+
class AdminGiftsRequest extends protobuf_1.Message {
|
|
2251
|
+
page = 0;
|
|
2252
|
+
perPage = 0;
|
|
2253
|
+
constructor(data) {
|
|
2254
|
+
super();
|
|
2255
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
2256
|
+
}
|
|
2257
|
+
static runtime = protobuf_1.proto3;
|
|
2258
|
+
static typeName = "micro.v1.mining.AdminGiftsRequest";
|
|
2259
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
2260
|
+
{ no: 1, name: "page", kind: "scalar", T: 5 },
|
|
2261
|
+
{ no: 2, name: "per_page", kind: "scalar", T: 5 },
|
|
2262
|
+
]);
|
|
2263
|
+
static fromBinary(bytes, options) {
|
|
2264
|
+
return new AdminGiftsRequest().fromBinary(bytes, options);
|
|
2265
|
+
}
|
|
2266
|
+
static fromJson(jsonValue, options) {
|
|
2267
|
+
return new AdminGiftsRequest().fromJson(jsonValue, options);
|
|
2268
|
+
}
|
|
2269
|
+
static fromJsonString(jsonString, options) {
|
|
2270
|
+
return new AdminGiftsRequest().fromJsonString(jsonString, options);
|
|
2271
|
+
}
|
|
2272
|
+
static equals(a, b) {
|
|
2273
|
+
return protobuf_1.proto3.util.equals(AdminGiftsRequest, a, b);
|
|
2274
|
+
}
|
|
2275
|
+
}
|
|
2276
|
+
exports.AdminGiftsRequest = AdminGiftsRequest;
|
|
2277
|
+
class AdminGiftsResponse extends protobuf_1.Message {
|
|
2278
|
+
status;
|
|
2279
|
+
data = [];
|
|
2280
|
+
pagination;
|
|
2281
|
+
constructor(data) {
|
|
2282
|
+
super();
|
|
2283
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
2284
|
+
}
|
|
2285
|
+
static runtime = protobuf_1.proto3;
|
|
2286
|
+
static typeName = "micro.v1.mining.AdminGiftsResponse";
|
|
2287
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
2288
|
+
{ no: 1, name: "status", kind: "message", T: general_pb_js_1.ResponseStatus },
|
|
2289
|
+
{ no: 2, name: "data", kind: "message", T: AdminGift, repeated: true },
|
|
2290
|
+
{ no: 3, name: "pagination", kind: "message", T: general_pb_js_1.PaginationMetaResult },
|
|
2291
|
+
]);
|
|
2292
|
+
static fromBinary(bytes, options) {
|
|
2293
|
+
return new AdminGiftsResponse().fromBinary(bytes, options);
|
|
2294
|
+
}
|
|
2295
|
+
static fromJson(jsonValue, options) {
|
|
2296
|
+
return new AdminGiftsResponse().fromJson(jsonValue, options);
|
|
2297
|
+
}
|
|
2298
|
+
static fromJsonString(jsonString, options) {
|
|
2299
|
+
return new AdminGiftsResponse().fromJsonString(jsonString, options);
|
|
2300
|
+
}
|
|
2301
|
+
static equals(a, b) {
|
|
2302
|
+
return protobuf_1.proto3.util.equals(AdminGiftsResponse, a, b);
|
|
2303
|
+
}
|
|
2304
|
+
}
|
|
2305
|
+
exports.AdminGiftsResponse = AdminGiftsResponse;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ByIdRequest, EmptyRequest, EmptyResponse } from "../general_pb.js";
|
|
2
|
-
import { AdminDeviceClustersRequest, AdminDeviceClustersResponse, AdminModerateRequest, AdminOverviewRequest, AdminOverviewResponse, AdminRiskQueueRequest, AdminRiskQueueResponse, 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";
|
|
2
|
+
import { AdminDeviceClustersRequest, AdminDeviceClustersResponse, AdminGiftConfirmRequest, AdminGiftPreviewRequest, AdminGiftPreviewResponse, AdminGiftResponse, AdminGiftsRequest, AdminGiftsResponse, AdminModerateRequest, AdminOverviewRequest, AdminOverviewResponse, AdminRiskQueueRequest, AdminRiskQueueResponse, 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";
|
|
@@ -154,6 +154,24 @@ export declare const PMiningService: {
|
|
|
154
154
|
readonly O: typeof AdminRiskQueueResponse;
|
|
155
155
|
readonly kind: MethodKind.ServerStreaming;
|
|
156
156
|
};
|
|
157
|
+
readonly adminGiftPreview: {
|
|
158
|
+
readonly name: "AdminGiftPreview";
|
|
159
|
+
readonly I: typeof AdminGiftPreviewRequest;
|
|
160
|
+
readonly O: typeof AdminGiftPreviewResponse;
|
|
161
|
+
readonly kind: MethodKind.ServerStreaming;
|
|
162
|
+
};
|
|
163
|
+
readonly adminGiftConfirm: {
|
|
164
|
+
readonly name: "AdminGiftConfirm";
|
|
165
|
+
readonly I: typeof AdminGiftConfirmRequest;
|
|
166
|
+
readonly O: typeof AdminGiftResponse;
|
|
167
|
+
readonly kind: MethodKind.ServerStreaming;
|
|
168
|
+
};
|
|
169
|
+
readonly adminGifts: {
|
|
170
|
+
readonly name: "AdminGifts";
|
|
171
|
+
readonly I: typeof AdminGiftsRequest;
|
|
172
|
+
readonly O: typeof AdminGiftsResponse;
|
|
173
|
+
readonly kind: MethodKind.ServerStreaming;
|
|
174
|
+
};
|
|
157
175
|
readonly removeUserData: {
|
|
158
176
|
readonly name: "RemoveUserData";
|
|
159
177
|
readonly I: typeof ByIdRequest;
|
|
@@ -157,6 +157,24 @@ exports.PMiningService = {
|
|
|
157
157
|
O: mining_messages_pb_js_1.AdminRiskQueueResponse,
|
|
158
158
|
kind: protobuf_1.MethodKind.ServerStreaming,
|
|
159
159
|
},
|
|
160
|
+
adminGiftPreview: {
|
|
161
|
+
name: "AdminGiftPreview",
|
|
162
|
+
I: mining_messages_pb_js_1.AdminGiftPreviewRequest,
|
|
163
|
+
O: mining_messages_pb_js_1.AdminGiftPreviewResponse,
|
|
164
|
+
kind: protobuf_1.MethodKind.ServerStreaming,
|
|
165
|
+
},
|
|
166
|
+
adminGiftConfirm: {
|
|
167
|
+
name: "AdminGiftConfirm",
|
|
168
|
+
I: mining_messages_pb_js_1.AdminGiftConfirmRequest,
|
|
169
|
+
O: mining_messages_pb_js_1.AdminGiftResponse,
|
|
170
|
+
kind: protobuf_1.MethodKind.ServerStreaming,
|
|
171
|
+
},
|
|
172
|
+
adminGifts: {
|
|
173
|
+
name: "AdminGifts",
|
|
174
|
+
I: mining_messages_pb_js_1.AdminGiftsRequest,
|
|
175
|
+
O: mining_messages_pb_js_1.AdminGiftsResponse,
|
|
176
|
+
kind: protobuf_1.MethodKind.ServerStreaming,
|
|
177
|
+
},
|
|
160
178
|
removeUserData: {
|
|
161
179
|
name: "RemoveUserData",
|
|
162
180
|
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 { AdminDeviceClustersRequest, AdminDeviceClustersResponse, AdminModerateRequest, AdminOverviewRequest, AdminOverviewResponse, AdminRiskQueueRequest, AdminRiskQueueResponse, 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";
|
|
4
|
+
import { AdminDeviceClustersRequest, AdminDeviceClustersResponse, AdminGiftConfirmRequest, AdminGiftPreviewRequest, AdminGiftPreviewResponse, AdminGiftResponse, AdminGiftsRequest, AdminGiftsResponse, AdminModerateRequest, AdminOverviewRequest, AdminOverviewResponse, AdminRiskQueueRequest, AdminRiskQueueResponse, 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 {
|
|
@@ -30,6 +30,9 @@ export interface PMiningServiceClient {
|
|
|
30
30
|
adminModerate(request: AdminModerateRequest, metadata?: Metadata): Observable<AdminUserResponse>;
|
|
31
31
|
adminDeviceClusters(request: AdminDeviceClustersRequest, metadata?: Metadata): Observable<AdminDeviceClustersResponse>;
|
|
32
32
|
adminRiskQueue(request: AdminRiskQueueRequest, metadata?: Metadata): Observable<AdminRiskQueueResponse>;
|
|
33
|
+
adminGiftPreview(request: AdminGiftPreviewRequest, metadata?: Metadata): Observable<AdminGiftPreviewResponse>;
|
|
34
|
+
adminGiftConfirm(request: AdminGiftConfirmRequest, metadata?: Metadata): Observable<AdminGiftResponse>;
|
|
35
|
+
adminGifts(request: AdminGiftsRequest, metadata?: Metadata): Observable<AdminGiftsResponse>;
|
|
33
36
|
removeUserData(request: ByIdRequest, metadata?: Metadata): Observable<EmptyResponse>;
|
|
34
37
|
}
|
|
35
38
|
export interface PMiningServiceController {
|
|
@@ -58,6 +61,9 @@ export interface PMiningServiceController {
|
|
|
58
61
|
adminModerate(request: AdminModerateRequest, metadata?: Metadata): Observable<AdminUserResponse>;
|
|
59
62
|
adminDeviceClusters(request: AdminDeviceClustersRequest, metadata?: Metadata): Observable<AdminDeviceClustersResponse>;
|
|
60
63
|
adminRiskQueue(request: AdminRiskQueueRequest, metadata?: Metadata): Observable<AdminRiskQueueResponse>;
|
|
64
|
+
adminGiftPreview(request: AdminGiftPreviewRequest, metadata?: Metadata): Observable<AdminGiftPreviewResponse>;
|
|
65
|
+
adminGiftConfirm(request: AdminGiftConfirmRequest, metadata?: Metadata): Observable<AdminGiftResponse>;
|
|
66
|
+
adminGifts(request: AdminGiftsRequest, metadata?: Metadata): Observable<AdminGiftsResponse>;
|
|
61
67
|
removeUserData(request: ByIdRequest, metadata?: Metadata): Observable<EmptyResponse>;
|
|
62
68
|
}
|
|
63
69
|
export declare function PMiningServiceControllerMethods(): (constructor: Function) => void;
|
|
@@ -28,6 +28,8 @@ export declare class LoginRequest extends Message<LoginRequest> {
|
|
|
28
28
|
}
|
|
29
29
|
export declare class GoogleRequest extends Message<GoogleRequest> {
|
|
30
30
|
email: string;
|
|
31
|
+
idToken: string;
|
|
32
|
+
accessToken: string;
|
|
31
33
|
constructor(data?: PartialMessage<GoogleRequest>);
|
|
32
34
|
static readonly runtime: typeof proto3;
|
|
33
35
|
static readonly typeName = "micro.v1.user.GoogleRequest";
|
|
@@ -60,6 +60,8 @@ class LoginRequest extends protobuf_1.Message {
|
|
|
60
60
|
exports.LoginRequest = LoginRequest;
|
|
61
61
|
class GoogleRequest extends protobuf_1.Message {
|
|
62
62
|
email = "";
|
|
63
|
+
idToken = "";
|
|
64
|
+
accessToken = "";
|
|
63
65
|
constructor(data) {
|
|
64
66
|
super();
|
|
65
67
|
protobuf_1.proto3.util.initPartial(data, this);
|
|
@@ -68,6 +70,8 @@ class GoogleRequest extends protobuf_1.Message {
|
|
|
68
70
|
static typeName = "micro.v1.user.GoogleRequest";
|
|
69
71
|
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
70
72
|
{ no: 1, name: "email", kind: "scalar", T: 9 },
|
|
73
|
+
{ no: 2, name: "id_token", kind: "scalar", T: 9 },
|
|
74
|
+
{ no: 3, name: "access_token", kind: "scalar", T: 9 },
|
|
71
75
|
]);
|
|
72
76
|
static fromBinary(bytes, options) {
|
|
73
77
|
return new GoogleRequest().fromBinary(bytes, options);
|
|
@@ -85,4 +85,15 @@ export interface ProfileIdListResponse {
|
|
|
85
85
|
status: ResponseStatus | undefined;
|
|
86
86
|
user_ids: string[];
|
|
87
87
|
}
|
|
88
|
+
export interface ResolveUsernamesRequest {
|
|
89
|
+
usernames: string[];
|
|
90
|
+
}
|
|
91
|
+
export interface ResolvedUsername {
|
|
92
|
+
username: string;
|
|
93
|
+
user_id: string;
|
|
94
|
+
}
|
|
95
|
+
export interface ResolveUsernamesResponse {
|
|
96
|
+
status: ResponseStatus | undefined;
|
|
97
|
+
items: ResolvedUsername[];
|
|
98
|
+
}
|
|
88
99
|
export declare const MICRO_V1_USER_PACKAGE_NAME = "micro.v1.user";
|
|
@@ -214,3 +214,38 @@ export declare class ProfileIdListResponse extends Message<ProfileIdListResponse
|
|
|
214
214
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ProfileIdListResponse;
|
|
215
215
|
static equals(a: ProfileIdListResponse | PlainMessage<ProfileIdListResponse> | undefined, b: ProfileIdListResponse | PlainMessage<ProfileIdListResponse> | undefined): boolean;
|
|
216
216
|
}
|
|
217
|
+
export declare class ResolveUsernamesRequest extends Message<ResolveUsernamesRequest> {
|
|
218
|
+
usernames: string[];
|
|
219
|
+
constructor(data?: PartialMessage<ResolveUsernamesRequest>);
|
|
220
|
+
static readonly runtime: typeof proto3;
|
|
221
|
+
static readonly typeName = "micro.v1.user.ResolveUsernamesRequest";
|
|
222
|
+
static readonly fields: FieldList;
|
|
223
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ResolveUsernamesRequest;
|
|
224
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ResolveUsernamesRequest;
|
|
225
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ResolveUsernamesRequest;
|
|
226
|
+
static equals(a: ResolveUsernamesRequest | PlainMessage<ResolveUsernamesRequest> | undefined, b: ResolveUsernamesRequest | PlainMessage<ResolveUsernamesRequest> | undefined): boolean;
|
|
227
|
+
}
|
|
228
|
+
export declare class ResolvedUsername extends Message<ResolvedUsername> {
|
|
229
|
+
username: string;
|
|
230
|
+
userId: string;
|
|
231
|
+
constructor(data?: PartialMessage<ResolvedUsername>);
|
|
232
|
+
static readonly runtime: typeof proto3;
|
|
233
|
+
static readonly typeName = "micro.v1.user.ResolvedUsername";
|
|
234
|
+
static readonly fields: FieldList;
|
|
235
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ResolvedUsername;
|
|
236
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ResolvedUsername;
|
|
237
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ResolvedUsername;
|
|
238
|
+
static equals(a: ResolvedUsername | PlainMessage<ResolvedUsername> | undefined, b: ResolvedUsername | PlainMessage<ResolvedUsername> | undefined): boolean;
|
|
239
|
+
}
|
|
240
|
+
export declare class ResolveUsernamesResponse extends Message<ResolveUsernamesResponse> {
|
|
241
|
+
status?: ResponseStatus;
|
|
242
|
+
items: ResolvedUsername[];
|
|
243
|
+
constructor(data?: PartialMessage<ResolveUsernamesResponse>);
|
|
244
|
+
static readonly runtime: typeof proto3;
|
|
245
|
+
static readonly typeName = "micro.v1.user.ResolveUsernamesResponse";
|
|
246
|
+
static readonly fields: FieldList;
|
|
247
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ResolveUsernamesResponse;
|
|
248
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ResolveUsernamesResponse;
|
|
249
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ResolveUsernamesResponse;
|
|
250
|
+
static equals(a: ResolveUsernamesResponse | PlainMessage<ResolveUsernamesResponse> | undefined, b: ResolveUsernamesResponse | PlainMessage<ResolveUsernamesResponse> | undefined): boolean;
|
|
251
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ProfileIdListResponse = exports.SearchProfilesRequest = exports.AvatarPhotoResponse = exports.AvatarPhotoSetRequest = exports.ProfileListResponse = exports.ProfilesByIdsRequest = exports.ProfileListItemDto = exports.LikeRequest = exports.FollowRequest = exports.ProfileSingleResponse = exports.ProfileByUsernameRequest = exports.ProfileUpdateRequest = exports.ClaimUsernameRequest = exports.UsernameAvailableResponse = exports.UsernameAvailableRequest = exports.ProfileDto = void 0;
|
|
3
|
+
exports.ResolveUsernamesResponse = exports.ResolvedUsername = exports.ResolveUsernamesRequest = exports.ProfileIdListResponse = exports.SearchProfilesRequest = exports.AvatarPhotoResponse = exports.AvatarPhotoSetRequest = exports.ProfileListResponse = exports.ProfilesByIdsRequest = exports.ProfileListItemDto = exports.LikeRequest = exports.FollowRequest = exports.ProfileSingleResponse = exports.ProfileByUsernameRequest = exports.ProfileUpdateRequest = exports.ClaimUsernameRequest = exports.UsernameAvailableResponse = exports.UsernameAvailableRequest = exports.ProfileDto = void 0;
|
|
4
4
|
const protobuf_1 = require("@bufbuild/protobuf");
|
|
5
5
|
const general_pb_js_1 = require("../general_pb.js");
|
|
6
6
|
class ProfileDto extends protobuf_1.Message {
|
|
@@ -477,3 +477,82 @@ class ProfileIdListResponse extends protobuf_1.Message {
|
|
|
477
477
|
}
|
|
478
478
|
}
|
|
479
479
|
exports.ProfileIdListResponse = ProfileIdListResponse;
|
|
480
|
+
class ResolveUsernamesRequest extends protobuf_1.Message {
|
|
481
|
+
usernames = [];
|
|
482
|
+
constructor(data) {
|
|
483
|
+
super();
|
|
484
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
485
|
+
}
|
|
486
|
+
static runtime = protobuf_1.proto3;
|
|
487
|
+
static typeName = "micro.v1.user.ResolveUsernamesRequest";
|
|
488
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
489
|
+
{ no: 1, name: "usernames", kind: "scalar", T: 9, repeated: true },
|
|
490
|
+
]);
|
|
491
|
+
static fromBinary(bytes, options) {
|
|
492
|
+
return new ResolveUsernamesRequest().fromBinary(bytes, options);
|
|
493
|
+
}
|
|
494
|
+
static fromJson(jsonValue, options) {
|
|
495
|
+
return new ResolveUsernamesRequest().fromJson(jsonValue, options);
|
|
496
|
+
}
|
|
497
|
+
static fromJsonString(jsonString, options) {
|
|
498
|
+
return new ResolveUsernamesRequest().fromJsonString(jsonString, options);
|
|
499
|
+
}
|
|
500
|
+
static equals(a, b) {
|
|
501
|
+
return protobuf_1.proto3.util.equals(ResolveUsernamesRequest, a, b);
|
|
502
|
+
}
|
|
503
|
+
}
|
|
504
|
+
exports.ResolveUsernamesRequest = ResolveUsernamesRequest;
|
|
505
|
+
class ResolvedUsername extends protobuf_1.Message {
|
|
506
|
+
username = "";
|
|
507
|
+
userId = "";
|
|
508
|
+
constructor(data) {
|
|
509
|
+
super();
|
|
510
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
511
|
+
}
|
|
512
|
+
static runtime = protobuf_1.proto3;
|
|
513
|
+
static typeName = "micro.v1.user.ResolvedUsername";
|
|
514
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
515
|
+
{ no: 1, name: "username", kind: "scalar", T: 9 },
|
|
516
|
+
{ no: 2, name: "user_id", kind: "scalar", T: 9 },
|
|
517
|
+
]);
|
|
518
|
+
static fromBinary(bytes, options) {
|
|
519
|
+
return new ResolvedUsername().fromBinary(bytes, options);
|
|
520
|
+
}
|
|
521
|
+
static fromJson(jsonValue, options) {
|
|
522
|
+
return new ResolvedUsername().fromJson(jsonValue, options);
|
|
523
|
+
}
|
|
524
|
+
static fromJsonString(jsonString, options) {
|
|
525
|
+
return new ResolvedUsername().fromJsonString(jsonString, options);
|
|
526
|
+
}
|
|
527
|
+
static equals(a, b) {
|
|
528
|
+
return protobuf_1.proto3.util.equals(ResolvedUsername, a, b);
|
|
529
|
+
}
|
|
530
|
+
}
|
|
531
|
+
exports.ResolvedUsername = ResolvedUsername;
|
|
532
|
+
class ResolveUsernamesResponse extends protobuf_1.Message {
|
|
533
|
+
status;
|
|
534
|
+
items = [];
|
|
535
|
+
constructor(data) {
|
|
536
|
+
super();
|
|
537
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
538
|
+
}
|
|
539
|
+
static runtime = protobuf_1.proto3;
|
|
540
|
+
static typeName = "micro.v1.user.ResolveUsernamesResponse";
|
|
541
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
542
|
+
{ no: 1, name: "status", kind: "message", T: general_pb_js_1.ResponseStatus },
|
|
543
|
+
{ no: 2, name: "items", kind: "message", T: ResolvedUsername, repeated: true },
|
|
544
|
+
]);
|
|
545
|
+
static fromBinary(bytes, options) {
|
|
546
|
+
return new ResolveUsernamesResponse().fromBinary(bytes, options);
|
|
547
|
+
}
|
|
548
|
+
static fromJson(jsonValue, options) {
|
|
549
|
+
return new ResolveUsernamesResponse().fromJson(jsonValue, options);
|
|
550
|
+
}
|
|
551
|
+
static fromJsonString(jsonString, options) {
|
|
552
|
+
return new ResolveUsernamesResponse().fromJsonString(jsonString, options);
|
|
553
|
+
}
|
|
554
|
+
static equals(a, b) {
|
|
555
|
+
return protobuf_1.proto3.util.equals(ResolveUsernamesResponse, a, b);
|
|
556
|
+
}
|
|
557
|
+
}
|
|
558
|
+
exports.ResolveUsernamesResponse = ResolveUsernamesResponse;
|
|
@@ -3,7 +3,7 @@ import { MethodKind } from "@bufbuild/protobuf";
|
|
|
3
3
|
import { ByIdRequest, EmptyRequest, EmptyResponse, PaginateFromRequest, PaginateRequest } from "../general_pb.js";
|
|
4
4
|
import { BetaCodePaginateResponse, BetaCodeSingleResponse, BetaCodeStoreRequest, BetaCodeUpdateRequest, ContactPaginationResponse, ContactRequest, ContactResponse, PreviewResponse, PublicUserPreviewResponse, SubscriptionBadgeRequest, UpdatePasswordRequest, UserAdminStoreRequest, UserBadgeSetRequest, UserBadgesResponse, UserPaginationResponse, UserSingleResponse, UserUpdateRequest } from "./user_messages_pb.js";
|
|
5
5
|
import { SiteSettingsRequest, SiteSettingsResponse } from "./site_settings_messages_pb.js";
|
|
6
|
-
import { AvatarPhotoResponse, AvatarPhotoSetRequest, ClaimUsernameRequest, FollowRequest, LikeRequest, ProfileByUsernameRequest, ProfileIdListResponse, ProfileListResponse, ProfilesByIdsRequest, ProfileSingleResponse, ProfileUpdateRequest, SearchProfilesRequest, UsernameAvailableRequest, UsernameAvailableResponse } from "./profile_messages_pb.js";
|
|
6
|
+
import { AvatarPhotoResponse, AvatarPhotoSetRequest, ClaimUsernameRequest, FollowRequest, LikeRequest, ProfileByUsernameRequest, ProfileIdListResponse, ProfileListResponse, ProfilesByIdsRequest, ProfileSingleResponse, ProfileUpdateRequest, ResolveUsernamesRequest, ResolveUsernamesResponse, SearchProfilesRequest, UsernameAvailableRequest, UsernameAvailableResponse } from "./profile_messages_pb.js";
|
|
7
7
|
import { RoleAdminStoreRequest, RoleAdminUpdateRequest, RolePaginationResponse, RoleSingleResponse } from "./authorization_messages_pb.js";
|
|
8
8
|
export declare const PAuthService: {
|
|
9
9
|
readonly typeName: "micro.v1.user.PAuthService";
|
|
@@ -295,6 +295,12 @@ export declare const PProfileService: {
|
|
|
295
295
|
readonly O: typeof UserBadgesResponse;
|
|
296
296
|
readonly kind: MethodKind.ServerStreaming;
|
|
297
297
|
};
|
|
298
|
+
readonly resolveUsernames: {
|
|
299
|
+
readonly name: "ResolveUsernames";
|
|
300
|
+
readonly I: typeof ResolveUsernamesRequest;
|
|
301
|
+
readonly O: typeof ResolveUsernamesResponse;
|
|
302
|
+
readonly kind: MethodKind.ServerStreaming;
|
|
303
|
+
};
|
|
298
304
|
};
|
|
299
305
|
};
|
|
300
306
|
export declare const PUserAdminService: {
|
|
@@ -298,6 +298,12 @@ exports.PProfileService = {
|
|
|
298
298
|
O: user_messages_pb_js_1.UserBadgesResponse,
|
|
299
299
|
kind: protobuf_1.MethodKind.ServerStreaming,
|
|
300
300
|
},
|
|
301
|
+
resolveUsernames: {
|
|
302
|
+
name: "ResolveUsernames",
|
|
303
|
+
I: profile_messages_pb_js_1.ResolveUsernamesRequest,
|
|
304
|
+
O: profile_messages_pb_js_1.ResolveUsernamesResponse,
|
|
305
|
+
kind: protobuf_1.MethodKind.ServerStreaming,
|
|
306
|
+
},
|
|
301
307
|
}
|
|
302
308
|
};
|
|
303
309
|
exports.PUserAdminService = {
|
|
@@ -3,7 +3,7 @@ import { Observable } from "rxjs";
|
|
|
3
3
|
import { ByIdRequest, EmptyRequest, EmptyResponse, PaginateFromRequest, PaginateRequest } from "../general_nest";
|
|
4
4
|
import { AppleRequest, GoogleRequest, LoginRequest, LoginResponse, LostPasswordChangePasswordRequest, LostPasswordChangePasswordResponse, LostPasswordHashCheckRequest, LostPasswordHashCheckResponse, LostPasswordStartRequest, LostPasswordStartResponse, RegisterRequest, RegisterResponse, RemoveUserDataRequest, ResendVerificationEmailRequest, ResendVerificationEmailResponse, TfaRequest, TfaResponse, UserVerificationRequest, UserVerificationResponse, VerifyTokenRequest, VerifyTokenResponse } from "./auth_messages_nest";
|
|
5
5
|
import { RoleAdminStoreRequest, RoleAdminUpdateRequest, RolePaginationResponse, RoleSingleResponse } from "./authorization_messages_nest";
|
|
6
|
-
import { AvatarPhotoResponse, AvatarPhotoSetRequest, ClaimUsernameRequest, FollowRequest, LikeRequest, ProfileByUsernameRequest, ProfileIdListResponse, ProfileListResponse, ProfilesByIdsRequest, ProfileSingleResponse, ProfileUpdateRequest, SearchProfilesRequest, UsernameAvailableRequest, UsernameAvailableResponse } from "./profile_messages_nest";
|
|
6
|
+
import { AvatarPhotoResponse, AvatarPhotoSetRequest, ClaimUsernameRequest, FollowRequest, LikeRequest, ProfileByUsernameRequest, ProfileIdListResponse, ProfileListResponse, ProfilesByIdsRequest, ProfileSingleResponse, ProfileUpdateRequest, ResolveUsernamesRequest, ResolveUsernamesResponse, SearchProfilesRequest, UsernameAvailableRequest, UsernameAvailableResponse } from "./profile_messages_nest";
|
|
7
7
|
import { SiteSettingsRequest, SiteSettingsResponse } from "./site_settings_messages_nest";
|
|
8
8
|
import { BetaCodePaginateResponse, BetaCodeSingleResponse, BetaCodeStoreRequest, BetaCodeUpdateRequest, ContactPaginationResponse, ContactRequest, ContactResponse, PreviewResponse, PublicUserPreviewResponse, SubscriptionBadgeRequest, UpdatePasswordRequest, UserAdminStoreRequest, UserBadgeSetRequest, UserBadgesResponse, UserPaginationResponse, UserSingleResponse, UserUpdateRequest } from "./user_messages_nest";
|
|
9
9
|
export declare const protobufPackage = "micro.v1.user";
|
|
@@ -118,6 +118,7 @@ export interface PProfileServiceClient {
|
|
|
118
118
|
profilesByIds(request: ProfilesByIdsRequest, metadata?: Metadata): Observable<ProfileListResponse>;
|
|
119
119
|
following(request: PaginateRequest, metadata?: Metadata): Observable<ProfileListResponse>;
|
|
120
120
|
setSubscriptionBadge(request: SubscriptionBadgeRequest, metadata?: Metadata): Observable<UserBadgesResponse>;
|
|
121
|
+
resolveUsernames(request: ResolveUsernamesRequest, metadata?: Metadata): Observable<ResolveUsernamesResponse>;
|
|
121
122
|
}
|
|
122
123
|
export interface PProfileServiceController {
|
|
123
124
|
usernameAvailable(request: UsernameAvailableRequest, metadata?: Metadata): Observable<UsernameAvailableResponse>;
|
|
@@ -137,6 +138,7 @@ export interface PProfileServiceController {
|
|
|
137
138
|
profilesByIds(request: ProfilesByIdsRequest, metadata?: Metadata): Observable<ProfileListResponse>;
|
|
138
139
|
following(request: PaginateRequest, metadata?: Metadata): Observable<ProfileListResponse>;
|
|
139
140
|
setSubscriptionBadge(request: SubscriptionBadgeRequest, metadata?: Metadata): Observable<UserBadgesResponse>;
|
|
141
|
+
resolveUsernames(request: ResolveUsernamesRequest, metadata?: Metadata): Observable<ResolveUsernamesResponse>;
|
|
140
142
|
}
|
|
141
143
|
export declare function PProfileServiceControllerMethods(): (constructor: Function) => void;
|
|
142
144
|
export declare const P_PROFILE_SERVICE_NAME = "PProfileService";
|
|
@@ -152,6 +152,7 @@ function PProfileServiceControllerMethods() {
|
|
|
152
152
|
"profilesByIds",
|
|
153
153
|
"following",
|
|
154
154
|
"setSubscriptionBadge",
|
|
155
|
+
"resolveUsernames",
|
|
155
156
|
];
|
|
156
157
|
for (const method of grpcMethods) {
|
|
157
158
|
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
package/package.json
CHANGED
|
@@ -668,3 +668,81 @@ message AdminSetTaskRequest {
|
|
|
668
668
|
optional int32 max_count = 6;
|
|
669
669
|
optional int32 sort = 7;
|
|
670
670
|
}
|
|
671
|
+
|
|
672
|
+
// ---- admin gifts ------------------------------------------------------------
|
|
673
|
+
|
|
674
|
+
message AdminGiftPreviewRequest {
|
|
675
|
+
// Usernames, with or without "@"; ignored for everyone mining.
|
|
676
|
+
repeated string usernames = 1;
|
|
677
|
+
// Everyone mining (activated, not under review) instead of the list.
|
|
678
|
+
bool all_miners = 2;
|
|
679
|
+
// JR per person, at most the weekly limit.
|
|
680
|
+
string amount = 3;
|
|
681
|
+
// Why; required. In the panel's log and in the person's history.
|
|
682
|
+
string note = 4;
|
|
683
|
+
}
|
|
684
|
+
|
|
685
|
+
message AdminGiftRecipient {
|
|
686
|
+
string user_id = 1;
|
|
687
|
+
string username = 2;
|
|
688
|
+
string avatar_id = 3;
|
|
689
|
+
// What they would get: the amount, or less near the weekly limit.
|
|
690
|
+
string amount = 4;
|
|
691
|
+
// ok | capped (less than asked) | weekly_limit | not_mining | restricted | banned
|
|
692
|
+
string state = 5;
|
|
693
|
+
// Already gifted to them in the last 7 days.
|
|
694
|
+
string given_week = 6;
|
|
695
|
+
}
|
|
696
|
+
|
|
697
|
+
message AdminGiftPreviewResponse {
|
|
698
|
+
ResponseStatus status = 1;
|
|
699
|
+
// One-time, for this list only; expires at expires_at.
|
|
700
|
+
string token = 2;
|
|
701
|
+
string expires_at = 3;
|
|
702
|
+
string amount = 4;
|
|
703
|
+
// Username list: everyone matched. Everyone mining: the first 50.
|
|
704
|
+
repeated AdminGiftRecipient recipients = 5;
|
|
705
|
+
// Usernames no account has.
|
|
706
|
+
repeated string not_found = 6;
|
|
707
|
+
// Who will get something, and who will not (limit, not mining, review).
|
|
708
|
+
int32 recipient_count = 7;
|
|
709
|
+
int32 skipped_count = 8;
|
|
710
|
+
string total = 9;
|
|
711
|
+
string weekly_limit = 10;
|
|
712
|
+
}
|
|
713
|
+
|
|
714
|
+
message AdminGiftConfirmRequest {
|
|
715
|
+
string token = 1;
|
|
716
|
+
}
|
|
717
|
+
|
|
718
|
+
message AdminGift {
|
|
719
|
+
string id = 1;
|
|
720
|
+
string by_user_id = 2;
|
|
721
|
+
string by_username = 3;
|
|
722
|
+
string note = 4;
|
|
723
|
+
string amount = 5;
|
|
724
|
+
bool all_miners = 6;
|
|
725
|
+
// processing | done
|
|
726
|
+
string status = 7;
|
|
727
|
+
int32 recipient_count = 8;
|
|
728
|
+
int32 paid_count = 9;
|
|
729
|
+
string total_paid = 10;
|
|
730
|
+
string created_at = 11;
|
|
731
|
+
string finished_at = 12;
|
|
732
|
+
}
|
|
733
|
+
|
|
734
|
+
message AdminGiftResponse {
|
|
735
|
+
ResponseStatus status = 1;
|
|
736
|
+
AdminGift data = 2;
|
|
737
|
+
}
|
|
738
|
+
|
|
739
|
+
message AdminGiftsRequest {
|
|
740
|
+
int32 page = 1;
|
|
741
|
+
int32 per_page = 2;
|
|
742
|
+
}
|
|
743
|
+
|
|
744
|
+
message AdminGiftsResponse {
|
|
745
|
+
ResponseStatus status = 1;
|
|
746
|
+
repeated AdminGift data = 2;
|
|
747
|
+
PaginationMetaResult pagination = 3;
|
|
748
|
+
}
|
|
@@ -55,6 +55,12 @@ service PMiningService {
|
|
|
55
55
|
// gift-and-gone invitees, no tasks, invite bursts), by score. A flag is
|
|
56
56
|
// only ever a reason to look; the decision stays with AdminModerate.
|
|
57
57
|
rpc AdminRiskQueue(AdminRiskQueueRequest) returns(stream AdminRiskQueueResponse) {}
|
|
58
|
+
// JR gifts from the panel, by username or to everyone mining: a preview
|
|
59
|
+
// (nothing written, a one-time token for exactly that list), the confirm
|
|
60
|
+
// with that token, and the log of gifts given.
|
|
61
|
+
rpc AdminGiftPreview(AdminGiftPreviewRequest) returns(stream AdminGiftPreviewResponse) {}
|
|
62
|
+
rpc AdminGiftConfirm(AdminGiftConfirmRequest) returns(stream AdminGiftResponse) {}
|
|
63
|
+
rpc AdminGifts(AdminGiftsRequest) returns(stream AdminGiftsResponse) {}
|
|
58
64
|
|
|
59
65
|
// Account deletion parity with every other micro.
|
|
60
66
|
rpc RemoveUserData(ByIdRequest) returns(stream EmptyResponse) {}
|
|
@@ -16,8 +16,14 @@ message LoginRequest {
|
|
|
16
16
|
string password = 2;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
+
// The Google sign-in. The account is the one of the e-mail inside the
|
|
20
|
+
// verified token: id_token (preferred; web and the apps send it) or, when a
|
|
21
|
+
// client has none, access_token (checked with Google's tokeninfo). `email`
|
|
22
|
+
// is what the client says and is never trusted on its own.
|
|
19
23
|
message GoogleRequest {
|
|
20
24
|
string email = 1;
|
|
25
|
+
string id_token = 2;
|
|
26
|
+
string access_token = 3;
|
|
21
27
|
}
|
|
22
28
|
|
|
23
29
|
message AppleRequest {
|
|
@@ -116,3 +116,19 @@ message ProfileIdListResponse {
|
|
|
116
116
|
ResponseStatus status = 1;
|
|
117
117
|
repeated string user_ids = 2;
|
|
118
118
|
}
|
|
119
|
+
|
|
120
|
+
// Exact usernames to their accounts (service-to-service: the mining admin's
|
|
121
|
+
// JR gifts). A username that matches no account is simply absent.
|
|
122
|
+
message ResolveUsernamesRequest {
|
|
123
|
+
repeated string usernames = 1;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
message ResolvedUsername {
|
|
127
|
+
string username = 1;
|
|
128
|
+
string user_id = 2;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
message ResolveUsernamesResponse {
|
|
132
|
+
ResponseStatus status = 1;
|
|
133
|
+
repeated ResolvedUsername items = 2;
|
|
134
|
+
}
|
|
@@ -78,6 +78,8 @@ service PProfileService {
|
|
|
78
78
|
rpc Following(PaginateRequest) returns(stream ProfileListResponse) {}
|
|
79
79
|
// Service-to-service only (internal hash, no user token).
|
|
80
80
|
rpc SetSubscriptionBadge(SubscriptionBadgeRequest) returns(stream UserBadgesResponse) {}
|
|
81
|
+
// Service-to-service only: exact usernames to user ids.
|
|
82
|
+
rpc ResolveUsernames(ResolveUsernamesRequest) returns(stream ResolveUsernamesResponse) {}
|
|
81
83
|
}
|
|
82
84
|
|
|
83
85
|
// Admin
|