@verychat/channel-protos 1.0.23 → 1.0.25

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.
@@ -13,22 +13,22 @@ message GetMyChannelsResponse {
13
13
  repeated Channel channels = 1;
14
14
  }
15
15
 
16
- message GetMySubscribedChannelResponse {
17
- repeated UserChannel userChannels = 1;
18
- }
19
-
20
- message GetRecommendChannelsRequest {
21
- int32 userId = 1;
22
- }
23
-
24
- message GetRecommendChannelsResponse {
25
- repeated RecommendChannel channels = 1;
26
- }
27
-
28
- message CreateChannelRequest {
29
- int32 userId = 1;
30
- CreateChannelDto dto = 2;
31
- }
16
+ message GetMySubscribedChannelResponse {
17
+ repeated UserChannel userChannels = 1;
18
+ }
19
+
20
+ message GetRecommendChannelsRequest {
21
+ int32 userId = 1;
22
+ }
23
+
24
+ message GetRecommendChannelsResponse {
25
+ repeated RecommendChannel channels = 1;
26
+ }
27
+
28
+ message CreateChannelRequest {
29
+ int32 userId = 1;
30
+ CreateChannelDto dto = 2;
31
+ }
32
32
 
33
33
  message CreateChannelResponse {
34
34
  string channelId = 1;
@@ -161,24 +161,37 @@ message GetMessagesRequest {
161
161
  int32 take = 4;
162
162
  }
163
163
 
164
- message GetMessagesResponse {
165
- repeated ChannelMessage messages = 1;
166
- }
167
-
168
- message GetNewChannelMessageRequest {
169
- int32 userId = 1;
170
- optional int32 page = 2;
171
- }
172
-
173
- message GetNewChannelMessageResponse {
174
- repeated NewChannelMessage messages = 1;
175
- }
176
-
177
- message GetHistorysRequest {
178
- string channelId = 1;
179
- int64 lastStreamId = 2;
180
- int64 streamId = 3;
181
- }
164
+ message GetMessagesResponse {
165
+ repeated ChannelMessage messages = 1;
166
+ }
167
+
168
+ message GetNewChannelMessageRequest {
169
+ int32 userId = 1;
170
+ optional int32 page = 2;
171
+ }
172
+
173
+ message GetNewChannelMessageResponse {
174
+ repeated NewChannelMessage messages = 1;
175
+ }
176
+
177
+ message GetMessageSpecifyRequest {
178
+ repeated ChannelSeqDto array = 1;
179
+ }
180
+
181
+ message GetMessageSpecifyResponse {
182
+ repeated NewChannelMessage messages = 1;
183
+ }
184
+
185
+ message UpdateLikeCountRequest {
186
+ map<string, int32> likeCounts = 1;
187
+ }
188
+
189
+
190
+ message GetHistorysRequest {
191
+ string channelId = 1;
192
+ int64 lastStreamId = 2;
193
+ int64 streamId = 3;
194
+ }
182
195
 
183
196
  message GetHistorysResponse {
184
197
  repeated History historys = 1;
@@ -218,11 +231,11 @@ service ChannelService {
218
231
  rpc CreateChannel (CreateChannelRequest) returns (CreateChannelResponse);
219
232
  rpc EditChannel (EditChannelRequest) returns (EditChannelResponse);
220
233
 
221
- rpc GetMyChannels (GetChannelRequest) returns (GetMyChannelsResponse);
222
- rpc GetMySubscribeChannels (GetChannelRequest) returns (GetMySubscribedChannelResponse);
223
- rpc GetRecommendChannels (GetRecommendChannelsRequest) returns (GetRecommendChannelsResponse);
224
-
225
- rpc GetChannelInfo (GetChannelInfoRequest) returns (GetChannelInfoResponse);
234
+ rpc GetMyChannels (GetChannelRequest) returns (GetMyChannelsResponse);
235
+ rpc GetMySubscribeChannels (GetChannelRequest) returns (GetMySubscribedChannelResponse);
236
+ rpc GetRecommendChannels (GetRecommendChannelsRequest) returns (GetRecommendChannelsResponse);
237
+
238
+ rpc GetChannelInfo (GetChannelInfoRequest) returns (GetChannelInfoResponse);
226
239
 
227
240
  rpc ReadMessage (ReadMessageRequest) returns (Empty);
228
241
  rpc GetViewCount (GetMessageViewCountRequest) returns (GetMessageViewCountResponse);
@@ -243,10 +256,13 @@ service ChannelService {
243
256
  rpc SetOperator (SetOperatorRequest) returns (Empty);
244
257
  rpc RemoveOperator (RemoveOperatorRequest) returns (RemoveOperatorResponse);
245
258
 
246
- rpc GetMessage (GetMessageRequest) returns (GetMessageResponse);
247
- rpc GetMessages (GetMessagesRequest) returns (GetMessagesResponse);
248
- rpc GetNewChannelMessage (GetNewChannelMessageRequest) returns (GetNewChannelMessageResponse);
249
- rpc GetHistorys (GetHistorysRequest) returns (GetHistorysResponse);
259
+ rpc GetMessage (GetMessageRequest) returns (GetMessageResponse);
260
+ rpc GetMessages (GetMessagesRequest) returns (GetMessagesResponse);
261
+ rpc GetNewChannelMessage (GetNewChannelMessageRequest) returns (GetNewChannelMessageResponse);
262
+ rpc GetMessagesSpecifyInfo (GetMessageSpecifyRequest) returns (GetMessageSpecifyResponse);
263
+ rpc GetHistorys (GetHistorysRequest) returns (GetHistorysResponse);
264
+
265
+ rpc UpdateLikeCount (UpdateLikeCountRequest) returns (Empty);
250
266
 
251
267
  rpc HoldMessage (HoldMessageRequest) returns (Empty);
252
268
  rpc GetMembers (GetMembersRequest) returns (GetMembersResponse);
@@ -261,4 +277,4 @@ service ChannelService {
261
277
  rpc ChannelChatGetMessage (GetMessageRequest) returns (GetMessageResponse);
262
278
  rpc ChannelChatGetMessages (GetMessagesRequest) returns (GetMessagesResponse);
263
279
  rpc ChannelChatGetHistorys (GetHistorysRequest) returns (GetHistorysResponse);
264
- }
280
+ }
@@ -86,33 +86,41 @@ message ReactionMessageDto {
86
86
  bool add = 5;
87
87
  }
88
88
 
89
- message ChannelMessage {
90
- int32 userId = 1;
91
- MessageType type = 2;
92
- string createdAt = 3;
93
- string deletedAt = 4;
94
- int32 seq = 5;
95
- string message = 6;
96
- repeated int32 mentions = 7;
97
- int32 reply = 8;
98
- repeated Reaction reactions = 9;
99
- int64 streamId = 10;
100
- }
101
-
102
- message NewChannelMessage {
103
- string channelId = 1;
104
- int32 seq = 2;
105
- int32 userId = 3;
106
- string message = 4;
107
- MessageType type = 5;
108
- string createdAt = 6;
109
- int32 likeCount = 7;
110
- }
111
-
112
- message Reaction {
113
- int32 userId = 1;
114
- string reactionCode = 2;
115
- }
89
+ message ChannelMessage {
90
+ int32 userId = 1;
91
+ MessageType type = 2;
92
+ string createdAt = 3;
93
+ string deletedAt = 4;
94
+ int32 seq = 5;
95
+ string message = 6;
96
+ repeated int32 mentions = 7;
97
+ int32 reply = 8;
98
+ repeated Reaction reactions = 9;
99
+ int64 streamId = 10;
100
+ }
101
+
102
+ message NewChannelMessage {
103
+ string channelId = 1;
104
+ int32 seq = 2;
105
+ int32 userId = 3;
106
+ string message = 4;
107
+ MessageType type = 5;
108
+ string createdAt = 6;
109
+ int32 likeCount = 7;
110
+ string channelTitle = 8;
111
+ string channelThumbnailUrl = 9;
112
+ optional string deletedAt = 10;
113
+ }
114
+
115
+ message Reaction {
116
+ int32 userId = 1;
117
+ string reactionCode = 2;
118
+ }
119
+
120
+ message ChannelSeqDto {
121
+ string channelId = 1;
122
+ int32 seq = 2;
123
+ }
116
124
 
117
125
  message History {
118
126
  int64 streamId = 1;
@@ -172,4 +180,4 @@ enum HistoryOperation {
172
180
  REACTION_REMOVE = 1;
173
181
  MESSAGE_EDIT = 2;
174
182
  MESSAGE_DELETE = 3;
175
- }
183
+ }
package/dist/index.d.ts CHANGED
@@ -34,6 +34,10 @@ export { GetMessagesRequest } from './proto-libs/channel-services';
34
34
  export { GetMessagesResponse } from './proto-libs/channel-services';
35
35
  export { GetNewChannelMessageRequest } from './proto-libs/channel-services';
36
36
  export { GetNewChannelMessageResponse } from './proto-libs/channel-services';
37
+ export { GetMessageSpecifyRequest } from './proto-libs/channel-services';
38
+ export { GetMessageSpecifyResponse } from './proto-libs/channel-services';
39
+ export { UpdateLikeCountRequest } from './proto-libs/channel-services';
40
+ export { UpdateLikeCountRequest_LikeCountsEntry } from './proto-libs/channel-services';
37
41
  export { GetHistorysRequest } from './proto-libs/channel-services';
38
42
  export { GetHistorysResponse } from './proto-libs/channel-services';
39
43
  export { HoldMessageRequest } from './proto-libs/channel-services';
@@ -60,6 +64,7 @@ export { ReactionMessageDto } from './proto-libs/channel-types';
60
64
  export { ChannelMessage } from './proto-libs/channel-types';
61
65
  export { NewChannelMessage } from './proto-libs/channel-types';
62
66
  export { Reaction } from './proto-libs/channel-types';
67
+ export { ChannelSeqDto } from './proto-libs/channel-types';
63
68
  export { History } from './proto-libs/channel-types';
64
69
  export { Operator } from './proto-libs/channel-types';
65
70
  export { ChannelChatInfo } from './proto-libs/channel-types';
@@ -1,6 +1,6 @@
1
1
  import { Metadata } from "@grpc/grpc-js";
2
2
  import { Observable } from "rxjs";
3
- import { Channel, ChannelChatInfo, ChannelInfo, ChannelMessage, CreateChannelDto, CreateMessageDto, EditChannelDto, History, NewChannelMessage, Operator, ReactionMessageDto, RecommendChannel, SearchChannelResult, UserChannel } from "./channel-types";
3
+ import { Channel, ChannelChatInfo, ChannelInfo, ChannelMessage, ChannelSeqDto, CreateChannelDto, CreateMessageDto, EditChannelDto, History, NewChannelMessage, Operator, ReactionMessageDto, RecommendChannel, SearchChannelResult, UserChannel } from "./channel-types";
4
4
  export declare const protobufPackage = "channel";
5
5
  export interface Empty {
6
6
  }
@@ -145,6 +145,21 @@ export interface GetNewChannelMessageRequest {
145
145
  export interface GetNewChannelMessageResponse {
146
146
  messages: NewChannelMessage[];
147
147
  }
148
+ export interface GetMessageSpecifyRequest {
149
+ array: ChannelSeqDto[];
150
+ }
151
+ export interface GetMessageSpecifyResponse {
152
+ messages: NewChannelMessage[];
153
+ }
154
+ export interface UpdateLikeCountRequest {
155
+ likeCounts: {
156
+ [key: string]: number;
157
+ };
158
+ }
159
+ export interface UpdateLikeCountRequest_LikeCountsEntry {
160
+ key: string;
161
+ value: number;
162
+ }
148
163
  export interface GetHistorysRequest {
149
164
  channelId: string;
150
165
  lastStreamId: number;
@@ -201,7 +216,9 @@ export interface ChannelServiceClient {
201
216
  getMessage(request: GetMessageRequest, metadata?: Metadata): Observable<GetMessageResponse>;
202
217
  getMessages(request: GetMessagesRequest, metadata?: Metadata): Observable<GetMessagesResponse>;
203
218
  getNewChannelMessage(request: GetNewChannelMessageRequest, metadata?: Metadata): Observable<GetNewChannelMessageResponse>;
219
+ getMessagesSpecifyInfo(request: GetMessageSpecifyRequest, metadata?: Metadata): Observable<GetMessageSpecifyResponse>;
204
220
  getHistorys(request: GetHistorysRequest, metadata?: Metadata): Observable<GetHistorysResponse>;
221
+ updateLikeCount(request: UpdateLikeCountRequest, metadata?: Metadata): Observable<Empty>;
205
222
  holdMessage(request: HoldMessageRequest, metadata?: Metadata): Observable<Empty>;
206
223
  getMembers(request: GetMembersRequest, metadata?: Metadata): Observable<GetMembersResponse>;
207
224
  searchChannel(request: SearchChannelsRequest, metadata?: Metadata): Observable<SearchChannelResult>;
@@ -237,7 +254,9 @@ export interface ChannelServiceController {
237
254
  getMessage(request: GetMessageRequest, metadata?: Metadata): Observable<GetMessageResponse>;
238
255
  getMessages(request: GetMessagesRequest, metadata?: Metadata): Observable<GetMessagesResponse>;
239
256
  getNewChannelMessage(request: GetNewChannelMessageRequest, metadata?: Metadata): Observable<GetNewChannelMessageResponse>;
257
+ getMessagesSpecifyInfo(request: GetMessageSpecifyRequest, metadata?: Metadata): Observable<GetMessageSpecifyResponse>;
240
258
  getHistorys(request: GetHistorysRequest, metadata?: Metadata): Observable<GetHistorysResponse>;
259
+ updateLikeCount(request: UpdateLikeCountRequest, metadata?: Metadata): Observable<Empty>;
241
260
  holdMessage(request: HoldMessageRequest, metadata?: Metadata): Observable<Empty>;
242
261
  getMembers(request: GetMembersRequest, metadata?: Metadata): Observable<GetMembersResponse>;
243
262
  searchChannel(request: SearchChannelsRequest, metadata?: Metadata): Observable<SearchChannelResult>;
@@ -35,7 +35,9 @@ function ChannelServiceControllerMethods() {
35
35
  "getMessage",
36
36
  "getMessages",
37
37
  "getNewChannelMessage",
38
+ "getMessagesSpecifyInfo",
38
39
  "getHistorys",
40
+ "updateLikeCount",
39
41
  "holdMessage",
40
42
  "getMembers",
41
43
  "searchChannel",
@@ -113,11 +113,18 @@ export interface NewChannelMessage {
113
113
  type: MessageType;
114
114
  createdAt: string;
115
115
  likeCount: number;
116
+ channelTitle: string;
117
+ channelThumbnailUrl: string;
118
+ deletedAt?: string | undefined;
116
119
  }
117
120
  export interface Reaction {
118
121
  userId: number;
119
122
  reactionCode: string;
120
123
  }
124
+ export interface ChannelSeqDto {
125
+ channelId: string;
126
+ seq: number;
127
+ }
121
128
  export interface History {
122
129
  streamId: number;
123
130
  userId: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@verychat/channel-protos",
3
- "version": "1.0.23",
3
+ "version": "1.0.25",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -13,6 +13,7 @@ import {
13
13
  ChannelChatInfo,
14
14
  ChannelInfo,
15
15
  ChannelMessage,
16
+ ChannelSeqDto,
16
17
  CreateChannelDto,
17
18
  CreateMessageDto,
18
19
  EditChannelDto,
@@ -204,6 +205,23 @@ export interface GetNewChannelMessageResponse {
204
205
  messages: NewChannelMessage[];
205
206
  }
206
207
 
208
+ export interface GetMessageSpecifyRequest {
209
+ array: ChannelSeqDto[];
210
+ }
211
+
212
+ export interface GetMessageSpecifyResponse {
213
+ messages: NewChannelMessage[];
214
+ }
215
+
216
+ export interface UpdateLikeCountRequest {
217
+ likeCounts: { [key: string]: number };
218
+ }
219
+
220
+ export interface UpdateLikeCountRequest_LikeCountsEntry {
221
+ key: string;
222
+ value: number;
223
+ }
224
+
207
225
  export interface GetHistorysRequest {
208
226
  channelId: string;
209
227
  lastStreamId: number;
@@ -297,8 +315,12 @@ export interface ChannelServiceClient {
297
315
  metadata?: Metadata,
298
316
  ): Observable<GetNewChannelMessageResponse>;
299
317
 
318
+ getMessagesSpecifyInfo(request: GetMessageSpecifyRequest, metadata?: Metadata): Observable<GetMessageSpecifyResponse>;
319
+
300
320
  getHistorys(request: GetHistorysRequest, metadata?: Metadata): Observable<GetHistorysResponse>;
301
321
 
322
+ updateLikeCount(request: UpdateLikeCountRequest, metadata?: Metadata): Observable<Empty>;
323
+
302
324
  holdMessage(request: HoldMessageRequest, metadata?: Metadata): Observable<Empty>;
303
325
 
304
326
  getMembers(request: GetMembersRequest, metadata?: Metadata): Observable<GetMembersResponse>;
@@ -376,8 +398,12 @@ export interface ChannelServiceController {
376
398
  metadata?: Metadata,
377
399
  ): Observable<GetNewChannelMessageResponse>;
378
400
 
401
+ getMessagesSpecifyInfo(request: GetMessageSpecifyRequest, metadata?: Metadata): Observable<GetMessageSpecifyResponse>;
402
+
379
403
  getHistorys(request: GetHistorysRequest, metadata?: Metadata): Observable<GetHistorysResponse>;
380
404
 
405
+ updateLikeCount(request: UpdateLikeCountRequest, metadata?: Metadata): Observable<Empty>;
406
+
381
407
  holdMessage(request: HoldMessageRequest, metadata?: Metadata): Observable<Empty>;
382
408
 
383
409
  getMembers(request: GetMembersRequest, metadata?: Metadata): Observable<GetMembersResponse>;
@@ -429,7 +455,9 @@ export function ChannelServiceControllerMethods() {
429
455
  "getMessage",
430
456
  "getMessages",
431
457
  "getNewChannelMessage",
458
+ "getMessagesSpecifyInfo",
432
459
  "getHistorys",
460
+ "updateLikeCount",
433
461
  "holdMessage",
434
462
  "getMembers",
435
463
  "searchChannel",
@@ -135,6 +135,9 @@ export interface NewChannelMessage {
135
135
  type: MessageType;
136
136
  createdAt: string;
137
137
  likeCount: number;
138
+ channelTitle: string;
139
+ channelThumbnailUrl: string;
140
+ deletedAt?: string | undefined;
138
141
  }
139
142
 
140
143
  export interface Reaction {
@@ -142,6 +145,11 @@ export interface Reaction {
142
145
  reactionCode: string;
143
146
  }
144
147
 
148
+ export interface ChannelSeqDto {
149
+ channelId: string;
150
+ seq: number;
151
+ }
152
+
145
153
  export interface History {
146
154
  streamId: number;
147
155
  userId: number;