jr-common-micro 1.1.78 → 1.1.80
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/chat/chat_messages_nest.d.ts +23 -0
- package/dist/proto/micro/v1/chat/chat_messages_pb.d.ts +47 -0
- package/dist/proto/micro/v1/chat/chat_messages_pb.js +104 -1
- package/dist/proto/micro/v1/chat/services_connect.d.ts +7 -1
- package/dist/proto/micro/v1/chat/services_connect.js +6 -0
- package/dist/proto/micro/v1/chat/services_nest.d.ts +3 -1
- package/dist/proto/micro/v1/chat/services_nest.js +1 -0
- package/dist/proto/micro/v1/user/services_connect.d.ts +13 -1
- package/dist/proto/micro/v1/user/services_connect.js +12 -0
- package/dist/proto/micro/v1/user/services_nest.d.ts +5 -1
- package/dist/proto/micro/v1/user/services_nest.js +2 -0
- package/dist/proto/micro/v1/user/user_messages_nest.d.ts +10 -0
- package/dist/proto/micro/v1/user/user_messages_pb.d.ts +26 -0
- package/dist/proto/micro/v1/user/user_messages_pb.js +59 -1
- package/package.json +1 -1
- package/proto/micro/v1/chat/chat_messages.proto +36 -0
- package/proto/micro/v1/chat/services.proto +1 -0
- package/proto/micro/v1/user/services.proto +2 -0
- package/proto/micro/v1/user/user_messages.proto +16 -0
|
@@ -105,6 +105,29 @@ export interface ChatMediaUploadResponse {
|
|
|
105
105
|
}
|
|
106
106
|
export interface ChatMediaGetRequest {
|
|
107
107
|
public_id: string;
|
|
108
|
+
thumb: boolean;
|
|
109
|
+
}
|
|
110
|
+
export interface GroupMediaRequest {
|
|
111
|
+
group_slug: string;
|
|
112
|
+
kind: string;
|
|
113
|
+
cursor: string;
|
|
114
|
+
limit: number;
|
|
115
|
+
}
|
|
116
|
+
export interface ChatMediaItemDto {
|
|
117
|
+
public_id: string;
|
|
118
|
+
message_id: string;
|
|
119
|
+
kind: string;
|
|
120
|
+
width: number;
|
|
121
|
+
height: number;
|
|
122
|
+
created_at: string;
|
|
123
|
+
user_id: string;
|
|
124
|
+
username: string;
|
|
125
|
+
has_thumb: boolean;
|
|
126
|
+
}
|
|
127
|
+
export interface GroupMediaResponse {
|
|
128
|
+
status: ResponseStatus | undefined;
|
|
129
|
+
data: ChatMediaItemDto[];
|
|
130
|
+
next_cursor: string;
|
|
108
131
|
}
|
|
109
132
|
export interface ChatMediaGetResponse {
|
|
110
133
|
status: ResponseStatus | undefined;
|
|
@@ -194,6 +194,7 @@ export declare class ChatMediaUploadResponse extends Message<ChatMediaUploadResp
|
|
|
194
194
|
}
|
|
195
195
|
export declare class ChatMediaGetRequest extends Message<ChatMediaGetRequest> {
|
|
196
196
|
publicId: string;
|
|
197
|
+
thumb: boolean;
|
|
197
198
|
constructor(data?: PartialMessage<ChatMediaGetRequest>);
|
|
198
199
|
static readonly runtime: typeof proto3;
|
|
199
200
|
static readonly typeName = "micro.v1.chat.ChatMediaGetRequest";
|
|
@@ -203,6 +204,52 @@ export declare class ChatMediaGetRequest extends Message<ChatMediaGetRequest> {
|
|
|
203
204
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ChatMediaGetRequest;
|
|
204
205
|
static equals(a: ChatMediaGetRequest | PlainMessage<ChatMediaGetRequest> | undefined, b: ChatMediaGetRequest | PlainMessage<ChatMediaGetRequest> | undefined): boolean;
|
|
205
206
|
}
|
|
207
|
+
export declare class GroupMediaRequest extends Message<GroupMediaRequest> {
|
|
208
|
+
groupSlug: string;
|
|
209
|
+
kind: string;
|
|
210
|
+
cursor: string;
|
|
211
|
+
limit: number;
|
|
212
|
+
constructor(data?: PartialMessage<GroupMediaRequest>);
|
|
213
|
+
static readonly runtime: typeof proto3;
|
|
214
|
+
static readonly typeName = "micro.v1.chat.GroupMediaRequest";
|
|
215
|
+
static readonly fields: FieldList;
|
|
216
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GroupMediaRequest;
|
|
217
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GroupMediaRequest;
|
|
218
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GroupMediaRequest;
|
|
219
|
+
static equals(a: GroupMediaRequest | PlainMessage<GroupMediaRequest> | undefined, b: GroupMediaRequest | PlainMessage<GroupMediaRequest> | undefined): boolean;
|
|
220
|
+
}
|
|
221
|
+
export declare class ChatMediaItemDto extends Message<ChatMediaItemDto> {
|
|
222
|
+
publicId: string;
|
|
223
|
+
messageId: string;
|
|
224
|
+
kind: string;
|
|
225
|
+
width: number;
|
|
226
|
+
height: number;
|
|
227
|
+
createdAt: string;
|
|
228
|
+
userId: string;
|
|
229
|
+
username: string;
|
|
230
|
+
hasThumb: boolean;
|
|
231
|
+
constructor(data?: PartialMessage<ChatMediaItemDto>);
|
|
232
|
+
static readonly runtime: typeof proto3;
|
|
233
|
+
static readonly typeName = "micro.v1.chat.ChatMediaItemDto";
|
|
234
|
+
static readonly fields: FieldList;
|
|
235
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ChatMediaItemDto;
|
|
236
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ChatMediaItemDto;
|
|
237
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ChatMediaItemDto;
|
|
238
|
+
static equals(a: ChatMediaItemDto | PlainMessage<ChatMediaItemDto> | undefined, b: ChatMediaItemDto | PlainMessage<ChatMediaItemDto> | undefined): boolean;
|
|
239
|
+
}
|
|
240
|
+
export declare class GroupMediaResponse extends Message<GroupMediaResponse> {
|
|
241
|
+
status?: ResponseStatus;
|
|
242
|
+
data: ChatMediaItemDto[];
|
|
243
|
+
nextCursor: string;
|
|
244
|
+
constructor(data?: PartialMessage<GroupMediaResponse>);
|
|
245
|
+
static readonly runtime: typeof proto3;
|
|
246
|
+
static readonly typeName = "micro.v1.chat.GroupMediaResponse";
|
|
247
|
+
static readonly fields: FieldList;
|
|
248
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GroupMediaResponse;
|
|
249
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GroupMediaResponse;
|
|
250
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GroupMediaResponse;
|
|
251
|
+
static equals(a: GroupMediaResponse | PlainMessage<GroupMediaResponse> | undefined, b: GroupMediaResponse | PlainMessage<GroupMediaResponse> | undefined): boolean;
|
|
252
|
+
}
|
|
206
253
|
export declare class ChatMediaGetResponse extends Message<ChatMediaGetResponse> {
|
|
207
254
|
status?: ResponseStatus;
|
|
208
255
|
data: Uint8Array<ArrayBuffer>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ReviewReportRequest = exports.ReportListResponse = exports.ReportDto = exports.SanctionListResponse = exports.SanctionDto = exports.ChatMemberListResponse = exports.ChatUserAdminListResponse = exports.ChatUserAdminDto = exports.GroupPhotoResponse = exports.GroupPhotoSetRequest = exports.ChatMemberDto = exports.ChatMemberListRequest = exports.PendingMembersRequest = exports.MemberActionRequest = exports.PinMessageRequest = exports.DeleteMessageRequest = exports.RevokeSanctionRequest = exports.SanctionRequest = exports.GroupUpsertRequest = exports.BlockedUsersResponse = exports.BlockUserRequest = exports.ReportMessageRequest = exports.PinnedMessagesResponse = exports.PinnedMessagesRequest = exports.MessageHistoryResponse = exports.MessageHistoryRequest = exports.ChatReplyPreviewDto = exports.ChatReactionCountDto = exports.ChatReactorDto = exports.ChatPollDto = exports.ChatPollOptionDto = exports.ChatMediaGetResponse = exports.ChatMediaGetRequest = exports.ChatMediaUploadResponse = exports.ChatMediaUploadRequest = exports.ChatMediaDto = exports.ChatLinkPreviewDto = exports.ChatTickerCardDto = exports.ChatMessageDto = exports.ChatGroupSingleResponse = exports.JoinGroupResponse = exports.GroupBySlugRequest = exports.ChatGroupListResponse = exports.ChatGroupDto = void 0;
|
|
3
|
+
exports.ReviewReportRequest = exports.ReportListResponse = exports.ReportDto = exports.SanctionListResponse = exports.SanctionDto = exports.ChatMemberListResponse = exports.ChatUserAdminListResponse = exports.ChatUserAdminDto = exports.GroupPhotoResponse = exports.GroupPhotoSetRequest = exports.ChatMemberDto = exports.ChatMemberListRequest = exports.PendingMembersRequest = exports.MemberActionRequest = exports.PinMessageRequest = exports.DeleteMessageRequest = exports.RevokeSanctionRequest = exports.SanctionRequest = exports.GroupUpsertRequest = exports.BlockedUsersResponse = exports.BlockUserRequest = exports.ReportMessageRequest = exports.PinnedMessagesResponse = exports.PinnedMessagesRequest = exports.MessageHistoryResponse = exports.MessageHistoryRequest = exports.ChatReplyPreviewDto = exports.ChatReactionCountDto = exports.ChatReactorDto = exports.ChatPollDto = exports.ChatPollOptionDto = exports.ChatMediaGetResponse = exports.GroupMediaResponse = exports.ChatMediaItemDto = exports.GroupMediaRequest = exports.ChatMediaGetRequest = exports.ChatMediaUploadResponse = exports.ChatMediaUploadRequest = exports.ChatMediaDto = exports.ChatLinkPreviewDto = exports.ChatTickerCardDto = exports.ChatMessageDto = exports.ChatGroupSingleResponse = exports.JoinGroupResponse = exports.GroupBySlugRequest = exports.ChatGroupListResponse = exports.ChatGroupDto = void 0;
|
|
4
4
|
const protobuf_1 = require("@bufbuild/protobuf");
|
|
5
5
|
const general_pb_js_1 = require("../general_pb.js");
|
|
6
6
|
class ChatGroupDto extends protobuf_1.Message {
|
|
@@ -420,6 +420,7 @@ class ChatMediaUploadResponse extends protobuf_1.Message {
|
|
|
420
420
|
exports.ChatMediaUploadResponse = ChatMediaUploadResponse;
|
|
421
421
|
class ChatMediaGetRequest extends protobuf_1.Message {
|
|
422
422
|
publicId = "";
|
|
423
|
+
thumb = false;
|
|
423
424
|
constructor(data) {
|
|
424
425
|
super();
|
|
425
426
|
protobuf_1.proto3.util.initPartial(data, this);
|
|
@@ -428,6 +429,7 @@ class ChatMediaGetRequest extends protobuf_1.Message {
|
|
|
428
429
|
static typeName = "micro.v1.chat.ChatMediaGetRequest";
|
|
429
430
|
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
430
431
|
{ no: 1, name: "public_id", kind: "scalar", T: 9 },
|
|
432
|
+
{ no: 2, name: "thumb", kind: "scalar", T: 8 },
|
|
431
433
|
]);
|
|
432
434
|
static fromBinary(bytes, options) {
|
|
433
435
|
return new ChatMediaGetRequest().fromBinary(bytes, options);
|
|
@@ -443,6 +445,107 @@ class ChatMediaGetRequest extends protobuf_1.Message {
|
|
|
443
445
|
}
|
|
444
446
|
}
|
|
445
447
|
exports.ChatMediaGetRequest = ChatMediaGetRequest;
|
|
448
|
+
class GroupMediaRequest extends protobuf_1.Message {
|
|
449
|
+
groupSlug = "";
|
|
450
|
+
kind = "";
|
|
451
|
+
cursor = "";
|
|
452
|
+
limit = 0;
|
|
453
|
+
constructor(data) {
|
|
454
|
+
super();
|
|
455
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
456
|
+
}
|
|
457
|
+
static runtime = protobuf_1.proto3;
|
|
458
|
+
static typeName = "micro.v1.chat.GroupMediaRequest";
|
|
459
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
460
|
+
{ no: 1, name: "group_slug", kind: "scalar", T: 9 },
|
|
461
|
+
{ no: 2, name: "kind", kind: "scalar", T: 9 },
|
|
462
|
+
{ no: 3, name: "cursor", kind: "scalar", T: 9 },
|
|
463
|
+
{ no: 4, name: "limit", kind: "scalar", T: 13 },
|
|
464
|
+
]);
|
|
465
|
+
static fromBinary(bytes, options) {
|
|
466
|
+
return new GroupMediaRequest().fromBinary(bytes, options);
|
|
467
|
+
}
|
|
468
|
+
static fromJson(jsonValue, options) {
|
|
469
|
+
return new GroupMediaRequest().fromJson(jsonValue, options);
|
|
470
|
+
}
|
|
471
|
+
static fromJsonString(jsonString, options) {
|
|
472
|
+
return new GroupMediaRequest().fromJsonString(jsonString, options);
|
|
473
|
+
}
|
|
474
|
+
static equals(a, b) {
|
|
475
|
+
return protobuf_1.proto3.util.equals(GroupMediaRequest, a, b);
|
|
476
|
+
}
|
|
477
|
+
}
|
|
478
|
+
exports.GroupMediaRequest = GroupMediaRequest;
|
|
479
|
+
class ChatMediaItemDto extends protobuf_1.Message {
|
|
480
|
+
publicId = "";
|
|
481
|
+
messageId = "";
|
|
482
|
+
kind = "";
|
|
483
|
+
width = 0;
|
|
484
|
+
height = 0;
|
|
485
|
+
createdAt = "";
|
|
486
|
+
userId = "";
|
|
487
|
+
username = "";
|
|
488
|
+
hasThumb = false;
|
|
489
|
+
constructor(data) {
|
|
490
|
+
super();
|
|
491
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
492
|
+
}
|
|
493
|
+
static runtime = protobuf_1.proto3;
|
|
494
|
+
static typeName = "micro.v1.chat.ChatMediaItemDto";
|
|
495
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
496
|
+
{ no: 1, name: "public_id", kind: "scalar", T: 9 },
|
|
497
|
+
{ no: 2, name: "message_id", kind: "scalar", T: 9 },
|
|
498
|
+
{ no: 3, name: "kind", kind: "scalar", T: 9 },
|
|
499
|
+
{ no: 4, name: "width", kind: "scalar", T: 13 },
|
|
500
|
+
{ no: 5, name: "height", kind: "scalar", T: 13 },
|
|
501
|
+
{ no: 6, name: "created_at", kind: "scalar", T: 9 },
|
|
502
|
+
{ no: 7, name: "user_id", kind: "scalar", T: 9 },
|
|
503
|
+
{ no: 8, name: "username", kind: "scalar", T: 9 },
|
|
504
|
+
{ no: 9, name: "has_thumb", kind: "scalar", T: 8 },
|
|
505
|
+
]);
|
|
506
|
+
static fromBinary(bytes, options) {
|
|
507
|
+
return new ChatMediaItemDto().fromBinary(bytes, options);
|
|
508
|
+
}
|
|
509
|
+
static fromJson(jsonValue, options) {
|
|
510
|
+
return new ChatMediaItemDto().fromJson(jsonValue, options);
|
|
511
|
+
}
|
|
512
|
+
static fromJsonString(jsonString, options) {
|
|
513
|
+
return new ChatMediaItemDto().fromJsonString(jsonString, options);
|
|
514
|
+
}
|
|
515
|
+
static equals(a, b) {
|
|
516
|
+
return protobuf_1.proto3.util.equals(ChatMediaItemDto, a, b);
|
|
517
|
+
}
|
|
518
|
+
}
|
|
519
|
+
exports.ChatMediaItemDto = ChatMediaItemDto;
|
|
520
|
+
class GroupMediaResponse extends protobuf_1.Message {
|
|
521
|
+
status;
|
|
522
|
+
data = [];
|
|
523
|
+
nextCursor = "";
|
|
524
|
+
constructor(data) {
|
|
525
|
+
super();
|
|
526
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
527
|
+
}
|
|
528
|
+
static runtime = protobuf_1.proto3;
|
|
529
|
+
static typeName = "micro.v1.chat.GroupMediaResponse";
|
|
530
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
531
|
+
{ no: 1, name: "status", kind: "message", T: general_pb_js_1.ResponseStatus },
|
|
532
|
+
{ no: 2, name: "data", kind: "message", T: ChatMediaItemDto, repeated: true },
|
|
533
|
+
{ no: 3, name: "next_cursor", kind: "scalar", T: 9 },
|
|
534
|
+
]);
|
|
535
|
+
static fromBinary(bytes, options) {
|
|
536
|
+
return new GroupMediaResponse().fromBinary(bytes, options);
|
|
537
|
+
}
|
|
538
|
+
static fromJson(jsonValue, options) {
|
|
539
|
+
return new GroupMediaResponse().fromJson(jsonValue, options);
|
|
540
|
+
}
|
|
541
|
+
static fromJsonString(jsonString, options) {
|
|
542
|
+
return new GroupMediaResponse().fromJsonString(jsonString, options);
|
|
543
|
+
}
|
|
544
|
+
static equals(a, b) {
|
|
545
|
+
return protobuf_1.proto3.util.equals(GroupMediaResponse, a, b);
|
|
546
|
+
}
|
|
547
|
+
}
|
|
548
|
+
exports.GroupMediaResponse = GroupMediaResponse;
|
|
446
549
|
class ChatMediaGetResponse extends protobuf_1.Message {
|
|
447
550
|
status;
|
|
448
551
|
data = new Uint8Array(0);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ByIdRequest, EmptyRequest, EmptyResponse, PaginateRequest } from "../general_pb.js";
|
|
2
|
-
import { BlockedUsersResponse, BlockUserRequest, ChatGroupListResponse, ChatGroupSingleResponse, ChatMediaGetRequest, ChatMediaGetResponse, ChatMediaUploadRequest, ChatMediaUploadResponse, ChatMemberListRequest, ChatMemberListResponse, ChatUserAdminListResponse, DeleteMessageRequest, GroupBySlugRequest, GroupPhotoResponse, GroupPhotoSetRequest, GroupUpsertRequest, JoinGroupResponse, MemberActionRequest, MessageHistoryRequest, MessageHistoryResponse, PendingMembersRequest, PinMessageRequest, PinnedMessagesRequest, PinnedMessagesResponse, ReportListResponse, ReportMessageRequest, ReviewReportRequest, RevokeSanctionRequest, SanctionListResponse, SanctionRequest } from "./chat_messages_pb.js";
|
|
2
|
+
import { BlockedUsersResponse, BlockUserRequest, ChatGroupListResponse, ChatGroupSingleResponse, ChatMediaGetRequest, ChatMediaGetResponse, ChatMediaUploadRequest, ChatMediaUploadResponse, ChatMemberListRequest, ChatMemberListResponse, ChatUserAdminListResponse, DeleteMessageRequest, GroupBySlugRequest, GroupMediaRequest, GroupMediaResponse, GroupPhotoResponse, GroupPhotoSetRequest, GroupUpsertRequest, JoinGroupResponse, MemberActionRequest, MessageHistoryRequest, MessageHistoryResponse, PendingMembersRequest, PinMessageRequest, PinnedMessagesRequest, PinnedMessagesResponse, ReportListResponse, ReportMessageRequest, ReviewReportRequest, RevokeSanctionRequest, SanctionListResponse, SanctionRequest } from "./chat_messages_pb.js";
|
|
3
3
|
import { MethodKind } from "@bufbuild/protobuf";
|
|
4
4
|
export declare const PChatService: {
|
|
5
5
|
readonly typeName: "micro.v1.chat.PChatService";
|
|
@@ -46,6 +46,12 @@ export declare const PChatService: {
|
|
|
46
46
|
readonly O: typeof ChatMemberListResponse;
|
|
47
47
|
readonly kind: MethodKind.ServerStreaming;
|
|
48
48
|
};
|
|
49
|
+
readonly groupMedia: {
|
|
50
|
+
readonly name: "GroupMedia";
|
|
51
|
+
readonly I: typeof GroupMediaRequest;
|
|
52
|
+
readonly O: typeof GroupMediaResponse;
|
|
53
|
+
readonly kind: MethodKind.ServerStreaming;
|
|
54
|
+
};
|
|
49
55
|
readonly getGroupPhoto: {
|
|
50
56
|
readonly name: "GetGroupPhoto";
|
|
51
57
|
readonly I: typeof ByIdRequest;
|
|
@@ -49,6 +49,12 @@ exports.PChatService = {
|
|
|
49
49
|
O: chat_messages_pb_js_1.ChatMemberListResponse,
|
|
50
50
|
kind: protobuf_1.MethodKind.ServerStreaming,
|
|
51
51
|
},
|
|
52
|
+
groupMedia: {
|
|
53
|
+
name: "GroupMedia",
|
|
54
|
+
I: chat_messages_pb_js_1.GroupMediaRequest,
|
|
55
|
+
O: chat_messages_pb_js_1.GroupMediaResponse,
|
|
56
|
+
kind: protobuf_1.MethodKind.ServerStreaming,
|
|
57
|
+
},
|
|
52
58
|
getGroupPhoto: {
|
|
53
59
|
name: "GetGroupPhoto",
|
|
54
60
|
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, PaginateRequest } from "../general_nest";
|
|
4
|
-
import { BlockedUsersResponse, BlockUserRequest, ChatGroupListResponse, ChatGroupSingleResponse, ChatMediaGetRequest, ChatMediaGetResponse, ChatMediaUploadRequest, ChatMediaUploadResponse, ChatMemberListRequest, ChatMemberListResponse, ChatUserAdminListResponse, DeleteMessageRequest, GroupBySlugRequest, GroupPhotoResponse, GroupPhotoSetRequest, GroupUpsertRequest, JoinGroupResponse, MemberActionRequest, MessageHistoryRequest, MessageHistoryResponse, PendingMembersRequest, PinMessageRequest, PinnedMessagesRequest, PinnedMessagesResponse, ReportListResponse, ReportMessageRequest, ReviewReportRequest, RevokeSanctionRequest, SanctionListResponse, SanctionRequest } from "./chat_messages_nest";
|
|
4
|
+
import { BlockedUsersResponse, BlockUserRequest, ChatGroupListResponse, ChatGroupSingleResponse, ChatMediaGetRequest, ChatMediaGetResponse, ChatMediaUploadRequest, ChatMediaUploadResponse, ChatMemberListRequest, ChatMemberListResponse, ChatUserAdminListResponse, DeleteMessageRequest, GroupBySlugRequest, GroupMediaRequest, GroupMediaResponse, GroupPhotoResponse, GroupPhotoSetRequest, GroupUpsertRequest, JoinGroupResponse, MemberActionRequest, MessageHistoryRequest, MessageHistoryResponse, PendingMembersRequest, PinMessageRequest, PinnedMessagesRequest, PinnedMessagesResponse, ReportListResponse, ReportMessageRequest, ReviewReportRequest, RevokeSanctionRequest, SanctionListResponse, SanctionRequest } from "./chat_messages_nest";
|
|
5
5
|
export declare const protobufPackage = "micro.v1.chat";
|
|
6
6
|
export declare const MICRO_V1_CHAT_PACKAGE_NAME = "micro.v1.chat";
|
|
7
7
|
export interface PChatServiceClient {
|
|
@@ -12,6 +12,7 @@ export interface PChatServiceClient {
|
|
|
12
12
|
messageHistory(request: MessageHistoryRequest, metadata?: Metadata): Observable<MessageHistoryResponse>;
|
|
13
13
|
pinnedMessages(request: PinnedMessagesRequest, metadata?: Metadata): Observable<PinnedMessagesResponse>;
|
|
14
14
|
listMembers(request: ChatMemberListRequest, metadata?: Metadata): Observable<ChatMemberListResponse>;
|
|
15
|
+
groupMedia(request: GroupMediaRequest, metadata?: Metadata): Observable<GroupMediaResponse>;
|
|
15
16
|
getGroupPhoto(request: ByIdRequest, metadata?: Metadata): Observable<GroupPhotoResponse>;
|
|
16
17
|
uploadChatMedia(request: ChatMediaUploadRequest, metadata?: Metadata): Observable<ChatMediaUploadResponse>;
|
|
17
18
|
getChatMedia(request: ChatMediaGetRequest, metadata?: Metadata): Observable<ChatMediaGetResponse>;
|
|
@@ -29,6 +30,7 @@ export interface PChatServiceController {
|
|
|
29
30
|
messageHistory(request: MessageHistoryRequest, metadata?: Metadata): Observable<MessageHistoryResponse>;
|
|
30
31
|
pinnedMessages(request: PinnedMessagesRequest, metadata?: Metadata): Observable<PinnedMessagesResponse>;
|
|
31
32
|
listMembers(request: ChatMemberListRequest, metadata?: Metadata): Observable<ChatMemberListResponse>;
|
|
33
|
+
groupMedia(request: GroupMediaRequest, metadata?: Metadata): Observable<GroupMediaResponse>;
|
|
32
34
|
getGroupPhoto(request: ByIdRequest, metadata?: Metadata): Observable<GroupPhotoResponse>;
|
|
33
35
|
uploadChatMedia(request: ChatMediaUploadRequest, metadata?: Metadata): Observable<ChatMediaUploadResponse>;
|
|
34
36
|
getChatMedia(request: ChatMediaGetRequest, metadata?: Metadata): Observable<ChatMediaGetResponse>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
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_pb.js";
|
|
2
2
|
import { MethodKind } from "@bufbuild/protobuf";
|
|
3
3
|
import { ByIdRequest, EmptyRequest, EmptyResponse, PaginateFromRequest, PaginateRequest } from "../general_pb.js";
|
|
4
|
-
import { BetaCodePaginateResponse, BetaCodeSingleResponse, BetaCodeStoreRequest, BetaCodeUpdateRequest, ContactPaginationResponse, ContactRequest, ContactResponse, PreviewResponse, PublicUserPreviewResponse, UpdatePasswordRequest, UserAdminStoreRequest, UserPaginationResponse, UserSingleResponse, UserUpdateRequest } from "./user_messages_pb.js";
|
|
4
|
+
import { BetaCodePaginateResponse, BetaCodeSingleResponse, BetaCodeStoreRequest, BetaCodeUpdateRequest, ContactPaginationResponse, ContactRequest, ContactResponse, PreviewResponse, PublicUserPreviewResponse, UpdatePasswordRequest, UserAdminStoreRequest, UserBadgeSetRequest, UserBadgesResponse, UserPaginationResponse, UserSingleResponse, UserUpdateRequest } from "./user_messages_pb.js";
|
|
5
5
|
import { SiteSettingsRequest, SiteSettingsResponse } from "./site_settings_messages_pb.js";
|
|
6
6
|
import { AvatarPhotoResponse, AvatarPhotoSetRequest, ClaimUsernameRequest, FollowRequest, LikeRequest, ProfileByUsernameRequest, ProfileIdListResponse, ProfileListResponse, ProfilesByIdsRequest, ProfileSingleResponse, ProfileUpdateRequest, SearchProfilesRequest, UsernameAvailableRequest, UsernameAvailableResponse } from "./profile_messages_pb.js";
|
|
7
7
|
import { RoleAdminStoreRequest, RoleAdminUpdateRequest, RolePaginationResponse, RoleSingleResponse } from "./authorization_messages_pb.js";
|
|
@@ -348,6 +348,18 @@ export declare const PUserAdminService: {
|
|
|
348
348
|
readonly O: typeof UserSingleResponse;
|
|
349
349
|
readonly kind: MethodKind.ServerStreaming;
|
|
350
350
|
};
|
|
351
|
+
readonly badges: {
|
|
352
|
+
readonly name: "Badges";
|
|
353
|
+
readonly I: typeof ByIdRequest;
|
|
354
|
+
readonly O: typeof UserBadgesResponse;
|
|
355
|
+
readonly kind: MethodKind.ServerStreaming;
|
|
356
|
+
};
|
|
357
|
+
readonly setBadge: {
|
|
358
|
+
readonly name: "SetBadge";
|
|
359
|
+
readonly I: typeof UserBadgeSetRequest;
|
|
360
|
+
readonly O: typeof UserBadgesResponse;
|
|
361
|
+
readonly kind: MethodKind.ServerStreaming;
|
|
362
|
+
};
|
|
351
363
|
};
|
|
352
364
|
};
|
|
353
365
|
export declare const PRoleAdminService: {
|
|
@@ -351,6 +351,18 @@ exports.PUserAdminService = {
|
|
|
351
351
|
O: user_messages_pb_js_1.UserSingleResponse,
|
|
352
352
|
kind: protobuf_1.MethodKind.ServerStreaming,
|
|
353
353
|
},
|
|
354
|
+
badges: {
|
|
355
|
+
name: "Badges",
|
|
356
|
+
I: general_pb_js_1.ByIdRequest,
|
|
357
|
+
O: user_messages_pb_js_1.UserBadgesResponse,
|
|
358
|
+
kind: protobuf_1.MethodKind.ServerStreaming,
|
|
359
|
+
},
|
|
360
|
+
setBadge: {
|
|
361
|
+
name: "SetBadge",
|
|
362
|
+
I: user_messages_pb_js_1.UserBadgeSetRequest,
|
|
363
|
+
O: user_messages_pb_js_1.UserBadgesResponse,
|
|
364
|
+
kind: protobuf_1.MethodKind.ServerStreaming,
|
|
365
|
+
},
|
|
354
366
|
}
|
|
355
367
|
};
|
|
356
368
|
exports.PRoleAdminService = {
|
|
@@ -5,7 +5,7 @@ import { AppleRequest, GoogleRequest, LoginRequest, LoginResponse, LostPasswordC
|
|
|
5
5
|
import { RoleAdminStoreRequest, RoleAdminUpdateRequest, RolePaginationResponse, RoleSingleResponse } from "./authorization_messages_nest";
|
|
6
6
|
import { AvatarPhotoResponse, AvatarPhotoSetRequest, ClaimUsernameRequest, FollowRequest, LikeRequest, ProfileByUsernameRequest, ProfileIdListResponse, ProfileListResponse, ProfilesByIdsRequest, ProfileSingleResponse, ProfileUpdateRequest, SearchProfilesRequest, UsernameAvailableRequest, UsernameAvailableResponse } from "./profile_messages_nest";
|
|
7
7
|
import { SiteSettingsRequest, SiteSettingsResponse } from "./site_settings_messages_nest";
|
|
8
|
-
import { BetaCodePaginateResponse, BetaCodeSingleResponse, BetaCodeStoreRequest, BetaCodeUpdateRequest, ContactPaginationResponse, ContactRequest, ContactResponse, PreviewResponse, PublicUserPreviewResponse, UpdatePasswordRequest, UserAdminStoreRequest, UserPaginationResponse, UserSingleResponse, UserUpdateRequest } from "./user_messages_nest";
|
|
8
|
+
import { BetaCodePaginateResponse, BetaCodeSingleResponse, BetaCodeStoreRequest, BetaCodeUpdateRequest, ContactPaginationResponse, ContactRequest, ContactResponse, PreviewResponse, PublicUserPreviewResponse, UpdatePasswordRequest, UserAdminStoreRequest, UserBadgeSetRequest, UserBadgesResponse, UserPaginationResponse, UserSingleResponse, UserUpdateRequest } from "./user_messages_nest";
|
|
9
9
|
export declare const protobufPackage = "micro.v1.user";
|
|
10
10
|
export declare const MICRO_V1_USER_PACKAGE_NAME = "micro.v1.user";
|
|
11
11
|
export interface PAuthServiceClient {
|
|
@@ -148,6 +148,8 @@ export interface PUserAdminServiceClient {
|
|
|
148
148
|
paginateFrom(request: PaginateFromRequest, metadata?: Metadata): Observable<UserPaginationResponse>;
|
|
149
149
|
preview(request: ByIdRequest, metadata?: Metadata): Observable<PreviewResponse>;
|
|
150
150
|
updateUser(request: UserUpdateRequest, metadata?: Metadata): Observable<UserSingleResponse>;
|
|
151
|
+
badges(request: ByIdRequest, metadata?: Metadata): Observable<UserBadgesResponse>;
|
|
152
|
+
setBadge(request: UserBadgeSetRequest, metadata?: Metadata): Observable<UserBadgesResponse>;
|
|
151
153
|
}
|
|
152
154
|
export interface PUserAdminServiceController {
|
|
153
155
|
read(request: ByIdRequest, metadata?: Metadata): Observable<UserSingleResponse>;
|
|
@@ -159,6 +161,8 @@ export interface PUserAdminServiceController {
|
|
|
159
161
|
paginateFrom(request: PaginateFromRequest, metadata?: Metadata): Observable<UserPaginationResponse>;
|
|
160
162
|
preview(request: ByIdRequest, metadata?: Metadata): Observable<PreviewResponse>;
|
|
161
163
|
updateUser(request: UserUpdateRequest, metadata?: Metadata): Observable<UserSingleResponse>;
|
|
164
|
+
badges(request: ByIdRequest, metadata?: Metadata): Observable<UserBadgesResponse>;
|
|
165
|
+
setBadge(request: UserBadgeSetRequest, metadata?: Metadata): Observable<UserBadgesResponse>;
|
|
162
166
|
}
|
|
163
167
|
export declare function PUserAdminServiceControllerMethods(): (constructor: Function) => void;
|
|
164
168
|
export declare const P_USER_ADMIN_SERVICE_NAME = "PUserAdminService";
|
|
@@ -176,6 +176,8 @@ function PUserAdminServiceControllerMethods() {
|
|
|
176
176
|
"paginateFrom",
|
|
177
177
|
"preview",
|
|
178
178
|
"updateUser",
|
|
179
|
+
"badges",
|
|
180
|
+
"setBadge",
|
|
179
181
|
];
|
|
180
182
|
for (const method of grpcMethods) {
|
|
181
183
|
const descriptor = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
|
|
@@ -21,6 +21,16 @@ export interface UserDto {
|
|
|
21
21
|
created_at: string;
|
|
22
22
|
updated_at?: string | undefined;
|
|
23
23
|
deleted_at?: string | undefined;
|
|
24
|
+
badges: string[];
|
|
25
|
+
}
|
|
26
|
+
export interface UserBadgeSetRequest {
|
|
27
|
+
user_id: string;
|
|
28
|
+
badge: string;
|
|
29
|
+
grant: boolean;
|
|
30
|
+
}
|
|
31
|
+
export interface UserBadgesResponse {
|
|
32
|
+
status: ResponseStatus | undefined;
|
|
33
|
+
badges: string[];
|
|
24
34
|
}
|
|
25
35
|
export interface UserProfileDto {
|
|
26
36
|
id: string;
|
|
@@ -21,6 +21,7 @@ export declare class UserDto extends Message<UserDto> {
|
|
|
21
21
|
createdAt: string;
|
|
22
22
|
updatedAt?: string;
|
|
23
23
|
deletedAt?: string;
|
|
24
|
+
badges: string[];
|
|
24
25
|
constructor(data?: PartialMessage<UserDto>);
|
|
25
26
|
static readonly runtime: typeof proto3;
|
|
26
27
|
static readonly typeName = "micro.v1.user.UserDto";
|
|
@@ -30,6 +31,31 @@ export declare class UserDto extends Message<UserDto> {
|
|
|
30
31
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UserDto;
|
|
31
32
|
static equals(a: UserDto | PlainMessage<UserDto> | undefined, b: UserDto | PlainMessage<UserDto> | undefined): boolean;
|
|
32
33
|
}
|
|
34
|
+
export declare class UserBadgeSetRequest extends Message<UserBadgeSetRequest> {
|
|
35
|
+
userId: string;
|
|
36
|
+
badge: string;
|
|
37
|
+
grant: boolean;
|
|
38
|
+
constructor(data?: PartialMessage<UserBadgeSetRequest>);
|
|
39
|
+
static readonly runtime: typeof proto3;
|
|
40
|
+
static readonly typeName = "micro.v1.user.UserBadgeSetRequest";
|
|
41
|
+
static readonly fields: FieldList;
|
|
42
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UserBadgeSetRequest;
|
|
43
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UserBadgeSetRequest;
|
|
44
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UserBadgeSetRequest;
|
|
45
|
+
static equals(a: UserBadgeSetRequest | PlainMessage<UserBadgeSetRequest> | undefined, b: UserBadgeSetRequest | PlainMessage<UserBadgeSetRequest> | undefined): boolean;
|
|
46
|
+
}
|
|
47
|
+
export declare class UserBadgesResponse extends Message<UserBadgesResponse> {
|
|
48
|
+
status?: ResponseStatus;
|
|
49
|
+
badges: string[];
|
|
50
|
+
constructor(data?: PartialMessage<UserBadgesResponse>);
|
|
51
|
+
static readonly runtime: typeof proto3;
|
|
52
|
+
static readonly typeName = "micro.v1.user.UserBadgesResponse";
|
|
53
|
+
static readonly fields: FieldList;
|
|
54
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UserBadgesResponse;
|
|
55
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UserBadgesResponse;
|
|
56
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UserBadgesResponse;
|
|
57
|
+
static equals(a: UserBadgesResponse | PlainMessage<UserBadgesResponse> | undefined, b: UserBadgesResponse | PlainMessage<UserBadgesResponse> | undefined): boolean;
|
|
58
|
+
}
|
|
33
59
|
export declare class UserProfileDto extends Message<UserProfileDto> {
|
|
34
60
|
id: string;
|
|
35
61
|
userId: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PublicUserPreviewResponse = exports.PublicUserPreviewDto = exports.removeUserDataRequest = exports.ContactDto = exports.ContactResponse = exports.ContactRequest = exports.BetaCodePaginateResponse = exports.BetaCodeUpdateRequest = exports.BetaCodeSingleResponse = exports.BetaCodeDto = exports.BetaCodeStoreRequest = exports.UserProfileAdminStoreRequest = exports.UserAdminStoreRequest = exports.PreviewResponse = exports.PreviewDto = exports.ContactPaginationResponse = exports.UserPaginationResponse = exports.UserSingleResponse = exports.UserUpdateRequest = exports.UpdatePasswordRequest = exports.UserStoreRequest = exports.UserProfileDto = exports.UserDto = exports.TfaSelectionEnum = void 0;
|
|
3
|
+
exports.PublicUserPreviewResponse = exports.PublicUserPreviewDto = exports.removeUserDataRequest = exports.ContactDto = exports.ContactResponse = exports.ContactRequest = exports.BetaCodePaginateResponse = exports.BetaCodeUpdateRequest = exports.BetaCodeSingleResponse = exports.BetaCodeDto = exports.BetaCodeStoreRequest = exports.UserProfileAdminStoreRequest = exports.UserAdminStoreRequest = exports.PreviewResponse = exports.PreviewDto = exports.ContactPaginationResponse = exports.UserPaginationResponse = exports.UserSingleResponse = exports.UserUpdateRequest = exports.UpdatePasswordRequest = exports.UserStoreRequest = exports.UserProfileDto = exports.UserBadgesResponse = exports.UserBadgeSetRequest = exports.UserDto = exports.TfaSelectionEnum = void 0;
|
|
4
4
|
const protobuf_1 = require("@bufbuild/protobuf");
|
|
5
5
|
const general_pb_js_1 = require("../general_pb.js");
|
|
6
6
|
const authorization_messages_pb_js_1 = require("./authorization_messages_pb.js");
|
|
@@ -29,6 +29,7 @@ class UserDto extends protobuf_1.Message {
|
|
|
29
29
|
createdAt = "";
|
|
30
30
|
updatedAt;
|
|
31
31
|
deletedAt;
|
|
32
|
+
badges = [];
|
|
32
33
|
constructor(data) {
|
|
33
34
|
super();
|
|
34
35
|
protobuf_1.proto3.util.initPartial(data, this);
|
|
@@ -49,6 +50,7 @@ class UserDto extends protobuf_1.Message {
|
|
|
49
50
|
{ no: 11, name: "created_at", kind: "scalar", T: 9 },
|
|
50
51
|
{ no: 12, name: "updated_at", kind: "scalar", T: 9, opt: true },
|
|
51
52
|
{ no: 13, name: "deleted_at", kind: "scalar", T: 9, opt: true },
|
|
53
|
+
{ no: 14, name: "badges", kind: "scalar", T: 9, repeated: true },
|
|
52
54
|
]);
|
|
53
55
|
static fromBinary(bytes, options) {
|
|
54
56
|
return new UserDto().fromBinary(bytes, options);
|
|
@@ -64,6 +66,62 @@ class UserDto extends protobuf_1.Message {
|
|
|
64
66
|
}
|
|
65
67
|
}
|
|
66
68
|
exports.UserDto = UserDto;
|
|
69
|
+
class UserBadgeSetRequest extends protobuf_1.Message {
|
|
70
|
+
userId = "";
|
|
71
|
+
badge = "";
|
|
72
|
+
grant = false;
|
|
73
|
+
constructor(data) {
|
|
74
|
+
super();
|
|
75
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
76
|
+
}
|
|
77
|
+
static runtime = protobuf_1.proto3;
|
|
78
|
+
static typeName = "micro.v1.user.UserBadgeSetRequest";
|
|
79
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
80
|
+
{ no: 1, name: "user_id", kind: "scalar", T: 9 },
|
|
81
|
+
{ no: 2, name: "badge", kind: "scalar", T: 9 },
|
|
82
|
+
{ no: 3, name: "grant", kind: "scalar", T: 8 },
|
|
83
|
+
]);
|
|
84
|
+
static fromBinary(bytes, options) {
|
|
85
|
+
return new UserBadgeSetRequest().fromBinary(bytes, options);
|
|
86
|
+
}
|
|
87
|
+
static fromJson(jsonValue, options) {
|
|
88
|
+
return new UserBadgeSetRequest().fromJson(jsonValue, options);
|
|
89
|
+
}
|
|
90
|
+
static fromJsonString(jsonString, options) {
|
|
91
|
+
return new UserBadgeSetRequest().fromJsonString(jsonString, options);
|
|
92
|
+
}
|
|
93
|
+
static equals(a, b) {
|
|
94
|
+
return protobuf_1.proto3.util.equals(UserBadgeSetRequest, a, b);
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
exports.UserBadgeSetRequest = UserBadgeSetRequest;
|
|
98
|
+
class UserBadgesResponse extends protobuf_1.Message {
|
|
99
|
+
status;
|
|
100
|
+
badges = [];
|
|
101
|
+
constructor(data) {
|
|
102
|
+
super();
|
|
103
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
104
|
+
}
|
|
105
|
+
static runtime = protobuf_1.proto3;
|
|
106
|
+
static typeName = "micro.v1.user.UserBadgesResponse";
|
|
107
|
+
static fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
108
|
+
{ no: 1, name: "status", kind: "message", T: general_pb_js_1.ResponseStatus },
|
|
109
|
+
{ no: 2, name: "badges", kind: "scalar", T: 9, repeated: true },
|
|
110
|
+
]);
|
|
111
|
+
static fromBinary(bytes, options) {
|
|
112
|
+
return new UserBadgesResponse().fromBinary(bytes, options);
|
|
113
|
+
}
|
|
114
|
+
static fromJson(jsonValue, options) {
|
|
115
|
+
return new UserBadgesResponse().fromJson(jsonValue, options);
|
|
116
|
+
}
|
|
117
|
+
static fromJsonString(jsonString, options) {
|
|
118
|
+
return new UserBadgesResponse().fromJsonString(jsonString, options);
|
|
119
|
+
}
|
|
120
|
+
static equals(a, b) {
|
|
121
|
+
return protobuf_1.proto3.util.equals(UserBadgesResponse, a, b);
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
exports.UserBadgesResponse = UserBadgesResponse;
|
|
67
125
|
class UserProfileDto extends protobuf_1.Message {
|
|
68
126
|
id = "";
|
|
69
127
|
userId = "";
|
package/package.json
CHANGED
|
@@ -162,6 +162,42 @@ message ChatMediaUploadResponse {
|
|
|
162
162
|
|
|
163
163
|
message ChatMediaGetRequest {
|
|
164
164
|
string public_id = 1;
|
|
165
|
+
// Serve the small grid thumbnail instead of the full image when one is
|
|
166
|
+
// stored (images only; falls back to the full bytes otherwise).
|
|
167
|
+
bool thumb = 2;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
// Group info page: photos / videos shared in the room, newest first.
|
|
171
|
+
message GroupMediaRequest {
|
|
172
|
+
string group_slug = 1;
|
|
173
|
+
// image | video
|
|
174
|
+
string kind = 2;
|
|
175
|
+
// Media row id of the last item of the previous page; empty = first page.
|
|
176
|
+
string cursor = 3;
|
|
177
|
+
// Page size, capped by the micro (default 30).
|
|
178
|
+
uint32 limit = 4;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
message ChatMediaItemDto {
|
|
182
|
+
string public_id = 1;
|
|
183
|
+
string message_id = 2;
|
|
184
|
+
string kind = 3;
|
|
185
|
+
uint32 width = 4;
|
|
186
|
+
uint32 height = 5;
|
|
187
|
+
string created_at = 6;
|
|
188
|
+
// '' for an anonymous staff post (shown as the group).
|
|
189
|
+
string user_id = 7;
|
|
190
|
+
string username = 8;
|
|
191
|
+
// A grid thumbnail exists (uploads from before the column fall back to
|
|
192
|
+
// the full image).
|
|
193
|
+
bool has_thumb = 9;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
message GroupMediaResponse {
|
|
197
|
+
ResponseStatus status = 1;
|
|
198
|
+
repeated ChatMediaItemDto data = 2;
|
|
199
|
+
// Cursor for the next (older) page; empty = no more.
|
|
200
|
+
string next_cursor = 3;
|
|
165
201
|
}
|
|
166
202
|
|
|
167
203
|
message ChatMediaGetResponse {
|
|
@@ -14,6 +14,7 @@ service PChatService {
|
|
|
14
14
|
rpc MessageHistory(MessageHistoryRequest) returns(stream MessageHistoryResponse) {}
|
|
15
15
|
rpc PinnedMessages(PinnedMessagesRequest) returns(stream PinnedMessagesResponse) {}
|
|
16
16
|
rpc ListMembers(ChatMemberListRequest) returns(stream ChatMemberListResponse) {}
|
|
17
|
+
rpc GroupMedia(GroupMediaRequest) returns(stream GroupMediaResponse) {}
|
|
17
18
|
rpc GetGroupPhoto(ByIdRequest) returns(stream GroupPhotoResponse) {}
|
|
18
19
|
// Authed upload (staging row); the send then references media_id.
|
|
19
20
|
rpc UploadChatMedia(ChatMediaUploadRequest) returns(stream ChatMediaUploadResponse) {}
|
|
@@ -90,6 +90,8 @@ service PUserAdminService {
|
|
|
90
90
|
rpc PaginateFrom(PaginateFromRequest) returns(stream UserPaginationResponse) {}
|
|
91
91
|
rpc Preview(ByIdRequest) returns(stream PreviewResponse) {}
|
|
92
92
|
rpc UpdateUser(UserUpdateRequest) returns(stream UserSingleResponse) {}
|
|
93
|
+
rpc Badges(ByIdRequest) returns(stream UserBadgesResponse) {}
|
|
94
|
+
rpc SetBadge(UserBadgeSetRequest) returns(stream UserBadgesResponse) {}
|
|
93
95
|
}
|
|
94
96
|
|
|
95
97
|
service PRoleAdminService {
|
|
@@ -29,6 +29,22 @@ message UserDto {
|
|
|
29
29
|
string created_at = 11;
|
|
30
30
|
optional string updated_at = 12;
|
|
31
31
|
optional string deleted_at = 13;
|
|
32
|
+
|
|
33
|
+
// Active display badges (utils/badges catalogue).
|
|
34
|
+
repeated string badges = 14;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
// Admin: grant (grant=true) or revoke a display badge. Only manually
|
|
38
|
+
// grantable badges are accepted (gold today; premium comes from plans).
|
|
39
|
+
message UserBadgeSetRequest {
|
|
40
|
+
string user_id = 1;
|
|
41
|
+
string badge = 2;
|
|
42
|
+
bool grant = 3;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
message UserBadgesResponse {
|
|
46
|
+
ResponseStatus status = 1;
|
|
47
|
+
repeated string badges = 2;
|
|
32
48
|
}
|
|
33
49
|
|
|
34
50
|
enum TfaSelectionEnum { nothing = 0; sms = 1; authenticator = 2; }
|