jr-common-micro 1.1.72 → 1.1.74
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 +1 -0
- package/dist/proto/micro/v1/chat/chat_messages_pb.d.ts +1 -0
- package/dist/proto/micro/v1/chat/chat_messages_pb.js +2 -0
- package/dist/proto/micro/v1/chat/services_connect.d.ts +6 -0
- package/dist/proto/micro/v1/chat/services_connect.js +6 -0
- package/dist/proto/micro/v1/chat/services_nest.d.ts +2 -0
- package/dist/proto/micro/v1/chat/services_nest.js +1 -0
- package/dist/proto/micro/v1/notification/notification_messages_nest.d.ts +1 -0
- package/dist/proto/micro/v1/notification/notification_messages_pb.d.ts +1 -0
- package/dist/proto/micro/v1/notification/notification_messages_pb.js +2 -0
- package/package.json +1 -1
- package/proto/micro/v1/chat/chat_messages.proto +5 -0
- package/proto/micro/v1/chat/services.proto +3 -0
- package/proto/micro/v1/notification/notification_messages.proto +3 -0
|
@@ -105,6 +105,7 @@ export declare class ChatMessageDto extends Message<ChatMessageDto> {
|
|
|
105
105
|
forwardedFromGroup: string;
|
|
106
106
|
tickerCards: ChatTickerCardDto[];
|
|
107
107
|
isAnonymous: boolean;
|
|
108
|
+
isOwn: boolean;
|
|
108
109
|
constructor(data?: PartialMessage<ChatMessageDto>);
|
|
109
110
|
static readonly runtime: typeof proto3;
|
|
110
111
|
static readonly typeName = "micro.v1.chat.ChatMessageDto";
|
|
@@ -202,6 +202,7 @@ class ChatMessageDto extends protobuf_1.Message {
|
|
|
202
202
|
forwardedFromGroup = "";
|
|
203
203
|
tickerCards = [];
|
|
204
204
|
isAnonymous = false;
|
|
205
|
+
isOwn = false;
|
|
205
206
|
constructor(data) {
|
|
206
207
|
super();
|
|
207
208
|
protobuf_1.proto3.util.initPartial(data, this);
|
|
@@ -232,6 +233,7 @@ class ChatMessageDto extends protobuf_1.Message {
|
|
|
232
233
|
{ no: 21, name: "forwarded_from_group", kind: "scalar", T: 9 },
|
|
233
234
|
{ no: 22, name: "ticker_cards", kind: "message", T: ChatTickerCardDto, repeated: true },
|
|
234
235
|
{ no: 23, name: "is_anonymous", kind: "scalar", T: 8 },
|
|
236
|
+
{ no: 24, name: "is_own", kind: "scalar", T: 8 },
|
|
235
237
|
]);
|
|
236
238
|
static fromBinary(bytes, options) {
|
|
237
239
|
return new ChatMessageDto().fromBinary(bytes, options);
|
|
@@ -88,6 +88,12 @@ export declare const PChatService: {
|
|
|
88
88
|
readonly O: typeof BlockedUsersResponse;
|
|
89
89
|
readonly kind: MethodKind.ServerStreaming;
|
|
90
90
|
};
|
|
91
|
+
readonly removeUserData: {
|
|
92
|
+
readonly name: "RemoveUserData";
|
|
93
|
+
readonly I: typeof ByIdRequest;
|
|
94
|
+
readonly O: typeof EmptyResponse;
|
|
95
|
+
readonly kind: MethodKind.ServerStreaming;
|
|
96
|
+
};
|
|
91
97
|
};
|
|
92
98
|
};
|
|
93
99
|
export declare const PChatModerationService: {
|
|
@@ -91,6 +91,12 @@ exports.PChatService = {
|
|
|
91
91
|
O: chat_messages_pb_js_1.BlockedUsersResponse,
|
|
92
92
|
kind: protobuf_1.MethodKind.ServerStreaming,
|
|
93
93
|
},
|
|
94
|
+
removeUserData: {
|
|
95
|
+
name: "RemoveUserData",
|
|
96
|
+
I: general_pb_js_1.ByIdRequest,
|
|
97
|
+
O: general_pb_js_1.EmptyResponse,
|
|
98
|
+
kind: protobuf_1.MethodKind.ServerStreaming,
|
|
99
|
+
},
|
|
94
100
|
}
|
|
95
101
|
};
|
|
96
102
|
exports.PChatModerationService = {
|
|
@@ -19,6 +19,7 @@ export interface PChatServiceClient {
|
|
|
19
19
|
blockUser(request: BlockUserRequest, metadata?: Metadata): Observable<EmptyResponse>;
|
|
20
20
|
unblockUser(request: BlockUserRequest, metadata?: Metadata): Observable<EmptyResponse>;
|
|
21
21
|
blockedUsers(request: EmptyRequest, metadata?: Metadata): Observable<BlockedUsersResponse>;
|
|
22
|
+
removeUserData(request: ByIdRequest, metadata?: Metadata): Observable<EmptyResponse>;
|
|
22
23
|
}
|
|
23
24
|
export interface PChatServiceController {
|
|
24
25
|
listGroups(request: EmptyRequest, metadata?: Metadata): Observable<ChatGroupListResponse>;
|
|
@@ -35,6 +36,7 @@ export interface PChatServiceController {
|
|
|
35
36
|
blockUser(request: BlockUserRequest, metadata?: Metadata): Observable<EmptyResponse>;
|
|
36
37
|
unblockUser(request: BlockUserRequest, metadata?: Metadata): Observable<EmptyResponse>;
|
|
37
38
|
blockedUsers(request: EmptyRequest, metadata?: Metadata): Observable<BlockedUsersResponse>;
|
|
39
|
+
removeUserData(request: ByIdRequest, metadata?: Metadata): Observable<EmptyResponse>;
|
|
38
40
|
}
|
|
39
41
|
export declare function PChatServiceControllerMethods(): (constructor: Function) => void;
|
|
40
42
|
export declare const P_CHAT_SERVICE_NAME = "PChatService";
|
|
@@ -243,6 +243,7 @@ export declare class SendChatMentionRequest extends Message<SendChatMentionReque
|
|
|
243
243
|
groupSlug: string;
|
|
244
244
|
preview: string;
|
|
245
245
|
kind: string;
|
|
246
|
+
senderIsGroup: boolean;
|
|
246
247
|
constructor(data?: PartialMessage<SendChatMentionRequest>);
|
|
247
248
|
static readonly runtime: typeof proto3;
|
|
248
249
|
static readonly typeName = "micro.v1.notification.SendChatMentionRequest";
|
|
@@ -528,6 +528,7 @@ class SendChatMentionRequest extends protobuf_1.Message {
|
|
|
528
528
|
groupSlug = "";
|
|
529
529
|
preview = "";
|
|
530
530
|
kind = "";
|
|
531
|
+
senderIsGroup = false;
|
|
531
532
|
constructor(data) {
|
|
532
533
|
super();
|
|
533
534
|
protobuf_1.proto3.util.initPartial(data, this);
|
|
@@ -541,6 +542,7 @@ class SendChatMentionRequest extends protobuf_1.Message {
|
|
|
541
542
|
{ no: 4, name: "group_slug", kind: "scalar", T: 9 },
|
|
542
543
|
{ no: 5, name: "preview", kind: "scalar", T: 9 },
|
|
543
544
|
{ no: 6, name: "kind", kind: "scalar", T: 9 },
|
|
545
|
+
{ no: 7, name: "sender_is_group", kind: "scalar", T: 8 },
|
|
544
546
|
]);
|
|
545
547
|
static fromBinary(bytes, options) {
|
|
546
548
|
return new SendChatMentionRequest().fromBinary(bytes, options);
|
package/package.json
CHANGED
|
@@ -101,6 +101,11 @@ message ChatMessageDto {
|
|
|
101
101
|
// empty and username carries the GROUP's name. Clients show the group's
|
|
102
102
|
// photo and never link to a profile.
|
|
103
103
|
bool is_anonymous = 23;
|
|
104
|
+
// The viewer authored this anonymous message. Set only in responses
|
|
105
|
+
// addressed to them (history, pins, search, the send ack) — never in a
|
|
106
|
+
// room broadcast — so they keep edit/delete/readers on it without anyone
|
|
107
|
+
// else learning who sent it.
|
|
108
|
+
bool is_own = 24;
|
|
104
109
|
}
|
|
105
110
|
|
|
106
111
|
message ChatTickerCardDto {
|
|
@@ -24,6 +24,9 @@ service PChatService {
|
|
|
24
24
|
rpc BlockUser(BlockUserRequest) returns(stream EmptyResponse) {}
|
|
25
25
|
rpc UnblockUser(BlockUserRequest) returns(stream EmptyResponse) {}
|
|
26
26
|
rpc BlockedUsers(EmptyRequest) returns(stream BlockedUsersResponse) {}
|
|
27
|
+
// Account deletion (called by user-micro's fan-out): erases everything
|
|
28
|
+
// the account wrote or did in chat. id = user id.
|
|
29
|
+
rpc RemoveUserData(ByIdRequest) returns(stream EmptyResponse) {}
|
|
27
30
|
}
|
|
28
31
|
|
|
29
32
|
service PChatModerationService {
|
|
@@ -142,6 +142,9 @@ message SendChatMentionRequest {
|
|
|
142
142
|
string preview = 5;
|
|
143
143
|
// "mention" (default) or "message" (all-messages subscription push).
|
|
144
144
|
string kind = 6;
|
|
145
|
+
// sender_username is the GROUP's name (anonymous staff post): the push
|
|
146
|
+
// text must not put an "@" in front of it.
|
|
147
|
+
bool sender_is_group = 7;
|
|
145
148
|
}
|
|
146
149
|
|
|
147
150
|
message NotificationPaginationDto {
|