@togatherlabs/shared-protos 2.1.24 → 2.1.26
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/package.json +18 -15
- package/packages/typescript/README.md +90 -0
- package/packages/typescript/dist/chatservice/chat/v1/chat_pb.d.ts +273 -4
- package/packages/typescript/dist/chatservice/chat/v1/chat_pb.d.ts.map +1 -1
- package/packages/typescript/dist/chatservice/chat/v1/chat_pb.js +72 -10
- package/packages/typescript/dist/chatservice/chat/v1/chat_pb.js.map +1 -1
- package/packages/typescript/dist/common/pagination/v1/index.d.ts +0 -1
- package/packages/typescript/dist/common/pagination/v1/index.js +0 -1
- package/packages/typescript/dist/experienceservice/experience/v1/experience_pb.d.ts +0 -100
- package/packages/typescript/dist/experienceservice/experience/v1/experience_pb.d.ts.map +1 -1
- package/packages/typescript/dist/experienceservice/experience/v1/experience_pb.js +4 -45
- package/packages/typescript/dist/experienceservice/experience/v1/experience_pb.js.map +1 -1
- package/packages/typescript/dist/partnerservice/partner/v1/partner_pb.d.ts +2 -377
- package/packages/typescript/dist/partnerservice/partner/v1/partner_pb.d.ts.map +1 -1
- package/packages/typescript/dist/partnerservice/partner/v1/partner_pb.js +9 -164
- package/packages/typescript/dist/partnerservice/partner/v1/partner_pb.js.map +1 -1
- package/packages/typescript/dist/userservice/user/v1/user_pb.d.ts +14 -26
- package/packages/typescript/dist/userservice/user/v1/user_pb.d.ts.map +1 -1
- package/packages/typescript/dist/userservice/user/v1/user_pb.js +7 -7
- package/packages/typescript/dist/userservice/user/v1/user_pb.js.map +1 -1
- package/packages/typescript/dist/common/pagination/v1/cursor_pb.d.ts +0 -27
- package/packages/typescript/dist/common/pagination/v1/cursor_pb.d.ts.map +0 -1
- package/packages/typescript/dist/common/pagination/v1/cursor_pb.js +0 -14
- package/packages/typescript/dist/common/pagination/v1/cursor_pb.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@togatherlabs/shared-protos",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.26",
|
|
4
4
|
"description": "Generated TypeScript gRPC definitions for Togather shared protos",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -8,6 +8,22 @@
|
|
|
8
8
|
"publishConfig": {
|
|
9
9
|
"access": "public"
|
|
10
10
|
},
|
|
11
|
+
"scripts": {
|
|
12
|
+
"prepare": "husky",
|
|
13
|
+
"build": "buf generate && cd packages/typescript && npx tsc && node generate-indexes.js",
|
|
14
|
+
"lint": "buf lint",
|
|
15
|
+
"clean": "rm -rf packages/typescript/dist",
|
|
16
|
+
"prebuild": "pnpm run clean",
|
|
17
|
+
"prepublishOnly": "pnpm run build",
|
|
18
|
+
"commit": "cz",
|
|
19
|
+
"version:patch": "./scripts/version.sh patch",
|
|
20
|
+
"version:minor": "./scripts/version.sh minor",
|
|
21
|
+
"version:major": "./scripts/version.sh major",
|
|
22
|
+
"publish:npm": "./scripts/publish.sh",
|
|
23
|
+
"release:patch": "pnpm run version:patch && git add . && pnpm commit && pnpm run publish:npm && git add . && git commit --amend --no-edit",
|
|
24
|
+
"release:minor": "pnpm run version:minor && git add . && pnpm commit && pnpm run publish:npm && git add . && git commit --amend --no-edit",
|
|
25
|
+
"release:major": "pnpm run version:major && git add . && pnpm commit && pnpm run publish:npm && git add . && git commit --amend --no-edit"
|
|
26
|
+
},
|
|
11
27
|
"keywords": [
|
|
12
28
|
"togather",
|
|
13
29
|
"grpc",
|
|
@@ -16,6 +32,7 @@
|
|
|
16
32
|
],
|
|
17
33
|
"author": "Togather Team",
|
|
18
34
|
"license": "ISC",
|
|
35
|
+
"packageManager": "pnpm@10.7.1",
|
|
19
36
|
"files": [
|
|
20
37
|
"packages/typescript/dist",
|
|
21
38
|
"README.md"
|
|
@@ -116,19 +133,5 @@
|
|
|
116
133
|
"commitizen": {
|
|
117
134
|
"path": "@commitlint/cz-commitlint"
|
|
118
135
|
}
|
|
119
|
-
},
|
|
120
|
-
"scripts": {
|
|
121
|
-
"build": "buf generate && cd packages/typescript && npx tsc && node generate-indexes.js",
|
|
122
|
-
"lint": "buf lint",
|
|
123
|
-
"clean": "rm -rf packages/typescript/dist",
|
|
124
|
-
"prebuild": "pnpm run clean",
|
|
125
|
-
"commit": "cz",
|
|
126
|
-
"version:patch": "./scripts/version.sh patch",
|
|
127
|
-
"version:minor": "./scripts/version.sh minor",
|
|
128
|
-
"version:major": "./scripts/version.sh major",
|
|
129
|
-
"publish:npm": "./scripts/publish.sh",
|
|
130
|
-
"release:patch": "pnpm run version:patch && git add . && pnpm commit && pnpm run publish:npm && git add . && git commit --amend --no-edit",
|
|
131
|
-
"release:minor": "pnpm run version:minor && git add . && pnpm commit && pnpm run publish:npm && git add . && git commit --amend --no-edit",
|
|
132
|
-
"release:major": "pnpm run version:major && git add . && pnpm commit && pnpm run publish:npm && git add . && git commit --amend --no-edit"
|
|
133
136
|
}
|
|
134
137
|
}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
# @togatherlabs/shared-protos
|
|
2
|
+
|
|
3
|
+
TypeScript bindings for ToGather shared protocol buffer definitions.
|
|
4
|
+
|
|
5
|
+
This package provides type-safe gRPC and ConnectRPC interfaces generated from `.proto` files, ensuring consistency across all ToGather microservices.
|
|
6
|
+
|
|
7
|
+
## Installation
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
pnpm add @togatherlabs/shared-protos
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Usage
|
|
14
|
+
|
|
15
|
+
Import the generated types and services in your application:
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import { AdminService } from "@togatherlabs/shared-protos/authservice/admin/v1";
|
|
19
|
+
import { UserService } from "@togatherlabs/shared-protos/userservice/user/v1";
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
### Available Modules
|
|
23
|
+
|
|
24
|
+
- `authservice/admin/v1` - Admin authentication service definitions
|
|
25
|
+
- `userservice/user/v1` - User service definitions
|
|
26
|
+
|
|
27
|
+
## Package Structure
|
|
28
|
+
|
|
29
|
+
```
|
|
30
|
+
dist/
|
|
31
|
+
├── authservice/
|
|
32
|
+
│ └── admin/
|
|
33
|
+
│ └── v1/
|
|
34
|
+
│ ├── admin_pb.d.ts
|
|
35
|
+
│ ├── admin_pb.js
|
|
36
|
+
│ └── index.js
|
|
37
|
+
└── userservice/
|
|
38
|
+
└── user/
|
|
39
|
+
└── v1/
|
|
40
|
+
├── user_pb.d.ts
|
|
41
|
+
├── user_pb.js
|
|
42
|
+
└── index.js
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
### Examples
|
|
46
|
+
|
|
47
|
+
- Added new optional field to proto → **Minor**
|
|
48
|
+
- Fixed type definition error → **Patch**
|
|
49
|
+
- Removed or renamed existing field → **Major**
|
|
50
|
+
|
|
51
|
+
## Development
|
|
52
|
+
|
|
53
|
+
This package is auto-generated from proto definitions. Do not edit the generated files manually.
|
|
54
|
+
|
|
55
|
+
To regenerate:
|
|
56
|
+
|
|
57
|
+
```bash
|
|
58
|
+
# In the root repository
|
|
59
|
+
pnpm generate
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
## Publishing
|
|
63
|
+
|
|
64
|
+
This package is automatically published via the root repository's publish script.
|
|
65
|
+
|
|
66
|
+
See the [main repository README](../../README.md) for publishing instructions.
|
|
67
|
+
|
|
68
|
+
## Dependencies
|
|
69
|
+
|
|
70
|
+
**Peer Dependencies:**
|
|
71
|
+
|
|
72
|
+
- `@bufbuild/protobuf` ^2.9.0
|
|
73
|
+
- `@connectrpc/connect` ^2.1.0
|
|
74
|
+
|
|
75
|
+
Make sure these are installed in your consuming application.
|
|
76
|
+
|
|
77
|
+
## Best Practices
|
|
78
|
+
|
|
79
|
+
1. **Always use the latest version** - Keep this package updated across all services
|
|
80
|
+
2. **Import from specific paths** - Use deep imports for better tree-shaking
|
|
81
|
+
3. **Handle breaking changes carefully** - Review changelog before major version updates
|
|
82
|
+
4. **Type safety** - Leverage TypeScript's type checking with these definitions
|
|
83
|
+
|
|
84
|
+
## Support
|
|
85
|
+
|
|
86
|
+
For issues or questions, please refer to the [main repository](https://github.com/CrossroadsAcademy/togather-shared-protos).
|
|
87
|
+
|
|
88
|
+
---
|
|
89
|
+
|
|
90
|
+
Maintained by the ToGather Engineering Team
|
|
@@ -1,9 +1,75 @@
|
|
|
1
|
-
import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
|
1
|
+
import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
|
2
2
|
import type { Message } from "@bufbuild/protobuf";
|
|
3
3
|
/**
|
|
4
4
|
* Describes the file chatservice/chat/v1/chat.proto.
|
|
5
5
|
*/
|
|
6
6
|
export declare const file_chatservice_chat_v1_chat: GenFile;
|
|
7
|
+
/**
|
|
8
|
+
* Media content details for image/video/file messages
|
|
9
|
+
*
|
|
10
|
+
* @generated from message chatservice.chat.v1.MediaContent
|
|
11
|
+
*/
|
|
12
|
+
export type MediaContent = Message<"chatservice.chat.v1.MediaContent"> & {
|
|
13
|
+
/**
|
|
14
|
+
* CDN or S3 URL for accessing the media
|
|
15
|
+
*
|
|
16
|
+
* @generated from field: string url = 1;
|
|
17
|
+
*/
|
|
18
|
+
url: string;
|
|
19
|
+
/**
|
|
20
|
+
* S3 key for reference
|
|
21
|
+
*
|
|
22
|
+
* @generated from field: string s3_key = 2;
|
|
23
|
+
*/
|
|
24
|
+
s3Key: string;
|
|
25
|
+
/**
|
|
26
|
+
* Thumbnail URL for images/videos
|
|
27
|
+
*
|
|
28
|
+
* @generated from field: optional string thumbnail_url = 3;
|
|
29
|
+
*/
|
|
30
|
+
thumbnailUrl?: string;
|
|
31
|
+
/**
|
|
32
|
+
* Original file name
|
|
33
|
+
*
|
|
34
|
+
* @generated from field: optional string file_name = 4;
|
|
35
|
+
*/
|
|
36
|
+
fileName?: string;
|
|
37
|
+
/**
|
|
38
|
+
* File size in bytes
|
|
39
|
+
*
|
|
40
|
+
* @generated from field: optional int64 file_size = 5;
|
|
41
|
+
*/
|
|
42
|
+
fileSize?: bigint;
|
|
43
|
+
/**
|
|
44
|
+
* MIME type (e.g., image/jpeg, video/mp4)
|
|
45
|
+
*
|
|
46
|
+
* @generated from field: optional string mime_type = 6;
|
|
47
|
+
*/
|
|
48
|
+
mimeType?: string;
|
|
49
|
+
/**
|
|
50
|
+
* Duration in seconds (for video/audio)
|
|
51
|
+
*
|
|
52
|
+
* @generated from field: optional int32 duration = 7;
|
|
53
|
+
*/
|
|
54
|
+
duration?: number;
|
|
55
|
+
/**
|
|
56
|
+
* Width in pixels (for images/videos)
|
|
57
|
+
*
|
|
58
|
+
* @generated from field: optional int32 width = 8;
|
|
59
|
+
*/
|
|
60
|
+
width?: number;
|
|
61
|
+
/**
|
|
62
|
+
* Height in pixels (for images/videos)
|
|
63
|
+
*
|
|
64
|
+
* @generated from field: optional int32 height = 9;
|
|
65
|
+
*/
|
|
66
|
+
height?: number;
|
|
67
|
+
};
|
|
68
|
+
/**
|
|
69
|
+
* Describes the message chatservice.chat.v1.MediaContent.
|
|
70
|
+
* Use `create(MediaContentSchema)` to create a new message.
|
|
71
|
+
*/
|
|
72
|
+
export declare const MediaContentSchema: GenMessage<MediaContent>;
|
|
7
73
|
/**
|
|
8
74
|
* Request to send a chat message
|
|
9
75
|
*
|
|
@@ -23,6 +89,8 @@ export type SendChatMessageRequest = Message<"chatservice.chat.v1.SendChatMessag
|
|
|
23
89
|
*/
|
|
24
90
|
senderName: string;
|
|
25
91
|
/**
|
|
92
|
+
* Text content (caption for media)
|
|
93
|
+
*
|
|
26
94
|
* @generated from field: string content = 4;
|
|
27
95
|
*/
|
|
28
96
|
content: string;
|
|
@@ -30,6 +98,18 @@ export type SendChatMessageRequest = Message<"chatservice.chat.v1.SendChatMessag
|
|
|
30
98
|
* @generated from field: optional chatservice.chat.v1.ReplyToMessage reply_to = 5;
|
|
31
99
|
*/
|
|
32
100
|
replyTo?: ReplyToMessage;
|
|
101
|
+
/**
|
|
102
|
+
* Message type (text, image, video, file)
|
|
103
|
+
*
|
|
104
|
+
* @generated from field: chatservice.chat.v1.MessageType type = 6;
|
|
105
|
+
*/
|
|
106
|
+
type: MessageType;
|
|
107
|
+
/**
|
|
108
|
+
* Media details (for non-text messages)
|
|
109
|
+
*
|
|
110
|
+
* @generated from field: optional chatservice.chat.v1.MediaContent media = 7;
|
|
111
|
+
*/
|
|
112
|
+
media?: MediaContent;
|
|
33
113
|
};
|
|
34
114
|
/**
|
|
35
115
|
* Describes the message chatservice.chat.v1.SendChatMessageRequest.
|
|
@@ -124,6 +204,24 @@ export type ChatMessage = Message<"chatservice.chat.v1.ChatMessage"> & {
|
|
|
124
204
|
* @generated from field: optional chatservice.chat.v1.ReplyToMessagePreview reply_to = 7;
|
|
125
205
|
*/
|
|
126
206
|
replyTo?: ReplyToMessagePreview;
|
|
207
|
+
/**
|
|
208
|
+
* Auto-incrementing per room for O(1) unread count
|
|
209
|
+
*
|
|
210
|
+
* @generated from field: int64 sequence_number = 8;
|
|
211
|
+
*/
|
|
212
|
+
sequenceNumber: bigint;
|
|
213
|
+
/**
|
|
214
|
+
* Message type (text, image, video, file)
|
|
215
|
+
*
|
|
216
|
+
* @generated from field: chatservice.chat.v1.MessageType type = 9;
|
|
217
|
+
*/
|
|
218
|
+
type: MessageType;
|
|
219
|
+
/**
|
|
220
|
+
* Media details (for non-text messages)
|
|
221
|
+
*
|
|
222
|
+
* @generated from field: optional chatservice.chat.v1.MediaContent media = 10;
|
|
223
|
+
*/
|
|
224
|
+
media?: MediaContent;
|
|
127
225
|
};
|
|
128
226
|
/**
|
|
129
227
|
* Describes the message chatservice.chat.v1.ChatMessage.
|
|
@@ -170,22 +268,28 @@ export type GetRoomMessagesRequest = Message<"chatservice.chat.v1.GetRoomMessage
|
|
|
170
268
|
* @generated from field: string room_id = 1;
|
|
171
269
|
*/
|
|
172
270
|
roomId: string;
|
|
271
|
+
/**
|
|
272
|
+
* User requesting messages (for authorization)
|
|
273
|
+
*
|
|
274
|
+
* @generated from field: string user_id = 2;
|
|
275
|
+
*/
|
|
276
|
+
userId: string;
|
|
173
277
|
/**
|
|
174
278
|
* Messages per page (default 20, max 50)
|
|
175
279
|
*
|
|
176
|
-
* @generated from field: int32 limit =
|
|
280
|
+
* @generated from field: int32 limit = 3;
|
|
177
281
|
*/
|
|
178
282
|
limit: number;
|
|
179
283
|
/**
|
|
180
284
|
* Cursor: fetch messages before this messageId (for scrolling up)
|
|
181
285
|
*
|
|
182
|
-
* @generated from field: optional string before =
|
|
286
|
+
* @generated from field: optional string before = 4;
|
|
183
287
|
*/
|
|
184
288
|
before?: string;
|
|
185
289
|
/**
|
|
186
290
|
* Cursor: fetch messages after this messageId (for new messages)
|
|
187
291
|
*
|
|
188
|
-
* @generated from field: optional string after =
|
|
292
|
+
* @generated from field: optional string after = 5;
|
|
189
293
|
*/
|
|
190
294
|
after?: string;
|
|
191
295
|
};
|
|
@@ -256,6 +360,151 @@ export type MessagePageInfo = Message<"chatservice.chat.v1.MessagePageInfo"> & {
|
|
|
256
360
|
* Use `create(MessagePageInfoSchema)` to create a new message.
|
|
257
361
|
*/
|
|
258
362
|
export declare const MessagePageInfoSchema: GenMessage<MessagePageInfo>;
|
|
363
|
+
/**
|
|
364
|
+
* Request to get room summaries (last message for each room)
|
|
365
|
+
*
|
|
366
|
+
* @generated from message chatservice.chat.v1.GetRoomSummariesRequest
|
|
367
|
+
*/
|
|
368
|
+
export type GetRoomSummariesRequest = Message<"chatservice.chat.v1.GetRoomSummariesRequest"> & {
|
|
369
|
+
/**
|
|
370
|
+
* User requesting summaries (for unread count calculation)
|
|
371
|
+
*
|
|
372
|
+
* @generated from field: string user_id = 1;
|
|
373
|
+
*/
|
|
374
|
+
userId: string;
|
|
375
|
+
/**
|
|
376
|
+
* @generated from field: repeated string room_ids = 2;
|
|
377
|
+
*/
|
|
378
|
+
roomIds: string[];
|
|
379
|
+
};
|
|
380
|
+
/**
|
|
381
|
+
* Describes the message chatservice.chat.v1.GetRoomSummariesRequest.
|
|
382
|
+
* Use `create(GetRoomSummariesRequestSchema)` to create a new message.
|
|
383
|
+
*/
|
|
384
|
+
export declare const GetRoomSummariesRequestSchema: GenMessage<GetRoomSummariesRequest>;
|
|
385
|
+
/**
|
|
386
|
+
* Room summary containing last message info and unread count
|
|
387
|
+
*
|
|
388
|
+
* @generated from message chatservice.chat.v1.RoomSummary
|
|
389
|
+
*/
|
|
390
|
+
export type RoomSummary = Message<"chatservice.chat.v1.RoomSummary"> & {
|
|
391
|
+
/**
|
|
392
|
+
* @generated from field: string room_id = 1;
|
|
393
|
+
*/
|
|
394
|
+
roomId: string;
|
|
395
|
+
/**
|
|
396
|
+
* null if room has no messages
|
|
397
|
+
*
|
|
398
|
+
* @generated from field: optional chatservice.chat.v1.ChatMessage last_message = 2;
|
|
399
|
+
*/
|
|
400
|
+
lastMessage?: ChatMessage;
|
|
401
|
+
/**
|
|
402
|
+
* Current sequence number of the room
|
|
403
|
+
*
|
|
404
|
+
* @generated from field: int64 current_sequence = 3;
|
|
405
|
+
*/
|
|
406
|
+
currentSequence: bigint;
|
|
407
|
+
/**
|
|
408
|
+
* Number of unread messages for the user
|
|
409
|
+
*
|
|
410
|
+
* @generated from field: int64 unread_count = 4;
|
|
411
|
+
*/
|
|
412
|
+
unreadCount: bigint;
|
|
413
|
+
};
|
|
414
|
+
/**
|
|
415
|
+
* Describes the message chatservice.chat.v1.RoomSummary.
|
|
416
|
+
* Use `create(RoomSummarySchema)` to create a new message.
|
|
417
|
+
*/
|
|
418
|
+
export declare const RoomSummarySchema: GenMessage<RoomSummary>;
|
|
419
|
+
/**
|
|
420
|
+
* Response containing room summaries
|
|
421
|
+
*
|
|
422
|
+
* @generated from message chatservice.chat.v1.GetRoomSummariesResponse
|
|
423
|
+
*/
|
|
424
|
+
export type GetRoomSummariesResponse = Message<"chatservice.chat.v1.GetRoomSummariesResponse"> & {
|
|
425
|
+
/**
|
|
426
|
+
* @generated from field: repeated chatservice.chat.v1.RoomSummary summaries = 1;
|
|
427
|
+
*/
|
|
428
|
+
summaries: RoomSummary[];
|
|
429
|
+
};
|
|
430
|
+
/**
|
|
431
|
+
* Describes the message chatservice.chat.v1.GetRoomSummariesResponse.
|
|
432
|
+
* Use `create(GetRoomSummariesResponseSchema)` to create a new message.
|
|
433
|
+
*/
|
|
434
|
+
export declare const GetRoomSummariesResponseSchema: GenMessage<GetRoomSummariesResponse>;
|
|
435
|
+
/**
|
|
436
|
+
* Request to mark a room as read
|
|
437
|
+
*
|
|
438
|
+
* @generated from message chatservice.chat.v1.MarkRoomAsReadRequest
|
|
439
|
+
*/
|
|
440
|
+
export type MarkRoomAsReadRequest = Message<"chatservice.chat.v1.MarkRoomAsReadRequest"> & {
|
|
441
|
+
/**
|
|
442
|
+
* @generated from field: string user_id = 1;
|
|
443
|
+
*/
|
|
444
|
+
userId: string;
|
|
445
|
+
/**
|
|
446
|
+
* @generated from field: string room_id = 2;
|
|
447
|
+
*/
|
|
448
|
+
roomId: string;
|
|
449
|
+
/**
|
|
450
|
+
* Mark as read up to this sequence number
|
|
451
|
+
*
|
|
452
|
+
* @generated from field: int64 sequence = 3;
|
|
453
|
+
*/
|
|
454
|
+
sequence: bigint;
|
|
455
|
+
};
|
|
456
|
+
/**
|
|
457
|
+
* Describes the message chatservice.chat.v1.MarkRoomAsReadRequest.
|
|
458
|
+
* Use `create(MarkRoomAsReadRequestSchema)` to create a new message.
|
|
459
|
+
*/
|
|
460
|
+
export declare const MarkRoomAsReadRequestSchema: GenMessage<MarkRoomAsReadRequest>;
|
|
461
|
+
/**
|
|
462
|
+
* Response after marking room as read
|
|
463
|
+
*
|
|
464
|
+
* @generated from message chatservice.chat.v1.MarkRoomAsReadResponse
|
|
465
|
+
*/
|
|
466
|
+
export type MarkRoomAsReadResponse = Message<"chatservice.chat.v1.MarkRoomAsReadResponse"> & {
|
|
467
|
+
/**
|
|
468
|
+
* @generated from field: bool success = 1;
|
|
469
|
+
*/
|
|
470
|
+
success: boolean;
|
|
471
|
+
};
|
|
472
|
+
/**
|
|
473
|
+
* Describes the message chatservice.chat.v1.MarkRoomAsReadResponse.
|
|
474
|
+
* Use `create(MarkRoomAsReadResponseSchema)` to create a new message.
|
|
475
|
+
*/
|
|
476
|
+
export declare const MarkRoomAsReadResponseSchema: GenMessage<MarkRoomAsReadResponse>;
|
|
477
|
+
/**
|
|
478
|
+
* Message type enum for different content types
|
|
479
|
+
*
|
|
480
|
+
* @generated from enum chatservice.chat.v1.MessageType
|
|
481
|
+
*/
|
|
482
|
+
export declare enum MessageType {
|
|
483
|
+
/**
|
|
484
|
+
* @generated from enum value: MESSAGE_TYPE_UNSPECIFIED = 0;
|
|
485
|
+
*/
|
|
486
|
+
UNSPECIFIED = 0,
|
|
487
|
+
/**
|
|
488
|
+
* @generated from enum value: MESSAGE_TYPE_TEXT = 1;
|
|
489
|
+
*/
|
|
490
|
+
TEXT = 1,
|
|
491
|
+
/**
|
|
492
|
+
* @generated from enum value: MESSAGE_TYPE_IMAGE = 2;
|
|
493
|
+
*/
|
|
494
|
+
IMAGE = 2,
|
|
495
|
+
/**
|
|
496
|
+
* @generated from enum value: MESSAGE_TYPE_VIDEO = 3;
|
|
497
|
+
*/
|
|
498
|
+
VIDEO = 3,
|
|
499
|
+
/**
|
|
500
|
+
* @generated from enum value: MESSAGE_TYPE_FILE = 4;
|
|
501
|
+
*/
|
|
502
|
+
FILE = 4
|
|
503
|
+
}
|
|
504
|
+
/**
|
|
505
|
+
* Describes the enum chatservice.chat.v1.MessageType.
|
|
506
|
+
*/
|
|
507
|
+
export declare const MessageTypeSchema: GenEnum<MessageType>;
|
|
259
508
|
/**
|
|
260
509
|
* Chat Service RPC definition
|
|
261
510
|
*
|
|
@@ -283,5 +532,25 @@ export declare const ChatService: GenService<{
|
|
|
283
532
|
input: typeof GetRoomMessagesRequestSchema;
|
|
284
533
|
output: typeof GetRoomMessagesResponseSchema;
|
|
285
534
|
};
|
|
535
|
+
/**
|
|
536
|
+
* Get room summaries with last message (for experience list)
|
|
537
|
+
*
|
|
538
|
+
* @generated from rpc chatservice.chat.v1.ChatService.GetRoomSummaries
|
|
539
|
+
*/
|
|
540
|
+
getRoomSummaries: {
|
|
541
|
+
methodKind: "unary";
|
|
542
|
+
input: typeof GetRoomSummariesRequestSchema;
|
|
543
|
+
output: typeof GetRoomSummariesResponseSchema;
|
|
544
|
+
};
|
|
545
|
+
/**
|
|
546
|
+
* Mark a room as read up to a specific sequence number
|
|
547
|
+
*
|
|
548
|
+
* @generated from rpc chatservice.chat.v1.ChatService.MarkRoomAsRead
|
|
549
|
+
*/
|
|
550
|
+
markRoomAsRead: {
|
|
551
|
+
methodKind: "unary";
|
|
552
|
+
input: typeof MarkRoomAsReadRequestSchema;
|
|
553
|
+
output: typeof MarkRoomAsReadResponseSchema;
|
|
554
|
+
};
|
|
286
555
|
}>;
|
|
287
556
|
//# sourceMappingURL=chat_pb.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chat_pb.d.ts","sourceRoot":"","sources":["../../../../src/chatservice/chat/v1/chat_pb.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"chat_pb.d.ts","sourceRoot":"","sources":["../../../../src/chatservice/chat/v1/chat_pb.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAE7F,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,6BAA6B,EAAE,OACioH,CAAC;AAE9qH;;;;GAIG;AACH,MAAM,MAAM,YAAY,GAAG,OAAO,CAAC,kCAAkC,CAAC,GAAG;IACvE;;;;OAIG;IACH,GAAG,EAAE,MA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H,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,4BAA4B,EAAE,UAAU,CAAC,sBAAsB,CAC5B,CAAC;AAEjD;;;;GAIG;AACH,oBAAY,WAAW;IACrB;;OAEG;IACH,WAAW,IAAI;IAEf;;OAEG;IACH,IAAI,IAAI;IAER;;OAEG;IACH,KAAK,IAAI;IAET;;OAEG;IACH,KAAK,IAAI;IAET;;OAEG;IACH,IAAI,IAAI;CACT;AAED;;GAEG;AACH,eAAO,MAAM,iBAAiB,EAAE,OAAO,CAAC,WAAW,CACP,CAAC;AAE7C;;;;GAIG;AACH,eAAO,MAAM,WAAW,EAAE,UAAU,CAAC;IACnC;;;;;OAKG;IACH,eAAe,EAAE;QACf,UAAU,EAAE,OAAO,CAAC;QACpB,KAAK,EAAE,OAAO,4BAA4B,CAAC;QAC3C,MAAM,EAAE,OAAO,6BAA6B,CAAC;KAC9C,CAAC;IACF;;;;OAIG;IACH,eAAe,EAAE;QACf,UAAU,EAAE,OAAO,CAAC;QACpB,KAAK,EAAE,OAAO,4BAA4B,CAAC;QAC3C,MAAM,EAAE,OAAO,6BAA6B,CAAC;KAC9C,CAAC;IACF;;;;OAIG;IACH,gBAAgB,EAAE;QAChB,UAAU,EAAE,OAAO,CAAC;QACpB,KAAK,EAAE,OAAO,6BAA6B,CAAC;QAC5C,MAAM,EAAE,OAAO,8BAA8B,CAAC;KAC/C,CAAC;IACF;;;;OAIG;IACH,cAAc,EAAE;QACd,UAAU,EAAE,OAAO,CAAC;QACpB,KAAK,EAAE,OAAO,2BAA2B,CAAC;QAC1C,MAAM,EAAE,OAAO,4BAA4B,CAAC;KAC7C,CAAC;CACH,CAC8C,CAAC"}
|
|
@@ -1,51 +1,113 @@
|
|
|
1
1
|
// @generated by protoc-gen-es v2.9.0 with parameter "target=ts,import_extension=.js"
|
|
2
2
|
// @generated from file chatservice/chat/v1/chat.proto (package chatservice.chat.v1, syntax proto3)
|
|
3
3
|
/* eslint-disable */
|
|
4
|
-
import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
|
|
4
|
+
import { enumDesc, fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
|
|
5
5
|
/**
|
|
6
6
|
* Describes the file chatservice/chat/v1/chat.proto.
|
|
7
7
|
*/
|
|
8
|
-
export const file_chatservice_chat_v1_chat = /*@__PURE__*/ fileDesc("
|
|
8
|
+
export const file_chatservice_chat_v1_chat = /*@__PURE__*/ fileDesc("Ch5jaGF0c2VydmljZS9jaGF0L3YxL2NoYXQucHJvdG8SE2NoYXRzZXJ2aWNlLmNoYXQudjEirQIKDE1lZGlhQ29udGVudBILCgN1cmwYASABKAkSDgoGczNfa2V5GAIgASgJEhoKDXRodW1ibmFpbF91cmwYAyABKAlIAIgBARIWCglmaWxlX25hbWUYBCABKAlIAYgBARIWCglmaWxlX3NpemUYBSABKANIAogBARIWCgltaW1lX3R5cGUYBiABKAlIA4gBARIVCghkdXJhdGlvbhgHIAEoBUgEiAEBEhIKBXdpZHRoGAggASgFSAWIAQESEwoGaGVpZ2h0GAkgASgFSAaIAQFCEAoOX3RodW1ibmFpbF91cmxCDAoKX2ZpbGVfbmFtZUIMCgpfZmlsZV9zaXplQgwKCl9taW1lX3R5cGVCCwoJX2R1cmF0aW9uQggKBl93aWR0aEIJCgdfaGVpZ2h0IpwCChZTZW5kQ2hhdE1lc3NhZ2VSZXF1ZXN0Eg8KB3Jvb21faWQYASABKAkSEQoJc2VuZGVyX2lkGAIgASgJEhMKC3NlbmRlcl9uYW1lGAMgASgJEg8KB2NvbnRlbnQYBCABKAkSOgoIcmVwbHlfdG8YBSABKAsyIy5jaGF0c2VydmljZS5jaGF0LnYxLlJlcGx5VG9NZXNzYWdlSACIAQESLgoEdHlwZRgGIAEoDjIgLmNoYXRzZXJ2aWNlLmNoYXQudjEuTWVzc2FnZVR5cGUSNQoFbWVkaWEYByABKAsyIS5jaGF0c2VydmljZS5jaGF0LnY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Vzc2FnZVR5cGUSHAoYTUVTU0FHRV9UWVBFX1VOU1BFQ0lGSUVEEAASFQoRTUVTU0FHRV9UWVBFX1RFWFQQARIWChJNRVNTQUdFX1RZUEVfSU1BR0UQAhIWChJNRVNTQUdFX1RZUEVfVklERU8QAxIVChFNRVNTQUdFX1RZUEVfRklMRRAEMsUDCgtDaGF0U2VydmljZRJsCg9TZW5kQ2hhdE1lc3NhZ2USKy5jaGF0c2VydmljZS5jaGF0LnYxLlNlbmRDaGF0TWVzc2FnZVJlcXVlc3QaLC5jaGF0c2VydmljZS5jaGF0LnYxLlNlbmRDaGF0TWVzc2FnZVJlc3BvbnNlEmwKD0dldFJvb21NZXNzYWdlcxIrLmNoYXRzZXJ2aWNlLmNoYXQudjEuR2V0Um9vbU1lc3NhZ2VzUmVxdWVzdBosLmNoYXRzZXJ2aWNlLmNoYXQudjEuR2V0Um9vbU1lc3NhZ2VzUmVzcG9uc2USbwoQR2V0Um9vbVN1bW1hcmllcxIsLmNoYXRzZXJ2aWNlLmNoYXQudjEuR2V0Um9vbVN1bW1hcmllc1JlcXVlc3QaLS5jaGF0c2VydmljZS5jaGF0LnYxLkdldFJvb21TdW1tYXJpZXNSZXNwb25zZRJpCg5NYXJrUm9vbUFzUmVhZBIqLmNoYXRzZXJ2aWNlLmNoYXQudjEuTWFya1Jvb21Bc1JlYWRSZXF1ZXN0GisuY2hhdHNlcnZpY2UuY2hhdC52MS5NYXJrUm9vbUFzUmVhZFJlc3BvbnNlYgZwcm90bzM");
|
|
9
|
+
/**
|
|
10
|
+
* Describes the message chatservice.chat.v1.MediaContent.
|
|
11
|
+
* Use `create(MediaContentSchema)` to create a new message.
|
|
12
|
+
*/
|
|
13
|
+
export const MediaContentSchema = /*@__PURE__*/ messageDesc(file_chatservice_chat_v1_chat, 0);
|
|
9
14
|
/**
|
|
10
15
|
* Describes the message chatservice.chat.v1.SendChatMessageRequest.
|
|
11
16
|
* Use `create(SendChatMessageRequestSchema)` to create a new message.
|
|
12
17
|
*/
|
|
13
|
-
export const SendChatMessageRequestSchema = /*@__PURE__*/ messageDesc(file_chatservice_chat_v1_chat,
|
|
18
|
+
export const SendChatMessageRequestSchema = /*@__PURE__*/ messageDesc(file_chatservice_chat_v1_chat, 1);
|
|
14
19
|
/**
|
|
15
20
|
* Describes the message chatservice.chat.v1.ReplyToMessage.
|
|
16
21
|
* Use `create(ReplyToMessageSchema)` to create a new message.
|
|
17
22
|
*/
|
|
18
|
-
export const ReplyToMessageSchema = /*@__PURE__*/ messageDesc(file_chatservice_chat_v1_chat,
|
|
23
|
+
export const ReplyToMessageSchema = /*@__PURE__*/ messageDesc(file_chatservice_chat_v1_chat, 2);
|
|
19
24
|
/**
|
|
20
25
|
* Describes the message chatservice.chat.v1.SendChatMessageResponse.
|
|
21
26
|
* Use `create(SendChatMessageResponseSchema)` to create a new message.
|
|
22
27
|
*/
|
|
23
|
-
export const SendChatMessageResponseSchema = /*@__PURE__*/ messageDesc(file_chatservice_chat_v1_chat,
|
|
28
|
+
export const SendChatMessageResponseSchema = /*@__PURE__*/ messageDesc(file_chatservice_chat_v1_chat, 3);
|
|
24
29
|
/**
|
|
25
30
|
* Describes the message chatservice.chat.v1.ChatMessage.
|
|
26
31
|
* Use `create(ChatMessageSchema)` to create a new message.
|
|
27
32
|
*/
|
|
28
|
-
export const ChatMessageSchema = /*@__PURE__*/ messageDesc(file_chatservice_chat_v1_chat,
|
|
33
|
+
export const ChatMessageSchema = /*@__PURE__*/ messageDesc(file_chatservice_chat_v1_chat, 4);
|
|
29
34
|
/**
|
|
30
35
|
* Describes the message chatservice.chat.v1.ReplyToMessagePreview.
|
|
31
36
|
* Use `create(ReplyToMessagePreviewSchema)` to create a new message.
|
|
32
37
|
*/
|
|
33
|
-
export const ReplyToMessagePreviewSchema = /*@__PURE__*/ messageDesc(file_chatservice_chat_v1_chat,
|
|
38
|
+
export const ReplyToMessagePreviewSchema = /*@__PURE__*/ messageDesc(file_chatservice_chat_v1_chat, 5);
|
|
34
39
|
/**
|
|
35
40
|
* Describes the message chatservice.chat.v1.GetRoomMessagesRequest.
|
|
36
41
|
* Use `create(GetRoomMessagesRequestSchema)` to create a new message.
|
|
37
42
|
*/
|
|
38
|
-
export const GetRoomMessagesRequestSchema = /*@__PURE__*/ messageDesc(file_chatservice_chat_v1_chat,
|
|
43
|
+
export const GetRoomMessagesRequestSchema = /*@__PURE__*/ messageDesc(file_chatservice_chat_v1_chat, 6);
|
|
39
44
|
/**
|
|
40
45
|
* Describes the message chatservice.chat.v1.GetRoomMessagesResponse.
|
|
41
46
|
* Use `create(GetRoomMessagesResponseSchema)` to create a new message.
|
|
42
47
|
*/
|
|
43
|
-
export const GetRoomMessagesResponseSchema = /*@__PURE__*/ messageDesc(file_chatservice_chat_v1_chat,
|
|
48
|
+
export const GetRoomMessagesResponseSchema = /*@__PURE__*/ messageDesc(file_chatservice_chat_v1_chat, 7);
|
|
44
49
|
/**
|
|
45
50
|
* Describes the message chatservice.chat.v1.MessagePageInfo.
|
|
46
51
|
* Use `create(MessagePageInfoSchema)` to create a new message.
|
|
47
52
|
*/
|
|
48
|
-
export const MessagePageInfoSchema = /*@__PURE__*/ messageDesc(file_chatservice_chat_v1_chat,
|
|
53
|
+
export const MessagePageInfoSchema = /*@__PURE__*/ messageDesc(file_chatservice_chat_v1_chat, 8);
|
|
54
|
+
/**
|
|
55
|
+
* Describes the message chatservice.chat.v1.GetRoomSummariesRequest.
|
|
56
|
+
* Use `create(GetRoomSummariesRequestSchema)` to create a new message.
|
|
57
|
+
*/
|
|
58
|
+
export const GetRoomSummariesRequestSchema = /*@__PURE__*/ messageDesc(file_chatservice_chat_v1_chat, 9);
|
|
59
|
+
/**
|
|
60
|
+
* Describes the message chatservice.chat.v1.RoomSummary.
|
|
61
|
+
* Use `create(RoomSummarySchema)` to create a new message.
|
|
62
|
+
*/
|
|
63
|
+
export const RoomSummarySchema = /*@__PURE__*/ messageDesc(file_chatservice_chat_v1_chat, 10);
|
|
64
|
+
/**
|
|
65
|
+
* Describes the message chatservice.chat.v1.GetRoomSummariesResponse.
|
|
66
|
+
* Use `create(GetRoomSummariesResponseSchema)` to create a new message.
|
|
67
|
+
*/
|
|
68
|
+
export const GetRoomSummariesResponseSchema = /*@__PURE__*/ messageDesc(file_chatservice_chat_v1_chat, 11);
|
|
69
|
+
/**
|
|
70
|
+
* Describes the message chatservice.chat.v1.MarkRoomAsReadRequest.
|
|
71
|
+
* Use `create(MarkRoomAsReadRequestSchema)` to create a new message.
|
|
72
|
+
*/
|
|
73
|
+
export const MarkRoomAsReadRequestSchema = /*@__PURE__*/ messageDesc(file_chatservice_chat_v1_chat, 12);
|
|
74
|
+
/**
|
|
75
|
+
* Describes the message chatservice.chat.v1.MarkRoomAsReadResponse.
|
|
76
|
+
* Use `create(MarkRoomAsReadResponseSchema)` to create a new message.
|
|
77
|
+
*/
|
|
78
|
+
export const MarkRoomAsReadResponseSchema = /*@__PURE__*/ messageDesc(file_chatservice_chat_v1_chat, 13);
|
|
79
|
+
/**
|
|
80
|
+
* Message type enum for different content types
|
|
81
|
+
*
|
|
82
|
+
* @generated from enum chatservice.chat.v1.MessageType
|
|
83
|
+
*/
|
|
84
|
+
export var MessageType;
|
|
85
|
+
(function (MessageType) {
|
|
86
|
+
/**
|
|
87
|
+
* @generated from enum value: MESSAGE_TYPE_UNSPECIFIED = 0;
|
|
88
|
+
*/
|
|
89
|
+
MessageType[MessageType["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
90
|
+
/**
|
|
91
|
+
* @generated from enum value: MESSAGE_TYPE_TEXT = 1;
|
|
92
|
+
*/
|
|
93
|
+
MessageType[MessageType["TEXT"] = 1] = "TEXT";
|
|
94
|
+
/**
|
|
95
|
+
* @generated from enum value: MESSAGE_TYPE_IMAGE = 2;
|
|
96
|
+
*/
|
|
97
|
+
MessageType[MessageType["IMAGE"] = 2] = "IMAGE";
|
|
98
|
+
/**
|
|
99
|
+
* @generated from enum value: MESSAGE_TYPE_VIDEO = 3;
|
|
100
|
+
*/
|
|
101
|
+
MessageType[MessageType["VIDEO"] = 3] = "VIDEO";
|
|
102
|
+
/**
|
|
103
|
+
* @generated from enum value: MESSAGE_TYPE_FILE = 4;
|
|
104
|
+
*/
|
|
105
|
+
MessageType[MessageType["FILE"] = 4] = "FILE";
|
|
106
|
+
})(MessageType || (MessageType = {}));
|
|
107
|
+
/**
|
|
108
|
+
* Describes the enum chatservice.chat.v1.MessageType.
|
|
109
|
+
*/
|
|
110
|
+
export const MessageTypeSchema = /*@__PURE__*/ enumDesc(file_chatservice_chat_v1_chat, 0);
|
|
49
111
|
/**
|
|
50
112
|
* Chat Service RPC definition
|
|
51
113
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chat_pb.js","sourceRoot":"","sources":["../../../../src/chatservice/chat/v1/chat_pb.ts"],"names":[],"mappings":"AAAA,qFAAqF;AACrF,mGAAmG;AACnG,oBAAoB;AAGpB,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"chat_pb.js","sourceRoot":"","sources":["../../../../src/chatservice/chat/v1/chat_pb.ts"],"names":[],"mappings":"AAAA,qFAAqF;AACrF,mGAAmG;AACnG,oBAAoB;AAGpB,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAG5F;;GAEG;AACH,MAAM,CAAC,MAAM,6BAA6B,GAAY,aAAa,CACjE,QAAQ,CAAC,iqHAAiqH,CAAC,CAAC;AAwE9qH;;;GAGG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAA6B,aAAa,CACvE,WAAW,CAAC,6BAA6B,EAAE,CAAC,CAAC,CAAC;AAkDhD;;;GAGG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAuC,aAAa,CAC3F,WAAW,CAAC,6BAA6B,EAAE,CAAC,CAAC,CAAC;AA+BhD;;;GAGG;AACH,MAAM,CAA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