naijarea-ts 1.0.6 → 1.0.8

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/chat.d.ts CHANGED
@@ -1,19 +1,482 @@
1
1
  import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
2
+ import { BaseListRequest, DeleteResponse, Metadata } from "./common";
2
3
  export declare const protobufPackage = "pb";
4
+ /** Chat Types and Enums */
5
+ export declare enum ChatType {
6
+ DIRECT = 0,
7
+ GROUP = 1,
8
+ UNRECOGNIZED = -1
9
+ }
10
+ export declare function chatTypeFromJSON(object: any): ChatType;
11
+ export declare function chatTypeToJSON(object: ChatType): string;
12
+ export declare enum MessageType {
13
+ CHAT_TEXT = 0,
14
+ CHAT_IMAGE = 1,
15
+ CHAT_VIDEO = 2,
16
+ CHAT_AUDIO = 3,
17
+ CHAT_FILE = 4,
18
+ CHAT_LOCATION = 5,
19
+ CHAT_CONTACT = 6,
20
+ CHAT_SYSTEM = 7,
21
+ UNRECOGNIZED = -1
22
+ }
23
+ export declare function messageTypeFromJSON(object: any): MessageType;
24
+ export declare function messageTypeToJSON(object: MessageType): string;
25
+ export declare enum ParticipantRole {
26
+ MEMBER = 0,
27
+ ADMIN = 1,
28
+ OWNER = 2,
29
+ UNRECOGNIZED = -1
30
+ }
31
+ export declare function participantRoleFromJSON(object: any): ParticipantRole;
32
+ export declare function participantRoleToJSON(object: ParticipantRole): string;
33
+ export declare enum MessageStatus {
34
+ SENT = 0,
35
+ DELIVERED = 1,
36
+ READ = 2,
37
+ FAILED = 3,
38
+ UNRECOGNIZED = -1
39
+ }
40
+ export declare function messageStatusFromJSON(object: any): MessageStatus;
41
+ export declare function messageStatusToJSON(object: MessageStatus): string;
42
+ /** Status and Health Check Messages */
3
43
  export interface ChatGetStatusRequest {
4
44
  }
5
45
  export interface ChatGetStatusResponse {
6
46
  status: string;
7
47
  service: string;
48
+ activeConnections: number;
49
+ totalChats: number;
50
+ totalMessages: number;
51
+ }
52
+ /** Core Chat Entities */
53
+ export interface ChatParticipant {
54
+ id: string;
55
+ name: string;
56
+ username: string;
57
+ avatar: string;
58
+ verified: boolean;
59
+ isOnline: boolean;
60
+ lastSeen: number;
61
+ role: ParticipantRole;
62
+ joinedAt: number;
63
+ }
64
+ export interface Chat {
65
+ id: string;
66
+ type: ChatType;
67
+ participants: ChatParticipant[];
68
+ lastMessage: LastMessage | undefined;
69
+ unreadCount: number;
70
+ avatar: string;
71
+ groupName: string;
72
+ description: string;
73
+ createdAt: number;
74
+ updatedAt: number;
75
+ isPinned: boolean;
76
+ isMuted: boolean;
77
+ settings: ChatSettings | undefined;
78
+ createdBy: string;
79
+ }
80
+ export interface ChatSettings {
81
+ isPrivate: boolean;
82
+ allowInvites: boolean;
83
+ allowMedia: boolean;
84
+ allowVoiceMessages: boolean;
85
+ showReadReceipts: boolean;
86
+ showTypingIndicators: boolean;
87
+ messageRetentionDays: number;
88
+ }
89
+ export interface LastMessage {
90
+ id: string;
91
+ content: string;
92
+ senderId: string;
93
+ senderName: string;
94
+ timestamp: number;
95
+ type: MessageType;
96
+ }
97
+ export interface Message {
98
+ id: string;
99
+ chatId: string;
100
+ senderId: string;
101
+ senderName: string;
102
+ content: string;
103
+ type: MessageType;
104
+ attachments: MessageAttachment[];
105
+ replyTo: MessageReply | undefined;
106
+ reactions: string[];
107
+ status: MessageStatus;
108
+ timestamp: number;
109
+ editedAt: number;
110
+ isDeleted: boolean;
111
+ metadata: {
112
+ [key: string]: string;
113
+ };
114
+ }
115
+ export interface Message_MetadataEntry {
116
+ key: string;
117
+ value: string;
118
+ }
119
+ export interface MessageAttachment {
120
+ id: string;
121
+ fileName: string;
122
+ fileUrl: string;
123
+ contentType: string;
124
+ fileSize: number;
125
+ width: number;
126
+ height: number;
127
+ duration: number;
128
+ }
129
+ export interface MessageReply {
130
+ messageId: string;
131
+ content: string;
132
+ senderName: string;
133
+ type: MessageType;
134
+ }
135
+ /** Request/Response Messages for Chat Management */
136
+ export interface CreateChatRequest {
137
+ type: ChatType;
138
+ participantIds: string[];
139
+ groupName: string;
140
+ description: string;
141
+ avatar: string;
142
+ settings: ChatSettings | undefined;
143
+ }
144
+ export interface CreateChatResponse {
145
+ chat: Chat | undefined;
146
+ }
147
+ export interface GetChatRequest {
148
+ chatId: string;
149
+ }
150
+ export interface GetChatResponse {
151
+ chat: Chat | undefined;
152
+ }
153
+ export interface GetChatsRequest {
154
+ pagination: BaseListRequest | undefined;
155
+ includeArchived: boolean;
156
+ searchQuery: string;
157
+ }
158
+ export interface GetChatsResponse {
159
+ chats: Chat[];
160
+ metadata: Metadata | undefined;
161
+ }
162
+ export interface UpdateChatRequest {
163
+ chatId: string;
164
+ groupName: string;
165
+ description: string;
166
+ avatar: string;
167
+ settings: ChatSettings | undefined;
168
+ }
169
+ export interface UpdateChatResponse {
170
+ chat: Chat | undefined;
171
+ }
172
+ export interface DeleteChatRequest {
173
+ chatId: string;
174
+ archiveOnly: boolean;
175
+ }
176
+ export interface AddParticipantRequest {
177
+ chatId: string;
178
+ participantId: string;
179
+ role: ParticipantRole;
180
+ }
181
+ export interface AddParticipantResponse {
182
+ participant: ChatParticipant | undefined;
183
+ }
184
+ export interface RemoveParticipantRequest {
185
+ chatId: string;
186
+ participantId: string;
187
+ }
188
+ export interface RemoveParticipantResponse {
189
+ success: boolean;
190
+ message: string;
191
+ }
192
+ export interface UpdateParticipantRoleRequest {
193
+ chatId: string;
194
+ participantId: string;
195
+ role: ParticipantRole;
196
+ }
197
+ export interface UpdateParticipantRoleResponse {
198
+ participant: ChatParticipant | undefined;
199
+ }
200
+ export interface GetChatParticipantsRequest {
201
+ chatId: string;
202
+ pagination: BaseListRequest | undefined;
203
+ }
204
+ export interface GetChatParticipantsResponse {
205
+ participants: ChatParticipant[];
206
+ metadata: Metadata | undefined;
207
+ }
208
+ /** Request/Response Messages for Messaging */
209
+ export interface SendMessageRequest {
210
+ chatId: string;
211
+ content: string;
212
+ type: MessageType;
213
+ attachments: MessageAttachment[];
214
+ replyToMessageId: string;
215
+ metadata: {
216
+ [key: string]: string;
217
+ };
218
+ }
219
+ export interface SendMessageRequest_MetadataEntry {
220
+ key: string;
221
+ value: string;
222
+ }
223
+ export interface SendMessageResponse {
224
+ message: Message | undefined;
225
+ }
226
+ export interface GetMessagesRequest {
227
+ chatId: string;
228
+ pagination: BaseListRequest | undefined;
229
+ beforeMessageId: string;
230
+ afterMessageId: string;
231
+ beforeTimestamp: number;
232
+ afterTimestamp: number;
233
+ }
234
+ export interface GetMessagesResponse {
235
+ messages: Message[];
236
+ metadata: Metadata | undefined;
237
+ }
238
+ export interface UpdateMessageRequest {
239
+ chatId: string;
240
+ messageId: string;
241
+ content: string;
242
+ }
243
+ export interface UpdateMessageResponse {
244
+ message: Message | undefined;
245
+ }
246
+ export interface DeleteMessageRequest {
247
+ chatId: string;
248
+ messageId: string;
249
+ forEveryone: boolean;
250
+ }
251
+ export interface MarkMessagesAsReadRequest {
252
+ chatId: string;
253
+ messageIds: string[];
254
+ upToTimestamp: number;
255
+ }
256
+ export interface MarkMessagesAsReadResponse {
257
+ success: boolean;
258
+ messagesMarked: number;
259
+ }
260
+ /** Typing Indicators */
261
+ export interface SendTypingIndicatorRequest {
262
+ chatId: string;
263
+ isTyping: boolean;
264
+ }
265
+ export interface SendTypingIndicatorResponse {
266
+ success: boolean;
267
+ }
268
+ /** Settings and Preferences */
269
+ export interface UpdateChatSettingsRequest {
270
+ chatId: string;
271
+ settings: ChatSettings | undefined;
272
+ }
273
+ export interface UpdateChatSettingsResponse {
274
+ chat: Chat | undefined;
275
+ }
276
+ export interface UpdatePushNotificationSettingsRequest {
277
+ enabled: boolean;
278
+ mutedChatIds: string[];
279
+ showPreview: boolean;
280
+ soundPreference: string;
281
+ }
282
+ export interface UpdatePushNotificationSettingsResponse {
283
+ success: boolean;
284
+ }
285
+ /** Search and Filtering */
286
+ export interface SearchChatsRequest {
287
+ query: string;
288
+ pagination: BaseListRequest | undefined;
289
+ type: ChatType;
290
+ }
291
+ export interface SearchChatsResponse {
292
+ chats: Chat[];
293
+ metadata: Metadata | undefined;
294
+ }
295
+ export interface SearchMessagesRequest {
296
+ chatId: string;
297
+ query: string;
298
+ pagination: BaseListRequest | undefined;
299
+ senderId: string;
300
+ type: MessageType;
301
+ fromDate: number;
302
+ toDate: number;
303
+ }
304
+ export interface SearchMessagesResponse {
305
+ messages: Message[];
306
+ metadata: Metadata | undefined;
307
+ }
308
+ /** Media and Attachments */
309
+ export interface UploadAttachmentRequest {
310
+ chatId: string;
311
+ fileName: string;
312
+ fileData: Uint8Array;
313
+ contentType: string;
314
+ fileSize: number;
315
+ }
316
+ export interface UploadAttachmentResponse {
317
+ attachment: MessageAttachment | undefined;
318
+ }
319
+ /** WebSocket Events (for real-time communication) */
320
+ export interface WebSocketEvent {
321
+ eventType: string;
322
+ chatId: string;
323
+ userId: string;
324
+ newMessage?: Message | undefined;
325
+ typingIndicator?: TypingIndicator | undefined;
326
+ messageStatusUpdate?: MessageStatusUpdate | undefined;
327
+ chatUpdate?: ChatUpdate | undefined;
328
+ participantUpdate?: ParticipantUpdate | undefined;
329
+ timestamp: number;
330
+ }
331
+ export interface TypingIndicator {
332
+ userId: string;
333
+ userName: string;
334
+ isTyping: boolean;
335
+ }
336
+ export interface MessageStatusUpdate {
337
+ messageId: string;
338
+ status: MessageStatus;
339
+ readByUserIds: string[];
340
+ }
341
+ export interface ChatUpdate {
342
+ chatId: string;
343
+ updatedChat: Chat | undefined;
344
+ }
345
+ export interface ParticipantUpdate {
346
+ chatId: string;
347
+ participantId: string;
348
+ updatedParticipant: ChatParticipant | undefined;
349
+ added: boolean;
350
+ removed: boolean;
351
+ }
352
+ /** Settings and Preferences Management */
353
+ export interface GetChatSettingsRequest {
354
+ chatId: string;
355
+ }
356
+ export interface GetChatSettingsResponse {
357
+ settings: Setting[];
358
+ }
359
+ export interface GetUserPreferencesRequest {
360
+ /** optional: filter by type ('chat', 'notifications', 'privacy', etc.) */
361
+ preferenceType: string;
362
+ }
363
+ export interface GetUserPreferencesResponse {
364
+ preferences: UserPreference[];
365
+ }
366
+ export interface SetUserPreferenceRequest {
367
+ preferenceType: string;
368
+ /** optional: chat_id for chat preferences, null for global */
369
+ entityId: string;
370
+ preferenceKey: string;
371
+ preferenceValue: string;
372
+ }
373
+ export interface SetUserPreferenceResponse {
374
+ preference: UserPreference | undefined;
375
+ }
376
+ export interface GetGlobalSettingsRequest {
377
+ }
378
+ export interface GetGlobalSettingsResponse {
379
+ settings: Setting[];
380
+ }
381
+ export interface SetGlobalSettingRequest {
382
+ settingType: string;
383
+ settingKey: string;
384
+ settingValue: string;
385
+ }
386
+ export interface SetGlobalSettingResponse {
387
+ setting: Setting | undefined;
388
+ }
389
+ /** Setting and Preference Data Structures */
390
+ export interface Setting {
391
+ entityType: string;
392
+ entityId: string;
393
+ settingType: string;
394
+ settingKey: string;
395
+ settingValue: string;
396
+ createdAt: string;
397
+ updatedAt: string;
398
+ }
399
+ export interface UserPreference {
400
+ preferenceType: string;
401
+ entityId: string;
402
+ preferenceKey: string;
403
+ preferenceValue: string;
404
+ createdAt: string;
405
+ updatedAt: string;
8
406
  }
9
407
  export declare const ChatGetStatusRequest: MessageFns<ChatGetStatusRequest>;
10
408
  export declare const ChatGetStatusResponse: MessageFns<ChatGetStatusResponse>;
409
+ export declare const ChatParticipant: MessageFns<ChatParticipant>;
410
+ export declare const Chat: MessageFns<Chat>;
411
+ export declare const ChatSettings: MessageFns<ChatSettings>;
412
+ export declare const LastMessage: MessageFns<LastMessage>;
413
+ export declare const Message: MessageFns<Message>;
414
+ export declare const Message_MetadataEntry: MessageFns<Message_MetadataEntry>;
415
+ export declare const MessageAttachment: MessageFns<MessageAttachment>;
416
+ export declare const MessageReply: MessageFns<MessageReply>;
417
+ export declare const CreateChatRequest: MessageFns<CreateChatRequest>;
418
+ export declare const CreateChatResponse: MessageFns<CreateChatResponse>;
419
+ export declare const GetChatRequest: MessageFns<GetChatRequest>;
420
+ export declare const GetChatResponse: MessageFns<GetChatResponse>;
421
+ export declare const GetChatsRequest: MessageFns<GetChatsRequest>;
422
+ export declare const GetChatsResponse: MessageFns<GetChatsResponse>;
423
+ export declare const UpdateChatRequest: MessageFns<UpdateChatRequest>;
424
+ export declare const UpdateChatResponse: MessageFns<UpdateChatResponse>;
425
+ export declare const DeleteChatRequest: MessageFns<DeleteChatRequest>;
426
+ export declare const AddParticipantRequest: MessageFns<AddParticipantRequest>;
427
+ export declare const AddParticipantResponse: MessageFns<AddParticipantResponse>;
428
+ export declare const RemoveParticipantRequest: MessageFns<RemoveParticipantRequest>;
429
+ export declare const RemoveParticipantResponse: MessageFns<RemoveParticipantResponse>;
430
+ export declare const UpdateParticipantRoleRequest: MessageFns<UpdateParticipantRoleRequest>;
431
+ export declare const UpdateParticipantRoleResponse: MessageFns<UpdateParticipantRoleResponse>;
432
+ export declare const GetChatParticipantsRequest: MessageFns<GetChatParticipantsRequest>;
433
+ export declare const GetChatParticipantsResponse: MessageFns<GetChatParticipantsResponse>;
434
+ export declare const SendMessageRequest: MessageFns<SendMessageRequest>;
435
+ export declare const SendMessageRequest_MetadataEntry: MessageFns<SendMessageRequest_MetadataEntry>;
436
+ export declare const SendMessageResponse: MessageFns<SendMessageResponse>;
437
+ export declare const GetMessagesRequest: MessageFns<GetMessagesRequest>;
438
+ export declare const GetMessagesResponse: MessageFns<GetMessagesResponse>;
439
+ export declare const UpdateMessageRequest: MessageFns<UpdateMessageRequest>;
440
+ export declare const UpdateMessageResponse: MessageFns<UpdateMessageResponse>;
441
+ export declare const DeleteMessageRequest: MessageFns<DeleteMessageRequest>;
442
+ export declare const MarkMessagesAsReadRequest: MessageFns<MarkMessagesAsReadRequest>;
443
+ export declare const MarkMessagesAsReadResponse: MessageFns<MarkMessagesAsReadResponse>;
444
+ export declare const SendTypingIndicatorRequest: MessageFns<SendTypingIndicatorRequest>;
445
+ export declare const SendTypingIndicatorResponse: MessageFns<SendTypingIndicatorResponse>;
446
+ export declare const UpdateChatSettingsRequest: MessageFns<UpdateChatSettingsRequest>;
447
+ export declare const UpdateChatSettingsResponse: MessageFns<UpdateChatSettingsResponse>;
448
+ export declare const UpdatePushNotificationSettingsRequest: MessageFns<UpdatePushNotificationSettingsRequest>;
449
+ export declare const UpdatePushNotificationSettingsResponse: MessageFns<UpdatePushNotificationSettingsResponse>;
450
+ export declare const SearchChatsRequest: MessageFns<SearchChatsRequest>;
451
+ export declare const SearchChatsResponse: MessageFns<SearchChatsResponse>;
452
+ export declare const SearchMessagesRequest: MessageFns<SearchMessagesRequest>;
453
+ export declare const SearchMessagesResponse: MessageFns<SearchMessagesResponse>;
454
+ export declare const UploadAttachmentRequest: MessageFns<UploadAttachmentRequest>;
455
+ export declare const UploadAttachmentResponse: MessageFns<UploadAttachmentResponse>;
456
+ export declare const WebSocketEvent: MessageFns<WebSocketEvent>;
457
+ export declare const TypingIndicator: MessageFns<TypingIndicator>;
458
+ export declare const MessageStatusUpdate: MessageFns<MessageStatusUpdate>;
459
+ export declare const ChatUpdate: MessageFns<ChatUpdate>;
460
+ export declare const ParticipantUpdate: MessageFns<ParticipantUpdate>;
461
+ export declare const GetChatSettingsRequest: MessageFns<GetChatSettingsRequest>;
462
+ export declare const GetChatSettingsResponse: MessageFns<GetChatSettingsResponse>;
463
+ export declare const GetUserPreferencesRequest: MessageFns<GetUserPreferencesRequest>;
464
+ export declare const GetUserPreferencesResponse: MessageFns<GetUserPreferencesResponse>;
465
+ export declare const SetUserPreferenceRequest: MessageFns<SetUserPreferenceRequest>;
466
+ export declare const SetUserPreferenceResponse: MessageFns<SetUserPreferenceResponse>;
467
+ export declare const GetGlobalSettingsRequest: MessageFns<GetGlobalSettingsRequest>;
468
+ export declare const GetGlobalSettingsResponse: MessageFns<GetGlobalSettingsResponse>;
469
+ export declare const SetGlobalSettingRequest: MessageFns<SetGlobalSettingRequest>;
470
+ export declare const SetGlobalSettingResponse: MessageFns<SetGlobalSettingResponse>;
471
+ export declare const Setting: MessageFns<Setting>;
472
+ export declare const UserPreference: MessageFns<UserPreference>;
11
473
  /** Chat Service */
12
474
  export type ChatServiceDefinition = typeof ChatServiceDefinition;
13
475
  export declare const ChatServiceDefinition: {
14
476
  readonly name: "ChatService";
15
477
  readonly fullName: "pb.ChatService";
16
478
  readonly methods: {
479
+ /** Status and Health Check */
17
480
  readonly getStatus: {
18
481
  readonly name: "GetStatus";
19
482
  readonly requestType: MessageFns<ChatGetStatusRequest>;
@@ -26,6 +489,315 @@ export declare const ChatServiceDefinition: {
26
489
  };
27
490
  };
28
491
  };
492
+ /** Chat Management */
493
+ readonly createChat: {
494
+ readonly name: "CreateChat";
495
+ readonly requestType: MessageFns<CreateChatRequest>;
496
+ readonly requestStream: false;
497
+ readonly responseType: MessageFns<CreateChatResponse>;
498
+ readonly responseStream: false;
499
+ readonly options: {
500
+ readonly _unknownFields: {
501
+ readonly 578365826: readonly [Uint8Array<ArrayBuffer>];
502
+ };
503
+ };
504
+ };
505
+ readonly getChat: {
506
+ readonly name: "GetChat";
507
+ readonly requestType: MessageFns<GetChatRequest>;
508
+ readonly requestStream: false;
509
+ readonly responseType: MessageFns<GetChatResponse>;
510
+ readonly responseStream: false;
511
+ readonly options: {
512
+ readonly _unknownFields: {
513
+ readonly 578365826: readonly [Uint8Array<ArrayBuffer>];
514
+ };
515
+ };
516
+ };
517
+ readonly getChats: {
518
+ readonly name: "GetChats";
519
+ readonly requestType: MessageFns<GetChatsRequest>;
520
+ readonly requestStream: false;
521
+ readonly responseType: MessageFns<GetChatsResponse>;
522
+ readonly responseStream: false;
523
+ readonly options: {
524
+ readonly _unknownFields: {
525
+ readonly 578365826: readonly [Uint8Array<ArrayBuffer>];
526
+ };
527
+ };
528
+ };
529
+ readonly updateChat: {
530
+ readonly name: "UpdateChat";
531
+ readonly requestType: MessageFns<UpdateChatRequest>;
532
+ readonly requestStream: false;
533
+ readonly responseType: MessageFns<UpdateChatResponse>;
534
+ readonly responseStream: false;
535
+ readonly options: {
536
+ readonly _unknownFields: {
537
+ readonly 578365826: readonly [Uint8Array<ArrayBuffer>];
538
+ };
539
+ };
540
+ };
541
+ readonly deleteChat: {
542
+ readonly name: "DeleteChat";
543
+ readonly requestType: MessageFns<DeleteChatRequest>;
544
+ readonly requestStream: false;
545
+ readonly responseType: import("./common").MessageFns<DeleteResponse>;
546
+ readonly responseStream: false;
547
+ readonly options: {
548
+ readonly _unknownFields: {
549
+ readonly 578365826: readonly [Uint8Array<ArrayBuffer>];
550
+ };
551
+ };
552
+ };
553
+ /** Chat Participants Management */
554
+ readonly addParticipant: {
555
+ readonly name: "AddParticipant";
556
+ readonly requestType: MessageFns<AddParticipantRequest>;
557
+ readonly requestStream: false;
558
+ readonly responseType: MessageFns<AddParticipantResponse>;
559
+ readonly responseStream: false;
560
+ readonly options: {
561
+ readonly _unknownFields: {
562
+ readonly 578365826: readonly [Uint8Array<ArrayBuffer>];
563
+ };
564
+ };
565
+ };
566
+ readonly removeParticipant: {
567
+ readonly name: "RemoveParticipant";
568
+ readonly requestType: MessageFns<RemoveParticipantRequest>;
569
+ readonly requestStream: false;
570
+ readonly responseType: MessageFns<RemoveParticipantResponse>;
571
+ readonly responseStream: false;
572
+ readonly options: {
573
+ readonly _unknownFields: {
574
+ readonly 578365826: readonly [Uint8Array<ArrayBuffer>];
575
+ };
576
+ };
577
+ };
578
+ readonly updateParticipantRole: {
579
+ readonly name: "UpdateParticipantRole";
580
+ readonly requestType: MessageFns<UpdateParticipantRoleRequest>;
581
+ readonly requestStream: false;
582
+ readonly responseType: MessageFns<UpdateParticipantRoleResponse>;
583
+ readonly responseStream: false;
584
+ readonly options: {
585
+ readonly _unknownFields: {
586
+ readonly 578365826: readonly [Uint8Array<ArrayBuffer>];
587
+ };
588
+ };
589
+ };
590
+ readonly getChatParticipants: {
591
+ readonly name: "GetChatParticipants";
592
+ readonly requestType: MessageFns<GetChatParticipantsRequest>;
593
+ readonly requestStream: false;
594
+ readonly responseType: MessageFns<GetChatParticipantsResponse>;
595
+ readonly responseStream: false;
596
+ readonly options: {
597
+ readonly _unknownFields: {
598
+ readonly 578365826: readonly [Uint8Array<ArrayBuffer>];
599
+ };
600
+ };
601
+ };
602
+ /** Messaging */
603
+ readonly sendMessage: {
604
+ readonly name: "SendMessage";
605
+ readonly requestType: MessageFns<SendMessageRequest>;
606
+ readonly requestStream: false;
607
+ readonly responseType: MessageFns<SendMessageResponse>;
608
+ readonly responseStream: false;
609
+ readonly options: {
610
+ readonly _unknownFields: {
611
+ readonly 578365826: readonly [Uint8Array<ArrayBuffer>];
612
+ };
613
+ };
614
+ };
615
+ readonly getMessages: {
616
+ readonly name: "GetMessages";
617
+ readonly requestType: MessageFns<GetMessagesRequest>;
618
+ readonly requestStream: false;
619
+ readonly responseType: MessageFns<GetMessagesResponse>;
620
+ readonly responseStream: false;
621
+ readonly options: {
622
+ readonly _unknownFields: {
623
+ readonly 578365826: readonly [Uint8Array<ArrayBuffer>];
624
+ };
625
+ };
626
+ };
627
+ readonly updateMessage: {
628
+ readonly name: "UpdateMessage";
629
+ readonly requestType: MessageFns<UpdateMessageRequest>;
630
+ readonly requestStream: false;
631
+ readonly responseType: MessageFns<UpdateMessageResponse>;
632
+ readonly responseStream: false;
633
+ readonly options: {
634
+ readonly _unknownFields: {
635
+ readonly 578365826: readonly [Uint8Array<ArrayBuffer>];
636
+ };
637
+ };
638
+ };
639
+ readonly deleteMessage: {
640
+ readonly name: "DeleteMessage";
641
+ readonly requestType: MessageFns<DeleteMessageRequest>;
642
+ readonly requestStream: false;
643
+ readonly responseType: import("./common").MessageFns<DeleteResponse>;
644
+ readonly responseStream: false;
645
+ readonly options: {
646
+ readonly _unknownFields: {
647
+ readonly 578365826: readonly [Uint8Array<ArrayBuffer>];
648
+ };
649
+ };
650
+ };
651
+ readonly markMessagesAsRead: {
652
+ readonly name: "MarkMessagesAsRead";
653
+ readonly requestType: MessageFns<MarkMessagesAsReadRequest>;
654
+ readonly requestStream: false;
655
+ readonly responseType: MessageFns<MarkMessagesAsReadResponse>;
656
+ readonly responseStream: false;
657
+ readonly options: {
658
+ readonly _unknownFields: {
659
+ readonly 578365826: readonly [Uint8Array<ArrayBuffer>];
660
+ };
661
+ };
662
+ };
663
+ /** Typing Indicators */
664
+ readonly sendTypingIndicator: {
665
+ readonly name: "SendTypingIndicator";
666
+ readonly requestType: MessageFns<SendTypingIndicatorRequest>;
667
+ readonly requestStream: false;
668
+ readonly responseType: MessageFns<SendTypingIndicatorResponse>;
669
+ readonly responseStream: false;
670
+ readonly options: {
671
+ readonly _unknownFields: {
672
+ readonly 578365826: readonly [Uint8Array<ArrayBuffer>];
673
+ };
674
+ };
675
+ };
676
+ /** Chat Settings */
677
+ readonly updateChatSettings: {
678
+ readonly name: "UpdateChatSettings";
679
+ readonly requestType: MessageFns<UpdateChatSettingsRequest>;
680
+ readonly requestStream: false;
681
+ readonly responseType: MessageFns<UpdateChatSettingsResponse>;
682
+ readonly responseStream: false;
683
+ readonly options: {
684
+ readonly _unknownFields: {
685
+ readonly 578365826: readonly [Uint8Array<ArrayBuffer>];
686
+ };
687
+ };
688
+ };
689
+ /** Search and Filtering */
690
+ readonly searchChats: {
691
+ readonly name: "SearchChats";
692
+ readonly requestType: MessageFns<SearchChatsRequest>;
693
+ readonly requestStream: false;
694
+ readonly responseType: MessageFns<SearchChatsResponse>;
695
+ readonly responseStream: false;
696
+ readonly options: {
697
+ readonly _unknownFields: {
698
+ readonly 578365826: readonly [Uint8Array<ArrayBuffer>];
699
+ };
700
+ };
701
+ };
702
+ readonly searchMessages: {
703
+ readonly name: "SearchMessages";
704
+ readonly requestType: MessageFns<SearchMessagesRequest>;
705
+ readonly requestStream: false;
706
+ readonly responseType: MessageFns<SearchMessagesResponse>;
707
+ readonly responseStream: false;
708
+ readonly options: {
709
+ readonly _unknownFields: {
710
+ readonly 578365826: readonly [Uint8Array<ArrayBuffer>];
711
+ };
712
+ };
713
+ };
714
+ /** Media and Attachments */
715
+ readonly uploadAttachment: {
716
+ readonly name: "UploadAttachment";
717
+ readonly requestType: MessageFns<UploadAttachmentRequest>;
718
+ readonly requestStream: false;
719
+ readonly responseType: MessageFns<UploadAttachmentResponse>;
720
+ readonly responseStream: false;
721
+ readonly options: {
722
+ readonly _unknownFields: {
723
+ readonly 578365826: readonly [Uint8Array<ArrayBuffer>];
724
+ };
725
+ };
726
+ };
727
+ /** Push Notifications */
728
+ readonly updatePushNotificationSettings: {
729
+ readonly name: "UpdatePushNotificationSettings";
730
+ readonly requestType: MessageFns<UpdatePushNotificationSettingsRequest>;
731
+ readonly requestStream: false;
732
+ readonly responseType: MessageFns<UpdatePushNotificationSettingsResponse>;
733
+ readonly responseStream: false;
734
+ readonly options: {
735
+ readonly _unknownFields: {
736
+ readonly 578365826: readonly [Uint8Array<ArrayBuffer>];
737
+ };
738
+ };
739
+ };
740
+ /** Settings Management */
741
+ readonly getChatSettings: {
742
+ readonly name: "GetChatSettings";
743
+ readonly requestType: MessageFns<GetChatSettingsRequest>;
744
+ readonly requestStream: false;
745
+ readonly responseType: MessageFns<GetChatSettingsResponse>;
746
+ readonly responseStream: false;
747
+ readonly options: {
748
+ readonly _unknownFields: {
749
+ readonly 578365826: readonly [Uint8Array<ArrayBuffer>];
750
+ };
751
+ };
752
+ };
753
+ readonly getUserPreferences: {
754
+ readonly name: "GetUserPreferences";
755
+ readonly requestType: MessageFns<GetUserPreferencesRequest>;
756
+ readonly requestStream: false;
757
+ readonly responseType: MessageFns<GetUserPreferencesResponse>;
758
+ readonly responseStream: false;
759
+ readonly options: {
760
+ readonly _unknownFields: {
761
+ readonly 578365826: readonly [Uint8Array<ArrayBuffer>];
762
+ };
763
+ };
764
+ };
765
+ readonly setUserPreference: {
766
+ readonly name: "SetUserPreference";
767
+ readonly requestType: MessageFns<SetUserPreferenceRequest>;
768
+ readonly requestStream: false;
769
+ readonly responseType: MessageFns<SetUserPreferenceResponse>;
770
+ readonly responseStream: false;
771
+ readonly options: {
772
+ readonly _unknownFields: {
773
+ readonly 578365826: readonly [Uint8Array<ArrayBuffer>];
774
+ };
775
+ };
776
+ };
777
+ readonly getGlobalSettings: {
778
+ readonly name: "GetGlobalSettings";
779
+ readonly requestType: MessageFns<GetGlobalSettingsRequest>;
780
+ readonly requestStream: false;
781
+ readonly responseType: MessageFns<GetGlobalSettingsResponse>;
782
+ readonly responseStream: false;
783
+ readonly options: {
784
+ readonly _unknownFields: {
785
+ readonly 578365826: readonly [Uint8Array<ArrayBuffer>];
786
+ };
787
+ };
788
+ };
789
+ readonly setGlobalSetting: {
790
+ readonly name: "SetGlobalSetting";
791
+ readonly requestType: MessageFns<SetGlobalSettingRequest>;
792
+ readonly requestStream: false;
793
+ readonly responseType: MessageFns<SetGlobalSettingResponse>;
794
+ readonly responseStream: false;
795
+ readonly options: {
796
+ readonly _unknownFields: {
797
+ readonly 578365826: readonly [Uint8Array<ArrayBuffer>];
798
+ };
799
+ };
800
+ };
29
801
  };
30
802
  };
31
803
  type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;